/* Soccer Predictions Today. Mobile first, light on data. */
:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --ink: #17251d;
  --muted: #586a5f;
  --rule: #d9e2db;
  --home: #13704a;
  --draw: #d8c690;
  --away: #5878a8;
  --won: #13704a;
  --lost: #b3412e;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: var(--home); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--away); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.wm-strip { display: flex; width: 34px; height: 8px; border-radius: 2px; overflow: hidden; }
.wm-strip i:nth-child(1) { flex: 5; background: #2fbf7a; }
.wm-strip i:nth-child(2) { flex: 2; background: var(--draw); }
.wm-strip i:nth-child(3) { flex: 3; background: #9fb6d8; }
.wm-text { font: 700 1.2rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.header-account { color: #cfe0d5; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.main-nav a { flex: none; color: #cfe0d5; text-decoration: none; padding: 10px 6px 12px; font: 600 .95rem/1 var(--display); border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: #2fbf7a; }
.main-nav .nav-premium { color: var(--draw); }

/* Page */
main.wrap { padding-top: 24px; padding-bottom: 40px; }
.page-head h1 { font: 700 clamp(2rem, 7vw, 2.75rem)/1.05 var(--display); margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 20px; max-width: 62ch; }
.day-title { font: 700 1.5rem/1.1 var(--display); margin: 28px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.empty { background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--r); padding: 16px; color: var(--muted); }
.note { color: var(--muted); font-size: .875rem; }
.flash { background: var(--accent-soft, #e3f4ea); border-left: 4px solid var(--home); padding: 10px 14px; border-radius: var(--r); }
.flash-error { background: #fbe9e6; border-left-color: var(--lost); }
.dev { font-size: .875rem; background: #fff7d6; padding: 8px 12px; border-radius: var(--r); }
.narrow { max-width: 440px; }
.pos { color: var(--won); }
.neg { color: var(--lost); }

/* Buttons and forms */
.btn { display: inline-block; background: var(--accent, var(--home)); color: var(--accent-ink, #fff); border: 0; border-radius: var(--r); padding: 12px 18px; font: 600 1.1rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.link-btn { background: none; border: 0; color: var(--home); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
input[type=email] { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.stack-form { display: grid; gap: 10px; }
.stack-form label { font-weight: 600; }

/* The probability strip: the signature element */
.strip { display: flex; height: 22px; border-radius: 3px; overflow: hidden; background: var(--rule); }
.strip i { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.strip em { font: 600 .8rem/1 var(--display); font-style: normal; padding: 0 6px; white-space: nowrap; }
.s-h { background: var(--home); color: #fff; }
.s-d { background: var(--draw); color: var(--ink); justify-content: center; }
.s-a { background: var(--away); color: #fff; justify-content: flex-end; }
.strip-key { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin: 8px 0 4px; }
.strip-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Match rows */
.league { margin-top: 18px; }
.league-name { font: 700 1.2rem/1.2 var(--display); margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.league-name a { color: var(--ink); text-decoration: none; }
.league-country { font: 400 .85rem var(--body); color: var(--muted); }
.matches { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.match + .match { border-top: 1px solid var(--rule); }
.match-link { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "time teams tip" "time strip strip" "time extra extra"; gap: 6px 10px; padding: 12px; color: inherit; text-decoration: none; }
.match-link:hover { background: #f8faf8; }
.m-time { grid-area: time; font: 600 .95rem/1.3 var(--display); color: var(--muted); white-space: nowrap; }
.m-teams { grid-area: teams; display: grid; font-weight: 600; line-height: 1.3; }
.m-team { display: flex; justify-content: space-between; gap: 8px; }
.m-score { font: 700 1.05rem/1.3 var(--display); }
.m-tip { grid-area: tip; align-self: start; min-width: 38px; text-align: center; font: 700 1.15rem/1 var(--display); padding: 6px 8px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--rule); }
.m-tip.hit { background: var(--won); color: #fff; border-color: var(--won); }
.m-tip.miss { color: var(--lost); text-decoration: line-through; }
.strip { grid-area: strip; }
.m-extra { grid-area: extra; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); }
.is-settled .strip { opacity: .55; }
.league-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0; }
.league-jump a { flex: none; font-size: .85rem; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }

/* Top picks */
.top-picks { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent, var(--home)); border-radius: var(--r); padding: 16px; margin: 4px 0 20px; }
.tp-head h2 { font: 700 1.5rem/1 var(--display); margin: 0 0 4px; }
.tp-head p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick { display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.pick:first-child { border-top: 0; }
.p-rank { font: 700 1.4rem/1 var(--display); color: var(--accent, var(--home)); }
.p-body { display: grid; }
.p-market { font-weight: 700; }
.p-match { font-size: .85rem; color: var(--muted); }
.p-nums { text-align: right; display: grid; }
.p-prob { font: 700 1.35rem/1 var(--display); }
.p-odds { font-size: .8rem; color: var(--muted); }
.p-outcome, .r-outcome { grid-column: 2 / 4; justify-self: start; font: 700 .85rem/1 var(--display); padding: 3px 7px; border-radius: 3px; }
.won { background: #dff1e7; color: var(--won); }
.lost { background: #f7e1dc; color: var(--lost); }
.locked { background: var(--bg); border-radius: var(--r); padding: 14px; margin-top: 12px; }
.locked p { margin: 0 0 10px; }

/* Match page */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.verdict { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.vs-labels { display: flex; justify-content: space-between; font: 600 1rem/1.2 var(--display); margin-bottom: 6px; gap: 8px; }
.vs-labels span:nth-child(2) { color: var(--muted); }
.strip-lg { height: 34px; }
.strip-lg em { font-size: 1rem; }
.verdict-text { margin: 12px 0 0; }
.markets h2, .cs h2, .included h2, .faq h2, .account-plan h2 { font: 700 1.5rem/1.1 var(--display); margin: 28px 0 10px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 9px 10px; text-align: left; border-top: 1px solid var(--rule); }
thead th { border-top: 0; font: 600 .95rem/1.2 var(--display); color: var(--muted); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-block { margin-bottom: 10px; }
.mk-table th, .mk-table td { padding: 8px 7px; }
@media (max-width: 420px) { .mk-table { font-size: .85rem; } }
.mk-table caption { text-align: left; font: 700 1.1rem/1 var(--display); padding: 10px 10px 4px; }
.mk-table thead th { border-top: 0; }
.mk-table tbody th { font-weight: 600; }
.cs-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cs-list li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px; text-align: center; display: grid; }
.cs-score { font: 700 1.6rem/1 var(--display); }
.cs-p { font-size: .85rem; color: var(--muted); }

/* Grid */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs a { padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--display); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid th[data-sort] { cursor: pointer; }
.grid th[aria-sort="descending"]::after { content: " ▾"; }
.grid th[aria-sort="ascending"]::after { content: " ▴"; }
.heat { background: color-mix(in srgb, var(--home) calc((var(--h) - 30) * 1%), transparent); }
.grid small { color: var(--muted); }

/* Results */
.record-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin: 0; }
.record-stats div { background: var(--surface); padding: 12px 14px; }
.record-stats dt { font-size: .8rem; color: var(--muted); }
.record-stats dd { margin: 2px 0 0; font: 700 1.6rem/1.1 var(--display); }
.record-stats small { font: 400 .8rem var(--body); color: var(--muted); }
.result-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.result-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule); }
.result-list li:first-child { border-top: 0; }
.r-outcome { grid-column: auto; text-align: center; }
.r-body { display: grid; }
.r-market { font-weight: 600; }
.r-match { font-size: .82rem; color: var(--muted); }
.r-odds { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }

/* Premium */
.ticks { padding-left: 20px; }
.ticks li { margin-bottom: 8px; }
.founder { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 16px; margin: 20px 0; }
.founder p { margin: 0 0 10px; }
.founder-bar { display: block; height: 8px; background: #33463b; border-radius: 4px; overflow: hidden; }
.founder-bar i { display: block; height: 100%; background: var(--draw); }
.plans { display: grid; gap: 10px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.plan-featured { border: 2px solid var(--home); }
.plan h3 { font: 700 1.3rem/1 var(--display); margin: 0; }
.plan-price { margin: 4px 0 0; }
.plan-price .amt { font: 700 2rem/1 var(--display); }
.plan-was, .plan-note { margin: 0; font-size: .85rem; color: var(--muted); }
.plan .btn { margin-top: 10px; justify-self: start; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

/* Signup */
.signup { margin-top: 32px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; }
.signup h2 { font: 700 1.4rem/1.1 var(--display); margin: 0 0 4px; }
.signup p { margin: 0 0 12px; color: var(--muted); }
.signup-form { display: grid; gap: 8px; }

/* Prose pages */
.prose { max-width: 66ch; }
.prose h2 { font: 700 1.4rem/1.1 var(--display); margin: 24px 0 6px; }
.network { list-style: none; padding: 0; display: grid; gap: 8px; }
.network li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; display: grid; }
.network a { font: 700 1.2rem/1.2 var(--display); }
.network span { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: #e9eee9; border-top: 1px solid var(--rule); padding: 24px 0 32px; font-size: .88rem; color: var(--muted); }
.footer-brand { font-weight: 600; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; }
.footer-nav a { color: var(--muted); }
.odds-toggle { display: flex; gap: 8px; align-items: center; }
.odds-toggle select { font: inherit; padding: 4px 6px; }

/* Racing */
.race-link { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "time info" "time top"; gap: 6px 10px; padding: 12px; color: inherit; text-decoration: none; }
.race-link:hover { background: #f8faf8; }
.race-link .m-time { grid-area: time; }
.r-info { grid-area: info; display: grid; }
.r-name { font-weight: 700; }
.r-meta { font-size: .82rem; color: var(--muted); }
.r-top { grid-area: top; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.r-top-label { font-size: .78rem; color: var(--muted); }
.r-top-name { font-weight: 600; }
.r-top-p { margin-left: auto; font: 700 1.1rem/1 var(--display); padding: 4px 8px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--rule); }
.r-top-p.hit { background: var(--won); color: #fff; border-color: var(--won); }
.r-top-p.miss { color: var(--lost); }
.feature-banner { display: grid; gap: 2px; background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; border-left: 6px solid var(--draw); }
.feature-banner strong { font: 700 1.4rem/1.1 var(--display); }
.feature-banner span { color: #cfe0d5; font-size: .9rem; }
.runners th[scope=row] { font-weight: 700; }
.runners small { font-weight: 400; color: var(--muted); }
.runners .top-row { background: var(--accent-soft, #e3f4ea); }
.locked-cell { text-align: center; }
.runners th[scope=row] { min-width: 140px; }
@media (max-width: 520px) { .col-fair, .col-rank { display: none; } .runners th[scope=row] { min-width: 0; } }
.locked-cell a { font-size: .85rem; }

@media (min-width: 600px) {
  .race-link { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "time info top"; align-items: center; }
  .wm-text { font-size: 1.35rem; }
  .main-nav a { padding: 10px 12px 12px; font-size: 1.05rem; }
  .match-link { grid-template-columns: 76px minmax(0, 1fr) 200px 48px; grid-template-areas: "time teams strip tip" "time extra extra tip"; align-items: center; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .record-stats { grid-template-columns: repeat(4, 1fr); }
  .signup-form { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* US sports */
.m-team .at { color: var(--muted); font-size: .85em; }
.us-row .m-tip { font-size: .95rem; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.week-nav { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; font: 600 1rem/1 var(--display); }
.week-nav a { text-decoration: none; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.push { background: #eceff3; color: var(--muted); }
@media (min-width: 720px) {
  .match-link.us-row { grid-template-columns: 76px minmax(0, 1fr) 200px 130px; }
}

/* Hub: bet of the day and acca */
.botd { background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px 18px 14px; margin: 0 0 18px; border-left: 5px solid var(--accent); }
.botd .empty { color: #cfe0d5; }
.botd-kicker { margin: 0 0 6px; font: 600 .85rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #cfe0d5; }
.botd-sport { margin: 0; font-size: .85rem; color: #cfe0d5; }
.botd-title { margin: 2px 0 4px; font: 700 1.9rem/1.1 var(--display); }
.botd-sub { margin: 0 0 12px; color: #dfe9e2; font-size: .95rem; }
.botd-nums { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 10px; }
.botd-nums dt { font-size: .8rem; color: #cfe0d5; }
.botd-nums dd { margin: 0; font: 700 1.6rem/1.1 var(--display); }
.botd .note { color: #cfe0d5; margin: 0; }
.acca { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--r); padding: 14px 16px; margin: 0 0 6px; }
.acca-sum { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.acca-sum dt { font-size: .8rem; color: var(--muted); }
.acca-sum dd { margin: 0; font: 700 1.35rem/1.2 var(--display); }
.more-link { margin: 0 0 22px; font-size: .9rem; }
.hub-sport { margin-top: 18px; }
.hub-out { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* Lucky 15 */
.l15-sum { margin: 14px 0 6px; }
.l15-result { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft, #e3f4ea); font-size: .95rem; }
.placed { background: #fff3d6; color: #8a5a00; }
.more-link { margin: 12px 0 0; font-size: .9rem; }
.p-market a { color: inherit; text-decoration: none; }
.p-market a:hover { text-decoration: underline; }
