/* Mustangs Hub. Placeholder brand colour (--brand) until the club logo and colours arrive; status colours are fixed
   and always paired with words (colour-blind safe). Phone first. */
:root {
  --bg: #f4f5f7; --panel: #fff; --line: #e2e5ea; --text: #101217; --text-2: #4b5160; --text-3: #5f6673;
  --brand: #14213d; --brand-2: #fca311; --on-brand: #fff;
  --in: #157347; --in-bg: #e3f4ea; --out: #b42318; --out-bg: #fdecea; --maybe: #8a5a00; --maybe-bg: #fdf1d6; --none: #5f6673; --none-bg: #eef0f3;
  --r: 12px; --tap: 44px; color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0c0e12; --panel: #15181e; --line: #262b34; --text: #eef0f4; --text-2: #b6bcc8; --text-3: #8b92a0;
  --brand: #e9eefc; --on-brand: #0c0e12;
  --in: #5fd39a; --in-bg: rgba(95,211,154,.14); --out: #ff8a7f; --out-bg: rgba(255,138,127,.13); --maybe: #f2c162; --maybe-bg: rgba(242,193,98,.13); --none: #9aa1ad; --none-bg: #1f232b;
  color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 28px; letter-spacing: -.02em; margin: 4px 0 6px; line-height: 1.15; text-wrap: balance; }
