/*
Theme Name: Today Toss Prediction
Theme URI: https://todaytossprediction.local
Author: Today Toss Prediction
Description: Daily cricket toss predictions powered by the EntitySport API. Shares the FCS design system (dark by default, light opt-in).
Version: 1.1.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: tossprediction
*/

/* Dark is the default look; light is opt-in via the header toggle (html[data-theme="light"]). */
/* Light is the default look; dark is opt-in via the header toggle (html[data-theme="dark"]). */
:root {
	--bg: #f0f0f0;
	--header: #ffffff;
	--surface: #ffffff;
	--surface-2: #f5f5f4;
	--text: #0c0a09;
	--muted: #57534e;
	--line: #e7e5e4;
	--brand: #16a34a;
	--brand-hover: #15803d;
	--brand-ink: #ffffff;
	--brand-text: #15803d;
	--brand-soft: rgba(22, 163, 74, .1);
	--accent: #dc2626;
	--accent-soft: rgba(220, 38, 38, .05);
	--gold: #ca8a04;
	--gold-soft: rgba(234, 179, 8, .15);
	--win: #16a34a;
	--loss: #ef4444;
	--nr: #78716c;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(12, 10, 9, .05);
	--font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #090807;
	--header: #0c0a09;
	--surface: #0f0d0c;
	--surface-2: #1c1917;
	--text: #fafaf9;
	--muted: #a8a29e;
	--line: #211e1d;
	--brand-text: #4ade80;
	--brand-soft: rgba(22, 163, 74, .14);
	--accent: #ef4444;
	--accent-soft: rgba(239, 68, 68, .08);
	--shadow: none;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
h2 { font-size: 1.2rem; margin-top: 1.5em; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); white-space: nowrap; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); position: relative; flex: none; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18); }
.brand-mark::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 11px; border-left: 2px dotted rgba(255, 255, 255, .8); transform: rotate(35deg); }
.brand b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand small { display: block; font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 6px 8px; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); text-decoration-color: var(--accent); }
.theme-toggle { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .sun, html[data-theme="dark"] .theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }

