/* ==========================================================================
   HBCU Hub — design system ("the yard in Kelly green")
   Mobile-first (390px base). Feed column caps at 480px on desktop.
   Palette: Kelly green + black, smoke grey accents. Warm golds fully removed.
   STAGE ONLY. Art direction owned by the art director per CONTRACT.md.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* contract props — REQUIRED */
  --hub-bg:        #050705;          /* black ground */
  --hub-surface:   #0b0e0b;          /* card / sheet surface */
  --hub-ink:       #f3f6f2;          /* crisp white */
  --hub-muted:     #98a198;          /* smoke grey — secondary text */
  --hub-accent:    #4cbb17;          /* Kelly green — the pop */
  --hub-line:      rgba(230, 238, 230, .14);
  --hub-radius:   14px;
  --hub-tabbar-h: 76px;
  --hub-safe-b:    env(safe-area-inset-bottom, 0px);

  /* extended tokens (same palette) */
  --hub-accent-deep:  #2e7d0e;       /* pressed / darker green */
  --hub-accent-bright:#7ee83c;       /* small-type green on black */
  --hub-accent-ink:   #03130a;       /* text on green */
  --hub-card-bg:      #090c09;       /* feed card surface */
  --hub-sheet-bg:     #0d110d;       /* bottom sheet surface */
  --hub-scrim:        rgba(2, 5, 2, .86);
  --hub-focus:        #a9ec6f;       /* focus ring */
  --hub-danger:       #e2604f;
  --hub-live:         #4cbb17;       /* live dot pulses green */
  --hub-tile:         #eef3ec;       /* light tile behind school logos */
  --hub-font-ui:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hub-font-head:    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --hub-font-kicker:  "Arial Narrow", "Helvetica Neue Condensed", system-ui, sans-serif;
  --hub-ease:         cubic-bezier(.22, 1, .36, 1);
  --hub-topbar-h:     56px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--hub-bg);
  color: var(--hub-ink);
  font-family: var(--hub-font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

::selection { background: var(--hub-accent); color: var(--hub-accent-ink); }

img { display: block; max-inline-size: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  font: inherit;
  color: inherit;
}

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. App shell ---------- */
.hub {
  min-block-size: 100dvh;
  background:
    radial-gradient(120% 42% at 50% -6%, rgba(76, 187, 23, .08), transparent 60%),
    var(--hub-bg);
  color: var(--hub-ink);
}

/* ---------- 4. Top bar ---------- */
.hub-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  block-size: calc(var(--hub-topbar-h) + env(safe-area-inset-top, 0px));
  padding-block-start: env(safe-area-inset-top, 0px);
  padding-inline: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 7, 5, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--hub-line);
}

