/* Field chart: the season measured on a 100-yard field. Ink and chalk on a white sheet by day,
   chalk on a near-black sheet after dark. Color comes only from the pylon-orange brand accent,
   quad tints and team colors. */
:root {
  /* One eleven-step neutral ramp, faintly warm. Every gray comes from here. */
  --n0: #f7f7f6; --n1: #f0f0ee; --n2: #e4e4e1; --n3: #cfd0cc; --n4: #b4b5b1; --n5: #8f908b;
  --n6: #686964; --n7: #4e4f4b; --n8: #363733; --n9: #20211e; --n10: #0f100e;
  /* A white sheet of content on a light gray page, with a soft edge for depth. */
  --page: #eceef0;
  --bg: #ffffff;
  --sheet-shadow: 0 1px 2px rgba(15, 16, 14, .06), 0 6px 22px rgba(15, 16, 14, .07);
  --ink: var(--n10);
  --muted: var(--n6);
  --hair: var(--n2);
  --rule5: var(--n4);
  --rule10: var(--n9);
  /* Brand: pylon orange. The mark uses #d9531e; text and small accents use this deeper shade
     so they pass 4.5:1 on white. */
  --brand: #c2410c;
  --brand-ink: #f7f7f6;
  --lit: rgba(194, 65, 12, .09);
  --up: #19713f;
  --down: #b42330;
  --q1: #15462d; --q1-bg: #d3e6d9;
  --q2: #1d4470; --q2-bg: #d8e3f0;
  --q3: #694607; --q3-bg: #efdfbb;
  --q4: #4e4f4b; --q4-bg: #e4e4e1;
  --ui: 'Archivo', system-ui, sans-serif;
  --num: 'Graduate', 'Archivo', serif;
  --step: 90ms steps(2, end);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --n0: #111110; --n1: #171716; --n2: #21211f; --n3: #2d2d2b; --n4: #41413e; --n5: #5c5c58;
    --n6: #8b8b86; --n7: #ababa6; --n8: #c9c9c4; --n9: #e1e1dd; --n10: #f2f2ef;
    --brand: #f5844f;
    --brand-ink: #111110;
    --lit: rgba(245, 132, 79, .13);
    --up: #74d29b;
    --down: #f2727c;
    --q1: #a0d9b3; --q1-bg: #15301f;
    --q2: #a9c5e8; --q2-bg: #172a40;
    --q3: #e8c57e; --q3-bg: #34280e;
    --q4: #ababa6; --q4-bg: #21211f;
    --page: #080808; --bg: var(--n0);
    --sheet-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 22px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --n0: #111110; --n1: #171716; --n2: #21211f; --n3: #2d2d2b; --n4: #41413e; --n5: #5c5c58;
  --n6: #8b8b86; --n7: #ababa6; --n8: #c9c9c4; --n9: #e1e1dd; --n10: #f2f2ef;
  --brand: #f5844f; --brand-ink: #111110; --lit: rgba(245, 132, 79, .13);
  --up: #74d29b; --down: #f2727c;
  --q1: #a0d9b3; --q1-bg: #15301f; --q2: #a9c5e8; --q2-bg: #172a40;
  --q3: #e8c57e; --q3-bg: #34280e; --q4: #ababa6; --q4-bg: #21211f;
  --page: #080808; --bg: var(--n0);
  --sheet-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 22px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--n4) var(--n1); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 15px/1.45 var(--ui); font-stretch: 100%;
  font-variant-numeric: tabular-nums; caret-color: var(--brand);
}
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
/* The content sheet: white, rounded, lifted slightly off the gray page. */
main.wrap {
  background: var(--bg); border-radius: 12px; box-shadow: var(--sheet-shadow);
  margin-top: 20px; padding: 6px 24px 28px;
  max-width: 1232px; /* room for the full rankings chart inside the padding */
}
.ic { width: .8em; height: .8em; vertical-align: -.05em; flex: none; }

