/* release 371 (new design): the evidence pages (How it works, Forecast record, Research, Worked example, Simulator versions,
   Betting Lab) in the designer's look: white pages, Nunito, indigo #5663F0, 8px corners, white cards with a soft shadow, roomy
   sections. Builds on sx_brand.css (b-* blocks); this file only adds what those pages need and re-skins their data blocks
   (tables, tabs, charts) so the real numbers sit in designer cards. Scoped to body.p5-page. The repeated :not(#p5x) steps
   out-rank the older theme sheets (scoutics_light/cream) without depending on load order. */

/* ---------------------------------------------------------------- page frame: white, full width */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page,
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .site-shell { background: #fff !important; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .site-shell { max-width: none !important; padding: 0 !important; display: block; }
body.p5-page .sds-hero { display: none !important; }
body.p5-page .report-skip { position: absolute; left: -10000px; }
body.p5-page .report-skip:focus { position: fixed; left: 16px; top: 12px; z-index: 999; padding: 8px 14px; background: #fff; color: var(--b-ink); }
.p5 { display: block; width: 100%; font-family: var(--b-font); color: var(--b-ink); }
.p5 :is(h1, h2, h3) { text-wrap: balance; }
.p5 a:not([class]) { color: var(--b-primary-600); text-underline-offset: 3px; }
.p5 a:not([class]):hover { color: var(--b-primary-700); }
.p5 b, .p5 strong { color: var(--b-ink); }

/* the designer's white page title ("How It Works", "Forecast Record") */
.p5-hero { padding: 72px 0 56px; }
.p5-hero .b-lead { max-width: 640px; margin-top: 16px; }
.p5-hero .b-eyebrow { margin-bottom: 14px; }
.p5-hero.is-tight { padding-bottom: 32px; }
.p5-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; }

/* section headings */
.p5-head { max-width: 720px; margin-bottom: 32px; }
.p5-head .b-text { margin-top: 10px; }
.p5-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }

/* the designer's line card with icon tile */
.p5-feature .b-icon { margin-bottom: 18px; }
.p5-feature .b-h3 { font-size: 20px; }
.p5-feature .b-text { margin-top: 10px; }
.p5-feature.is-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* tables inside designer cards */
.p5-table-wrap { overflow-x: auto; margin-top: 8px; -webkit-overflow-scrolling: touch; }
.p5-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.p5-table th, .p5-table td { padding: 16px 12px; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; }
.p5-table thead th { color: var(--b-muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.p5-table tbody th { color: var(--b-ink); font-weight: 700; width: 28%; }
.p5-table td { color: var(--b-text); }
.p5-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.p5-table a { color: var(--b-primary-600); font-weight: 700; }

/* numbered step cards (From inputs to a comparison) */
.p5-steps { counter-reset: p5s; }
.p5-steps > li { list-style: none; counter-increment: p5s; }
.p5-steps .p5-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--b-primary); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.p5-steps .p5-num::before { content: counter(p5s); }
.p5-list-reset { margin: 0; padding: 0; }

/* stats */
.p5-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.p5-stat { border: 1px solid var(--b-line); border-radius: var(--b-radius); padding: 18px 20px; background: #fff; }
.p5-stat .b-stat { font-size: 32px; }
.p5-stat span { display: block; margin-top: 6px; color: var(--b-muted); font-size: 14px; line-height: 1.45; }

/* link row */
.p5-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.p5-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--b-primary-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.p5-fine { margin: 14px 0 0; color: var(--b-muted); font-size: 14px; line-height: 1.6; }
.p5-mini-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.p5-mini-split .b-icon { margin-bottom: 12px; }
.p5-mini-split .b-h3 { font-size: 18px; }

/* photos */
.p5-media { max-width: 560px; }
.p5-media.is-right { margin-left: auto; }
.p5-close .b-h2 { max-width: 880px; margin: 0 auto; }

/* ---------------------------------------------------------------- the closing band: designer size */
@media (max-width: 991px) { .p5-media { max-width: 640px; margin: 0 auto; } }
@media (max-width: 767px) {
  .p5-hero { padding: 40px 0 32px; }
  .p5-head { margin-bottom: 24px; }
  .p5-table { font-size: 14px; }
  .p5-table th, .p5-table td { padding: 12px 8px; }
  .p5-table tbody th { width: 34%; }
  .p5-mini-split { grid-template-columns: 1fr; }
  .p5-stat .b-stat { font-size: 26px; }
  .p5 .b-card.is-pad-lg { padding: 20px 16px; }
}
/* phones: tables that are a question / answer list read as stacked rows instead of a squeezed grid */
@media (max-width: 600px) {
  .p5-table.is-stack thead { position: absolute; left: -10000px; }
  .p5-table.is-stack, .p5-table.is-stack tbody, .p5-table.is-stack tr, .p5-table.is-stack th, .p5-table.is-stack td { display: block; width: auto !important; }
  .p5-table.is-stack tr { padding: 14px 0; border-bottom: 1px solid var(--b-line); }
  .p5-table.is-stack tr:last-child { border-bottom: 0; }
  .p5-table.is-stack :is(th, td) { border: 0; padding: 2px 0; }
  .p5-table.is-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--b-muted); font-weight: 700; }
}

