/* ═══════════════════════════════════════════════════════════════════════
   DCI Forge — KL Design
   Paper #fafaf7 · Ink #0A1118 · Crimson #8B2500 · Stone #6b6b60
   Big Shoulders Display (headers) · IBM Plex Sans (body). Mobile-first.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --paper:   #fafaf7;
  --ink:     #0A1118;
  --crimson: #8B2500;
  --crimson-bright: #b3340a;
  --stone:   #6b6b60;
  --stone-light: #d8d8cf;
  --hairline: #e6e6dd;
  --card:    #ffffff;
  --up:   #1f7a3d;   /* movement up   */
  --down: #8B2500;   /* movement down */
  --flat: #6b6b60;   /* no change     */

  --max: 1080px;
  --radius: 10px;
  --tap: 44px;       /* min touch target */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── Forged-metal masthead ───────────────────────────────────────────── */
.masthead {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.35)),
    repeating-linear-gradient(95deg, #15171c 0 2px, #1b1e24 2px 4px),
    linear-gradient(135deg, #23262d 0%, #0c0e12 60%, #1a1d23 100%);
  color: var(--paper);
  border-bottom: 3px solid var(--crimson);
  box-shadow: inset 0 -10px 24px rgba(0,0,0,0.5);
}
.masthead .wrap { padding-top: 22px; padding-bottom: 18px; }

.brand {
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 0.92;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
  /* forged sheen */
  background: linear-gradient(180deg, #fdfdfb 0%, #c7c7bd 45%, #8e8e84 55%, #e9e9e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.45));
}
.brand .forge { color: transparent; }
.brand .spark {
  -webkit-text-fill-color: var(--crimson-bright);
  background: none;
}
.subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b8b8ad;
  margin: 6px 0 0;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
nav.tabs {
  background: #11131a;
  border-bottom: 1px solid #2a2d35;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
nav.tabs .wrap { display: flex; gap: 2px; padding: 0 8px; }
nav.tabs a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  color: #b8b8ad;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav.tabs a:hover { color: var(--paper); text-decoration: none; }
nav.tabs a.active { color: var(--paper); border-bottom-color: var(--crimson); }

/* ── Sections & cards ────────────────────────────────────────────────── */
main { padding: 18px 0 56px; }

.section { margin: 0 0 26px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}
.section-head .meta { font-size: 12px; color: var(--stone); }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10,17,24,0.04);
  overflow: hidden;
}
.card-pad { padding: 14px 16px; }

.show-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: #fbfbf8;
}
.show-banner .name { font-weight: 600; font-size: 16px; }
.show-banner .loc, .show-banner .date { color: var(--stone); font-size: 13px; }