/* Tracked caps at normal width: the chart's printed legend voice. */
.lbl, th, .nav a, .tabs a, .seg button, .stat dt, .qbox .q-name, .back, .vs-label, .leaders h3 {
  font-family: var(--ui); font-stretch: 100%; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Masthead: a heavy sideline under the wordmark. */
.masthead { background: var(--bg); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font: 400 19px/1 var(--num); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 400; color: var(--brand); }
.brand .mark { width: 26px; height: 26px; vertical-align: -7px; margin-right: 9px; }
.brand a:first-child:hover { text-decoration: none; }
.brand a:first-child:hover .name { text-decoration: underline; }
.brand a { text-decoration: none; }
.brand a + a { margin-left: .4em; } /* a clear gap between Team Index and CFB */
.brand a:hover { text-decoration: underline; }
.nav { display: flex; gap: 20px; }
.nav a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color var(--step), border-color var(--step); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-color: var(--ink); }

.loading, .error { padding: 64px 0; color: var(--muted); }

/* Page heads: the heading speaks first, facts follow beneath. */
h1 {
  font: 800 clamp(32px, 5vw, 52px)/.95 var(--ui); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.page-head { padding: 28px 0 4px; }
.meta { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0 14px; }
.controls select, .controls input {
  font: 500 14px var(--ui); color: var(--ink); background: var(--n1);
  border: 1px solid var(--n3); border-radius: 2px; padding: 0 10px; height: 36px;
}
.controls input { width: 190px; }
.controls input::placeholder { color: var(--muted); }
.controls select:hover, .controls input:hover { border-color: var(--n5); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; }
.seg button {
  font-size: 12px; color: var(--ink); background: transparent; border: 0;
  padding: 0 14px; height: 34px; cursor: pointer; transition: background var(--step), color var(--step);
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button:hover { background: var(--n2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }


/* The chart. Hairlines between rows, a heavier line every 5, a chalk line every 10. */
.table-scroll { overflow-x: auto; margin-bottom: 28px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th {
  font-size: 11px; color: var(--muted); text-align: right; padding: 10px 8px 8px;
  border-bottom: 2px solid var(--ink); white-space: nowrap; background: var(--bg);
  cursor: pointer; user-select: none;
}
/* Only once the whole chart fits: clip (not auto) keeps the page as the scroll container so the
   chart's header can stick under the masthead. Narrower windows scroll the chart sideways. */
@media (min-width: 1240px) {
  .chart-wrap { overflow-x: clip; }
  .chart th { position: sticky; top: 55px; z-index: 1; }
}
.chart td, .chart th { padding-left: 6px; padding-right: 6px; }
.chart .q { min-width: 40px; }
.chart .team { min-width: 150px; }
th:hover, th.sorted { color: var(--ink); }
th .ic { margin-left: 3px; color: var(--brand); }
.short, .show-sm { display: none; }
th.l, td.l { text-align: left; }
td { padding: 7px 8px; border-bottom: 1px solid var(--hair); text-align: right; white-space: nowrap; }
tr.y5 td { border-bottom-color: var(--rule5); }
tr.y10 td { border-bottom: 2px solid var(--rule10); }
tr.goal td { border-bottom: 3px solid var(--brand); }
.chart tbody tr { cursor: pointer; transition: opacity var(--step), background var(--step); }
.chart tbody tr:hover { background: var(--n1); }

/* Gutter: yard-marker numerals every 10 rows, CFP at the goal line, W/L when lit. */
td.yd, th.yd { width: 40px; padding-right: 10px; cursor: default; }
td.yd { font: 400 12px/1 var(--num); color: var(--n7); }
td.yd .goal-lbl { font: 600 10px var(--ui); font-stretch: 100%; letter-spacing: .06em; color: var(--brand); }
td.yd .res { font: 700 12px var(--ui); }

.rank { font: 400 15px/1 var(--num); }
.num { font-weight: 500; }
.move { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.move.up { color: var(--up); } .move.down { color: var(--down); } .move.flat { color: var(--n6); }
.team { display: flex; align-items: center; gap: 10px; min-width: 168px; }
.team img { width: 22px; height: 22px; object-fit: contain; }
.team-name { font-weight: 650; text-decoration: none; }
a.team-name:hover { text-decoration: underline; }
.conf { color: var(--muted); font-size: 13px; }
.sub { color: var(--muted); font-size: 12px; margin-left: 4px; }

.q { display: inline-block; min-width: 44px; text-align: center; padding: 3px 6px; border-radius: 2px; font-weight: 600; font-size: 13px; }
.q.zero { background: transparent; color: var(--n6); font-weight: 400; }
.q1 { color: var(--q1); background: var(--q1-bg); }
.q2 { color: var(--q2); background: var(--q2-bg); }
.q3 { color: var(--q3); background: var(--q3-bg); }
.q4 { color: var(--q4); background: var(--q4-bg); }
.qtag { font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 2px; }

/* Focus corridor: hold on a team and its opponents stay lit while the rest of the field dims. */
tbody.focusing tr { opacity: .32; }
tbody.focusing tr.self, tbody.focusing tr.lit { opacity: 1; }
tbody.focusing tr.self { background: var(--n1); }
tbody.focusing tr.lit { background: var(--lit); }

/* Team page */
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 12px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.sheet-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 0 20px; }
.sheet-head img { width: 64px; height: 64px; object-fit: contain; }
.sheet-ranks { display: flex; gap: 26px; }
.sheet-rank { text-align: center; }
.sheet-rank .big { font: 400 54px/1 var(--num); }
.sheet-rank .lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.sheet-rank .move { margin-top: 4px; }

/* Where they stand: résumé and power on one 1-to-last field. */
.stand { position: relative; height: 54px; margin: 0 0 6px; }
.stand-line { position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--ink); }
.stand-tick { position: absolute; bottom: 14px; width: 1px; height: 7px; background: var(--rule5); }
.stand-tick.ten { height: 11px; width: 2px; background: var(--ink); }
.stand-end { position: absolute; bottom: 0; font-size: 11px; color: var(--muted); }
.stand-mark {
  position: absolute; bottom: 16px; transform: translateX(-50%);
  font-size: 11px; padding: 3px 6px; border-radius: 2px; white-space: nowrap;
}
/* Résumé is an outlined tag so it never looks like the solid team-colored Efficiency flag. */
.stand-mark.r { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stand-mark.r::after { background: var(--ink); }
.stand-mark.p { background: var(--brand); color: var(--brand-ink); bottom: 34px; }
.stand-mark::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; margin-left: -1px; background: inherit; }
.stand-mark.r::after { height: 2px; }
.stand-mark.p::after { height: 20px; }
/* The CFP goal line at 12, the same device the rankings chart uses. */
/* A short goal-line tick at the ruler, kept behind the flags. */
.stand-goal { position: absolute; bottom: 12px; width: 3px; height: 10px; margin-left: -1px; background: var(--brand); z-index: 0; }
.stand-mark { z-index: 1; }
.stand-goal-lbl { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 10px; color: var(--brand); }
/* Near either end the flag hangs inward so it never leaves the page. */
.stand-mark.edge-l { transform: none; }
.stand-mark.edge-l::after { left: 1px; }
.stand-mark.edge-r { transform: translateX(-100%); }
.stand-mark.edge-r::after { left: auto; right: -1px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 10px 0 0; border-top: 2px solid var(--ink); }
.stat { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.stat dt { font-size: 11px; color: var(--muted); }
.stat dd { margin: 4px 0 0; font: 700 22px/1.1 var(--ui); font-stretch: 88%; }
.stat dd small { font-size: 12px; color: var(--muted); font-weight: 500; font-stretch: 100%; }

.quad-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 0 4px; }
.qbox {
  text-align: left; border: 0; border-radius: 2px; padding: 11px 12px; cursor: pointer;
  font: inherit; transition: opacity var(--step), box-shadow var(--step);
}
.qbox .q-name { font-size: 11px; }
.qbox .q-val { display: block; font: 800 28px/1.05 var(--ui); font-stretch: 85%; margin-top: 2px; }
.qbox .q-def { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.qbox[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.quad-strip.filtering .qbox[aria-pressed="false"] { opacity: .45; }

.tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--ink); margin-top: 22px; }
.tabs a { font-size: 14px; text-decoration: none; color: var(--muted); padding: 8px 0; margin-bottom: -2px; border-bottom: 4px solid transparent; transition: color var(--step), border-color var(--step); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--brand); }

h2.sec {
  font: 800 19px/1.1 var(--ui); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em;
  margin: 30px 0 0; padding-bottom: 7px; border-bottom: 2px solid var(--ink);
}
h2.sec .conf { font-stretch: 100%; text-transform: none; font-weight: 400; letter-spacing: 0; }
.games tbody tr { cursor: pointer; transition: opacity var(--step); }
.games tbody tr:hover { background: var(--n1); }
.games tbody tr.dim { opacity: .25; }
.res-W { color: var(--up); font-weight: 700; }
.res-L { color: var(--down); font-weight: 700; }
.site { font-size: 12px; font-weight: 600; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Game page */
.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 16px 0 8px; }
.gs { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.gs img { width: 72px; height: 72px; object-fit: contain; }
.gs-name { font: 800 clamp(19px, 3.4vw, 30px)/1 var(--ui); font-stretch: 75%; text-transform: uppercase; }
.gs-name a { text-decoration: none; }
.gs-name a:hover { text-decoration: underline; }
.gs .meta { margin: 0; }
.at { font: 400 20px var(--num); color: var(--n6); padding-top: 26px; }
.game-meta { text-align: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; padding: 18px 0 8px; }
.score { font: 400 clamp(52px, 9vw, 88px)/1 var(--num); color: var(--n6); }
.score.won, .projected .score { color: var(--ink); }
.scoreline .lbl { font-size: 12px; color: var(--muted); }

/* The win-probability field: away end zone left, home end zone right, the line of
   scrimmage where the odds split. */
.field-wrap { padding: 8px 0 4px; }
.field {
  display: grid; grid-template-columns: 7% 1fr 7%; height: 64px;
  border: 2px solid var(--ink); position: relative;
}
.ez {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font: 400 13px/1 var(--num); letter-spacing: .04em; writing-mode: vertical-rl;
}
.ez.away { transform: rotate(180deg); }
.turf {
  position: relative;
  background:
    repeating-linear-gradient(to right, rgba(255, 255, 255, .7) 0 2px, transparent 2px 10%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(to right, rgba(255, 255, 255, .35) 0 1px, transparent 1px 5%) 0 0 / 100% 100% no-repeat,
    linear-gradient(to right, var(--away) 0 var(--split), var(--home) var(--split) 100%);
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
}
.los {
  position: absolute; top: -10px; bottom: -10px; left: var(--split); width: 4px; margin-left: -2px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--bg);
}
.yards { position: relative; height: 18px; margin: 0 7%; }
.yards span { position: absolute; top: 4px; transform: translateX(-50%); font: 400 11px var(--num); color: var(--muted); }
.prob-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; }
.prob-labels b { font: 800 22px/1 var(--ui); font-stretch: 85%; margin: 0 4px; }

.pregame { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.pregame b { color: var(--ink); font-weight: 650; }
.disclaimer { font-size: 13px; }
table.vs td, table.vs th { text-align: center; cursor: default; }
table.vs td.num { width: 38%; font-weight: 600; white-space: normal; }
.vs-label { color: var(--muted); font-size: 11px; }
table.box { max-width: 560px; }
table.box th, table.box td { cursor: default; }
table.box td.num:last-child { font-weight: 800; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 12px 0 8px; }
.leaders h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.leader { padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.leader .line { display: block; font-size: 13px; color: var(--muted); }

/* One centered reading column for game and matchup pages, so headings and tables share edges. */
.column { max-width: 880px; margin: 0 auto; }

/* Schedule tables share fixed columns so the Team sheet's per-quad tables line up. */
table.sched { table-layout: fixed; }
.sched .c-date { width: 84px; } .sched .c-rk { width: 96px; } .sched .c-q { width: 64px; }
.sched .c-res { width: 130px; } .sched .c-odds { width: 200px; }
.team .site { width: 18px; flex: none; }

/* Slate and bracket: a team line is logo, optional seed and top-25 rank, name, quad. */
.tl { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.tl img, .tl .logo-gap { width: 18px; height: 18px; object-fit: contain; flex: none; }
.tl .rk { font: 400 11px var(--num); color: var(--muted); }
.tl .seed { font: 400 17px/1 var(--num); width: 24px; text-align: right; flex: none; }
.tl .qtag { margin-left: 2px; }
.pair { display: flex; flex-direction: column; gap: 5px; }
table.slate { table-layout: fixed; }
.slate .c-time { width: 78px; } .slate .c-model { width: 130px; } .slate .c-line { width: 110px; } .slate .c-tags { width: 230px; }
.slate td { vertical-align: middle; }
.model .sub { display: block; margin: 2px 0 0; }
.tags { white-space: normal; }
.chip {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 2px; white-space: nowrap;
  font: 600 10px/1.6 var(--ui); font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase;
}
.chip.in { background: var(--brand); color: var(--brand-ink); }
.chip.out { border: 1px solid var(--ink); color: var(--ink); line-height: 1.4; }
.watch { display: block; font: 600 11px var(--ui); font-stretch: 100%; letter-spacing: .05em; text-transform: uppercase; color: var(--down); }
.swing { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin: 2px 0; }
.swing b { color: var(--ink); font-weight: 650; }
.tags-sm { display: none; }
.bracket { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding-top: 14px; }
.pod { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; margin-bottom: 20px; }
.round { border-top: 2px solid var(--ink); }
.round > .lbl { display: block; font-size: 10.5px; color: var(--muted); padding: 6px 0 2px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair); min-height: 34px; }
.slot.tbd { color: var(--muted); font-size: 13px; padding-left: 31px; }
.slot .rec, .bub .rec { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pick { display: block; font-size: 12px; color: var(--brand); font-weight: 650; padding-top: 5px; }
.join { height: 2px; background: var(--ink); }
.semi { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.bubble { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 12px; }
.bubble h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.bub { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.bid { font: 600 11px var(--ui); font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bid.auto { color: var(--brand); }
.field-table tbody tr { cursor: pointer; }
.races td { vertical-align: top; }
td.wrap { white-space: normal; }

.picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 20px 0 6px; max-width: 880px; margin: 0 auto; }
.picker select {
  font: 650 15px var(--ui); color: var(--ink); background: var(--n1);
  border: 1px solid var(--n3); border-radius: 2px; padding: 0 10px; height: 40px; min-width: 0;
}

/* Page key: fine print under everything, one term per row. */
.key { margin: 44px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--muted); }
.key-title { margin: 0 0 6px; font: 600 10px var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.key-rows { margin: 0; }
.key-rows div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 2px 0; }
.key-rows dt { font: 600 10px/1.7 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--n7); }
.key-rows dd { margin: 0; font-size: 11.5px; line-height: 1.5; }
.asof { font-size: 11.5px; margin: 8px 0 0; }

/* Method */
.prose { max-width: 68ch; padding: 6px 0 40px; }
.prose h2 { font: 800 21px/1.1 var(--ui); font-stretch: 75%; text-transform: uppercase; margin: 34px 0 8px; }
.prose code { font: 600 13px var(--ui); background: var(--n2); padding: 1px 5px; border-radius: 2px; }
.prose table { margin: 10px 0; max-width: 460px; }
.prose td, .prose th { text-align: center; cursor: default; }

.foot { color: var(--muted); font-size: 13px; margin: 0; padding: 18px 24px 40px; }

@media (max-width: 640px) {


  .brand { font-size: 16px; }
  .nav { gap: 14px; }
  .controls input { flex: 1 0 100%; width: auto; min-width: 0; }
  .controls select { flex: 1; min-width: 0; }
  /* Fit rank, team, record and all four quads on a phone; the rest scrolls sideways. */
  .chart td, .chart th { padding-left: 3px; padding-right: 3px; }
  td.yd, th.yd { width: 22px; padding-right: 3px; }
  td.yd { font-size: 10px; }
  .chart .team { min-width: 0; }
  .chart .team { gap: 5px; }
  .chart .team img { width: 14px; height: 14px; }
  .chart .team-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
  .chart .q { min-width: 32px; padding: 2px; font-size: 12px; }
  /* One rank column fits on a phone: show whichever view is active. */
  .chart.by-eff .res-col { display: none; }
  .chart.by-eff .eff-col { display: table-cell; }

  .hide-sm { display: none; }
  main.wrap { margin: 10px 8px 0; padding: 4px 12px 22px; border-radius: 10px; }
  .foot { padding: 16px 12px 32px; }
  .full { display: none; }
  .short, .show-sm { display: inline; }
  .sub.show-sm { display: block; margin: 2px 0 0; }
  /* Nav moves to its own scrolling row under the wordmark. */
  .masthead-row { flex-wrap: wrap; height: auto; padding: 10px 16px 0; }
  .nav { width: 100%; overflow-x: auto; scrollbar-width: none; gap: 12px; padding: 6px 0 2px; }
  .nav a { font-size: 11.5px; letter-spacing: .03em; }
  .chart th { font-size: 10px; letter-spacing: .02em; }
  .nav a { white-space: nowrap; }
  /* Phones: size columns to content so the opponent name gets every spare pixel. */
  table.sched { table-layout: auto; }
  .sched col { width: auto !important; }
  .sched td:not(:nth-child(2)), .sched th:not(:nth-child(2)) { width: 1%; white-space: nowrap; }
  .sched td, .sched th { padding-left: 4px; padding-right: 4px; }
  /* Names shrink and cut off inside their own cell instead of spilling into the next column. */
  .sched td.l { overflow: hidden; }
  .sched .team { min-width: 0; gap: 5px; }
  .sched .site { width: 16px; font-size: 11px; }
  .sched .team img { width: 16px; height: 16px; }
  .sched .team-name { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 268px); }
  .slate .c-time { width: 52px; } .slate .c-model { width: 104px; }
  .slate .model { font-size: 13px; }
  .sched .c-rk { width: 44px; } .slate .c-line, .slate .c-tags { width: 0; }
  .slate .tags { display: none; }
  .slate .tags-sm { display: block; margin-top: 4px; white-space: normal; }
  .slate td, .slate th { padding-left: 4px; padding-right: 4px; }
  .tl { gap: 5px; }
  .tl .team-name { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  /* On the slate, a status chip drops under the name rather than squeezing it. */
  .slate .tl { flex-wrap: wrap; row-gap: 3px; }
  .slate .tl .team-name { max-width: 150px; }
  .slate .chip { margin-left: 0; }
  .bracket, .bubble { grid-template-columns: 1fr; }
  .pod { grid-template-columns: 1fr; gap: 6px; }
  .join { display: none; }
  .picker { grid-template-columns: 1fr; }
  .picker .seg { width: 100%; }
  .picker .seg button { flex: 1; }
  .sheet-head { grid-template-columns: auto 1fr; gap: 12px; }
  .sheet-head img { width: 44px; height: 44px; }
  .sheet-ranks { grid-column: 1 / -1; }
  .sheet-rank .big { font-size: 40px; }
  .quad-strip { grid-template-columns: repeat(2, 1fr); }
  .gs img { width: 44px; height: 44px; }
  .field { grid-template-columns: 10% 1fr 10%; height: 52px; }
  .yards { margin: 0 10%; }
  .yards span:nth-child(even) { display: none; }
  .leaders { grid-template-columns: 1fr; }
  .key-rows div { grid-template-columns: 1fr; gap: 0; padding: 3px 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --step: 0s; }
}