.hub-topbar .hub-wordmark {
  font-family: var(--hub-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hub-topbar .hub-wordmark em {
  font-style: normal;
  color: var(--hub-accent);
}

.hub-school-chip {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 40px;
  max-inline-size: 48vw;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--hub-accent);
  border-radius: 999px;
  color: var(--hub-ink);
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  background: rgba(76, 187, 23, .1);
}
.hub-school-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hamburger — the "pick your yard" entry. Top-left, thumb-reachable, always visible. */
.hub-menu {
  flex: none;
  inline-size: 48px;
  block-size: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(76, 187, 23, .45);
  border-radius: 12px;
  background: rgba(76, 187, 23, .1);
}
.hub-menu span {
  display: block;
  inline-size: 22px;
  block-size: 2.5px;
  border-radius: 2px;
  background: var(--hub-accent);
}
.hub-menu:active { background: rgba(76, 187, 23, .28); }

/* hidden attribute must win over display rules that would otherwise show the element */
.hub-sheet[hidden],
.hub-school-chip[hidden],
.hub-install[hidden] { display: none !important; }

/* ---------- 5. Feed (vertical, snap) ---------- */
.hub-feed {
  block-size: 100dvh;
  block-size: calc(100dvh - var(--hub-topbar-h) - var(--hub-tabbar-h) - var(--hub-safe-b));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.hub-feed::-webkit-scrollbar { display: none; }

.hub-card,
.hub-snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hub-card {
  position: relative;
  block-size: 100%;
  min-block-size: 100dvh;
  background: var(--hub-card-bg);
  border-block-end: 1px solid var(--hub-line);
  overflow: hidden;
}

/* ---------- 6. Video facade (embeds only) ---------- */
.hub-facade {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  text-align: start;
}

.hub-thumb {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transform: translateZ(0);           /* own layer: 60fps scroll */
  will-change: transform;
}

/* dark veil so the play button reads on any thumbnail */
.hub-veil {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 2, .3);
  transition: opacity .25s var(--hub-ease);
}
.hub-facade:active .hub-veil { opacity: .55; }

/* play affordance — Kelly green disc, thumb-reachable */
.hub-playbtn {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 84px;
  block-size: 84px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(76, 187, 23, .4);
  transition: transform .22s var(--hub-ease), box-shadow .22s var(--hub-ease);
}
.hub-playbtn::after {
  content: "";
  border-inline-start: 22px solid currentColor;
  border-block: 14px solid transparent;
  margin-inline-start: 6px;           /* optical center of the triangle */
}
.hub-facade:hover .hub-playbtn,
.hub-facade:focus-visible .hub-playbtn {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(76, 187, 23, .55);
}
.hub-facade:active .hub-playbtn { transform: scale(.96); }

.hub-player {
  position: absolute;
  inset: 0;
  background: #000;
}
.hub-player iframe {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* ---------- 7. Meta overlay (bottom scrim) ---------- */
.hub-meta {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 5;
  padding: 120px 18px 24px;           /* deep scrim so type reads on any thumb */
  background: linear-gradient(
    to top,
    var(--hub-scrim) 0%,
    rgba(2, 5, 2, .55) 45%,
    transparent 100%
  );
  pointer-events: none;
}
.hub-meta > * { pointer-events: auto; }

.hub-kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hub-accent-bright);
  margin-block-end: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.hub-kicker::before {
  content: "";
  display: inline-block;
  inline-size: 24px;
  block-size: 3px;
  border-radius: 2px;
  background: var(--hub-accent);
  margin-inline-end: 10px;
}

.hub-title {
  font-family: var(--hub-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 6.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 12px;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}

.hub-school {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hub-ink);
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  padding: 6px 14px 6px 7px;
  background: rgba(5, 7, 5, .6);
  max-inline-size: 100%;
}
.hub-school span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 14px;
}

/* ---------- 7b. School logo tiles ---------- */
.hub-school-logo {
  flex: none;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 12px;
  background: var(--hub-tile);
  padding: 5px;
  object-fit: contain;
}
.hub-school-logo--sm {
  inline-size: 24px;
  block-size: 24px;
  border-radius: 7px;
  padding: 3px;
}
.hub-school-logo--lg {
  inline-size: 64px;
  block-size: 64px;
  border-radius: 16px;
  padding: 8px;
}
.hub-school-logo--chip {
  inline-size: 26px;
  block-size: 26px;
  border-radius: 8px;
  padding: 3px;
}