/* ── Score table ─────────────────────────────────────────────────────── */
.scores { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.scores th, .scores td { padding: 11px 10px; text-align: left; }
.scores thead th {
  font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--stone); font-weight: 600; border-bottom: 1px solid var(--hairline);
}
.scores tbody tr { border-bottom: 1px solid var(--hairline); }
.scores tbody tr:last-child { border-bottom: none; }
.scores tbody tr:nth-child(odd) { background: #fcfcfa; }

.place { width: 30px; font-weight: 700; color: var(--stone); text-align: center; }
.corps-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.swatch {
  width: 14px; height: 22px; border-radius: 3px; flex: none;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.corps-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corps-name .nick { color: var(--stone); font-size: 12px; margin-left: 6px; }
.total { font-weight: 700; font-size: 16px; color: var(--crimson); text-align: right; }

.move { text-align: right; white-space: nowrap; font-weight: 600; font-size: 13px; }
.move.up   { color: var(--up); }
.move.down { color: var(--down); }
.move.flat { color: var(--flat); }
.move .arrow { font-size: 14px; }

/* ── Standings grid ──────────────────────────────────────────────────── */
.stand th.num, .stand td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stand .rank { width: 30px; text-align: center; font-weight: 700; color: var(--stone); }
.trend { font-weight: 700; }
.trend.up { color: var(--up); }
.trend.down { color: var(--down); }
.trend.flat { color: var(--flat); }

/* Tonight vs carry-forward visual language:
   ● = competed tonight (crimson, bold)
   date badge = last competed date for carry-forward scores */
.stand tr.row-tonight td.score-cell {
  color: var(--crimson); font-weight: 700;
}
.stand tr.row-carry td.score-cell { color: var(--stone); }
.score-age {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  color: var(--stone);
  background: var(--hairline);
  padding: 1px 6px; border-radius: 10px;
  margin-left: 5px; letter-spacing: 0.2px;
  vertical-align: middle;
}
.stand-legend {
  font-size: 12px; color: var(--stone);
  margin: 6px 0 0; padding: 0 4px;
}

/* ── Score timeline (last 5 days · today · next 5 days) ──────────────── */
.timeline-card { overflow: hidden; }
.timeline-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline {
  border-collapse: collapse; width: 100%;
  font-variant-numeric: tabular-nums;
}
.timeline th, .timeline td { padding: 0; }

/* Sticky corps column so the date grid scrolls under it on narrow screens. */
.timeline .tl-corps {
  position: sticky; left: 0; z-index: 2;
  background: var(--card);
  text-align: left; padding: 9px 12px;
  min-width: 150px; max-width: 150px;
  border-right: 1px solid var(--hairline);
  box-shadow: 1px 0 0 var(--hairline);
}
.timeline thead .tl-corps {
  font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--stone); font-weight: 600; background: #fbfbf8;
}
.timeline tbody tr { border-bottom: 1px solid var(--hairline); }
.timeline tbody tr:last-child { border-bottom: none; }
.timeline tbody tr:nth-child(odd) td { background: #fcfcfa; }
.timeline tbody tr:nth-child(odd) .tl-corps { background: #fcfcfa; }
.timeline .tl-corps .corps-cell { gap: 8px; }
.timeline .tl-corps .corps-name { font-size: 13.5px; }

/* Date column headers. */
.timeline thead th.tl-day {
  text-align: center; padding: 7px 6px 8px; min-width: 46px;
  border-bottom: 1px solid var(--hairline); background: #fbfbf8;
  position: relative;
}
.tl-day .tl-dow {
  display: block; font-size: 9.5px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--stone); font-weight: 600;
}
.tl-day .tl-md {
  display: block; font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 600; font-size: 13px; letter-spacing: 0.3px; color: var(--ink);
  white-space: nowrap;
}
.tl-day.is-future .tl-md { color: var(--stone); }
.tl-day .tl-now {
  display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--crimson); margin-bottom: 1px;
}

/* Data cells. */
.timeline td.tl-cell { text-align: center; padding: 9px 6px; min-width: 46px; }
.tl-score {
  font-weight: 700; font-size: 13.5px; color: var(--crimson);
}
.tl-sched { color: var(--stone); font-size: 16px; line-height: 1; }
.tl-blank { color: var(--stone-light); font-size: 14px; }
/* Scheduled future show → the state it's in, tappable through to the calendar.
   A compact crimson chip so west/east tour spread reads at a glance. */
.tl-state {
  display: inline-block; line-height: 1.2; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  font-variant-numeric: tabular-nums; text-decoration: none;
  color: var(--crimson); background: rgba(139,37,0,0.08);
  padding: 2px 5px; border-radius: 5px;
}
.tl-state:hover, .tl-state:focus { background: rgba(139,37,0,0.18); text-decoration: none; }

/* Today highlight — a vertical band running header → last row. */
.timeline th.tl-day.is-today { background: rgba(139,37,0,0.07); }
.timeline td.tl-cell.is-today { background: rgba(139,37,0,0.05); }
.timeline tbody tr:nth-child(odd) td.tl-cell.is-today { background: rgba(139,37,0,0.08); }
.timeline th.tl-day.is-today,
.timeline td.tl-cell.is-today {
  border-left: 2px solid var(--crimson); border-right: 2px solid var(--crimson);
}
.timeline td.tl-cell.is-today .tl-blank { color: rgba(139,37,0,0.35); }

/* Future cells sit slightly back so the past/now/future split reads at a glance. */
.timeline td.tl-cell.is-future:not(.is-today) { background: #fbfbf6; }
.timeline tbody tr:nth-child(odd) td.tl-cell.is-future:not(.is-today) { background: #f8f8f2; }

/* Legend below the grid. */
.timeline-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 9px 14px; border-top: 1px solid var(--hairline); background: #fbfbf8;
  font-size: 11.5px; color: var(--stone);
}
.tl-key { display: inline-flex; align-items: center; gap: 6px; }
.tl-key .k-score { font-weight: 700; color: var(--crimson); font-variant-numeric: tabular-nums; }
.tl-key .k-sched {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; color: var(--crimson);
  background: rgba(139,37,0,0.08); padding: 1px 4px; border-radius: 4px;
}
.tl-key .k-blank { color: var(--stone-light); font-size: 14px; }
.tl-key .k-now {
  width: 14px; height: 12px; border-radius: 2px;
  background: rgba(139,37,0,0.08);
  border-left: 2px solid var(--crimson); border-right: 2px solid var(--crimson);
}

.tl-exhibition-mark { color: var(--crimson); font-weight: 700; font-size: 0.9em; }
.tl-exhibition-note {
  margin: 0; padding: 4px 14px 8px;
  font-size: 11px; color: var(--stone);
}
.tl-exhibition-note .tl-exhibition-mark { font-size: inherit; }

/* ── Upcoming shows ──────────────────────────────────────────────────── */
.upcoming-list { list-style: none; margin: 0; padding: 0; }
.upcoming-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--hairline);
}
.upcoming-list li:last-child { border-bottom: none; }
.date-chip {
  flex: none; width: 52px; text-align: center; border-radius: 8px;
  border: 1px solid var(--hairline); background: #fbfbf8; padding: 5px 0;
}
.date-chip .mon { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--crimson); font-weight: 700; }
.date-chip .day { font-family: 'Big Shoulders Display', sans-serif; font-size: 22px; font-weight: 700; line-height: 1; }
.up-body { min-width: 0; }
.up-body .nm { font-weight: 600; }
.up-body .loc { color: var(--stone); font-size: 13px; }
.up-body .show-times { font-size: 12px; color: var(--stone); margin-top: 2px; }
.up-body .who { font-size: 12px; color: var(--stone); margin-top: 3px; }
.up-body .event-link {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 600; color: var(--crimson); text-decoration: none;
}
.up-body .event-link:hover, .up-body .event-link:focus { text-decoration: underline; }

.upcoming-list li.past-event { opacity: 0.4; }
.upcoming-list li.past-event .date-chip .mon { color: var(--stone); }

.upcoming-list li.exhibition-event { opacity: 0.7; }
.upcoming-list li.exhibition-event .nm { font-style: italic; }

.upcoming-list li.next-event {
  border-left: 3px solid var(--crimson);
  padding-left: 13px;
}
.badge-next {
  display: inline-block; margin-left: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  color: var(--crimson); background: rgba(139,37,0,0.10);
  border: 1px solid rgba(139,37,0,0.25); border-radius: 4px;
  padding: 1px 5px; vertical-align: middle; text-transform: uppercase;
}

.pill {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--crimson);
  background: rgba(139,37,0,0.08); border-radius: 999px; padding: 1px 8px;
}

