@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Barlow:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    /* Backgrounds — dark forest green */
    --bg: #0a1f12;
    --bg-2: #0e2918;
    --bg-3: #153320;
    --line: #1c3d28;
    --line-2: #245234;
    --forest-green: #1B4D2E;
    --charcoal: #2B2E34;

    /* Text — eased off pure white */
    --white: #f0f0f2;
    --off: #c8c8cc;
    --mute: #7a9a84;
    --mute-2: #4a6a54;

    /* Orange — reserved STRICTLY for: CTAs, rank numbers, links, active nav */
    --electric: #f6740e;
    --electric-dim: rgba(246,116,14,0.12);
    --electric-soft: rgba(246,116,14,0.65);

    /* Status colours */
    --red: #e84848;
    --red-dim: rgba(232,72,72,0.12);
    --gold: #d4a82c;
    --silver: #a8b0bc;
    --bronze: #c47648;

    /* Category accents (used only for category tag pills) */
    --pink: #d05080;
    --blue: #4090c4;
  }

  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--off);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  a { color: inherit; text-decoration: none; }

  /* TOP BAR */
  .topbar { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; }
  .nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; padding: 0 9px; }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar-inner { max-width: 1400px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 32px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--white); cursor: pointer; }
  .brand::before { content: ''; width: 10px; height: 10px; background: var(--electric); display: inline-block; }
  .brand:has(.brand-logo)::before { display: none; }
  .brand-logo { height: 34px; width: auto; display: block; }
  .brand .accent { color: var(--mute); }
  .site-nav { display: flex; gap: 2px; flex: 1; }
  .site-nav a, .site-nav button { background: transparent; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); padding: 8px 14px; cursor: pointer; transition: color 0.15s, background 0.15s; border-radius: 3px; }
  .site-nav a:hover, .site-nav button:hover { color: var(--white); background: var(--bg-2); }
  .site-nav a.active, .site-nav button.active { color: var(--white); background: var(--bg-2); }
  .site-nav a.active::before, .site-nav button.active::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--electric); margin-right: 8px; vertical-align: middle; }
  .topbar-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mute); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

  /* MASTHEAD */
  .masthead { position: relative; padding: 32px 32px 22px; background: var(--bg); border-bottom: 5px solid var(--electric); max-width: 1400px; margin: 0 auto; }
  .masthead::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--electric); }
  .masthead-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .live-dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 3px var(--red-dim); animation: pulse 2s infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--red-dim); } 50% { box-shadow: 0 0 0 7px rgba(255,45,45,0.06); } }
  .live-text { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
  .live-sep { width: 1px; height: 14px; background: var(--line-2); }
  .live-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
  .masthead-grid { display: grid; grid-template-columns: 1.5fr auto; gap: 24px; align-items: end; }
  .masthead-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(48px, 8vw, 96px); line-height: 0.85; letter-spacing: -0.005em; color: var(--white); text-transform: uppercase; }
  .masthead-title .stroke { -webkit-text-stroke: 2px var(--electric); color: transparent; }
  .masthead-title em { font-style: normal; color: var(--electric); }
  .masthead-deck { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: var(--mute); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-top: 8px; max-width: 720px; line-height: 1.4; }
  .masthead-meta-stack { text-align: right; padding-bottom: 8px; }
  .meta-block { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 4px; }
  .meta-block strong { color: var(--white); font-weight: 800; }
  .meta-edition { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--electric); line-height: 1; letter-spacing: 1px; margin-top: 8px; }

  /* PAGE HEADER (slim, used on inner pages instead of big masthead) */
  .pageheader { max-width: 1400px; margin: 0 auto; padding: 32px 32px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  .pageheader-left { display: flex; flex-direction: column; gap: 10px; }
  .breadcrumb { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mute); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .breadcrumb a { cursor: pointer; transition: color 0.15s; }
  .breadcrumb a:hover { color: var(--white); }
  .breadcrumb .sep { color: var(--mute-2); }
  .pageheader-title { font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1; color: var(--white); letter-spacing: 0.005em; }
  .pageheader-title em { font-style: normal; color: var(--off); font-weight: 400; }
  .pageheader-meta { display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap; }
  .ph-stat { display: flex; flex-direction: column; align-items: flex-end; min-width: 56px; }
  .ph-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 28px; line-height: 0.9; color: var(--white); letter-spacing: -0.01em; }
  .ph-stat-val.accent { color: var(--electric); }
  .ph-stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.5px; color: var(--mute); text-transform: uppercase; font-weight: 600; margin-top: 4px; }

  /* HOMEPAGE HERO */
  .hero { max-width: 1400px; margin: 0 auto; position: relative; background: var(--bg); }
  .hero-strip { display: flex; align-items: center; padding: 12px 32px; gap: 16px; background: var(--bg-2); border-radius: 6px; margin: 16px 32px 0; }
  .hero-strip-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--electric); text-transform: uppercase; padding: 4px 9px; background: var(--electric-dim); line-height: 1; border-radius: 2px; }
  .hero-strip-text { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--off); font-weight: 500; flex: 1; }
  .hero-strip-text strong { color: var(--white); font-weight: 700; }
  .hero-strip-link { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--electric); text-transform: uppercase; font-weight: 700; cursor: pointer; transition: color 0.15s; }
  .hero-strip-link:hover { color: var(--white); }
  .hero-strip-link::after { content: ' →'; }

  .hero-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; padding: 48px 32px 40px; align-items: stretch; }
  .hero-photo { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; min-height: 480px; position: relative; overflow: hidden; align-items: center; }
  .hero-photo .hero-feature { padding: 48px 0 48px 32px; position: relative; z-index: 2; }
  .hero-image { position: relative; align-self: stretch; background-size: cover; background-position: right 18%; }
  .hero-image-tag { position: absolute; bottom: 18px; right: 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); background: rgba(15,15,16,0.7); padding: 5px 12px; border-radius: 4px; backdrop-filter: blur(4px); }
  .next-race-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 18px 32px; flex-wrap: wrap; }
  .nrb-left { display: flex; flex-direction: column; gap: 2px; }
  .nrb-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); }
  .nrb-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; color: var(--white); }
  .nrb-date { font-size: 13px; color: var(--off); }
  .nrb-countdown { display: flex; gap: 28px; }
  .gallery-band { margin: 48px 0 8px; }
  .gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
  .gallery-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
  .gallery-photo { position: relative; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center 20%; min-height: 280px; cursor: default; transition: transform 0.2s ease; }
  .gallery-photo:hover { transform: translateY(-2px); }
  .gallery-photo.gallery-tall { grid-row: span 1; background-position: center 25%; }
  .hero-feature { display: flex; flex-direction: column; gap: 18px; }
  .hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; color: var(--mute); text-transform: uppercase; font-weight: 600; }
  .hero-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 6.5vw, 78px); line-height: 0.92; letter-spacing: -0.005em; color: var(--white); }
  .hero-headline .stroke { color: var(--white); }
  .hero-headline em { font-style: normal; color: var(--white); font-weight: 400; }
  .hero-dek { font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.6; color: var(--off); max-width: 620px; }
  .hero-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
  .btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; padding: 13px 22px; cursor: pointer; transition: all 0.15s; border: none; line-height: 1; display: inline-flex; align-items: center; gap: 10px; border-radius: 3px; }
  .btn-primary { background: var(--electric); color: var(--bg); font-weight: 800; }
  .btn-primary:hover { background: var(--white); }
  .btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-2); }
  .btn-ghost:hover { background: var(--bg-2); border-color: var(--mute-2); }
  .btn::after { content: '→'; font-family: 'Bebas Neue', sans-serif; font-size: 16px; }

  /* NEXT RACE PANEL */
  .next-race { background: var(--bg-2); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; border-radius: 6px; }
  .nr-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; color: var(--mute); text-transform: uppercase; font-weight: 600; }
  .nr-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 0.95; color: var(--white); letter-spacing: 0.005em; }
  .nr-date { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--off); font-weight: 500; }
  .nr-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nr-c { text-align: center; padding: 10px 0; background: var(--bg); border-radius: 3px; }
  .nr-c-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 0.9; color: var(--electric); letter-spacing: -0.02em; }
  .nr-c-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; color: var(--mute); text-transform: uppercase; font-weight: 600; margin-top: 4px; }
  .nr-foot { padding-top: 12px; border-top: 1px solid var(--line); font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; }

  /* QUICK STATS strip */
  .quickstats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 32px; max-width: 1400px; margin: 0 auto; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .qs-item { display: flex; align-items: baseline; gap: 12px; padding: 4px 16px 4px 0; border-right: 1px solid var(--line); }
  .qs-item:first-child { padding-left: 0; }
  .qs-item:last-child { border-right: none; padding-right: 0; }
  .qs-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 0.9; color: var(--white); letter-spacing: -0.01em; }
  .qs-num.accent { color: var(--electric); }
  .qs-text { display: flex; flex-direction: column; }
  .qs-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.2px; color: var(--off); text-transform: uppercase; font-weight: 600; }
  .qs-sub { font-family: 'Barlow', sans-serif; font-size: 11px; color: var(--mute); font-weight: 500; margin-top: 1px; }

  /* TWO-COL LAYOUT */
  .twocol { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; margin-bottom: 48px; align-items: start; }
  .twocol-main { display: flex; flex-direction: column; gap: 28px; }
  .twocol-side { display: flex; flex-direction: column; gap: 20px; }

  /* SIDEBAR widget */
  .widget { background: var(--bg-2); padding: 20px 22px; border-radius: 6px; }
  .widget-head { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--off); text-transform: uppercase; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .widget-head .more { color: var(--mute); cursor: pointer; transition: color 0.15s; font-size: 11px; font-weight: 600; }
  .widget-head .more:hover { color: var(--electric); }
  .widget-list { display: flex; flex-direction: column; }
  .widget-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px; transition: background 0.15s; }
  .widget-row:last-child { border-bottom: none; }
  .widget-row:hover .widget-name { color: var(--electric); }
  .widget-num { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 0.9; color: var(--mute-2); letter-spacing: -0.02em; min-width: 28px; }
  .widget-num.accent { color: var(--electric); }
  .widget-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .widget-name { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px; color: var(--white); transition: color 0.15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .widget-sub { font-family: 'Barlow', sans-serif; font-size: 12px; color: var(--mute); font-weight: 400; }
  .widget-score { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--off); flex-shrink: 0; }
  .widget-score.accent { color: var(--electric); }

  /* FEATURE CARD */
  .feature-card { background: var(--bg-2); padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: background 0.18s; border-radius: 6px; }
  .feature-card:hover { background: var(--bg-3); }
  .feature-card .tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--electric); background: var(--electric-dim); padding: 4px 10px; line-height: 1; text-transform: uppercase; border-radius: 2px; }
  .feature-card .title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1; color: var(--white); letter-spacing: 0.005em; }
  .feature-card .body { font-size: 15px; line-height: 1.6; color: var(--off); }
  .feature-card .body strong { color: var(--white); }
  .feature-card .stats-strip { display: flex; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .feature-card .stats-strip > div { display: flex; flex-direction: column; gap: 4px; }
  .feature-card .ss-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; line-height: 0.9; color: var(--white); }
  .feature-card .ss-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; color: var(--mute); text-transform: uppercase; font-weight: 600; }

  /* IMPROVERS */
  .improvers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 32px; }
  .improver-card { background: var(--bg-2); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: background 0.15s; border-radius: 6px; }
  .improver-card:hover { background: var(--bg-3); }
  .improver-rank-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .improver-rank { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 0.9; color: var(--electric); letter-spacing: -0.02em; }
  .improver-card.regress .improver-rank { color: var(--red); }
  .improver-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; padding: 4px 9px; line-height: 1.2; text-transform: uppercase; background: var(--electric-dim); color: var(--electric); border-radius: 2px; }
  .improver-card.regress .improver-tag { background: var(--red-dim); color: var(--red); }
  .improver-card.regress .improver-tag { background: var(--red); color: var(--white); }
  .improver-name { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; color: var(--white); letter-spacing: 0.005em; }
  .improver-school { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; }
  .improver-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; padding: 4px 9px; line-height: 1.2; text-transform: uppercase; font-weight: 600; background: var(--bg); display: inline-flex; align-self: flex-start; border-radius: 2px; }
  .improver-cat.m { color: var(--blue); }
  .improver-cat.f { color: var(--pink); }
  .improver-prog { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .improver-prog-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .improver-prog-col.right { text-align: right; }
  .improver-prog-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; color: var(--mute); text-transform: uppercase; font-weight: 600; }
  .improver-prog-pos { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 0.9; color: var(--white); letter-spacing: -0.01em; }
  .improver-prog-time { font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; color: var(--off); }
  .improver-arrow { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--mute-2); line-height: 0.9; padding: 0 6px; }
  .improver-card.regress .improver-arrow { color: var(--mute-2); }
  .improver-delta-strip { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  .improver-delta { flex: 1; display: flex; align-items: baseline; gap: 6px; }
  .improver-delta-num { font-family: 'Bebas Neue', sans-serif; font-size: 20px; line-height: 0.9; color: var(--electric); letter-spacing: -0.01em; }
  .improver-card.regress .improver-delta-num { color: var(--red); }
  .improver-delta-num.neutral { color: var(--mute); }
  .improver-delta-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; color: var(--mute); text-transform: uppercase; font-weight: 600; }

  /* TICKER */
  .ticker { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); padding: 20px 32px; border-bottom: 1px solid var(--line); max-width: 1400px; margin: 0 auto; }
  .ticker-item { border-right: 1px solid var(--line); padding: 0 24px; }
  .ticker-item:first-child { padding-left: 0; }
  .ticker-item:last-child { border-right: none; }
  .ticker-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; line-height: 0.85; color: var(--white); letter-spacing: -0.01em; }
  .ticker-num.accent { color: var(--electric); }
  .ticker-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-top: 6px; }

  /* CONTAINER */
  .container { max-width: 1400px; margin: 0 auto; padding: 8px 32px 64px; }

  /* SECTION HEADERS */
  .section-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; margin-top: 48px; flex-wrap: wrap; }
  .section-head:first-child { margin-top: 8px; }
  .section-tag { display: none; }
  .section-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: 0.005em; color: var(--white); flex: 1; }
  .section-title em { font-style: normal; color: var(--off); font-weight: 400; }
  .section-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--mute); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
  .section-link { background: transparent; border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--electric); font-weight: 700; transition: color 0.15s; }
  .section-link:hover { color: var(--white); }
  .section-link::after { content: ' →'; }

  /* PODIUM */
  .podium-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
  .podium-card { background: var(--bg-2); padding: 22px 24px; position: relative; transition: background 0.2s; cursor: pointer; border-radius: 6px; }
  .podium-card:hover { background: var(--bg-3); }
  .podium-1 { background: var(--bg-2); position: relative; }
  .podium-1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--electric); border-radius: 6px 6px 0 0; }
  .podium-1:hover { background: var(--bg-3); }
  .podium-rank-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
  .podium-rank { font-family: 'Bebas Neue', sans-serif; font-size: 72px; line-height: 0.82; color: var(--mute-2); letter-spacing: -0.02em; }
  .podium-1 .podium-rank { color: var(--electric); }
  .podium-2 .podium-rank { color: var(--silver); }
  .podium-3 .podium-rank { color: var(--bronze); }
  .podium-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; }
  .podium-school { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--white); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .podium-score-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
  .podium-score { font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 0.85; color: var(--white); letter-spacing: -0.01em; }
  .podium-1 .podium-score { color: var(--electric); }
  .podium-score-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; }
  .podium-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ps-item { border-top: 1px solid var(--line); padding-top: 10px; }
  .ps-val { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 0.9; color: var(--white); }
  .ps-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: 4px; }

  /* BOARD */
  .board { background: var(--bg-2); border-radius: 6px; overflow: hidden; }
  .board-row { display: grid; grid-template-columns: 56px 1fr 90px 130px 70px 70px 80px 70px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); gap: 8px; transition: background 0.15s; }
  .board-row:last-child { border-bottom: none; }
  .board-row:not(.header):hover { background: var(--bg-3); }
  .board-row.header { background: transparent; color: var(--mute); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
  .board-row.alt { background: rgba(255,255,255,0.012); }
  .br-pos { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 0.9; color: var(--mute-2); letter-spacing: -0.02em; }
  .br-pos-1 { color: var(--electric); }
  .br-pos-2 { color: var(--silver); }
  .br-pos-3 { color: var(--bronze); }
  .br-school { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; color: var(--white); }
  .br-score { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 0.9; color: var(--white); text-align: right; letter-spacing: -0.01em; }
  .br-val { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 500; text-align: right; color: var(--off); }
  .br-medals { display: flex; gap: 4px; justify-content: flex-end; }
  .mp { display: inline-flex; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; padding: 3px 7px; line-height: 1.1; letter-spacing: 0.5px; border-radius: 2px; }
  .mp-g { background: var(--gold); color: var(--bg); }
  .mp-s { background: var(--silver); color: var(--bg); }
  .mp-b { background: var(--bronze); color: var(--white); }
  .mp-empty { color: var(--mute-2); font-family: 'Barlow', sans-serif; }

  /* SCORING */
  .scoring { margin-top: 20px; padding: 16px 22px; background: var(--bg-2); display: flex; gap: 20px; align-items: flex-start; border-radius: 6px; }
  .scoring-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); flex-shrink: 0; padding-top: 2px; }
  .scoring-body { font-size: 13px; line-height: 1.65; color: var(--off); }
  .scoring-body strong { font-family: 'Barlow', sans-serif; font-weight: 700; color: var(--white); }

  /* LEAGUE CARDS */
  .league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 32px; }
  .league-card { background: var(--bg-2); padding: 24px 26px; transition: background 0.18s; position: relative; display: block; cursor: pointer; border-radius: 6px; }
  .league-card:hover { background: var(--bg-3); }
  .league-card.upcoming { opacity: 0.6; cursor: default; }
  .league-card.upcoming:hover { background: var(--bg-2); }
  .league-status { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--electric); font-weight: 700; margin-bottom: 12px; }
  .league-card.upcoming .league-status { color: var(--mute); }
  .league-card .number { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 0.85; color: var(--white); letter-spacing: -0.02em; margin-bottom: 6px; }
  .league-card .name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1; color: var(--white); letter-spacing: 0.005em; margin-bottom: 4px; }
  .league-card .date { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; margin-bottom: 18px; }
  .league-card .stats { display: flex; gap: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
  .league-card .stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 0.9; color: var(--white); }
  .league-card .stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: 4px; }
  .league-card .cta { position: absolute; top: 24px; right: 26px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--electric); letter-spacing: 1px; font-weight: 700; }

  /* CHAMPIONSHIP card variant */
  .league-card.championship { background: var(--bg-2); }
  .league-card.championship .league-status { color: var(--gold); }
  .league-card.championship .number { color: var(--gold); }

  /* NEWS CARDS */
  .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 32px; }
  .news-card { background: var(--bg-2); padding: 22px 24px; transition: background 0.18s; display: flex; flex-direction: column; gap: 12px; border-radius: 6px; cursor: pointer; }
  .news-card:hover { background: var(--bg-3); }
  .news-meta { display: flex; align-items: center; gap: 10px; }
  .news-type { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 8px; line-height: 1.2; border-radius: 2px; }
  .news-type-results { background: var(--electric-dim); color: var(--electric); }
  .news-type-announcement { background: rgba(64,144,196,0.18); color: var(--blue); }
  .news-type-registration { background: rgba(212,168,44,0.18); color: var(--gold); }
  .news-type-event { background: rgba(208,80,128,0.18); color: var(--pink); }
  .news-date { font-family: 'Barlow', sans-serif; font-size: 12px; color: var(--mute); font-weight: 500; }
  .news-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1.05; letter-spacing: 0.005em; color: var(--white); }
  .news-body { font-family: 'Barlow', sans-serif; font-size: 14px; line-height: 1.6; color: var(--off); flex: 1; }
  .news-cta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--electric); font-weight: 700; margin-top: 4px; }

  /* INFO / ABOUT BLOCKS */
  .info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-bottom: 32px; }
  .info-prose { background: var(--bg-2); padding: 32px 36px; border-radius: 6px; }
  .info-prose h3 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1.1; letter-spacing: 0.005em; margin-bottom: 14px; color: var(--white); font-weight: 400; }
  .info-prose h3:not(:first-child) { margin-top: 28px; }
  .info-prose p { font-size: 15px; line-height: 1.7; color: var(--off); margin-bottom: 14px; }
  .info-prose strong { color: var(--white); font-weight: 600; }
  .info-prose ul { list-style: none; padding: 0; margin: 0 0 16px; }
  .info-prose li { font-family: 'Barlow', sans-serif; font-size: 14px; line-height: 1.6; color: var(--off); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
  .info-prose li::before { content: ''; width: 6px; height: 6px; background: var(--electric); margin-top: 8px; flex-shrink: 0; border-radius: 50%; }

  .info-side { display: flex; flex-direction: column; gap: 12px; }
  .info-card { background: var(--bg-2); padding: 18px 22px; border-radius: 6px; }
  .info-card-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 6px; }
  .info-card-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1.1; color: var(--white); letter-spacing: 0.005em; }
  .info-card-value a { color: var(--electric); }
  .info-card-value a:hover { text-decoration: underline; }

  /* CATEGORY TABLE */
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .cat-card { background: var(--bg-2); padding: 20px 22px; border-radius: 6px; }
  .cat-age { font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 0.85; color: var(--white); letter-spacing: -0.02em; margin-bottom: 14px; }
  .cat-distances { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .cat-dist { flex: 1; }
  .cat-dist-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
  .cat-dist-label.m { color: var(--blue); }
  .cat-dist-label.f { color: var(--pink); }
  .cat-dist-value { font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 600; color: var(--white); }

  /* LINKS GRID (related orgs) */
  .links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .link-card { background: var(--bg-2); padding: 22px 24px; display: block; transition: background 0.18s; cursor: pointer; border-radius: 6px; }
  .link-card:hover { background: var(--bg-3); }
  .link-card-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1.05; letter-spacing: 0.005em; color: var(--white); margin-bottom: 8px; }
  .link-card-desc { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); margin-bottom: 14px; font-weight: 500; line-height: 1.5; }
  .link-card-url { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--electric); font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .link-card-url::after { content: '↗'; font-size: 14px; }

  /* GOLD CARDS */
  .gold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .gold-card { background: var(--bg-2); padding: 20px 22px; transition: background 0.2s; border-radius: 6px; cursor: pointer; }
  .gold-card:hover { background: var(--bg-3); }
  .gc-count { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
  .gc-school { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1.05; letter-spacing: -0.005em; color: var(--white); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .gc-cat { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); line-height: 1.5; font-weight: 500; }

  /* DETAIL TABLE */
  .detail-table { width: 100%; border-collapse: collapse; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
  .detail-table thead th { padding: 14px 14px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); background: transparent; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line-2); }
  .detail-table thead th.r { text-align: right; }
  .detail-table thead th.c { text-align: center; }
  .detail-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.15s; }
  .detail-table tbody tr:hover { background: var(--bg-3); }
  .detail-table tbody tr.alt { background: rgba(255,255,255,0.01); }
  .detail-table tbody tr.clickable { cursor: pointer; }
  .detail-table td { padding: 10px 14px; font-size: 14px; color: var(--off); }
  .dt-pos { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 0.9; text-align: center; color: var(--mute-2); letter-spacing: -0.02em; }
  .dt-pos-1 { color: var(--electric); }
  .dt-pos-2 { color: var(--silver); }
  .dt-pos-3 { color: var(--bronze); }
  .dt-school { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px; color: var(--white); }
  .dt-school a:hover { color: var(--electric); }
  .dt-num { font-family: 'Barlow', sans-serif; font-weight: 500; text-align: right; color: var(--off); }
  .dt-medal { text-align: center; }
  .mc { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; border-radius: 2px; }
  .mc-g { background: var(--gold); color: var(--bg); }
  .mc-s { background: var(--silver); color: var(--bg); }
  .mc-b { background: var(--bronze); color: var(--white); }
  .mc-empty { color: var(--mute-2); font-family: 'Barlow', sans-serif; }

  /* INDIVIDUAL RESULTS */
  .league-tabs { display: flex; gap: 6px; margin: 24px 0 8px; border-bottom: 1px solid var(--line); }
  .league-tab { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--mute); background: transparent; border: none; border-bottom: 2px solid transparent; padding: 10px 18px; margin-bottom: -1px; cursor: pointer; transition: all 0.12s ease; }
  .league-tab:hover { color: var(--off); }
  .league-tab.active { color: var(--white); border-bottom-color: var(--electric); }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }
  .ag-filter { background: var(--bg-2); padding: 18px 22px; margin-bottom: 20px; border-radius: 6px; display: flex; flex-direction: column; gap: 14px; }
  .ag-filter-row { display: flex; align-items: center; gap: 14px; }
  .ag-filter-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); flex: 0 0 44px; }
  .chip-group { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
  .chip { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; color: var(--off); background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all 0.12s ease; line-height: 1; }
  .chip:hover { border-color: var(--line-2); color: var(--white); background: var(--bg-3); }
  .chip.active { background: var(--electric); border-color: var(--electric); color: #0a1f12; font-weight: 700; }
  .ag-search-input { flex: 1; font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--white); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; outline: none; transition: border-color 0.12s ease; }
  .ag-search-input::placeholder { color: var(--mute-2); }
  .ag-search-input:focus { border-color: var(--electric); }
  .rf-filter { background: var(--bg-2); padding: 18px 22px; margin-bottom: 20px; border-radius: 6px; display: flex; flex-direction: column; gap: 12px; }
  .rf-row { display: flex; align-items: center; gap: 14px; }
  .rf-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); flex: 0 0 52px; }
  .rf-select { flex: 1; font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--white); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; outline: none; cursor: pointer; transition: border-color 0.12s ease; max-width: 420px; }
  .rf-select:focus { border-color: var(--electric); }
  .rf-search { flex: 1; font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--white); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; outline: none; transition: border-color 0.12s ease; max-width: 420px; }
  .rf-search::placeholder { color: var(--mute-2); }
  .rf-search:focus { border-color: var(--electric); }
  .results-controls { background: var(--bg-2); padding: 18px 22px; margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: center; border-radius: 6px; }
  .control-group { display: flex; flex-direction: column; gap: 8px; }
  .control-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; }
  .control-input { background: var(--bg); border: 1px solid var(--line-2); color: var(--white); padding: 10px 14px; font-family: 'Barlow', sans-serif; font-size: 14px; outline: none; transition: border-color 0.15s; border-radius: 3px; }
  .control-input:focus { border-color: var(--electric); }
  select.control-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a90' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 32px; font-weight: 500; }

  .results-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 14px 20px; background: var(--bg-2); flex-wrap: wrap; border-radius: 6px; margin-top: 24px; }
  .results-meta-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; color: var(--white); letter-spacing: 0.005em; }
  .results-meta-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); font-weight: 600; background: var(--bg); padding: 5px 10px; line-height: 1.2; border-radius: 2px; }
  .results-meta-tag.m { color: var(--blue); }
  .results-meta-tag.f { color: var(--pink); }
  .results-meta-tag.dist { color: var(--electric); }
  .results-meta-count { margin-left: auto; font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; }
  .results-meta-count strong { font-family: 'Bebas Neue', sans-serif; color: var(--white); font-size: 20px; font-weight: 400; margin-right: 6px; }

  .ind-table { width: 100%; border-collapse: collapse; background: var(--bg-2); border: 1px solid var(--line); }
  .ind-table thead th { padding: 14px 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); background: transparent; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line-2); }
  .ind-table thead th.r { text-align: right; }
  .ind-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.15s; cursor: pointer; }
  .ind-table tbody tr:last-child { border-bottom: none; }
  .ind-table tbody tr:hover { background: var(--bg-3); }
  .ind-table tbody tr.alt { background: rgba(255,255,255,0.01); }
  .ind-table td { padding: 11px 16px; font-size: 14px; color: var(--off); }
  .ind-pos { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 0.9; color: var(--mute-2); letter-spacing: -0.02em; width: 60px; }
  .ind-pos-1 { color: var(--electric); }
  .ind-pos-2 { color: var(--silver); }
  .ind-pos-3 { color: var(--bronze); }
  .ind-name { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px; color: var(--white); }
  .ind-name a:hover { color: var(--electric); }
  .ind-school { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; }
  .ind-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); font-weight: 600; padding: 4px 9px; background: var(--bg); display: inline-block; line-height: 1.2; border-radius: 2px; }
  .ind-cat.m { color: var(--blue); }
  .ind-cat.f { color: var(--pink); }
  .ind-time { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 14px; color: var(--white); text-align: right; }
  .ind-time.dnf { color: var(--red); font-style: italic; }

  /* ATHLETE PROFILE */
  .athlete-hero { background: var(--bg-2); padding: 36px 36px 32px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; border-radius: 6px; }
  .athlete-hero-info .athlete-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 6vw, 64px); line-height: 0.95; color: var(--white); letter-spacing: -0.005em; margin-bottom: 14px; }
  .athlete-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
  .athlete-hero-meta-item { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--mute); font-weight: 500; }
  .athlete-hero-meta-item strong { color: var(--white); font-weight: 600; }
  .athlete-hero-meta-item.school strong { color: var(--white); }
  .athlete-hero-meta-item.school strong a { color: var(--electric); border-bottom: 1px solid var(--electric); }
  .athlete-hero-meta-item.school strong a:hover { color: var(--white); border-color: var(--white); }

  .athlete-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .as-card { background: var(--bg-2); padding: 22px 24px; border-radius: 6px; }
  .as-num { font-family: 'Bebas Neue', sans-serif; font-size: 44px; line-height: 0.9; color: var(--white); letter-spacing: -0.01em; }
  .as-num.accent { color: var(--electric); }
  .as-num.gold { color: var(--gold); }
  .as-num.silver { color: var(--silver); }
  .as-num.bronze { color: var(--bronze); }
  .as-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: 8px; }

  .back-link { background: none; border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; transition: color 0.15s; }
  .back-link:hover { color: var(--white); }
  .back-link::before { content: '←'; font-family: 'Bebas Neue', sans-serif; font-size: 16px; }

  /* EMPTY STATE */
  .empty { background: var(--bg-2); border: 1px solid var(--line); padding: 60px 24px; text-align: center; }
  .empty-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--mute); margin-bottom: 6px; letter-spacing: 0.01em; }
  .empty-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: var(--mute-2); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

  /* FOOTER */
  .footer { max-width: 1400px; margin: 64px auto 0; padding: 40px 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-col { display: flex; flex-direction: column; gap: 10px; }
  .footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--off); font-weight: 700; margin-bottom: 8px; }
  .footer-col a { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); cursor: pointer; transition: color 0.15s; font-weight: 500; }
  .footer-col a:hover { color: var(--white); }
  .footer-text { font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--mute); max-width: 600px; line-height: 1.6; margin-top: 12px; font-weight: 400; }
  .footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--white); letter-spacing: 0.005em; margin-bottom: 4px; }
  .footer-brand .accent { color: var(--mute); }
  .footer-mark { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--mute); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

  /* PAGE VIEWS */
  .page-view { display: none; }
  .page-view.active { display: block; animation: fadeIn 0.25s; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .topbar-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
    .nav-toggle { display: flex; margin-left: auto; }
    .site-nav { display: none; flex-direction: column; gap: 0; width: 100%; flex-basis: 100%; order: 3; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
    .site-nav.open { display: flex; }
    .site-nav a, .site-nav button { padding: 12px 8px; font-size: 13px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
    .topbar-meta { display: none; }
    .masthead { padding: 22px 20px 18px; }
    .ticker { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 18px 20px; }
    .ticker-item { border-right: none; padding: 0 12px 0 0; }
    .ticker-num { font-size: 36px; }
    .container { padding: 20px 16px 36px; }
    .podium-row { grid-template-columns: 1fr; }
    .podium-1 { order: -1; }
    .podium-rank { font-size: 60px; }
    .podium-1 .podium-rank { font-size: 80px; }
    .board-row { grid-template-columns: 32px 1fr 52px 70px; padding: 9px 12px; gap: 6px; }
    .hide-mobile { display: none !important; }
    .br-school { font-size: 14px; }
    .br-score { font-size: 20px; }
    .br-pos { font-size: 22px; }
    .results-controls { grid-template-columns: 1fr; gap: 10px; }
    .rf-filter, .ag-filter { padding: 14px 16px; gap: 12px; }
    .rf-row, .ag-filter-row { flex-direction: column; align-items: stretch; gap: 7px; }
    .rf-label, .ag-filter-label { flex: none; }
    .rf-select, .rf-search, .ag-search-input { max-width: none; width: 100%; min-width: 0; box-sizing: border-box; }
    .ind-table thead th, .ind-table td { padding: 7px 9px; font-size: 12px; }
    .ind-name { font-size: 14px; }
    .ind-school { font-size: 11px; }
    .ind-pos { font-size: 20px; }
    .results-meta { gap: 8px; }
    .footer { padding: 18px 16px 28px; grid-template-columns: 1fr; gap: 20px; }
    .footer-text { padding: 0; }
    .detail-table { font-size: 11px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .detail-table td, .detail-table th { padding: 6px 6px; }
    .athlete-hero { grid-template-columns: 1fr; padding: 22px 20px 20px; }
    .athlete-stats { grid-template-columns: repeat(2, 1fr); }
    .as-num { font-size: 32px; }
    .league-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .info-prose { padding: 22px 20px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .links-grid { grid-template-columns: 1fr; }
    .pageheader { padding: 14px 16px 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .pageheader-title { font-size: 28px; }
    .pageheader-meta { gap: 12px; }
    .ph-stat-val { font-size: 22px; }
    .hero-main { grid-template-columns: 1fr; padding: 22px 16px 22px; gap: 18px; }
    .hero-photo { grid-template-columns: 1fr; min-height: 0; }
    .hero-photo .hero-feature { padding: 20px 16px; order: 2; }
    .hero-image { min-height: 280px; order: 1; background-position: center 15%; }
    .hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
    .hero-photo .hero-image { align-self: stretch; }
    .next-race-bar { padding: 16px; gap: 14px; }
    .nrb-countdown { gap: 18px; width: 100%; justify-content: space-between; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gallery-photo { min-height: 200px; }
    .gallery-photo.gallery-tall { grid-column: span 2; min-height: 240px; }
    .hero-strip { padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
    .hero-strip-text { flex: 1 1 100%; }
    .hero-headline { font-size: 44px; }
    .quickstats { grid-template-columns: repeat(2, 1fr); padding: 14px 16px; gap: 10px 0; }
    .qs-item { padding: 4px 12px 4px 0; }
    .qs-item:nth-child(2) { border-right: none; }
    .qs-num { font-size: 26px; }
    .twocol { grid-template-columns: 1fr; gap: 20px; }
    .nr-title { font-size: 28px; }
    .nr-c-num { font-size: 24px; }
    .feature-card .title { font-size: 26px; }
    .improvers-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 480px) {
    .brand { font-size: 16px; }
    .brand span:first-child + span + span,
    .brand { letter-spacing: 0; }
    .site-nav a, .site-nav button { padding: 5px 8px; font-size: 10px; letter-spacing: 0.5px; }
    .hero-headline { font-size: 38px; }
    .pageheader-title { font-size: 24px; }
    .pageheader-meta { flex-wrap: wrap; gap: 10px 16px; }
    .quickstats { grid-template-columns: repeat(2, 1fr); }
    .ticker { grid-template-columns: repeat(2, 1fr); }
    .athlete-stats { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    /* Tighten tables on small phones */
    .ind-table thead th, .ind-table td { padding: 6px 6px; font-size: 11px; }
    .ind-name { font-size: 13px; }
    .ind-school { font-size: 10px; }
    .detail-table { font-size: 10px; }
    .detail-table td, .detail-table th { padding: 5px 4px; }
    .board-row { grid-template-columns: 28px 1fr 46px 64px; padding: 8px 10px; gap: 5px; font-size: 12px; }
    .br-school { font-size: 13px; }
    .br-score { font-size: 18px; }
    .br-pos { font-size: 20px; }
    /* Age group podium stacks one per row on small phones */
    .ps-val { font-size: 16px; }
    .ps-label { font-size: 9px; }
    /* Age group chip filter on small phones */
    .ag-filter-row { align-items: flex-start; gap: 10px; }
    .ag-filter-label { flex-basis: 36px; padding-top: 7px; }
    .chip { font-size: 12px; padding: 6px 13px; }
    /* Make horizontal tables scroll within their own container as a fallback */
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  }