/* ---------- 8. Section tabs (top) ---------- */
.hub-tabbar {
  position: sticky;
  top: calc(var(--hub-topbar-h) + env(safe-area-inset-top, 0px));
  z-index: 39;
  block-size: var(--hub-tabbar-h);
  display: flex;
  background: rgba(5, 7, 5, .97);
  border-block-end: 1px solid var(--hub-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hub-tab {
  flex: 1 1 0;
  min-inline-size: 0;
  min-block-size: 56px;               /* ≥48px touch target */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--hub-muted);
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-block-end: 3px solid transparent;
  transition: color .2s var(--hub-ease), border-color .2s var(--hub-ease);
}
.hub-tab .hub-tab-dot {
  inline-size: 22px;
  block-size: 22px;
  border: 2px solid currentColor;
  border-radius: 6px;
  opacity: .8;
}
.hub-tab[aria-selected="true"] {
  color: var(--hub-accent-bright);
  border-block-end-color: var(--hub-accent);
}
.hub-tab:active { color: var(--hub-ink); }

/* ---------- 9. Picker hero (first card) ---------- */
.hub-picker-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  block-size: auto;
  padding: 44px 22px;
  background:
    radial-gradient(95% 55% at 50% 100%, rgba(76, 187, 23, .18), transparent 65%),
    var(--hub-card-bg);
  border-block-end: 1px solid var(--hub-line);
  cursor: pointer;
  text-align: start;
}
.hub-picker-hero h2 {
  font-family: var(--hub-font-head);
  font-weight: 700;
  font-size: clamp(2rem, 10vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hub-picker-hero .hub-school-logo--lg { margin-block-end: 16px; }
.hub-picker-hero p {
  margin: 0 0 24px;
  color: var(--hub-muted);
  font-size: 1rem;
  max-inline-size: 30ch;
}
.hub-picker-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 54px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(76, 187, 23, .35);
  transition: transform .2s var(--hub-ease), background .2s var(--hub-ease);
}
.hub-picker-cta::after {
  content: "→";
  font-size: 1.1em;
}
.hub-picker-cta:active {
  transform: scale(.97);
  background: var(--hub-accent-deep);
  color: #fff;
}

/* ---------- 10. Bottom sheet ---------- */
.hub-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 5, 2, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--hub-ease);
}
.hub-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.hub-sheet {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 61;
  max-block-size: 86dvh;
  display: flex;
  flex-direction: column;
  background: var(--hub-sheet-bg);
  border: 1px solid var(--hub-line);
  border-block-end: 0;
  border-start-start-radius: 22px;
  border-start-end-radius: 22px;
  padding-block-end: var(--hub-safe-b);
  transform: translateY(102%);
  transition: transform .34s var(--hub-ease);
  will-change: transform;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .55);
}
.hub-sheet.is-open { transform: translateY(0); }

.hub-sheet-handle {
  inline-size: 44px;
  block-size: 5px;
  border-radius: 999px;
  background: var(--hub-muted);
  opacity: .6;
  margin: 12px auto 4px;
  flex: none;
}

.hub-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 6px;
  flex: none;
}
.hub-sheet-head .hub-title {
  font-size: 1.4rem;
  margin: 0;
  text-shadow: none;
}
.hub-sheet-close {
  flex: none;
  inline-size: 48px;
  block-size: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hub-line);
  border-radius: 50%;
  color: var(--hub-muted);
  font-size: 1.7rem;
  line-height: 1;
}
.hub-sheet-close:active {
  color: var(--hub-accent-bright);
  border-color: var(--hub-accent);
}

.hub-search {
  margin: 12px 16px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hub-bg);
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  padding-inline: 14px;
}
.hub-search input {
  flex: 1;
  min-inline-size: 0;
  block-size: 50px;
  background: transparent;
  border: 0;
  color: var(--hub-ink);
}
.hub-search input::placeholder { color: var(--hub-muted); }
.hub-search input:focus { outline: none; }
.hub-search:focus-within {
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 1px var(--hub-accent);
}

.hub-school-list {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 8px 8px 12px;
  margin: 0;
  list-style: none;
}

.hub-school-item {
  display: flex;
  align-items: center;
  gap: 14px;
  inline-size: 100%;
  min-block-size: 62px;
  padding: 10px 12px;
  border-radius: var(--hub-radius);
  border-inline-start: 3px solid transparent;
  text-align: start;
  transition: background .18s var(--hub-ease), border-color .18s var(--hub-ease);
}
.hub-school-item:hover,
.hub-school-item:focus-visible { background: rgba(76, 187, 23, .07); }

