/* KPACE Bidology. Tokens follow the Kailo rankings page (design/kpace-rankings): white page, ink spine, Geist display,
   Inter UI, Google Sans Code for every number. Rose is the heart and appears in three places only: the cut line, the
   countdown and the Nationals node's pin. */
:root{
  --bg:#ffffff; --bg2:#f8f9fa; --bg3:#f1f3f5;
  --ink:#212529; --ink-body:#343a40; --muted:#6c757d; --faint:#adb5bd;
  --line:#dee2e6; --hair:#e9ecef;
  --heart:#e01b3c; --heart-soft:#fff1f2; --heart-ink:#a81228; --go-bg:#e01b3c; --go-bg-hover:#c8102e;
  --amber:#e8590c; --amber-soft:#fff4e6; --hunt-ink:#c2410c;   /* amber as text: --amber is 4.0:1 on white, this is 4.5:1+ */
  --c4:#2f6fde; --c5:#0f9b72; --c6:#8b5cf6;
  --neutral:#212529; --on-neutral:#ffffff;
  --gold:#f6c343; --gold-ink:#5c4300; --silver:#cfd4da; --silver-ink:#343a40; --bronze:#e8a06a; --bronze-ink:#5a2d0c;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06); --shadow-md:0 2px 6px rgba(0,0,0,.08); --shadow-xl:0 8px 24px rgba(0,0,0,.16);
  --glass:color-mix(in srgb, var(--bg2) 88%, transparent);
  --font-display:'Geist','Inter',system-ui,-apple-system,sans-serif;
  --font-ui:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-num:'Google Sans Code',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --mk-tile-light:#2b3035; --mk-tile-dark:transparent;   /* grounds for one-tone school marks (see .mk.tone-*) */
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#141619; --bg2:#1b1e22; --bg3:#2a2f35;
  --ink:#f8f9fa; --ink-body:#e9ecef; --muted:#adb5bd; --faint:#6c757d;
  --line:#3a4047; --hair:#2a2f35;
  --heart:#fb7185; --heart-soft:#3a1a20; --heart-ink:#fda4af; --go-bg:#e01b3c; --go-bg-hover:#f0304f;
  --amber:#ffa94d; --amber-soft:#3a2614; --hunt-ink:#ffa94d;
  --c4:#6ea0ff; --c5:#3fd0a0; --c6:#b69bff;
  --neutral:#f8f9fa; --on-neutral:#212529;
  --gold:#d9a514; --gold-ink:#1d1500; --silver:#9aa1a9; --silver-ink:#14171a; --bronze:#c27a43; --bronze-ink:#1f0e02;
  --shadow-sm:0 1px 3px rgba(0,0,0,.4); --shadow-md:0 2px 6px rgba(0,0,0,.5); --shadow-xl:0 8px 24px rgba(0,0,0,.6);
  --mk-tile-light:transparent; --mk-tile-dark:#e9ecef;
}}
:root[data-theme="dark"]{
  --bg:#141619; --bg2:#1b1e22; --bg3:#2a2f35;
  --ink:#f8f9fa; --ink-body:#e9ecef; --muted:#adb5bd; --faint:#6c757d;
  --line:#3a4047; --hair:#2a2f35;
  --heart:#fb7185; --heart-soft:#3a1a20; --heart-ink:#fda4af; --go-bg:#e01b3c; --go-bg-hover:#f0304f;
  --amber:#ffa94d; --amber-soft:#3a2614; --hunt-ink:#ffa94d;
  --c4:#6ea0ff; --c5:#3fd0a0; --c6:#b69bff;
  --neutral:#f8f9fa; --on-neutral:#212529;
  --gold:#d9a514; --gold-ink:#1d1500; --silver:#9aa1a9; --silver-ink:#14171a; --bronze:#c27a43; --bronze-ink:#1f0e02;
  --mk-tile-light:transparent; --mk-tile-dark:#e9ecef;
}
*{box-sizing:border-box}
html{scroll-padding-top:150px}
body{margin:0;background:var(--bg);color:var(--ink-body);font:400 15px/1.5 var(--font-ui);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:none;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink);border-radius:8px}
.num,.mono{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* ---------- top bar ---------- */
.topbar{position:sticky;top:0;z-index:30;height:56px;display:flex;align-items:center;gap:14px;padding:0 24px;background:var(--bg);border-bottom:1px solid var(--hair)}
.brand{display:flex;align-items:center}
.kailo{height:30px;width:auto;fill:#EE2737}
.topbar-sep{width:1px;height:22px;background:var(--line)}
.topbar-prod{font:600 16px/1 var(--font-display);color:var(--ink);letter-spacing:-.01em}
.topbar-prod .crumb{text-decoration:none;color:var(--muted);font-weight:600}
.topbar-prod .crumb:hover{color:var(--ink)}
.crumb-sep{margin:0 8px;color:var(--faint);font-weight:400}
.topbar-through{margin-left:auto;font-size:13px;color:var(--muted)}
.topbar-through b{color:var(--ink);font-weight:600}
/* the views menu in the top bar (Peter, 2026-10-16): the button names the view on screen */
.vnav{position:relative;display:inline-flex}
.vnav-btn{display:inline-flex;align-items:center;gap:3px;border:0;background:none;padding:6px 6px 6px 8px;margin:-6px 0 -6px -8px;border-radius:9px;font:600 16px/1 var(--font-display);letter-spacing:-.01em;color:var(--ink);cursor:pointer;white-space:nowrap}
.vnav-btn:hover,.vnav-btn[aria-expanded="true"]{background:var(--bg3)}
.vnav-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.vnav-menu{position:absolute;top:calc(100% + 12px);left:-8px;z-index:40;display:grid;gap:2px;min-width:230px;max-width:calc(100vw - 24px);padding:6px;border-radius:14px;background:var(--bg);box-shadow:var(--shadow-xl),inset 0 0 0 1px var(--hair)}
.vnav-menu[hidden]{display:none}
.vnav-menu [role^="menuitem"]{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:11px 12px;border-radius:9px;font:500 15px/1.2 var(--font-ui);letter-spacing:0;color:var(--ink-body);text-align:left;text-decoration:none;cursor:pointer;white-space:nowrap}
.vnav-menu [role^="menuitem"]:hover,.vnav-menu [role^="menuitem"]:focus-visible{background:var(--bg3);color:var(--ink);outline:none}
.vnav-menu [aria-checked="true"],.vnav-menu [aria-current="page"]{color:var(--ink);font-weight:600}
.vnav-menu [aria-checked="true"]::after,.vnav-menu [aria-current="page"]::after{content:"";margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--heart)}
.vnav-menu>:last-child{margin-top:4px;border-radius:0 0 9px 9px;box-shadow:0 -1px 0 var(--hair)}

/* a guided tour that points at the page (assets/surface.js, KSurface.coach) */
.kc-block{position:fixed;inset:0;z-index:95;background:transparent}
.kc-block.kc-dim{background:rgba(20,22,25,.5)}
.kc-ring{position:fixed;z-index:96;border-radius:14px;pointer-events:none;box-shadow:0 0 0 3px var(--heart),0 0 0 200vmax rgba(20,22,25,.5);
  transition:left .42s cubic-bezier(.34,1.4,.5,1),top .42s cubic-bezier(.34,1.4,.5,1),width .42s cubic-bezier(.34,1.4,.5,1),height .42s cubic-bezier(.34,1.4,.5,1)}
.kc-ring.kc-pulse{animation:kcPulse 1.2s ease-out .35s 2}
@keyframes kcPulse{50%{box-shadow:0 0 0 9px rgba(224,27,60,.28),0 0 0 200vmax rgba(20,22,25,.5)}}
.kc-card{position:fixed;z-index:97;width:360px;max-width:calc(100vw - 24px);padding:14px 18px 14px;border-radius:16px;background:var(--bg);color:var(--ink-body);box-shadow:var(--shadow-xl);outline:none;
  transition:left .42s cubic-bezier(.34,1.4,.5,1),top .42s cubic-bezier(.34,1.4,.5,1)}
.kc-card.kc-dock{left:8px!important;right:8px;bottom:8px;top:auto!important;width:auto!important;max-height:48vh;overflow-y:auto;transition:none;animation:kcUp .26s ease both}
@keyframes kcUp{from{transform:translateY(14px);opacity:0}}
.kc-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.kc-k{font:600 11px/1 var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.kc-skip{border:0;background:none;margin-right:-8px;padding:6px 8px;border-radius:999px;font:600 13px/1 var(--font-ui);color:var(--muted);cursor:pointer}
.kc-skip:hover{color:var(--ink);background:var(--bg3)}
.kc-h{margin:4px 0 6px;font:700 19px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.kc-b{font-size:14.5px;line-height:1.5}.kc-b p{margin:0 0 6px}.kc-b b{color:var(--ink)}
.kc-list{margin:2px 0 6px;padding-left:20px;font-size:13.5px;line-height:1.45}.kc-list li{margin:2px 0}
.kc-bands{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:12.5px;color:var(--muted)}
.kc-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.kc-back,.kc-go{border:0;border-radius:999px;padding:9px 16px;font:600 14px/1 var(--font-ui);cursor:pointer}
.kc-back{background:var(--bg3);color:var(--ink)}.kc-back:disabled{opacity:.4;cursor:default}
.kc-go{background:var(--ink);color:var(--bg)}
.kc-back:focus-visible,.kc-go:focus-visible,.kc-skip:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
.kc-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.kc-dots i{width:6px;height:6px;border-radius:3px;background:var(--line)}
.kc-dots i.past{background:var(--muted)}.kc-dots i.on{width:14px;background:var(--heart)}
.kc-still .kc-ring,.kc-still .kc-card{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.kc-ring,.kc-card{transition:none!important;animation:none!important}}

/* The page ends in comfortable runway, as the app's pages do (--scroll-padding-comfort there): the last row or
   footer scrolls well clear of the bottom edge and the phone's home indicator. Shared by every KPACE tool. */
.page{max-width:1320px;margin:0 auto;padding:0 32px max(30dvh,calc(80px + env(safe-area-inset-bottom,0px)))}

/* ---------- tabs ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-top:22px;overflow-x:auto;scrollbar-width:none}
.tabs button,.tabs a[role="tab"]{border:0;background:none;padding:12px 18px;font:500 14px/1 var(--font-ui);color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;text-decoration:none}
.tabs button[aria-selected="true"],.tabs a[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}
.tabs button:hover,.tabs a[role="tab"]:hover{filter:brightness(.9)}

/* ---------- hero ---------- */
.hero{display:flex;gap:40px;align-items:flex-end;justify-content:space-between;padding:34px 0 26px}
.eyebrow{font:500 12px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.eyebrow b{color:var(--ink);letter-spacing:.06em}
.wordmark{display:flex;align-items:center;gap:16px;margin:14px 0 10px;font:800 76px/.95 var(--font-display);letter-spacing:-.055em;color:var(--ink)}
.wordmark .ology{font-weight:300;letter-spacing:-.04em}
.bracket-glyph{width:62px;height:62px;flex:none}
.bracket-glyph path{fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.bracket-glyph circle{fill:var(--heart)}
/* the masthead: one line of facts, then one saying these are projections, with Learn more's menu (the tour, the
   simulator's explainer, How it works) */
.lede{max-width:64ch;margin:0;font:500 16px/1.4 var(--font-ui);color:var(--ink)}
.lede .ib{vertical-align:1px}
.nw{white-space:nowrap}   /* an ⓘ and the word before it wrap together: the ⓘ never sits on a line of its own */
.explain{margin:10px 0 0;font-size:14.5px;color:var(--ink-body)}
.explain b{color:var(--ink);font-weight:600}
.linkb{padding:0;border:0;background:none;cursor:pointer;font:500 14.5px var(--font-ui);color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--faint)}
.linkb:hover,.linkb[aria-expanded="true"]{text-decoration-color:var(--ink)}
.learnw{position:relative;display:inline-block}
.learn-menu{min-width:270px}
.learn-menu [role^="menuitem"]{display:grid;gap:2px;font:600 14px/1.3 var(--font-ui);color:var(--ink);white-space:normal}
.learn-menu [role^="menuitem"] small{font:400 12px/1.3 var(--font-ui);color:var(--muted)}
.learn-menu>:last-child{margin-top:0;border-radius:9px;box-shadow:none}

.countdown{flex:none;min-width:340px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:18px 22px;border-radius:18px;background:var(--bg2)}
.countdown .cd{display:grid;gap:5px;align-content:start}
.countdown .lab{font:600 14px/1.2 var(--font-ui);color:var(--ink)}
.countdown .big{display:flex;align-items:baseline;gap:8px;font:700 46px/1 var(--font-display);letter-spacing:-.04em;color:var(--ink)}
.countdown .big small{font:500 16px/1 var(--font-ui);letter-spacing:0;color:var(--muted)}
.countdown .when{font-size:13px;color:var(--ink-body)}
.countdown .site{font-size:13px;color:var(--muted)}

/* ---------- deck (sticky controls) ---------- */
.deck{position:sticky;top:56px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 -32px;padding:12px 32px;background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.deck.stuck{box-shadow:var(--shadow-md)}
.seg{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:var(--bg3)}
.seg button{border:0;background:none;padding:8px 14px;border-radius:999px;font:500 14px/1 var(--font-ui);color:var(--muted);cursor:pointer;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--neutral);color:var(--on-neutral);font-weight:600}
.seg button:hover:not([aria-pressed="true"]){color:var(--ink)}
.seg-wk button{font-family:var(--font-num);font-size:13px}
/* a long row of buttons (the regions; high school's weeks) scrolls inside the control on a narrow screen, not the page */
.seg-wk{max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg-wk::-webkit-scrollbar{display:none}
/* the field is set: the status band an official board leads with (app.js fieldSetBand). A neutral seal, never a rose
   fill; the one red thing is the run button, as everywhere */
.fieldset{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;width:100%;margin:0 0 12px;padding:14px 16px;border-radius:16px;background:var(--bg2);box-shadow:inset 0 0 0 1px var(--hair)}
.fieldset .fs-seal{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--neutral);color:var(--on-neutral)}
.fieldset .fs-t{flex:1 1 240px;min-width:0;display:grid;gap:3px}
.fieldset .fs-t b{font:700 20px/1.1 var(--font-display);letter-spacing:-.02em;color:var(--ink)}
.fieldset .fs-t small{font:400 13px/1.4 var(--font-ui);color:var(--muted)}
.fieldset .fs-facts{display:flex;flex-wrap:wrap;gap:6px 18px}
.fieldset .fs-n{display:inline-flex;align-items:baseline;gap:5px;font:400 13px/1 var(--font-ui);color:var(--muted);white-space:nowrap}
.fieldset .fs-n b{font:700 18px/1 var(--font-num);color:var(--ink)}
.fieldset .go{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:11px 18px;background:var(--go-bg);color:#fff;font:700 15px var(--font-ui);cursor:pointer;white-space:nowrap}
.fieldset .go svg{fill:currentColor}
.fieldset .go:hover{background:var(--go-bg-hover)}
.fieldset .go:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:640px){.fieldset .go{flex:1 1 100%;justify-content:center}}
/* the week: a pill the size of a segmented control that opens the views menu's list (.vnav-menu), one row per week */
.wkpick{position:relative;display:inline-flex}
.wk-btn{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:11px 12px 11px 16px;background:var(--bg3);font:600 14px/1 var(--font-ui);color:var(--ink);cursor:pointer;white-space:nowrap}
.wk-btn .wk-k{font-weight:500;color:var(--muted)}
.wk-btn #wkLabel{font-family:var(--font-num);font-size:13px}
.wk-btn .chev{color:var(--muted)}
.wk-btn:hover .chev,.wk-btn[aria-expanded="true"] .chev{color:var(--ink)}
.wk-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.wk-menu{top:calc(100% + 8px);left:0;min-width:170px;max-height:min(420px,calc(100vh - 140px));overflow-y:auto}
.wk-menu [role^="menuitem"]{font-family:var(--font-num);font-size:14px}
.wk-menu [role^="menuitem"] small{font:500 12px/1 var(--font-ui);color:var(--muted)}
.wk-menu>:last-child{margin-top:0;border-radius:9px;box-shadow:none}
.seg-reg{display:flex;width:max-content;margin:0 0 14px}
.seg-reg button{padding:7px 12px;font-family:var(--font-ui);font-size:13px}
.inl{display:block;margin-top:6px;padding:0;border:0;background:none;font:inherit;font-size:13px;color:var(--ink);text-decoration:underline;cursor:pointer}
/* grows into what the segments leave on their line and shrinks to 190px before it wraps, so a short week list keeps
   the search beside it; the hint key goes first when it's narrow */
.search{position:relative;margin-left:auto;display:flex;align-items:center;gap:8px;flex:1 1 190px;min-width:190px;max-width:320px;container-type:inline-size;padding:0 12px;height:40px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--muted)}
.search input{flex:1;border:0;background:none;outline:none;font:400 14px var(--font-ui);color:var(--ink);min-width:0;text-overflow:ellipsis}
.search kbd{font:500 11px/1 var(--font-num);color:var(--faint);border:1px solid var(--line);border-radius:5px;padding:3px 6px}
@container (max-width:259px){.search kbd{display:none}}
.search .results{left:auto;width:max(100%,320px)}
.results{position:absolute;top:46px;right:0;left:0;z-index:40;max-height:60vh;overflow:auto;background:var(--bg);border-radius:14px;box-shadow:var(--shadow-xl);padding:6px}
.results button{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;width:100%;border:0;background:none;padding:8px 10px;border-radius:10px;text-align:left;cursor:pointer}
.results button:hover,.results button.on{background:var(--bg3)}
.results .k{font-size:12px;color:var(--muted)}
.results .p{font:500 13px var(--font-num);color:var(--ink)}

/* ---------- summary strip ---------- */
.strip{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;padding:18px 0 6px;font-size:14px;color:var(--muted)}
.strip b{color:var(--ink);font-family:var(--font-num);font-weight:600}
.strip .movers{flex-basis:100%;font-size:13px}
.strip .movers a{cursor:pointer;text-decoration:none;color:var(--ink);font-weight:500}
.strip .movers a:hover{text-decoration:underline}
.strip .up{color:#2b8a3e;font-weight:600}.strip .dn{color:var(--amber);font-weight:600}
.strip .key{flex-basis:100%;margin:0;padding-top:2px}
.strip .key b{font-family:var(--font-num)}

/* ---------- school marks ---------- */
.mk{width:26px;height:26px;flex:none;object-fit:contain;display:inline-grid;place-items:center}
/* A school mark drawn for one ground: a white mark (made for a dark header) sits on a dark tile in light mode, a
   black one on a light tile in dark mode. The tone is measured when the sprite is packed (pack_bidology_logos.py). */
.mk.tone-light{background-color:var(--mk-tile-light);border-radius:6px}
.mk.tone-dark{background-color:var(--mk-tile-dark);border-radius:6px}
.mk.mono-mk{border-radius:50%;background:var(--bg3);color:var(--muted);font:600 10px/1 var(--font-ui);letter-spacing:.02em}
.mk.lg{width:56px;height:56px;font-size:17px}

/* ---------- status pills, tags, bars ---------- */
.st{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font:600 11px/1.3 var(--font-ui);letter-spacing:.02em;white-space:nowrap}
.st.lock{background:var(--neutral);color:var(--on-neutral)}
.st.in{background:var(--bg);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.st.bub{background:var(--amber-soft);color:var(--amber)}
.st.out{background:var(--bg3);color:var(--muted)}
.tag{display:inline-block;min-width:26px;text-align:center;padding:2px 5px;border-radius:6px;font:600 10px/1.4 var(--font-num);letter-spacing:.04em}
.tag.aq{background:var(--neutral);color:var(--on-neutral)}
.tag.al{box-shadow:inset 0 0 0 1.2px var(--ink);color:var(--ink)}
.bar{display:inline-block;width:64px;height:6px;border-radius:3px;background:var(--bg3);overflow:hidden;vertical-align:middle}
.bar i{display:block;height:100%;background:var(--ink);border-radius:3px}
.mv{font:500 12px var(--font-num)}.mv.up{color:#2b8a3e}.mv.dn{color:var(--amber)}.mv.new{color:var(--muted)}

/* ---------- atoms ---------- */
/* The four atoms of the declutter (docs/plans/bidology-declutter): the band, the chance cell, the route tag (.tag,
   above) and the cut mark, plus the key line and the run tray. A band uses the code's names, status(): lock | in | bub
   | out. Position carries the meaning before colour does; rose is spent on the cut only, amber on In the hunt only. */
/* the chance cell: the number is ink (bold for a lock, muted for a long shot); the bar takes the row's band, from its
   total chance, not the column's own value */
.ch .n{min-width:38px;text-align:right}
.ch.lock .n{font-weight:700}
.ch.out .n{color:var(--muted)}
.ch.bub .bar i{background:var(--amber)}
.ch.out .bar i{background:var(--faint)}
.ch.sm{font-size:12px}.ch.sm .n{min-width:32px}.ch.sm .bar{width:40px;height:5px}
.ch.lg{font-size:15px}
/* the cut mark: a fixed 40 px track, so every row's words start at the same x. A faint baseline, the rose cut line at
   13 px, and the dot left of it (inside, ink), on it (level, amber, the line through the dot) or right of it (outside,
   amber, about 1 px farther per second per scorer, up to 13). A lock is a ringed ink dot with no line; .none keeps
   the column for a need told in words only. */
.cm{position:relative;display:inline-block;width:40px;height:16px;vertical-align:middle;flex:none}
.cm::before{content:"";position:absolute;left:0;right:0;top:7.5px;height:1px;background:var(--line)}
.cm b{position:absolute;left:13px;top:1px;width:2px;height:14px;border-radius:1px;background:var(--heart);z-index:2}
.cm i{position:absolute;top:3.5px;width:9px;height:9px;border-radius:50%;background:var(--ink);z-index:1}
.cm.in i{left:2px}
.cm.edge i{left:9.5px;background:var(--amber)}
.cm.outs i{left:calc(18px + var(--gap,0px));background:var(--amber)}
.cm.lock::before,.cm.lock b{display:none}
.cm.lock i{left:9.5px;background:var(--ink);box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--ink)}
.cm.none{visibility:hidden}
/* the need: the mark, then the cut (a .tip: Peter's sentence opens in the info pop-up) and the state. span.need, not
   .need: it sits inside the tables' td.need. Parked in the tables for now (app.js needText()) */
span.need{display:inline-grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;font:500 13px var(--font-ui);color:var(--ink);white-space:nowrap}
span.need small{font-weight:400;color:var(--muted)}
table.grid span.need small{display:inline;font:inherit;font-weight:400;color:var(--muted)}
span.need small::before{content:"· "}
span.need .num{font-weight:500}
span.need.lg{font-size:15px}
/* a phone row: the cut on one line, the state under it */
@media (max-width:720px){
  span.need{white-space:normal;font-size:12.5px}
  span.need>.t{display:grid;line-height:1.25}
  span.need .tip{font-weight:600;width:max-content}
  span.need small,table.grid span.need small{font-size:11px}
  span.need small::before{content:none}
}
/* the ladder (the card): places 1 to 8 or more, the cut after the safe place, the team's dot on its projected place.
   .lstep, not .step: the simulator's numbered .step would bleed into it */
.lad{display:flex;align-items:center;gap:6px}
.lad .lstep{display:grid;gap:4px;justify-items:center;font:500 10px/1 var(--font-num);color:var(--faint)}
.lad .lstep i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.lad .lstep.me i{width:14px;height:14px;background:var(--ink);margin:-2px}
.lad .lstep.me{color:var(--ink);font-weight:600}
.lad.outs .lstep.me i{background:var(--amber)}
.lad.outs .lstep.me{color:var(--hunt-ink)}
.lad .cutl{width:2px;height:26px;border-radius:1px;background:var(--heart);margin:0 2px}
.lad .lgap{align-self:end;font:500 10px/1 var(--font-num);color:var(--faint)}
/* the key line, under the strip's counts on every view but Simulate */
.key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px;color:var(--muted)}
.key b{font-weight:600;color:var(--ink)}
.key .sw{display:inline-block;width:14px;height:6px;border-radius:3px;background:var(--amber);vertical-align:middle;margin-right:6px}
/* the run tray (Simulate): step 3's controls, docked to the bottom edge while step 3 is off screen. Its status is
   .tst, not .st (the status pill). Its buttons are the panel's own .simctl .go / .ghost and .seg */
.tray{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;align-items:center;gap:14px;padding:10px 32px calc(10px + env(safe-area-inset-bottom));background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--hair);box-shadow:0 -2px 10px rgba(0,0,0,.06)}
.tray .tst{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:14px;color:var(--muted);white-space:nowrap}
.tray .tst b{color:var(--ink);font-weight:600}
.tray .dot{width:8px;height:8px;border-radius:50%;background:var(--amber);flex:none}
.tray .dot.ok{background:var(--c5)}
.tray .prog{flex:none;flex-basis:auto;width:180px;height:6px;border-radius:3px;background:var(--bg3);overflow:hidden}
.tray .prog i{display:block;height:100%;background:var(--heart)}
.tray .seg button{padding:7px 11px;font-size:13px}
.tray .tst a{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tray[hidden]{display:none}   /* .tray's display:flex would beat the attribute */
.tray .tst .nms{overflow:hidden;text-overflow:ellipsis;max-width:42vw}
.tray .tst .num{color:var(--ink);font-family:var(--font-num)}
.tray .stepn{width:22px;height:22px;font-size:11px}
/* the panel's run buttons (.simctl .go / .ghost); Run again is the quieter dark one, since the results are current */
.tray .go{border:0;border-radius:999px;padding:10px 18px;background:var(--go-bg);color:#fff;font:700 14px var(--font-ui);cursor:pointer;white-space:nowrap}
.tray .go:hover{background:var(--go-bg-hover)}
.tray .go.dark{background:var(--neutral);color:var(--on-neutral)}
.tray .go.dark:hover{filter:brightness(1.15);background:var(--neutral)}
.tray .ghost{padding:10px 16px}
.tray button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.tray .linkb{font-size:13px;color:var(--muted);white-space:nowrap}
/* docked: the results' end clears it, and a toast sits above it */
body.tray-on #view-sim{padding-bottom:80px}
body.tray-on .toast{bottom:calc(24px + 64px + env(safe-area-inset-bottom))}
@media (max-width:720px){
  .tray{flex-wrap:wrap;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  /* one line: the state stays whole and the names end in an ellipsis (Phase 7: "3 changes" broke over two lines and
     the names ran on under it) */
  .tray .tst{flex-basis:100%;min-width:0}
  .tray .tst b{flex:none}
  .tray .tst .nms{flex:1 1 auto;min-width:0;max-width:none}
  .tray .go{flex:1 1 auto}
  body.tray-on #view-sim{padding-bottom:130px}
  body.tray-on .toast{bottom:calc(24px + 136px + env(safe-area-inset-bottom))}
}
.siml .linkb{margin-left:6px}
.siml{margin:0 0 24px}
/* the last run's odds kept on screen after a change, until the next run: said once above the tables, numbers muted */
.resstale{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:var(--bg2);font-size:14px;color:var(--ink-body)}
.resstale .dot{width:8px;height:8px;border-radius:50%;background:var(--amber);flex:none}
.resstale .linkb{font:inherit;font-weight:600}
.rescols.stale td.n{color:var(--muted)}
.rescols.stale td.n b{color:var(--muted)}
.rlk{display:inline-flex;margin-left:6px;vertical-align:-1px;color:var(--ink)}
.rlk .lki{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}
/* the room the step hints used to give between a step's head and its controls */
.simpanel .steph + .pick,.simpanel .steph + .simctl{margin-top:12px}
.rk{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 6px;border-radius:7px;font:600 12px/1 var(--font-num);color:var(--muted)}
.rk.g{background:var(--gold);color:var(--gold-ink)}.rk.s{background:var(--silver);color:var(--silver-ink)}.rk.b{background:var(--bronze);color:var(--bronze-ink)}

/* ---------- the bracket ---------- */
.board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 64px 400px 64px minmax(0,1fr);align-items:start;padding-top:18px}
.board .side{display:grid;gap:14px}
.board .side.l{grid-column:1}.board .side.r{grid-column:5}
.board .center{grid-column:3;position:sticky;top:150px}
.wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.wires path{fill:none;stroke:var(--line);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wires path.hot{stroke:var(--ink);stroke-width:2.4}
.wires circle{fill:var(--bg);stroke:var(--line);stroke-width:1.6}

.pod{background:var(--bg2);border-radius:16px;padding:12px 12px 10px}
.pod h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 2px 8px;font:650 15px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--ink)}
.pod h3 small{font:500 11px/1 var(--font-ui);color:var(--muted);letter-spacing:.02em}
.prow{display:grid;grid-template-columns:20px 26px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 6px;border-radius:9px;cursor:pointer;position:relative}
.prow:hover,.prow.hot{background:var(--bg)}
.prow .pl{font:500 12px var(--font-num);color:var(--faint);text-align:right}
.prow .nm{font:500 14px/1.2 var(--font-ui);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prow .p{display:flex;align-items:center;gap:6px;font:500 12px var(--font-num);color:var(--ink)}
.prow.out .nm,.prow.out .p{color:var(--muted)}
.prow.aq{background:var(--bg)}
.prow.aq::before{content:"";position:absolute;left:-12px;top:6px;bottom:6px;width:3px;border-radius:2px;background:var(--neutral)}
.prow.al::before{content:"";position:absolute;left:-12px;top:6px;bottom:6px;width:3px;border-radius:2px;background:var(--faint)}
.pod .autoline{height:0;border-top:1.5px dashed var(--faint);margin:4px 6px}
/* a box's "See all": the Regions tab, the region open in full */
.pod .podall{display:block;margin:6px 6px 0 auto;border:0;background:none;padding:4px 0;font:500 12px var(--font-ui);color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.pod .podall:hover{color:var(--ink)}
.rcard h3:focus{outline:none}
.pod .podall:focus-visible,.rcard h3:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
.side.r .prow.aq::before,.side.r .prow.al::before{left:auto;right:-12px}

.nat{border-radius:20px;overflow:hidden;background:var(--bg);box-shadow:0 0 0 1px var(--hair)}
.nat-head{position:relative;padding:18px 20px 16px;background:var(--neutral);color:var(--on-neutral)}
.nat-head .k{font:600 11px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;opacity:.7}
.nat-head h2{margin:8px 0 6px;font:700 24px/1.05 var(--font-display);letter-spacing:-.03em}
.nat-head .site{font-size:13px;opacity:.8}
.nat-head .pin{position:absolute;right:18px;top:18px;width:12px;height:12px;border-radius:50%;background:var(--heart);box-shadow:0 0 0 5px color-mix(in srgb,var(--heart) 30%,transparent)}
.nat-head .cnt{display:flex;gap:14px;margin-top:12px;font-size:12px;opacity:.85}
.nat-head .cnt b{font:600 13px var(--font-num)}
.nat-head .seedby{margin-top:8px;font-size:12px;opacity:.7}
/* the Nationals column's Simulate: this projected field, handed to the Meet Simulator (app.js natPillHTML) */
.nat-head .nat-go{margin-top:12px}
.nat-head .simpill:focus-visible{outline-color:var(--on-neutral)}
.seeds{list-style:none;margin:0;padding:6px 8px 10px}
.seed{display:grid;grid-template-columns:30px 26px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:6px 8px;border-radius:10px;cursor:pointer}
.seed:hover,.seed.hot{background:var(--bg3)}
.seed .nm{font:500 14px/1.15 var(--font-ui);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seed .nm small{display:block;font-size:11px;color:var(--muted);font-weight:400}
.seed .p{font:500 12px var(--font-num);color:var(--ink);min-width:36px;text-align:right}
.seed-gap{margin:4px 8px;font:600 10px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--faint)}

/* ---------- bubble watch ---------- */
.bubbles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 8px}
.bbox{border-radius:18px;padding:14px 14px 10px;background:var(--bg2)}
.bbox h3{margin:0 4px 10px;font:600 12px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.bbox.lastin h3{color:var(--ink)}
.bbox.thief h3{color:var(--hunt-ink)}
.bbox .brow{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 4px;border-radius:9px;cursor:pointer}
.bbox .brow:hover{background:var(--bg)}
.bbox .brow .nm{font:500 14px/1.2 var(--font-ui);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bbox .brow .nm small{display:block;font-size:11px;color:var(--muted);font-weight:400}
.bbox .brow .p{font:600 14px var(--font-num);color:var(--ink)}
.bbox .none{padding:8px 4px;font-size:13px;color:var(--muted)}
.locks{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:20px 0 6px}
.locks .none{font-size:13px;color:var(--faint)}
.locks .lab{font:600 12px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:6px}
.locks button{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--bg3);padding:4px 10px 4px 5px;border-radius:999px;font-size:13px;color:var(--ink);cursor:pointer}
.locks button .mk{width:20px;height:20px}

/* ---------- tables ---------- */
.h2{margin:34px 0 4px;font:700 26px/1.1 var(--font-display);letter-spacing:-.03em;color:var(--ink)}
.sub{margin:0 0 12px;color:var(--muted);font-size:14px;max-width:80ch}
.tw{overflow-x:auto}
/* the header sticks under the deck only where the table needs no sideways scroll (a scroll box would trap it) */
@media (min-width:1121px){.tw{overflow:visible}table.grid th{position:sticky;top:122px}}
table.grid{width:100%;border-collapse:collapse}
table.grid th{position:static;z-index:5;background:var(--bg);text-align:left;font:600 12px/1.2 var(--font-ui);letter-spacing:0;text-transform:none;color:var(--muted);padding:12px 10px;border-bottom:1px solid var(--line)}
.ms table.grid th{font:600 11px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase}
table.grid td{padding:10px;border-bottom:1px solid var(--hair);vertical-align:middle}
table.grid tr.row{cursor:pointer}
table.grid tr.row:hover td{background:var(--bg2)}
table.grid tr.row.sel td{background:var(--bg3)}
table.grid .who{display:flex;gap:10px;align-items:center;min-width:220px}
table.grid .who b{display:block;font:500 15px/1.2 var(--font-ui);color:var(--ink)}
table.grid .who small{display:block;font-size:12px;color:var(--muted)}
table.grid td.n{text-align:right;white-space:nowrap}
table.grid .ch{display:flex;align-items:center;gap:8px;justify-content:flex-end;font:500 14px var(--font-num);color:var(--ink)}
table.grid .need{font-size:13px;color:var(--ink-body);max-width:380px}
table.grid .need b{color:var(--ink)}
/* the need as Peter wrote it, a button that opens it with the 70% rule in the info pop-up */
.needb{display:block;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted transparent;text-underline-offset:3px}
.needb:hover{text-decoration-color:var(--faint)}
.needb:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:2px}
tr.line td{padding:0;border:0}
.cut{display:flex;align-items:center;gap:12px;margin:2px 0;font:700 11px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--heart)}
.cut::before,.cut::after{content:"";flex:1;height:0;border-top:2px dashed var(--heart)}
.cut span{padding:8px 0}
.cut .ib{text-transform:none;letter-spacing:0;color:var(--heart);border-color:var(--heart);vertical-align:1px}
.more{display:block;margin:18px auto 0;border:0;background:var(--bg3);padding:10px 18px;border-radius:999px;font:500 14px var(--font-ui);color:var(--ink);cursor:pointer}
.more:hover{filter:brightness(.95)}

/* ---------- regions ---------- */
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:16px;margin-top:18px}
.rcard{border-radius:18px;background:var(--bg2);padding:14px 14px 12px;scroll-margin-top:150px}
.rcard h3{display:flex;justify-content:space-between;align-items:baseline;margin:0 4px 2px;font:650 17px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--ink)}
.rcard h3 button{border:0;background:none;font:500 12px var(--font-ui);color:var(--muted);cursor:pointer;text-decoration:underline}
.rcard .rsub{margin:0 4px 10px;font-size:12px;color:var(--muted)}
.rcard .rsub b{color:var(--ink);font-weight:600}
/* the header's right side: the Simulate pill, then All N / Top 8 */
.rcard h3 .rt{display:inline-flex;flex:none;align-items:center;gap:10px;margin-left:auto;white-space:nowrap}
/* the run buttons' red (.simctl .go, .natrace .go), at pill size */
.simpill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px 5px 8px;border-radius:999px;background:var(--go-bg);color:#fff;font:700 12px var(--font-ui);white-space:nowrap;text-decoration:none}
.simpill svg{width:12px;height:12px;fill:currentColor}
.simpill:hover{background:var(--go-bg-hover)}
.simpill:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
button.simpill{border:0;cursor:pointer}
.rcard .rh,.rcard .rr{display:grid;grid-template-columns:24px 26px minmax(0,1fr) 54px 92px;gap:8px;align-items:center;padding:6px 4px}
.rcard .rh{font:600 10px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.rcard .rr{border-radius:9px;cursor:pointer}
.rcard .rr:hover{background:var(--bg)}
.rcard .rr .nm{font:500 14px/1.2 var(--font-ui);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcard .rr .nm small{display:block;font-size:11px;color:var(--muted)}
.rcard .rr .pl{font:500 12px var(--font-num);color:var(--faint);text-align:right}
.rcard .rr .pa{font:500 12px var(--font-num);color:var(--muted);text-align:right}
.rcard .rr .pt{display:flex;align-items:center;gap:6px;justify-content:flex-end;font:500 12px var(--font-num);color:var(--ink)}
.rcard .rr .pt .bar{width:40px}
/* the total's bar takes its band, as the chance cell's does */
.rcard .rr .pt.bub .bar i{background:var(--amber)}
.rcard .rr .pt.out .bar i{background:var(--faint)}
.rcard .aqline{margin:3px 4px;border-top:1.5px dashed var(--faint)}

/* ---------- method ---------- */
.acc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.acc div{padding:16px;border-radius:16px;background:var(--bg2);font-size:13px;color:var(--muted)}
.acc div b{display:block;font:700 34px/1.1 var(--font-display);letter-spacing:-.03em;color:var(--ink);margin-bottom:6px}
.acc div.now{background:var(--bg3)}
.acc .nowl{color:var(--ink);font-weight:600}
.prose{max-width:76ch;font-size:15px;color:var(--ink-body)}
.prose p{margin:0 0 14px}
.rules{display:grid;gap:4px;margin-top:10px;max-width:90ch}
.rules details{border-bottom:1px solid var(--hair);padding:12px 2px}
.rules summary{cursor:pointer;font:600 15px/1.3 var(--font-ui);color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:12px}
.rules summary::after{content:"+";color:var(--muted);font-weight:400}
.rules details[open] summary::after{content:"–"}
.rules p{margin:8px 0 4px;font-size:14px}
.rules cite{display:block;font-style:normal;font-size:12px;color:var(--muted)}

/* ---------- drawer ---------- */
.scrim{position:fixed;inset:0;z-index:50;background:rgba(20,22,25,.32)}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:60;width:440px;max-width:100vw;background:var(--bg);box-shadow:var(--shadow-xl);transform:translateX(105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);overflow-y:auto}
.drawer.open{transform:none}
.drawer-x{position:sticky;top:12px;float:right;margin:12px 12px 0 0;border:0;background:var(--bg3);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer;z-index:2}
.drawer-body{padding:26px 26px 40px}
.dk{font:600 11px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.dhead{display:flex;gap:14px;align-items:center;margin:14px 0 4px}
.dhead h2{margin:0;font:700 28px/1.05 var(--font-display);letter-spacing:-.035em;color:var(--ink)}
.dsub{font-size:13px;color:var(--muted);margin-bottom:18px}
.dsub a{cursor:pointer;text-decoration:underline}
.bign{display:flex;gap:16px;align-items:center;padding:16px;border-radius:16px;background:var(--bg2)}
.bign .p{font:700 54px/1 var(--font-display);letter-spacing:-.05em;color:var(--ink)}
.bign .r{font-size:13px;color:var(--muted);display:grid;gap:6px}
.split{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--bg3);margin-top:14px}
.split i{display:block;height:100%}
.split .a{background:var(--neutral)}.split .l{background:var(--faint)}
.splitk{display:flex;gap:14px;margin-top:6px;font-size:12px;color:var(--muted)}
.splitk span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;background:var(--neutral)}
.splitk span.l::before{background:var(--faint)}
.dh{margin:22px 0 8px;font:600 12px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
/* the card's need: Peter's sentence, the ladder (NCAA teams with a safe place), the projected place */
.needbox{display:grid;gap:12px;padding:14px;border-radius:14px;background:var(--bg2)}
.needbox p{margin:0}
.needbox .l1{font-size:14px;line-height:1.45;color:var(--ink-body)}
.needbox .l1 b{color:var(--ink);font-weight:600}
.needbox .l2{font-size:12.5px;color:var(--muted)}
.spark svg{display:block;width:100%;height:auto}
.spark text{font:500 10px var(--font-num);fill:var(--muted)}
.seven{display:grid;gap:2px}
.seven button{display:flex;justify-content:space-between;gap:10px;border:0;background:none;padding:8px 10px;border-radius:9px;text-align:left;cursor:pointer;font-size:14px;color:var(--ink)}
.seven button:hover:not(:disabled){background:var(--bg3)}
.seven button:disabled{cursor:default}
.seven small{display:block;font-size:11px;color:var(--amber)}
.empty{padding:40px 0;color:var(--muted)}

/* ---------- footer ---------- */
.foot{margin-top:56px;padding-top:20px;border-top:1px solid var(--hair);font-size:12px;color:var(--muted);max-width:110ch}

/* ---------- small screens ---------- */
@media (max-width:1120px){
  /* one grid for every region: the two sides were separate grids, so the left side's five regions ended its
     own grid with an empty cell before the right side began (Peter, 2026-10-16). Nationals leads, full width. */
  .board{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:14px}
  .board .center{grid-column:1/-1;position:static;order:-1}
  .board .side.l,.board .side.r{display:contents}
  .wires{display:none}
  .prow.aq::before,.prow.al::before{left:-12px!important;right:auto!important}
  .bubbles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .acc{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* the countdown keeps its 340px: between 721 and 850px it pushed the page 30px wider than the window; it wraps
   under the blurb instead */
@media (max-width:900px){.hero{flex-wrap:wrap}}
@media (max-width:720px){
  .page{padding:0 16px max(30dvh,calc(60px + env(safe-area-inset-bottom,0px)))}
  .deck{margin:0 -16px;padding:10px 16px;top:56px}
  .search{min-width:0;max-width:none;flex-basis:100%;margin-left:0}
  .hero{flex-direction:column;align-items:flex-start;gap:18px;padding-top:24px}
  .wordmark{font-size:54px}.bracket-glyph{width:44px;height:44px}
  .countdown{min-width:0;width:100%}
  .bubbles{grid-template-columns:1fr}
  .rgrid{grid-template-columns:1fr}
  table.grid .hide-s{display:none}
  table.grid .need{display:none}
  /* the bid tables (At-Large, Individual Bids) on a phone: the name column gives up its 220 px floor and the chance
     cells take the small size, so the columns a phone keeps fit 390 px without the table scrolling sideways (Phase 7;
     the cut-mark cell's own phone layout, parked with it in app.js needCell(), also hid the marks) */
  table.bidt th,table.bidt td{padding:9px 6px}
  table.bidt td:first-child,table.bidt th:first-child{padding-left:0}
  table.bidt td:last-child,table.bidt th:last-child{padding-right:0}
  table.bidt .who{min-width:0;gap:8px}
  table.bidt .who b{font-size:14px}
  table.bidt .who .mk{width:20px;height:20px}
  table.bidt .ch{font-size:12px;gap:6px}table.bidt .ch .n{min-width:32px}table.bidt .ch .bar{width:40px;height:5px}
  .drawer{top:auto;width:100vw;max-height:88vh;border-radius:20px 20px 0 0;transform:translateY(105%)}
  .drawer.open{transform:none}
}
@media (prefers-reduced-motion: reduce){ .drawer{transition:none} }

/* ---------- locks and scenarios ---------- */
.lki{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;vertical-align:-2px}
/* an official regional result (plan kpace-simulations Phase 7): the results-in line, region cards, Simulate */
.resin .lki.pin{margin-right:4px}
.rsub.resin{color:var(--ink)}
.selnote{border-bottom:1px dotted currentColor;cursor:help}
.lk{display:inline-flex;margin-left:6px;color:var(--heart)}
.scen{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 14px;border-radius:14px;background:var(--heart-soft);color:var(--ink);font-size:14px}
.scen .lki{color:var(--heart)}
.scen b{font-family:var(--font-ui);font-weight:700}
.scen-st{color:var(--heart-ink);font-family:var(--font-num);font-size:13px}
.scen button{border:0;border-radius:999px;padding:6px 12px;background:var(--bg);color:var(--ink);font:600 13px var(--font-ui);cursor:pointer}
.scen button:hover{background:var(--bg3)}
.lockbox{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px;padding:12px 14px;border-radius:14px;background:var(--bg2);font-size:14px;color:var(--muted)}
.lockbox span{margin-right:auto;font-weight:600;color:var(--ink)}
.lockbox button{border:0;border-radius:999px;padding:8px 14px;background:var(--neutral);color:var(--on-neutral);font:600 13px var(--font-ui);cursor:pointer}
.lockbox button:hover{filter:brightness(1.15)}
.lockbox.on{background:var(--heart-soft)}
.lockbox.on .lki{color:var(--heart)}
.lockbox.on button{background:var(--bg);color:var(--ink)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;max-width:min(560px,calc(100% - 32px));padding:12px 16px;border-radius:14px;background:var(--neutral);color:var(--on-neutral);font-size:14px;box-shadow:var(--shadow-xl)}
table.grid .ch.tm{color:var(--muted)}

/* ---------- the simulator ---------- */
.simgrid{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:28px;align-items:start;margin-top:8px}
.simpanel .h2:first-child{margin-top:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border-radius:999px;background:var(--bg3);color:var(--ink);font-size:14px;font-weight:600}
.chip .lki{color:var(--ink)}
.chip .mk{width:20px;height:20px}
.chip small{font-weight:500;color:var(--muted)}
.chip button{border:0;width:24px;height:24px;border-radius:50%;background:var(--bg);color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.chips .none{color:var(--muted);font-size:14px}
.simctl{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.simctl .go{border:0;border-radius:999px;padding:11px 18px;background:var(--go-bg);color:#fff;font:700 15px var(--font-ui);cursor:pointer}
.simctl .go:not(:disabled):hover{background:var(--go-bg-hover)}
/* the dark theme's --heart is a light pink made for marks; the run button keeps the brand red so white text reads */
.simctl .go:disabled{opacity:.6;cursor:default}
/* why a run could not be made (busy with its countdown, unavailable, Pro): under the run button, as in the tray */
.simnote{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--hunt-ink)}
.simnote:empty{display:none}
.simnote a{color:inherit;font-weight:600}
.simctl .ghost{border:0;border-radius:999px;padding:11px 16px;background:var(--bg3);color:var(--ink);font:600 14px var(--font-ui);cursor:pointer}
.ghost{border:0;border-radius:999px;padding:9px 14px;background:var(--bg3);color:var(--ink);font:600 14px var(--font-ui);cursor:pointer}
.fine{margin:14px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.simlive{display:grid;gap:16px}
.counter{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.counter b{font-size:56px;font-weight:500;line-height:1;color:var(--ink);letter-spacing:-.03em}
.counter span{color:var(--muted);font-size:15px}
.prog{flex-basis:100%;display:block;height:6px;border-radius:3px;background:var(--bg3);overflow:hidden}
.prog i{display:block;height:100%;background:var(--heart);transition:width .2s}
.sh{margin-bottom:8px;font:600 12px/1.4 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.season,.conv,.swing{padding:16px 18px;border-radius:18px;background:var(--bg2)}
.sr{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;align-items:center;padding:5px 0;border-top:1px solid var(--hair);font-size:14px}
.sr:first-of-type{border-top:0}
.sr .g{color:var(--muted)}
.sr .aqs{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.sr .aqs .mk{width:20px;height:20px;margin-right:-6px}
.sr .aqs b{font-weight:600;color:var(--ink)}
.sr.li .g{color:var(--heart-ink);font-weight:600}
.conv svg{display:block;width:100%;height:auto}
/* the chart headings (Qualification Odds, Chance of winning the meet) read as written, not in capitals */
.conv .sh{letter-spacing:0;text-transform:none}
.conv .sh small{display:block;margin-top:2px;font:400 12px/1.4 var(--font-ui);letter-spacing:0;text-transform:none;color:var(--muted)}
.conv svg text{font:11px var(--font-num);fill:var(--muted)}
.conv .gl{stroke:var(--hair)}
.conv .band{opacity:.12}
.conv .ln{fill:none;stroke-width:2.2;stroke-linejoin:round}
.ckey{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:13px;color:var(--ink)}
/* Bidology's chart follows eight teams: the key sits in two rows of four (last four in, then first four out) */
#simLive:not(.ms-live) .ckey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 14px}
#simLive:not(.ms-live) .ckey>span{display:flex;align-items:center;gap:6px;min-width:0}
#simLive:not(.ms-live) .ckey i{flex:none;margin-right:0}
#simLive:not(.ms-live) .ckey .ckn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#simLive:not(.ms-live) .ckey b{flex:none}
@media (max-width:560px){#simLive:not(.ms-live) .ckey{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ckey i{display:inline-block;width:12px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle}
.sw-row{display:grid;grid-template-columns:22px minmax(0,1fr) 120px 44px 40px;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--hair);font-size:14px;cursor:pointer}
.sw-row:first-of-type{border-top:0}
.sw-row .mk{width:22px;height:22px}
.sw-row .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}
.bar2{position:relative;height:8px;border-radius:4px;background:var(--bg3)}
.bar2 i{position:absolute;top:0;bottom:0;border-radius:4px}
.bar2 i.up{left:50%;background:var(--c5)}
.bar2 i.dn{right:50%;background:var(--heart)}
.sw-row b.up{color:var(--c5)} .sw-row b.dn{color:var(--heart)}
.sw-row .now{color:var(--muted);text-align:right}
/* one season, from the regionals to the field */
.watch{display:grid;gap:8px;margin-top:8px}
.wh{margin-top:10px;font:600 12px/1.4 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--heart)}
.wr{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid var(--hair);animation:pop .3s ease both}
.wr .g{font-size:13px;color:var(--muted);padding-top:3px}
.wr ol{margin:0;padding:0;list-style:none;display:grid;gap:3px}
.wr li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:14px;color:var(--muted)}
.wr li .mk{width:20px;height:20px}
.wr li.aq{color:var(--ink);font-weight:600}
.wr li b{font:500 13px var(--font-num)}
.wp{display:grid;grid-template-columns:24px 22px auto minmax(0,1fr);gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--hair);font-size:14px;animation:pop .3s ease both}
.wp .n{font:600 12px var(--font-num);color:var(--muted)}
.wp .mk{width:22px;height:22px}
.wp small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wend{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--heart-soft);font-weight:700;color:var(--ink)}
@keyframes pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.wr,.wp{animation:none}.prog i{transition:none}}
@media (max-width:900px){.simgrid{grid-template-columns:1fr}}
@media (max-width:720px){.sw-row{grid-template-columns:22px minmax(0,1fr) 70px 40px}.sw-row .now{display:none}.sr{grid-template-columns:90px minmax(0,1fr)}}
@media (max-width:920px){.topbar-through{display:none}}

/* ---------- column tips: a dotted label that opens the info pop-up on a click or tap (never on hover) ---------- */
.tip{padding:0;border:0;border-bottom:1px dotted var(--faint);border-radius:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.tip:hover,.tip[aria-expanded="true"]{border-bottom-color:var(--ink);color:var(--ink)}
.tip:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* ---------- one simulated season, full width ---------- */
.simseason,.simres{margin-top:36px}
/* the results' side navigation (paintSimNav): a sticky column from 1100px, a row of links above the results below it */
.simbody{display:block}
.simnav ol{list-style:none;margin:0;padding:0}
.simnav-h{margin:0 0 8px;font:600 12px/1 var(--font-ui);color:var(--muted)}
.simnav a{display:block;padding:6px 10px;border-radius:8px;color:var(--muted);font:500 14px/1.3 var(--font-ui);text-decoration:none}
.simnav a:hover{background:var(--bg2);color:var(--ink)}
.simnav a.on{background:var(--bg3);color:var(--ink);font-weight:600}
.simnav li.sub a{padding-left:20px;font-size:13px}
.simnav[hidden]{display:none}
@media (min-width:1100px){
  .simbody{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start;margin-top:36px}
  /* the first section with something in it sits level with the navigation: the odds after a run, else the one season
     or meet shown on its own (an empty section has no height, so its margin would show as a gap) */
  .simbody .simmain>*{margin-top:0}
  .simbody .simmain>:not(:empty)~:not(:empty){margin-top:36px}
  /* the results sit beside the navigation; while it is hidden (a season playing, nothing run yet) or absent (Bidology) they take the
     whole width, so the season's boxes keep their rows instead of stacking in the navigation's 200px column */
  .simbody>.simmain{grid-column:2}
  .simbody:not(:has(>.simnav:not([hidden]))){grid-template-columns:minmax(0,1fr)}
  .simbody:not(:has(>.simnav:not([hidden])))>.simmain{grid-column:1}
  .simnav{position:sticky;top:150px;max-height:calc(100vh - 170px);overflow-y:auto;padding:4px 0}
}
@media (max-width:1099px){
  .simnav{margin-top:28px;padding:10px 12px;border-radius:14px;background:var(--bg2)}
  .simnav ol{display:flex;flex-wrap:wrap;gap:4px}
  .simnav li.sub a{padding-left:10px}
}
.simmain{min-width:0}
#simLive,#res-top,#res-teams,#res-ind{scroll-margin-top:150px}
.svtoggle{margin-left:auto;border:0;border-radius:999px;padding:6px 12px;background:var(--bg3);color:var(--ink);font:600 13px var(--font-ui);cursor:pointer}
.svtoggle:hover{filter:brightness(.95)}
.svhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.svhead .h2{margin:0}
.svhead span{color:var(--muted);font:500 14px var(--font-num)}
.svh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:22px 0 10px;font:700 15px/1.3 var(--font-display);color:var(--ink)}
.svh small{font:500 13px var(--font-ui);color:var(--muted)}
.svcard{padding:14px 16px;border-radius:16px;background:var(--bg2)}
.svcard h3{margin:0 0 8px;font:700 15px var(--font-display);color:var(--ink)}
.svr{display:grid;grid-template-columns:18px 22px minmax(0,1fr) 72px 34px;gap:8px;align-items:center;padding:4px 0;font-size:14px;color:var(--muted)}
.svr .pl{font:500 12px var(--font-num);color:var(--faint)}
.svr .mk{width:22px;height:22px}
.svr .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svr.aq,.svr.al{color:var(--ink);font-weight:600}
.svr b{font:500 13px var(--font-num);text-align:right}
.svbar{height:6px;border-radius:3px;background:var(--bg3)}
.svbar i{display:block;height:100%;border-radius:3px;background:var(--faint)}
.svr.aq .svbar i{background:var(--ink)}
.svr.al .svbar i{background:var(--muted)}
.rescols{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;margin-top:6px}
@media (max-width:900px){.rescols{grid-template-columns:1fr}}

/* a mark drawn from the shareable copy's sprite sheet */
.mk.spr{display:inline-block;flex:none;background-repeat:no-repeat}

/* ---------- Pro tools (2026-10-07) ---------- */
.seemore{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--bg);text-align:left;cursor:pointer}
.seemore:hover{background:var(--bg2)}
.seemore > span:first-child{flex:1;display:grid;gap:2px}
.seemore b{font:600 15px/1.2 var(--font-ui);color:var(--ink)}
.seemore small{font-size:12px;color:var(--muted)}
.h2row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 16px}
.h2row .h2{margin-bottom:4px}
.probtn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:9px 14px;background:var(--bg3);color:var(--ink);font:600 14px var(--font-ui);cursor:pointer;margin-bottom:6px}
.probtn:hover{filter:brightness(.95)}
.linkb{border:0;background:none;padding:0;font:inherit;color:var(--ink);text-decoration:underline;cursor:pointer}

/* the pop-up */
body.modal-open{overflow:hidden}
/* ---------- pop-ups: one contract (assets/surface.js, after the app's responsive surface) ----------
   From 768px, a centred dialog: sm / md / lg = 420 / 560 / 760px wide, as tall as its content up to
   min(800px, 100vh - 96px), scrolling inside. Below 768px, a bottom sheet as tall as its content up to 90% of the
   screen, with a grabber; a pull down dismisses it. The content owns its inset: 24px, 16px at the least. */
.mscrim{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.5)}
.ksurf{position:fixed;background:var(--bg);color:var(--ink);overflow-y:auto;overscroll-behavior:contain;outline:none}
.ksurf[hidden]{display:none}
.ksurf[data-mode="dialog"]{top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100vw - 48px);max-height:min(800px,calc(100vh - 96px));border-radius:16px;box-shadow:var(--shadow-xl)}
.ksurf--sm[data-mode="dialog"]{max-width:420px}.ksurf--md[data-mode="dialog"]{max-width:560px}.ksurf--lg[data-mode="dialog"]{max-width:760px}
.ksurf[data-mode="sheet"]{left:0;right:0;bottom:0;width:100%;max-height:90vh;border-radius:16px 16px 0 0;box-shadow:0 -2px 10px rgba(0,0,0,.2);padding-bottom:env(safe-area-inset-bottom,0px);touch-action:pan-y;transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.ksurf[data-mode="sheet"]::before{content:"";display:block;width:40px;height:5px;margin:8px auto 0;border-radius:2.5px;background:var(--line)}
@media (prefers-reduced-motion: reduce){.ksurf[data-mode="sheet"]{transition:none}}
.modal{z-index:71}
.modal-x{position:sticky;top:12px;float:right;margin:12px 12px 0 0;border:0;background:var(--bg3);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer;z-index:2;color:var(--ink)}
.modal-body{padding:24px}
.ksurf[data-mode="sheet"] .modal-body{padding:12px 16px 24px}
.ksurf[data-mode="sheet"] .modal-x{top:4px;margin:4px 8px 0 0}
.modal table.grid th{position:static}
.modal .tw{overflow-x:auto}
.mh{margin:12px 0 6px;font:700 28px/1.1 var(--font-display);letter-spacing:-.03em;color:var(--ink)}
.mh3{margin:0 0 2px;font:650 20px/1.2 var(--font-display);letter-spacing:-.02em;color:var(--ink)}
.msub{margin:0 0 10px;font-size:14px;color:var(--muted);max-width:72ch}
.msec{margin-top:30px}
.msh{margin:16px 0 4px;font:600 12px/1.4 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:16px}
.tiles div{padding:12px 14px;border-radius:14px;background:var(--bg2);font-size:12.5px;line-height:1.4;color:var(--muted)}
.tiles b{display:block;margin-bottom:4px;font:600 22px/1.15 var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--ink)}
.wait{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px;border-radius:14px;background:var(--bg2);font-size:14px;color:var(--muted)}
table.grid td small{display:block;font:400 12px/1.4 var(--font-ui);color:var(--muted);letter-spacing:0}
table.om td.res{font-size:14px;color:var(--ink-body)}
table.om td.res b{color:var(--ink);font-weight:600}
table.om td.res small{display:inline;margin-left:6px}
.swg{font:600 13px var(--font-num)}.swg.up{color:var(--c5)}.swg.dn{color:var(--heart)}
.vd{display:inline-block;padding:2px 9px;border-radius:999px;font:600 12px/1.5 var(--font-ui)}
.vd.pos{background:var(--neutral);color:var(--on-neutral)}
.vd.warn{background:var(--amber-soft);color:var(--amber)}
.vd.neg{background:var(--bg3);color:var(--muted)}
.cvs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 10px}
.cteam{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:var(--bg2)}
.cside{position:relative;min-width:0}
.cteam.cswap{width:100%;border:0;background:var(--bg2);text-align:left;font:inherit;color:inherit;cursor:pointer}
.cteam.cswap>div{flex:1;min-width:0}
.cteam.cswap .chev{flex:none;color:var(--muted);transition:transform .15s}
.cteam.cswap[aria-expanded="true"] .chev{transform:rotate(180deg)}
.cteam.cswap:hover{background:var(--bg3)}
.cteam.cswap:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.cmenu{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 6px);padding:8px;border-radius:14px;background:var(--bg);box-shadow:var(--shadow-xl);border:1px solid var(--hair)}
.cmenu input{width:100%;margin:0 0 6px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:500 14px var(--font-ui)}
.cmlist{max-height:300px;overflow-y:auto;display:grid;gap:2px}
.cmlist button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:10px;background:none;text-align:left;font:600 14px var(--font-ui);color:var(--ink);cursor:pointer}
.cmlist button:hover,.cmlist button:focus-visible{background:var(--bg3);outline:none}
.cmlist button[hidden]{display:none}
.cmlist button[aria-selected="true"]{background:var(--bg2)}
.cmlist .nm{min-width:0}
.cmlist small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.cteam b{display:block;font:650 17px/1.2 var(--font-display);letter-spacing:-.01em;color:var(--ink)}
.cteam small{display:block;font-size:12.5px;color:var(--muted)}
.csum{margin:4px 0 8px;font-size:15px;color:var(--ink-body)}
.csum b{color:var(--ink)}
table.cmp .crit{display:flex;gap:10px;align-items:flex-start}
table.cmp th[scope="row"]{padding:12px 10px;vertical-align:top;border-bottom:1px solid var(--hair);background:none;font:600 14px/1.3 var(--font-ui);letter-spacing:0;text-transform:none;color:var(--ink)}
table.cmp th[scope="row"] small{display:block;margin-top:3px;font:400 12.5px/1.4 var(--font-ui);color:var(--muted)}
table.cmp td{vertical-align:top;padding-top:12px}
table.cmp td.n{color:var(--muted)}
table.cmp td.n.win{color:var(--ink);font-weight:700}
.cn{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--bg3);font:600 11px var(--font-num);color:var(--muted)}
.ed{display:inline-block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 9px;border-radius:999px;background:var(--neutral);color:var(--on-neutral);font:600 12px/1.4 var(--font-ui);vertical-align:middle}
.lvl{font-size:13px;color:var(--muted)}
tr.later th[scope="row"]{color:var(--muted)}
td.lt{font-size:13px;color:var(--muted)}

