/* Saturday Report Card — Chalkboard / Schoolhouse Design System
   -------------------------------------------------------------- */

/* Fonts: served from Fontshare (fast, well-hinted, license-clean).
   Fraunces for headline serif, Inter for UI, JetBrains Mono for numerals. */
@import url('https://api.fontshare.com/v2/css?f[]=fraunces@700,900&f[]=inter@400,500,600,700&f[]=jetbrains-mono@500,700&display=swap');

/* ============ Design tokens ============ */
:root {
  /* Palette — slate chalkboard + cream paper + pencil yellow */
  --slate-900: #1a2a26;      /* deepest chalkboard */
  --slate-800: #223832;      /* board */
  --slate-700: #2f4a42;      /* board hover */
  --slate-600: #3f5e55;
  --slate-500: #56766c;
  --slate-400: #7a9990;
  --slate-300: #b3c9c2;
  --slate-100: #e6eeec;

  --paper: #faf6ee;          /* cream page */
  --paper-2: #f2ebda;        /* card cream */
  --paper-3: #e8dfc8;        /* borders */
  --chalk: #f5f2e8;          /* chalk-white text on slate */

  --ink: #1f2622;            /* body ink */
  --ink-muted: #5a6b64;
  --ink-faint: #8a9993;

  --pencil: #f0b429;         /* #2 pencil yellow — primary accent */
  --pencil-dark: #c98a12;
  --marker: #b8321a;         /* red pen (only for warnings / F grade) */

  /* Grade colors — traffic-light but muted, on slate */
  --grade-a: #4d9d6b;
  --grade-b: #7fb04a;
  --grade-c: #d9a441;
  --grade-d: #d97a2d;
  --grade-f: #b8321a;

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii + shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(26,42,38,.06), 0 1px 1px rgba(26,42,38,.04);
  --shadow-md: 0 4px 12px rgba(26,42,38,.08), 0 2px 4px rgba(26,42,38,.05);
  --shadow-lg: 0 12px 32px rgba(26,42,38,.10), 0 4px 10px rgba(26,42,38,.06);

  --content-max: 1120px;
  --content-narrow: 780px;
}

/* ============ Base reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.55 var(--font-body);
  font-feature-settings: 'ss01', 'cv02', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--slate-800); text-decoration: none; }
a:hover { color: var(--pencil-dark); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ============ Container ============ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  background: var(--slate-900);
  color: var(--chalk);
  border-bottom: 3px solid var(--pencil);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--chalk);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand:hover { color: var(--pencil); }
.brand svg { flex-shrink: 0; }
.brand .wordmark { display: flex; flex-direction: column; gap: 2px; }
.brand .wordmark .top { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); font-family: var(--font-body); }
.brand .wordmark .bottom { font-family: var(--font-display); font-weight: 900; font-size: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--slate-100);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--pencil); border-bottom-color: var(--pencil); }
.site-nav a.active { color: var(--pencil); border-bottom-color: var(--pencil); }
.site-nav .divider { color: var(--slate-500); }
/* Nav mobile behavior — hamburger below 640px */
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .site-header .container { padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; padding: 4px 0; }
  .site-nav.collapsed a { display: none; }
  .site-nav.collapsed { gap: 10px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--slate-500);
    border-radius: 6px;
    color: var(--chalk);
    cursor: pointer;
  }
  .nav-toggle:hover { border-color: var(--pencil); color: var(--pencil); }
  .nav-toggle svg { width: 18px; height: 18px; }
}