/* ── Ad slots ────────────────────────────────────────────────────────── */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; border: 1px dashed var(--stone-light); border-radius: 8px;
  background: repeating-linear-gradient(45deg, #f3f3ee 0 10px, #f7f7f2 10px 20px);
  color: var(--stone); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.ad-slot .lbl { opacity: 0.7; }
.ad-medium-rectangle { width: 300px; max-width: 100%; height: 250px; }
.ad-mobile-banner    { width: 320px; max-width: 100%; height: 50px; }
.ad-leaderboard      { width: 728px; max-width: 100%; height: 90px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 22px 0 40px; color: var(--stone); font-size: 12px;
}
footer.site .wrap { display: flex; flex-direction: column; gap: 8px; }
footer.site a { color: var(--stone); text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.footer-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.footer-nav a:hover { color: var(--crimson, #C62828); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-legal a { text-decoration: none; font-weight: 500; }
.footer-legal a:hover { color: var(--crimson, #C62828); text-decoration: underline; }
.footer-social {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.footer-social-label {
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  font-size: 11px; color: var(--stone); margin-right: 2px;
}
footer.site .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; opacity: 0.82;
  transition: background-color .15s ease, opacity .15s ease, transform .15s ease;
}
footer.site .footer-social a svg { width: 14px; height: 14px; fill: currentColor; display: block; }
footer.site .footer-social a:hover, footer.site .footer-social a:focus-visible {
  background: var(--crimson); color: var(--paper); text-decoration: none; opacity: 1; transform: translateY(-1px);
}
footer.site .footer-social a:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.footer-craft {
  max-width: 62ch; line-height: 1.55; font-style: italic; opacity: 0.85;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--hairline);
}

/* ── Sortable tables (shared, see static/js/sortable-table.js) ─────────── */
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th[data-nosort] { cursor: default; }
table.sortable thead th.sorted-asc::after { content: " ▲"; font-size: 9px; }
table.sortable thead th.sorted-desc::after { content: " ▼"; font-size: 9px; }
table.sortable thead th:hover { color: var(--ink); }

/* ── Legal prose (privacy, terms) ────────────────────────────────────── */
.legal { font-size: 14.5px; line-height: 1.65; }
.legal h3 {
  font-family: 'Big Shoulders Display', 'IBM Plex Sans', sans-serif;
  font-size: 19px; letter-spacing: .01em; color: var(--ink);
  margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid var(--hairline);
}
.legal h3:first-of-type { border-top: none; padding-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--crimson); }
.legal-lede {
  font-size: 15.5px; color: var(--ink); border-left: 3px solid var(--crimson);
  padding-left: 14px; margin-bottom: 20px !important;
}
.legal-address {
  font-style: normal; background: #f7f7f2; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px;
}
.legal-note {
  color: var(--stone); font-size: 13px; margin-top: 18px !important;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}

.empty { padding: 26px 16px; text-align: center; color: var(--stone); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   Phase 2 — Why They Moved · Staff · Shows
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Why They Moved (dashboard) ──────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-card { padding: 14px 16px; }
.why-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.driver-pill {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--crimson);
  background: rgba(139,37,0,0.08); border-radius: 999px; padding: 2px 9px;
}
.why-text { margin: 8px 0 10px; font-size: 14px; line-height: 1.55; }
.why-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; }
.why-links a { font-weight: 600; }
.why-tag {
  color: var(--stone); background: #f3f3ee; border: 1px solid var(--hairline);
  border-radius: 6px; padding: 2px 8px; font-size: 11.5px;
}

/* ── Staff: moves highlight strip ────────────────────────────────────── */
.moves-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 4px; }
.move-card { padding: 13px 16px; border-left: 4px solid var(--crimson); }
.move-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.move-person { font-weight: 700; font-size: 15px; }
.move-role {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--crimson); background: rgba(139,37,0,0.08); border-radius: 999px; padding: 1px 8px;
}
.move-path { font-size: 13px; margin-top: 4px; color: var(--ink); }
.move-path .from { color: var(--stone); }
.move-path .arrow { color: var(--crimson); font-weight: 700; margin: 0 4px; }
.move-path .to { font-weight: 600; }
.move-path .move-date { color: var(--stone); margin-left: 4px; }
.move-impact { margin: 7px 0 0; font-size: 13px; color: var(--stone); line-height: 1.5; }

/* ── Staff: corps roster grid ────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.staff-card { padding: 0; }
.staff-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #fbfbf8; border-bottom: 1px solid var(--hairline);
}
.new-count {
  font-size: 11px; font-weight: 700; color: #fff; background: var(--crimson);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.staff-roster { list-style: none; margin: 0; padding: 4px 0; }
.staff-roster li {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline;
  padding: 8px 14px; border-bottom: 1px solid var(--hairline);
}
.staff-roster li:last-child { border-bottom: none; }
.staff-roster .role {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--stone); padding-top: 2px;
}
.staff-roster .who { font-weight: 500; font-size: 14px; }
.new-badge {
  display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600;
  color: var(--up); background: rgba(31,122,61,0.10); border-radius: 6px; padding: 1px 7px;
}
.badge-exhibition {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .03em;
  color: #7a5c00; background: rgba(200,150,0,0.13); border-radius: 5px; padding: 1px 6px;
  vertical-align: middle; margin-left: 5px;
}

/* ── Shows: collapsible program cards ────────────────────────────────── */
.shows-list { display: flex; flex-direction: column; gap: 12px; }
.show-card { padding: 0; }
.show-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; cursor: pointer; list-style: none;
  background: #fbfbf8;
}
.show-summary::-webkit-details-marker { display: none; }
.show-corps { display: flex; align-items: center; gap: 8px; }
.show-corps .sc-name { font-weight: 600; font-size: 15px; }
.show-title {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 600;
  font-size: 18px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--crimson);
}
.upd-count {
  font-size: 11px; font-weight: 600; color: var(--stone);
  background: #f3f3ee; border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 8px;
}
.show-summary .chev { margin-left: auto; color: var(--stone); transition: transform 0.15s; }
.show-card[open] .show-summary .chev { transform: rotate(180deg); }
.show-card[open] .show-summary { border-bottom: 1px solid var(--hairline); }

.show-body { padding: 14px 16px 16px; }
.show-theme { margin: 0 0 14px; font-size: 15px; line-height: 1.55; font-style: italic; color: var(--ink); }

