/* Fonts, self-hosted (Joel 9/29/26: "make sure the new design is using the correct fonts"). Barlow for the interface and
   Barlow Semi Condensed for titles and numbers. The old names 'Inter' and 'Oswald' are pointed at the same files, so any
   leftover rule in a module or an older page that still asks for them renders in the new faces too. */
@font-face{ font-family:'Barlow'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/barlow-latin-700-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow'; font-style:normal; font-weight:800; font-display:swap; src:url(fonts/barlow-latin-800-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow'; font-style:italic; font-weight:400; font-display:swap; src:url(fonts/barlow-latin-400-italic.woff2) format('woff2'); }
@font-face{ font-family:'Barlow Semi Condensed'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow Semi Condensed'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face{ font-family:'Barlow Semi Condensed'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/barlow-latin-700-normal.woff2) format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap; src:url(fonts/barlow-latin-800-normal.woff2) format('woff2'); }
@font-face{ font-family:'Oswald'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face{ font-family:'Oswald'; font-style:normal; font-weight:600; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face{ font-family:'Oswald'; font-style:normal; font-weight:700; font-display:swap; src:url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
/* ============================================================================================================
   Mentor app design refresh (Joel 9/29/26). Same flow; quieter surface, one type family (Barlow; Semi Condensed for
   titles and numbers), readable in full sun, no stripes on card edges, dates after headings instead of above them,
   the main button pinned at the bottom. Loaded after the page's own <style>, so it only re-points and refines.
   ============================================================================================================ */
:root{
  --f-ui:"Barlow",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-cond:"Barlow Semi Condensed","Barlow",ui-sans-serif,system-ui,sans-serif;
  --bg:#F3F4F8; --surface:#FFFFFF; --ink:#141A31; --muted:#4E5672; --line:#D9DDE8;
  --focus:#2A58B0; --sel:rgba(242,194,48,.38);
  --shadow:0 1px 2px rgba(20,26,49,.05),0 3px 10px rgba(20,26,49,.04);
  --radius:14px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0C1122; --surface:#141B31; --ink:#E9ECF5; --muted:#AEB5CC; --line:#28304B;
  --focus:#8FB0F5; --sel:rgba(242,194,48,.30); --shadow:0 1px 2px rgba(0,0,0,.35);
} }
:root[data-theme="dark"]{
  --bg:#0C1122; --surface:#141B31; --ink:#E9ECF5; --muted:#AEB5CC; --line:#28304B;
  --focus:#8FB0F5; --sel:rgba(242,194,48,.30); --shadow:0 1px 2px rgba(0,0,0,.35);
}

/* ---------- type + surfaces ---------- */
body{ background:var(--bg); font-family:var(--f-ui); font-size:15px; -webkit-font-smoothing:antialiased; font-variant-numeric:tabular-nums; padding-block:14px 28px; }
h1,h2,h3,.display{ font-family:var(--f-cond); letter-spacing:0; }
::selection{ background:var(--sel); color:inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
*{ scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
input::placeholder, textarea::placeholder{ color:var(--muted); opacity:.85; }
h2.title{ font-size:28px; font-weight:700; line-height:1.08; margin:0; }
p.hint{ font-size:14.5px; }
.card{ border-radius:var(--radius); box-shadow:var(--shadow); }

/* The date / step label comes AFTER the heading, as a quiet line (it used to sit above it in capitals). */
div:has(> .eyebrow + h2.title){ display:flex; flex-direction:column; }
div:has(> .eyebrow + h2.title) > *{ order:3; }
div:has(> .eyebrow + h2.title) > h2.title{ order:1; }
div:has(> .eyebrow + h2.title) > .eyebrow{ order:2; margin-top:3px; }
.eyebrow{ font-size:14.5px; letter-spacing:0; text-transform:none; font-weight:600; color:var(--muted); }
.eyebrow.crew-eyebrow{ font-size:15px; font-weight:700; color:var(--ink); }
.eyebrow.scopehead{ font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; }

/* ---------- masthead: flat and compact ---------- */
.masthead{ background:#161F45; border:0; border-radius:var(--radius); padding:12px 14px; gap:8px; box-shadow:none; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .masthead{ background:#0A0F20; border:1px solid var(--line); } }
:root[data-theme="dark"] .masthead{ background:#0A0F20; border:1px solid var(--line); }
.badge{ width:36px; height:36px; box-shadow:none; }
.brandtext .name{ font-family:var(--f-cond); font-size:19px; font-weight:700; }
.brandtext .sub{ font-size:12.5px; letter-spacing:0; text-transform:none; color:#C9D1EA; }
.daystats{ gap:14px; }
.daystats .dnum{ font-family:var(--f-cond); font-size:21px; font-weight:700; }
.daystats .dlbl{ font-size:12px; letter-spacing:.04em; font-weight:600; color:#C9D1EA; }
.ctxrow{ border-top-color:rgba(255,255,255,.1); padding-top:8px; font-size:13.5px; color:#C9D1EA; }
.ctxrow button, .crumbrow button{ font-size:14px; font-weight:600; border-radius:10px; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); }
.mentorpick select{ border-radius:10px; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); font-weight:600; }
.crumbs{ font-size:13.5px; color:#C9D1EA; }

/* ---------- cards + chips ---------- */
.gamecard{ border-radius:var(--radius); box-shadow:var(--shadow); padding:14px; }
.venuecard .vname{ font-family:var(--f-cond); font-size:20px; font-weight:700; line-height:1.15; }
.venuecard .vcity{ font-size:13.5px; }
.gamecard .league{ font-size:12px; letter-spacing:.03em; }
.matchup{ font-size:15.5px; }
.chip{ font-size:12px; font-weight:600; border-radius:999px; padding:3px 9px; }
.fy{ font-family:var(--f-ui); font-size:12px; font-weight:700; }
.grouphead{ font-family:var(--f-ui); font-size:13px; font-weight:600; letter-spacing:.05em; }
.grouphead .gh-count{ font-family:var(--f-ui); }
.emptybox{ border-radius:var(--radius); }
.emptybox .eb-title{ font-family:var(--f-cond); font-size:20px; font-weight:700; }
.lf-sugg h4{ font-family:var(--f-ui); font-size:12px; font-weight:600; letter-spacing:.05em; }
.fieldbtn{ border-radius:12px; box-shadow:var(--shadow); }
.fieldbtn .num{ font-family:var(--f-cond); font-size:17px; }
.fieldbtn .cnt{ font-size:12px; }
.offrow{ border-radius:var(--radius); background:var(--surface); }
.offmeta .nm{ font-size:15.5px; }
.offmeta .ps{ font-size:13px; }
.avatar{ font-family:var(--f-cond); font-weight:700; }
.search{ border-radius:12px; border-width:1px; box-shadow:var(--shadow); }
.search:focus-within{ border-color:var(--focus); box-shadow:0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.rchip{ font-weight:600; }
.recentrow .rlabel{ font-size:12px; font-weight:600; letter-spacing:.05em; }

/* no colored stripes on card edges */
.rqcard, .rqcard.ascard, .hometip{ border-left-width:1.5px; border-left-color:var(--line); }
.rqcard{ box-shadow:var(--shadow); }

/* ---------- scoring ---------- */
.scale5 button{ font-family:var(--f-cond); font-size:22px; font-weight:700; border-radius:12px; }
.scale5 button.sel{ box-shadow:none; }
.anchor{ font-size:14px; font-weight:600; color:var(--ink); }
.tapopt{ border-radius:12px; }
.tapopt .txt{ font-size:15px; }
.tapopt .desc{ font-size:13px; }
.score-pill{ font-family:var(--f-cond); font-size:13px; }
.ktime{ font-family:var(--f-cond); font-weight:700; }
.scorehead .nm{ font-size:19px; }
.scorehead .ps{ font-size:13.5px; }
.srcflag{ background:var(--surface); box-shadow:none; border-width:2px; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .srcflag{ background:var(--surface); } }
:root[data-theme="dark"] .srcflag{ background:var(--surface); }

/* ---------- the main button stays in reach at the bottom of the screen ---------- */
.btn{ font-family:var(--f-ui); font-weight:600; font-size:16px; border-radius:12px; }
.screen .actions:has(.btn.primary){ position:sticky; bottom:0; z-index:5; margin:12px -16px 0; padding:12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background:linear-gradient(to top, var(--bg) 72%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.signin .actions, .card .actions, .emptybox .actions{ position:static; margin:12px 0 0; padding:0; background:none; }

.odsearch{ display:flex; flex-direction:column; gap:8px; }
.search input:focus-visible{ outline:none; }
.eyebrow.crew-eyebrow{ font-size:15px; font-weight:700; color:var(--ink); }
/* the game's teams on the crew screen are the page's heading */
h2.title[style*="font-size:15px"]{ font-size:23px !important; font-weight:700 !important; color:var(--ink) !important; line-height:1.12; }

/* ---------- masthead as a light context card (Joel 9/29/26: match the mockup) ---------- */
.masthead, :root[data-theme="dark"] .masthead{ background:var(--surface); color:var(--ink); border:1px solid var(--line); box-shadow:var(--shadow); padding:12px 14px; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .masthead{ background:var(--surface); border:1px solid var(--line); } }
.brandtext .name{ color:var(--ink); }
.brandtext .sub, .daystats .dlbl, .ctxrow, .mentorpick, .whorow, .crumbs, .whorow .picklabel{ color:var(--muted); }
.daystats .dnum{ color:var(--ink); }
.whorow .who{ color:var(--ink); }
.ctxrow{ border-top-color:var(--line); }
.ctxrow button, .crumbrow button{ background:var(--surface); border:1px solid var(--line); color:var(--ink); }
.ctxrow button:hover, .crumbrow button:hover{ border-color:var(--muted); }
.mentorpick select{ background:var(--surface); border:1px solid var(--line); color:var(--ink); }
.mentorpick select option, .mentorpick select optgroup{ color:var(--ink); background:var(--surface); }
.namefield{ background:var(--surface); border-color:var(--line); color:var(--ink); }
.namefield::placeholder{ color:var(--muted); }
.findbtn{ border-width:1px; font-weight:600; }
.masthead .findbtn, .masthead button.findbtn{ background:var(--surface); color:var(--ink); border:1px solid var(--line); }

/* one-line context (date · mentor · Change), the full rows open under it (Joel 9/29/26, mockup) */
.ctxsum{ display:flex; align-items:center; gap:10px; border-top:1px solid var(--line); padding-top:9px; font-size:15px; color:var(--muted); min-width:0; }
.ctxsum .cs-txt{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ctxsum .cs-txt b{ color:var(--ink); font-weight:600; }
.ctxsum button{ flex:none; background:none; border:0; color:var(--focus); font:600 15px var(--f-ui); min-height:44px; padding:0 4px; cursor:pointer; }
.masthead.compact .ctxrow{ display:none; }
.masthead.compact .findrow{ padding:6px 0 0; }
.masthead .findrow{ padding-left:0; }

/* ---------- compact header on every signed-in screen (Joel 9/29/26: match the mockup) ----------
   Logo · "Tue, Sep 29 · Today · name" + "3 games · 3 officials today" · Change, then one slim row: venue crumb, Change venue, Find a ref. */
.masthead.compact{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; row-gap:8px; align-items:center; padding:10px 12px; }
.masthead.compact .brandrow{ display:contents; }
.masthead.compact .badge{ grid-row:1; grid-column:1; width:32px; height:32px; }
.masthead.compact .brandtext, .masthead.compact .daystats{ display:none; }
.masthead.compact .ctxsum{ grid-row:1; grid-column:2 / 4; border-top:0; padding-top:0; }
.masthead.compact .ctxsum .cs-txt{ white-space:normal; line-height:1.25; }
.masthead.compact .ctxsum .cs-txt b{ white-space:nowrap; }
.ctxsum .cs-sub{ display:none; }
.masthead.compact .ctxsum .cs-sub{ display:block; font-size:13px; color:var(--muted); margin-top:1px; }
.masthead.compact .ctxsum button{ min-height:40px; }
.masthead.compact .crumbrow{ grid-column:1 / 3; grid-row:2; border-top:1px solid var(--line); padding-top:8px; min-width:0; }
.masthead.compact .findrow{ grid-column:3; grid-row:2; padding:8px 0 0 10px; margin-left:-10px; border-top:1px solid var(--line); align-self:stretch; display:flex; align-items:center; justify-content:flex-end; }
.masthead.compact .findrow:last-child{ grid-column:1 / -1; justify-content:flex-start; }
.masthead.compact .crumbrow + .findrow, .masthead.compact .findrow:has(+ .crumbrow){ grid-column:3; justify-content:flex-end; }
.masthead.compact .findbtn{ min-height:36px; padding:0 12px; font-size:14px; border-radius:999px; }
.masthead.compact .crumbs{ font-size:14px; font-weight:600; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.masthead.compact .crumbs span{ text-decoration:none; cursor:pointer; }
.masthead.compact .crumbrow button{ border:0; background:none; color:var(--focus); font-size:14px; padding:0 4px; min-height:36px; }
.masthead.compact .ctxrow{ grid-column:1 / -1; }
.masthead.compact .crumbrow:not(.findrow + .crumbrow){ grid-column:1 / -1; }
.masthead:not(.compact) .ctxrow{ display:flex; }

/* ---------- crew strip on the scoring screen: who's done, who's up ---------- */
.cstrip{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding:2px 0 4px; margin-bottom:2px; }
.cstrip::-webkit-scrollbar{ display:none; }
.cstrip-i{ flex:none; display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:0 12px; border-radius:999px; border:1px solid var(--line);
  background:var(--surface); color:var(--muted); font:600 13.5px var(--f-ui); white-space:nowrap; cursor:pointer; }
.cstrip-i:disabled{ cursor:default; opacity:1; }
.cstrip-i.done{ color:var(--green-text); border-color:color-mix(in srgb, var(--green) 45%, var(--line)); }
.cstrip-i.on{ background:var(--ink); border-color:var(--ink); color:var(--surface); }
.cstrip-i.part{ color:var(--ink); border-color:color-mix(in srgb, var(--gold) 60%, var(--line)); }
.cstrip-dot{ width:9px; height:9px; border-radius:50%; border:2px solid var(--gold); flex:none; }
.cstrip-i:not(:disabled):active{ transform:scale(.97); }
.cstrip-i:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
.fieldblock label .lbl-sub{ display:block; margin-top:2px; font-weight:500; color:var(--muted); text-transform:none; letter-spacing:0; font-size:12.5px; }
.anchor{ font-size:15px; }

/* ---------- header back to navy, toned down (Joel 9/29/26: "I don't like the white or light") ----------
   Flat navy like the ROC top bar: no gradient, no glow; quiet dividers; links in gold so they read as taps. */
.masthead, :root[data-theme="dark"] .masthead{ background:#161F45; color:#F3F6FC; border:1px solid rgba(255,255,255,.08); box-shadow:0 6px 18px -12px rgba(10,15,32,.55); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .masthead{ background:#0E1430; border:1px solid rgba(255,255,255,.08); } }
:root[data-theme="dark"] .masthead{ background:#0E1430; }
.masthead .brandtext .name, .masthead .daystats .dnum, .masthead .whorow .who{ color:#fff; }
.masthead .brandtext .sub, .masthead .daystats .dlbl, .masthead .ctxrow, .masthead .mentorpick, .masthead .whorow, .masthead .whorow .picklabel, .masthead .picklabel{ color:#AEB8D6; }
.masthead .ctxrow, .masthead .ctxsum, .masthead.compact .crumbrow, .masthead.compact .findrow{ border-color:rgba(255,255,255,.12); }
.masthead .ctxsum{ color:#AEB8D6; }
.masthead .ctxsum .cs-txt b{ color:#fff; }
.masthead.compact .ctxsum .cs-sub{ color:#AEB8D6; }
.masthead .ctxsum button{ color:#F2C230; }
.masthead .ctxrow button, .masthead .crumbrow button{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#fff; }
.masthead.compact .crumbrow button{ background:none; border:0; color:#F2C230; }
.masthead .mentorpick select, .masthead .namefield{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#fff; }
.masthead .mentorpick select option{ color:#16233F; background:#fff; }
.masthead .namefield::placeholder{ color:#AEB8D6; }
.masthead .crumbs, .masthead.compact .crumbs{ color:#fff; }
.masthead .findbtn, .masthead button.findbtn{ background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.18); }
.masthead .findbtn svg *{ stroke:currentColor; }
.masthead .gtag{ background:rgba(242,194,48,.18); color:#F2C230; }

/* ---------- header, final (Joel 9/29/26): gold day stats back top right, the date picker always on show ----------
   Row 1: logo · "ASRA Mentor Feedback" / "Votaw, Joel · Sign out" · gold MATCHES + OFFICIALS
   Row 2: the date picker, full width and easy to spot.  Row 3: venue · Change venue · Find a ref (when on a venue). */
.masthead.compact{ grid-template-columns:auto minmax(0,1fr) auto; padding:12px 14px; row-gap:10px; }
.masthead.compact .badge{ grid-row:1; grid-column:1; width:40px; height:40px; }
.masthead.compact .brandtext{ display:block; grid-row:1; grid-column:2; min-width:0; }
.masthead.compact .daystats{ display:flex; grid-row:1; grid-column:3; }
.masthead .daystats .dnum{ color:#F2C230; }
.masthead .brandtext .sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.masthead .brandtext .sub-who{ color:#fff; font-weight:600; }
.masthead .sublink{ all:unset; cursor:pointer; color:#F2C230; font-weight:600; text-decoration:underline; text-underline-offset:2px; padding:4px 0; }
.masthead .sublink:focus-visible{ outline:2px solid #F2C230; outline-offset:2px; border-radius:4px; }
/* date row: always visible when signed in; the mentor/sign-out row is folded into the brand line */
.masthead.compact .ctxrow{ display:flex; grid-column:1 / -1; grid-row:2; border-top:1px solid rgba(255,255,255,.12); padding-top:10px; }
.masthead.compact .ctxrow:has(.whorow){ display:none; }
.masthead.compact .ctxrow .mentorpick{ flex:1; gap:10px; }
.masthead.compact .ctxrow .picklabel{ flex:none; color:#F2C230; font-weight:700; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; }
.masthead #dateSel{ min-height:48px; font:700 17px var(--f-ui); color:#fff; background-color:rgba(242,194,48,.10); border:1.5px solid rgba(242,194,48,.75); border-radius:12px; padding:8px 12px; }
.masthead #dateSel:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(242,194,48,.35); }
.masthead.compact .crumbrow{ grid-row:3; }
.masthead.compact .findrow{ grid-row:3; }
