/* ==========================================================================
   The Murph — fantasy football HQ
   One stylesheet, no framework. Dark by design.
   ========================================================================== */

:root {
  --bg: #080b10;
  --bg-grad: radial-gradient(
      1200px 600px at 50% -200px,
      rgba(52, 227, 155, 0.09),
      transparent 70%
    ),
    #080b10;
  --surface: #111a24;
  --surface-2: #17222f;
  --surface-3: #1e2b3a;
  --border: #223142;
  --border-soft: #1a2734;

  --text: #e9f0f7;
  --text-dim: #a6b6c8;
  --muted: #7d8fa3;

  --up: #34e39b;
  --up-dim: rgba(52, 227, 155, 0.14);
  --down: #ff6b6b;
  --down-dim: rgba(255, 107, 107, 0.14);
  --accent: #ffc247;
  --accent-dim: rgba(255, 194, 71, 0.14);

  /* Position hues. These are badge fills carrying dark text, so they sit
     brighter than a chart-mark palette would; the chip always prints the
     position, so colour reinforces identity and never carries it alone.
     Validated on the adjacent pairlist against this surface: worst CVD
     ΔE 9.0, worst normal-vision ΔE 15.1, all ≥3:1 contrast. */
  --qb: #7aa2ff;
  --rb: #34e39b;
  --wr: #ffb454;
  --te: #d18cff;
  --k: #ff8fa8;
  --def: #5fe0e8;

  /* Matchup grade — diverging, two hues either side of a neutral gray.
     Always shipped with its text label, never colour alone. */
  --grade-great: #2fd48f;
  --grade-good: #86d9a6;
  --grade-neutral: #8fa0b3;
  --grade-tough: #ffa46b;
  --grade-avoid: #ff6b6b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #10161d;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 16, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.brand small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

/* ---------- page furniture ---------- */

main {
  padding: 36px 0 72px;
}

.page-head {
  margin-bottom: 26px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 48px);
  text-transform: uppercase;
}
.page-head p {
  margin: 10px 0 0;
  color: var(--text-dim);
  max-width: 68ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.section-head h2 {
  font-size: 27px;
  text-transform: uppercase;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.section-head .link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section-head .link:hover {
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  padding: 54px 0 12px;
}
.hero h1 {
  font-size: clamp(42px, 7.5vw, 76px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14.5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--surface-3);
  border-color: #2e405473;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #12161c;
}
.btn-primary:hover {
  background: #ffd071;
  border-color: #ffd071;
}

/* ---------- status strip ---------- */

.status-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-dim);
}
.status-strip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px var(--up-dim);
  flex: none;
}
.status-strip strong {
  color: var(--text);
  font-weight: 650;
}
.status-strip .spacer {
  margin-left: auto;
}

/* ---------- section tabs ---------- */

/* Underlined, to read as section navigation. The pill-shaped .chip is a
   filter within a section — the two must not look alike. */
.tabbar {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: none;
  padding: 11px 17px 13px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover {
  color: var(--text-dim);
}
.tab[aria-selected='true'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab .count {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 1px;
}
.tab[aria-selected='true'] .count {
  background: var(--accent-dim);
  color: var(--accent);
}

.tabpanel:focus {
  outline: none;
}
.tabpanel[hidden] {
  display: none;
}

/* The panel owns its own heading, so the first section inside it does not
   need the extra top margin .section applies. */
.tabpanel > .section:first-child,
.tabpanel > .section {
  margin-top: 0;
}

.panel-intro {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 78ch;
}

@media (max-width: 620px) {
  .tab {
    font-size: 15px;
    padding: 10px 13px 12px;
  }
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ---------- position column (risers / fallers) ---------- */

.pos-col {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    transparent
  );
}
.pos-col-head h3 {
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pos-col-head .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pos-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0a0e13;
  background: var(--muted);
}
.pos-QB {
  background: var(--qb);
}
.pos-RB {
  background: var(--rb);
}
.pos-WR {
  background: var(--wr);
}
.pos-TE {
  background: var(--te);
}
.pos-K {
  background: var(--k);
}
.pos-DEF {
  background: var(--def);
}

.mover-group {
  padding: 12px 8px 14px;
}
.mover-group + .mover-group {
  border-top: 1px dashed var(--border-soft);
}

.mover-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mover-label.up {
  color: var(--up);
}
.mover-label.down {
  color: var(--down);
}

.mover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mover:hover {
  background: var(--surface-2);
}

/* magnitude bar, sized inline from the data */
.mover .bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--radius-sm);
  opacity: 0.16;
  pointer-events: none;
}
.mover.up .bar {
  background: var(--up);
}
.mover.down .bar {
  background: var(--down);
}