.hub-school-item .hub-school-mono {
  flex: none;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(76, 187, 23, .12);
  border: 1px solid rgba(76, 187, 23, .45);
  color: var(--hub-accent-bright);
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
}
.hub-school-item .hub-school-name {
  flex: 1;
  min-inline-size: 0;
  font-weight: 600;
  font-size: .98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-school-item .hub-school-conf {
  flex: none;
  font-family: var(--hub-font-kicker);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--hub-muted);
  text-transform: uppercase;
}
.hub-school-item[aria-selected="true"] {
  border-inline-start-color: var(--hub-accent);
  background: rgba(76, 187, 23, .1);
}
.hub-school-item[aria-selected="true"] .hub-school-name { color: var(--hub-accent-bright); }
.hub-school-item[aria-selected="true"] .hub-school-logo {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}
.hub-school-item[aria-selected="true"] .hub-school-mono {
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
  border-color: var(--hub-accent);
}

/* topic chips */
.hub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 20px;
}
.hub-topic {
  min-block-size: 48px;
  padding: 12px 20px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hub-muted);
  transition: color .18s var(--hub-ease), border-color .18s var(--hub-ease),
              background .18s var(--hub-ease);
}
.hub-topic[aria-pressed="true"] {
  background: var(--hub-accent);
  border-color: var(--hub-accent);
  color: var(--hub-accent-ink);
}

/* ---------- 11. Scoreboard ---------- */
.hub-scores {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--hub-bg);
}

.hub-game {
  padding: 18px 20px;
  border-block-end: 1px solid var(--hub-line);
}

.hub-game-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 12px;
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hub-muted);
}
.hub-game-meta .hub-live-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--hub-live);
  flex: none;
  animation: hub-pulse 1.6s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.hub-team {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--hub-muted);
}
.hub-team .hub-team-name {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-team .hub-team-name .hub-school-logo--sm {
  margin-inline-end: 10px;
}
.hub-team .hub-team-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-score-num {
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.hub-team--winner {
  color: var(--hub-ink);
  font-weight: 700;
}
.hub-team--winner .hub-score-num { color: var(--hub-accent-bright); }
.hub-team--winner .hub-team-name::after {
  content: "W";
  display: inline-grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
  font-family: var(--hub-font-kicker);
  font-size: .62rem;
  font-weight: 700;
  margin-inline-start: 10px;
  vertical-align: 2px;
  flex: none;
}

/* ---------- 12. News & gossip — printed broadsides, not chat bubbles ---------- */
.hub-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 22px calc(28px + var(--hub-safe-b));
  background:
    radial-gradient(100% 40% at 50% 0%, rgba(76, 187, 23, .07), transparent 60%),
    var(--hub-card-bg);
}

.hub-news-card {
  border-block: 3px double var(--hub-accent);
  padding: 26px 4px;
  max-inline-size: 40ch;
  margin-inline: auto;
  inline-size: 100%;
}
.hub-news-card .hub-kicker { margin-block-end: 14px; }

.hub-headline {
  font-family: var(--hub-font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 7.4vw, 2.3rem);
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hub-body, .hub-feedtext {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--hub-ink);
  margin: 0 0 18px;
}

.hub-dateline {
  display: block;
  border-block-start: 1px solid var(--hub-line);
  padding-block-start: 12px;
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

/* gossip gets the same broadside, with a smoke-grey kicker rule */
.hub-card--gossip .hub-news-card { border-block-color: var(--hub-muted); }

/* ---------- 13. States ---------- */
.hub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  block-size: 100%;
  padding: 40px 28px;
  text-align: center;
}
.hub-empty .hub-title {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: none;
}
.hub-empty p {
  margin: 0;
  color: var(--hub-muted);
  font-size: .98rem;
  max-inline-size: 32ch;
}
.hub-empty .hub-yard-mark {
  inline-size: 58px;
  block-size: 58px;
  border: 2px solid var(--hub-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hub-accent-bright);
  font-family: var(--hub-font-head);
  font-weight: 700;
  font-size: 1.3rem;
}

/* skeleton shimmer */
.hub-skel {
  position: relative;
  overflow: hidden;
  background: rgba(230, 238, 230, .06);
  border-radius: var(--hub-radius);
  min-block-size: 120px;
}
.hub-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(230, 238, 230, .09) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: hub-shimmer 1.4s ease-in-out infinite;
}
@keyframes hub-shimmer {
  to { transform: translateX(100%); }
}

