/* ── Base ────────────────────────────────────────────────── */
:root {
	--ink: #1d2733;
	--deep: #1b3a5b;     /* deep pitch-side blue */
	--accent: #b9434c;   /* claret */
	--gold: #c9a227;
	--line: #d7dde4;
	--bg: #f4f1ea;
	--panel: #ffffff;
	--muted: #6b7785;
}
* { box-sizing: border-box; }
body {
	font-family: system-ui, sans-serif;
	color: var(--ink);
	background: var(--bg);
	margin: 0;
	line-height: 1.5;
}
.bar { height: 6px; background: var(--deep); }
h1, h2, h3 { font-family: ui-serif, Georgia, Times, serif; }
a { color: var(--accent); }
a:visited { color: #8f3139; }

/* ── Header ──────────────────────────────────────────────── */
header.site {
	max-width: 62ch;
	margin: 0 auto;
	padding: 1.4rem 1.4rem 0.6rem;
}
header.site h1 { margin: 0; font-size: 1.9rem; color: var(--deep); }
header.site h1 a { color: inherit; text-decoration: none; }
header.site .sub { margin: 0.1rem 0 0.7rem; color: var(--muted); font-size: 0.9rem; }
header.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 0.6rem; }
header.site nav a { text-decoration: none; font-size: 0.95rem; }
header.site nav a:hover { text-decoration: underline; }

main { max-width: 62ch; margin: 0 auto; padding: 0.5rem 1.4rem 2rem; }
section { margin: 1.8rem 0; scroll-margin-top: 1rem; }
main > section:first-child { margin-top: 0; }
h2 { font-size: 1.4rem; color: var(--deep); margin: 0 0 0.5rem; }
h3.day { font-size: 1.05rem; color: var(--deep); margin: 1.2rem 0 0.3rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ── Fixtures ────────────────────────────────────────────── */
table.fixtures { width: 100%; border-collapse: collapse; }
table.fixtures td { padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t-time { width: 4.4rem; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.t-home { text-align: right; }
.t-away { text-align: left; }
.t-score { width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.t-score .dash { color: var(--muted); margin: 0 0.15rem; }
.t-score .v { color: var(--muted); font-weight: 400; }
.t-tv { width: 3rem; text-align: right; }
.team { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; min-width: 0; }
.t-home .team { flex-direction: row-reverse; }
.name { min-width: 0; overflow-wrap: anywhere; }
.o-init { display: none; }

.owner {
	display: inline-flex; align-items: center;
	background: var(--deep); color: #fff;
	font-size: 0.68rem; font-weight: 700;
	padding: 0.1rem 0.4rem;
	border-radius: 3px; justify-content: center; white-space: nowrap;
}
.owner .star { color: var(--gold); font-size: 0.62rem; margin-left: 2px; }
.star { color: var(--gold); }

.badge-live {
	background: var(--accent); color: #fff;
	font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
	padding: 0.1rem 0.3rem; border-radius: 3px;
	animation: pulse 1.6s ease-in-out infinite;
}
.ft { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
tr.live .t-score { color: var(--accent); }
@keyframes pulse { 50% { opacity: 0.45; } }

.tv { font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.3rem; border-radius: 3px; color: #fff; }
.tv.bbc { background: #1c1c1c; }
.tv.itv { background: #e4007c; }
.tv.bbc-itv, .tv.itv-bbc { background: #555; }

/* ── Standings ───────────────────────────────────────────── */
table.standings, table.squad { width: 100%; border-collapse: collapse; }
table.standings th, table.standings td,
table.squad td { padding: 0.4rem 0.5rem; }
table.standings th { text-align: left; border-bottom: 2px solid var(--line); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
table.standings tbody tr:nth-child(even) { background: rgba(27,58,91,0.04); }
table.squad tr:nth-child(even) { background: rgba(27,58,91,0.04); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-sub { font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-left: 0.25rem; }
.pos { color: #2a7a3b; }
.neg { color: var(--accent); }
.premium { color: var(--muted); font-size: 0.9rem; }
.sq-team { width: 60%; }

ul.debts { list-style: none; padding: 0; margin: 0; }
ul.debts li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
ul.debts li:last-child { border-bottom: none; }

/* ── Disclosures ─────────────────────────────────────────── */
.disclosures { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
details { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
details > summary {
	cursor: pointer; list-style: none;
	padding: 0.55rem 0.8rem;
	font-weight: 600; font-size: 0.92rem; color: var(--deep);
	display: flex; align-items: center; gap: 0.4rem;
	user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
	content: "▶"; color: var(--deep); font-size: 1.05rem; line-height: 1;
	width: 1rem; text-align: center; flex-shrink: 0;
	transition: transform 0.12s ease;
}
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { background: rgba(27,58,91,0.04); border-radius: 5px; }
.disclosure-body { padding: 0.2rem 0.8rem 0.8rem; }
.disclosure-body h3.day:first-child { margin-top: 0.4rem; }
#d-schedule .disclosure-body { max-height: 70vh; overflow-y: auto; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
	max-width: 62ch; margin: 0 auto; padding: 1.4rem;
	border-top: 2px solid var(--line);
	color: var(--muted); font-size: 0.82rem;
}

@media (max-width: 480px) {
	main, header.site { padding-left: 0.9rem; padding-right: 0.9rem; }

	/* Tighter fixture rows: compact fixed columns, names take the rest. */
	table.fixtures td { padding: 0.45rem 0.18rem; }
	.t-time { width: 3.3rem; font-size: 0.75rem; }
	.t-score { width: 2.6rem; }
	.t-tv { width: auto; }
	.t-home, .t-away { font-size: 0.9rem; }
	.name { line-height: 1.2; }
	.team { gap: 0.28rem; }

	/* Owner pills shrink to a single-letter badge so rows stay on one line. */
	.o-full { display: none; }
	.o-init { display: inline; }
	.owner { padding: 0.05rem; min-width: 1.2rem; font-size: 0.64rem; }
	.tv { font-size: 0.62rem; padding: 0.05rem 0.25rem; }

	.premium { display: none; }
}