/* ============ Hero ============ */
.hero {
  background: var(--slate-900);
  color: var(--chalk);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle chalk-dust texture */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(245,242,232,.10) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(245,242,232,.08) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, rgba(245,242,232,.09) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 15%, rgba(245,242,232,.07) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, rgba(245,242,232,.08) 50%, transparent 51%);
  background-size: 240px 240px, 320px 320px, 200px 200px, 280px 280px, 260px 260px;
  pointer-events: none;
  opacity: .8;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  color: var(--pencil);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 22ch;
  color: var(--chalk);
}
.hero h1 em {
  font-style: italic;
  color: var(--pencil);
  font-weight: 900;
}
.hero .lede {
  font-size: 18px;
  color: var(--slate-100);
  max-width: 58ch;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-primary,
.card--slate a.btn-primary,
.card--slate .btn-primary {
  background: var(--pencil);
  color: var(--slate-900);
  box-shadow: 0 2px 0 var(--pencil-dark);
}
.btn-primary:hover,
.card--slate a.btn-primary:hover { background: #ffc844; color: var(--slate-900); transform: translateY(-1px); }
.card--slate a.btn-secondary { color: var(--chalk); }
.card--slate a.btn-secondary:hover { color: var(--pencil); border-color: var(--pencil); }
.btn-secondary {
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--slate-500);
}
.btn-secondary:hover { border-color: var(--pencil); color: var(--pencil); }
.btn-tertiary {
  background: var(--slate-800);
  color: var(--chalk);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-tertiary:hover { background: var(--slate-700); }

/* ============ Cards ============ */
.card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--cream {
  background: var(--paper-2);
  border-color: var(--paper-3);
}
.card--slate {
  background: var(--slate-900);
  color: var(--chalk);
  border: 1px solid var(--slate-700);
}
.card--slate a { color: var(--pencil); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.card-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.card-header .eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.card-sub {
  color: var(--ink-muted);
  font-size: 14px;
  margin: -6px 0 16px;
  max-width: 62ch;
  line-height: 1.5;
}

/* ============ Split hero grid (two leaderboards side-by-side) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: -40px auto 40px;
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  padding: 0 24px;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; margin-top: -32px; }
}

/* ============ Tables ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--paper-3);
  text-align: left;
  vertical-align: middle;
}
.table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--paper-3);
  padding-bottom: 8px;
  padding-top: 4px;
}
.table td.num, .table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.table th.num { font-family: var(--font-body); }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--paper-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.team { font-weight: 600; }
.table td.team a { color: var(--slate-900); }
.table td.team a:hover { color: var(--pencil-dark); }
.table td.rank {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  width: 32px;
}
.table td.conf {
  color: var(--ink-muted);
  font-size: 13px;
}
.table td.delta.pos { color: var(--grade-a); font-weight: 600; }
.table td.delta.neg { color: var(--marker); font-weight: 600; }

/* Force horizontal scroll on mobile so board columns stay legible */
.table-scroll { width: 100%; }
@media (max-width: 640px) {
  .table--wide { min-width: 640px; }
  .table-scroll { overflow-x: auto; }
  /* Sticky headers don't play nicely inside a horizontally-scrolled container.
     On narrow viewports the sort tabs remain visible above the card, which is enough. */
  .table-scroll .table--sticky thead th { position: static; box-shadow: none; }
}

/* ============ Sticky table headers (page-scroll sticky) ============ */
.table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  /* subtle shadow when stuck */
  box-shadow: 0 1px 0 var(--paper-3), 0 6px 8px -6px rgba(26,42,38,.08);
}
.card--cream .table--sticky thead th { background: var(--paper-2); }
.card--slate .table--sticky thead th { background: var(--slate-900); }

/* ============ Board filter bar ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 0 14px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--paper-3);
}
.filter-bar__group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 6px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  line-height: 1.2;
}
.filter-chip:hover { border-color: var(--slate-500, #94a3a0); color: var(--slate-900); }
.filter-chip.active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: var(--chalk);
}
.filter-chip .count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: .7;
  font-weight: 500;
}
.filter-chip.active .count { color: var(--pencil); opacity: 1; }
.filter-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  min-width: 180px;
}
.filter-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 13px/1.2 var(--font-body);
  color: var(--ink);
  width: 100%;
  padding: 2px 0;
}
.filter-search input::placeholder { color: var(--ink-faint); }
.filter-search .search-clear {
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color .12s;
}
.filter-search .search-clear:hover { color: var(--marker); }

.data-refresh {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 8px 0 4px;
  letter-spacing: .02em;
}
.data-refresh::before {
  content: '●';
  color: #4d9d6b;
  margin-right: 6px;
  font-size: 9px;
  vertical-align: middle;
}

.methodology-toc {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 8px 0 32px;
}
.methodology-toc .toc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.methodology-toc ol {
  columns: 2;
  column-gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
}
@media (max-width: 640px) {
  .methodology-toc ol { columns: 1; }
}
.methodology-toc li { break-inside: avoid; margin-bottom: 4px; }
.methodology-toc a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .12s, color .12s;
}
.methodology-toc a:hover {
  color: var(--slate-900);
  border-bottom-color: var(--pencil);
}
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 80px; }
.filter-clear {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.filter-clear:hover { color: var(--marker); }
.filter-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  font-style: italic;
}

/* Conference table sticky head */
.conf-table__head--sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--paper-3), 0 6px 8px -6px rgba(26,42,38,.08);
}

/* Tier grid filter: hide filtered-out cards without losing grid */
.tier-card[hidden], .conf-row[hidden] { display: none !important; }
.tier-section[hidden] { display: none !important; }

