/* ═══════════════════════════════════════════════════════════════════════
   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); }

/* ── 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 .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.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; }

.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; }
}

/* 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); }

/* ── 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; }
}