/* ---------- 14. PWA install ---------- */
.hub-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 48px;
  padding: 12px 22px;
  border: 1px solid var(--hub-accent);
  border-radius: 999px;
  color: var(--hub-accent-bright);
  font-family: var(--hub-font-kicker);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(76, 187, 23, .08);
  transition: background .18s var(--hub-ease), color .18s var(--hub-ease);
}
.hub-install:hover, .hub-install:active {
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
}

/* ---------- 15. Desktop: centered feed column ---------- */


/* ---------- 15c. Schools tab: searchable school directory ---------- */
.hub-schools {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 14px 60px;
  max-inline-size: 1100px;
  margin-inline: auto;
  inline-size: 100%;
}
.hub-schools-search input {
  inline-size: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: var(--hub-surface);
  color: var(--hub-ink);
}
.hub-schools-search input:focus {
  outline: 2px solid var(--hub-accent);
  outline-offset: 1px;
}
.hub-schools-deep { margin-top: 10px; }
.hub-schools-deep input {
  inline-size: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: var(--hub-surface);
  color: var(--hub-ink);
}
.hub-schools-deep input:focus {
  outline: 2px solid var(--hub-accent);
  outline-offset: 1px;
}
.hub-schools-deep-results { margin-top: 8px; display: grid; gap: 10px; }
.hub-schools-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.hub-school-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--hub-ink);
}
.hub-school-row:hover { border-color: var(--hub-accent); }
.hub-school-row-name { font-weight: 700; flex: 1 1 auto; }
.hub-school-row-meta { font-size: .75rem; color: var(--hub-mute, #9aa39a); }
.hub-school-row-go { color: var(--hub-accent); font-weight: 800; }

@media (min-width: 720px) {
  .hub-topbar {
    padding-inline: max(14px, calc(50vw - 240px));
  }
  .hub-feed {
    max-inline-size: 480px;
    margin-inline: auto;
    border-inline: 1px solid var(--hub-line);
  }
  .hub-sheet {
    inset-inline: 0;
    max-inline-size: 480px;
    margin-inline: auto;
    border-inline: 1px solid var(--hub-line);
  }
  .hub-title { font-size: 2.1rem; }
  .hub-picker-hero h2 { font-size: 2.8rem; }
}
/* ---------- 15b. Desktop (>=1020px): fill the screen, card grid
   Owner order 2026-10-03: desktop gets a real desktop layout, not the
   480px mobile column. Tabs spread out, feed becomes a responsive grid. ---------- */
@media (min-width: 1020px) {
  .hub-topbar {
    padding-inline: clamp(20px, 4vw, 72px);
  }
  .hub-tabbar {
    padding-inline: clamp(12px, 3vw, 56px);
    justify-content: flex-start;
  }
  .hub-tab {
    flex: 0 1 auto;
    padding-inline: 24px;
    font-size: .72rem;
  }
  .hub-feed {
    max-inline-size: none;
    margin-inline: 0;
    border-inline: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    padding: 28px clamp(20px, 4vw, 72px) 140px;
    align-items: start;
    scroll-snap-type: none;
  }
  .hub-picker-hero, .hub-fresh-banner, .hub-schools {
    grid-column: 1 / -1;
  }
  .hub-card {
    margin: 0;
  }
  .hub-title { font-size: 2.6rem; }
  .hub-picker-hero h2 { font-size: 3rem; }
}

/* ---------- 16. Reduced motion — kill shimmer/parallax ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hub-skel::after { display: none; }
  .hub-game-meta .hub-live-dot { animation: none; }
  .hub-thumb { will-change: auto; }
}

/* ---------- 17. Coordinator integration additions (feed engineer contract gaps) ---------- */
/* "All schools" clear button on the picker hero card */
.hub-hero-clear {
  appearance: none;
  border: 1px solid var(--hub-line);
  background: transparent;
  color: var(--hub-ink);
  border-radius: var(--hub-radius);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  min-block-size: 48px;
}
.hub-hero-clear:hover { border-color: var(--hub-accent); color: var(--hub-accent-bright); }
.hub-hero-clear:focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}
/* Sheet open state: lock background scroll while the picker sheet is up */
body.hub-sheet-open { overflow: hidden; }
body.hub-sheet-open .hub-feed { scrollbar-width: none; }

/* ==========================================================================
   JUDGE BUILD — "New on the yard" + now-playing dock
   Palette: Kelly green + black, smoke grey. Quiet, humble, no confetti.
   ========================================================================== */

/* Fresh badge: small-caps green pill beside the kicker */
.hub-fresh {
  display: inline-block;
  font-family: var(--hub-font-kicker);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hub-accent-bright);
  border: 1px solid var(--hub-accent-deep);
  border-radius: 999px;
  padding: 3px 9px;
  margin-inline-start: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.hub-card--fresh .hub-kicker { color: var(--hub-accent-bright); }

/* Fresh banner: slim bar above the feed, tap to jump, x to dismiss */
.hub-fresh-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 14px 2px;
  padding: 11px 14px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-line);
  border-inline-start: 3px solid var(--hub-accent);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--hub-ink);
  -webkit-tap-highlight-color: transparent;
}
.hub-fresh-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--hub-accent);
  flex: none;
  animation: hub-fresh-pulse 2.2s ease-in-out infinite;
}
@keyframes hub-fresh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hub-fresh-text { flex: 1; min-inline-size: 0; }
.hub-fresh-x {
  color: var(--hub-muted);
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  margin: -6px -6px -6px 0;
  border-radius: 8px;
}

