/* FreeOdds SEO pages (generated by scripts/build_site.py): the Big Board's look on a reading page.
   Same tokens as public/index.html.  Night first (bare :root); Day = the printed sheet. Never use literal colors in rules. */
:root {
    --glass: #090c11; --panel: #0f141b; --row-alt: #121821; --line: #1e2631; --white: #f1f3f6; --dim: #7c8796;
    --amber: #ffb648; --red: #ff4f4a; --faint: #2a3441; --green: #4cc26b;
    --font-board: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --font-ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --glass: #f3efe4; --panel: #fbf9f3; --row-alt: #f2eddf; --line: #d8d0bd; --white: #16181c;
        --dim: #5c574b; --amber: #8a5000; --red: #c2151b; --faint: #c9c1ad; --green: #1b7a3a; color-scheme: light;
    }
}
:root[data-theme="light"] {
    --glass: #f3efe4; --panel: #fbf9f3; --row-alt: #f2eddf; --line: #d8d0bd; --white: #16181c;
    --dim: #5c574b; --amber: #8a5000; --red: #c2151b; --faint: #c9c1ad; --green: #1b7a3a; color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--glass); color: var(--white); font: 500 16px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: logo · sport links · live board (same weight as the board's tabs) */
.top { background: var(--glass); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { font: 700 26px/1 var(--font-board); letter-spacing: .04em; color: var(--white); text-decoration: none; flex: none; }
.logo b { color: var(--red); }
.snav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.snav::-webkit-scrollbar { display: none; }
.snav a { font: 600 18px/1 var(--font-board); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-decoration: none; padding: 8px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.snav a:hover { color: var(--white); }
.snav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.live { flex: none; font: 600 15px/1 var(--font-board); letter-spacing: .1em; text-transform: uppercase; color: var(--glass); background: var(--amber); text-decoration: none; padding: 8px 12px; border-radius: 3px; }

main { padding-block: 20px 40px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--faint); }
.crumbs a { color: var(--dim); }
h1 { font: 700 34px/1.05 var(--font-board); letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
h2 { font: 700 22px/1.1 var(--font-board); letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 10px; }
h3 { font: 600 18px/1.2 var(--font-board); letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 8px; }
p { max-width: 70ch; }
.lede { color: var(--dim); margin: 8px 0 18px; font-size: 17px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--white); }
.muted, .note { color: var(--dim); }
.note { font-size: 14px; margin-top: 8px; }

/* summary chips: "Favorites 5–9 ATS · Overs 8–6" */
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 14px 0 6px; }
.stat { background: var(--panel); padding: 10px 14px; flex: 1 1 140px; min-width: 0; }
.stat .k { font: 600 13px/1 var(--font-board); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stat .v { font: 600 26px/1.1 var(--font-board); color: var(--amber); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .s { font-size: 13px; color: var(--dim); }

/* board-style tables: a panel with condensed numbers; wide ones scroll inside, never the page */
.panel { background: var(--panel); border: 1px solid var(--line); margin: 10px 0 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 700 20px/1 var(--font-board); letter-spacing: .08em; text-transform: uppercase; }
.panel-head span { font: 500 14px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--dim); }
.scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font: 600 13px/1 var(--font-board); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { font: 600 19px/1.15 var(--font-board); text-align: right; padding: 7px 10px; white-space: nowrap; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl tbody tr.g1 td { padding-top: 10px; }
.tbl tbody tr.g2 td { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tbl tbody tr.g2:last-child td { border-bottom: 0; }
.tbl tbody.alt tr:nth-child(4n+3) td, .tbl tbody.alt tr:nth-child(4n+4) td { background: var(--row-alt); }
.tbl td.rot { color: var(--amber); width: 1%; }
.tbl td.tm { text-transform: uppercase; letter-spacing: .02em; }
.tbl td.tm a { color: var(--white); text-decoration: none; }
.tbl td.tm a:hover { text-decoration: underline; }
.tbl td.num { color: var(--amber); }
.tbl td em, .num em { font-style: normal; color: var(--dim); font-size: 14px; margin-left: 3px; }
.tbl td.sc { font-weight: 700; }
.tbl .lost, .tbl .lost a { color: var(--dim); }
.tbl td.small, .tbl td .small { font: 500 13px/1.2 var(--font-ui); color: var(--dim); }
.mark { font: 700 .75em/1 var(--font-ui); margin-left: 4px; color: var(--dim); }
.mark.ok { color: var(--green); }
.tbl tr.day td { background: var(--glass); font: 700 15px/1 var(--font-board); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* lists of links (results days, teams, guides) */
/* hairline grid drawn by each cell's own border, so a half-empty last row has no filled gap */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 10px 0 18px; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.links li { background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 10px 14px; text-decoration: none; color: var(--white); font: 600 18px/1.2 var(--font-board); letter-spacing: .03em; text-transform: uppercase; }
.links a:hover { color: var(--amber); }
.links a small { display: block; font: 500 13px/1.3 var(--font-ui); color: var(--dim); text-transform: none; letter-spacing: 0; }
.cta { display: inline-block; margin: 6px 0 14px; font: 700 16px/1 var(--font-board); letter-spacing: .1em; text-transform: uppercase; color: var(--glass); background: var(--amber); text-decoration: none; padding: 11px 16px; border-radius: 3px; }

.foot { color: var(--dim); font-size: 14px; padding-block: 16px max(32px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot p { margin-bottom: 6px; max-width: none; }
.foot a { color: var(--dim); }
.foot .fine { font-size: 12px; }

@media (max-width: 720px) {
    .live { display: none; }
    .bar { flex-wrap: wrap; gap: 8px 12px; }
    .snav { order: 3; flex-basis: 100%; }
    h1 { font-size: 28px; }
    .tbl td { font-size: 17px; padding: 6px 7px; }
    .tbl th { padding: 7px; }
    .tbl .w { display: none; }       /* columns that only fit on wide screens */
}

/* hubs + results */
.tbl.hub td.tm { white-space: normal; min-width: 7.5em; line-height: 1.05; }
.tbl.hub td.small { white-space: nowrap; }
.tbl.hub td.small a { color: var(--dim); }
.tbl caption { text-align: left; }
.moves li { list-style: none; border-left: 3px solid var(--amber); padding-left: 10px; margin-bottom: 8px; }
.moves { padding-left: 0 !important; }
details.bp { background: var(--panel); border: 1px solid var(--line); margin: 0 0 6px; }
details.bp summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; cursor: pointer; font: 600 18px/1.2 var(--font-board); letter-spacing: .04em; text-transform: uppercase; }
details.bp summary .muted { font: 500 14px/1.2 var(--font-ui); text-transform: none; letter-spacing: 0; white-space: nowrap; }
details.bp[open] summary { border-bottom: 1px solid var(--line); }
.tbl.bpt th[scope="row"] { text-align: left; font-size: 14px; }
.tbl.bpt td.l { white-space: normal; }
.wk-title { margin-top: 22px; }
.tbl.res td.tm { white-space: normal; min-width: 7.5em; line-height: 1.05; }
.tbl.res td.sm { font: 500 14px/1.2 var(--font-ui); color: var(--dim); }
.stat .v.sm { font-size: 22px; }
.nav2 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
@media (max-width: 720px) {
    .tbl.hub td.tm { min-width: 6em; }
    .tbl.hub .sc { padding-left: 2px; }
}

/* games + teams */
.tbl td.wrap { white-space: normal; }
.tbl th[scope="row"] { text-align: left; padding: 7px 10px; }
.tbl tbody th[scope="row"] { font: 600 14px/1.2 var(--font-board); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: normal; }
.tbl td.wrap { font-size: 17px; }
.tbl td a { text-underline-offset: 2px; }
.tbl td.l a { color: var(--white); }
.tbl td.rot.l { text-align: left; }
@media (max-width: 720px) {
    .tbl.books em { display: none; }
    .tbl td.wrap { font-size: 16px; }
}
@media (max-width: 720px) {
    .tbl.ls td, .tbl.ls th { padding-left: 4px; padding-right: 4px; }
    .tbl.ls td.tm { font-size: 15px; letter-spacing: 0; }
    .tbl.bl td, .tbl.bl th { padding-left: 5px; padding-right: 5px; }
    .tbl.bl td.wrap { font-size: 15px; }
    .tbl.bl tbody th[scope="row"] { font-size: 12px; letter-spacing: .04em; }
    .tbl.log td, .tbl.log th { padding-left: 4px; padding-right: 4px; }
    .tbl.log td.tm { font-size: 15px; letter-spacing: 0; white-space: normal; }
}
@media (max-width: 720px) {
    .tbl.log td.tm { white-space: nowrap; max-width: 6.2em; overflow: hidden; text-overflow: ellipsis; }
    .tbl.log td { font-size: 16px; }
    .tbl.log td.l a { text-decoration: none; }
}
.links.lk { display: flex; flex-wrap: wrap; gap: 6px; background: none; border: 0; }
.links.lk li { flex: 1 1 170px; border: 1px solid var(--line); }
@media (max-width: 720px) {
    .tbl.res td, .tbl.res th { padding-left: 4px; padding-right: 4px; }
    .tbl.res td.tm { min-width: 0; }
    .tbl.res td.sm { font-size: 12px; }
}
.tbl.res td.sc a { color: inherit; text-decoration: none; }
@media (max-width: 720px) { .tbl.res em { display: none; } }

@media (max-width: 520px) { .tbl.hub.both em { display: none; } }
.tbl tbody th[scope="row"] { border-bottom: 0; }
.tbl.bl tbody tr:not(:last-child) > *, .tbl.books tbody tr:not(:last-child) > *, .tbl.bpt tbody tr:not(:last-child) > * { border-bottom: 1px solid var(--line); }

/* hub board on phones (lead, 2026-10-27): like the live board - no prices, and the time/status moves under the away
   team so Rot · Team · Score · Spread · Total fit at 360px without sideways scrolling */
.tbl.hub td.tm .ph { display: none; }
@media (max-width: 520px) {
    .tbl.hub .tcol { display: none; }
    .tbl.hub td.tm .ph { display: block; font: 500 12px/1.3 var(--font-ui); color: var(--dim); text-transform: none; letter-spacing: 0; margin-top: 2px; }
    .tbl.hub td.tm .ph a { color: var(--dim); }
    .tbl.hub td em { display: none; }
}
