/* Shared styles for the report (index.html) and the dashboard (dashboard.html).
   Editorial sports-journalism look on a light page: serif headlines, clean sans body,
   NFL navy and red as accents, condensed caps for small labels. */

:root {
  color-scheme: light;
  --page: #f6f6f3;          /* page background */
  --surface: #ffffff;       /* cards and charts */
  --surface-2: #f7f8f9;
  --ink: #0e1a2b;           /* primary text */
  --ink-2: #444f5e;         /* secondary text */
  --muted: #7a8594;
  --line: #e4e6ea;          /* hairlines, grid */
  --line-2: #cfd4da;
  --navy: #013369;          /* NFL navy */
  --red: #d50a0a;           /* NFL red */

  /* chart roles: blue = the QB getting better, red = the team moving on, orange = a looked-up QB */
  --c-qb: #2a78d6;
  --c-qb-wash: rgba(42, 120, 214, 0.08);
  --c-team: #e34948;
  --c-team-light: #f2a3a2;
  --c-neutral: #bcc3cc;
  --c-compare: #eb6834;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --radius: 12px;
  --max: 1100px;
  --text: 700px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16.5px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- navigation (shared) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font: 600 19px/1 var(--font-head);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font: 600 12px/1 var(--font-label); letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  color: rgba(255, 255, 255, .75); text-decoration: none;
  font: 500 13px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.progress {
  position: absolute; left: 0; bottom: -3px; height: 3px; width: 0; transition: width .1s linear;
  background: linear-gradient(90deg, rgba(213,10,10,0) 0%, rgba(213,10,10,.55) 45%, var(--red) 88%, #ff6a3d 100%);   /* the ball's trail */
}
/* the football at the front of the trail */
.football { position: absolute; right: -16px; top: -8px; width: 32px; height: 18px; pointer-events: none; rotate: var(--wobble, 0deg); }
.football svg { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.football .speed { position: absolute; right: 100%; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85)); opacity: 0; transition: opacity .25s ease; }
.football .speed:nth-child(1) { top: 3px; width: 16px; margin-right: -2px; }
.football .speed:nth-child(2) { top: 8.5px; width: 24px; margin-right: 0; }
.football .speed:nth-child(3) { top: 14px; width: 14px; margin-right: -2px; }
.football.moving .speed { opacity: 1; transition-duration: .05s; }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 72px 0 48px; }
.kicker {
  margin: 0 0 16px; font: 500 12.5px/1 var(--font-label); letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
}
.hero h1 { margin: 0; font: 700 clamp(46px, 8vw, 88px)/1 var(--font-head); letter-spacing: -.015em; }
.dek { margin: 16px 0 0; max-width: 30ch; font: 400 clamp(21px, 2.6vw, 27px)/1.35 var(--font-head); color: var(--ink-2); }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 14px 0; max-width: var(--text);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.byline strong { color: var(--ink); }
.summary { max-width: var(--text); margin: 24px 0 0; font-size: 18px; line-height: 1.75; color: var(--ink); }