/* Now-playing dock: slides up above the tab bar while the active card
   is off-screen. The iframe itself never moves (no reload, no extra data). */
.hub-nowplaying {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(var(--hub-safe-b, 0px) + 10px);
  z-index: 45; /* above feed cards, below sheets */
  display: flex;
  align-items: center;
  gap: 10px;
  max-inline-size: 480px;
  margin-inline: auto;
  background: rgba(5, 7, 5, .95);
  border: 1px solid var(--hub-line);
  border-block-start: 2px solid var(--hub-accent);
  border-radius: 16px;
  padding: 10px 10px 10px 14px;
  transform: translateY(170%);
  visibility: hidden; /* collapsed bar must never intercept taps */
  transition: transform .34s var(--hub-ease), visibility 0s linear .34s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}
.hub-nowplaying.hub-np--show {
  transform: none;
  visibility: visible;
  transition: transform .34s var(--hub-ease);
}
.hub-np-title {
  flex: 1;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--hub-ink);
}
.hub-np-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hub-np-back {
  background: transparent;
  color: var(--hub-accent-bright);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 6px;
}
.np-back {
  inline-size: 9px;
  block-size: 9px;
  border-block-start: 2px solid var(--hub-accent-bright);
  border-inline-start: 2px solid var(--hub-accent-bright);
  transform: rotate(45deg);
  margin-block-start: 3px;
}
.hub-np-pause {
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  background: var(--hub-accent);
}
.hub-np-pause:active { background: var(--hub-accent-deep); }
.np-toggle { position: relative; inline-size: 13px; block-size: 15px; }
.np-toggle::before, .np-toggle::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inline-size: 4px;
  border-radius: 2px;
  background: var(--hub-accent-ink);
}
.np-toggle::before { inset-inline-start: 0; }
.np-toggle::after { inset-inline-end: 0; }
.hub-np--paused .np-toggle::before {
  inset-inline-start: 3px;
  inline-size: 0;
  background: none;
  border-block-start: 7.5px solid transparent;
  border-block-end: 7.5px solid transparent;
  border-inline-start: 10px solid var(--hub-accent-ink);
}
.hub-np--paused .np-toggle::after { display: none; }
.hub-np-close {
  background: transparent;
  color: var(--hub-muted);
  font-size: 22px;
  line-height: 1;
  padding: 8px 10px;
}
.hub-np-close:active { color: var(--hub-ink); }
.hub-np-btn:focus-visible, .hub-fresh-banner:focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-nowplaying { transition: none; }
  .hub-fresh-dot { animation: none; }
}

