/* Zenji — calm single-column frame. One narrow reading column everywhere (max
   640, centered); no dashboard grid, no competing panels. 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 — Sportivista + date, a ticking amber
   clock. Two quiet rows, one hairline under. */
.masthead {
	position: sticky;
	top: 0;
	z-index: 30;
	padding-top: calc(env(safe-area-inset-top) + 14px);
	padding-bottom: 12px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; flex-direction: column; gap: 5px; }
.mast-row { display: flex; align-items: center; gap: 10px; }
.mast-row-sub { justify-content: space-between; }
/* Wraps wordmark + colon as one unit so a flex gap on the parent row/column
   never opens a gap between "Sportivista" and its colon. */
.wordmark-lockup { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wordmark {
	font-weight: 700;
	font-size: 28px;                /* ~1.75rem — WP-98: matches iOS's shipped .title bold */
	letter-spacing: 0.02em;
	color: var(--fg);                /* label — the brand lock: only the colon is amber (WP-98, matches iOS/widget) */
	text-transform: uppercase;
	line-height: 1;
}
/* Kolonet — the brand mark: an amber colon right after the wordmark, echoing
   the app icon (two amber dots stacked, like the colon in a 18:00 clock). */
.wordmark-colon {
	font-weight: 700;
	font-size: 28px;
	color: var(--accent);          /* amber — the wordmark colon is one of the five amber uses */
	line-height: 1;
}
.mast-date {
	font-size: 13px;
	color: var(--fg-2);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.mast-index { color: var(--fg-3); }
.masthead-clock {
	font-size: 13px;
	color: var(--accent);          /* the ticking clock — the only continuous motion */
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
/* Theme toggle — the quantized override glyph (◐ system / ● dark / ○ light). */
.theme-toggle {
	margin-left: auto;
	font-size: 17px;
	color: var(--fg-2);
	padding: 0 2px;
	line-height: 1;
	transition: color 0.15s;
}
.theme-toggle:hover { color: var(--accent); }

main { padding: 6px 0 72px; }

/* Hero — one quiet editorial line under the header (a "nice extra", never loud).
   No amber here: amber is reserved for the five chrome uses in DESIGN.md. */
.hero { padding: 16px 0 6px; }
.hero-headline {
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fg-2);
	max-width: 58ch;
}
.hero-headline .em { color: var(--fg); font-weight: 600; }
.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).
   Flat — a hairline top/bottom, never a card. */
.install-hint { margin: 4px 0 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); 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 note — shown only when data is unexpectedly old. Calm and
   honest (not the live green, and no alarm colour): it explains, it doesn't shout. */
.footer-stale { flex-basis: 100%; color: var(--fg-2); font-size: 12.5px; }
/* AI quota fuel gauge — calm by default; a touch more present as it runs low. */
.footer-usage { flex-basis: 100%; color: var(--fg-3); font-size: 12.5px; }
.footer-usage.amber { color: var(--fg-2); }
.footer-usage.red { color: var(--fg); }