main { padding: 24px 0 48px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.lede { color: var(--muted); max-width: 70ch; }
.updated { font-size: .8rem; color: var(--muted); }
.updated .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn::after { content: "→"; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.ghost::after { content: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.hero .lede { margin: 14px auto 22px; font-size: 1.02rem; }
.hero .updated { margin-bottom: 10px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 12px; }
.section-title h2 { margin: 0; }
.section-title a { font-size: .88rem; color: var(--brand-text); }
.section-sub { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; max-width: 72ch; }

/* Highlight box: red-tinted panel with eyebrow, headline and a green action. */
.insight { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius); padding: 24px 20px; text-align: center; margin: 24px 0; }
.insight .eyebrow { color: var(--accent); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.insight h2, .insight .headline { color: var(--text); max-width: 64ch; font-size: 1.15rem; font-weight: 700; margin: 0 auto 12px; line-height: 1.45; }
.insight p { color: var(--muted); font-size: .9rem; max-width: 60ch; margin: 0 auto 14px; }

.band { background: color-mix(in srgb, var(--text) 4%, transparent); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 16px; text-align: center; }
.band h2 { margin-top: 0; font-size: 1.4rem; }
.band p { color: var(--muted); max-width: 62ch; margin: 0 auto 18px; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.live { background: rgba(239, 68, 68, .15); color: var(--accent); }
.pill.upcoming { background: var(--brand-soft); color: var(--brand-text); }
.pill.confirmed { background: var(--brand); color: var(--brand-ink); }
.pill.probable { background: var(--gold-soft); color: var(--gold); }
.pill.miss { background: rgba(239, 68, 68, .15); color: var(--accent); }
.pill.hit { background: var(--brand-soft); color: var(--brand-text); }
.pill.bat { background: var(--gold-soft); color: var(--gold); }
.pill.bowl { background: rgba(56, 189, 248, .15); color: #38bdf8; }

.fcs-logo { border-radius: 50%; background: #fff; object-fit: contain; flex: none; padding: 2px; }
.fcs-logo--empty { display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; color: #1c1917; }

/* Match / prediction card */
.mcard { display: block; color: var(--text); text-decoration: none; transition: border-color .15s; }
.mcard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.mcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.mcard .meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .teams { display: grid; gap: 8px; }
.mcard .team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.mcard .team .score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }
.mcard .team.is-pick .score { color: var(--brand-text); font-weight: 700; }
.mcard .team.is-pick::after { content: "pick"; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft); padding: 1px 6px; border-radius: 999px; }
.mcard .foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.mcard .count { color: var(--brand-text); font-weight: 600; }
.mcard .count:empty { display: none; }
.mcard.is-soon { border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.mcard.is-due .count { color: var(--muted); }

/* Prediction row (one card per row) */
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr); gap: 20px; align-items: start; padding: 16px 18px; }
.prow .meta { margin-bottom: 6px; }
.prow .mtitle { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.prow .mtitle a { color: var(--text); }
.prow .mtitle a:hover { color: var(--brand-text); }
.prow .p-when { margin: 0; font-size: .84rem; color: var(--text); line-height: 1.4; }
.prow .p-when .dim { color: var(--muted); }
.prow .count { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: var(--brand-text); }
.prow .count:empty { display: none; }
.prow .p-teams { display: grid; gap: 6px; }
.prow .p-teams .team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; padding: 4px 6px; border-radius: 8px; }
.prow .p-teams .team a { color: var(--text); }
.prow .p-teams .team.is-pick { background: var(--brand-soft); }
.prow .p-teams .team.is-pick a { color: var(--brand-text); }
.prow .p-teams .score { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.prow .p-teams .team.is-pick .score { color: var(--brand-text); font-weight: 700; }
.prow .p-teams .team.is-pick::after { content: "pick"; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft); padding: 1px 6px; border-radius: 999px; }
.prow .winbar { margin: 6px 0 0; height: 28px; font-size: .8rem; }
.prow .call { grid-template-columns: 1fr 1fr; }
.why-toggle { margin-top: 8px; }
.why-toggle summary { cursor: pointer; font-size: .8rem; color: var(--muted); list-style: none; }
.why-toggle summary::-webkit-details-marker { display: none; }
.why-toggle summary::before { content: "+ "; color: var(--brand-text); font-weight: 700; }
.why-toggle[open] summary::before { content: "– "; }
.why-toggle .why { margin-top: 8px; }
.why-toggle .more { display: inline-block; margin-top: 8px; font-size: .84rem; color: var(--brand-text); }
.grid-rows { grid-template-columns: 1fr; }
@media (max-width: 860px) {
	.prow { grid-template-columns: 1fr; gap: 14px; }
}

/* Win bar */
.winbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-weight: 700; font-size: .88rem; margin: 12px 0; }
.winbar div { display: flex; align-items: center; padding: 0 10px; color: #fff; white-space: nowrap; overflow: hidden; }
.winbar .w { background: var(--brand); }
.winbar .l { background: #57534e; }
.winbar .r { justify-content: flex-end; }

.call { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.call > div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.call small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 3px; }
.call b { display: block; font-size: 1rem; line-height: 1.2; margin-bottom: 5px; }
.why { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips .pill b { color: var(--text); }
.chips .trend i { font-style: normal; display: inline-block; padding: 0 5px; border-radius: 4px; font-size: .66rem; margin-left: 3px; }
.chips .trend .t-bat { background: var(--gold-soft); color: var(--gold); }
.chips .trend .t-bowl { background: rgba(56, 189, 248, .15); color: #38bdf8; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 16px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button { padding: 9px 12px; color: var(--muted); white-space: nowrap; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; border: 0; background: transparent; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.on, .tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .pill { margin-left: 6px; }

.note { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* Lists */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plist li:last-child { border-bottom: 0; }
.plist .who { min-width: 180px; flex: 1 1 180px; }
.plist .who b { display: block; }
.plist .who small { color: var(--muted); font-size: .78rem; }
.plist .toss { flex: 2 1 260px; font-size: .9rem; color: var(--muted); }
.plist .toss b { color: var(--text); }
.plist .grade { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

/* Scorecard strip above the toss results */
.scorecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sc { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; }
.sc b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.sc.good b { color: var(--brand-text); }
.sc span { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.sc small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }

/* Toss result rows: match · toss result */
.rhead, .rrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.rhead { padding: 0 0 8px; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; border-bottom: 1px solid var(--line); }
.plist .rrow { padding: 12px 0; display: grid; }
.r-match { display: flex; align-items: center; gap: 10px; min-width: 0; }
.r-match .logos { display: flex; flex: none; }
.r-match .logos .fcs-logo + .fcs-logo { margin-left: -6px; }
.r-match .who { min-width: 0; flex: 1; }
.r-match .who b { display: block; }
.r-match .who a { color: var(--text); }
.r-match .who small { color: var(--muted); font-size: .78rem; }
.r-col small { display: none; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 2px; }
.r-col b { display: inline; font-size: .93rem; }
.r-col .pill { margin-left: 4px; vertical-align: middle; }
.r-ours b { color: var(--brand-text); }
.r-verdict { text-align: right; }
.verdict { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.verdict.hit { background: var(--brand); color: #fff; }
.verdict.probable { background: var(--gold-soft); color: var(--gold); }
.verdict.miss { background: rgba(239, 68, 68, .18); color: var(--accent); }
.rnote { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) {
	.rhead { display: none; }
	.rhead, .rrow { grid-template-columns: 1fr; }
	.r-col small { display: block; }
}

/* Toss result table */
.rtable { min-width: 760px; }
.rtable td.tm { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 210px; }
.rtable th:first-child { min-width: 210px; }
.rtable .logos { display: flex; flex: none; }
.rtable .logos .fcs-logo + .fcs-logo { margin-left: -6px; }
.rtable td.tm a { color: var(--text); font-weight: 600; }
.rtable td.tm small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.rtable .said-cell b { color: var(--brand-text); }
.rtable .said-cell sup { color: var(--muted); font-size: .7em; }
.rtable .said-cell .pill { margin-left: 4px; }
.rtable .note-cell { color: var(--muted); font-size: .8rem; white-space: normal; min-width: 170px; max-width: 240px; }
.rtable tbody tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }

/* Toss result cards */
.tcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.tcard .teams { display: grid; gap: 6px; }
.tcard .team { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; padding: 7px 10px; border-radius: 8px; color: var(--muted); flex-wrap: wrap; }
.tcard .team .name { flex: 1 1 120px; min-width: 0; }
.grid-results { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tcard .team.won-toss { background: var(--brand-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.tcard .toss-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.coin-ic { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b41a 50%, #c47f0a); display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.tcard .said { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.tcard .said b { color: var(--text); }
.tcard .said sup { color: var(--muted); font-size: .7em; }
.rnote { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.tcard .foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tcard .foot a { color: var(--brand-text); white-space: nowrap; }

.picks { counter-reset: pick; list-style: none; padding: 0; margin: 0; }
.picks li { counter-increment: pick; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); position: relative; }
.picks li:last-child { border-bottom: 0; }
.picks li::before { content: counter(pick); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.picks small { color: var(--muted); display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 12px; }
.stat b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.good b { color: var(--brand-text); }

.table-wrap { overflow-x: auto; }
.ptable td, .ptable th { padding: .55rem .5rem; vertical-align: middle; white-space: nowrap; }
.ptable .tm { font-weight: 600; }
.ptable .tm small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; display: inline-block; width: 70px; vertical-align: middle; margin-right: 8px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hubs a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .15s; }
.hubs a small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.hubs a:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

.site-footer { border-top: 1px solid var(--line); background: var(--header); padding: 32px 0 24px; font-size: .85rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: .88rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.disclaimer { border-top: 1px solid var(--line); padding-top: 16px; font-size: .78rem; }
.entry-content { max-width: 75ch; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content p, .entry-content li { color: var(--muted); }
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--brand-text); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.entry-content a.btn { color: var(--brand-ink); text-decoration: none; }

/* Card links to the match page */
.mcard .mtitle { margin: 0 0 10px; font-size: .98rem; font-weight: 700; }
.mcard .mtitle a { color: var(--text); }
.mcard .mtitle a:hover { color: var(--brand-text); }
.mcard .team a { color: inherit; }
.mcard .team a:hover { color: var(--brand-text); }
.mcard .more { display: block; margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--brand-text); }
.insight .headline a { color: var(--text); text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body.home main { padding-bottom: 0; }
@media (max-width: 720px) {
	.site-header .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; }
	.theme-toggle { margin-left: auto; }
	.nav { order: 3; flex-basis: 100%; margin: 0 -8px; padding-bottom: 4px; }
	.section-title { flex-wrap: wrap; }
	.plist .grade { margin-left: 0; }
}
@media (max-width: 560px) {
	.hide-sm { display: none; }
	.ptable td, .ptable th { padding: .55rem .35rem; }
}

/* Light-mode polish */
.winbar .l { background: #a8a29e; }
html[data-theme="dark"] .winbar .l { background: #57534e; }
.fcs-logo { box-shadow: 0 0 0 1px var(--line); }
.tabs button.on { color: var(--text); }
.pill.bowl { background: rgba(2, 132, 199, .12); color: #0369a1; }
html[data-theme="dark"] .pill.bowl { background: rgba(56, 189, 248, .15); color: #38bdf8; }
.chips .trend .t-bowl { background: rgba(2, 132, 199, .12); color: #0369a1; }
html[data-theme="dark"] .chips .trend .t-bowl { background: rgba(56, 189, 248, .15); color: #38bdf8; }
.call > div { border: 1px solid var(--line); }

/* Hero stats: swipeable on phones */
@media (max-width: 720px) {
	.hero-stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 24px -16px 0; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.hero-stats::-webkit-scrollbar { display: none; }
	.hero-stats .stat { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (min-width: 721px) { .hero-stats { margin-top: 24px; } }

/* Static pages */
.page-body { margin: 0 auto; }
.page-body h1 { margin-bottom: .3em; }
.page-body .updated { margin-bottom: 1.6em; }
.page-body h2 { margin-top: 1.8em; }
.page-body table { margin: 1em 0 1.4em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-body th, .page-body td { color: var(--text); }
.page-body td { color: var(--muted); }
.page-body .callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: var(--radius); padding: 14px 16px; margin: 1.2em 0; }
.page-body .callout p { margin: 0; color: var(--text); }
.page-body .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 1em 0 1.6em; }
.page-body .toc ol { margin: 6px 0 0; }
.page-body .toc li { margin-bottom: 3px; }
.page-cta { margin: 32px auto 0; max-width: 75ch; justify-content: flex-start; }
.crumbs a { color: var(--muted); }

/* Contact form */
.ttp-form { display: grid; gap: 14px; max-width: 640px; padding: 20px; margin: 1em 0; }
.ttp-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text); }
.ttp-form input, .ttp-form select, .ttp-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
.ttp-form input:focus, .ttp-form select:focus, .ttp-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.ttp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ttp-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ttp-form .small-print { font-size: .78rem; color: var(--muted); margin: 0; }
.ttp-form .btn { justify-self: start; }
.form-note { padding: 12px 14px; border-radius: 8px; font-size: .9rem; max-width: 640px; }
.form-note.ok { background: var(--brand-soft); color: var(--brand-text); }
.form-note.err { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 560px) { .ttp-form .row2 { grid-template-columns: 1fr; } }