small { color: var(--text-3); }
.muted { color: var(--text-2); } .small { font-size: 14px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand.big { font-size: 20px; margin-bottom: 28px; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.top nav a[aria-current] { background: var(--brand); color: var(--on-brand); }
.top nav a.quiet { font-weight: 500; }
.page { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.back { display: inline-block; margin-bottom: 8px; color: var(--text-2); text-decoration: none; font-weight: 600; min-height: var(--tap); line-height: var(--tap); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
h2.day { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 22px 0 8px; }
h2.day small { margin-left: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 16px; margin-top: 16px; }
.ev { margin-bottom: 10px; overflow: hidden; }
.ev.cancelled { opacity: .6; }
.ev-main { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; }
.ev-time b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.ev-what b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.ev-what small { display: block; overflow-wrap: anywhere; }
.tally { display: flex; gap: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.tally span { display: grid; font-weight: 700; font-size: 18px; line-height: 1.1; }
.tally small { font-size: 11px; font-weight: 600; }
.t-in { color: var(--in); } .t-none { color: var(--none); }
.reply { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.reply .who { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--none-bg); border: 0; margin: 0; }
.seg legend { font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg .opt { min-height: 40px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 15px var(--font); color: var(--text-2); cursor: pointer; }
.seg .opt[aria-checked="true"].in { background: var(--in); color: #fff; }
.seg .opt[aria-checked="true"].out { background: var(--out); color: #fff; }
.seg .opt[aria-checked="true"].maybe { background: var(--maybe); color: #fff; }
.seg .opt:disabled { opacity: .5; cursor: default; }
.seg.wide { display: flex; flex-wrap: wrap; border-radius: 12px; }
.seg.wide .opt { display: inline-flex; align-items: center; gap: 6px; }
.seg.wide .opt:has(input:checked) { background: var(--brand); color: var(--on-brand); }
.seg.wide input { position: absolute; opacity: 0; pointer-events: none; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.big { border-radius: var(--r); padding: 12px 8px; text-align: center; font-weight: 600; font-size: 14px; }
.big b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.big.in { background: var(--in-bg); color: var(--in); } .big.out { background: var(--out-bg); color: var(--out); }
.big.maybe { background: var(--maybe-bg); color: var(--maybe); } .big.none { background: var(--none-bg); color: var(--none); }
.lineup { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lineup li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 52px; }
.lineup li:first-child { border-top: 0; }
.lineup .who { flex: 1; font-weight: 600; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.lineup .sub { display: block; font-weight: 400; }
.num { width: 30px; text-align: center; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.pnote { display: block; font-weight: 400; }
.note { background: var(--panel); border-left: 4px solid var(--brand-2); padding: 10px 14px; border-radius: 8px; margin: 12px 0; white-space: pre-wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: 600 16px var(--font); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; }
label.check { display: flex; align-items: center; gap: 10px; }
input, select, textarea { font: 16px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: var(--tap); width: 100%; }
label.check input { width: 22px; min-height: 22px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .opt:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 70%, transparent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: 90px 1fr 2fr; gap: 12px; }
.error { color: var(--out); background: var(--out-bg); padding: 10px 12px; border-radius: 10px; margin: 0; }
.ok { color: var(--in); background: var(--in-bg); padding: 10px 12px; border-radius: 10px; }
.empty { padding: 28px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: var(--r); }
.login { max-width: 400px; margin: 9vh auto 0; }
details.add summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }
@media (max-width: 560px) {
  .ev-main { grid-template-columns: 62px minmax(0, 1fr); }
  .tally { grid-column: 1 / -1; justify-content: flex-start; gap: 16px; }
  .tally span { display: inline-flex; align-items: baseline; gap: 4px; }
  .reply { flex-wrap: wrap; } .lineup li { flex-wrap: wrap; } .lineup li .seg { margin-left: 42px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg .opt { min-width: 0; flex: 1; }
  .reply .seg { flex: 1; max-width: 280px; }
}
/* phone fixes: one-line header, times never break, reply buttons get their own line under the name */
.ev-time b, .top nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .brand .label { display: none; }
  .top nav a { padding: 8px 10px; font-size: 14px; }
  .ev-main { grid-template-columns: 74px minmax(0, 1fr); }
  .lineup li .seg { flex-basis: calc(100% - 42px); margin-left: 42px; }
  .lineup li .seg .opt { flex: 1; }
}
/* Mustangs brand (from the logo): orange #FB4616, black, grey #5E5E60, white. White on that orange is only 3.3:1, so
   buttons are black in light mode and orange-with-black-text in dark mode; orange is the accent. */
:root { --brand: #111111; --on-brand: #ffffff; --brand-2: #fb4616; --brand-grey: #5e5e60; --link: #b8330c; }
@media (prefers-color-scheme: dark) { :root { --brand: #fb4616; --on-brand: #000000; --link: #ff8a5c; } }
.top { border-bottom: 3px solid var(--brand-2); }
.logo { width: 40px; height: 36px; object-fit: contain; }
.brand.big .logo { width: 160px; height: auto; }
.brand.big { flex-direction: column; align-items: flex-start; gap: 10px; }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--brand-2); }
.chip:hover, .back:hover { color: var(--link); }
.t-in, .big.in b { color: var(--in); }
/* attendance: In / Out, waitlist, notes, badges */
.answer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.linkish { border: 0; background: none; color: var(--link); font: 600 14px var(--font); padding: 6px 2px; cursor: pointer; min-height: 36px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--none-bg); color: var(--none); white-space: nowrap; }
.badge.in { background: var(--in-bg); color: var(--in); } .badge.out { background: var(--out-bg); color: var(--out); }
.badge.waitlist { background: var(--maybe-bg); color: var(--maybe); }
.lineup .grow { flex: 1; min-width: 0; }
.lineup .grow .reply { border: 0; padding: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0; }
.score { font-size: .8em; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-form { display: flex; gap: 8px; align-items: flex-end; }
.score-form label { width: 74px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.danger { color: var(--out); border-color: var(--out); }
.danger-zone { margin-top: 16px; }
.seg.wide.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin: 12px 0; }
.seg.wide.two .opt { min-height: 56px; font-size: 18px; justify-content: center; }
.seg.wide.two .opt[aria-pressed="true"].in { background: var(--in); color: #fff; }
.seg.wide.two .opt[aria-pressed="true"].out { background: var(--out); color: #fff; }
@media (max-width: 560px) { .answer { justify-content: flex-start; width: 100%; } .answer .seg { flex: 1; } }
/* public site */
.page.wide { max-width: 1040px; }
.hide-sm { }
.hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px 0 8px; }
.hero-logo { width: 100%; height: auto; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); }
.lede { font-size: 18px; color: var(--text-2); max-width: 60ch; }
.next { margin-top: 14px; border-left: 4px solid var(--brand-2); }
.next h2 { margin: 2px 0 4px; font-size: 22px; }
h2.section { font-size: 24px; letter-spacing: -.01em; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 3px solid var(--brand-2); display: inline-block; }
h3.sub-section { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 18px 0 8px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.news { display: grid; gap: 6px; text-decoration: none; }
.news b { font-size: 17px; line-height: 1.3; }
.news span { color: var(--text-2); font-size: 15px; }
.news:hover b, .team-link:hover b { color: var(--link); }
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixture { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.fx-date b { display: block; font-size: 17px; } .fx-date small { white-space: nowrap; }
.fx-teams { display: grid; gap: 2px; }
.fx-teams span { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; max-width: 320px; }
.fx-teams span b { font-variant-numeric: tabular-nums; }
.fx-teams .win { color: var(--text); } .fx-teams span:not(.win) { color: var(--text-2); }
.fx-teams .win b::after { content: " ◀"; font-size: 11px; color: var(--brand-2); }
.fx-meta { display: grid; justify-items: end; gap: 6px; text-align: right; }
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings caption { text-align: left; font-weight: 700; padding: 12px 16px 4px; }
.standings th, .standings td { padding: 10px 12px; text-align: right; border-top: 1px solid var(--line); }
.standings thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-top: 0; }
.standings th:first-child { text-align: left; }
.standings tbody th a { text-decoration: none; font-weight: 700; }
.team-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.team-link { display: grid; gap: 2px; text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.read { max-width: 68ch; } .read p { font-size: 17px; line-height: 1.6; }
.foot { text-align: center; color: var(--text-3); font-size: 14px; padding: 30px 16px calc(30px + env(safe-area-inset-bottom, 0px)); }
/* dashboard */
.dash { padding: 18px; margin-bottom: 16px; }
.dash-head { display: flex; gap: 14px; align-items: center; }
.dash-head h2 { margin: 2px 0; font-size: 22px; }
.jersey { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 22px; flex: none; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; }
.dash-stats div { background: var(--none-bg); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.dash-stats b { font-size: 20px; font-variant-numeric: tabular-nums; } .dash-stats b small { font-size: 14px; }
.dash-stats span { font-size: 13px; color: var(--text-2); }
.dash-ev { border-top: 1px solid var(--line); padding: 10px 0; }
.dash-ev-what { display: grid; gap: 2px; text-decoration: none; margin-bottom: 6px; }
.dash-ev .reply { border: 0; padding: 0; } .dash-ev .reply .who { display: none; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 10px; } .hero-logo { width: 150px; }
  .two-col { grid-template-columns: 1fr; }
  .fixture { grid-template-columns: 74px minmax(0, 1fr); } .fx-meta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none; }
}
.perms td { text-align: center; } .perms th small.sub { font-weight: 400; display: block; color: var(--text-3); }
.perms input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; accent-color: var(--brand-2); }
/* live scoring */
body.scoring { padding-bottom: 40px; }
.sb { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: #0b0c0f; color: #fff; border-bottom: 3px solid var(--brand-2); }
.sb-team { display: grid; gap: 2px; min-width: 0; } .sb-team b { overflow-wrap: anywhere; font-size: 15px; } .sb-team small { color: #aab; }
.sb-goals { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-mid { display: grid; gap: 6px; justify-items: center; } .sb-mid b { font-size: 20px; }
.periods { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pill-btn { min-height: 44px; min-width: 58px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: 700 16px var(--font); color: var(--text); }
.pill-btn[aria-checked="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side h2 { margin: 0 0 10px; font-size: 18px; }
.big-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.act { min-height: 76px; border-radius: 14px; border: 0; font: 800 19px var(--font); color: #fff; cursor: pointer; }
.act.goal { background: #157347; } .act.shot { background: #3a4150; } .act.pen { background: #b42318; }
.act:disabled { opacity: .4; }
.lineup-box summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.dress { display: grid; gap: 4px; max-height: 320px; overflow: auto; margin: 6px 0 10px; }
.log { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.log li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; } .log small { display: block; color: var(--text-3); }
.log-when { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.log-goal b { color: var(--in); } .log-penalty b { color: var(--out); }
.final-row { margin: 18px 0; } .final-row .btn { width: 100%; min-height: 56px; }
dialog.sheet { border: 0; border-radius: 18px; padding: 18px; width: min(560px, calc(100vw - 24px)); max-height: 90vh; background: var(--panel); color: var(--text); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); }
dialog.sheet h2 { margin: 0 0 10px; }
.choose { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.choose legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.chip-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip-opt input { width: 18px; min-height: 18px; accent-color: var(--brand-2); }
.chip-opt:has(input:checked) { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.code-input { font-size: 26px; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-weight: 700; }
.code-card { border-left: 4px solid var(--brand-2); } .code { font-size: 44px; font-weight: 800; letter-spacing: .1em; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .sides { grid-template-columns: 1fr; } .sb-goals { font-size: 38px; } }
/* game sheet */
.gs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; margin: 10px 0 18px; }
.gs-head b { font-size: 22px; } .gs-score { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gs-live { color: var(--out); font-weight: 800; }
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 8px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.stats-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-top: 0; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; white-space: normal; }
/* stats centre and box scores, laid out like eSportsDesk */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 14px 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { flex: none; text-decoration: none; padding: 10px 14px; font-weight: 700; font-size: 15px; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--brand-2); }
.tabs a:hover { color: var(--link); }
.stat-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.stat-filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); min-width: 170px; }
.stat-caption { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.stats-table.esd caption { text-align: left; font-weight: 700; padding: 12px 12px 4px; }
.stats-table.esd thead th { background: var(--brand); color: var(--on-brand); padding-top: 9px; padding-bottom: 9px; }
.stats-table.esd thead tr.group th { background: color-mix(in srgb, var(--brand) 82%, var(--brand-2)); text-align: center; }
.stats-table.esd thead th a { color: inherit; text-decoration: none; display: block; }
.stats-table.esd thead th.sorted { box-shadow: inset 0 -3px 0 var(--brand-2); }
.stats-table.esd thead th.sorted a::after { content: " ▾"; }
.stats-table.esd th, .stats-table.esd td { padding-left: 8px; padding-right: 8px; }
.stats-table.esd tbody tr { background: var(--panel); }
.stats-table.esd tbody tr:nth-child(even) { background: color-mix(in srgb, var(--none-bg) 60%, var(--panel)); }
.stats-table.esd tbody tr:hover { background: color-mix(in srgb, var(--brand-2) 10%, var(--panel)); }
.stats-table.esd .team-col { text-align: left; }
.stats-table.esd td.key { font-weight: 800; }
.stats-table.esd .player { text-align: left; font-weight: 700; } .stats-table.esd .player a { text-decoration: none; }
.stats-table.esd .rk, .stats-table.esd .num-col { color: var(--text-3); width: 1%; text-align: left; }
.legend { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.legend summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }
.legend dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 4px 0 8px; }
.legend dt { font-weight: 800; color: var(--text); } .legend dd { margin: 0; }
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gs-win b { color: var(--text); } .gs-head > div:not(.gs-win) b { color: var(--text-2); }
.gs-head small { display: block; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.gsum { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.gsum li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.gsum li:first-child { border-top: 0; }
.gsum small { display: block; color: var(--text-3); }
.sum-team { font-weight: 700; color: var(--text-2); font-size: 14px; } .sum-when { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.mt { margin-top: 12px; }
.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.leaders ol { list-style: none; margin: 0; padding: 0; }
.leaders li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.leaders li:first-child { border-top: 0; } .leaders li b { font-variant-numeric: tabular-nums; }
.leaders h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 4px solid var(--out); margin-top: 14px; text-decoration: none; }
.live-banner b { font-size: 20px; } .live-dot { color: var(--out); font-weight: 800; }
@media (max-width: 760px) {
  .box-grid, .leaders { grid-template-columns: 1fr; }
  .gsum li { grid-template-columns: minmax(0, 1fr) auto; } .sum-team { grid-column: 1 / -1; }
  .stats-table.esd .rk, .stats-table.esd .num-col { display: none; }
  .stats-table.esd .player { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 var(--line); }
  .stats-table.esd thead .player { background: var(--brand); }
}
[hidden] { display: none !important; }
.gs-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .gs-score { white-space: nowrap; }
@media (max-width: 760px) { .gs-score { font-size: 38px; } .gs-head b { font-size: 17px; } }
.live-banner .btn { white-space: nowrap; flex: none; }
/* my schedule */
.sched { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.sched-date { display: grid; text-align: center; background: var(--none-bg); border-radius: 10px; padding: 6px 4px; line-height: 1.25; }
.sched-date b { font-size: 15px; } .sched-date small { font-size: 12px; }
.sched-main { min-width: 0; }
details.more summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; color: var(--link); }
.sync { margin-bottom: 16px; border-left: 4px solid var(--brand-2); }
/* contracts and forms */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list li.todo { box-shadow: inset 4px 0 0 var(--brand-2); } .doc-list li.done { box-shadow: inset 4px 0 0 var(--in); }
.doc-list li.archived { opacity: .6; }
.doc-what { display: grid; gap: 2px; flex: 1; min-width: 0; }
.doc-count { white-space: nowrap; color: var(--text-2); } .doc-count b { color: var(--text); }
.doc-body { white-space: pre-wrap; max-height: 60vh; overflow: auto; line-height: 1.55; margin: 12px 0; }
.sig-pad { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: 12px; background: var(--panel); touch-action: none; cursor: crosshair; display: block; }
.pad-wrap { display: grid; gap: 6px; } .pad-label { font-weight: 600; font-size: 15px; } .pad-wrap .linkish { justify-self: start; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.kv dt { font-weight: 700; color: var(--text-2); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.sig-img { max-width: 320px; width: 100%; margin-top: 14px; border-bottom: 2px solid var(--text); background: #fff; border-radius: 6px; }
.todo-banner { border-left: 4px solid var(--brand-2); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
label.check.inline { display: inline-flex; font-weight: 400; }
form.paper { display: inline; }
@media print { .top, .hide-print, .foot { display: none !important; } body { background: #fff; color: #000; } .card { border: 0; } }
/* season fees */
.fee-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.fee-head h2 { margin: 2px 0; }
.fee-owing { display: grid; text-align: right; gap: 2px; } .fee-owing b { font-size: 24px; font-variant-numeric: tabular-nums; }
.fee-owing.overdue b { color: var(--out); } .fee-owing.paid b { color: var(--in); }
.fee-row summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; min-height: 40px; }
.fee-row summary::-webkit-details-marker { display: none; }
.fee-row .who small { display: block; }
.fee-tools { padding: 10px 0 4px; }
.row-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .row-inline label { flex: 1 1 120px; font-size: 13px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
form.inline { display: inline; }
.fee-totals { margin-top: 0; }
label.check input { flex: none; }
.player-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 4px; } .player-head h1 { margin: 2px 0; }
.player-head .eyebrow a { color: inherit; text-decoration: none; }
.player-head .jersey { width: 72px; height: 72px; font-size: 28px; }
.stars { list-style: none; margin: 0; padding: 0; }
.stars li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.stars li:first-child { border-top: 0; } .star-rank { color: var(--brand-2); width: 64px; font-weight: 800; flex: none; } .stars small { display: block; }
#starsBtn { width: 100%; min-height: 50px; }
.announcement { margin-bottom: 10px; border-left: 4px solid var(--brand-2); } .announcement h3 { margin: 4px 0 6px; font-size: 18px; }
.ann-body { white-space: pre-wrap; margin: 0 0 6px; } .news-stack { margin-bottom: 16px; gap: 0; }
.stats-table.esd .what { text-align: left; white-space: normal; } .stats-table.esd .what small { display: block; }
/* lines */
.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.line-group { border: 1px solid var(--line); margin: 0; display: grid; gap: 8px; }
.line-group legend { font-weight: 800; padding: 0 6px; }
.line-group label { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; }
.line-group ul.plain li { display: flex; gap: 10px; } .line-group ul.plain small { width: 52px; flex: none; }
.line-group li.me { font-weight: 800; color: var(--link); }
.lines-card p { margin: 4px 0; }
/* volunteers */
.duty { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.duty:first-of-type { border-top: 0; } .duty small.sub { display: block; }
.jobs ul.plain { margin-top: 6px; }
.away-box { margin: 10px 0; } .away-box summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; gap: 6px; } .away-row { margin: 4px 0; }
.line-group h2.day { margin: 0 0 6px; }
.duty > .grow { flex: 1 1 180px; min-width: 0; }
.away-box .row-inline label { flex: 1 1 140px; } .away-box .row-inline label:nth-of-type(3) { flex-basis: 100%; }
.away-box .row-inline label small { display: inline; }
.prose h2 { font-size: 18px; margin: 18px 0 6px; } .prose h2:first-child { margin-top: 0; } .prose ul { padding-left: 20px; } .prose li { margin: 4px 0; } .foot a { color: inherit; }
.club-team { margin-bottom: 14px; } .club-team h2 { margin: 2px 0; } .club-team h2 a { text-decoration: none; } .club-team .head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.season-pick label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.plain-fieldset { border: 0; padding: 0; margin: 0; } .plain-fieldset legend { margin-bottom: 6px; }
.champ { margin: 4px 0 10px; } .champ a { text-decoration: none; } tr.total th, tr.total td { font-weight: 800; border-top: 2px solid var(--text); }
/* photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.g-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; background: var(--none-bg); }
.g-item.is-hidden img { opacity: .35; outline: 2px dashed var(--out); }
.photo-full { margin: 10px 0; } .photo-full img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #000; display: block; }
.photo-full figcaption { margin-top: 8px; } .photo-full figcaption small { display: block; }
.photo-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.album { overflow: hidden; text-decoration: none; display: grid; } .album img { width: 100%; height: 170px; object-fit: cover; display: block; }
.album span { padding: 10px 14px; display: grid; gap: 2px; }
.report summary { cursor: pointer; color: var(--text-2); font-size: 14px; min-height: var(--tap); display: flex; align-items: center; }
.sb-board { color: #aab; font-variant-numeric: tabular-nums; } .sb-board.warn { color: #ffb38a; }
.test-pw summary { cursor: pointer; color: var(--text-2); font-size: 14px; min-height: 36px; display: flex; align-items: center; } .test-pw label { margin-top: 6px; }
/* admin console */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: 80px; display: grid; gap: 10px; }
.admin-search input { min-height: 40px; font-size: 15px; }
.admin-menu summary { display: none; }
.admin-group { margin: 12px 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-2); }
.admin-nav a:hover { background: var(--none-bg); color: var(--text); }
.admin-nav a[aria-current] { background: var(--brand); color: var(--on-brand); }
.admin-main h1 { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.tile { display: grid; gap: 4px; padding: 14px; text-decoration: none; } .tile b { font-size: 24px; font-variant-numeric: tabular-nums; } .tile span { font-size: 13px; color: var(--text-2); }
a.tile:hover { border-color: var(--brand-2); }
.quick { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 6px 0 12px; } .filters input, .filters select { width: auto; min-width: 150px; flex: 1 1 150px; }
.filters .inline-label { display: grid; gap: 2px; font-size: 12px; flex: 1 1 140px; }
.admin-table td, .admin-table th { white-space: normal; vertical-align: top; } .admin-table .what small { display: block; }
.admin-table tr.archived-row { opacity: .6; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.m-row { border-top: 1px solid var(--line); padding: 8px 0; } .m-row summary { cursor: pointer; }
.bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; } .bulk > label { flex: 0 1 220px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.log-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; white-space: pre-wrap; max-height: 360px; overflow: auto; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .mod { overflow: hidden; } .mod img { width: 100%; height: 140px; object-fit: cover; display: block; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--out); }
.admin-main .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; gap: 10px; }
  .admin-nav { position: static; }
  .admin-menu { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; }
  .admin-menu summary { display: flex; min-height: var(--tap); align-items: center; font-weight: 700; cursor: pointer; }
  .admin-main .row3 { grid-template-columns: 1fr; }
}
.page:has(> .admin) { max-width: 1320px; }
.admin-main .card > h2.day:first-child, .admin-main .card > form > h2.day:first-child, .admin-grid .card h2.day { margin-top: 0; }
.admin-main .card.stack { gap: 10px; }
.admin-main { min-width: 0; } .admin-grid .card { align-content: start; }
@media (max-width: 900px) { .admin { grid-template-columns: minmax(0, 1fr); } .admin-table .team-col { display: none; } .filters input, .filters select { min-width: 0; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } .msg { margin-bottom: 10px; } .msg.done { opacity: .6; }
.passkey-signin { margin-top: 12px; display: grid; gap: 4px; } .passkey-signin .btn { width: 100%; }
/* live box score */
.gs-clock { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.gs-pp { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 2px; font-size: 13px; font-weight: 800; color: #fff; background: var(--out); border-radius: 999px; padding: 2px 10px; }
.goal-flash { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; width: min(520px, calc(100vw - 24px));
  display: grid; gap: 2px; text-align: center; padding: 14px 18px; border-radius: 16px; background: #111; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35); border: 3px solid var(--brand-2); }
.goal-flash b { font-size: 22px; letter-spacing: .04em; color: var(--brand-2); } .goal-flash span { font-size: 18px; font-weight: 700; } .goal-flash small { color: #bbb; }
.goal-flash.show { animation: goalpop .6s ease-out; }
@keyframes goalpop { 0% { transform: translate(-50%, 30px) scale(.9); opacity: 0; } 60% { transform: translate(-50%, -4px) scale(1.03); opacity: 1; } 100% { transform: translate(-50%, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .goal-flash.show { animation: none; } }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; }
.live-item.on { border-left: 4px solid var(--out); }
.li-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; } .li-teams b { font-variant-numeric: tabular-nums; font-size: 18px; }
.li-go { color: var(--link); font-weight: 700; font-size: 14px; }
body.poster { text-align: center; padding: 30px 20px; background: #fff; color: #111; }
.poster-logo { width: 160px; } .poster h1 { font-size: 34px; margin: 10px 0; } .poster-lede { font-size: 20px; }
.poster-qr { width: min(360px, 80vw); height: auto; } .poster-url { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: #555; } .poster-when { color: #555; }
@media print { body.poster { padding: 0; } }
@media (max-width: 760px) { .live-item { grid-template-columns: 70px minmax(0, 1fr); } .li-go { display: none; } }
/* manager guide */
.guide { max-width: 860px; } .guide section { scroll-margin-top: 80px; }
.toc ol { columns: 2; margin: 8px 0 0; padding-left: 20px; } .toc li { margin: 3px 0; }
.flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .flow .card { display: grid; gap: 4px; } .flow span { color: var(--text-2); font-size: 14px; }
.guide ul.links, .guide ol.steps { padding-left: 20px; } .guide ul.links li, .guide ol.steps li { margin: 8px 0; line-height: 1.5; }
.team-settings { margin-bottom: 12px; } .team-settings h3 { margin: 0 0 8px; }
.msg-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.msg-row p { margin: 4px 0; } .msg-row .chan { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .msg-row .tag { margin: 0; }
.faq dt { font-weight: 800; margin-top: 14px; } .faq dd { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 760px) { .toc ol { columns: 1; } .msg-table { grid-template-columns: 1fr; } }
.guide li b, .guide dd { overflow-wrap: anywhere; }
/* headshots */
.headshot { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; background: var(--none-bg); }
.headshot.big { width: 140px; height: 140px; border-radius: 20px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; margin-right: 6px; background: var(--none-bg); }
.lineup .avatar { width: 36px; height: 36px; } .leaders .avatar, .line-group .avatar { width: 26px; height: 26px; }
.photo-form { margin: 8px 0; font-size: 14px; } .photo-form summary { cursor: pointer; color: var(--link); font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.person-head, .photo-card { display: flex; gap: 14px; align-items: flex-start; }
@media (max-width: 760px) { .headshot.big { width: 110px; height: 110px; } }
.avatar.initials { display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--text-2); }
.table-wrap:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 70%, transparent); outline-offset: 2px; }
/* accessibility */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 75%, transparent); outline-offset: 2px; border-radius: 6px; }
/* get set up */
.setup { max-width: 680px; } .setup-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; } .step-head h2 { margin: 0 0 4px; font-size: 19px; } .step-head > div { flex: 1; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; flex: none; }
.step.is-done .step-n { background: var(--in); color: #fff; }
.step-body { margin: 10px 0 0 48px; } .howto { margin: 6px 0; padding-left: 20px; } .howto li { margin: 6px 0; }
.ios-share { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 6px; font-size: 13px; }
.setup-finish { display: grid; gap: 6px; justify-items: start; }
.setup-nudge { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; text-decoration: none; border-left: 4px solid var(--brand-2); }
.setup-nudge small { display: block; color: var(--text-2); }
@media (max-width: 520px) { .step-body { margin-left: 0; } }
.error-text { color: var(--out); display: block; }