/* the theme sheets set headings to 500; the designer's are heavy */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5 :is(.b-h1, .b-h2) { font-weight: 800 !important; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5 .b-h3 { font-weight: 700 !important; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5 :is(.b-cta-plain, .b-band) :is(.b-h1, .b-h2) { color: #fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5 .b-stat { font-weight: 800 !important; }

/* link cards (Research: Read more) */
a.b-card.p5-feature { display: flex; flex-direction: column; }
.p5-card-title { display: block; }
.p5-card-text { display: block; margin-top: 10px; }
.p5-more { margin-top: 16px; display: inline-flex; align-items: center; min-height: 32px; }
.p5-more::after { content: "\203A"; margin-left: 6px; font-size: 20px; line-height: 1; text-decoration: none; }
/* the synthetic chart sits flat inside the designer card */
.p5 .p5-chart-card .season-proof { margin-top: 0; }
.p5 .p5-chart-card .spc-card { box-shadow: none; border: 0; padding: 0; background: transparent; }

/* ---------------------------------------------------------------- Simulator versions */
.p5-subhero { padding: 96px 0; }
.p5-subhero .b-h1 { font-size: 64px; }
.csv-jump { margin-bottom: 32px; }
.csv-jump-v { margin-left: 6px; font-weight: 600; opacity: .8; }
.csv-sim { scroll-margin-top: 96px; }
.csv-sim + .csv-sim { margin-top: 32px; }
.csv-sim-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.csv-used { margin: 8px 0 0; color: var(--b-muted); font-size: 15px; }
.csv-ver { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--b-line); }
.csv-ver h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 18px; font-weight: 800; color: var(--b-ink); }
.csv-n { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 2px 10px; border-radius: var(--b-radius); background: var(--b-primary); color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.csv-d { color: var(--b-muted); font-size: 14px; font-weight: 600; }
.csv-ver ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.csv-ver li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--b-text); font-size: 15px; line-height: 1.6; }
.csv-kind { justify-self: start; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.csv-kind-new { background: var(--b-primary-50); color: var(--b-primary-700); }
.csv-kind-better { background: var(--b-success-50); color: #23662A; }
.csv-kind-fix { background: #FEF3E2; color: #8A4B08; }
.csv-kind-limit { background: var(--b-soft); color: var(--b-text); }
.csv-engine { margin: 12px 0 0; color: var(--b-muted); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .p5-subhero { padding: 48px 0; }
  .p5-subhero .b-h1 { font-size: 36px; }
  .csv-ver li { grid-template-columns: 1fr; gap: 4px; }
  .csv-jump { display: flex; }
  .csv-jump a { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}

/* ---------------------------------------------------------------- Worked example (moved from the page so it out-ranks the
   older [data-sx-page="example"] theme rules) */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page  { --we-bg:#fff; --we-panel:#fff; --we-panel2:var(--b-soft,#F2F3F3); --we-line:var(--b-line,#E3E4E4); --we-ink:var(--b-ink,#303131); --we-dim:var(--b-muted,#646867); --we-blue:var(--b-primary,#5663F0); --we-home:#5663F0; --we-draw:#8A8F8E; --we-away:#C2410C; --we-good:#2F7A33; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page * { box-sizing:border-box; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .sds-hero { display:none !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-main .b-container > * { max-width: 980px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs { display:inline-flex; flex-wrap:wrap; gap:4px; margin:28px 0 0; padding:4px; list-style:none; border-radius:var(--b-radius); background:var(--b-soft); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a { display:inline-flex; align-items:center; min-height:44px; padding:8px 20px; border-radius:var(--b-radius); color:var(--b-ink); font-weight:700; font-size:15px; text-decoration:none; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a:hover { background:var(--b-primary-tint); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a[aria-current="page"] { background:var(--b-primary); color:#fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs small { margin-left:4px; font-weight:600; opacity:.85; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-card { margin-top:0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-game { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 18px; align-items:baseline; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-game h2 { margin:0; font-size:28px; font-weight:800; color:var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-game p { margin:0; color:var(--we-dim); font-size:15px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-step { margin-top:28px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-step > h3 { margin:0 0 10px; font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--b-primary-600); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-step > h3 b { display:inline-grid; place-items:center; width:26px; height:26px; margin-right:8px; border-radius:50%; background:var(--b-primary); color:#fff; font-size:13px; letter-spacing:0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-change { margin:0; padding:16px 18px; border:1px solid var(--we-line); border-radius:var(--b-radius); background:var(--we-panel2); line-height:1.6; color:var(--b-text); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-change .out { color:#B42318; font-weight:800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-change .in { color:var(--we-good); font-weight:800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-rule { margin:10px 0 0; color:var(--we-dim); font-size:15px; line-height:1.6; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-rule b { color:var(--we-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tried { margin:12px 0 0; color:var(--we-dim); font-size:14px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tried summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:700; color:var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tried ul { margin:6px 0 0; padding-left:18px; line-height:1.6; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-bar { display:flex; height:36px; overflow:hidden; border-radius:var(--b-radius); background:var(--b-soft); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-seg { display:grid; place-items:center; min-width:0; color:#fff; font-size:14px; font-weight:800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-seg.home { background:var(--we-home); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-seg.draw { background:var(--we-draw); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-seg.away { background:var(--we-away); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-legend { display:flex; flex-wrap:wrap; gap:4px 16px; margin:10px 0 0; padding:0; list-style:none; color:var(--we-dim); font-size:15px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-legend li::before { content:""; display:inline-block; width:10px; height:10px; margin-right:6px; border-radius:3px; background:var(--we-draw); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-legend li.home::before { background:var(--we-home); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-legend li.away::before { background:var(--we-away); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-legend b { color:var(--we-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result { margin:28px 0 0; padding:20px 22px; border:1px solid var(--we-line); border-left:4px solid var(--we-draw); border-radius:var(--b-radius); background:#fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result.is-moved { border-left-color:var(--b-primary); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result p { margin:0; color:var(--b-text); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result .head { font-size:20px; font-weight:800; line-height:1.4; color:var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result .detail { margin-top:8px; color:var(--we-dim); line-height:1.6; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table-wrap { max-width:100%; overflow-x:auto; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-result-title { margin:0 0 10px; color:var(--b-primary-600); font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table { width:100%; margin-top:16px; border-collapse:collapse; font-size:15px; color:var(--b-text); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table th, html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table td { padding:12px 8px; border-top:1px solid var(--we-line); text-align:left; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table thead th { color:var(--we-dim); font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; border-top:0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table tbody th { font-weight:700; color:var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table td.num { font-variant-numeric:tabular-nums; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table .sig { color:var(--we-good); font-weight:800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-engine { display:inline-flex; align-items:center; gap:6px; margin:12px 0 0; padding:2px 12px; border-radius:999px; background:var(--b-primary-50); color:var(--b-primary-700); font-size:13px; font-weight:700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-models h3 { margin:0 0 6px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-models p { margin:12px 0 0; color:var(--we-dim); font-size:16px; line-height:1.65; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-models b { color:var(--we-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-note { margin:14px 0 0; color:var(--we-dim); font-size:14px; line-height:1.6; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how { margin-top:24px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how .body { padding:0 20px 18px; color:var(--we-dim); font-size:15px; line-height:1.65; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how dl { display:grid; grid-template-columns:160px 1fr; gap:10px 16px; margin:0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how dt { color:var(--we-ink); font-weight:800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how dd { margin:0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-lineups { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:4px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-lineups ul { margin:4px 0 0; padding-left:18px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-main a:not([class]):not([aria-current]) { color:var(--b-primary-600); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-empty b { color:var(--we-ink); }
@media (max-width:720px) {
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how dl { grid-template-columns:1fr; gap:2px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-how dt { margin-top:8px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-lineups { grid-template-columns:1fr; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table { font-size:13px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table th, html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table td { padding:10px 4px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-table thead th { font-size:11px; letter-spacing:.02em; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs { display:flex; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs li { flex:1 1 auto; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a { justify-content:center; width:100%; padding:8px 12px; }
}
/* the older accent sheet paints .we-btn.primary a brighter blue; keep the designer's indigo actions */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-cta a.b-btn { background: var(--b-primary) !important; border-color: var(--b-primary) !important; color: #fff !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-cta a.b-btn:hover { background: var(--b-primary-600) !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-cta a.b-btn-secondary { background: #fff !important; border: 1px solid var(--b-primary) !important; color: var(--b-ink) !important; }

/* ---------------------------------------------------------------- Forecast record (/track-record) */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page main.performance-layout.p5 { display: block; width: 100%; max-width: none; margin: 0; padding: 0; gap: 0; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-legacy { padding-top: 48px; padding-bottom: 72px; display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
/* the record's own tokens, moved onto the brand */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record { --rs-ink: var(--b-ink); --rs-ink2: var(--b-muted); --rs-mute: var(--b-muted); --rs-line: var(--b-line); --rs-soft: var(--b-soft); --rt-blue: var(--b-primary-600); font-size: 15px; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero { padding-top: 72px; padding-bottom: 40px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero h1 { font-size: 64px; line-height: 1.02; font-weight: 800; letter-spacing: -.015em; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero .b-lead { margin-top: 16px; max-width: 640px; color: var(--b-text); font-size: 20px; line-height: 1.5; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-paper-label { margin-top: 20px; font-size: 14px; color: var(--b-muted); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-paper-label > span { background: var(--b-primary); width: 8px; height: 8px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-saved-fact { border-color: var(--b-line); border-radius: var(--b-radius); font-size: 14px; color: var(--b-text); }
/* view tabs as the designer's pill tabs */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-topline { border-bottom: 0; padding-bottom: 8px; flex-wrap: wrap; gap: 12px 24px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections { gap: 4px; padding: 4px; border: 0; border-radius: var(--b-radius); background: var(--b-soft); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections button { min-height: 44px; padding: 8px 20px; border-radius: var(--b-radius); color: var(--b-ink); font: 700 15px/1.2 var(--b-font); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections button:hover { background: var(--b-primary-tint); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections button[aria-selected=true] { background: var(--b-primary); color: #fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections button[aria-selected=true]::after { display: none; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-global-sport, .rt-book-picker) { font-size: 14px; color: var(--b-muted); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-global-sport, .rt-book-picker, .rt-audit-select) select { min-height: 44px; border: 1px solid var(--b-line); border-radius: var(--b-radius); padding: 8px 12px; font: 600 15px/1.2 var(--b-font); color: var(--b-ink); background-color: #fff; }
/* headings and steps */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-step-heading h2, .rt-section-heading h2, .rt-empty h2) { font-size: 22px; font-weight: 800; color: var(--b-ink); letter-spacing: -.01em; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-step-heading p { font-size: 14px; color: var(--b-muted); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-step-number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--b-primary); color: #fff; font-size: 13px; font-weight: 800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-story-section { padding: 28px 0; border-bottom-color: var(--b-line); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-note, .rt-cohort) { color: var(--b-muted); font-size: 14px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-cohort b { color: var(--b-ink); font-weight: 700; }
/* tables */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-scroll, .rt-data .rt-scroll) { border-color: var(--b-line); border-radius: var(--b-radius); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record table { font-size: 15px; color: var(--b-text); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(th, td) { border-color: var(--b-line); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record thead th { color: var(--b-muted); font-size: 13px; font-weight: 800; background: var(--b-soft); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record tbody td strong, html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record tbody th { color: var(--b-ink); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record td small { color: var(--b-muted); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-summary-locked { color: var(--b-primary-700); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-text-link, a) { color: var(--b-primary-600); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-text-link { min-height: 44px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-search { min-height: 44px; border-radius: var(--b-radius); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-search input[type=search] { font-size: 16px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record :is(.rt-disclosure > summary, details > summary) { min-height: 44px; }
/* the record's call to action: designer card, indigo button */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-decision-cta { background: var(--b-primary-50); border: 0; border-radius: var(--b-radius); padding: 28px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-decision-cta h2 { font-size: 22px; font-weight: 800; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-decision-cta p { color: var(--b-text); font-size: 16px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-primary-link { min-height: 44px; padding: 8px 20px; border-radius: var(--b-radius); background: var(--b-primary); color: #fff !important; font: 700 16px/1.2 var(--b-font); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-primary-link:hover { background: var(--b-primary-600); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-cta-actions a:not(.rt-primary-link) { display: inline-flex; align-items: center; min-height: 44px; }
.p5-record-card { padding-top: 24px; }
@media (max-width: 767px) {
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero { padding-top: 40px; padding-bottom: 28px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero h1 { font-size: 40px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-hero .b-lead { font-size: 18px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections { width: 100%; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rs-sections button { flex: 1 1 auto; padding: 8px 10px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record select { font-size: 16px !important; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-record-wrap { padding: 0 12px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-record-card { padding: 16px 14px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .rt-record .rt-decision-cta { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- Betting Lab (/betting/lab): the tool as designer cards */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page.lab-page { --cl-1: #5663F0; --cl-2: #1F8A7E; --cl-neg: #C2410C; --cl-pos: #1F8A7E; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero { padding: 64px 0 32px; border: 0; background: #fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .b-lead { color: var(--b-text); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sports { display: inline-flex; gap: 4px; padding: 4px; background: var(--b-soft); border-radius: var(--b-radius); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sport { display: inline-flex; align-items: center; gap: 8px; height: auto; min-height: 44px; padding: 6px 18px; border: 0; border-radius: var(--b-radius); background: transparent; box-shadow: none; color: var(--b-ink); font: 700 15px/1.2 var(--b-font); text-decoration: none; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sport:hover { background: var(--b-primary-tint); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sport[aria-current=page] { background: var(--b-primary); color: #fff; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .report-link { display: inline-flex; align-items: center; min-height: 44px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab :is(.lab-controls, .lab-panel, .lab-status, .lab-advanced, .lab-fixture) { border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-fixture { padding: 24px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-fixture h2 { font-size: 22px; font-weight: 800; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-fixture-center strong { color: var(--b-primary); font-weight: 800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab :is(.lab-fixture p, .lab-fixture-center span, .lab-status p, .lab-panel-heading > span, .lab-annotation, .lab-cache-note, .lab-chart-empty) { color: var(--b-muted); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-panel-heading h2 { font-size: 20px; font-weight: 800; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-status > .ti { color: var(--b-primary); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-status strong { color: var(--b-ink); font-weight: 800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-field label { font-weight: 700; color: var(--b-ink); font-size: 15px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-field :is(select, input) { height: auto; min-height: 44px; border: 1px solid var(--b-line); border-radius: var(--b-radius); box-shadow: none; font: 600 16px/1.2 var(--b-font); color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-secondary { height: auto; min-height: 44px; padding: 8px 18px; border: 1px solid var(--b-primary); border-radius: var(--b-radius); background: #fff; box-shadow: none; color: var(--b-ink); font: 700 15px/1.2 var(--b-font); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-secondary:hover { background: var(--b-primary-50); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-table thead th { background: var(--b-soft); color: var(--b-muted); font-size: 13px; font-weight: 800; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-table :is(th, td) { border-top-color: var(--b-line); color: var(--b-text); font-size: 15px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-table tbody th { color: var(--b-ink); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-advanced > summary { min-height: 44px; font-weight: 800; color: var(--b-ink); }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .report-link { color: var(--b-primary-600); font-weight: 700; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .report-footer { border-top: 1px solid var(--b-line); color: var(--b-muted); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
@media (max-width: 767px) {
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero { padding: 36px 0 20px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sports { display: flex; width: 100%; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sport { flex: 1 1 0; justify-content: center; padding: 6px 4px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .lab-sport .sport-symbol { display: none; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab { gap: 16px; }
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab .lab-fixture { padding: 16px; }
}
/* the older accent and theme sheets set the example tabs and links with !important; the designer's pill tabs win here */
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a { border: 0 !important; background: transparent !important; color: var(--b-ink) !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a:hover { background: var(--b-primary-tint) !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-tabs a[aria-current="page"] { background: var(--b-primary) !important; color: #fff !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .we-main a:not([class]):not([aria-current]):not(.we-tabs a) { color: var(--b-primary-600) !important; text-decoration-color: currentColor !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .csv-jump a { color: var(--b-ink) !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page .p5-lab-hero .report-link { font-size: 16px; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page :is(.we-seg.home, .we-legend li.home::before) { background: var(--b-primary) !important; }
html:not(#p5a):not(#p5b):not(#p5c):not(#p5d) body.p5-page :is(.we-seg.away, .we-legend li.away::before) { background: var(--b-ink) !important; }