/* the Simulate panel's steps */
.simgrid{grid-template-columns:minmax(0,400px) minmax(0,1fr)}
.step{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--hair)}
.step:last-child{padding:0;margin:0;border:0}
.steph{display:flex;align-items:center;gap:10px}
.steph .h2{margin:0;font-size:22px}
.stepn{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--neutral);color:var(--on-neutral);font:700 12px var(--font-num)}
.hint{margin:8px 0 10px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.pick{position:relative;display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--muted)}
.pick:focus-within,.search:focus-within{border-color:var(--ink)}
/* a search box shows focus once, on its own border: the field inside it takes no ring of its own */
.pick input:focus-visible,.search input:focus-visible{box-shadow:none;border-radius:0}
.cmenu input:focus-visible,.luadd input:focus-visible{box-shadow:none;border-color:var(--ink)}
.pick input{flex:1;min-width:0;border:0;background:none;outline:none;font:400 14px var(--font-ui);color:var(--ink)}
.pick .results{top:44px}
.lkrow,.luhead{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;padding:12px;border-radius:14px;background:var(--bg2)}
.lkrow .nm,.luhead .nm{flex:1;min-width:150px}
.lkrow .nm b,.luhead .nm b{display:block;font:600 15px/1.2 var(--font-ui);color:var(--ink)}
.lkrow .nm small,.luhead .nm small{font-size:12.5px;color:var(--muted)}
.lkb{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.lkb button{border:0;border-radius:999px;padding:8px 13px;background:var(--bg);color:var(--ink);font:600 13px var(--font-ui);cursor:pointer}
.lkb button.dark{background:var(--neutral);color:var(--on-neutral)}
.lkb button:hover{filter:brightness(1.1)}
.lkb .on{display:inline-flex;align-items:center;gap:6px;margin-right:auto;font-size:14px;font-weight:600;color:var(--ink)}
.lkb .on .lki{color:var(--heart)}
.xbtn{border:0;border-radius:999px;padding:8px 13px;background:var(--bg3);color:var(--ink);font:600 13px var(--font-ui);cursor:pointer}
.lkb .xbtn{background:transparent;color:var(--muted)}
.lued .seg{margin:10px 0 8px}
.luhd,.lurow{display:grid;grid-template-columns:20px minmax(0,1fr) 64px 96px;gap:8px;align-items:center;padding:7px 2px}
.luhd{white-space:nowrap;padding-bottom:4px;font:600 10px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.lurow{border-top:1px solid var(--hair);font-size:14px;color:var(--muted)}
.lurow.on{color:var(--ink)}
.lurow .ln{font:600 12px var(--font-num);color:var(--ink);text-align:center}
.lurow .nm{min-width:0}
.lurow.on .nm{font-weight:600}
.lurow .nm small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:400;color:var(--muted)}
.lurow.isout .nm{color:var(--faint);text-decoration:line-through}
.lurow .t{text-align:right;font-size:13px}
.lurow .lurm{display:inline;margin-left:6px;font-size:12px}
.lurow.pinned .ln{background:var(--bg3);border-radius:6px}
/* step 2: folded to its head and a chevron; open, every team by region, each a row that opens in place to its runners */
.stepfold{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;margin-left:auto;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.stepfold:hover{background:var(--bg3)}
.stepfold:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* closed right, open down, as every KPACE disclosure (Tommy, 2026-10-22) */
.lucaret{flex:none;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateX(-2px) rotate(-45deg);transition:transform .2s ease}
.stepfold[aria-expanded="true"] .lucaret,.luteam.open>.lult .lucaret{transform:translateY(-2px) rotate(45deg)}
@media (prefers-reduced-motion: reduce){.lucaret{transition:none}}
.lusearch{margin-top:12px}
#luBody{margin-top:2px}
.lulist{margin-top:10px;border-top:1px solid var(--hair)}
.lulg{display:flex;align-items:baseline;gap:6px;padding:14px 4px 6px;font:600 11px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.lulg small{letter-spacing:0;font-weight:500}
.luteam{border-bottom:1px solid var(--hair)}
.lult{display:grid;grid-template-columns:22px minmax(0,1fr) auto 14px;gap:10px;align-items:center;width:100%;padding:8px 4px;border:0;background:none;text-align:left;cursor:pointer;font:500 14px var(--font-ui);color:var(--ink)}
.lult .mk{width:22px;height:22px}
.lult .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lult .nm small{display:block;font-size:12px;color:var(--heart-ink);font-weight:500;overflow:hidden;text-overflow:ellipsis}
.lult .p{font:500 13px var(--font-num);color:var(--muted)}
.lult:hover{background:var(--bg2)}
.lult:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
/* a team opened in the list: its row already names it, so the editor's head keeps only the counts and Done */
.lued.luin{margin:0 0 12px}
.lued.luin .luhead>.mk,.lued.luin .luhead .nm b{display:none}
.lufoot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin:10px 0 0;font-size:13px}
.lufoot .linkb{font-size:13px}
.luadd{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 4px;padding:10px 12px;border-radius:12px;background:var(--bg2)}
.luadd .lual{font:600 13px var(--font-ui);color:var(--ink);margin-right:2px}
.luadd input{flex:1 1 140px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:500 14px var(--font-ui)}
.luadd input[name="t5"]{flex:0 1 160px;font-family:var(--font-num)}
.luadd button{border:0;border-radius:999px;padding:8px 14px;background:var(--neutral);color:var(--on-neutral);font:600 13px var(--font-ui);cursor:pointer}
.tg{border:0;border-radius:999px;padding:6px 10px;background:var(--bg3);color:var(--muted);font:600 12px var(--font-ui);cursor:pointer;white-space:nowrap}
.tg[aria-pressed="true"]{background:var(--neutral);color:var(--on-neutral)}
.tg.out[aria-pressed="true"]{background:var(--heart-soft);color:var(--heart-ink)}
.luwarn{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:var(--amber-soft);color:var(--amber);font-size:13px}
.simpanel .chips{margin-top:12px}
.chip.lu{background:var(--bg3)}
.chip .chipname{display:inline-flex;align-items:center;gap:6px;width:auto;height:auto;border-radius:0;padding:0;background:none;font:600 14px var(--font-ui);color:var(--ink);cursor:pointer}
.chip.lu small{color:var(--muted)}
@media (max-width:900px){.simgrid{grid-template-columns:1fr}}
@media (max-width:720px){
  .cvs{grid-template-columns:1fr}
  table.cmp th[scope="row"]{min-width:180px}
}

/* ---------- navigation: the app's left side sheet, with KPACE as the top tier (2026-10-07) ---------- */
/* The KPACE logo is the approved mark drawn from three alpha masks (as on the rankings page), filled from tokens so
   it follows the theme. The word KPACE sits over it in transparent ink: it names the link and find-in-page lands on
   the logo. */
.kp{position:relative;display:inline-flex;align-items:center;vertical-align:middle;text-decoration:none}
.kpm{position:relative;display:block;height:24px;aspect-ratio:494/160}
.kpm>span{position:absolute;inset:0;-webkit-mask:var(--kpm) center/contain no-repeat;mask:var(--kpm) center/contain no-repeat}
.kpm-l{--kpm:url(kpace/kpace-letters-mask.png);background:var(--muted)}
.kpm-t{--kpm:url(kpace/kpace-track-mask.png);background:var(--ink)}
.kpm-n{--kpm:url(kpace/kpace-lane-mask.png);background:var(--heart)}
.kpw{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:transparent;font:800 19px/1 var(--font-display);letter-spacing:.04em;white-space:nowrap}
.topbar-prod{display:inline-flex;align-items:center}
.topbar-prod .crumb.kp{border-radius:8px;padding:4px 6px;margin:-4px -6px}
.topbar-prod .crumb.kp:hover{background:var(--bg3)}
.beta-badge{flex:none;display:inline-flex;align-items:center;margin-left:10px;padding:4px 9px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font:500 12px/1 var(--font-ui);letter-spacing:0;white-space:nowrap}
@media (max-width:760px){.beta-badge{display:none}}
/* The bar stays on one line at every width. Measured natural widths (Meet Simulations, the longer name): everything
   ~890px; without the "through" note ~735; without the beta badge ~610; compact (16px gutter, no Kailo wordmark, the
   side sheet carries the Kailo mark) ~470, ~375 once Feedback is an icon; without the "KPACE /" crumb ~300. Items go
   in that order; the page name, Feedback and the account always stay. */
@media (max-width:640px){.topbar{padding:0 16px;gap:10px}.topbar>.brand,.topbar-sep{display:none}.topbar-prod .kpm{height:20px}}
@media (max-width:400px){.topbar-prod .crumb.kp,.topbar-prod .crumb-sep{display:none}}
/* Bidology carries its views menu in the bar too (~125px): the "KPACE /" crumb goes from 560px, and below 360px the
   product name, so the menu, Feedback and the account always fit */
@media (max-width:560px){.topbar-prod.with-views .crumb.kp,.topbar-prod.with-views .crumb.kp+.crumb-sep{display:none}}
@media (max-width:400px){.topbar-prod.with-views .vnav-sep{display:inline;margin:0 4px 0 6px}}
@media (max-width:359px){.topbar-prod.with-views .prod-name,.topbar-prod.with-views .vnav-sep{display:none}}
/* the view's name gives way before the account does: on a narrow phone the longest view (At-Large Watch) pushed Login
   past the edge, so the crumb shrinks and the name ends in an ellipsis instead (Phase 7) */
.topbar-prod.with-views{min-width:0}
.topbar-prod.with-views .vnav,.topbar-prod.with-views .vnav-btn{min-width:0}
#vnavLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-btn{flex:none;display:grid;place-items:center;width:38px;height:38px;margin-left:-10px;border:0;border-radius:10px;background:none;color:var(--ink);cursor:pointer}
.menu-btn:hover{background:var(--bg3)}
.menu-btn svg,.sidenav-x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sidenav-scrim{position:fixed;inset:0;z-index:90;background:rgba(20,22,25,.32)}
.sidenav{position:fixed;top:0;left:0;bottom:0;z-index:91;width:min(350px,88vw);overflow-y:auto;padding:0 0 32px;background:var(--bg);box-shadow:var(--shadow-xl);transform:translateX(-102%);visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility .28s}
.sidenav.open{transform:none;visibility:visible}
.sidenav-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 6px}
.sidenav-x{display:grid;place-items:center;width:36px;height:36px;margin-left:-6px;border:0;border-radius:10px;background:none;color:var(--muted);cursor:pointer}
.sidenav-x:hover{background:var(--bg3);color:var(--ink)}
.sn-sym{width:30px;height:30px;fill:#EE2737}
.sn,.sn-sub{list-style:none;margin:0;padding:0}
.sn{padding:6px 24px 0}
/* KPACE heads its tier like a section header, at the size of the links under it */
.sn-kphead{margin:18px 0 6px;padding:8px 24px 10px;border-bottom:1px solid var(--hair)}
.sn-kphome{padding:3px 8px;margin:-3px -8px;border-radius:8px}
.sn-kphome:hover{background:var(--bg3)}
.sn-kphome .kpm{height:21px}
.sn-kphome .kpw{font-size:16px}
.sn-h{margin:18px 0 6px;padding:10px 24px;border-bottom:1px solid var(--hair);font:600 12px/1 var(--font-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sn-sub a,.sn-sub .soon{display:block;padding:10px 24px 10px 36px;border-radius:8px;color:var(--ink-body);font-size:15px;text-decoration:none}
.sn-sub a:hover{background:var(--bg3)}
.sn-sub a[aria-current="page"]{background:var(--bg2);color:var(--ink);font-weight:600}
.sn-sub .soon{color:var(--muted);cursor:default}
.sn-top{display:block;margin-top:16px;padding:10px 24px;border-radius:8px;color:var(--ink-body);font-size:16px;font-weight:500;text-decoration:none}
.sn-top:hover{background:var(--bg3)}
.nb{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:999px;background:var(--bg3);color:var(--faint);font:600 11px/1.3 var(--font-ui);letter-spacing:.05em;text-transform:uppercase;vertical-align:middle}
@media (prefers-reduced-motion: reduce){.sidenav{transition:none}}

/* ---------- explainers (2026-10-07) ---------- */
/* the "i" button beside a heading or column; it opens a short note (#ipop) */
.ib{display:inline-grid;place-items:center;width:20px;height:20px;margin:0 0 0 6px;padding:0;vertical-align:2px;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--muted);font:600 12px/1 var(--font-ui);cursor:pointer;flex:none}
.ib:hover,.ib[aria-expanded="true"]{border-color:var(--ink);color:var(--ink)}
.h2 .ib{vertical-align:6px}
th .ib{width:18px;height:18px;font-size:11px;margin-left:4px;vertical-align:1px}
.bbox h3 .ib{width:18px;height:18px;font-size:11px}
.iscrim{position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.5)}
body.info-open{overflow:hidden}
.ipop{z-index:80;padding:24px 24px 20px}
.ipop[data-mode="sheet"]{padding:0 16px 20px}
.ipop[data-mode="sheet"] .ipop-h{margin-top:14px}
.ipop-h{font:650 19px/1.25 var(--font-display);letter-spacing:-.01em;color:var(--ink);margin-bottom:8px}
.ipop-b{font-size:14px;line-height:1.5;color:var(--ink-body)}
.ipop-b p{margin:0 0 8px}
.ipop-b ol{margin:0 0 8px;padding-left:20px}
.ipop-b li{margin-bottom:3px}
.ipop-warn{padding:9px 11px;border-radius:10px;background:var(--bg3);color:var(--ink-body)}
.ipop-warn b{color:var(--ink)}
.ipop-f{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-top:10px;border-top:1px solid var(--hair);margin-top:6px}
.ipop-f a,.sh-learn{font:600 14px var(--font-ui);color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.ipop-f button{border:0;border-radius:999px;padding:6px 12px;background:var(--bg3);color:var(--ink);font:600 13px var(--font-ui);cursor:pointer}
.ipop-f a.ipop-go{border-radius:999px;padding:9px 18px;background:var(--go-bg);color:#fff;font:700 14px var(--font-ui);text-decoration:none}
.ipop-f a.ipop-go:hover{background:var(--go-bg-hover)}
.ipop-f .ipop-done{margin-left:auto;padding:9px 18px;background:var(--neutral);color:var(--on-neutral);font-size:14px}
.infoline{margin:0 0 14px}

/* the strip above the simulator and the how-it-works tab */
.simintro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:0 0 22px;padding:14px 18px;border-radius:16px;background:var(--bg2)}
.simintro b{color:var(--ink)}
.simintro span{color:var(--muted)}
.simintro-b{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.simintro-b.mrow{margin:6px 0 28px}
.simintro .probtn{margin:0}

/* the stepped simulator explainer in the pop-up */
.sh-steps{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.sh-steps button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:6px 12px 6px 6px;background:var(--bg);color:var(--muted);font:500 13px var(--font-ui);cursor:pointer}
.sh-steps button .mono{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--bg3);color:var(--ink);font-size:11px}
.sh-steps button[aria-selected="true"]{border-color:var(--ink);color:var(--ink)}
.sh-steps button[aria-selected="true"] .mono{background:var(--neutral);color:var(--on-neutral)}
.sh-body{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:22px;align-items:center}
@media (max-width:720px){.sh-body{grid-template-columns:1fr}}
.sh-text p{margin:0 0 10px;font-size:15px;line-height:1.55;max-width:60ch}
.sh-art{width:100%;max-width:320px;border-radius:14px;background:var(--bg2);padding:12px}
.sh-ground,.sh-post{stroke:var(--line);stroke-width:2}
.sh-post{stroke:var(--ink);stroke-width:3}
.sh-a{fill:var(--neutral)} .sh-b{fill:var(--c4)} .sh-c{fill:var(--faint)}
.sh-race circle{animation:shRun 1.6s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d)}
@keyframes shRun{from{transform:translateX(-36px)}to{transform:none}}
.sh-table{display:grid;gap:4px}
.sh-row{display:grid;grid-template-columns:22px 1fr auto auto;gap:8px;align-items:center;padding:7px 10px;border-radius:9px;background:var(--bg);font-size:13px;animation:shIn .5s ease both;animation-delay:var(--d)}
.sh-row.in{box-shadow:inset 3px 0 0 var(--neutral)}
.sh-pl{font:600 12px var(--font-num);color:var(--muted)}
.sh-chip{font:600 11px var(--font-ui);padding:2px 8px;border-radius:999px;background:var(--neutral);color:var(--on-neutral)}
@keyframes shIn{from{transform:translateY(4px)}to{transform:none}}
.sh-queues{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sh-q{display:grid;gap:5px;align-content:start;font-size:12px}
.sh-q b{font:600 12px var(--font-ui);color:var(--muted)}
.sh-t{padding:7px 8px;border-radius:9px;background:var(--bg);color:var(--muted)}
.sh-t.cand{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.sh-t.pick{color:var(--on-neutral);background:var(--neutral);animation:shPick 2.4s ease infinite}
@keyframes shPick{0%,30%{background:var(--bg);color:var(--ink)}45%,100%{background:var(--neutral);color:var(--on-neutral)}}
.sh-count{display:grid;gap:10px}
.sh-seasons{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.sh-seasons i{height:16px;border-radius:4px;background:var(--neutral);animation:shIn .4s ease both;animation-delay:var(--d)}
.sh-seasons i.out{background:var(--line)}
.sh-seasons i.drop{background:repeating-linear-gradient(45deg,var(--line) 0 3px,transparent 3px 6px)}
.sh-seasons i.wt{background:linear-gradient(to top,var(--neutral) calc(var(--w) * 100%),var(--line) 0)}
.sh-share{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sh-share b{color:var(--ink)}
.sh-share .lki{width:14px;height:14px}
.sh-warn{margin:18px 0 0;padding:12px 14px;border-radius:12px;background:var(--bg3);font-size:14px;line-height:1.5}
.sh-warn b{color:var(--ink)}
.sh-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.sh-nav .go{border:0;border-radius:999px;padding:10px 18px;background:var(--neutral);color:var(--on-neutral);font:700 14px var(--font-ui);cursor:pointer}
.sh-nav .ghost:disabled{opacity:.45;cursor:default}
@media (prefers-reduced-motion:reduce){.sh-race circle,.sh-row,.sh-seasons i,.sh-t.pick{animation:none}}

/* the introduction (pop-up): one step at a time, Back / dots / Next, Start on the last */
.modal-x[hidden]{display:none}
.bi-tab{margin:0 0 12px;font-size:13px;color:var(--muted)}
.bi-tabchip{display:inline-block;padding:4px 11px;border-radius:999px;border:1px solid var(--ink);color:var(--ink);font:600 13px var(--font-ui)}
.bi-body p{margin:0 0 10px;font-size:15px;line-height:1.55;max-width:60ch;color:var(--ink-body)}
.bi-body ol{margin:0 0 10px;padding-left:22px;font-size:14px;line-height:1.5;color:var(--ink-body)}
.bi-body ol li{margin:0 0 4px}
.bi-note{padding:10px 12px;border-radius:12px;background:var(--bg3);font-size:13.5px !important}
.bi-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.bi-nav .go{border:0;border-radius:999px;padding:10px 20px;background:var(--neutral);color:var(--on-neutral);font:700 14px var(--font-ui);cursor:pointer;min-width:88px}
.bi-nav .ghost:disabled{opacity:.45;cursor:default}
.bi-nav .go:focus-visible,.bi-nav .ghost:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.bi-dots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.bi-dots i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.bi-dots i.past{background:var(--faint)}
.bi-dots i.on{background:var(--ink);transform:scale(1.25)}

/* the lock picker says whether a row is a team or one runner */
.kind{display:inline-block;padding:1px 7px;border-radius:999px;font:600 11px/1.5 var(--font-ui);vertical-align:1px}
.kind.team{background:var(--neutral);color:var(--on-neutral)}
.kind.ath{background:var(--bg3);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.pavatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--bg3);color:var(--ink);font:600 11px var(--font-ui);flex:none}
.rgroup{padding:8px 10px 4px;font:600 12px var(--font-ui);color:var(--muted)}
.rgroup:not(:first-child){border-top:1px solid var(--hair);margin-top:4px}

/* ---- Conferences tab: each conference meet as a card, like a region ---- */
.crule{max-width:72ch;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:var(--bg2);font-size:13px;line-height:1.5;color:var(--ink)}
.ccard .cname{margin:0 4px 4px;font-size:12px;color:var(--muted)}
.ccard .cwhen{margin:0 4px 2px;font-size:13px;color:var(--ink)}
.ccard .cwhen b{font-weight:600}
.ccard .cwhere,.rcard .cwhere{margin:0 4px 8px;font-size:12px;color:var(--muted)}
.rcard .cwhere b{color:var(--ink);font-weight:600}
.rcard .cwhere .crate{color:var(--ink-body);font-family:var(--font-num)}
/* "Race it in Meet Simulations": a real button at the foot of a conference or region card */
.ccard .cexp{display:inline-block;margin-left:4px;padding:1px 7px;border-radius:7px;background:var(--bg3);font-size:11px;color:var(--muted)}
.rcard .rh.c5,.rcard .crs.c5 .rr{grid-template-columns:24px 26px minmax(0,1fr) 50px 50px 92px}
/* a region: automatic, at-large and total chance */
.rcard .rh.r6,.rcard .rrs.r6 .rr{grid-template-columns:18px 24px minmax(0,1fr) 46px 46px 66px;gap:6px}
.rcard .rrs.r6 .rr .pt .bar{width:22px}
.rcard .rh.r6{align-items:end;font:600 11px/1.2 var(--font-ui);letter-spacing:0;text-transform:none}
.ccard .cwhere .crate{color:var(--ink-body);font-family:var(--font-num)}
table.grid.cmp thead th{text-transform:none;letter-spacing:0;font-size:12px}
.ccard .csrc{margin:8px 4px 0;font-size:11px;color:var(--faint)}
.ccard .csrc a{color:var(--muted)}
.ccard .cind{margin:4px;font-size:13px;line-height:1.7;color:var(--ink)}
.ccard .cind a{cursor:pointer;text-decoration:underline;text-decoration-color:var(--line)}
.dconf{margin:6px 0 12px;font-size:13px;line-height:1.5;color:var(--ink)}
@media (max-width:520px){.rcard .rh.c5,.rcard .crs.c5 .rr{grid-template-columns:20px 24px minmax(0,1fr) 42px 42px 64px}.rcard .crs.c5 .rr .pt .bar{display:none}}
@media (max-width:520px){.rcard .rh.r6,.rcard .rrs.r6 .rr{grid-template-columns:16px 22px minmax(0,1fr) 42px 42px 40px}.rcard .rrs.r6 .rr .pt .bar{display:none}}
#view-conf .rgrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr))}

/* the Full Entry List pop-up */
.msub{margin:4px 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.pick.entq{max-width:360px;margin:0 0 6px}
.enth{margin:18px 0 6px;font:650 16px var(--font-display);color:var(--ink)}
.entl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 14px}
.entl li{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--hair)}
.entl li[hidden]{display:none}
.entl .nm{flex:1;min-width:0;line-height:1.25}
.entl .nm b{display:block;font:600 14px var(--font-ui);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entl .nm small{display:block;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.etag{flex:none;padding:2px 8px;border-radius:999px;font:600 11.5px/1.5 var(--font-ui);white-space:nowrap}
.etag.et-aq{background:var(--neutral);color:var(--on-neutral)}
.etag.et-al{background:var(--bg3);color:var(--ink)}
.etag.et-team{background:var(--bg3);color:var(--muted)}
.etag.et-ind{background:var(--bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
/* the run's two results tables sit side by side, and with your changes each carries a Change column: names take the
   room left and shorten with an ellipsis, cells pad less */
.rescols table.grid th,.rescols table.grid td{padding-left:7px;padding-right:7px}
.rescols table.grid .who{min-width:0}
.rescols table.grid .who>div{min-width:0}
.rescols table.grid td:nth-child(2){width:100%;max-width:0}
.rescols table.grid .who b,.rescols table.grid .who small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the two tables sit side by side whenever the results have room for both (names included), else they stack; measured
   on the results' own width, which the navigation column beside them takes from */
.simres{container-type:inline-size}
@container (max-width:819px){.rescols{grid-template-columns:minmax(0,1fr)}}

/* Individuals: the via-individual-bids switch sits at the end of the heading */
.svh.resind{align-items:center}
/* the switch takes no extra height, so the Individuals table starts level with the Teams table beside it */
.svh.resind .swt{margin-block:-4px}
.swt{margin-left:auto;display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:4px 0;color:var(--ink);font:500 13px var(--font-ui);cursor:pointer}
.swt-k{position:relative;flex:none;width:30px;height:18px;border-radius:999px;background:var(--bg3);box-shadow:inset 0 0 0 1px var(--line);transition:background .15s ease}
.swt-k::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s ease}
.swt[aria-checked="true"] .swt-k{background:var(--heart)}
.swt[aria-checked="true"] .swt-k::after{transform:translateX(12px)}
.swt:focus-visible{outline:2px solid var(--heart);outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion: reduce){.swt-k,.swt-k::after{transition:none}}

/* A team's roster on its card (Customize roster): each runner racing, off the seven for an individual bid only, or out.
   The change carries to every view, so the card says what the odds include. */
.dhrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rosbtn{border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:var(--bg);color:var(--ink);font:600 12px var(--font-ui);letter-spacing:0;text-transform:none;cursor:pointer;white-space:nowrap}
.rosbtn:hover{background:var(--bg3)}
.rosbtn.on{background:var(--neutral);border-color:var(--neutral);color:var(--on-neutral)}
.rosbtn:focus-visible,.rost button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.rosline{margin:10px 0 0;padding:8px 12px;border-radius:10px;background:var(--bg3);font-size:13px;color:var(--ink-body)}
.rosoff{margin:12px 10px 4px;font:600 11px/1 var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.seven.ros-out button span:first-child{color:var(--faint);text-decoration:line-through}
.seven.ros-out small{color:var(--muted)}
.ros .rosnote{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:var(--amber-soft);color:var(--ink-body);font-size:13px;line-height:1.45}
.roskey{display:grid;gap:3px;margin:0 0 8px;font-size:12px;color:var(--muted)}
.roskey b{color:var(--ink);font-weight:600}
.rosrow{display:grid;grid-template-columns:16px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:8px 2px;border-top:1px solid var(--hair);font-size:14px;color:var(--ink)}
.rosrow .ln{font:600 12px var(--font-num);text-align:center}
.rosrow .nm{min-width:0;font-weight:500}
.rosrow .nm small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:400;color:var(--muted)}
.rosrow .t{font-size:13px;color:var(--muted)}
.rosrow.out .nm{color:var(--faint);text-decoration:line-through}
.rosrow.ind .nm{color:var(--ink-body)}
.rost{display:inline-flex;gap:2px;padding:2px;border-radius:999px;background:var(--bg3)}
.rost button{border:0;border-radius:999px;padding:5px 8px;background:none;color:var(--muted);font:600 11.5px var(--font-ui);cursor:pointer;white-space:nowrap}
.rost button:hover{color:var(--ink)}
.rost button[aria-pressed="true"]{background:var(--neutral);color:var(--on-neutral)}
.rost button.ind[aria-pressed="true"]{background:var(--c4);color:#fff}
.rost button.out[aria-pressed="true"]{background:var(--heart);color:#fff}
.rosfoot{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 0;font-size:13px}
.rosstate{margin:10px 0 0;font:500 12px var(--font-num);color:var(--heart-ink)}
.lued .rost{justify-self:end}
.scen.ros .chipname{border:0;background:none;padding:0;font:700 14px var(--font-ui);color:var(--ink);text-decoration:underline;cursor:pointer}
.scen.ros small{color:var(--muted);font-size:13px}
/* (the roster banner takes the what-if banner's red, with ALERT for the lock) */
/* After a run: race this Nationals field in Meet Simulations */
.natrace{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 0;padding:14px 16px;border-radius:16px;background:var(--bg2);border:1px solid var(--line)}
.natrace .nt{flex:1 1 260px;min-width:0}
.natrace .nt b{display:block;font:700 16px var(--font-display);letter-spacing:-.01em;color:var(--ink)}
.natrace .nt small{display:block;margin-top:3px;font-size:13px;line-height:1.45;color:var(--muted)}
.natrace .go{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:11px 18px;background:var(--go-bg);color:#fff;font:700 15px var(--font-ui);cursor:pointer;white-space:nowrap}
.natrace .go:hover{background:var(--go-bg-hover)}
.natrace .go:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* the Simulate tab's lineup editor: room for the three statuses */
.luhd,.lurow{grid-template-columns:20px minmax(0,1fr) 56px auto}
/* iOS Safari zooms the whole page in when a field under 16px takes focus, and leaves it zoomed after the keyboard
   closes. Every field here is 13-14px, so on a touch screen they all go to 16px. The :not()s give this rule more
   weight than any single field's own rule (.search input, .luadd input[name="t5"], .fb textarea, Meet Sim's). Pinch
   zoom still works; maximum-scale=1 in the viewport would have turned it off. */
@media (pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{font-size:16px}
}
