/* MVHS brand, dark theme: true black, MVHS gold, helmet gray.
   The logo files use a green-tinted black, so the footer logo has its background cleared. */
:root {
  --black: #000000;
  --card: #161616;
  --card-2: #202020;
  --line: #303030;
  --line-2: #262626;
  --text: #ffffff;
  --muted: #b5b5b5;
  --gold: #ffce00;
  --gold-soft: #3d3300;  /* gold-tinted chip background on black */
  --gray: #85898b;
  --green: #86efac; --green-bg: #14361f;
  --head: Montserrat, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; background: var(--black); font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--text); }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold); }
p { margin: 0; line-height: 1.45; }
.page { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--black); display: flex; flex-direction: column; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.loading { padding: 40px 20px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pad { padding: 20px; }
.pad-x { padding: 0 20px; }
.pad-top { padding-top: 16px; }
.pad-sm { padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.stack-xs { display: flex; flex-direction: column; gap: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-gap { display: flex; gap: 8px; align-items: center; }

/* header */
.top { background: var(--black); color: var(--text); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; border-bottom: 4px solid var(--gold); }
.top-home { padding: 24px 20px 24px; gap: 12px; }
.back { color: var(--gold); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; align-self: flex-start; }
.back:hover { color: var(--text); }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.h1 { margin: 0; font-family: var(--head); font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.h1-xl { font-size: 28px; }
.top-sub { font-size: 13px; color: var(--muted); }
.h2 { margin: 0; font-size: 18px; font-weight: 700; }
.h-sm { margin: 0; font-size: 16px; font-weight: 700; }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-helmet { width: 64px; height: 64px; flex: none; }

/* sponsor slots. Real logos sit on white so any sponsor's artwork reads. */
.presented { font-size: 12px; color: var(--muted); margin-top: 4px; }
.placeholder { height: 64px; border: 2px dashed var(--gray); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.presenter { height: 64px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px 14px; }
.presenter-logo { max-height: 48px; max-width: 100%; object-fit: contain; }
.sp-line { font-size: 12px; color: var(--muted); }
.logo-name { font-weight: 700; font-size: 15px; text-align: center; color: var(--black); }
.fk .presented, .fk .sp-line { color: var(--black); }
.fk .presented { margin-top: 6px; }
.placeholder-gold { border-color: var(--black); color: var(--black); }

/* nav cards */
.navcard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 14px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.navcard:hover { background: var(--card-2); color: var(--text); }
.navcard-t { font-weight: 700; font-size: 15px; }
.navcard-s { font-size: 11px; color: var(--muted); }

/* friday card */
.fk { margin: 0 20px; background: var(--gold); color: var(--black); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.fk-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.fk-title { margin: 0; font-family: var(--head); font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.fk-tag { font-size: 14px; font-weight: 600; }

/* cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.upnext { padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.upnext:hover { background: var(--card-2); color: var(--text); }
.by { font-size: 12px; color: var(--gold); font-weight: 600; }
.muted, .muted-sm, .muted-xs, .sub { color: var(--muted); }
.muted { font-size: 13px; }
.muted-sm { font-size: 13px; font-weight: 500; }
.muted-xs { font-size: 11px; }
.sub { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.list { padding: 0 14px; display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line-2); }
.list-row { padding: 12px 0; font-size: 14px; font-weight: 600; min-height: 44px; display: block; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.tile { height: 76px; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.tile-ph { background: transparent; border: 2px dashed var(--gray); font-size: 13px; color: var(--muted); font-weight: 600; }
.tile-sm { height: 60px; font-size: 12px; }
.tile-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.banner { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 14px; font-size: 16px; }
.banner-ph { border: 2px dashed var(--gold); }
.banner-logo { width: 72px; height: 48px; flex: none; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--black); overflow: hidden; }
.banner-ph .banner-logo { background: var(--gold-soft); color: var(--gold); }
.banner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* schedule rows */
.sched-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; min-height: 48px; font-size: 14px; }
#app .sched-row:not(:has(.sched-time)) { grid-template-columns: minmax(0, 1fr) auto; }
.sched-time { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.sched-name { font-weight: 600; }

.chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; align-self: flex-start; }
.chip-done { color: var(--green); background: var(--green-bg); }
.chip-live { color: var(--gold); background: var(--gold-soft); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills.sticky { position: sticky; top: 0; background: var(--black); padding: 12px 0 4px; z-index: 2; }
.pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pill-done { border-color: #2f7a4a; }

/* heat table */
.table { overflow: hidden; }
.hrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 62px 76px; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 14px; align-items: start; }
.hhead { border-top: 0; background: var(--card-2); padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ln { font-weight: 700; color: var(--gold); }
.hhead .ln, .hhead span { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.seed { color: var(--muted); }
.res { font-weight: 700; }
.place { display: block; font-size: 11px; font-weight: 600; color: var(--gold); }
.beat { display: block; font-size: 10px; font-weight: 700; color: var(--green); }
.heat { scroll-margin-top: 64px; }

.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 84px; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 14px; }
.price-row.hhead { border-top: 0; }

.rec-row { padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.rec-row .sub { grid-column: 1 / -1; }
.rec-mark { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }

.btn { align-self: flex-start; background: var(--gold); color: var(--black); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.btn:hover { color: var(--black); filter: brightness(1.08); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost:hover { color: var(--gold); filter: none; }
.mini { font-size: 12px; font-weight: 600; color: var(--gold); min-height: 44px; display: inline-flex; align-items: center; }

.search { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--card); color: var(--text); }
.search::placeholder { color: var(--muted); }
.search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.updated { font-size: 12px; color: var(--muted); padding-top: 8px; }
.updated.warn { color: var(--gold); }
.sample { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); color: #ffe680; font-size: 12px; font-weight: 600; }

.foot { margin-top: auto; background: var(--black); border-top: 4px solid var(--gold); color: var(--muted); padding: 22px 20px 26px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.foot-host { color: var(--text); font-weight: 600; }
.foot-logo { width: 100%; max-width: 300px; height: auto; display: block; margin: -8px 0 4px -10px; }

/* home: the two things most people want, as big buttons */
.big2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 12px; }
.big { background: var(--gold); color: var(--black); border-radius: 14px; padding: 18px 16px; min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.big:hover { color: var(--black); filter: brightness(1.06); }
.big-t { font-family: var(--head); font-size: 24px; font-weight: 800; line-height: 1; }
.big-s { font-size: 12px; font-weight: 600; line-height: 1.3; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chev { color: var(--gold); font-size: 24px; line-height: 1; font-weight: 400; }
.hit-mark { color: var(--gold); font-weight: 700; margin-left: 6px; }
.donate { border-color: var(--gold); }
.btn-block { align-self: stretch; justify-content: center; }
.foot-link { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.row-out { padding: 0 0 10px; border-top: 0 !important; }
.hrow-res { grid-template-columns: 32px minmax(0, 1fr) 80px; }

/* bottom tabs, on every page */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #0d0d0d; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); border-top: 3px solid transparent; }
.tab-on { color: var(--gold); border-top-color: var(--gold); }
.tab:hover { color: var(--text); }

/* small phones (iPhone SE and older Androids) */
@media (max-width: 360px) {
  .pad { padding: 16px; } .pad-x { padding: 0 16px; } .fk { margin: 0 16px; }
  .hrow { grid-template-columns: 22px minmax(0, 1fr) 54px 66px; gap: 6px; padding: 10px 10px; font-size: 13px; }
  .hhead { padding: 10px; }
  .big-t { font-size: 20px; }
  .tab { font-size: 12px; }
  .h1-xl { font-size: 24px; }
}