/* ── Narrative: the "what it MEANS" editorial layer (leads each card) ──── */
.show-narrative {
  margin: 0 0 18px; padding: 14px 16px;
  background: linear-gradient(180deg, #f5f3ec, #faf9f4);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--crimson);
  border-radius: 8px;
}
.narrative-h {
  margin-top: 0 !important;
  display: flex; align-items: center; gap: 7px;
}
.narrative-h::before { content: "✦"; color: var(--crimson); font-size: 13px; }
.narrative-body {
  margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink);
}
.show-quote {
  margin: 14px 0 0; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--stone-light);
}
.show-quote p {
  margin: 0; font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--crimson);
  letter-spacing: 0.2px;
}
.show-quote cite {
  display: block; margin-top: 6px;
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--stone);
}
/* Season chip in the summary — tags every card with the season it describes. */
.season-chip {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--crimson); background: rgba(139, 37, 0, 0.08);
  border: 1px solid rgba(139, 37, 0, 0.18); border-radius: 999px; padding: 1px 8px;
}
/* TBA: the corps hasn't announced this season's show yet. */
.show-title.is-tba { color: var(--stone); font-style: italic; }
.show-tba {
  margin: 0 0 4px; padding: 16px;
  background: repeating-linear-gradient(135deg, #f6f5ef 0 10px, #faf9f4 10px 20px);
  border: 1px dashed var(--stone-light); border-radius: 8px;
}
.show-tba .tba-lead { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.show-tba .tba-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--stone); }
.show-tba .tba-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; }
/* "Last verified" stamp — surfaces data freshness on every card. */
.verified-stamp {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-size: 11.5px; color: var(--stone);
}
.verified-stamp .vs-date { font-weight: 600; color: var(--up); }
.verified-stamp a { color: var(--stone); text-decoration: underline; }
.verified-stamp a:hover { color: var(--crimson); }
.show-cols { display: grid; grid-template-columns: 1fr; gap: 4px 26px; }
.show-h {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--crimson); margin: 14px 0 6px;
}
.show-col .show-h:first-child { margin-top: 0; }
.show-p { margin: 0; font-size: 14px; line-height: 1.5; }
.repertoire { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.credits { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.credits dt { color: var(--stone); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; padding-top: 1px; }
.credits dd { margin: 0; font-weight: 500; }

.change-timeline { list-style: none; margin: 0; padding: 0; }
.change-timeline li {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--hairline);
}
.change-timeline li:last-child { border-bottom: none; }
.ct-date {
  font-size: 12px; font-weight: 700; color: var(--stone); font-variant-numeric: tabular-nums;
}
.ct-body { display: flex; flex-direction: column; gap: 3px; }
.ct-desc { font-size: 14px; font-weight: 500; }
.ct-impact { font-size: 13px; color: var(--up); }
.what-changed {
  margin-top: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5;
  background: rgba(139,37,0,0.05); border-left: 3px solid var(--crimson); border-radius: 6px;
}

/* ── Desktop layouts for Phase 2 grids ───────────────────────────────── */
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .moves-list { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .show-cols { grid-template-columns: 1fr 1fr; }
}

/* ── Desktop: two-column dashboard ───────────────────────────────────── */
@media (min-width: 860px) {
  .brand { font-size: 60px; }
  .dash-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    align-items: start;
  }
  .dash-grid .col-side {
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* Hide the desktop leaderboard ad on small screens; show mobile banner only. */
.only-desktop { display: none; }
@media (min-width: 860px) { .only-desktop { display: flex; } }

/* ── Narrow phones: keep every column (esp. Move) inside the card ─────── */
@media (max-width: 560px) {
  .scores th, .scores td { padding: 10px 6px; }
  .scores th:first-child, .scores td:first-child { padding-left: 10px; }
  .scores th:last-child,  .scores td:last-child  { padding-right: 10px; }
  .corps-name .nick { display: none; }          /* drop nickname to save width */
  .corps-name { font-size: 14px; }
  .total { font-size: 15px; }
  .move { font-size: 12px; }
  .move .arrow { font-size: 12px; }
  .swatch { width: 11px; height: 18px; }
  /* Standings has 8 cols — let it scroll horizontally rather than clip. */
  .stand { min-width: 620px; }
  .card:has(.stand) { overflow-x: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Phase 3 — verification badges · sources · news · links · next-show
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Accuracy: unverified badge (clean = verified, nothing shown) ─────── */
.unverified {
  display: inline-block; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  color: #8a5a00; background: rgba(214,158,0,0.14); border: 1px solid rgba(214,158,0,0.35);
  border-radius: 6px; padding: 0 6px; line-height: 1.7; margin-left: 6px;
  vertical-align: middle;
}

/* ── Source citation link ────────────────────────────────────────────── */
.source-link { font-weight: 600; font-size: 12px; white-space: nowrap; }

/* ── Standings: next-show column ─────────────────────────────────────── */
.stand th.next, .stand td.next { text-align: left; white-space: nowrap; }
.next-date {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--crimson);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.next-name {
  display: block; font-size: 11.5px; color: var(--stone);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.next-none { color: var(--stone); }

/* ── Cancellation Alert ──────────────────────────────────────────────── */
.cancellation-alert {
  border: 2px solid var(--crimson);
  border-radius: var(--radius);
  background: rgba(139,37,0,0.06);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.cancel-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px;
}
.cancel-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: var(--crimson);
  border-radius: 4px; padding: 2px 8px;
}
.cancel-show {
  font-weight: 700; font-size: 15px; color: var(--crimson);
}
.cancel-meta {
  font-size: 12px; color: var(--stone); font-weight: 500;
}
.cancel-reason {
  margin: 0 0 6px; font-size: 13px; color: var(--ink);
}
.cancel-stmt {
  margin: 0; font-size: 12.5px; color: var(--stone); line-height: 1.5;
}
.cancel-stmt em { color: var(--ink); font-style: italic; }

/* ── Corps News ──────────────────────────────────────────────────────── */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hairline);
}
.news-item:last-child { border-bottom: none; }
.news-swatch { flex: none; width: 4px; border-radius: 3px; align-self: stretch; }
.news-body { min-width: 0; flex: 1; }
.news-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.news-corps { font-weight: 700; font-size: 13.5px; }
.news-source {
  font-size: 10px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--crimson); background: rgba(139,37,0,0.08); border-radius: 999px; padding: 1px 8px;
}
.news-date { font-size: 11.5px; color: var(--stone); }
.news-title { font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.news-text { margin: 4px 0 6px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.news-link { font-size: 12px; font-weight: 600; }

/* ── Links & Resources page ──────────────────────────────────────────── */
.links-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.link-group { padding: 0; }
.link-group-head {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 600; font-size: 18px;
  letter-spacing: 0.5px; text-transform: uppercase; margin: 0;
  padding: 12px 16px; background: #fbfbf8; border-bottom: 1px solid var(--hairline);
  color: var(--crimson);
}
.link-list { display: flex; flex-direction: column; }
.link-row {
  display: flex; flex-direction: column; gap: 1px; padding: 11px 16px;
  border-bottom: 1px solid var(--hairline); color: var(--ink); min-height: var(--tap);
  justify-content: center;
}
.link-row:last-child { border-bottom: none; }
.link-row:hover { background: #fbfbf8; text-decoration: none; }
.link-label { font-weight: 600; font-size: 14.5px; color: var(--crimson); }
.link-ext { font-size: 11px; color: var(--stone); }
.link-note { font-size: 12.5px; color: var(--stone); }

.corps-link-list { list-style: none; margin: 0; padding: 0; }
.corps-link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline); min-height: var(--tap);
}
.corps-link-row:last-child { border-bottom: none; }
.corps-link-name { display: flex; align-items: center; gap: 9px; font-weight: 500; min-width: 0; }
.corps-link-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corps-link-handles { display: flex; gap: 6px; flex: none; align-items: center; }
.corps-link-handles a {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  background: rgba(139,37,0,0.07); border: 1px solid var(--hairline); white-space: nowrap;
}
.corps-link-handles a:hover { background: rgba(139,37,0,0.14); text-decoration: none; }

@media (min-width: 700px) {
  .links-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Phase 4 — Feed aggregator · uniform photos
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Feed: source filter chips ───────────────────────────────────────── */
.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.feed-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; border-radius: 999px;
  color: var(--stone); background: #fff; border: 1px solid var(--hairline);
}
.feed-chip:hover { color: var(--ink); text-decoration: none; border-color: var(--stone-light); }
.feed-chip.on { color: #fff; background: var(--crimson); border-color: var(--crimson); }
.feed-chip.on:hover { color: #fff; }

/* ── Feed: card grid ─────────────────────────────────────────────────── */
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feed-card { display: flex; flex-direction: column; padding: 14px 16px 12px; }
.feed-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.feed-corps { display: flex; align-items: center; gap: 8px; min-width: 0; }
.feed-corps-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-source {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--crimson); background: rgba(139,37,0,0.08); border-radius: 999px; padding: 2px 9px;
}
.feed-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; }
.feed-preview { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink); flex: 1; }
.feed-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feed-date { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.feed-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--hairline);
}
.feed-out { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.feed-channels { display: flex; gap: 4px; flex: none; }
.feed-channels a {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px; color: var(--stone);
  background: #f3f3ee; border: 1px solid var(--hairline); border-radius: 5px; padding: 2px 6px;
}
.feed-channels a:hover { color: var(--crimson); background: rgba(139,37,0,0.08); text-decoration: none; }

@media (min-width: 640px) { .feed-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feed-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Shows: uniform photo + text block ───────────────────────────────── */
.uniform-block { display: flex; gap: 14px; align-items: flex-start; }
.uni-photo { flex: none; width: 104px; }
.uni-plate {
  width: 100%; height: auto; display: block; border: 1px solid var(--hairline);
  border-radius: 8px; box-shadow: 0 1px 2px rgba(10,17,24,0.04);
}
.uni-img {
  width: 104px; height: 130px; object-fit: cover; display: block;
  border: 1px solid var(--hairline); border-radius: 8px; background: #fbfbf8;
  box-shadow: 0 1px 2px rgba(10,17,24,0.04);
}
.uni-text { min-width: 0; flex: 1; }
.uni-text .show-p { margin: 0 0 8px; }
.uni-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11.5px; }
.uni-by { color: var(--stone); }
.uni-pending {
  color: var(--stone); background: #f3f3ee; border: 1px solid var(--hairline);
  border-radius: 6px; padding: 1px 7px; font-weight: 500;
}
.uni-credit a { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   Judges — panels · cards · scoring tendency
   ═══════════════════════════════════════════════════════════════════════ */

/* Caption-category accent — shared by panel chips, judge heads, breakdowns. */
:root {
  --cat-ge:     #8B2500;   /* General Effect — crimson */
  --cat-visual: #2b6cb0;   /* Visual — blue           */
  --cat-music:  #7a5b1f;   /* Music — bronze          */
}
[data-cat="General Effect"] { --cat: var(--cat-ge); }
[data-cat="Visual"]         { --cat: var(--cat-visual); }
[data-cat="Music"]          { --cat: var(--cat-music); }

/* ── Scoring tendency badge ──────────────────────────────────────────── */
.tend { font-weight: 700; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tend.high { color: var(--up); }
.tend.low  { color: var(--down); }
.tend.flat { color: var(--flat); }

/* ── Judging panel list (Judges page + Scores cross-reference) ────────── */
.panel-list { list-style: none; margin: 0; padding: 4px 0; }
.panel-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline);
}
.panel-list li:last-child { border-bottom: none; }
.panel-cap {
  flex: none; min-width: 132px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--cat, var(--stone));
  border-left: 3px solid var(--cat, var(--stone-light)); padding-left: 9px;
}
.panel-judge { font-weight: 500; font-size: 14px; }
.panel-judge a { color: var(--ink); }
.panel-judge a:hover { color: var(--crimson); }
.spec-dot { color: var(--cat-music); font-size: 12px; margin-left: 2px; }
.panel-list-compact li { padding: 8px 16px; }
.panel-list-compact .panel-cap { min-width: 120px; }