/* ---------- headline numbers ---------- */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; border-top: 2px solid var(--ink); }
.score { padding: 20px 22px 6px 0; }
.score + .score { padding-left: 22px; border-left: 1px solid var(--line); }
.score .value { font: 700 46px/1 var(--font-head); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.score.team .value { color: var(--red); }
.score:not(.team) .value { color: var(--navy); }
.score .label { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dataset-line { margin: 22px 0 0; font: 500 12px/1.4 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- parts and findings ---------- */
main { padding-bottom: 40px; }
.part { margin: 96px 0 0; }
.part-label {
  display: flex; align-items: center; gap: 14px;
  font: 500 12.5px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.part-label::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.part h2 { margin: 14px 0 0; font: 700 clamp(30px, 4vw, 42px)/1.12 var(--font-head); max-width: 24ch; }
.part-intro { margin: 14px 0 0; max-width: var(--text); color: var(--ink-2); font-size: 17px; }

.finding { margin: 64px 0 0; }
.finding-text { max-width: var(--text); }
.finding .num { font: 500 12.5px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.finding h3 { margin: 10px 0 16px; font: 700 clamp(24px, 3vw, 31px)/1.2 var(--font-head); }
.finding p { margin: 0 0 16px; color: var(--ink-2); }
.finding p strong { color: var(--ink); font-weight: 600; }
.finding .card { margin-top: 12px; }

/* ---------- chart cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 16px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { margin: 0; font: 600 16px/1.35 var(--font-body); color: var(--ink); }
.card-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.chart { position: relative; margin-top: 12px; min-height: 240px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.note { font-size: 12.5px; color: var(--muted); }

.lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lookup label { font: 500 12px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.lookup select, .picker select {
  font: 500 13.5px var(--font-body); color: var(--ink); padding: 7px 30px 7px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); max-width: 240px;
}
.readout { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); min-height: 0; }
.readout:empty { display: none; }
.readout b { color: var(--ink); font-weight: 600; }
.readout .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-compare); margin-right: 6px; vertical-align: 0; }

.toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.toggle button { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font: 500 12.5px/1 var(--font-body); padding: 7px 10px; border-radius: 6px; }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.link-btn { border: 0; background: none; color: var(--navy); cursor: pointer; padding: 4px 0; font: 500 12.5px/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; }

/* chart internals */
.grid line { stroke: var(--line); stroke-width: 1; }
.tick-label { fill: var(--muted); font: 11.5px var(--font-body); }
.axis-title { fill: var(--muted); font: 11.5px var(--font-body); }
.baseline { stroke: var(--line-2); stroke-width: 1; }
.annot { fill: var(--ink-2); font: 600 12px var(--font-body); }
.annot-muted { fill: var(--muted); font: 11.5px var(--font-body); }
.direct-label { fill: var(--ink); font: 600 12px var(--font-body); }
.seg-label { font: 600 12px var(--font-body); }
.hit { fill: transparent; }
.clickable { cursor: pointer; }
.row-label { fill: var(--ink); font: 500 12.5px var(--font-body); }
.row-sub { fill: var(--muted); font: 11.5px var(--font-body); }
.row-hover { fill: var(--surface-2); opacity: 0; }
g.row:hover .row-hover, g.row.on .row-hover { opacity: 1; }
g.row.on .row-label { fill: var(--c-compare); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 3px; border-radius: 2px; width: 18px; }
.legend i.dot { border-radius: 50%; width: 10px; height: 10px; }

/* build-in animations (each time a chart scrolls into view) */
.anim .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-y .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.anim .bar.down { transform-origin: 50% 0; }
.anim .hbar { transform-box: fill-box; transform-origin: 0 50%; animation: grow-x .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.anim .hbar.left { transform-origin: 100% 50%; }
.anim .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(.4,0,.2,1) forwards; }
.anim .dot, .anim .late, .anim .band { animation: fade .5s ease both; animation-delay: .7s; }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

/* hover lift: the mark behind a tooltip grows slightly and casts a shadow, as if raised off the page */
.bar, .hbar, .dot, .slice { transform-box: fill-box; transform-origin: 50% 50%; transition: scale .18s ease, filter .18s ease; }

.bar.lift, .hbar.lift, g.row:hover .hbar, .seg:hover, .slice:hover, .slice.lift {
  scale: 1.07; filter: drop-shadow(0 4px 6px rgba(11,27,46,.28));
}
.dot.lift:not(.slice) { scale: 1.6; filter: drop-shadow(0 2px 4px rgba(11,27,46,.35)); }
.dial-track { transition: stroke-width .18s ease; }
.dial.lift .dial-track, .dial.lift .dial-fill { stroke-width: 22px; }
.dial.lift .dial-fill { filter: url(#dial-glow) drop-shadow(0 3px 6px rgba(11,27,46,.3)); }
.dial.lift .dial-value { font-size: 20px; }

.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 9px 11px;
  font-size: 12.5px; line-height: 1.5; max-width: 300px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tooltip.show { opacity: 1; transform: none; }
.tooltip b { font-weight: 600; }
.tooltip .tt-row { display: flex; align-items: center; gap: 7px; }
.tooltip .tt-key { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tooltip .tt-dim { color: #b9c3cf; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
table.data th { color: var(--muted); font-weight: 500; }
table.data th:first-child, table.data td:first-child { text-align: left; }
.table-wrap { max-height: 320px; overflow: auto; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.above { transform: translateY(-28px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay { transition-delay: .12s; }

/* ---------- late-bloomer cards (finding 08) ---------- */
.qb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.qb-card {
  position: relative; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 16px 16px 12px; cursor: pointer; font: inherit; color: inherit; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.qb-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 26px rgba(14,26,43,.14); border-color: var(--line-2); }
.qb-card.on { border-color: var(--c-compare); box-shadow: 0 0 0 2px var(--c-compare); }
.qb-card .stripe { position: absolute; left: 0; right: 0; top: 0; height: 6px; display: flex; }
.qb-card .stripe span { flex: 1; }
.qb-card h4 { margin: 2px 0 0; font: 700 18px/1.25 var(--font-head); }
.qb-card .route { margin: 2px 0 12px; font: 500 11.5px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini { display: grid; grid-template-columns: 94px 1fr 48px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 5px 0; }
.mini .track { position: relative; height: 10px; }
.mini .track::before { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--zero); width: 1px; background: var(--line-2); }
.mini .fill { position: absolute; top: 0; height: 10px; border-radius: 3px; }
.mini b { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.qb-card .foot { margin-top: 10px; font-size: 12px; color: var(--muted); }
.show-more { margin-top: 14px; }
.btn {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  font: 500 13px/1 var(--font-body); padding: 10px 14px; border-radius: 8px;
}
.btn:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- career explorer ---------- */
.explorer { margin: 72px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.explorer-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.explorer-head h2 { margin: 0; font: 700 32px/1.1 var(--font-head); }
.explorer-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 58ch; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picker select { min-width: 220px; max-width: none; padding: 9px 30px 9px 12px; font-size: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 28px 0; }
.quick span { font-size: 12px; color: var(--muted); align-self: center; margin-right: 4px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; font: 500 12.5px/1 var(--font-body); padding: 7px 11px; border-radius: 999px; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.explorer-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8px; padding: 8px 28px 28px; }
.dial-wrap { position: relative; }
.dial-wrap svg { display: block; width: 100%; height: auto; }
.jersey-body, .jersey-trim, .jersey-sleeve, .jersey-pin, .jersey-num, .jersey-num-outline, .jersey-name, .jersey-seam, .jersey-stitch, .jersey-collar-pin { transition: fill .45s ease, stroke .45s ease; }
.jersey-seam { fill: none; stroke-width: 1.4; }
.jersey-stitch { fill: none; stroke-width: 1.2; stroke-dasharray: 3 3; }
.jersey { transform-box: fill-box; transform-origin: 50% 60%; }
.jersey.pop { animation: jersey-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.jersey-sweep { opacity: 0; }
.jersey-sweep.go { animation: jersey-sweep 1s cubic-bezier(.3,.6,.3,1); }
@keyframes jersey-pop { 0% { scale: .96; } 60% { scale: 1.02; } 100% { scale: 1; } }
@keyframes jersey-sweep { 0% { opacity: 1; translate: 0 0; } 100% { opacity: 1; translate: 420px 0; } }
.dial-caption { fill: rgba(255,255,255,.72); font: 600 11.5px var(--font-label); letter-spacing: .18em; text-transform: uppercase; }
.dial-track { stroke: #e1e6ed; }
.dial-tick { stroke: #b9c2ce; stroke-width: 1.2; }
.dial-tick.avg { stroke: var(--ink); stroke-width: 2.2; }
.dial-gloss { transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.2,1); }
.dial-knob { transform-box: view-box; transform-origin: 320px 300px; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s ease; filter: drop-shadow(0 2px 3px rgba(0,8,20,.35)); }
.dial-knob circle { transition: stroke .45s ease, r .18s ease; }
.dial.lift .dial-knob circle { r: 11; }
.dial-fill { transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.2,1), stroke .45s ease, stroke-width .18s ease, filter .18s ease; }
.dial-label { fill: var(--muted); font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.dial-value { fill: var(--ink); font: 700 18px var(--font-head); }
.dial-pct { fill: var(--ink-2); font: 12px var(--font-body); }
.dial-pct.above { fill: #1f9d55; font-weight: 600; }   /* same green and red as the best / worst season buttons */
.dial-pct.below { fill: #d64545; font-weight: 600; }

.season-panel { padding: 18px 0 0; }
.season-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.season-title h3 { margin: 0; font: 700 28px/1.1 var(--font-head); }
.season-title .yr { font: 500 12px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 6px 8px; border-radius: 4px; }
.season-title .yr.orig-no { background: var(--red); }
.season-meta { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 8px; }
.stat b { display: block; font: 700 20px/1.15 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.timeline { margin: 20px 0 0; }
.timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.timeline-head h4 { margin: 0; font: 500 12px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.play { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; background: var(--red); color: #fff; border-radius: 999px; font: 500 12px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; }
.play:hover { background: #b90909; }
.seasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.season-btn { position: relative; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; border-radius: 8px; padding: 7px 8px 6px; min-width: 50px; text-align: center; font: 600 12px/1.1 var(--font-body); color: var(--ink-2); }
.season-btn small { display: block; font: 400 10.5px/1.2 var(--font-body); color: var(--muted); margin-top: 2px; }
.season-btn i { position: absolute; left: 6px; right: 6px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; }
.season-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.season-btn { transition: scale .18s ease, translate .18s ease, filter .18s ease; }
.season-btn:hover { scale: 1.08; translate: 0 -2px; filter: drop-shadow(0 4px 6px rgba(11,27,46,.22)); z-index: 1; }
.career-chart { margin-top: 14px; }

/* ---------- about the data ---------- */
.about { margin: 110px 0 0; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.about h2 { margin: 0 0 8px; font: 700 34px/1.1 var(--font-head); }
.about h3 { margin: 30px 0 8px; font: 500 12.5px/1.2 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.about p, .about li { color: var(--ink-2); max-width: 78ch; }
.about dl { display: grid; grid-template-columns: minmax(170px, 230px) 1fr; gap: 12px 24px; margin: 0; }
.about dt { font-weight: 600; color: var(--ink); }
.about dd { margin: 0; color: var(--ink-2); }
code { font: 13px ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

footer { margin-top: 70px; padding: 30px 0 44px; border-top: 3px solid var(--navy); background: var(--surface); color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .score:nth-child(3) { padding-left: 0; border-left: 0; }
  .explorer-body { grid-template-columns: 1fr; }
  .qb-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .brand span:last-child { display: none; }
  .nav-links a { padding: 10px 8px; font-size: 12px; letter-spacing: .08em; }
  .hero { padding: 48px 0 36px; }
  .score .value { font-size: 36px; }
  .score + .score { padding-left: 14px; }
  .card { padding: 18px 16px 14px; }
  .statline { grid-template-columns: repeat(2, 1fr); }
  .qb-cards { grid-template-columns: 1fr; }
  .explorer-head, .explorer-body, .quick { padding-left: 16px; padding-right: 16px; }
  .about { padding: 22px; }
  .about dl { grid-template-columns: 1fr; gap: 2px; }
  .about dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .anim .line { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- "How it's calculated" panel under each chart ---------- */
.method { margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.method h5 { margin: 0 0 8px; font: 500 11.5px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.method .formula {
  margin: 0 0 6px; font: 500 13.5px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink);
}
.method .formula + .formula { margin-top: -2px; }
.method p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.method p + p { margin-top: 6px; }

/* ---------- finding preface (e.g. why contracts start in 2011) ---------- */
.preface { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--navy); background: var(--surface); font-size: 15px; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.preface strong { color: var(--ink); }

/* ---------- team grid (finding 07, "Which teams") ---------- */
.team-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 14px; }
.team-tile {
  position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 12px 8px 10px; text-align: center; background: var(--surface);
  overflow: hidden;
}
.team-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--team, var(--line-2)); }
.team-tile b { display: block; font: 700 15px/1.1 var(--font-label); letter-spacing: .04em; color: var(--ink); }
.team-tile span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.team-tile { transition: transform .18s ease, box-shadow .18s ease; }
.team-tile:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(14,26,43,.14); z-index: 1; }
.team-tile.none { background: var(--surface-2); }
.team-tile.none b { color: var(--muted); }
.team-tile.none::before { background: var(--line-2); }
.team-tile.on { box-shadow: 0 0 0 2px var(--c-compare); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- pie (finding 06) ---------- */
.pie-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.pie-legend { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.pie-legend div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: default; }
.pie-legend div:hover, .pie-legend div.on { background: var(--surface-2); }
.pie-legend i { width: 12px; height: 12px; border-radius: 3px; }
.pie-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.slice { transition: transform .2s ease, scale .18s ease, filter .18s ease; transform-box: view-box; }   /* origin: donut center, set inline */
@media (max-width: 700px) { .pie-wrap { grid-template-columns: 1fr; } }
.preface.after { margin: 16px 0 0; max-width: var(--text); }

/* explorer: best and worst EPA seasons on the season buttons */
.season-btn.best { background: #a8e2bb; border-color: #1f9d55; color: #0f3d22; }
.season-btn.best small { color: #14532d; }
.season-btn.worst { background: #f5b0b0; border-color: #d64545; color: #5c1010; }
.season-btn.worst small { color: #6b1515; }
.season-btn.best[aria-pressed="true"] { box-shadow: 0 0 0 2px #1f9d55; }
.season-btn.worst[aria-pressed="true"] { box-shadow: 0 0 0 2px #d64545; }
.season-key { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.season-key .k { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; margin-left: 4px; }
.season-key .k.best { background: #a8e2bb; border-color: #1f9d55; }
.season-key .k.worst { background: #f5b0b0; border-color: #d64545; margin-left: 10px; }
.season-btn.best:hover { background: #95d9aa; }
.season-btn.worst:hover { background: #f09c9c; }
.method p + h5 { margin-top: 14px; }

/* ---------- dashboard ---------- */
.dash-hero { padding: 56px 0 36px; }
.dash-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.field-label { display: block; margin: 0 0 7px; font: 500 11.5px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.dash select {
  font: 500 13.5px var(--font-body); color: var(--ink); padding: 7px 28px 7px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); min-width: 0;
}
.filters { margin-top: 32px; }
.filters-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters-head h2 { margin: 0; font: 700 22px/1.2 var(--font-head); }
.showing { margin: 0; flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-2); }
.showing b { color: var(--ink); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 24px; padding: 18px 0 6px; }
.field.wide select { width: 100%; }
.range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.range select { flex: 1; min-width: 92px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dash .toggle { flex-wrap: wrap; }
.toggle button:disabled { opacity: .35; cursor: not-allowed; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); margin: 28px 0 0; border-top: 2px solid var(--ink); }
.kpi { padding: 18px 16px 8px 0; min-width: 0; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--line); }
.kpi-value { font: 700 34px/1 var(--font-head); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.kpi-label { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.kpi-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.kpi-sub b { color: var(--ink-2); font-weight: 600; }
.cmp { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.cmp.good { background: #dcf2e3; color: #14532d; }
.cmp.bad { background: #fbe1e1; color: #7a1616; }

.metric-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 36px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-bar .field-label { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.chart-controls .ctl { min-width: 0; }
.chart-note { margin: 8px 0 0; }
.chart-note:empty { display: none; }
.empty { margin: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.table-card { margin-top: 16px; }
.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-card #table { margin-top: 14px; }
.dash-method { margin-top: 28px; }
.dash-method p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.dash-method .formula { color: var(--ink); }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(n) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi-value { font-size: 28px; }
  .filter-grid { grid-template-columns: 1fr; }
}
.explore { margin: 12px 0 0; font-size: 13.5px; }
.explore a { font-weight: 600; }

/* =====================================================================================
   PRO THEME (the default look; add ?look=plain to the address for the plain look, ?look=pro to come back)
   Night-game hero, frosted glass panels on a cool stadium-gray page, broadcast-style
   condensed italic display type for the big moments, glossy chart marks.
   Only colors, type and finish change here; words, layout and charts stay the same.
   ===================================================================================== */
html.pro {
  --page: #eceff3;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --ink: #0a1526;
  --ink-2: #3a4657;
  --muted: #6c7889;
  --line: #e0e4ea;
  --line-2: #c7ced8;
  --navy: #013369;
  --navy-deep: #00183a;
  --red: #d50a0a;
  --red-bright: #ff4545;
  --silver: #a5acaf;
  --font-label: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --glass: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  --glass-edge: rgba(255,255,255,.95);
  --lift-1: 0 1px 0 rgba(255,255,255,1) inset, 0 0 0 1px rgba(10,21,38,.05), 0 2px 4px rgba(10,21,38,.04), 0 18px 40px -14px rgba(10,21,38,.18);
  scrollbar-color: #9aa6b6 transparent;
}
html.pro ::selection { background: rgba(213,10,10,.16); }
html.pro :focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; border-radius: 6px; }
html.pro body {
  background:
    radial-gradient(1200px 700px at 88% 0%, rgba(1,51,105,.10), transparent 60%),
    radial-gradient(900px 600px at 0% 45%, rgba(213,10,10,.05), transparent 60%),
    linear-gradient(180deg, #f2f4f7 0%, #e8ecf1 100%);
  background-attachment: fixed;
}

/* ---- nav ---- */
html.pro .nav {
  background: linear-gradient(180deg, rgba(0,35,79,.94), rgba(0,24,58,.94));
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.07), 0 10px 30px rgba(0,16,40,.22);
}
html.pro .brand { font: italic 800 22px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
html.pro .brand-mark {
  width: 30px; height: 34px; border-radius: 0; font: 800 13px/1 var(--font-display); letter-spacing: .02em; padding-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #d7dde5 100%); color: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%);   /* shield */
  box-shadow: inset 0 -3px 0 var(--red);
}
html.pro .nav-links a { font: 600 14.5px/1 var(--font-label); letter-spacing: .16em; }
html.pro .nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
html.pro .progress { box-shadow: 0 0 10px rgba(255,69,69,.45); }

/* ---- hero: a night game under the lights ---- */
html.pro .hero {
  position: relative; overflow: hidden; color: #fff; border-bottom: 0;
  background:
    radial-gradient(760px 420px at 80% -12%, rgba(255,255,255,.17), transparent 62%),
    radial-gradient(520px 320px at 20% -18%, rgba(160,200,255,.10), transparent 60%),
    radial-gradient(760px 420px at 6% 125%, rgba(213,10,10,.32), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.05) 89px 90px),
    linear-gradient(160deg, #00264f 0%, #00163a 52%, #000b1d 100%);
}
html.pro .hero::after {   /* sideline stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 70%, #fff 70% 70.6%, var(--navy) 70.6% 100%);
}
html.pro .hero .wrap { position: relative; z-index: 1; }
html.pro .hero .kicker {
  display: inline-block; margin-bottom: 20px; padding: 8px 20px 7px; color: #fff; background: var(--red);
  font: 700 13.5px/1 var(--font-label); letter-spacing: .2em;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
html.pro .hero h1 {
  font: italic 800 clamp(60px, 10.5vw, 128px)/.88 var(--font-display); letter-spacing: .005em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #c4cdd8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.35));
  padding-right: .06em;   /* room for the italic overhang */
}
html.pro .dash-hero h1 { font-size: clamp(46px, 7vw, 86px); }
html.pro .dek { color: rgba(255,255,255,.82); }
html.pro .byline { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.66); }
html.pro .byline strong { color: #fff; }
html.pro .hero .summary { color: rgba(255,255,255,.9); }
html.pro .hero .summary b { color: #fff; }

/* headline numbers: frosted scoreboard tiles */
html.pro .scoreboard { gap: 14px; border-top: 0; margin-top: 40px; }
html.pro .scoreboard .score {
  position: relative; overflow: hidden; padding: 22px 20px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px -12px rgba(0,0,0,.45);
}
html.pro .scoreboard .score::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #4f93ec, rgba(79,147,236,0)); }
html.pro .scoreboard .score.team::before { background: linear-gradient(90deg, var(--red-bright), rgba(255,69,69,0)); }
html.pro .score .value { font: italic 800 58px/.95 var(--font-display); letter-spacing: .01em; }
html.pro .score:not(.team) .value { color: #fff; }
html.pro .score.team .value { color: var(--red-bright); }
html.pro .score .label { color: rgba(255,255,255,.74); }
html.pro .dataset-line { color: rgba(255,255,255,.5); font: 600 13px/1.4 var(--font-label); letter-spacing: .18em; }

/* ---- parts ("quarters") and findings ---- */
html.pro .part-label { font: 700 15px/1 var(--font-label); letter-spacing: .22em; color: var(--red); gap: 14px; }
html.pro .part-label::before { content: ""; width: 30px; height: 6px; background: var(--red); transform: skewX(-24deg); flex: none; }
html.pro .part-label::after { background: linear-gradient(90deg, var(--line-2), transparent); }
html.pro .part h2 {
  font: italic 800 clamp(40px, 5.6vw, 66px)/.94 var(--font-display); text-transform: uppercase; letter-spacing: .005em;
  color: var(--navy-deep); max-width: 20ch; margin-top: 16px;
}
html.pro .finding .num { font: 700 15px/1 var(--font-label); letter-spacing: .2em; color: var(--red); display: flex; align-items: center; gap: 10px; }
html.pro .finding .num::after { content: ""; width: 40px; height: 2px; background: var(--red); opacity: .5; }
html.pro .finding h3 { color: var(--ink); }
html.pro .finding p strong { color: var(--ink); background: linear-gradient(transparent 64%, rgba(213,10,10,.13) 0); padding: 0 1px; }

/* ---- frosted glass panels ---- */
html.pro .card, html.pro .explorer, html.pro .about, html.pro .metric-bar {
  position: relative; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--lift-1);
}
html.pro .card::before, html.pro .explorer::before, html.pro .about::before {   /* thin team-color rule along the top */
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--navy), #2a78d6 55%, rgba(42,120,214,0));
}
html.pro .explorer { border-radius: 22px; }
html.pro .explorer-head { background: linear-gradient(180deg, rgba(1,51,105,.05), rgba(1,51,105,0)); border-bottom-color: rgba(10,21,38,.07); }
html.pro .card-title { font-weight: 600; letter-spacing: -.005em; }
html.pro .card-foot { border-top-color: rgba(10,21,38,.07); }
html.pro .method {
  background: linear-gradient(180deg, #f5f7fa, #edf1f6); border: 1px solid rgba(10,21,38,.06); border-left: 3px solid var(--navy);
  border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
html.pro .method h5 { font: 700 13px/1 var(--font-label); letter-spacing: .18em; }
html.pro .qb-card, html.pro .team-tile {
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 0 0 1px rgba(10,21,38,.05), 0 8px 22px -12px rgba(10,21,38,.2);
}
html.pro .team-tile.none { background: linear-gradient(180deg, #f1f3f6, #e8ecf1); }
html.pro .qb-card .route, html.pro .lookup label, html.pro .field-label, html.pro .timeline-head h4 { font-weight: 600; letter-spacing: .16em; }

/* ---- controls ---- */
html.pro .toggle { background: rgba(10,21,38,.05); border: 1px solid rgba(10,21,38,.06); border-radius: 10px; }
html.pro .toggle button { border-radius: 7px; }
html.pro .toggle button[aria-pressed="true"] {
  color: var(--navy); font-weight: 600;
  background: linear-gradient(180deg, #ffffff, #f2f5f9);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10,21,38,.12), 0 3px 10px -4px rgba(10,21,38,.25);
}
html.pro .chip, html.pro .btn, html.pro .season-btn {
  background-image: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 52%, rgba(10,21,38,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 3px rgba(10,21,38,.08);
}
html.pro .chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #0b4a92, #013369); border-color: #012a57; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px -4px rgba(1,51,105,.6);
}
html.pro .play {
  background: linear-gradient(180deg, #f2262b 0%, #c80909 52%, #b30707 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -6px rgba(213,10,10,.7);
  font: 700 13px/1 var(--font-label); letter-spacing: .16em;
}
html.pro .play:hover { background: linear-gradient(180deg, #ff3a3f 0%, #d40c0c 52%, #bd0808 100%); }
html.pro select, html.pro .dash select, html.pro .lookup select, html.pro .picker select {
  border-radius: 10px; border-color: rgba(10,21,38,.14);
  background-color: #fff; box-shadow: inset 0 1px 2px rgba(10,21,38,.05), 0 1px 0 rgba(255,255,255,.9);
}
html.pro .season-btn[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ink), inset 0 1px 0 rgba(255,255,255,.9); }
html.pro .season-btn.best[aria-pressed="true"] { box-shadow: 0 0 0 2px #1f9d55, inset 0 1px 0 rgba(255,255,255,.9); }
html.pro .season-btn.worst[aria-pressed="true"] { box-shadow: 0 0 0 2px #d64545, inset 0 1px 0 rgba(255,255,255,.9); }
html.pro .season-title .yr {
  font: 700 13px/1 var(--font-label); letter-spacing: .16em; padding: 7px 14px 6px; border-radius: 0;
  background: linear-gradient(180deg, #0b4a92, #013369); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
html.pro .season-title .yr.orig-no { background: linear-gradient(180deg, #f2262b, #b30707); }

/* ---- numbers in broadcast type ---- */
html.pro .stat {
  background: linear-gradient(180deg, #ffffff, #f2f5f9); border: 1px solid rgba(10,21,38,.07); border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px -3px rgba(10,21,38,.15);
}
html.pro .stat b { font: 800 25px/1.05 var(--font-display); letter-spacing: .01em; color: var(--navy-deep); }
html.pro .dial-value { font: 800 23px var(--font-display); fill: var(--navy-deep); }
html.pro .dial.lift .dial-value { font-size: 25px; }
html.pro .dial-label { font: 600 12.5px var(--font-label); letter-spacing: .16em; }
html.pro .season-title h3 { letter-spacing: -.01em; }
html.pro .qb-card h4 { letter-spacing: -.005em; }
html.pro .team-tile b { font: 800 17px/1.1 var(--font-display); letter-spacing: .04em; }

/* ---- tooltip ---- */
html.pro .tooltip {
  background: rgba(0,24,58,.92); border: 1px solid rgba(255,255,255,.1); border-top: 2px solid var(--red); border-radius: 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 30px -8px rgba(0,10,30,.45);
}

/* ---- glossy color swatches, stripes and mini bars ---- */
html.pro .legend i, html.pro .pie-legend i, html.pro .season-btn i, html.pro .qb-card .fill, html.pro .qb-card .stripe span, html.pro .team-tile::before {
  background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12) 48%, rgba(255,255,255,0) 52%, rgba(0,0,0,.1));
}

/* ---- tables ---- */
html.pro table.data th { font: 700 12.5px/1.2 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: #f3f5f8; position: sticky; top: 0; }
html.pro table.data tbody tr:nth-child(even) td { background: rgba(1,51,105,.025); }
html.pro table.data tbody tr:hover td { background: rgba(42,120,214,.07); }

/* ---- about, footer ---- */
html.pro .about { padding: 44px; }
html.pro .about h2 { font: italic 800 clamp(38px, 5vw, 56px)/.95 var(--font-display); text-transform: uppercase; color: var(--navy-deep); }
html.pro .about h3 { font: 700 14px/1.2 var(--font-label); letter-spacing: .2em; }
html.pro code { background: #eef2f7; border-color: rgba(10,21,38,.08); }
html.pro footer {
  background: linear-gradient(180deg, #00234f, #00112a); color: rgba(255,255,255,.62); border-top: 4px solid var(--red);
  font: 600 13px/1.5 var(--font-label); letter-spacing: .1em; text-transform: uppercase;
}
html.pro footer a { color: #fff; }

/* ---- dashboard ---- */
html.pro .filters-head h2 { font: italic 800 30px/1 var(--font-display); text-transform: uppercase; color: var(--navy-deep); }
html.pro .filters-head { border-bottom-color: rgba(10,21,38,.07); }
html.pro .kpis {
  border-top: 0; border-radius: 18px; overflow: hidden; padding: 0 20px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--lift-1);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
html.pro .kpi { padding-top: 20px; padding-bottom: 14px; }
html.pro .kpi + .kpi { border-left-color: rgba(10,21,38,.07); }
html.pro .kpi-value { font: italic 800 44px/.95 var(--font-display); letter-spacing: .01em; color: var(--navy); }
html.pro .metric-bar .field-label { color: var(--navy); }

@media (max-width: 560px) {
  html.pro .score .value { font-size: 44px; }
  html.pro .kpi-value { font-size: 34px; }
  html.pro .scoreboard { gap: 10px; }
  html.pro .about { padding: 24px; }
}

/* ---- night-game borders: the hero's navy runs down both sides, the content sits in a white column ---- */
html.pro body {
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 900px at -5% 40%, rgba(213,10,10,.16), transparent 60%),
    radial-gradient(700px 900px at 105% 70%, rgba(42,120,214,.16), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.035) 89px 90px),
    linear-gradient(160deg, #00264f 0%, #00163a 50%, #000b1d 100%);
  background-attachment: fixed;
}
html.pro main.wrap {
  position: relative; max-width: calc(var(--max) + 96px); padding: 4px 48px 72px;
  background: linear-gradient(180deg, #f7f8fa 0%, #eff2f6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px rgba(0,6,18,.55);
}
html.pro .hero { background-attachment: fixed; }
html.pro footer { margin-top: 0; }
@media (max-width: 1200px) { html.pro main.wrap { box-shadow: none; } }
@media (max-width: 560px) { html.pro main.wrap { padding: 4px 16px 48px; } }

/* ---------- Q1-Q4 dots on the reading progress bar (click to jump to that part) ---------- */
.quarters { position: absolute; left: 0; right: 0; bottom: -1.5px; height: 0; z-index: 2; }
.football { z-index: 3; }
.qdot {
  position: absolute; top: 0; translate: -50% -50%; width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: var(--navy); color: #fff; cursor: pointer;
  font: 700 9px/1 var(--font-body); letter-spacing: -.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: background .25s ease, scale .15s ease;
}
.qdot:hover { scale: 1.18; }
.qdot.passed { background: var(--red); }

/* ---------- explorer: head-to-head, share, keyboard hint ---------- */
.picker .btn { padding: 9px 12px; }
.h2h-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
html.pro .h2h-btn[aria-pressed="true"] { background: linear-gradient(180deg, #0b4a92, #013369); color: #fff; }
.share-btn.done { border-color: #1f9d55; color: #14532d; background: #e3f5e9; }
.quick .keys { order: 99; margin-left: auto; font-size: 12px; color: var(--muted); }
.dials { min-width: 0; }
.vs-name { display: none; }
.explorer.h2h .explorer-body { grid-template-columns: minmax(0, 1fr); }
.explorer.h2h .dials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.explorer.h2h .vs-name, .vs-bar { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; }
.explorer.h2h .vs-name { text-align: center; font: 700 14px/1.3 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.vs-bar { gap: 10px; }
.vs-label { font: italic 800 20px/1 var(--font-label); color: var(--red); text-transform: uppercase; }
.vs-bar select { font: 500 13.5px var(--font-body); padding: 7px 28px 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.vs-note { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.dial-b.missing .dial-wrap { opacity: .45; filter: grayscale(.6); }
.vs-seasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }
.vs-seasons .season-btn { min-width: 44px; padding: 6px 6px 5px; font-size: 11.5px; }
.vs-match { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.vs-match input { accent-color: var(--navy); width: 15px; height: 15px; }
@media (max-width: 700px) {
  .explorer.h2h .dials { grid-template-columns: minmax(0, 1fr); }
  .quick .keys { display: none; }
}

/* ---------- dashboard loading screen: the logo inside a ring that fills red, a football spiraling around it ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px; color: #fff;
  background: radial-gradient(700px 420px at 50% 28%, rgba(255,255,255,.13), transparent 62%), linear-gradient(160deg, #00264f 0%, #00163a 55%, #000b1d 100%);
  transition: opacity .55s ease, visibility .55s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring { position: relative; width: 230px; height: 230px; }
.loader-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 8; }
.ring-fill {
  fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transform: rotate(-90deg); transform-origin: 100px 100px; transition: stroke-dashoffset .25s linear;
  filter: drop-shadow(0 0 6px rgba(255,69,69,.75));
}
.ring-ball { transform-origin: 100px 100px; transition: transform .25s linear; }
.loader-logo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; }
.loader-logo .brand-mark { width: 58px; height: 58px; font-size: 21px; }
html.pro .loader-logo .brand-mark { width: 54px; height: 62px; font-size: 22px; padding-bottom: 8px; }
.loader-name { font: italic 800 25px/1 var(--font-display, var(--font-label)); letter-spacing: .02em; text-transform: uppercase; }
.loader-text { margin: 0; font: 600 13px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }

/* ---------- type-to-search quarterback pickers ---------- */
.qbs { position: relative; display: inline-block; min-width: 200px; max-width: 100%; vertical-align: middle; }
.field.wide .qbs { width: 100% !important; }
.qbs-input {
  width: 100%; font: 500 13.5px var(--font-body); color: var(--ink); padding: 8px 30px 8px 32px;
  border: 1px solid var(--line-2); border-radius: 10px; background-color: var(--surface);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%237a8594' stroke-width='2'/%3E%3Cpath d='M13 13l4 4' stroke='%237a8594' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%237a8594' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 15px, 14px; background-position: 10px 50%, calc(100% - 10px) 50%;
  box-shadow: inset 0 1px 2px rgba(10,21,38,.05); transition: border-color .15s, box-shadow .15s;
}
.qbs-input::placeholder { color: var(--muted); }
.qbs-input:hover { border-color: var(--navy); }
.qbs-input:focus { outline: none; border-color: #2a78d6; box-shadow: 0 0 0 3px rgba(42,120,214,.18); }
.picker .qbs-input { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.qbs-list {
  position: fixed; z-index: 150; margin: 0; padding: 6px; list-style: none; overflow: auto; max-width: 340px;
  background: #fff; border: 1px solid rgba(10,21,38,.1); border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgba(10,21,38,.3), 0 2px 6px rgba(10,21,38,.08);
  font: 14px/1.3 var(--font-body);
}
.qbs-group { padding: 10px 10px 4px; font: 600 11px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qbs-item { padding: 8px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.qbs-item b { color: var(--navy); font-weight: 700; }
.qbs-item.current { font-weight: 600; }
.qbs-item.current::after { content: " ✓"; color: #1f9d55; }
.qbs-item.active { background: rgba(42,120,214,.1); }
.qbs-empty { padding: 10px; color: var(--muted); }
.qbs-sub { margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 400; }
