/* Hockey Team: ice teal and deep navy. Light and dark themes from the same tokens; every text colour meets WCAG 2.2 AA on its background. */
:root {
  --bg: #f1f6f8; --card: #ffffff; --ink: #11222a; --muted: #46575f; --line: #d3e1e7;
  --brand: #0e6377; --brand-ink: #ffffff; --link: #0b5a6c; --head: #062530; --head-ink: #ffffff; --head-soft: #c8e6ee;
  --danger: #b3261e; --danger-ink: #ffffff; --focus: #c2410c; --red: #b3261e;
  --ok-bg: #e5f4ea; --ok-ink: #14532d; --warn-bg: #fff3d4; --warn-ink: #5e4100; --err-bg: #fde8e6; --err-ink: #7a1d16;
  --tag-bg: #e4eff3; --track: #d3e1e7; --chart-line: #0e6377; --chart-grid: #d3e1e7; --chart-target: #46575f; --field: #e8f4f8; --dirt: #8fb3c0;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081318; --card: #102027; --ink: #e6f1f5; --muted: #a6bcc5; --line: #23383f;
    --brand: #7fd0e2; --brand-ink: #04222a; --link: #8fd8e8; --head: #03141a; --head-ink: #ffffff; --head-soft: #c8e6ee;
    --danger: #ff9a8f; --danger-ink: #2a0905; --focus: #fdba74; --red: #ff9a8f;
    --ok-bg: #143823; --ok-ink: #c8efd2; --warn-bg: #3a2e0c; --warn-ink: #ffe3a3; --err-bg: #3d1611; --err-ink: #ffd2cb;
    --tag-bg: #18303a; --track: #23383f; --chart-line: #7fd0e2; --chart-grid: #23383f; --chart-target: #a6bcc5; --field: #14303a; --dirt: #4d7684;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 1.2rem 0 .6rem; }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
p { margin: 0 0 .8rem; }
:is(a, button, input, select, textarea, summary, label.btn, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; }
main:focus { outline: none; }

/* Header */
.site-header { background: var(--head); color: var(--head-ink); }
.site-header .hbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: var(--head-ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; padding: 8px 0; }
.brand span, .hero h1 span { margin-right: .3em; }
.nav-out { color: var(--head-soft); padding: 8px 0; }
.site-header .btn.small { background: var(--head-ink); color: var(--head); }
.menu { border-top: 1px solid rgba(255,255,255,.12); }
.menu-row { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.menu a { color: var(--head-soft); text-decoration: none; padding: 10px 0; display: inline-block; border-bottom: 3px solid transparent; min-height: 24px; }
.menu a:hover { color: var(--head-ink); }
.menu a.active { color: var(--head-ink); border-bottom-color: var(--head-soft); font-weight: 600; }

/* Blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.card.narrow { max-width: 560px; margin: 24px auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }
/* Two cards side by side (My Finds: found | added; Groups: yours | everyone's), stacked on phones. */
.cols-2 { align-items: start; margin-bottom: 16px; }
.cols-2 > .card { margin: 0; min-width: 0; }
.grid.two.tight { grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap-row { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .3rem 0 .6rem; }
.center { text-align: center; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag.guess-tag { background: var(--err-bg); color: var(--err-ink); }
.more-added summary { cursor: pointer; font-weight: 600; color: var(--link); padding: 10px 0; min-height: 24px; }
.lm > span:last-child .tag { align-self: flex-start; margin: 2px 0; }
.kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 .2rem; }
.found-badge { color: var(--ok-ink); background: var(--ok-bg); display: inline-block; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.stat strong { font-size: 2rem; }
/* Alerts */
.alert, .flash { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; }
.alert.ok, .flash.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.error, .flash.error { background: var(--err-bg); color: var(--err-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand);
  border-radius: 10px; padding: 9px 16px; min-height: 44px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--link); }
.btn.big { font-size: 1.1rem; padding: 12px 22px; min-height: 52px; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .92rem; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
.linkish { background: none; border: 0; padding: 4px 0; min-height: 24px; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkish.danger { color: var(--danger); }
form { margin: 0; }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 750; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.field { margin: 0 0 14px; }
.field > label, .field > .label { display: block; font-weight: 650; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=file], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted);
  border-radius: 8px; background: var(--card); color: var(--ink); }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
.check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview { display: block; max-height: 280px; width: auto; border-radius: 10px; margin-top: 10px; }
.inline-form .field { max-width: 420px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
/* Home */
.hero { padding: 16px 0 8px; }
.hero h1 { font-size: 2.2rem; }
.hero .how-card { margin: 12px 0 16px; }
.lead { font-size: 1.3rem; font-weight: 600; }
.steps { padding-left: 1.3rem; margin: 0 0 1rem; }
.steps li { margin-bottom: .6rem; }
.site-footer { margin-top: 24px; color: var(--ink); }   /* the shared footer fades its own text */
.site-footer a { color: var(--ink); }
@media print { .site-header, .site-footer, .actions, .btn, .day-nav, .ex-actions { display: none !important; } body { background: #fff; } .card { border: 0; } }
/* Dashboard (admins) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.tile { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tile .lbl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tile .num { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .num.good { color: var(--ok-ink); }
.tile .num.bad { color: var(--danger); }
.tile .sub { font-size: .85rem; color: var(--muted); }
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 16px; border-radius: 6px; }   /* (relative: hidden labels inside stay inside) */
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; font-weight: 700; padding: 6px 0; }
table.data th, table.data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data tbody th { font-weight: 600; }
table.data .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cards that open and close (app.js) */
.card-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.card-toggle::after { content: ''; flex: none; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .75; }
.card-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); }
.card-toggle:hover { color: var(--link); }
.card.collapsed > h1, .card.collapsed > h2 { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .card-toggle::after { transition: transform .15s; } }
@media print { .card-body[hidden] { display: block !important; } .card-toggle::after { display: none; } }
.search-row input[type=search] { flex: 1 1 240px; width: auto; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.review h3, .card-body > h3 { font-size: 1.05rem; margin: 14px 0 6px; }
input[type=search], input[type=url], input[type=date], input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.grid.three { grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid.two.tight-cols { gap: 0 14px; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; min-height: 24px; }
.check-inline input { width: 20px; height: 20px; }
h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.lead-small { font-size: 1.15rem; margin: 0 0 .4rem; }
.facts.three { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.chips { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; background: var(--tag-bg); color: var(--ink); border-radius: 99px; padding: 2px 12px; font-size: .92rem; text-decoration: none; }
a.chip:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.hero-search { max-width: 560px; margin: 0 0 12px; }
.filters select { width: auto; }
.spread { justify-content: space-between; }
/* A lone button, not a card (cards fold; a single button has nothing to fold). */
.actions-bar { margin: 0 0 16px; }
/* A card heading with a link in it keeps the link; its fold button sits beside it, named for the heading. */
.has-side-toggle { display: flex; align-items: center; gap: 10px; }
.card-toggle.card-toggle-side { width: auto; min-width: 32px; min-height: 32px; margin-left: auto; justify-content: center; flex: none; }
.card-toggle.card-toggle-side::after { margin: 0; }
input[type=time] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; background: var(--tag-bg); color: var(--ink); }
.status.reading { background: var(--ok-bg); color: var(--ok-ink); }
.status.next { background: var(--warn-bg); color: var(--warn-ink); }
.status.dropped { background: var(--err-bg); color: var(--err-ink); }
.data { width: 100%; border-collapse: collapse; }
fieldset { min-width: 0; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.inline-fields .field { margin: 0 0 8px; flex: 1 1 11rem; } .inline-fields .narrow-field { flex: 0 1 9rem; }
input[type=number], input[type=tel], input[type=date], input[type=time], input[type=url] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--card); color: var(--ink); }
.check-row { display: flex; gap: 10px; align-items: center; min-height: 32px; margin: 0 0 4px; }
.check-row input { width: 22px; height: 22px; flex: none; }
.check-row.pill { display: inline-flex; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; margin: 0; }
.check-row.pill:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--tag-bg); }
form.inline { display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0 0; }
.search .filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; margin: 10px 0 0; }
.search .filters .field { margin: 0 0 10px; }
.search .filters select { width: 100%; }
.rows { list-style: none; padding: 0; margin: 0 0 10px; }
.rows > li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; }
.rows > li:first-child { border-top: 0; }
.rows .main { flex: 1 1 16rem; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding: 4px 0 4px 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 10px; height: 5px; border-left: 2px solid var(--ok-ink); border-bottom: 2px solid var(--ok-ink); transform: rotate(-45deg); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.jump a { min-height: 24px; display: inline-block; padding: 4px 0; }
.card > input[type="hidden"] + :is(h1, h2), .card > input[type="hidden"] + input[type="hidden"] + :is(h1, h2), .card > input[type="hidden"] + input[type="hidden"] + input[type="hidden"] + :is(h1, h2),
.card > input[type="hidden"] + input[type="hidden"] + input[type="hidden"] + input[type="hidden"] + :is(h1, h2) { margin-top: 0; }
.flash.warn { background: var(--warn-bg); color: var(--warn-ink); }
.crumbs { margin: 0 0 10px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); vertical-align: middle; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
table.list { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
table.list caption { text-align: left; font-weight: 700; padding: 4px 0 8px; }
table.list th, table.list td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.choice-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.small-hero h1 { font-size: 1.9rem; }
.note-text { white-space: normal; background: var(--tag-bg); border-radius: 8px; padding: 8px 12px; }


/* ── Hockey Team ─────────────────────────────────────────────────────── */
.team-bar { background: color-mix(in srgb, var(--head) 88%, #fff 12%); border-top: 1px solid rgba(255,255,255,.12); }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.team-name { color: var(--head-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.team-season { color: var(--head-soft); font-weight: 500; }
.team-switch { color: var(--head-soft); padding: 6px 0; min-height: 24px; }
.team-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); vertical-align: middle; flex: none; }
.team-dot.big { width: 22px; height: 22px; margin-right: 8px; border-color: var(--line); }
.crumbs { margin: 0 0 10px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); vertical-align: middle; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.loss, .badge.warn { background: var(--err-bg); color: var(--err-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.live { background: var(--red); color: var(--danger-ink); }
.flash.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.live-now { background: var(--err-bg); color: var(--err-ink); border-left: 5px solid var(--red); }
.note-text { background: var(--tag-bg); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.check-row.pill { display: inline-flex; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; margin: 0; }
.check-row.pill:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--tag-bg); }
.pill abbr { text-decoration: none; }
.field.narrow { max-width: 260px; }
.big-score { font-size: 1.25rem; margin: 4px 0 10px; }
.big-score strong { font-size: 1.5rem; }
.center { text-align: center; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; margin: 0 0 14px; }
.tabs a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.month-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.num-table td.n, .num-table th.n, table.data .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th a { color: inherit; }
table.data th[aria-sort] a { color: var(--link); text-decoration: underline; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 12px; -webkit-overflow-scrolling: touch; }

/* Events in a list */
.events { list-style: none; padding: 0; margin: 0 0 10px; }
.events > li { border-top: 1px solid var(--line); }
.events > li:first-child { border-top: 0; }
.ev > a, .ev-static { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--ink); text-decoration: none; }
.ev > a:hover .ev-title { text-decoration: underline; }
.ev-date { flex: 0 0 3.6rem; display: flex; flex-direction: column; align-items: center; background: var(--tag-bg); border-radius: 10px; padding: 4px 0; }
.k-game .ev-date { background: color-mix(in srgb, var(--brand) 16%, var(--card)); }
.ev-dow { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.ev-d { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.ev-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ev-main .badge { align-self: flex-start; }
.ev-title { font-weight: 700; overflow-wrap: anywhere; }
.ev-sub { font-size: .9rem; color: var(--muted); }
.ev.past .ev-date { opacity: .8; }
.ev.cancelled .ev-title { text-decoration: line-through; }
.rsvp-count { margin: -4px 0 8px 4.4rem; }
.rsvp-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px 4.4rem; }
.rsvp-list { list-style: none; padding: 0; margin: 0 0 10px; }
.rsvp-list .rsvp-form { margin-left: 0; }
.rsvp-who { font-weight: 700; margin-right: 4px; }
.btn.rsvp-yes.on { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--card); }
.btn.rsvp-no.on { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
.btn.rsvp-maybe.on { background: var(--warn-ink); border-color: var(--warn-ink); color: var(--card); }
.rs { display: inline-block; font-size: .85rem; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); }
.rs-yes { background: var(--ok-bg); color: var(--ok-ink); }
.rs-no { background: var(--err-bg); color: var(--err-ink); }
.rs-maybe { background: var(--warn-bg); color: var(--warn-ink); }
.facts { display: grid; gap: 4px 16px; grid-template-columns: 1fr; margin: 6px 0 10px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .sc-facts { grid-template-columns: repeat(3, 1fr); } }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0 0 6px; }
.posts { list-style: none; padding: 0; margin: 10px 0 0; }
.posts > li { border-top: 1px solid var(--line); padding: 10px 0; }
.post-meta { margin: 0 0 2px; font-size: .9rem; color: var(--muted); }
.post-meta strong { color: var(--ink); }
.post-body { margin: 0 0 4px; overflow-wrap: anywhere; }
.post-form { margin-bottom: 8px; }
.member-edit { margin-top: 6px; flex-basis: 100%; }
.member-edit > summary { cursor: pointer; color: var(--link); min-height: 32px; display: inline-flex; align-items: center; }
.member-edit form { margin-top: 8px; }

/* Roster */
.roster .pl { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; flex: 1; min-width: 0; }
.roster .pl:hover strong { text-decoration: underline; }
.num-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.num-badge.big { min-width: 2.8rem; height: 2.8rem; font-size: 1.3rem; vertical-align: middle; }

/* The month */
.day-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; margin: 0 0 12px; }
.day-nav a { min-height: 32px; display: inline-flex; align-items: center; }
table.cal { border-collapse: separate; border-spacing: 3px; table-layout: fixed; margin: 0 -3px 6px; width: calc(100% + 6px); }
table.cal th { font-size: .8rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
table.cal th abbr { text-decoration: none; }
table.cal td { vertical-align: top; padding: 4px; height: 84px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.cal td.out { border: 0; }
table.cal td.is-today { border: 2px solid var(--brand); }
.cal-n { display: block; font-weight: 800; font-size: .9rem; }
.cal-ev { display: block; font-size: .74rem; line-height: 1.25; padding: 3px 4px; border-radius: 6px; background: var(--tag-bg); color: var(--ink); text-decoration: none; margin: 2px 0 0; overflow-wrap: anywhere; min-height: 24px; }
.cal-ev.k-game { background: color-mix(in srgb, var(--brand) 18%, var(--card)); }
.cal-ev.st-off { text-decoration: line-through; opacity: .8; }
.cal-ev:hover .cal-t { text-decoration: underline; }
.cal-score { display: block; font-weight: 800; }
@media (max-width: 560px) { table.cal td { height: 64px; padding: 2px; } .cal-t { display: none; } .cal-ev { text-align: center; font-size: .9rem; } }

/* Lineup */
.order-list { padding-left: 2rem; margin: 0 0 10px; }
.order-list li { margin: 0 0 6px; }
.order-list select { max-width: 320px; }
.inning { border-top: 1px solid var(--line); padding: 6px 0; }
.inning > summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; gap: 6px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; margin: 8px 0 4px; }
.pos-grid .field { margin-bottom: 8px; }
.pos-grid label abbr, .pos-grid label { text-decoration: none; font-weight: 800; }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 10px; }
.fair-table tr.flag th, .fair-table tr.flag td { background: var(--warn-bg); color: var(--warn-ink); }
.fair-table tr.flag-note td { font-size: .85rem; color: var(--warn-ink); background: var(--warn-bg); border-top: 0; }