/* ── Judge cards grid ────────────────────────────────────────────────── */
.judge-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.judge-card { display: block; padding: 0; color: var(--ink); }
.judge-card:hover { text-decoration: none; border-color: var(--stone-light); box-shadow: 0 2px 8px rgba(10,17,24,0.07); }
.judge-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #fbfbf8; border-bottom: 1px solid var(--hairline);
  border-left: 4px solid var(--cat, var(--stone));
}
.judge-name { font-weight: 700; font-size: 15px; }
.judge-spec {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--cat, var(--crimson)); background: color-mix(in srgb, var(--cat, var(--crimson)) 10%, transparent);
  border-radius: 999px; padding: 2px 9px;
}
.judge-body { padding: 12px 14px 14px; }
.judge-meta { margin: 0 0 10px; font-size: 12.5px; color: var(--stone); }
.judge-meta .dot, .jp-sub .dot { margin: 0 6px; color: var(--stone-light); }
.judge-stats, .jp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.jp-stats { grid-template-columns: repeat(4, 1fr); }
.jstat { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.jval { font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: 20px; line-height: 1; }
.jval .tend { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; }
.jlbl { font-size: 10px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--stone); }
.judge-caps { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0 0; }
.cap-chip {
  font-size: 10.5px; font-weight: 600; color: var(--stone);
  background: #f3f3ee; border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 7px;
}