.mover .idx {
  position: relative;
  width: 16px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.mover .who {
  position: relative;
  min-width: 0;
  flex: 1;
}
.mover .nm {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mover .meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mover .val {
  position: relative;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mover.up .val {
  color: var(--up);
}
.mover.down .val {
  color: var(--down);
}

.empty-note {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- analyst desk ---------- */

.desk {
  background: linear-gradient(
      180deg,
      rgba(255, 194, 71, 0.05),
      transparent 180px
    ),
    var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}

.desk-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
.desk-head h2 {
  font-size: 27px;
  text-transform: uppercase;
}
.desk-head .headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin: 6px 0 0;
  line-height: 1.2;
}
.desk-head .byline {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.desk-head .intro {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 76ch;
}
.desk-head .desk-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.week-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 194, 71, 0.35);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desk-group + .desk-group {
  margin-top: 26px;
}
.desk-group-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.desk-group-label span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 8px;
}

.takes {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.take {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.take.buy {
  border-left-color: var(--up);
}
.take.sell {
  border-left-color: var(--down);
}
.take.hold {
  border-left-color: var(--accent);
}
.take.watch {
  border-left-color: var(--qb);
}

.take-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.take-head .who {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.take-head .team {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.verdict {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.verdict.buy {
  color: var(--up);
  background: var(--up-dim);
  border-color: rgba(52, 227, 155, 0.35);
}
.verdict.sell {
  color: var(--down);
  background: var(--down-dim);
  border-color: rgba(255, 107, 107, 0.35);
}
.verdict.hold {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(255, 194, 71, 0.35);
}
.verdict.watch {
  color: var(--qb);
  background: rgba(122, 162, 255, 0.13);
  border-color: rgba(122, 162, 255, 0.35);
}

.take p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Live add/drop count stitched in from the trending feed. It flows inline
   rather than being pushed right, so a narrow card wraps it to the left of
   the next line instead of stranding it above the body copy. */
.take .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.take .live.up {
  color: var(--up);
}
.take .live.down {
  color: var(--down);
}

.desk-empty {
  color: var(--muted);
  font-style: italic;
  padding: 10px 0;
}

/* ---------- matchups ---------- */

.games {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.game {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted);
}
.game-head .line {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.side {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}
.side + .side {
  border-top: 1px dashed var(--border-soft);
}
.side img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}
.side .tm {
  min-width: 0;
  flex: 1;
}
.side .tm b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.side .tm span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.side .imp {
  flex: none;
  text-align: right;
  font-family: var(--font-mono);
}
.side .imp b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.side .imp span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.side.smash .imp b {
  color: var(--up);
}
.side.fade .imp b {
  color: var(--down);
}
.side .score {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--text-dim);
}

/* per-game matchup block: both sides, one legend */
.mstrip {
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.014);
  padding: 10px 16px 12px;
}
.mstrip-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mstrip-head b {
  color: var(--text-dim);
  font-weight: 700;
}

.mrow {
  display: grid;
  grid-template-columns: 42px repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  padding: 3px 0;
}
.mteam {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}
.mcell {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 3px 2px;
  border-radius: 5px;
  cursor: help;
}
.mcell:hover {
  background: var(--surface-2);
}
.mcell i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.mcell b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ranked implied-total board */
.imp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.imp-row:last-child {
  border-bottom: none;
}
.imp-row:hover {
  background: var(--surface-2);
}
.imp-row .rank {
  width: 22px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.imp-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.imp-row .tm {
  flex: none;
  width: 52px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.imp-row .vs {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imp-row .meter {
  flex: none;
  width: 110px;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.imp-row .meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--up);
}
.imp-row .pts {
  flex: none;
  width: 48px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .imp-row .meter {
    display: none;
  }
}

/* ---------- matchup grades ---------- */

.grade {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.grade-great {
  color: var(--grade-great);
  background: rgba(47, 212, 143, 0.13);
  border-color: rgba(47, 212, 143, 0.36);
}
.grade-good {
  color: var(--grade-good);
  background: rgba(134, 217, 166, 0.12);
  border-color: rgba(134, 217, 166, 0.32);
}
.grade-neutral {
  color: var(--grade-neutral);
  background: rgba(143, 160, 179, 0.14);
  border-color: rgba(143, 160, 179, 0.34);
}
.grade-tough {
  color: var(--grade-tough);
  background: rgba(255, 164, 107, 0.13);
  border-color: rgba(255, 164, 107, 0.34);
}
.grade-avoid {
  color: var(--grade-avoid);
  background: rgba(255, 107, 107, 0.13);
  border-color: rgba(255, 107, 107, 0.36);
}

/* ---------- charts ---------- */

.chart {
  width: 100%;
  overflow: visible;
}
.chart .grid-line {
  stroke: var(--border-soft);
  stroke-width: 1;
}
.chart .avg-line {
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0.75;
}
.chart .bar {
  fill: var(--accent);
  transition: opacity 0.12s;
}
.chart .bar.dim {
  fill: var(--surface-3);
}
.chart .bar:hover {
  opacity: 0.82;
}
.chart text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.chart .val {
  fill: var(--text);
  font-size: 10.5px;
}
.chart-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- injury desk (analysis rows) ---------- */

.inj-desk {
  display: grid;
  gap: 14px;
}

.inj-row {
  display: grid;
  gap: 0;
  grid-template-columns: 200px 1.1fr 0.85fr 1.25fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.inj-row > div {
  padding: 16px 18px;
  border-left: 1px solid var(--border-soft);
  min-width: 0;
}
.inj-row > div:first-child {
  border-left: none;
}

.inj-who .pos {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qb);
  margin-bottom: 4px;
}
.inj-who h3 {
  font-size: 25px;
  line-height: 1.05;
}

.inj-col-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.inj-h {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}
.inj-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 2px 0 7px;
}
.inj-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.inj-big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.inj-big-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 2px 0 7px;
}

/* G1–G4 regression bars */
.reg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}
.reg-cell {
  text-align: center;
}
.reg-cell .pct {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.reg-cell .track {
  height: 26px;
  margin: 5px 0 4px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.reg-cell .fill {
  width: 62%;
  background: var(--qb);
  border-radius: 0 0 4px 4px;
}
/* Hollow: this cell fell back to the pooled all-injury figure. */
.reg-cell .fill.borrowed {
  background: transparent;
  border: 1px dashed var(--qb);
  border-top: none;
}
.reg-cell .g {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.call-box {
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  height: 100%;
}
.call-box.buy {
  background: rgba(47, 212, 143, 0.1);
  border: 1px solid rgba(47, 212, 143, 0.3);
}
.call-box.sell {
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.call-box.hold {
  background: rgba(255, 194, 71, 0.09);
  border: 1px solid rgba(255, 194, 71, 0.3);
}
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.call-pill.buy {
  background: var(--grade-great);
  color: #08120d;
}
.call-pill.sell {
  background: var(--down);
  color: #180808;
}
.call-pill.hold {
  background: var(--accent);
  color: #191203;
}

/* Facts read out of the written injury report. */
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}
.signal {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: help;
}
.signal.good {
  color: var(--grade-great);
  background: rgba(47, 212, 143, 0.12);
  border-color: rgba(47, 212, 143, 0.34);
}
.signal.bad {
  color: var(--down);
  background: var(--down-dim);
  border-color: rgba(255, 107, 107, 0.34);
}
.signal.neutral {
  color: var(--text-dim);
  background: var(--surface-3);
  border-color: var(--border);
}

.src-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.src-tag.reported {
  background: rgba(122, 162, 255, 0.14);
  border-color: rgba(122, 162, 255, 0.4);
  color: var(--qb);
}

.inj-src {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Recent reporting on a player — headline + link, never the article body. */
.newswire {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.newswire li {
  padding: 7px 0 7px 13px;
  border-left: 2px solid var(--qb);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.45;
}
.newswire a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 162, 255, 0.35);
}
.newswire a:hover {
  color: var(--qb);
  border-bottom-color: var(--qb);
}
.newswire .src {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.wire-list {
  display: grid;
  gap: 10px;
}
.wire-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.wire-item:hover {
  border-color: var(--border);
  background: var(--surface-2);
}
.wire-item .when {
  flex: none;
  width: 66px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.wire-item .body {
  min-width: 0;
}
.wire-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}
.wire-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.wire-item .tags {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.comps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--qb);
}
.comps li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 2px 0;
}
.comps li b {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .inj-row {
    grid-template-columns: 1fr 1fr;
  }
  .inj-row > div:nth-child(odd) {
    border-left: none;
  }
  .inj-row > div {
    border-top: 1px solid var(--border-soft);
  }
  .inj-row > div:nth-child(-n + 2) {
    border-top: none;
  }
}
@media (max-width: 620px) {
  .inj-row {
    grid-template-columns: 1fr;
  }
  .inj-row > div {
    border-left: none;
    border-top: 1px solid var(--border-soft);
  }
  .inj-row > div:first-child {
    border-top: none;
  }
}

/* ---------- player drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(3px);
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  z-index: 91;
  overflow-y: auto;
  padding: 22px 24px 40px;
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.drawer-head h2 {
  font-size: 29px;
  line-height: 1.05;
}
.drawer-head .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.drawer-close {
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.drawer-close:hover {
  color: var(--text);
  background: var(--surface-3);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.metric .k {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric .v {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}
.metric .s {
  font-size: 11px;
  color: var(--muted);
}

.drawer h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 22px 0 10px;
  color: var(--text-dim);
}

.glog {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.glog th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.glog td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.glog td:first-child,
.glog th:first-child {
  font-family: var(--font-body);
}
.glog tr:last-child td {
  border-bottom: none;
}

tr.clickable {
  cursor: pointer;
}
tr.clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- bozo cave ---------- */

/* The finding the page is built on. Stated once, up front, not buried. */
.verdict-banner {
  border: 1px solid rgba(255, 194, 71, 0.32);
  background: linear-gradient(180deg, rgba(255, 194, 71, 0.07), transparent 140px),
    var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.verdict-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.verdict-banner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 82ch;
}
.verdict-banner b {
  color: var(--text);
  font-weight: 650;
}
.verdict-banner a {
  color: var(--accent);
  white-space: nowrap;
}
.verdict-foot {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px !important;
  color: var(--muted) !important;
}

.prop-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.prop-head h3 {
  font-size: 27px;
  text-transform: uppercase;
}
.prop-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.prop-head b {
  color: var(--text-dim);
}

.prop-verdict {
  margin-left: auto;
  text-align: right;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 190px;
}
.prop-verdict.good {
  border-color: rgba(47, 212, 143, 0.4);
  background: rgba(47, 212, 143, 0.08);
}
.prop-verdict.bad {
  border-color: rgba(255, 107, 107, 0.36);
  background: rgba(255, 107, 107, 0.07);
}
.prop-verdict.flat {
  border-color: var(--border);
}
.prop-verdict .k {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.prop-verdict .v {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}
.prop-verdict .s {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.sub-head {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 26px 0 10px;
}

.rc-text {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 82ch;
  margin: 0 0 14px;
}
.rc-text b {
  color: var(--text);
  font-weight: 650;
}

/* Histogram of a player's results, green above the line. */
.dist {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  padding: 0 2px;
}
.dist-bar {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  cursor: help;
}
.dist-bar i {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
}

/* clickable game cards in the Bozo Cave */
.game-pick {
  cursor: pointer;
  transition: border-color 0.16s, transform 0.16s;
}
.game-pick:hover,
.game-pick:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.game-cta {
  padding: 9px 16px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-top: 1px solid var(--border-soft);
}

.game-detail-head h3 {
  font-size: 32px;
  text-transform: uppercase;
}
.game-detail-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.market-read {
  margin: 16px 0 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.market-read b {
  color: var(--text);
  font-weight: 650;
}

/* The verdict word is the whole point — colour supports it, never replaces it. */
.verdict-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.verdict-chip.strong {
  color: var(--grade-great);
  background: rgba(47, 212, 143, 0.14);
  border-color: rgba(47, 212, 143, 0.4);
}
.verdict-chip.lean {
  color: var(--grade-good);
  background: rgba(134, 217, 166, 0.12);
  border-color: rgba(134, 217, 166, 0.34);
}
.verdict-chip.flat {
  color: var(--text-dim);
  background: var(--surface-3);
  border-color: var(--border);
}
.verdict-chip.none {
  color: var(--muted);
  background: transparent;
  border-color: var(--border-soft);
}

.prop-detail-inner {
  padding: 14px 4px 18px;
  background: var(--bg-elev);
}
tr.prop-detail td {
  padding: 0 14px;
  background: var(--bg-elev);
}

/* ---------- plain-language guide ---------- */

.guide {
  max-width: 78ch;
}
.guide h3 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 30px 0 10px;
  color: var(--text);
}
.guide h3:first-child {
  margin-top: 0;
}
.guide p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.guide b {
  color: var(--text);
  font-weight: 650;
}
.guide a {
  color: var(--accent);
}

.glossary {
  margin: 0 0 14px;
}
.glossary dt {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}
.glossary dd {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.plain-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: step;
}
.plain-list li {
  position: relative;
  padding: 8px 0 8px 2px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  border-top: 1px solid var(--border-soft);
}
.plain-list li:first-child {
  border-top: none;
}
.plain-list.numbered li {
  counter-increment: step;
  padding-left: 34px;
}
.plain-list.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 194, 71, 0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-warning {
  margin-top: 20px !important;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13.5px !important;
  color: var(--muted) !important;
}

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-out {
  color: var(--down);
  background: var(--down-dim);
  border-color: rgba(255, 107, 107, 0.35);
}
.badge-doubtful {
  color: #ff9d5c;
  background: rgba(255, 157, 92, 0.13);
  border-color: rgba(255, 157, 92, 0.34);
}
.badge-questionable {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(255, 194, 71, 0.32);
}
.badge-neutral {
  color: var(--text-dim);
  background: var(--surface-3);
  border-color: var(--border);
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14.5px;
}
table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th[data-sort] {
  cursor: pointer;
  user-select: none;
}
table.data th[data-sort]:hover {
  color: var(--text);
}
table.data th[aria-sort] {
  color: var(--accent);
}
table.data td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data tbody tr:hover td {
  background: var(--surface-2);
}
table.data .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
table.data .player-name {
  font-weight: 600;
}

/* ---------- controls ---------- */

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-width: 90px;
}
.field input:focus,
.field select:focus {
  outline: none;
}
.field input::placeholder {
  color: var(--muted);
}
.field select option {
  background: var(--surface-2);
  color: var(--text);
}
.field.search {
  flex: 1 1 260px;
  max-width: 420px;
}
.field.search input {
  width: 100%;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover {
  color: var(--text);
  background: var(--surface-2);
}
.chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #12161c;
}

/* ---------- filter bar (efficiency) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.filter-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters .chip {
  padding: 5px 11px;
  font-size: 12.5px;
}
.filters .btn {
  padding: 7px 16px;
  font-size: 13px;
  margin-left: auto;
}

.range {
  display: flex;
  align-items: center;
  gap: 7px;
}
.range select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  padding: 5px 9px;
}
.range select:focus-visible {
  outline: 2px solid var(--accent);
}
.range span {
  font-size: 12px;
  color: var(--muted);
}

.filter-summary {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.table-toggle {
  margin-top: 16px;
}
.table-toggle summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 0;
}
.table-toggle summary:hover {
  color: var(--accent);
}

/* ---------- feature / link cards ---------- */

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
a.feature:hover {
  border-color: #33475d;
  background: var(--surface-2);
  transform: translateY(-2px);
}
.feature h3 {
  font-size: 20px;
  text-transform: uppercase;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.feature .go {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

/* ---------- stat tiles ---------- */

.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tile .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile .v {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 4px;
}
.tile .s {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- loading & errors ---------- */

.skeleton {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.skeleton-row {
  height: 34px;
  margin: 6px 8px;
}

.error-box {
  padding: 18px 20px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: var(--down-dim);
  border-radius: var(--radius);
  color: #ffd9d9;
  font-size: 14.5px;
}
.error-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--down);
}
.error-box button {
  margin-top: 12px;
}

/* ---------- Fresh Dozen ---------- */

.fd-hero {
  text-align: center;
  padding: 48px 0 8px;
}
.fd-hero img {
  max-width: min(560px, 100%);
  height: auto;
}
.fd-hero h1 {
  font-size: clamp(40px, 8vw, 68px);
  text-transform: uppercase;
}
.fd-hero p {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 14px auto 0;
}

.fd-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  counter-reset: fd;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.fd-item {
  counter-increment: fd;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px 18px 22px;
  transition: border-color 0.18s, transform 0.18s;
}
.fd-item:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  border-left-color: var(--accent);
}

.fd-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.fd-item h3::before {
  content: counter(fd);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 194, 71, 0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

/* Optional sub-head under a category title. */
.fd-note {
  margin: -4px 0 10px 39px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.fd-nominees {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nom;
}
.fd-nominees li {
  counter-increment: nom;
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-dim);
  font-size: 14.5px;
  border-top: 1px solid var(--border-soft);
}
.fd-nominees li:first-child {
  border-top: none;
}
.fd-nominees li::before {
  content: counter(nom, lower-alpha) '.';
  flex: none;
  width: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding-top: 2px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0 40px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer .container {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer .spacer {
  margin-left: auto;
}

/* ---------- error pages ---------- */

.center-page {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.center-page .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 150px);
  line-height: 1;
  color: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-nav {
    margin-left: 0;
    width: 100%;
    /* let the flex item shrink so the pills scroll instead of widening the page */
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a {
    white-space: nowrap;
  }
  .hero {
    padding-top: 34px;
  }
  .status-strip .spacer {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
