/* Davis Wade Forecast: editorial big board in Mississippi State maroon. */
:root {
  --maroon: #5D1725;
  --maroon-deep: #3E0C17;
  --maroon-soft: #F3E7EA;
  --maroon-band: rgba(93, 23, 37, 0.2);
  --page: #F2F1EE;
  --surface: #FFFFFF;
  --ink: #1C1214;
  --ink-2: #625A5D;
  --ink-3: #8A8285;
  --rule: #DDD8D4;
  --track: #E5E1DD;
  --slate: #2E6DAA;
  --good: #0C7A2B;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}
img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: 24px; font-weight: 700; margin-top: 36px; margin-bottom: 8px; }
p { margin: 0 0 1em; max-width: 68ch; }
small { font-size: 0.85em; }
.muted { color: var(--ink-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.rank { font-family: var(--display); font-weight: 600; font-size: 0.6em; color: var(--ink-2); vertical-align: 0.25em; letter-spacing: 0.02em; }

/* Masthead */
.masthead { background: var(--maroon); color: #fff; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 12px 0; }
.brand img { width: 52px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: 0.005em; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; max-width: 100%; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 19px; color: rgba(255, 255, 255, 0.82);
  text-decoration: none; padding: 20px 14px; border-bottom: 4px solid transparent; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* Hero */
.hero {
  background: var(--surface);
  margin: 0 calc(50% - 50vw);
  padding: 44px calc(50vw - 50%) 40px;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker { font-weight: 500; color: var(--ink-2); margin-bottom: 18px; }
.hero-kicker a { color: var(--ink-2); }
.hero-matchup { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.hero-vs { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink-3); }
.hero-title { font-size: clamp(44px, 6.5vw, 68px); font-weight: 800; letter-spacing: -0.01em; }
.hero-when { font-size: 19px; color: var(--ink-2); margin: 8px 0 0; }
.hero-forecast {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "figure gauge" "figure facts";
  column-gap: 48px; row-gap: 20px;
  align-items: start;
  margin-top: 36px;
}
.hero-game .hero-forecast { grid-template-columns: auto auto 1fr; grid-template-areas: "figure actual gauge" "figure actual facts"; }
.figure { grid-area: figure; display: flex; flex-direction: column; }
.figure-actual { grid-area: actual; }
.figure-num { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 11vw, 124px); line-height: 0.88; color: var(--maroon); letter-spacing: -0.02em; }
.figure-actual .figure-num { color: var(--ink); }
.figure-label { font-size: 16px; color: var(--ink-2); margin-top: 10px; max-width: 16ch; }
.hero-gauge { grid-area: gauge; padding-top: 14px; }
.facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.facts > div { min-width: 120px; }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-link { display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: 21px; }
.hero-quiet .hero-title { max-width: 18ch; }
.notice { margin-top: 24px; padding: 12px 16px; border-left: 4px solid var(--maroon); background: var(--maroon-soft); max-width: 70ch; }

/* Logos */
.logo { display: inline-block; object-fit: contain; flex: none; }
.logo-xl { width: 96px; height: 96px; }
.logo-md { width: 56px; height: 56px; }
.logo-sm { width: 40px; height: 40px; }
.logo-xs { width: 28px; height: 28px; }
.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--track); color: var(--ink-2); font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 0.55em; letter-spacing: 0.02em;
}
.logo-xl.logo-fallback { font-size: 30px; }
.logo-sm.logo-fallback { font-size: 14px; }
.logo-xs.logo-fallback { font-size: 10px; }

/* Capacity gauge */
.gauge { position: relative; width: 100%; }
.gauge-track { position: relative; height: 10px; background: var(--track); border-radius: 5px; overflow: visible; }
.gauge-hero .gauge-track { height: 18px; border-radius: 9px; }
.gauge-track::after { content: ""; position: absolute; right: -1px; top: -4px; bottom: -4px; width: 3px; background: var(--maroon-deep); border-radius: 2px; }
.gauge-band { position: absolute; top: 0; bottom: 0; background: var(--maroon-band); border-radius: 5px; }
.gauge-hero .gauge-band { border-radius: 9px; }
.gauge-point {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--maroon); box-shadow: 0 0 0 2px var(--surface);
}
.gauge-hero .gauge-point { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.gauge-actual {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg);
  background: var(--ink); box-shadow: 0 0 0 2px var(--surface);
}
.gauge-hero .gauge-actual { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.gauge-axis { position: relative; height: 22px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.gauge-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gauge-axis span:first-child { transform: none; }
.gauge-axis .gauge-cap { transform: translateX(-100%); color: var(--maroon-deep); font-weight: 500; }
.gauge-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.gauge-legend span, .legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 10px; flex: none; }
.key-band { background: var(--maroon-band); border-radius: 3px; }
.key-point { width: 10px; height: 10px; border-radius: 50%; background: var(--maroon); }
.key-actual { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }

/* Big board */
.board { padding: 40px 0 24px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.board-sub { color: var(--ink-2); margin: 4px 0 0; }
.view-toggle, .filters { display: inline-flex; gap: 4px; padding: 3px; background: var(--track); border-radius: 999px; flex-wrap: wrap; }
.view-toggle button, .filters button {
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
  padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.view-toggle button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows-head, .row {
  display: grid;
  grid-template-columns: 74px minmax(180px, 1.4fr) 76px 128px minmax(150px, 1fr) 112px;
  column-gap: 20px; align-items: center;
}
.rows-head { font-size: 13px; color: var(--ink-3); padding: 0 0 8px; border-bottom: 2px solid var(--ink); }
.rh-axis { position: relative; display: block; height: 16px; }
.rh-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rh-axis span:first-child { transform: none; }
.rh-axis .gauge-cap { transform: translateX(-100%); color: var(--maroon-deep); font-weight: 500; }
.row { padding: 16px 0; border-bottom: 1px solid var(--rule); position: relative; }
.row-next::before { content: ""; position: absolute; left: -20px; top: 12px; bottom: 12px; width: 5px; background: var(--maroon); border-radius: 3px; }
.row-week { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink-2); }
.row-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-team-text { display: flex; flex-direction: column; min-width: 0; }
.row-name { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.row-name:hover { color: var(--maroon); text-decoration: underline; }
.row-when { font-size: 14px; color: var(--ink-2); }
.row-price { font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.row-forecast, .row-odds { display: flex; flex-direction: column; }
.row-forecast .num, .row-odds .num { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.row-forecast .num { color: var(--maroon); }
.row-forecast .sub, .row-odds .sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-tier { display: block; width: 100%; color: var(--ink-3); }
.row-gauge { padding: 4px 8px 4px 0; }
.row-dive { grid-column: 1 / -1; padding: 8px 0 6px 94px; }
.board-note { color: var(--ink-2); font-size: 15px; margin-top: 16px; }

/* Breakdown */
.dive-lead { color: var(--ink-2); margin-bottom: 12px; }
.terms { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.term { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px) 84px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.term-label { display: flex; flex-direction: column; font-weight: 500; line-height: 1.25; }
.term-label small { color: var(--ink-2); font-weight: 400; }
.term-bar { position: relative; display: block; height: 16px; background: var(--track); border-radius: 4px; }
.term-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.term-fill { position: absolute; top: 0; bottom: 0; display: block; }
.term-fill.pos { background: var(--maroon); border-radius: 0 4px 4px 0; }
.term-fill.neg { background: var(--slate); border-radius: 4px 0 0 4px; }
.term-val { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.dive-total { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--ink); max-width: 780px; }

/* Page sections */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(44px, 6.5vw, 68px); font-weight: 800; letter-spacing: -0.01em; }
.lede { font-size: 20px; line-height: 1.45; margin-top: 14px; max-width: 62ch; }
.section { padding: 32px 0 8px; }
.section h2 { margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin: 28px 0 8px; border-top: 2px solid var(--ink); }
.kpi { display: flex; flex-direction: column; padding: 16px 0 12px; }
.kpi-value { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 0.95; color: var(--maroon); }
.kpi-label { font-size: 15px; color: var(--ink-2); margin-top: 6px; max-width: 22ch; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-good { color: var(--good); }
.chip-miss { color: var(--ink-2); }

/* Scatter */
.scatter-section { padding-top: 28px; }
.scatter-wrap { position: relative; max-width: 640px; }
.scatter { width: 100%; height: auto; display: block; font-family: var(--body); }
.scatter .grid { stroke: var(--track); stroke-width: 1; }
.scatter .cap { stroke: var(--maroon-deep); stroke-width: 1.5; }
.scatter .diag { stroke: var(--ink-3); stroke-width: 1.5; }
.scatter .tick { font-size: 12px; fill: var(--ink-3); }
.scatter .cap-label { fill: var(--maroon-deep); font-weight: 500; }
.scatter .axis-label { font-size: 13px; fill: var(--ink-2); font-weight: 500; }
.scatter .dot { stroke: var(--surface); stroke-width: 2; }
.scatter .dot-priced { fill: var(--maroon); }
.scatter .dot-schedule { fill: var(--surface); stroke: var(--maroon); stroke-width: 2.5; }
.scatter .dot-hit { fill: transparent; cursor: pointer; }
.scatter .dot-link:hover .dot, .scatter .dot-link:focus .dot { stroke: var(--ink); }
.scatter .dot-off { opacity: 0.18; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 4px; font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); z-index: 2; }
.tooltip strong { font-family: var(--display); font-size: 15px; font-weight: 700; display: block; }
.legend { display: flex; gap: 20px; margin-top: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--maroon); }
.key-dot-hollow { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--maroon); background: var(--surface); }
.key-line { width: 16px; height: 2px; background: var(--ink-3); }

/* Tables */
.results { padding-top: 36px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink-2); text-align: left; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border: 4px solid transparent; border-top-color: var(--ink-3); border-bottom: 0; opacity: 0.5; }
th[aria-sort="ascending"]::after { border-top: 0; border-bottom: 5px solid var(--ink); opacity: 1; }
th[aria-sort="descending"]::after { border-top: 5px solid var(--ink); border-bottom: 0; opacity: 1; }
.cell-sub { display: block; font-size: 13px; color: var(--ink-2); font-weight: 400; }
td .cell-sub { max-width: 44ch; }
.results-table td:first-child, .results-table th:first-child { min-width: 200px; }
.results-table .range-cell { white-space: nowrap; color: var(--ink-2); }
.results-table td.num { font-family: var(--display); font-size: 20px; font-weight: 600; }
.results-table td.num .cell-sub { font-family: var(--body); font-size: 12px; font-weight: 400; }
.results-table tr.row-off { display: none; }
.highlight td { background: var(--maroon-soft); }
.game-cell { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.game-cell:hover .game-name { text-decoration: underline; color: var(--maroon); }
.game-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; display: block; }
.game-date { font-size: 13px; color: var(--ink-2); }
.input-name { font-weight: 600; display: block; }
.inputs-table td:first-child { min-width: 240px; }
.notes { color: var(--ink-2); padding-left: 20px; max-width: 70ch; }

/* Model page */
.defs { margin: 0; max-width: 780px; }
.defs > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.defs dt { font-family: var(--display); font-weight: 700; font-size: 22px; }
.defs dd { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.swings { list-style: none; margin: 0 0 16px; padding: 0; max-width: 780px; }
.swing { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px) 120px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.swing-label { display: flex; flex-direction: column; font-weight: 500; line-height: 1.25; }
.swing-label small { color: var(--ink-2); font-weight: 400; }
.swing-bar { display: block; height: 16px; background: var(--track); border-radius: 4px; overflow: hidden; }
.swing-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.swing-bar .pos { background: var(--maroon); }
.swing-bar .neg { background: var(--slate); }
.swing-val { font-family: var(--display); font-weight: 700; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.plain { padding-left: 20px; max-width: 72ch; }
.plain li { margin-bottom: 8px; }
.faq h3 { margin-top: 28px; }
.faq p { max-width: 70ch; }

/* Footer */
.footer { background: var(--maroon-deep); color: rgba(255, 255, 255, 0.82); margin-top: 56px; padding: 32px 0 40px; font-size: 14px; }
.footer a { color: #fff; }
.footer p { max-width: 80ch; }

/* Phones and narrow tablets */
@media (max-width: 860px) {
  .rows-head { display: none; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "team price" "forecast odds" "gauge gauge" "dive dive";
    row-gap: 10px;
  }
  .row-week { display: none; }
  .row-team { grid-area: team; }
  .row-price { grid-area: price; align-self: start; }
  .row-price::after { content: " get-in"; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--ink-2); }
  .row-forecast { grid-area: forecast; }
  .row-odds { grid-area: odds; text-align: right; align-items: flex-end; }
  .row-gauge { grid-area: gauge; padding: 2px 8px 2px 0; }
  .row-dive { grid-area: dive; padding-left: 0; }
  .row-next::before { left: -12px; }
  .hero-forecast, .hero-game .hero-forecast { grid-template-columns: 1fr; grid-template-areas: "figure" "actual" "gauge" "facts"; row-gap: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 44px; }
  .term, .swing { grid-template-columns: 1fr 90px; grid-template-areas: "label val" "bar bar"; row-gap: 6px; }
  .term-label, .swing-label { grid-area: label; }
  .term-bar, .swing-bar { grid-area: bar; }
  .term-val, .swing-val { grid-area: val; }
  .facts { gap: 12px 24px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 23px; }
  .brand img { width: 44px; }
  .nav a { padding: 14px 10px; font-size: 17px; }
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .logo-xl { width: 72px; height: 72px; }
  .hero-matchup { gap: 14px; }
  .figure-num { font-size: 76px; }
  .row-name { font-size: 21px; }
  h2 { font-size: 30px; }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .row-dive { animation: reveal 160ms ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
@media print {
  .masthead, .footer, .view-toggle, .filters { display: none; }
  .row-dive[hidden] { display: block; }
}