/* ── Judge profile (detail page) ─────────────────────────────────────── */
.judge-profile { padding: 0; }
.judge-profile-head {
  padding: 14px 16px; background: #fbfbf8; border-bottom: 1px solid var(--hairline);
  border-left: 5px solid var(--cat, var(--stone));
}
.jp-name {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: 26px;
  letter-spacing: 0.5px; text-transform: uppercase; margin: 0;
}
.jp-sub { margin: 4px 0 0; font-size: 13px; color: var(--stone); }
.judge-profile-body { padding: 14px 16px 16px; }
.jp-bio { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }

.hist-tend { flex: none; }

@media (min-width: 700px) {
  .judge-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .judge-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Why engine v2 — Season Narrative (Layer 1), Head-to-Head Watch,
   enhanced Corps Spotlights (Layer 2) + Data Cards (Layer 3).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Layer 1: the Season Narrative — the columnist piece at the top ───── */
.season-narrative {
  background:
    linear-gradient(180deg, rgba(139,37,0,0.045), rgba(139,37,0,0) 140px),
    var(--card);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--crimson);
  border-radius: var(--radius);
  padding: 20px 22px 16px;
}
.sn-kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
}
.sn-tag {
  color: var(--paper); background: var(--crimson);
  font-weight: 700; border-radius: 4px; padding: 3px 8px;
}
.sn-updated { color: var(--stone); font-weight: 600; }
.sn-headline {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-weight: 800; line-height: 1.02; letter-spacing: -0.2px;
  font-size: clamp(26px, 5vw, 40px); margin: 2px 0 8px; color: var(--ink);
  text-transform: uppercase;
}
.sn-dek {
  font-size: 16px; line-height: 1.45; color: var(--stone);
  font-style: italic; margin: 0 0 14px; max-width: 62ch;
}
.sn-body { font-size: 15.5px; line-height: 1.68; color: var(--ink); max-width: 68ch; }
.sn-body p { margin: 0 0 14px; }
.sn-body p:first-child { font-size: 16.5px; }
/* Drop cap on the lede for that print-column feel. */
.sn-body p:first-child::first-letter {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 3.1em; line-height: 0.8; font-weight: 800; float: left;
  margin: 6px 8px 0 0; color: var(--crimson);
}
.sn-body strong { color: var(--crimson); font-weight: 700; }
.sn-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--hairline);
  font-size: 12px;
}
.sn-conf {
  font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; font-size: 11px;
}
.sn-conf-low    { color: #8a6d00; background: rgba(199,157,0,0.14); }
.sn-conf-medium { color: #1f6f8b; background: rgba(31,111,139,0.12); }
.sn-conf-high   { color: var(--up); background: rgba(31,122,61,0.12); }
.sn-auto { color: var(--stone); font-style: italic; }
.sn-conf-explainer {
  flex-basis: 100%; margin: 2px 0 0; font-size: 11px; line-height: 1.5;
  color: var(--stone); font-style: italic;
}
.sn-conf-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  font-size: 8.5px; font-weight: 700; font-style: normal; line-height: 1;
  border: 1.5px solid currentColor; margin-left: 4px;
  cursor: help; opacity: 0.75; vertical-align: middle;
}

/* ── Head-to-Head Watch ──────────────────────────────────────────────── */
.h2h-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.h2h-card { padding: 12px 14px; }
.h2h-vs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600;
}
.h2h-side { display: inline-flex; align-items: center; gap: 6px; }
.h2h-side b { color: var(--crimson); font-variant-numeric: tabular-nums; }
.h2h-mid { color: var(--stone); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.swatch-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.h2h-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  margin-top: 8px; font-size: 12.5px; color: var(--stone);
}
.h2h-gap { font-weight: 600; }
.h2h-when strong { color: var(--crimson); }

/* ── Layer 2: enhanced Corps Spotlight cards ─────────────────────────── */
.why-corps { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rank-badge {
  flex: none; font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-weight: 800; font-size: 13px; color: var(--paper); background: var(--ink);
  border-radius: 6px; padding: 2px 7px; letter-spacing: 0.3px;
}
.why-sowhat {
  margin: 2px 0 10px; padding: 10px 12px; font-size: 14px; line-height: 1.55;
  background: rgba(139,37,0,0.05); border-left: 3px solid var(--crimson);
  border-radius: 0 6px 6px 0;
}
.sw-label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 3px;
}

/* ── Cluster dot strip chart ────────────────────────────────────────── */
.cluster-strip { padding: 12px 16px 8px; margin-bottom: 12px; }
.cluster-strip-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cluster-strip-title {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-weight: 800; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink);
}
.cluster-strip-sub { font-size: 11px; color: var(--stone); }
.cluster-svg { width: 100%; height: auto; display: block; }

/* ── Layer 3: expandable Data Card ───────────────────────────────────── */
.data-card { margin: 0 0 10px; border-top: 1px solid var(--hairline); }
.data-card summary {
  cursor: pointer; list-style: none; padding: 9px 0 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; color: var(--stone);
  display: flex; align-items: center; gap: 6px;
}
.data-card summary::-webkit-details-marker { display: none; }
.data-card summary::before { content: '▸'; color: var(--crimson); font-size: 11px; }
.data-card[open] summary::before { content: '▾'; }
.data-card summary:hover { color: var(--crimson); }
.dc-body { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 6px 0 4px; }
.dc-block h4 {
  margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink);
}
.dc-sub { color: var(--stone); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dc-cap { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dc-cap td { padding: 3px 0; border-bottom: 1px solid var(--hairline); }
.dc-cap-name { color: var(--ink); }
.dc-cap-score { text-align: right; font-variant-numeric: tabular-nums; color: var(--stone); width: 46px; }
.dc-cap-rel { text-align: right; font-variant-numeric: tabular-nums; width: 56px; font-weight: 600; color: var(--stone); }
.dc-cap-rel.pos { color: var(--up); }
.dc-cap-rel.neg { color: var(--down); }
.dc-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.dc-list li { padding: 2px 0; }
.dc-list em { color: var(--crimson); font-style: normal; font-weight: 600; }
.dc-conf {
  font-size: 10px; font-weight: 700; color: var(--stone); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 0 5px; margin-left: 4px;
}
.dc-side { display: grid; gap: 12px; }
.dc-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--stone); font-style: italic; }

