/* MeditronFO release page: long-form sections on top of ../static/style.css */

.mfo main { padding: 0 16px; }

/* ---------- hero: the name, the paper's full title, its authors and links under a dawn sky ---------- */
.mfo .top a { color: rgb(255 255 255 / 0.82); }
.mfo .top a:hover { color: #fff; }
.mfo .top .logo-color { display: none; }
.mfo .top .logo-mono { display: block; }
.m-hero {
  position: relative; isolation: isolate; margin: 0 -16px; padding: clamp(5.5rem, 11vh, 7rem) 16px clamp(7rem, 20vh, 11rem);
  text-align: center; color: #fbf7ef;
  /* fallback when the canvas can't draw: the same sky */
  background: linear-gradient(#0a1a44 0%, #1d4096 21%, var(--dawn-low) 37%, var(--paper) 56%);
}
/* phones: the seven links need their own lines, under the logo */
@media (max-width: 700px) {
  .mfo .top { flex-direction: column; gap: 0.5rem; }
  .mfo .top-links { justify-content: center; gap: 0.2rem 0.9rem; }
  .m-hero { padding-top: 8.5rem; }
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.m-hero h1 {
  display: flex; align-items: center; justify-content: center; gap: 0.16em;
  font-size: clamp(1.8rem, 9.4vw, 5.6rem); line-height: 1; margin: 0;
  font-family: 'Chillax', var(--font); font-weight: 700; letter-spacing: -0.035em; text-transform: uppercase;   /* as on the main page */
  text-shadow: 0 2px 30px rgb(10 22 48 / 0.35);
}
.m-hero h1 img { height: 0.9em; width: auto; }
.m-paper { font: 400 clamp(1.4rem, 3vw, 2rem)/1.25 var(--display); max-width: 27em; margin: 1.1rem auto 1.4rem; }
.m-authors { list-style: none; margin: 0 auto 1.75rem; padding: 0; max-width: 46rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; color: rgb(255 255 255 / 0.85); }
.m-authors li { white-space: nowrap; }
.m-authors a { color: inherit; text-decoration: none; }
.m-authors a:hover { text-decoration: underline; }
.m-hero .talk { background: #fbf7ef; color: #0c43a0; }
.m-hero .talk:hover { background: #fff; }
.m-hero .m-ghost { border-color: #fbf7ef; color: #fbf7ef; background: rgb(10 26 68 / 0.6); }
.m-hero .m-ghost:hover { background: rgb(10 26 68 / 0.85); }
/* "FO" arrives after "Meditron": the word widens to make room, then each letter rises in, in ivory, and settles to white */
.m-fo { display: inline-block; white-space: nowrap; }
.m-fo span { display: inline-block; text-shadow: none; }   /* drawn after "Meditron", their shadow would darken the N beside them */
@media (prefers-reduced-motion: no-preference) {
  .m-fo { animation: fo-room 0.7s cubic-bezier(.5,0,.2,1) 0.5s both; }
  .m-fo span { animation: fo-rise 0.9s cubic-bezier(.2,.8,.3,1) 0.85s both; }
  .m-fo span + span { animation-delay: 1s; }
  @keyframes fo-room { from { max-width: 0; } to { max-width: 1.6em; } }
  @keyframes fo-rise {
    from { opacity: 0; translate: 0 0.35em; filter: blur(8px); color: #faf9f5; text-shadow: 0 0 40px rgb(250 249 245 / 0.9); }
    60% { opacity: 1; filter: blur(0); color: #faf9f5; }
  }
}
.m-intro { max-width: var(--col); margin: 0 auto; padding: 3.5rem 0 var(--sec); text-align: center; }
.m-lede { font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.4; max-width: 40rem; margin: 0 auto 2rem; font-weight: 500; }
.m-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.m-ghost {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 999px; border: 2px solid var(--blue);
  color: var(--blue); text-decoration: none; font-weight: 800; font-size: 1.05rem;
}
.m-ghost:hover { background: var(--blue-wash); }

/* ---------- sections ---------- */
/* the main page's spacing (--sec in style.css): the same space above and below each section's content, so the same between any two;
   and its column (--col): text, figures, tables and cards all as wide */
.m-sec { max-width: var(--col); margin: 0 auto; padding: var(--sec) 0; }
.m-sec > :last-child { margin-bottom: 0; }
.m-sec h2 { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.m-h3 { font-size: var(--t-md); font-weight: 800; margin: 2.5rem 0 0.75rem; }
.m-foot { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

.m-stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.m-stats li { background: var(--paper); padding: 1.1rem 1.1rem 1.2rem; }
.m-stats strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-stats span { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }
@media (max-width: 760px) { .m-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- tables (the shared rules are in ../static/style.css) ---------- */
.m-bench .grp th { text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 700; padding-top: 1rem; border-bottom: none; }
.m-bench td.avg { font-weight: 800; }
.m-bench .ci { color: var(--muted); font-size: 0.78rem; margin-left: 0.25rem; }
.m-bench .delta { font-size: 0.78rem; font-weight: 700; margin-left: 0.3rem; color: var(--muted); }
.m-bench .delta.up { color: var(--green); }
.m-bench tr.base td, .m-bench tr.base th { color: var(--muted); }
.m-bench b { font-weight: 800; }

/* AutoMOOVE rows: label | track with interval and dot | value */
.m-bars { display: grid; gap: 0.15rem; }
.m-bars .grp { font-size: 0.78rem; color: var(--muted); font-weight: 700; margin: 0.9rem 0 0.2rem; }
.m-bars .grp:first-child { margin-top: 0; }
.m-row { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr 3rem; gap: 0.75rem; align-items: center; padding: 0.3rem 0; border-radius: 4px; }
.m-row:hover, .m-row:focus { background: var(--blue-wash); outline: none; }
.m-row .who { font-size: 0.88rem; font-weight: 700; line-height: 1.25; }
.m-row .who small { display: block; font-weight: 500; color: var(--muted); }
.m-row.base .who { color: var(--muted); font-weight: 600; }
.m-row .track { position: relative; height: 1.4rem; }
.m-row .track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.m-row .mid { position: absolute; left: 50%; top: -0.2rem; bottom: -0.2rem; border-left: 1.5px dashed var(--muted); opacity: 0.6; }
.m-row .ci { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--c-ci); }
.m-row .dot { position: absolute; top: 50%; width: 0.85rem; height: 0.85rem; margin: -0.425rem 0 0 -0.425rem; border-radius: 50%; background: var(--c-fully); border: 1.25px solid var(--ink); }
.m-row .dot.weights { background: var(--c-weights); }
.m-row.base .dot { background: var(--paper); }
.m-row .val { font-size: 0.92rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.m-row.base .val { color: var(--muted); font-weight: 600; }
.m-axis { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr 3rem; gap: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.m-axis .ticks { position: relative; height: 1rem; }
.m-axis .ticks span { position: absolute; transform: translateX(-50%); }
@media (max-width: 560px) {
  .m-row, .m-axis { grid-template-columns: 1fr 2.6rem; }
  .m-row .who { grid-column: 1 / -1; }
  .m-axis > span:first-child { display: none; }
}

/* ---------- game, inline (style.css styles it for the dialog) ---------- */
.m-game { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 12px; }
.m-game .vote { position: static; margin: 1.25rem 0 0; padding: 0; background: none; justify-content: flex-start; }
.m-game h4 { margin-top: 0; }
@media (max-width: 560px) { .m-game { padding: 1rem; margin-left: -4px; margin-right: -4px; } }

/* ---------- how it's built, limits, get it ---------- */
.m-pipe img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: #fff; filter: var(--shot-dim); }
.m-steps { padding-left: 1.25rem; margin: 1.5rem 0; }
.m-steps li { margin-bottom: 0.75rem; }
.m-limits { list-style: none; padding: 0; }
.m-limits li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.m-limits li:first-child { border-top: 1px solid var(--rule); }
.m-limits strong { display: block; }
.m-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.m-cards li.wide { grid-column: span 3; }
@media (min-width: 761px) { .m-cards li.wide { grid-column: span 1; } .m-cards li.wide + li.wide { grid-column: span 2; } }
.m-cards a {
  display: block; height: 100%; padding: 0.9rem 1rem; border: 1.5px solid var(--rule); border-radius: 10px;
  text-decoration: none; color: var(--ink); background: var(--folder);
}
.m-cards a:hover { border-color: var(--blue); }
.m-cards strong { display: block; font-size: 0.95rem; }
.m-cards span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
@media (max-width: 760px) { .m-cards { grid-template-columns: 1fr 1fr; } .m-cards li.wide { grid-column: span 2; } }
@media (max-width: 420px) { .m-cards { grid-template-columns: 1fr; } .m-cards li.wide { grid-column: span 1; } }
.m-cite-head { margin-top: 2.5rem; }
.m-cite-head .m-h3 { margin: 0; }
.mfo .bibtex { overflow-x: auto; font-size: 0.8rem; background: var(--folder); padding: 1rem; border-radius: 8px; }


/* headlines: as on the main page (style.css) */
.m-sec h2, .m-h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
/* the main page's variants of the name: ?ivy in Ivy Presto, ?manrope in the text font */
.ivy .m-hero h1 { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: clamp(3rem, 11vw, 6.5rem); }
.manrope .m-hero h1 { font-family: var(--font); font-weight: 800; letter-spacing: -0.035em; text-transform: none; font-size: clamp(3rem, 11vw, 6.5rem); }
