/* NFELO page styles, built on brand.css (Bento Grid tokens and materials; link it first).
   Source of truth: context/brand-bento.md. Light mode only. Only brand tokens are used: no other colors, no gradients.
   Every block is a rounded tile (radius 28) on the canvas board with 14px gaps and no borders; sub-tiles are radius 18;
   controls are pills. Type is Figtree for headings and Nunito Sans for everything else, with no code-style face.

   Data colors (the same on every page):
     Model = --ink (solid, square markers), Elo = --primary drawn 3px wide with ink-outlined circle markers,
     Vegas benchmark = --muted dashed with triangle markers, a third series = --muted dotted with diamonds.
     Primary is 1.80:1 and secondary 1.1:1 on the surface, so neither is ever a thin line or text: they only fill bars
     and areas, and every fill that has to be read carries an ink edge.
     Fourth-down GO / FG / PUNT = primary / ink / muted. Clear call = solid, lean = the same color as a diagonal hatch
     on white, toss-up = plain --ab-sub (no action color).
     Accent: the one headline word (the accent with an ink outline, see .hl in brand.css), plus a dot in the footer. */

:root {
  --gutter: clamp(14px, 2vw, 28px);
  --wrap-max: 1680px;
  --nav-h: 76px;
  --surf: var(--ab-tile);
  --font-ui: var(--font-body);
  /* categorical colors for the model pages: tokens only */
  --cat-go: var(--primary);
  --cat-fg: var(--ink);
  --cat-punt: var(--muted);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-body); font-size: var(--body-size); font-weight: var(--body-weight);
  font-variant-numeric: tabular-nums; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { background: var(--sec-tint); }
button, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -90px; z-index: 50; background: var(--ab-tile); color: var(--ink); padding: 10px 18px; border-radius: 999px; box-shadow: var(--ab-shadow); font: 600 14px/1.2 var(--font-body); }
.skip:focus { top: 12px; }
.label { font: 600 13px/1.3 var(--font-body); letter-spacing: 0.02em; color: var(--muted); }
.tile-stage, .console, .stage { --surf: var(--ab-tile-sec); }
.tile-lead { --surf: var(--sec-tint); }

/* ---- the board: 1 column on phones, 2 on tablets, 4 on desktops; 14px gaps everywhere ---- */
.board { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.board > * { min-width: 0; }
@media (min-width: 600px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sec-board, .foot-board { grid-template-columns: minmax(0, 1fr); }
.hero-board.board { grid-auto-flow: row dense; }

/* ---- nav: a floating tile; links are pills, the current page is a primary-filled pill ---- */
.nav {
  position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 6px 18px;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap-max) - 2 * var(--gutter)); margin: 10px auto 0;
  min-height: 56px; padding: 6px 10px 6px 22px;
  background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow);
}
.nav-mark { flex: none; font: 700 22px/1 var(--font-heading); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.nav-mark:hover { background: transparent; }
.nav-tag { display: none; flex: none; font: 600 13px/1.3 var(--font-body); color: var(--muted); }
@media (min-width: 1500px) { .nav-tag { display: block; } }
.nav-links { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; padding: 4px; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: flex; align-items: center; padding: 8px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 600 14px/1.2 var(--font-body); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--sec-tint); }
.nav-links a:focus-visible { outline-offset: -3px; box-shadow: none; }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--ink); }
.nav-links .nav-sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--line); }
@media (max-width: 820px) {
  :root { --nav-h: 120px; }
  .nav { flex-wrap: wrap; row-gap: 0; padding: 10px 10px 4px 18px; }
  .nav-mark { font-size: 20px; }
  .nav-links { order: 3; flex: 1 0 100%; margin-left: -8px; padding: 4px 0 6px; }
}

/* ---- hero board ---- */
.hero { padding-top: var(--gap); }
.hero-art { grid-column: 1 / -1; display: flex; align-items: flex-end; padding: 14px; min-height: 340px; overflow: hidden; }
@media (min-width: 1100px) { .hero-art { padding: 28px; } }
.hero-plate { width: 100%; padding: clamp(20px, 2.6vw, 36px); container-type: inline-size; }
.tagline { margin-bottom: 14px; }
.page-kicker ~ .tagline { margin: 18px 0 0; }
.page-kicker { font: 600 14px/1.4 var(--font-body); color: var(--muted); }
.page-title { margin-top: 10px; font-size: clamp(2.5rem, 11.5cqw, 5.6rem); line-height: 0.96; letter-spacing: -0.03em; }
.page-title.long { font-size: clamp(2.2rem, 8.4cqw, 4.4rem); line-height: 1; }
.hero-line { margin-top: 20px; font: 700 clamp(1.1rem, 3.2cqw, 1.5rem)/1.25 var(--font-heading); letter-spacing: -0.005em; max-width: 30em; }
.hero-deck { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 16px; }
.wordmark { font-size: clamp(3.4rem, 24cqw, 10rem); line-height: 0.86; letter-spacing: -0.04em; margin: 4px 0 0 -0.03em; white-space: nowrap; }
.status { margin-top: 16px; font: 600 15px/1.45 var(--font-body); }
.status .note { color: var(--muted); font-size: 14px; font-weight: 400; }
.hero-board > .b-primary { grid-column: 1; }
.hero-board .tiles { display: contents; }
@media (min-width: 600px) and (max-width: 1099px) {
  .hero-board > .b-primary { grid-column: 1; }
  .hero-board .tiles > .tile:nth-child(4) { grid-column: 1 / -1; }
  .hero-index .hero-panel { grid-column: 1 / -1; }
  .hero-index .tiles > .tile:nth-child(1) { grid-column: 2; grid-row: auto; }
}
@media (min-width: 1100px) {
  .hero-art { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 0; }
  .hero-board > .b-primary { grid-column: 3; grid-row: 1; aspect-ratio: 1 / 1; align-self: stretch; min-height: 0; }
  .hero-board .tiles > .tile:nth-child(1) { grid-column: 4; grid-row: 1 / 3; }
  .hero-board .tiles > .tile:nth-child(2) { grid-column: 3; grid-row: 2; }
  .hero-board .tiles > .tile:nth-child(3) { grid-column: 1 / 3; grid-row: 3; }
  .hero-board .tiles > .tile:nth-child(4) { grid-column: 3 / 5; grid-row: 3; }
  /* the ratings page: title and action in row 1, the matchup instrument as the 3x2 stage, three stats beside and below */
  .hero-index .hero-art { grid-column: 1 / 3; grid-row: 1; }
  .hero-index .tiles > .tile:nth-child(1) { grid-column: 4; grid-row: 1; }
  .hero-index .hero-panel { grid-column: 1 / 4; grid-row: 2 / 4; }
  .hero-index .tiles > .tile:nth-child(2) { grid-column: 4; grid-row: 2; }
  .hero-index .tiles > .tile:nth-child(3) { grid-column: 4; grid-row: 3; }
  .hero-index .tiles > .tile:nth-child(4) { grid-column: 1 / 5; grid-row: 4; }
}

/* ---- stat tiles: a huge tabular numeral with a small label ---- */
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; min-height: 190px; padding: 22px; container-type: inline-size; background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); }
.tiles > .tile:first-child { background: var(--sec-tint); --surf: var(--sec-tint); }
.tile h3 { font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.tile .big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font: 700 clamp(2.6rem, 17cqw, 5.4rem)/0.95 var(--font-heading); letter-spacing: -0.05em; color: var(--ink); overflow-wrap: anywhere; }
.tile .big small { font: 600 0.3em/1.2 var(--font-body); letter-spacing: 0; color: var(--muted); }
.tile .big.dual { font-size: clamp(2rem, 12cqw, 4rem); flex-wrap: nowrap; white-space: nowrap; align-items: flex-start; gap: 4px 14px; }
.duo { display: flex; flex-direction: column; }
.duo small { margin-top: 6px; font-size: 14px !important; }
.tile .sub { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 38ch; }
.tile .sub b { font-weight: 700; color: var(--ink); }
.slash { color: var(--muted); font-weight: 400; }
.up, .down { color: var(--ink); }
.tbar { margin-top: 4px; }
.tbar .tcap { margin-top: 8px; font: 600 13px/1.3 var(--font-body); color: var(--ink); }
.tbar .b-bar { height: 14px; background: var(--line); }

