/* Shadyum site: header, stadium band, footer, static pages, and the stadium page's wide layout.
   Colours come from the palette (palettes.js) via brand.js; this file only places things. */
body { -webkit-font-smoothing: antialiased; }
.st-skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: var(--page); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.st-skip:focus { top: 8px; }

/* header: mark + name, then (on the stadium page) seat search, then two links */
.st-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px 8px; }
.st-brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; margin-right: auto; }
.st-brand .wordmark { font-size: 17px; letter-spacing: -.02em; }
.st-mark { width: 22px; height: 22px; flex: none; }
.st-nav { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.st-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.st-nav a:hover, .st-nav a[aria-current="page"] { color: var(--ink); }
/* the tip link reads as the one call to action in the header */
.st-nav .st-tip { color: var(--ink); font-weight: 800; }
/* phone, stadium page: the band's stadium name already opens Stadiums, so the header drops that link to fit Tip */
@media (max-width: 420px) { .st-head:has(.lt-find) .st-nav-stadiums { display: none; } }
@media (max-width: 420px) { .st-park span { display: none; } .st-head { gap: 10px; padding: 10px 12px 8px; } .st-nav { gap: 10px; } .st-head .lt-find input { width: 116px; padding-right: 8px; } }

/* the stadium band: team colour, thin, name on the left */
.st-band { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 40px; background: var(--band); color: var(--band-ink); }
.st-park { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--band-ink); margin-right: auto; min-height: 40px; align-items: center; }
.st-park b { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.st-park span { font-size: 12px; color: var(--band-sub); }
.st-park i { font-style: normal; color: var(--band-sub); }
.st-game select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--band-ink); font-weight: 700; font-size: 13px; padding: 6px 0; text-align: right; cursor: pointer; }
.st-game select option { color: #14181b; }

/* footer */
.st-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 28px 0 8px; margin-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.st-foot > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.st-foot .st-mark { width: 18px; height: 18px; }
.st-foot nav { display: flex; gap: 16px; }
.st-foot a { color: var(--muted); }

/* stadium page: share */
.lt-share { margin-top: 14px; border: 1px solid var(--rule); background: none; border-radius: 999px; min-height: 40px; padding: 0 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.lt-shared { margin-left: 10px; font-size: 13px; color: var(--muted); word-break: break-all; }
body.site .lt-top { display: none; }

/* stadium page, wide screens: map and timeline pinned on the left, the story scrolling on the right */
@media (min-width: 980px) {
  body.site .lt { max-width: 1440px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); column-gap: 40px; }
  body.site .lt-head { position: sticky; top: 0; z-index: 3; background: var(--page); }
  body.site .lt-stick { top: var(--head, 0px); height: calc(100vh - var(--head, 0px)); display: flex; flex-direction: column; }
  body.site .lt-map { flex: 1; height: auto; min-height: 0; }
  body.site .lt-story { padding: 32vh 0 50vh; max-width: 520px; }
  body.site .lt-ch { min-height: 56vh; }
  body.site .lt-open { min-height: 0; padding-bottom: 20vh; }
}

/* static pages (About, Stadiums) */
.st-page { max-width: 680px; margin: 0 auto; padding: 8px 16px 40px; }
.st-page h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.05; font-weight: 800; font-stretch: 104%; letter-spacing: -.03em; margin: 28px 0 16px; }
.st-page h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 44px 0 10px; }
.st-page p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.st-page .lede { font-size: 22px; line-height: 1.45; }
.st-page ul { padding-left: 1.1em; margin: 0 0 14px; font-size: 17px; line-height: 1.55; }
.st-page li { margin: 4px 0; }
.st-page a { color: var(--ink); text-underline-offset: 3px; }
.st-figure { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; }
.st-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.st-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.st-numbers div { border-top: 2px solid var(--ink); padding-top: 8px; }
.st-numbers b { display: block; font-size: 30px; font-weight: 800; font-stretch: 90%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-numbers span { font-size: 14px; color: var(--muted); }
.st-card { display: flex; align-items: center; gap: 14px; border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--band); color: var(--band-ink); padding: 18px; min-height: 84px; }
.st-card b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; display: block; }
.st-card span { color: var(--band-sub); font-size: 14px; }
.st-card i { margin-left: auto; font-style: normal; font-size: 22px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.st-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); background: none; cursor: pointer; }
.st-btn.primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.st-note { font-size: 13px !important; color: var(--muted); }
/* phone: header and band scroll away; only the map and timeline stay pinned, the map a little shorter (decision 2026-10-13-layout-review) */
@media (max-width: 979px) { body.site .lt-map { height: min(34vh, 360px); } }
body > .st-foot { max-width: 680px; margin: 24px auto 0; padding: 28px 16px 24px; }

/* forms (/report, /suggest): one column, labels above, errors under their field */
.f { margin-top: 20px; }
.f-field { margin: 0 0 18px; }
.f-field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.f-field input, .f-field textarea { display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: none; border: 1px solid var(--muted); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.f-field input:focus, .f-field textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.f-field [aria-invalid="true"] { border: 2px solid var(--sun); }
.st-page .f-hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.st-page .f-err { font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.st-page .f-err:empty { display: none; }
.f-check { margin: 4px 0 16px; min-height: 65px; }
.st-page .f-status { font-size: 15px; margin: 12px 0 0; }
.st-page .f-status:empty { display: none; }
.st-page .f-done h2 { margin-top: 28px; font-size: 24px; text-transform: none; letter-spacing: -.01em; color: var(--ink); }

/* tip dialog: Ko-fi's panel on top of the page (brand.js) */
.st-tipbox { width: min(440px, 94vw); padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--page); color: var(--ink); }
.st-tipbox::backdrop { background: rgba(0, 0, 0, .55); }
.st-tipbox-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 18px; }
.st-tipbox h2 { margin: 0; font-size: 17px; font-weight: 800; }
.st-tipbox-x { width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.st-tipbox-x:focus-visible { outline: 2px solid var(--sun); }
.st-tipbox iframe { display: block; width: 100%; height: min(690px, 72vh); border: 0; background: #fff; }
.st-tipbox p { margin: 0; padding: 10px 18px 14px; font-size: 14px; }
.st-tipbox p a { color: var(--ink); text-underline-offset: 3px; }

/* Stadiums: parks not built yet, quiet rows with a vote link */
.st-page .st-next { list-style: none; padding: 0; margin: 8px 0 0; }
.st-page .st-next li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0; padding: 8px 0; border-top: 1px solid var(--rule); }
.st-page .st-next li:last-child { border-bottom: 1px solid var(--rule); }
.st-next b { display: block; font-size: 16px; }
.st-next b + span { display: block; font-size: 13px; color: var(--muted); }
.st-page .st-next a { flex: none; display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