/* ---------- 18. Canonical links (yards.fyi/HBCUHUB only) ----------
   Tabs, school rows, and topic chips are real <a> links now; keep them looking
   exactly like the buttons they replaced. */
a.hub-tab,
a.hub-school-item,
a.hub-topic {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a.hub-tab:focus-visible,
a.hub-school-item:focus-visible,
a.hub-topic:focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}

/* Hero actions: copy-yard-link sits next to "All schools" on a school view */
.hub-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hub-hero-share {
  appearance: none;
  border: 1px solid var(--hub-accent);
  background: rgba(76, 187, 23, .10);
  color: var(--hub-accent-bright);
  border-radius: var(--hub-radius);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  min-block-size: 48px;
}
.hub-hero-share:active { background: rgba(76, 187, 23, .22); }
.hub-hero-share:focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}


/* ---------- news photos: every story gets a picture ---------- */
.hub-news-photo{margin:0 0 20px;border-radius:14px;overflow:hidden;border:1px solid var(--hub-line);background:#0d0f0c}
.hub-news-photo img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.hub-news-photo--logo,.hub-news-photo--yard{display:flex;align-items:center;justify-content:center;min-height:190px;background:radial-gradient(80% 90% at 50% 10%,rgba(43,217,124,.14),transparent 65%),#0d0f0c}
.hub-news-photo-logo{width:120px;height:120px}
.hub-news-photo--yard span{font-family:var(--hub-font-head);font-weight:800;font-size:1.6rem;letter-spacing:.18em;color:var(--hub-accent)}

/* ---------- Drumline tab ---------- */
.dl-hero { padding: 18px 4px 6px; }
.dl-title { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; margin: 0 0 4px; color: #fff; }
.dl-sub { color: #9aa39a; font-size: 14px; margin: 0 0 8px; }
.dl-az { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.dl-az a { color: #4cbb17; background: #0f140f; border: 1px solid #223022; border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.dl-letter { font-family: Georgia, 'Times New Roman', serif; color: #4cbb17; font-size: 24px; margin: 22px 0 4px; border-bottom: 2px solid #223022; padding-bottom: 4px; }
.dl-school { padding: 12px 0 6px; }
.dl-sname { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; margin: 0; color: #fff; }
.dl-band { color: #9aa39a; font-size: 13px; margin: 2px 0 10px; }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dl-video { background: #0b0e0b; border: 1px solid #223022; border-radius: 12px; overflow: hidden; }
.dl-thumb { display: block; width: 100%; position: relative; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16/9; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(76,187,23,.92); color: #000; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dl-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.85); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.dl-frame { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.dl-vmeta { padding: 8px 10px 10px; }
.dl-vtitle { color: #f2f2f0; font-size: 14px; line-height: 1.35; }
.dl-vsub { color: #9aa39a; font-size: 12px; margin-top: 2px; text-transform: capitalize; }
.dl-hist { margin-top: 10px; background: #0b0e0b; border: 1px solid #223022; border-radius: 10px; padding: 8px 12px; }
.dl-hist summary { color: #4cbb17; font-weight: 700; font-size: 13px; cursor: pointer; }
.dl-hbody { padding: 6px 0 2px; }
.dl-hhead { color: #fff; font-size: 13px; font-weight: 700; margin: 6px 0 2px; }
.dl-hbody ul { margin: 0 0 6px; padding-left: 18px; color: #cfd2cf; font-size: 13px; }
.dl-yrs { color: #9aa39a; }
.dl-unknown, .dl-noband, .dl-novid, .dl-loading { color: #9aa39a; font-size: 13px; }
.dl-foot { color: #6b726b; font-size: 12px; padding: 16px 0 24px; text-align: center; }

/* ---------- School Profiles ---------- */
.sp-panel { background: #0b0e0b; border: 1px solid #223022; border-radius: 14px; padding: 16px 16px 8px; margin: 12px 0 16px; }
.sp-head { margin-bottom: 6px; }
.sp-title { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; margin: 0 0 2px; color: #fff; }
.sp-tag { color: #4cbb17; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin: 0 0 8px; text-transform: uppercase; }
.sp-h { font-family: Georgia, 'Times New Roman', serif; color: #4cbb17; font-size: 18px; margin: 14px 0 6px; border-bottom: 1px solid #223022; padding-bottom: 3px; }
.sp-dl { margin: 0; }
.sp-row { display: flex; gap: 10px; padding: 3px 0; font-size: 14px; }
.sp-row dt { color: #9aa39a; min-width: 96px; font-weight: 700; }
.sp-row dd { color: #f2f2f0; margin: 0; }
.sp-story { background: #101410; border: 1px solid #223022; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.sp-story summary { color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 700; cursor: pointer; }
.sp-story-body { color: #dfe3df; font-size: 14.5px; line-height: 1.55; padding-top: 6px; }
.sp-src, .sp-src2 { color: #6b726b; font-size: 11.5px; }
.sp-src { padding-top: 4px; }
.sp-list { margin: 0 0 8px; padding-left: 18px; color: #dfe3df; font-size: 14px; line-height: 1.5; }
.sp-list li { margin: 3px 0; }
.sp-yr { color: #4cbb17; font-weight: 700; }
.sp-det { color: #9aa39a; display: block; font-size: 13px; }
.sp-miles { margin: 10px 0; }
.sp-miles summary { color: #4cbb17; font-weight: 700; font-size: 14px; cursor: pointer; }
@media (max-width: 480px) { .sp-row { flex-direction: column; gap: 0; } .sp-row dt { min-width: 0; } .sp-title { font-size: 22px; } }

/* ---------- School Profiles ---------- */
.sp-panel { background: #0b0e0b; border: 1px solid #223022; border-radius: 14px; padding: 16px 16px 8px; margin: 12px 0 16px; }
.sp-head { margin-bottom: 6px; }
.sp-title { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; margin: 0 0 2px; color: #fff; }
.sp-tag { color: #4cbb17; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin: 0 0 8px; text-transform: uppercase; }
.sp-h { font-family: Georgia, 'Times New Roman', serif; color: #4cbb17; font-size: 18px; margin: 14px 0 6px; border-bottom: 1px solid #223022; padding-bottom: 3px; }
.sp-dl { margin: 0; }
.sp-row { display: flex; gap: 10px; padding: 3px 0; font-size: 14px; }
.sp-row dt { color: #9aa39a; min-width: 96px; font-weight: 700; }
.sp-row dd { color: #f2f2f0; margin: 0; }
.sp-story { background: #101410; border: 1px solid #223022; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.sp-story summary { color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 700; cursor: pointer; }
.sp-story-body { color: #dfe3df; font-size: 14.5px; line-height: 1.55; padding-top: 6px; }
.sp-src, .sp-src2 { color: #6b726b; font-size: 11.5px; }
.sp-src { padding-top: 4px; }
.sp-list { margin: 0 0 8px; padding-left: 18px; color: #dfe3df; font-size: 14px; line-height: 1.5; }
.sp-list li { margin: 3px 0; }
.sp-yr { color: #4cbb17; font-weight: 700; }
.sp-det { color: #9aa39a; display: block; font-size: 13px; }
.sp-miles { margin: 10px 0; }
.sp-miles summary { color: #4cbb17; font-weight: 700; font-size: 14px; cursor: pointer; }
@media (max-width: 480px) { .sp-row { flex-direction: column; gap: 0; } .sp-row dt { min-width: 0; } .sp-title { font-size: 22px; } }
