/* SportSync — calm single-column frame. Same narrow reading column everywhere;
   no dashboard grid, no competing panels. Generous, quiet, mobile-first. */

.wrap {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 22px;
}
/* Phones: trim the side gutter so the agenda has more room for match names. */
@media (max-width: 460px) {
	.wrap { padding: 0 16px; }
}

/* Masthead — a teletext header row: page name + number, a ticking clock */
.masthead {
	position: sticky;
	top: 0;
	z-index: 30;
	padding-top: calc(env(safe-area-inset-top) + 12px);
	padding-bottom: 10px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.masthead-inner {
	display: flex;
	align-items: baseline;
	gap: 14px;
}
.wordmark {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--fg);
	text-transform: uppercase;
}
.masthead-clock {
	margin-left: auto;
	font-size: 13px;
	font-weight: 500;
	color: var(--fg-2);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.theme-toggle {
	font-size: 16px;
	color: var(--fg-2);
	padding: 2px 4px;
	line-height: 1;
	transition: color 0.15s;
}
.theme-toggle:hover { color: var(--accent); }

main { padding: 14px 0 72px; }

/* Hero — the brief, set like a teletext deck: monospace, tight, one amber word. */
.hero {
	padding: 20px 0 24px;
}
.hero-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
}
.hero-headline {
	font-weight: 600;
	font-size: clamp(21px, 4.6vw, 29px);
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--fg);
	text-wrap: balance;
	max-width: 30ch;
}
.hero-headline .em { color: var(--accent); }
.hero:empty, .hero-headline:empty { display: none; }

.site-footer {
	margin-top: 48px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	color: var(--fg-3);
}
.site-footer a { color: var(--fg-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer a.footer-alt { color: var(--fg-3); font-size: 0.85em; }
/* Quiet, dismissible iOS "add to Home Screen" hint (shown only when relevant). */
.install-hint { margin: 0 0 18px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg-2); font-size: 12.5px; line-height: 1.55; }
.install-dismiss { margin-left: 6px; border: none; background: none; color: var(--fg-3); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.install-dismiss:hover { color: var(--accent); }
/* Quiet staleness warning — only shown when data is unexpectedly old */
.footer-stale { flex-basis: 100%; color: var(--live); font-size: 12.5px; }
/* AI quota fuel gauge — calm by default; warns as the budget runs low */
.footer-usage { flex-basis: 100%; color: var(--fg-3); font-size: 12.5px; }
.footer-usage.amber { color: var(--accent); }
.footer-usage.red { color: var(--live); }