/* On slate cards, invert */
.card--slate .table th, .card--slate .table td { border-color: var(--slate-700); }
.card--slate .table thead th { color: var(--slate-300); }
.card--slate .table tbody tr:hover { background: var(--slate-800); }
.card--slate .table td.team a { color: var(--chalk); }
.card--slate .table td.team a:hover { color: var(--pencil); }
.card--slate .table td.rank { color: var(--slate-400); }
.card--slate .table td.conf { color: var(--slate-300); }

/* ============ Grade chip ============ */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.grade--a { background: var(--grade-a); }
.grade--b { background: var(--grade-b); }
.grade--c { background: var(--grade-c); }
.grade--d { background: var(--grade-d); color: #fff; }
.grade--f { background: var(--grade-f); }
.grade--big {
  min-width: 92px;
  height: 92px;
  border-radius: var(--r-lg);
  font-size: 56px;
  padding: 0;
}

/* Ceiling grade — outlined variant. Same letter palette, but rendered as a
   ring rather than a solid fill so users see it as the secondary/normalized
   grade next to the primary Δ grade. */
.grade--ceiling {
  background: transparent !important;
  color: var(--slate-900);
  border: 2px solid;
  box-shadow: none;
}
.grade--ceiling-a { border-color: var(--grade-a); color: var(--grade-a); }
.grade--ceiling-b { border-color: var(--grade-b); color: var(--grade-b); }
.grade--ceiling-c { border-color: var(--grade-c); color: var(--grade-c); }
.grade--ceiling-d { border-color: var(--grade-d); color: var(--grade-d); }
.grade--ceiling-f { border-color: var(--grade-f); color: var(--grade-f); }

/* ============ Verdict pills ============ */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.verdict--up      { background: rgba(77,157,107,.12); color: #2d6b45; border-color: rgba(77,157,107,.25); }
.verdict--stable  { background: rgba(90,107,100,.10); color: var(--ink-muted); border-color: rgba(90,107,100,.20); }
.verdict--down    { background: rgba(184,50,26,.10);  color: #942612; border-color: rgba(184,50,26,.20); }

.card--slate .verdict--up { background: rgba(77,157,107,.20); color: #a5d9ba; border-color: rgba(77,157,107,.35); }
.card--slate .verdict--stable { background: rgba(179,201,194,.12); color: var(--slate-300); border-color: rgba(179,201,194,.20); }
.card--slate .verdict--down { background: rgba(184,50,26,.20); color: #f0a89a; border-color: rgba(184,50,26,.35); }

/* ============ Tabs ============ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tabs button {
  background: transparent;
  border: 0;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--slate-900); border-bottom-color: var(--pencil); }

/* ============ Search ============ */
.searchbox {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.searchbox input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  font: 500 15px/1.4 var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus {
  outline: none;
  border-color: var(--pencil);
  box-shadow: 0 0 0 3px rgba(240,180,41,.20);
}

/* ============ Sparkline SVG ============ */
.sparkline { display: inline-block; vertical-align: middle; }
.sparkline path.line { fill: none; stroke: var(--slate-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sparkline path.area { fill: rgba(240,180,41,.18); }
.sparkline .dot { fill: var(--pencil); stroke: var(--slate-900); stroke-width: 1; }
.sparkline .zero { stroke: var(--paper-3); stroke-dasharray: 2 3; stroke-width: 1; }

/* ============ Meter (projection vs realized) ============ */
.meter {
  position: relative;
  height: 14px;
  background: var(--paper-3);
  border-radius: 8px;
  overflow: hidden;
}
.meter .real {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--slate-700);
  border-radius: 8px;
}
.meter .proj-mark {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: var(--pencil);
  box-shadow: 0 0 0 1px rgba(26,42,38,.4);
}

/* ============ Report card layout ============ */
.report-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--slate-900);
  color: var(--chalk);
  border-radius: var(--r-xl);
  border-top: 6px solid var(--team-accent, var(--pencil));
  position: relative;
  overflow: hidden;
}
.report-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(245,242,232,.10) 50%, transparent 51%), radial-gradient(1px 1px at 70% 60%, rgba(245,242,232,.08) 50%, transparent 51%);
  background-size: 240px 240px, 320px 320px;
  opacity: .6; pointer-events: none;
}
.report-hero > * { position: relative; }
.report-hero .team {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.report-hero .meta {
  color: var(--slate-300);
  font-size: 14px;
  margin: 0 0 16px;
}
.report-hero .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.report-hero .stat .label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-300);
  margin: 0 0 4px;
}
.report-hero .stat .val {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700;
  color: var(--chalk);
}
.report-hero .stat .val.pos { color: #a5d9ba; }
.report-hero .stat .val.neg { color: #f0a89a; }
.report-hero .stat .val--pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  line-height: 1;
  display: block;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .report-hero { grid-template-columns: 1fr; text-align: left; padding: 22px; }
  .grade--big { min-width: 72px; height: 72px; font-size: 44px; }
}

/* ============ Contributors list (grade breakdown) ============ */
.contribs { list-style: none; padding: 0; margin: 12px 0 0; }
.contribs li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--paper-3);
}
.contribs li:first-child { border-top: 0; }
.contribs .name { font-weight: 500; color: var(--ink); }
.contribs .name small { display: block; color: var(--ink-muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.contribs .bar {
  width: 140px;
  height: 8px;
  background: var(--paper-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.contribs .bar i {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  background: var(--slate-700);
  transform-origin: left;
}
.contribs .bar.pos i { background: var(--grade-a); }
.contribs .bar.neg i { background: var(--marker); transform-origin: right; left: auto; right: 50%; }
.contribs .val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}
.contribs .val.pos { color: var(--grade-a); }
.contribs .val.neg { color: var(--marker); }

/* ============ Lock preview (locked team page teaser) ============ */
.locked-preview {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--paper-3);
}
.locked-preview .blur-layer {
  filter: blur(4px);
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
}
.locked-preview .overlay {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(250,246,238,.6), rgba(250,246,238,.92) 60%);
  padding: 24px;
  text-align: center;
}
.locked-preview .overlay .lock-icon {
  width: 44px; height: 44px;
  background: var(--slate-900); color: var(--pencil);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.locked-preview .overlay h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 4px 0 0;
  color: var(--slate-900);
}
.locked-preview .overlay p {
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 40ch;
  margin: 0;
}
.locked-preview .overlay .buttons {
  display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center;
}
.btn-primary-dark {
  background: var(--slate-900); color: var(--pencil);
  padding: 10px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
}
.btn-primary-dark:hover { background: var(--slate-800); color: #ffc844; }
.btn-ghost {
  background: transparent; color: var(--slate-900);
  padding: 10px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; border: 1px solid var(--slate-700);
}
.btn-ghost:hover { border-color: var(--pencil); color: var(--pencil-dark); }

/* ============ Section headings ============ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 40px 0 18px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 28px; line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--slate-900);
}
.section-head .eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.section-head a.more {
  font-size: 14px; font-weight: 600;
  color: var(--slate-800);
  border-bottom: 1px solid var(--pencil);
  padding-bottom: 2px;
}
.section-head a.more:hover { color: var(--pencil-dark); }

/* ============ Utility ============ */
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.muted { color: var(--ink-muted); font-size: 14px; }
.tiny  { font-size: 12px; color: var(--ink-faint); }
.mono  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.footnote { font-size: 13px; color: var(--ink-muted); margin: 10px 0 0; }

/* ============ Footer ============ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 3px solid var(--pencil);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pencil);
  margin: 0 0 12px;
}
.site-footer a { color: var(--slate-100); font-size: 14px; }
.site-footer a:hover { color: var(--pencil); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer .fine {
  border-top: 1px solid var(--slate-700);
  margin-top: 32px; padding-top: 20px;
  font-size: 12px; color: var(--slate-400);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer .brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer .disclaimer { max-width: 44ch; line-height: 1.5; color: var(--slate-300); font-size: 13px; margin: 8px 0 0; }

/* ============ Alert / info banner ============ */
.banner {
  background: rgba(240,180,41,.10);
  border: 1px solid rgba(240,180,41,.35);
  border-left: 3px solid var(--pencil);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--ink);
  font-size: 14px;
  margin: 20px 0;
}
.banner strong { color: var(--pencil-dark); }

/* ============ Prose (about / methodology) ============ */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.prose h1 { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--slate-900); }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; margin: 40px 0 12px; color: var(--slate-900); }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 28px 0 8px; color: var(--slate-900); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--font-mono); background: var(--paper-2); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.prose strong { font-weight: 700; color: var(--slate-900); }
.prose blockquote {
  border-left: 3px solid var(--pencil);
  margin: 22px 0;
  padding: 6px 0 6px 18px;
  color: var(--ink-muted);
  font-style: italic;
}
.prose .lede-p {
  font-size: 19px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 24px;
}

/* ============ Focus ring ============ */
:focus-visible {
  outline: 2px solid var(--pencil);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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