/* Scoring: the scoreboard */
.now { position: relative; }
.sb { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 14px; align-items: center; }
.sb-teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-team { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 4px 8px; border-radius: 8px; }
.sb-team.batting { background: var(--tag-bg); }
.sb-team.batting .sb-name::before { content: '● '; color: var(--red); }
.sb-name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.sb-runs { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sb-state { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb-inning { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.outs { display: inline-flex; gap: 5px; }
.outs .o { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.outs .o.on { background: var(--red); border-color: var(--red); }
.bases { width: 92px; }
.bases svg { display: block; width: 100%; height: auto; }
.bases .bp { fill: var(--field); stroke: var(--dirt); stroke-width: 2; }
.bases .base { fill: var(--card); stroke: var(--muted); stroke-width: 2; }
.bases .base.on { fill: var(--red); stroke: var(--red); }
.bases .plate { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; }
.atbat { margin: 8px 0 0; }
.atbat .lbl, .count .lbl { display: inline-block; min-width: 5rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pc { font-size: .9rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--tag-bg); }
.pc.near { background: var(--warn-bg); color: var(--warn-ink); }
.pc.over { background: var(--err-bg); color: var(--err-ink); }
@media (max-width: 420px) { .sb { grid-template-columns: 1fr auto; } .bases { grid-column: 1 / -1; justify-self: center; width: 110px; } }

/* Scoring: pitches, results, runners */
.count { margin: 0 0 8px; font-size: 1.05rem; }
.count strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.pitch-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0 0 12px; }
.pitch-btns .btn { min-height: 52px; font-size: 1rem; }
.has-pitch-js .nojs-pitches { display: none; }
.results { margin: 0 0 12px; }
.res-group { margin: 0 0 10px; }
.res-h { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.res-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.res { position: relative; display: flex; }
.res input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.res span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 700; cursor: pointer; line-height: 1.2; }
.res input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.res input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fielders { margin: 0 0 12px; }
.num-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.num-btns .btn { min-width: 44px; min-height: 44px; }
.runners { border-top: 1px solid var(--line); padding-top: 10px; }
.run-row { display: grid; grid-template-columns: 1fr minmax(8rem, 12rem); gap: 6px 12px; align-items: center; }
.run-row label { margin: 0; }
@media (max-width: 420px) { .run-row { grid-template-columns: 1fr; } }
.play .btn.big.wide { min-height: 56px; font-size: 1.15rem; }
.pbp { padding-left: 1.5rem; margin: 0 0 10px; }
.pbp li { margin: 0 0 4px; }
body.scoring .menu { display: none; }

/* Line score and the scorecard */
table.linescore { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.linescore th, table.linescore td { border: 1px solid var(--line); padding: 6px 7px; text-align: center; min-width: 1.8rem; }
table.linescore th[scope=row] { text-align: left; white-space: nowrap; }
table.linescore .tot { font-weight: 800; background: var(--tag-bg); }
table.linescore td.now { background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; }
table.scorecard { border-collapse: collapse; font-size: .82rem; }
table.scorecard th, table.scorecard td { border: 1px solid var(--line); padding: 2px 4px; text-align: center; vertical-align: top; }
table.scorecard .sc-name { text-align: left; white-space: nowrap; min-width: 8rem; }
table.scorecard .sc-name .sub { color: var(--muted); font-weight: 500; }
table.scorecard .tot { font-weight: 800; min-width: 2rem; background: var(--tag-bg); vertical-align: middle; }
table.scorecard tfoot th { text-align: right; font-weight: 700; color: var(--muted); }
table.scorecard tfoot td { font-weight: 700; }
td.sc-box { min-width: 58px; padding: 1px; }
.box { position: relative; width: 56px; height: 56px; margin: 1px auto; }
.box + .box { border-top: 1px dashed var(--line); }
.box-d { position: absolute; inset: 6px; width: 44px; height: 44px; }
.box-d .d-bg { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 2; }
.box-d .d-path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.box-d .d-run { fill: color-mix(in srgb, var(--brand) 55%, transparent); stroke: var(--ink); stroke-width: 2.5; }
.box-mark { position: absolute; left: 0; right: 0; top: 19px; font-weight: 800; font-size: .78rem; line-height: 1; }
.box.scored .box-mark { color: var(--brand-ink); text-shadow: 0 0 2px var(--brand); }
.box-out { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border: 1.5px solid var(--red); color: var(--red); border-radius: 50%; font-size: .62rem; font-weight: 800; line-height: 12px; }
.box-rbi { position: absolute; left: 2px; bottom: 0; font-size: .7rem; color: var(--link); letter-spacing: -1px; }
.box-count { position: absolute; left: 2px; top: 0; font-size: .62rem; color: var(--muted); }
.box-notes { position: absolute; right: 1px; top: 0; font-size: .56rem; color: var(--muted); max-width: 30px; overflow: hidden; white-space: nowrap; }
.sc-card h3 { margin-top: 14px; }
.key-list { padding-left: 1.2rem; }
@media print {
  .no-print, .menu, .team-bar, .site-footer, .crumbs, .card-toggle::after { display: none !important; }
  body.scorecard-page { font-size: 10px; }
  @page { size: landscape; margin: 10mm; }
  .sc-card { break-before: page; }
  .table-wrap { overflow: visible; }
}

/* Gear */
.gear-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.lend, .back { display: inline-block; }
.lend > summary, .back > summary { list-style: none; }
.lend > summary::-webkit-details-marker, .back > summary::-webkit-details-marker { display: none; }
.lend[open], .back[open] { flex-basis: 100%; }
.lend form, .back form { margin-top: 8px; }
.loans .main, .gear-list .main { flex: 1 1 14rem; }
.due { color: var(--danger); font-weight: 700; }
.tile .num.bad { color: var(--danger); }
.rules-table input { max-width: 7rem; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }

/* ── Hockey ───────────────────────────────────────────────────────────── */
.sb.hockey { grid-template-columns: 1fr auto; }
.sb-shots { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.shots-sm { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.shot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.shot-btns .btn { min-height: 64px; font-size: 1.05rem; }
.shot-n { font-weight: 500; }
@media (max-width: 420px) { .shot-btns { grid-template-columns: 1fr; } }
.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.who-pair .field { margin-bottom: 10px; }
.pens-on { margin: 8px 0 0; }
.pens-on ul { margin: 4px 0 0; padding-left: 1.2rem; }
.pens-on .lbl { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.line-set { border-top: 1px solid var(--line); padding: 10px 0 0; margin: 0 0 8px; }
.line-set legend { font-size: 1rem; }
.line-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 10px; }
.onice { margin: 0 0 12px; }
.onice > summary { cursor: pointer; color: var(--link); min-height: 32px; display: inline-flex; align-items: center; }
.roster-sheet td:first-child { width: 3rem; font-weight: 800; }

.grid > * { min-width: 0; }   /* a wide table inside scrolls in its own box, not the page */