@media (min-width: 620px) {
  .h2h-grid { grid-template-columns: 1fr 1fr; }
  .dc-body { grid-template-columns: 1.1fr 1fr; gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Why v2 enhancements — fan quotes, judge tendency, leaderboard sidebar
   ═══════════════════════════════════════════════════════════════════════ */

/* Mobile: sidebar is hidden — col-side is desktop-only via dash-grid */
.why-sidebar {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(10,17,24,0.05);
  overflow: hidden;
  margin-bottom: 16px;
}

/* Leaderboard sidebar header */
.why-lb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 8px;
  background: #fbfbf8;
  border-bottom: 1px solid var(--hairline);
}
.why-lb-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.why-lb-date {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--stone);
}

/* Leaderboard list */
.why-lb-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.why-lb-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.why-lb-row:last-child { border-bottom: none; }

/* Tonight's corps: bold + crimson score */
.why-lb-tonight .why-lb-name { font-weight: 700; color: var(--ink); }
.why-lb-tonight .why-lb-score { color: var(--crimson); font-weight: 700; }

/* Carry-forward corps: muted */
.why-lb-carry .why-lb-name { color: var(--stone); font-weight: 400; }
.why-lb-carry .why-lb-score { color: var(--stone); }

.why-lb-rank {
  flex: none;
  width: 16px;
  font-weight: 700;
  font-size: 11px;
  color: var(--stone);
  text-align: right;
}
.why-lb-swatch {
  flex: none;
  width: 8px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
}
.why-lb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.why-lb-score {
  flex: none;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.why-lb-carry-date {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--stone);
  background: var(--hairline);
  border-radius: 8px;
  padding: 1px 5px;
}
.why-lb-legend {
  font-size: 10.5px;
  color: var(--stone);
  padding: 6px 14px 8px;
  margin: 0;
  border-top: 1px solid var(--hairline);
  background: #fbfbf8;
  line-height: 1.4;
}

/* ── Mobile horizontal leaderboard strip ─────────────────────────────── */
.why-lb-strip {
  margin: 0 0 14px;
  overflow: hidden;
}
.why-lb-strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.why-lb-strip-scroll::-webkit-scrollbar { display: none; }
.why-lb-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  min-width: 56px;
  font-variant-numeric: tabular-nums;
}
.why-lb-chip.tonight {
  border-color: var(--crimson);
  background: rgba(139,37,0,0.04);
}
.why-lb-chip-rank {
  font-size: 9px;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.why-lb-chip-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.why-lb-chip.tonight .why-lb-chip-name { color: var(--crimson); }
.why-lb-chip-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
}
.why-lb-chip:not(.tonight) .why-lb-chip-score { color: var(--stone); font-weight: 500; }

/* Hide the mobile strip on desktop — the sidebar takes over */
@media (min-width: 860px) {
  .why-lb-strip { display: none; }
}

/* ── Movement chart (/movement) ──────────────────────────────────────── */
.mv-page { padding-top: 4px; }

.mv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.mv-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.mv-subtitle { font-size: 13px; color: var(--stone); margin: 0; }

.mv-toggles { display: flex; gap: 6px; flex-shrink: 0; margin-top: 4px; }
.mv-toggle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  min-height: 32px;
}
.mv-toggle.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mv-toggle:hover:not(.active) { background: var(--hairline); color: var(--ink); }

.mv-chart-card { position: relative; padding: 20px 16px 14px; overflow: visible; }
.mv-chart-wrap { position: relative; width: 100%; min-height: 240px; }
.mv-loading, .mv-empty {
  color: var(--stone); font-size: 14px;
  padding: 48px 0; text-align: center; margin: 0;
}
.mv-hint {
  font-size: 11px; color: var(--stone);
  margin: 8px 4px 0; text-align: center;
}