/* the wide fourth stat tile lays its numeral and its note side by side */
@media (min-width: 1100px) {
  .hero-index .tiles > .tile:nth-child(4) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 48px; min-height: 0; }
  .hero-index .tiles > .tile:nth-child(4) h3 { grid-column: 1 / -1; }
  .hero-index .tiles > .tile:nth-child(4) .sub { margin: 0 0 8px; max-width: 46ch; }
}

/* ---- matchup instrument: the product stage ---- */
.hero-panel { padding: clamp(20px, 2.6vw, 36px); display: grid; gap: clamp(18px, 2.2vw, 28px); align-content: space-between; }
.hero-panel > * { min-width: 0; }
.mx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.mx-head .b-seg { flex: 0 1 auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mx-head .b-seg::-webkit-scrollbar { display: none; }
.mx-head .b-seg button { flex: 0 0 auto; }
.mx-head .b-seg[hidden] { display: none; }
.mx-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; container-type: inline-size; }
.mx-team .city { font: 600 15px/1.2 var(--font-body); color: var(--muted); }
.mx-team .nick { font: 700 clamp(26px, 8.4cqw, 76px)/0.98 var(--font-heading); letter-spacing: -0.03em; margin-top: 4px; overflow-wrap: normal; }
.mx-team .mx-rec { margin-top: 10px; color: var(--muted); font: 600 14px/1.4 var(--font-body); }
.mx-team.team-home { text-align: right; }
.mx-meter { position: relative; padding: 50px 0 74px; }
.mx-axis { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; }
.mx-meter[hidden] { display: none; }
.b-meter__pos { transition: left 280ms ease; }
.b-meter__track i { position: absolute; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font-body); color: var(--muted); font-style: normal; }
.b-meter__track i:first-child { left: 10px; }
.b-meter__track i:last-child { right: 10px; }
.tl { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; font: 700 13px/1 var(--font-body); color: var(--ink); }
.tl::before { content: ''; width: 11px; height: 11px; background: var(--tick); }
#mx-pos-elo .tl::before { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
#mx-pos-vegas .tl::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tl-top { top: -48px; }
.tl-bottom { bottom: -48px; }
.mx-stats { display: grid; grid-template-columns: 1.7fr; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 16px 24px; align-items: end; container-type: inline-size; }
.mx-stats[hidden] { display: none; }
.stat { min-width: 0; }
.stat-main { min-width: min-content; }
.stat dt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stat dt::before { content: ''; flex: none; width: 11px; height: 11px; background: var(--c, var(--line)); clip-path: var(--clip, none); border-radius: var(--rad, 0); box-shadow: 0 0 0 var(--bw, 0) var(--bd, transparent); }
.stat[style*="--rad"] dt::before { box-shadow: 0 0 0 1.5px var(--ink); }
.stat dd { font: 700 clamp(26px, 3.2vw, 44px)/1 var(--font-heading); letter-spacing: -0.04em; color: var(--ink); }
.stat-main dd { font-size: clamp(48px, 10.5cqw, 112px); letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap; }
.stat-gap dd { white-space: nowrap; font-size: clamp(22px, 2.5vw, 34px); }
.stat.is-na dd { font: 600 14px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); padding-bottom: 6px; }
.stat.is-off { opacity: 0.4; }
.mx-teams[hidden], .mx-grid[hidden] { display: none; }
/* several games in one kickoff slot: compact sub-tiles, the model's favored side first */
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--gap); }
.mxc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: var(--r-sub); background: var(--ab-sub); color: var(--ink); text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease; }
.mxc:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow-hi); }
.mxc:focus-visible { outline: none; box-shadow: var(--ring); }
.mxc-vs { font: 700 22px/1 var(--font-heading); letter-spacing: -0.02em; }
.mxc-vs .at { color: var(--muted); font: 600 13px/1 var(--font-body); padding: 0 7px; letter-spacing: 0; }
.mxc-main { display: flex; flex-direction: column; gap: 4px; }
.mxc-main b { font: 700 clamp(40px, 4.4vw, 54px)/0.9 var(--font-heading); letter-spacing: -0.05em; }
.mxc-main span { font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.mxc-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.mxc-c { min-width: 0; }
.mxc-c dt { display: flex; align-items: center; gap: 5px; font: 600 12px/1.3 var(--font-body); color: var(--muted); }
.mxc-c dt i { flex: none; display: block; width: 9px; height: 9px; }
.mxc-c dd { margin-top: 2px; font: 700 15px/1.2 var(--font-body); white-space: nowrap; }
.mxc-c dd.na { color: var(--muted); font-weight: 600; }
.mxc .qbtag { margin: 0; font: 700 12px/1.3 var(--font-body); border-left: 4px solid var(--ink); padding-left: 8px; }
.mx-foot { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.mx-foot [hidden] { display: none; }
.mx-foot .b-link { font: 600 16px/1.2 var(--font-body); }
.mx-switches { display: flex; gap: 4px 28px; flex-wrap: wrap; margin-left: auto; }
.mx-switches[hidden] { display: none; }
.mx-switches .b-toggle { flex-direction: row-reverse; justify-content: flex-end; }
@media (max-width: 700px) {
  .mx-teams { gap: 10px; }
  .mx-team .city { font-size: 13px; }
  .mx-meter { padding: 48px 0 70px; }
  .mx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  .stat-main { grid-column: 1 / -1; }
  .stat-main dd { font-size: clamp(56px, 24cqw, 96px); }
  .mx-switches { margin-left: 0; }
}

/* ---- sections: a title tile, then the content tiles ---- */
main > .sec { padding-top: var(--gap); outline: none; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 2.4vw, 32px); }
.sec-copy { flex: 1 1 520px; min-width: 0; }
.sec-ctl { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-body); color: var(--muted); }
.kn { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); font: 700 12px/1.2 var(--font-body); }
.headline { margin-top: 14px; max-width: 24em; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.deck { max-width: 70ch; margin-top: 12px; }
.sec-head .deck { color: var(--ink); }
.body { margin: 0; min-height: 80px; }
.body.tile-m, .tile-m.body { padding: clamp(18px, 2.4vw, 32px); }
.body.loose { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.body.loose > * { margin-top: 0; }
.note { color: var(--muted); font-size: 15px; }
.err { color: var(--ink); font-weight: 700; border-left: 4px solid var(--primary); padding-left: 12px; }
.note.empty { padding: 20px 0; }
.status-wrap, .caveat-wrap { padding-top: var(--gap); }
.hero + main > .status-wrap { padding-top: var(--gap); }

/* ---- segmented controls and fields ---- */
.seg { width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; }
.sec-ctl .b-seg { width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sec-ctl .b-seg::-webkit-scrollbar { display: none; }
.sec-ctl .b-seg button { flex: 0 0 auto; }
.field { display: flex; flex-direction: column; gap: 8px; width: min(100%, 320px); }
.field label { font: 600 13px/1.3 var(--font-body); color: var(--muted); padding-left: 6px; }
.field .sel { position: relative; }
.field .sel::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 50px; padding: 10px 46px 10px 20px; background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: 600 15px/1.2 var(--font-body); cursor: pointer; }
.field select:hover { background: var(--sec-tint); }
.field select:focus, .field select:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field select:focus-visible { box-shadow: var(--ring), 0 0 0 4px var(--ink); }

/* ---- chart wells: charts sit straight on their tile ---- */
.well { padding: 0; min-width: 0; --surf: inherit; }
.well .chart { margin: 0; }

/* ---- ladder ---- */
.ladder { margin-top: 0; }
.lhead, .lrow { display: grid; align-items: center; column-gap: 14px; grid-template-columns: 40px minmax(250px, 1.25fr) minmax(0, 3.6fr) 84px 96px 52px 68px 168px; }
.lhead { font: 600 13px/1.3 var(--font-body); color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.lhead .r, .lrow .r { text-align: right; }
.axis { position: relative; height: 14px; }
.axis span { position: absolute; transform: translateX(-50%); font: 600 12px/1 var(--font-body); letter-spacing: 0; }
.lrow { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0; min-height: 46px; cursor: pointer; position: relative; border-radius: 0; }
.lrow:hover { background: var(--sec-tint); }
.lrow:focus-visible { outline-offset: -3px; box-shadow: none; }
.lrow > * { min-width: 0; }
.rank { font: 600 14px/1 var(--font-body); color: var(--muted); padding-left: 8px; }
.team { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.abbr { font: 700 17px/1.1 var(--font-heading); letter-spacing: 0; }
.nm { color: var(--muted); font: 600 13px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; }
.rec-m { display: none; }
.bar { position: relative; height: 44px; }
.bar::before { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: var(--muted); }
.fill { display: block; position: absolute; top: 50%; height: 14px; margin-top: -7px; background: var(--primary); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 999px; }
.fill.pos { transform-origin: left center; }
.fill.neg { transform-origin: right center; }
.val { font: 700 17px/1 var(--font-heading); text-align: right; }
.chg { font: 700 14px/1 var(--font-body); text-align: right; white-space: nowrap; }
.chg.flat, .mv.flat { color: var(--muted); font-weight: 600; }
.mv { font: 700 13px/1 var(--font-body); text-align: right; }
.rec { font: 600 13px/1 var(--font-body); color: var(--muted); text-align: right; }
.spark { display: block; width: 168px; height: 28px; }
.spark .prior { stroke: var(--muted); }
.spark .now { stroke: var(--primary); }
.spark circle { fill: var(--primary); stroke: var(--ink); stroke-width: 1.5; }
.spark path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tag-fill { display: inline-block; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); font: 700 11px/1 var(--font-body); }
.tag-fill .short { display: none; }
.lrow.top { min-height: 68px; }
.lrow.top .bar { height: 68px; }
.lrow.top .bar::before { top: 6px; bottom: 6px; }
.lrow.top .fill { height: 22px; margin-top: -11px; }
.lrow.top .abbr { font-size: 26px; }
.lrow.top .nm { font-size: 14px; }
.lrow.top .val { font-size: 26px; }
.lrow.top .rank { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; margin-left: 4px; background: var(--ab-sub); color: var(--ink); border-radius: 50%; font-size: 14px; font-weight: 700; }
.lrow.top .chg { font-size: 15px; }
@media (max-width: 1099px) {
  .lhead, .lrow { grid-template-columns: 38px minmax(210px, 1.2fr) minmax(0, 2.4fr) 76px 88px 44px 60px; }
  .lhead .sp, .lrow .spark { display: none; }
}
@media (max-width: 759px) {
  .lhead .hide-m { display: none; }
  .lhead, .lrow { grid-template-columns: 34px minmax(0, 1fr) 70px 86px; row-gap: 0; }
  .lhead .axis { display: none; }
  .lrow .bar { grid-column: 2 / -1; grid-row: 2; height: 24px; }
  .lrow .bar::before { top: 2px; bottom: 2px; }
  .lrow { padding-top: 6px; min-height: 0; }
  .lrow .spark, .lrow .rec, .lrow .mv { display: none; }
  .lrow .nm { display: none; }
  .rec-m { display: inline; color: var(--muted); font: 600 12px/1 var(--font-body); }
  .lrow .rank { align-self: start; padding-top: 4px; }
  .lrow.top .rank { padding-top: 0; }
  .lrow.top { min-height: 0; }
  .lrow.top .bar { height: 30px; }
  .lrow.top .abbr { font-size: 22px; }
  .lrow.top .val { font-size: 22px; }
  .lrow.has-tag .rec-m { display: none; }
  .tag-fill .full { display: none; }
  .tag-fill .short { display: inline; }
}
@media (max-width: 1399px) { .lrow.has-tag .nm { display: none; } }

/* ---- this week: game tiles ---- */
.games { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
/* 12 tracks: 2, 3 and 4 tiles per row, and the tiles on a short last row stretch so no row ends early */
@media (min-width: 720px) {
  .games { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .games > .game { grid-column: span 6; }
  .games > .game:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .games > .game { grid-column: span 4; }
  .games > .game:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .games > .game:nth-last-child(2):nth-child(3n+1), .games > .game:last-child:nth-child(3n+2) { grid-column: span 6; }
}
@media (min-width: 1280px) {
  .games > .game { grid-column: span 3; }
  .games > .game:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .games > .game:nth-last-child(2):nth-child(4n+1), .games > .game:last-child:nth-child(4n+2) { grid-column: span 6; }
  .games > .game:nth-last-child(3):nth-child(4n+1), .games > .game:nth-last-child(2):nth-child(4n+2), .games > .game:last-child:nth-child(4n+3) { grid-column: span 4; }
}
.game { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); display: flex; flex-direction: column; padding: 22px; position: relative; min-width: 0; transition: transform 140ms ease, box-shadow 140ms ease; }
.game:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow-hi); }
.game .when { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.game .when .tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); font-weight: 700; white-space: nowrap; }
.game .vs { font: 700 30px/1 var(--font-heading); margin-top: 14px; letter-spacing: -0.02em; }
.game .vs .at { color: var(--muted); font: 600 14px/1 var(--font-body); padding: 0 8px; letter-spacing: 0; }
.pbar { display: flex; gap: 3px; height: 16px; margin-top: 16px; }
.pbar i { display: block; min-width: 4px; background: var(--line); border-radius: 999px 0 0 999px; }
.pbar i + i { background: var(--secondary); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 0 999px 999px 0; }
.plabels { display: flex; justify-content: space-between; margin-top: 8px; font: 600 14px/1.3 var(--font-body); }
.plabels b { font-weight: 800; }
.lines { display: grid; grid-template-columns: 1fr 1fr 56px; gap: 8px; margin-top: auto; padding-top: 14px; font: 600 14px/1.3 var(--font-body); }
.lines dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.lines dd { font-weight: 700; white-space: nowrap; }
.tri { width: 100%; margin-top: auto; padding-top: 18px; border-collapse: collapse; table-layout: fixed; font: 600 14px/1.3 var(--font-body); }
.tri th, .tri td { border: 0; padding: 3px 4px 3px 0; white-space: nowrap; vertical-align: baseline; }
.tri th { font: 600 12px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.tri thead th { padding-bottom: 4px; border-bottom: 0; }
.tri thead th:nth-child(1) { width: 14%; } .tri thead th:nth-child(2) { width: 28%; } .tri thead th:nth-child(3) { width: 29%; } .tri thead th:nth-child(4) { width: 29%; }
.tri thead i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: 0; }
.tri td { font-weight: 700; overflow: hidden; text-overflow: ellipsis; border-bottom: 0; }
.tri td.na { color: var(--muted); font-weight: 600; }
.k-s1 { background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
.k-s2 { background: var(--muted); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.k-s3 { background: var(--ink); }
.game .qbtag { margin-top: 8px; font: 700 13px/1.3 var(--font-body); border-left: 4px solid var(--ink); padding-left: 8px; }

/* ---- rest of season ---- */
.divs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px clamp(28px, 3vw, 48px); }
@media (min-width: 760px) { .divs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .divs { grid-template-columns: repeat(4, 1fr); } }
.dv h3, .oc h3 { font: 700 15px/1.3 var(--font-body); padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.dv h3 span, .oc h3 span { color: var(--muted); font-size: 13px; font-weight: 600; }
.rs summary { list-style: none; display: grid; grid-template-columns: 52px minmax(0, 1fr) 14px; column-gap: 12px; align-items: center; min-height: 60px; padding: 6px 4px; cursor: pointer; border-bottom: 1px solid var(--line); }
.rs summary::-webkit-details-marker { display: none; }
.rs summary:hover { background: var(--sec-tint); }
.rs summary:focus-visible { outline-offset: -3px; box-shadow: none; }
.rs summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-top: -4px; justify-self: center; }
.rs[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.rs .abbr { font-size: 17px; }
.rs .mid { min-width: 0; }
.rs .who { display: flex; flex-direction: column; align-self: center; }
.rs .mid { display: grid; row-gap: 5px; padding: 6px 0; }
.wl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; column-gap: 10px; align-items: center; }
.wl .wk { font: 600 12px/1 var(--font-body); color: var(--muted); }
.wl .wv { font: 700 14px/1 var(--font-heading); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl.w-so .wv { font: 600 12px/1 var(--font-body); color: var(--muted); }
.wb { position: relative; display: block; height: 14px; background: var(--ab-sub); box-shadow: inset 0 0 0 1px var(--line); }
.wb i { position: absolute; display: block; }
.wb .rg { top: 0; height: 14px; background: var(--pri-tint); box-shadow: inset 0 0 0 1px var(--line); }
.wb .fl { left: 0; top: 3px; height: 8px; }
.w-so .fl { background: var(--muted); }
.w-md .fl { background: var(--ink); }
.w-el .fl { background: var(--primary); box-shadow: 0 0 0 1px var(--ink); }
.legend i.wso, .legend i.wmd, .legend i.wel, .legend i.wrg, .tip i.wso, .tip i.wmd, .tip i.wel, .tip i.wrg { width: 18px; height: 8px; border: 0; clip-path: none; border-radius: 0; }
.legend i.wso, .tip i.wso { background: var(--muted); }
.legend i.wmd, .tip i.wmd { background: var(--ink); }
.legend i.wel, .tip i.wel { background: var(--primary); box-shadow: inset 0 0 0 1px var(--ink); }
.legend i.wrg, .tip i.wrg { height: 12px; background: var(--pri-tint); box-shadow: inset 0 0 0 1px var(--line); }
.legend i.wso::after, .legend i.wmd::after, .legend i.wel::after, .legend i.wrg::after, .tip i.wso::after, .tip i.wmd::after, .tip i.wel::after, .tip i.wrg::after { display: none; }
.rs .meta { display: block; font: 600 11px/1.2 var(--font-body); color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-games { padding: 6px 0 14px; }
.rs-games table { font-size: 13px; }
.rs-games td, .rs-games th { padding: 6px 8px 6px 0; }

/* ---- legends and tooltip keys: marker shapes tell the series apart, not color alone ---- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 600 14px/1.3 var(--font-body); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i, .tip i { --mk: var(--primary); --bd: var(--ink); --clip: none; --rad: 50%; position: relative; display: inline-block; flex: none; width: 24px; height: 0; border-top: 3px solid var(--mk); align-self: center; }
.legend i::after, .tip i::after { content: ''; position: absolute; left: 50%; top: -1.5px; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--mk); clip-path: var(--clip); border-radius: var(--rad); box-shadow: 0 0 0 var(--bw, 1.5px) var(--bd); }
/* s1 = Elo: primary line, ink-outlined circle */
.legend i.s1, .tip i.s1 { --mk: var(--primary); --bd: var(--ink); --rad: 50%; --clip: none; }
/* s2 = Vegas benchmark: muted dashed, triangle */
.legend i.s2, .tip i.s2 { --mk: var(--muted); --bd: transparent; --rad: 0; --clip: polygon(50% 0, 100% 100%, 0 100%); border-top-style: dashed; }
/* s3 = model: ink line, square */
.legend i.s3, .tip i.s3 { --mk: var(--ink); --bd: transparent; --rad: 0; --clip: none; }
.legend i.sm, .tip i.sm { --mk: var(--muted); --bd: transparent; --rad: 0; --clip: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-top-style: dotted; }
.legend i.dot, .tip i.dot { width: 12px; height: 12px; border: 0; background: var(--mk); clip-path: var(--clip); border-radius: var(--rad); box-shadow: 0 0 0 var(--bw, 1.5px) var(--bd); margin: 0 1px; }
.legend i.dot.s2, .tip i.dot.s2 { clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; }
.legend i.dot.s3, .tip i.dot.s3 { box-shadow: none; }
.legend i.dot.sm, .tip i.dot.sm { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: none; }
.legend i.dot::after, .tip i.dot::after { display: none; }
.legend i.blk, .tip i.blk { width: 18px; height: 12px; border: 0; background: var(--mk); clip-path: none; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend i.blk.s3, .tip i.blk.s3 { background: var(--primary); }
.legend i.blk.sm, .tip i.blk.sm { background: var(--muted); box-shadow: none; }
.legend i.blk::after, .tip i.blk::after { display: none; }
.legend i.tk, .tip i.tk { width: 6px; height: 16px; border: 0; background: var(--primary); clip-path: none; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--ink); margin: 0 2px; }
.legend i.tk::after, .tip i.tk::after, .legend i.rg::after, .tip i.rg::after { display: none; }
.legend i.rg, .tip i.rg { --mk: var(--ink); width: 18px; height: 0; border-top: 3px solid var(--ink); }
.legend i.ring, .tip i.ring { width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--surf); border-radius: 50%; clip-path: none; }
.legend i.ring::after { display: none; }
.legend i.up-k { width: 0; height: 0; border: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--ink); background: none; clip-path: none; }
.legend i.down-k { width: 0; height: 0; border: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--ink); background: none; clip-path: none; }
.legend i.up-k::after, .legend i.down-k::after { display: none; }
.legend i.sw-go, .legend i.sw-fg, .legend i.sw-punt, .tip i.sw-go, .tip i.sw-fg, .tip i.sw-punt { width: 18px; height: 12px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; }
.legend i.sw-go::after, .legend i.sw-fg::after, .legend i.sw-punt::after, .tip i.sw-go::after, .tip i.sw-fg::after, .tip i.sw-punt::after { display: none; }
.legend i.mk, .tip i.mk { --mk: var(--ink); }

/* ---- explorer and other chart-plus-facts splits ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 1280px) { .split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }
.body.loose .split > div { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(18px, 2.4vw, 32px); min-width: 0; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; box-shadow: none; border-radius: 4px; }
.grid { stroke: var(--line); stroke-width: 1; }
.refline { stroke: var(--muted); stroke-width: 1.5; }
.tick { fill: var(--muted); font: 600 12px var(--font-body); }
.tick.a-end { text-anchor: end; } .tick.a-mid { text-anchor: middle; } .tick.a-start { text-anchor: start; }
.tick.halo { paint-order: stroke; stroke: var(--surf); stroke-width: 4px; stroke-linejoin: round; }
.lbl { fill: var(--ink); font: 700 13px var(--font-body); paint-order: stroke; stroke: var(--surf); stroke-width: 4px; stroke-linejoin: round; }
.line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.line.s1 { stroke: var(--primary); } .line.s2 { stroke: var(--muted); stroke-dasharray: 8 5; stroke-linecap: butt; } .line.s3 { stroke: var(--ink); } .line.sm { stroke: var(--muted); stroke-dasharray: 2 5; }
.dot { stroke: var(--surf); stroke-width: 2; }
.dot.plain { stroke: none; }
.dot.s1 { fill: var(--primary); stroke: var(--ink); stroke-width: 1.5; } .dot.s2 { fill: var(--muted); } .dot.s3 { fill: var(--ink); } .dot.sm { fill: var(--muted); }
.cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
@media (min-width: 900px) and (max-width: 1279px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .facts { grid-template-columns: minmax(0, 1fr); } }
/* an odd last tile stretches across the row so no row ends short */
@media (max-width: 899px) { .facts > .fact:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) and (max-width: 1279px) {
  .facts > .fact:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .facts > .fact:last-child:nth-child(3n+2) { grid-column: span 2; }
}
.fact { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: 22px; min-width: 0; }
.fact dt { font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.fact dd { font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--font-heading); margin-top: 8px; letter-spacing: -0.05em; }
.fact dd small { display: block; font: 600 13px/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.fnote { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.body.loose > .fnote { padding: 0 6px; }

/* facts nested in a tile body are sub-tiles, not tiles inside a tile */
.tile-m.body .fact { background: var(--ab-sub); box-shadow: none; border-radius: var(--r-sub); --surf: var(--ab-sub); }

/* ---- luck ---- */
.lk-head, .lk-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 64px; column-gap: 12px; align-items: center; }
.lk-head { font: 600 13px/1.3 var(--font-body); color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lk-head .ends { display: flex; justify-content: space-between; }
.lk-row { min-height: 32px; position: relative; }
.lk-row:hover { background: var(--sec-tint); }
.lk-row .bar { height: 32px; }
.lk-row .bar::before { top: 2px; bottom: 2px; }
.lk-row .fill { height: 14px; margin-top: -7px; }
.lk-row .abbr { font-size: 15px; padding-left: 6px; }
.lk-row .val { font-size: 14px; padding-right: 6px; }
.lk-row:focus-visible { outline-offset: -3px; box-shadow: none; }
.lucky { display: grid; gap: 22px; align-content: start; }
.lucky h3 { font: 700 15px/1.3 var(--font-body); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lucky li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lucky .t { font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.lucky .t b { font: 700 28px/1 var(--font-heading); color: var(--ink); margin-right: 10px; letter-spacing: -0.02em; }
.lucky .v { font: 700 clamp(2rem, 3.2vw, 3rem)/1 var(--font-heading); letter-spacing: -0.05em; }
.lucky .v.down { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 1279px) { .lucky { order: -1; grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 639px) { .lucky { grid-template-columns: minmax(0, 1fr); } }
.tile-m.body .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1280px) { .tile-m.body .split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: clamp(28px, 3.4vw, 56px); } }

/* ---- tables and details: flat rows inside a tile ---- */
details.tv { margin-top: 20px; }
details.tv summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; cursor: pointer; background: transparent; border: 2px solid var(--secondary); box-shadow: inset 0 0 0 1px var(--ink); border-radius: 999px; font: 600 14px/1.2 var(--font-body); color: var(--ink); }
details.tv summary::-webkit-details-marker { display: none; }
details.tv summary::before { content: '+'; font-weight: 700; }
details.tv[open] summary::before { content: '\2212'; }
details.tv summary:hover, details.tv[open] summary { background: var(--sec-tint); }
.body.loose > details.tv { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: 18px 22px; margin-top: 0; }
.tv-wrap { max-height: 360px; overflow: auto; margin-top: 14px; background: var(--ab-sub); border-radius: var(--r-sub); padding: 0 16px 6px; --surf: var(--ab-sub); }
table { border-collapse: collapse; width: 100%; font: 600 14px/1.35 var(--font-body); }
th { text-align: left; font: 600 13px/1.3 var(--font-body); color: var(--muted); padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
th.r, td.r { text-align: right; padding-right: 0; }
td.n { font-variant-numeric: tabular-nums; }

.sub-h { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }

/* ---- scorecard ---- */
.score { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 720px) { .score { grid-template-columns: 1.7fr 1.2fr 1fr; } }
.score > div { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: 22px 26px 26px; min-width: 0; }
.livebox .score > div { background: var(--ab-sub); box-shadow: none; border-radius: var(--r-sub); --surf: var(--ab-sub); }
.score h3 { font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.score .row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; }
.score .row span { font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.score .row b { display: block; font: 700 clamp(2.2rem, 3.8vw, 3.6rem)/1 var(--font-heading); letter-spacing: -0.05em; color: var(--ink); margin-bottom: 4px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(18px, 2.4vw, 32px); min-width: 0; }
.pair h3 { font-size: 22px; letter-spacing: -0.01em; }
.pair .sub { font: 400 15px/1.4 var(--font-body); color: var(--muted); margin: 4px 0 14px; }
.method { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: start; }
@media (min-width: 900px) { .method { grid-template-columns: 1.6fr 1fr; } }
.method > div { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(20px, 2.6vw, 36px); min-width: 0; }
.sec-board > .method { margin-top: 0; }
.method.how { grid-template-columns: minmax(0, 1fr); }
.method h3 { font-size: 22px; margin-bottom: 14px; letter-spacing: -0.01em; }
.method p { max-width: 70ch; margin-bottom: 12px; }
.method p b { font-weight: 800; }
.method ul li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.method ul li:first-child { padding-top: 0; }
.method ul li small { display: block; color: var(--muted); font: 600 13px/1.4 var(--font-body); margin-top: 2px; }
.livebox { margin-top: var(--gap); background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(18px, 2.4vw, 32px); }
.livebox > h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.livebox > .sub { font-size: 15px; max-width: 70ch; margin-bottom: 16px; color: var(--muted); }
.livebox .score { margin-top: 16px; }

/* ---- footer: one credits tile ---- */
.foot { padding-top: var(--gap); padding-bottom: 40px; }
.foot-board { grid-template-columns: minmax(0, 1fr); }
.foot-links { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 6px; align-content: center; font: 400 15px/1.5 var(--font-body); color: var(--muted); }
.foot-links a { color: var(--ink); }
.foot-dot { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.foot-dot i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--ink); }

.tip {
  position: fixed; z-index: 40; pointer-events: none; max-width: 300px; padding: 12px 16px;
  background: var(--ab-tile); color: var(--ink); border-radius: var(--r-sub); box-shadow: var(--ab-shadow-hi), 0 0 0 1px var(--ab-tile-line);
  font: 600 13px/1.4 var(--font-body); --surf: var(--ab-tile);
}
.tip[hidden] { display: none; }
.tip .tt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tip .tr { display: flex; align-items: baseline; gap: 8px; }
.tip .tr b { font-size: 15px; font-weight: 800; }
.tip .tr span { color: var(--ink); }
.tip .tr i { align-self: center; }

/* ---- motion: bars grow from 1500 once, when their section scrolls into view ---- */
.anim .fill { transform: scaleX(0); }
.anim .sec.in .fill { transform: scaleX(1); transition: transform 400ms ease; }

/* ---- playoff odds ---- */
.odds-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px clamp(28px, 3vw, 48px); }
@media (min-width: 1100px) { .odds-grid { grid-template-columns: 1fr 1fr; } }
.oc h3 { border-bottom-width: 0; }
.oc .tbl-wrap { overflow-x: auto; }
table.odds { table-layout: fixed; min-width: 340px; }
table.odds th:first-child { width: 34%; }
table.odds thead th { padding: 0 0 10px; }
table.odds thead th.r { padding-left: 6px; }
table.odds tbody th, table.odds td { padding: 9px 0 9px 6px; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--font-body); }
table.odds tbody th { padding-left: 4px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.odds tbody tr { cursor: default; }
table.odds tbody tr:hover { background: var(--sec-tint); }
table.odds tbody tr:focus-visible { outline-offset: -3px; box-shadow: none; }
table.odds .tm .abbr { font-size: 16px; margin-right: 10px; }
table.odds .tm .nm { font-size: 12px; }
@media (max-width: 1599px) { table.odds .tm .nm { display: none; } table.odds th:first-child { width: 18%; } }
.sortb { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 12px; margin: -6px -12px; border-radius: 999px; font: 600 13px/1.3 var(--font-body); color: var(--muted); white-space: nowrap; }
.sortb:hover { color: var(--ink); background: var(--sec-tint); }
.sortb.on { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--ink); }
.sortb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.sortb.on::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sortb.on[data-dir="asc"]::after { transform: translateY(1px) rotate(-135deg); }
td.pc { position: relative; }
td.pc b { font-weight: 800; position: relative; }
.ob { position: absolute; left: 6px; right: 46px; top: 50%; height: 12px; margin-top: -6px; }
.ob::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.ob i { position: absolute; left: 0; top: 0; bottom: 0; display: block; background: var(--primary); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 999px; min-width: 3px; }
td.chg { font-weight: 700; }
td.chg .na { color: var(--muted); font-weight: 600; }
table.odds th:nth-child(2) { width: 30%; }
@media (max-width: 599px) {
  table.odds { min-width: 0; }
  table.odds th:first-child { width: 17%; }
  table.odds th:nth-child(2) { width: auto; }
  .ob { display: none; }
  .sortb { white-space: normal; line-height: 1.2; }
  table.odds tbody th, table.odds td { font-size: 13px; }
  table.odds thead th { vertical-align: bottom; }
}

/* ---- verdict chips: pass is a secondary tag, fail is an ink-edged tag, the rest are quiet ---- */
.vchip { display: inline-block; flex: none; padding: 4px 12px; border-radius: 999px; font: 700 12px/1.2 var(--font-body); background: var(--ab-sub); color: var(--ink); white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--ink); }
.v-pass { background: var(--secondary); color: var(--on-secondary); box-shadow: none; }
.v-fail { background: var(--ab-tile); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.v-negative { background: var(--ab-sub); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.v-shadow { background: var(--line); color: var(--ink); box-shadow: none; }
.me { display: inline-block; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); font: 700 12px/1.2 var(--font-body); white-space: nowrap; vertical-align: middle; }
.headline .me { margin-left: 12px; }

/* ---- models page ---- */
.mcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 720px) { .mcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mcards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1500px) { .mcards { grid-template-columns: repeat(4, 1fr); } }
.mcard { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); display: flex; flex-direction: column; padding: 24px; min-width: 0; transition: transform 140ms ease, box-shadow 140ms ease; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow-hi); }
.mcard[hidden] { display: none; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-id { font: 700 14px/1 var(--font-body); color: var(--muted); }
.mc-name { margin-top: 14px; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; }
.mc-what { margin-top: 8px; font-size: 15px; }
.mc-spec { margin-top: 6px; font: 600 13px/1.4 var(--font-body); color: var(--muted); }
.mc-metric { margin-top: 18px; padding: 16px 18px; background: var(--ab-sub); border-radius: var(--r-sub); align-self: stretch; }
.mc-metric .mc-lab { font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.mc-metric .mc-val { font: 700 clamp(2rem, 2.6vw, 2.75rem)/1.05 var(--font-heading); letter-spacing: -0.05em; margin-top: 6px; }
.mc-metric .mc-ci { font: 600 13px/1.4 var(--font-body); margin-top: 4px; }
.mc-metric .mc-n { font: 600 12px/1.4 var(--font-body); color: var(--muted); margin-top: 2px; }
.mc-text { margin-top: 14px; }
.mc-read { font-size: 15px; }
.mc-also { margin-top: 10px; font: 600 13px/1.45 var(--font-body); color: var(--muted); }
.mc-also li + li { margin-top: 4px; }
.mc-links { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; font: 600 14px/1.4 var(--font-body); align-self: stretch; }
.mc-tally { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mc-tally li { display: flex; flex-direction: column; gap: 2px; }
.mc-tally b { font: 700 clamp(2rem, 2.6vw, 2.75rem)/1.05 var(--font-heading); letter-spacing: -0.05em; }
.mc-tally span { font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.gloss { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(40px, 4vw, 72px); }
.body.loose > .gloss { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(20px, 2.6vw, 36px); }
@media (min-width: 900px) { .gloss { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1500px) { .gloss { grid-template-columns: repeat(3, 1fr); } }
.gloss h3 { grid-column: 1 / -1; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.gloss div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gloss dt { font: 700 15px/1.3 var(--font-body); }
.gloss dd { font-size: 15px; }
.wh { stroke-width: 3; stroke-linecap: round; }
.wh.s1 { stroke: var(--primary); } .wh.s2 { stroke: var(--muted); stroke-dasharray: 6 4; } .wh.s3 { stroke: var(--ink); } .wh.sm { stroke: var(--muted); }
.rowhit { fill: transparent; }
g.mrow { cursor: default; }
g.mrow:hover .rowhit, g.mrow:focus .rowhit { fill: var(--sec-tint); }
g.mrow:focus { outline: none; }
g.mrow:focus-visible .rowhit { stroke: var(--ink); stroke-width: 3; }
.finds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .finds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .find:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1500px) {
  .finds { grid-template-columns: repeat(6, 1fr); }
  .find { grid-column: span 2; }
  .find:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .find:nth-last-child(2):nth-child(3n+1), .find:last-child:nth-child(3n+2) { grid-column: span 3; }
}
.find { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 24px; align-content: start; }
.find .fn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--secondary); color: var(--on-secondary); font: 700 18px/1 var(--font-heading); }
.find h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; }
.find p { margin-top: 8px; max-width: 60ch; }
.find .fnote { margin-top: 8px; }
.find, .mc-also, .mc-links { overflow-wrap: anywhere; }

/* ---- accessibility fallbacks ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .anim .fill { transform: none !important; }
  .game:hover, .mcard:hover { transform: none; }
}
@media (forced-colors: active) {
  .fill, .pbar i, .tip i, .legend i, .tl::before, .stat dt::before, .tri thead i, .wb i, .ob i, .vchip { forced-color-adjust: none; }
}

/* ==========================================================================
   Model pages: plays.html, winprob.html, fourth.html, playcalling.html
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; cursor: pointer; background: transparent; color: var(--ink); border: 2px solid var(--secondary); box-shadow: inset 0 0 0 1px var(--ink); border-radius: 999px; font: 600 14px/1.2 var(--font-body); }
.btn:hover { background: var(--sec-tint); }
.btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn:disabled { color: var(--muted); box-shadow: none; border-color: var(--line); cursor: not-allowed; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; align-items: start; background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: 22px 26px; }
.notice p { max-width: 80ch; }
.notice p + p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.notice .vchip { margin-top: 2px; justify-self: start; }
@media (max-width: 700px) { .notice { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.caveats h3 { font-size: 18px; letter-spacing: -0.005em; margin-bottom: 8px; }
.caveats ul { display: grid; gap: 8px; }
.caveats ul li, .method .caveats ul li { position: relative; padding: 0 0 0 22px; border: 0; max-width: 80ch; }
.caveats ul li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.caveats.big { background: var(--ab-tile); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(20px, 2.6vw, 32px); }
.caveats.big h3 { font-size: 22px; }
.caveats.big ul li { font-size: 17px; }
.how-dyn { margin-top: 28px; display: grid; gap: 28px; }
.how-dyn .caveats { border-top: 1px solid var(--line); padding-top: 20px; }
.how-dyn .gloss { margin-top: 0; }
.stat-note { margin-top: 12px; font-size: 16px; max-width: 70ch; }
/* ---- specification lists: tight label/value rows (Elo method, model pages) ---- */
.spec { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 8px; }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec > div:first-child { border-top: 1px solid var(--line); }
.spec dt { font: 600 13px/1.4 var(--font-body); color: var(--muted); }
.spec dd { font: 600 15px/1.4 var(--font-body); overflow-wrap: anywhere; }
@media (min-width: 700px) { .spec > div { grid-template-columns: 12rem minmax(0, 1fr); } }
.method h3:not(:first-child) { margin-top: 26px; }
.how-dyn .spec { margin: 0; }

.statrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.statrow > div { flex: 1 1 170px; background: var(--ab-sub); border-radius: var(--r-sub); padding: 16px 18px; min-width: 0; }
.statrow dt { font: 600 13px/1.3 var(--font-body); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.statrow dd { font: 700 clamp(1.7rem, 2.6vw, 2.6rem)/1.05 var(--font-heading); letter-spacing: -0.05em; margin-top: 6px; }
.statrow dd small { display: block; font: 600 13px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.chart.ci svg { overflow: visible; }
.rv { fill: var(--ink); font-weight: 800; }

/* ---- plays: the play console, the product stage ---- */
.console { background: var(--ab-tile-sec); border-radius: var(--r-tile); box-shadow: var(--ab-shadow); padding: clamp(16px, 2vw, 28px); display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.console > * { min-width: 0; }
@media (min-width: 1100px) { .console { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); } }
.console-in { background: var(--ab-sub); border-radius: var(--r-sub); padding: 22px; --surf: var(--ab-sub); }
.console-out { padding: 10px 8px 0; }
.ctl + .ctl { margin-top: 20px; }
.ctl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ctl-h label, .ctl-h span:first-child { font: 600 14px/1.3 var(--font-body); }
.ctl-h .val { font: 700 15px/1 var(--font-body); color: var(--ink); text-align: left; }
.ctl .b-seg { width: 100%; background: var(--ab-tile); }
.ctl .b-seg button { padding: 0 4px; }
.ctl .cap { margin-top: 8px; font: 600 13px/1.4 var(--font-body); color: var(--muted); min-height: 1.5em; }
.b-range.single { height: 44px; }
.b-range.single input { pointer-events: auto; cursor: pointer; }
.ticks { position: relative; height: 20px; margin-top: -2px; }
.ticks span { position: absolute; top: 0; left: calc(14px + (100% - 28px) * var(--i) / 7); transform: translateX(-50%); font: 600 11px/1 var(--font-body); color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .ticks span:nth-child(even) { display: none; } }
.pinrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.pinrow .pinned-txt { font: 600 13px/1.4 var(--font-body); flex: 1 1 100%; }
.console-out h3.ro-h { font-size: clamp(1.2rem, 1.9vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.1; }
.console-out .ro-sub { font: 600 14px/1.4 var(--font-body); color: var(--muted); margin-top: 6px; }
.console-out .well { margin-top: 18px; }
.thin { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; background: var(--ab-sub); border-radius: var(--r-sub); outline: 2px dotted var(--ink); outline-offset: -2px; font-size: 15px; }
.thin .vchip { margin-top: 1px; }
.thin[hidden] { display: none; }
.bigs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 24px; margin-top: 22px; }
@media (max-width: 899px) { .bigs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bigs dt { font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.bigs dd { font: 700 clamp(1.8rem, 3vw, 3rem)/1 var(--font-heading); letter-spacing: -0.05em; margin-top: 6px; white-space: nowrap; }
.bigs dd .pin { display: block; font: 600 12px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); margin-top: 6px; white-space: normal; }
.bigs dd .pin:empty { display: none; }
.held { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 80ch; }
.yb { fill: var(--primary); stroke: var(--ink); stroke-width: 1.5; }
.yb.hot { fill: var(--ink); }
.yb.pin { fill: none; stroke: var(--ink); stroke-width: 2; }
.yb.tov { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 4 3; }
.fd-line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; }
.fd-zone { fill: var(--pri-tint); }
.cursor-bar { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }

/* ---- winprob ---- */
.pick { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.pick .field { margin-top: 0; flex: 1 1 320px; max-width: 520px; width: auto; }
.wp-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.wp-area { fill: var(--pri-tint); stroke: none; }
.wp-q { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.wp-half { stroke: var(--muted); stroke-width: 1.5; }
.wp-swing { fill: var(--surf); stroke: var(--ink); stroke-width: 3; }
.wp-side { fill: var(--ink); font: 700 12px var(--font-body); }
.swing-note { margin-top: 14px; max-width: 80ch; }
.swing-note b { font-weight: 800; }
.xhead, .xrow { display: grid; align-items: center; column-gap: 16px; grid-template-columns: 40px minmax(0, 1.5fr) 62px minmax(0, 2fr) 120px 160px; }
.xhead { font: 600 13px/1.3 var(--font-body); color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.xhead .r, .xrow .r { text-align: right; }
.xrow { width: 100%; text-align: left; background: none; border: 0; padding: 0; min-height: 50px; cursor: pointer; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--font-body); border-radius: 0; }
.xrow:hover { background: var(--sec-tint); }
.xrow:focus-visible { outline-offset: -3px; box-shadow: none; }
.xrow[aria-current="true"] { background: var(--sec-tint); box-shadow: inset 3px 0 0 var(--primary); }
.xrow .rk { padding-left: 10px; color: var(--muted); font-weight: 600; }
.xrow[aria-current="true"] .rk, .xrow[aria-current="true"] small { color: var(--ink); }
.xrow .gm { font: 700 16px/1.2 var(--font-body); }
.xrow .gm small { display: block; font: 600 12px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.xrow .wk { color: var(--ink); }
.xrow .xb { position: relative; height: 12px; }
.xrow .xb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 999px; }
.xrow .xv { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.xrow .xv span { min-width: 3.2em; }
.xrow .xv .xb { flex: 1; }
.xrow .sw, .xrow .lw { text-align: right; font-weight: 700; }
.xrow .lw small, .xrow .sw small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.xmore { margin-top: 18px; }
@media (max-width: 759px) {
  .xhead, .xrow { grid-template-columns: 30px minmax(0, 1fr) 84px; }
  .xhead .hide-m, .xrow .wk, .xrow .sw { display: none; }
  .xrow .xv .xb { display: none; }
  .xrow .lw { display: none; }
}
.heldback { margin-top: 18px; }

/* ---- fourth: GO = primary, FG = secondary, PUNT = line; clear calls are solid, leans are tinted, toss-ups are sub with a dotted outline ---- */
.fx-bar { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin-top: 0; }
.fx-bar .seg { margin-top: 0; }
.fx-bar > div { min-width: 0; max-width: 100%; }
.hm-wrap { overflow-x: auto; padding-bottom: 4px; }
.hm { display: block; }
.hm .hc { stroke: none; }
.hm .hc.lv-0 { fill: var(--ab-sub); }
.hm .hc.c-go.lv-1 { fill: url(#hatch-go); } .hm .hc.c-fg.lv-1 { fill: url(#hatch-fg); } .hm .hc.c-punt.lv-1 { fill: url(#hatch-punt); }
.hm .hc.c-go.lv-2 { fill: var(--cat-go); } .hm .hc.c-fg.lv-2 { fill: var(--cat-fg); } .hm .hc.c-punt.lv-2 { fill: var(--cat-punt); }
.hm .hc.on { stroke: var(--primary); stroke-width: 3; }
.hm .hc.on.c-go.lv-2 { stroke: var(--ink); }
/* chart key: clear = solid, lean = hatch of the same color, toss-up = plain sub-tile */
.fx-key { display: grid; width: fit-content; max-width: 100%; grid-template-columns: auto repeat(3, 76px); gap: 8px 14px; align-items: center; margin: 14px 0 0; font: 600 13px/1.3 var(--font-body); }
.fx-key .kh { color: var(--muted); }
.fx-key .kr { color: var(--ink); }
.fx-key .kc { display: block; height: 16px; border-radius: 4px; background: var(--ab-sub); }
.fx-key .kc.go { background: var(--cat-go); } .fx-key .kc.fg { background: var(--cat-fg); } .fx-key .kc.punt { background: var(--cat-punt); }
.fx-key .kc.lean.go { background: repeating-linear-gradient(135deg, var(--cat-go) 0 3px, var(--ab-tile) 3px 6px); }
.fx-key .kc.lean.fg { background: repeating-linear-gradient(135deg, var(--cat-fg) 0 3px, var(--ab-tile) 3px 6px); }
.fx-key .kc.lean.punt { background: repeating-linear-gradient(135deg, var(--cat-punt) 0 3px, var(--ab-tile) 3px 6px); }
.fx-key .kn2 { grid-column: span 2; color: var(--muted); }
.hm:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; box-shadow: none; }
.sw-go { background: var(--cat-go); } .sw-fg { background: var(--cat-fg); } .sw-punt { background: var(--cat-punt); }
.fx-detail { margin-top: 18px; padding: 16px 20px; min-height: 76px; font-size: 16px; background: var(--ab-sub); border-radius: var(--r-sub); --surf: var(--ab-sub); }
.fx-detail b { font-weight: 800; }
.tbl-wrap { overflow-x: auto; }
table.tmt { min-width: 760px; }
table.tmt thead th { padding: 0 10px 10px 0; vertical-align: bottom; }
table.tmt thead th.r { padding-right: 0; padding-left: 10px; }
table.tmt tbody th { color: var(--ink); padding: 0; border-bottom: 1px solid var(--line); text-align: left; font: 600 14px/1.3 var(--font-body); }
table.tmt tbody td { padding: 6px 0 6px 10px; }
table.tmt tbody tr:hover { background: var(--sec-tint); }
.tmbtn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 8px 6px; min-height: 40px; width: 100%; }
.tmbtn:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; box-shadow: inset 0 0 0 4px var(--ink); }
.tmbtn .abbr { font-size: 16px; }
.tmbtn .nm { font-size: 12px; }
tr.is-sel { background: var(--sec-tint); box-shadow: inset 3px 0 0 var(--primary); }
tr.is-sel .nm { color: var(--ink); }
.pfilters { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; margin-top: 0; }
.pfilters .field { margin-top: 0; max-width: 300px; flex: 1 1 240px; }
.pfilters .seg { margin-top: 0; }
.plist { margin-top: 20px; }
.prow summary { list-style: none; display: grid; column-gap: 16px; align-items: center; grid-template-columns: 54px minmax(0, 1.4fr) minmax(0, 1.6fr) 150px 22px; min-height: 56px; padding: 6px 4px; cursor: pointer; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--font-body); }
.prow summary::-webkit-details-marker { display: none; }
.prow summary:hover { background: var(--sec-tint); }
.prow summary:focus-visible { outline-offset: -3px; box-shadow: none; }
.prow summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-top: -4px; justify-self: center; }
.prow[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.prow .pw { color: var(--muted); font-weight: 600; padding-left: 6px; }
.prow .ps { font-weight: 700; }
.prow .ps small, .prow .pc small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.prow .pc b { font-weight: 700; font-size: 13px; }
.prow .pc .arrow { color: var(--muted); padding: 0 8px; font-size: 13px; }
.prow .pg { text-align: right; font-weight: 700; }
.prow .pg small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.prow .tag-fill { margin-left: 8px; }
.prow-body { padding: 14px 8px 18px 60px; border-bottom: 1px solid var(--line); font-size: 15px; display: grid; gap: 10px; }
.prow-body .opts { display: flex; flex-wrap: wrap; gap: 6px 28px; font: 600 13px/1.4 var(--font-body); }
.prow-body .opts span b { font-weight: 800; }
.opt-go::before, .opt-fg::before, .opt-punt::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink); vertical-align: -1px; }
.opt-go::before { background: var(--cat-go); } .opt-fg::before { background: var(--cat-fg); } .opt-punt::before { background: var(--cat-punt); }
@media (max-width: 759px) {
  .prow summary { grid-template-columns: 40px minmax(0, 1fr) 70px 18px; }
  .prow summary .pc { grid-column: 2 / 3; grid-row: 2; }
  .prow summary .pw { grid-row: 1 / 3; align-self: start; padding-top: 8px; }
  .prow summary .pg { grid-row: 1 / 3; }
  .prow summary::after { grid-row: 1 / 3; }
  .prow-body { padding-left: 14px; }
}
.mix { display: grid; gap: 14px; margin-top: 24px; max-width: 900px; }
.mix-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; font: 600 14px/1.3 var(--font-body); }
.mix-bar { display: flex; gap: 3px; height: 40px; }
.mix-bar span { display: flex; align-items: center; padding: 0 12px; min-width: 0; font: 700 14px/1 var(--font-body); white-space: nowrap; overflow: hidden; border-radius: 6px; }
.mix-bar span:first-child { border-radius: 999px 6px 6px 999px; } .mix-bar span:last-child { border-radius: 6px 999px 999px 6px; }
.mix-bar span.go { background: var(--cat-go); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mix-bar span.fg { background: var(--cat-fg); color: var(--neutral-light); }
.mix-bar span.punt { background: var(--cat-punt); color: var(--neutral-light); }
.comp { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.comp li { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1.4 var(--font-body); }
.pc-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: baseline; }
.fx-bar .b-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fx-bar .b-seg::-webkit-scrollbar { display: none; }
.fx-bar .b-seg button { flex: 0 0 auto; padding: 0 18px; }
.xhead .sortb { margin: 0; padding: 4px 10px; }
.xseg { display: none; margin-top: 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; width: fit-content; }
.xseg button { flex: 0 0 auto; }
.xrow .gm .mini { display: none; }
@media (max-width: 759px) { .xseg { display: flex; } .xrow .gm .mini { display: inline; } .xhead .sortb { pointer-events: none; } }
.hm-wrap .hm { width: auto; max-width: none; }
.fx-state { margin-top: 12px; }

/* ---- playcalling: pass = primary, run = secondary; gain shown in three steps (sub, tint, solid) ---- */
.pc-controls { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; margin-top: 0; }
.pc-controls .ctl { min-width: 0; flex: 0 1 auto; }
.pc-controls .ctl + .ctl { margin-top: 0; }
.pc-controls .b-seg { width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pc-controls .b-seg::-webkit-scrollbar { display: none; }
.pc-controls .b-seg button { flex: 0 0 auto; padding: 0 16px; }
.pgrid { max-width: 1600px; display: grid; grid-template-columns: minmax(66px, 112px) repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.pgrid .gh { font: 600 13px/1.3 var(--font-body); color: var(--muted); padding: 0 2px 4px; display: flex; align-items: end; }
.pgrid .gl { font: 700 13px/1.3 var(--font-body); display: flex; align-items: center; padding-right: 6px; }
.pgrid .gl small { display: block; font: 600 12px/1.3 var(--font-body); color: var(--muted); }
.pcell { all: unset; box-sizing: border-box; cursor: pointer; min-height: 84px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; border-radius: var(--r-sub); background: var(--ab-sub); color: var(--ink); }
.pcell:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.pcell .pa { font: 700 clamp(12px, 1.05vw, 16px)/1.1 var(--font-body); color: inherit; }
.pcell .pg2 { font: 700 clamp(12px, 1vw, 15px)/1.2 var(--font-body); color: inherit; }
.pcell .pg2 small { display: none; font: 600 12px/1.2 var(--font-body); color: inherit; }
@media (min-width: 900px) { .pcell .pg2 small { display: block; } }
.pcell.k-pass.t0 { background: var(--ab-sub); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pcell.k-pass.t1 { background: var(--pri-tint); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pcell.k-pass.t2 { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 2px var(--ink); }
.pcell.k-run.t0 { background: var(--ab-sub); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pcell.k-run.t1 { background: var(--sec-tint); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pcell.k-run.t2 { background: var(--secondary); color: var(--on-secondary); box-shadow: inset 0 0 0 2px var(--ink); }
.pcell.k-none { background: transparent; outline: 2px dotted var(--muted); outline-offset: -2px; color: var(--muted); }
.pcell.k-none .pa { font-weight: 600; font-size: clamp(11px, 0.95vw, 13px); }
.pcell[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.pcell .pn { font: 600 11px/1.2 var(--font-body); color: inherit; }
@media (max-width: 599px) {
  .pgrid { gap: 5px; grid-template-columns: 58px repeat(4, minmax(0, 1fr)); }
  .pcell { padding: 6px; min-height: 66px; }
  .pcell .pa { font-size: 10px; }
  .pcell .pg2 { font-size: 10px; }
  .pgrid .gl { font-size: 10px; }
  .pgrid .gl small { display: none; }
  .pgrid .gh { font-size: 10px; }
}
.pdetail { padding: 18px 22px 20px; margin-top: 18px; background: var(--ab-sub); border-radius: var(--r-sub); --surf: var(--ab-sub); }
.pdetail h3 { font-size: 18px; }
.pdetail p { font-size: 15px; margin-top: 4px; max-width: 80ch; }
.pdetail table { margin-top: 10px; font-size: 13px; }
.pdetail .tbl-wrap { overflow-x: auto; }
.pdetail td, .pdetail th { padding-right: 14px; }
.pdetail th.r, .pdetail td.r { padding-right: 0; padding-left: 14px; }
.sc { --mk: var(--ink); display: inline-block; width: 22px; height: 14px; vertical-align: -2px; margin-right: 6px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sc.pass { background: var(--primary); } .sc.run { background: var(--secondary); }
.sc.none { background: transparent; box-shadow: none; outline: 1.5px dotted var(--muted); outline-offset: -1.5px; }
.sc.pass.t0, .sc.run.t0 { background: var(--ab-sub); }
.sc.pass.t1 { background: var(--pri-tint); } .sc.run.t1 { background: var(--sec-tint); }
.legend i.sc, .tip i.sc { position: static; width: 22px; height: 14px; clip-path: none; border: 0; border-radius: 4px; align-self: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend i.sc.none { box-shadow: none; outline: 1.5px dotted var(--muted); outline-offset: -1.5px; }
.legend i.sc::after, .tip i.sc::after { display: none; }

/* ---- white secondary (2026-10-10): white fills get an edge so they read on white tiles ---- */
.kn, .tag-fill, .game .when .tag, .v-pass, .me, .find .fn { box-shadow: inset 0 0 0 1px var(--line); }
.sc.run { box-shadow: inset 0 0 0 1.5px var(--ink); }