/* ── Tooltip ──────────────────────────────────────────────────────────── */
.mv-tooltip {
  position: absolute;
  background: rgba(10, 17, 24, 0.93);
  color: var(--paper);
  border-radius: 9px;
  padding: 11px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.1s, transform 0.1s;
  min-width: 168px;
  max-width: 228px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mv-tooltip.visible { opacity: 1; transform: translateY(0); }
.mv-tt-corps { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.mv-tt-swatch { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mv-tt-name   { font-weight: 600; font-size: 12px; white-space: nowrap; opacity: 0.95; }
.mv-tt-score  {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1;
  margin-bottom: 5px; letter-spacing: 0.3px;
}
.mv-tt-event { font-size: 11px; opacity: 0.75; margin-bottom: 2px; }
.mv-tt-meta  { font-size: 10.5px; opacity: 0.5; }
.mv-tt-delta { font-size: 11px; font-weight: 600; margin-top: 6px; }
.mv-tt-delta.up   { color: #52c97d; }
.mv-tt-delta.down { color: #f87171; }

/* ── Sparklines in dashboard standings table ──────────────────────────── */
.sparkline { display: block; overflow: visible; }
.sparkline-link { display: inline-block; line-height: 0; text-decoration: none; }
.sparkline-link:hover polyline { opacity: 0.7; }

.stand th.spark-col,
.stand td.spark-col {
  text-align: center;
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap;
}

/* Hide sparkline column on very narrow screens — the card already scrolls
   horizontally, but at 480px it starts to crowd the core score columns. */
@media (max-width: 560px) {
  .stand { min-width: 700px; }  /* grows with the new column */
}

/* ── Fan & insider quotes inside why-cards ───────────────────────────── */
.why-quotes {
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why-quote {
  margin: 0;
  padding: 9px 12px 9px 14px;
  border-left: 3px solid var(--stone-light);
  border-radius: 0 6px 6px 0;
  background: #f9f9f5;
}
.why-quote p {
  margin: 0 0 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.why-quote cite {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-style: normal;
  font-size: 11px;
  color: var(--stone);
}
.why-quote-insider {
  border-left-color: var(--crimson);
  background: rgba(139,37,0,0.04);
}
.why-quote-insider p { color: var(--ink); }
.quote-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 1px 6px;
}
.quote-insider {
  color: var(--crimson);
  background: rgba(139,37,0,0.12);
  border: 1px solid rgba(139,37,0,0.2);
}
.quote-fan {
  color: #2b6cb0;
  background: rgba(43,108,176,0.10);
  border: 1px solid rgba(43,108,176,0.2);
}


/* ── Newsletter CTA (The Recap) ────────────────────────────────────────────
   Shared by the homepage, Analysis Desk, Projections, and the /newsletter
   landing page via templates/_newsletter_cta.html. Lives here (not inline)
   so every surface renders the signup identically. */
.nl-cta { scroll-margin-top: 80px; }
.nl-card {
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--crimson);
  background: linear-gradient(135deg, rgba(139,37,0,0.07), rgba(139,37,0,0.015) 70%);
  padding: 30px 30px 26px; border-radius: var(--radius);
}
.nl-kicker {
  display: inline-block;
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; background: var(--crimson);
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
}
.nl-hed {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(28px, 5vw, 38px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -0.5px;
  color: var(--ink); margin: 0 0 8px;
}
.nl-dek {
  font-size: 15.5px; line-height: 1.5; color: var(--stone);
  margin: 0 0 16px; max-width: 56ch;
}
.nl-dek em { font-style: italic; color: var(--ink); }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.nl-input {
  flex: 1 1 240px; min-width: 0;
  font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 6px;
  background: var(--card); color: var(--ink);
}
.nl-input:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(139,37,0,0.15);
}
.nl-btn {
  flex: 0 0 auto; cursor: pointer;
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; color: #fff; background: var(--crimson);
  border: none; border-radius: 6px; padding: 12px 22px;
  transition: background 0.15s;
}
.nl-btn:hover { background: #a03000; }
.nl-fine { font-size: 11.5px; color: var(--stone); margin: 12px 0 0; }
.nl-note {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  padding: 10px 14px; border-radius: 6px; margin: 0 0 14px;
}
.nl-ok { background: rgba(34,139,34,0.12); color: var(--up); border: 1px solid rgba(34,139,34,0.3); }
.nl-err { background: rgba(139,37,0,0.08); color: var(--crimson); border: 1px solid rgba(139,37,0,0.25); }

/* ── Compact sidebar signup (.nlm-*) — sits under Season Standings ───────
   Premium newsletter card, styled like the Analysis Desk feature cards:
   a crimson masthead bar across the top, a hairline border all around,
   square top corners (masthead) and a rounded base. Reads unmistakably as
   its own branded object, never as the white Sponsored box below it. */
.nlm-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--crimson);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 10px rgba(10,17,24,0.06);
  padding: 22px 22px 20px;
  /* Generous gap + a full-width hairline in the middle so it never blends
     into the Sponsored box beneath it. */
  margin-bottom: 40px;
}
.nlm-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -20px;
  height: 1px; background: var(--hairline);
}
/* ── Masthead: a proper branded nameplate — kicker, big Big-Shoulders
      wordmark on its own line, tagline, then a rule. No clipart glyph. ── */
.nlm-masthead {
  padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px solid var(--hairline);
}
.nlm-kicker {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 6px;
}
.nlm-name {
  display: block;
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 32px; font-weight: 800; line-height: 0.94;
  text-transform: uppercase; letter-spacing: 0.3px; color: var(--ink);
  margin-bottom: 8px;
}
.nlm-tagline {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px; font-style: italic; line-height: 1.3; color: var(--stone);
}
.nlm-dek {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink);
  margin: 0 0 16px;
}
.nlm-form { display: flex; flex-direction: column; gap: 9px; }
.nlm-input {
  width: 100%; box-sizing: border-box;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px; padding: 11px 13px;
  border: 1px solid var(--hairline); border-radius: 6px;
  background: var(--card); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nlm-input::placeholder { color: var(--stone); opacity: 0.7; }
.nlm-input:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(139,37,0,0.15);
}
.nlm-btn {
  cursor: pointer; width: 100%;
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; color: #fff; background: var(--crimson);
  border: none; border-radius: 7px; padding: 16px 18px;
  transition: background 0.15s;
}
.nlm-btn:hover { background: #a03000; }
.nlm-fine {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.2px; color: var(--stone);
  text-align: center; margin: 14px 0 0;
}

/* ── Top-of-desk placement (.nlm-top) — same branded card, adapted to the
      full main-column width above the scores. Drops the sidebar separator
      hairline and lays the form out horizontally once there's room. */
.nlm-top { margin-bottom: 28px; }
.nlm-top .nlm-card {
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  margin-bottom: 0;
}
.nlm-top .nlm-card::after { content: none; }
@media (min-width: 620px) {
  .nlm-top .nlm-form { flex-direction: row; gap: 10px; }
  .nlm-top .nlm-input { flex: 1 1 auto; }
  .nlm-top .nlm-btn { width: auto; flex: 0 0 auto; padding: 14px 28px; }
  .nlm-top .nlm-fine { text-align: left; }
}

/* Standalone /newsletter landing page */
.nl-page { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.nl-page-head { text-align: center; margin-bottom: 26px; }
.nl-page-head .sn-tag { margin-bottom: 12px; }
.nl-what { margin-top: 30px; }
.nl-what-title {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 0 0 16px;
}
.nl-what-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.nl-what-item {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--card); padding: 16px 18px;
}
.nl-what-item h3 {
  font-size: 15px; font-weight: 700; color: var(--crimson); margin: 0 0 5px;
}
.nl-what-item p { font-size: 13.5px; line-height: 1.5; color: var(--stone); margin: 0; }
.nl-page-title {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 7vw, 48px); line-height: 0.98;
  letter-spacing: -0.5px; color: var(--ink); margin: 6px 0 12px;
}
.nl-page-dek {
  font-size: 16px; line-height: 1.55; color: var(--stone);
  max-width: 60ch; margin: 0 auto 16px;
}
.nl-page-back { font-size: 13px; font-weight: 600; color: var(--crimson); }

/* Standalone /podcast page */
.pod-subscribe-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.pod-subscribe-btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--crimson); color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pod-subscribe-btn:hover { background: var(--crimson-bright); }
.pod-subscribe-note { font-size: 12.5px; color: var(--stone); }
.pod-list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.pod-episode {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--card); padding: 18px 20px;
}
.pod-episode-head {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 12px; color: var(--stone); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-bottom: 6px;
}
.pod-episode-num { color: var(--crimson); }
.pod-episode-title {
  font-family: 'Big Shoulders Display', system-ui, sans-serif;
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  color: var(--ink); margin: 0 0 6px;
}
.pod-episode-desc { font-size: 13.5px; line-height: 1.5; color: var(--stone); margin: 0 0 12px; }
.pod-player { width: 100%; }
