/* Site additions on top of the mockups' styles.css: mobile menu (hamburger drawer), league picker, bottom bar. */
.hamb { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; border-radius: 8px; cursor: pointer; }
.hamb:hover { background: #1a2547; }
[popover] { border: 0; padding: 0; color: var(--ink); background: #fff; }
[popover]::backdrop { background: rgba(10, 16, 34, .45); }

/* Drawer: every section, grouped */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(86vw, 340px); height: 100dvh; max-height: none; overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0,0,0,.18); padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); }
.drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; }
.drawer .dh b { font-size: 16px; }
.drawer .x { background: none; border: 0; font-size: 26px; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--muted); }
.drawer h4 { margin: 14px 18px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer a { display: block; padding: 11px 18px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #f0f2f5; }
.drawer a.on { color: var(--accent); }
.drawer .help { margin: 16px 18px 0; font-size: 12.5px; color: var(--muted); }

/* League picker: OddsTrader-style icons, as a bottom sheet */
.lgsheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.lgsheet .dh { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.lgsheet .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lgsheet .grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 12px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.lgsheet .grid a .ic { height: 36px; display: grid; place-items: center; color: #23272e; }
.lgsheet .grid a.on { background: #f7f9ff; box-shadow: inset 0 0 0 2px var(--accent); }
.lgsheet .grid a.soon { color: #9aa2ae; pointer-events: none; }
.lgsheet .grid a.soon .ic { color: #b7bec8; }
.lgsheet .grid a small { font-size: 10px; font-weight: 600; text-transform: none; color: #9aa2ae; margin-top: -3px; }
.lgsheet .x { background: none; border: 0; font-size: 26px; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--muted); }

@media (max-width: 900px) {
  .hamb { display: inline-flex; }
  .tabbar { grid-template-columns: repeat(5, 1fr) !important; align-items: end; overflow: visible; }
  .tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0;
    font: inherit; font-size: 11px; font-weight: 650; padding: 8px 0 10px; color: var(--muted); cursor: pointer; }
  .tabbar .ti { display: grid; place-items: center; height: 22px; }
  .tabbar .ti svg { width: 22px; height: 22px; }
  .tabbar > .on { color: var(--ink); }
  /* the League button: bigger, raised, the current league's icon */
  .tabbar .lgbtn { padding-top: 0; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
  .tabbar .lgbtn .ring { width: 58px; height: 58px; margin-top: -22px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; }
  .tabbar .lgbtn .ring svg { width: 34px; height: 34px; }
  .tabbar .lgbtn.on .ring { box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgba(0,0,0,.12); }
}
@media (min-width: 901px) { .drawer, .lgsheet { display: none; } }

/* Hub pages (Learn, Tools): cards */
.page.one { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.hubhead { padding: 22px 22px 6px; }
.hubhead h1 { margin: 0 0 6px; font-size: 30px; }
.hubhead .lede { margin: 0; color: var(--muted); font-size: 16px; }
.hubgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hcard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.hcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); border-color: #cfd6e4; }
.hcard .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.hcard .ico svg { width: 26px; height: 26px; }
.hcard .bd { min-width: 0; flex: 1; }
.hcard h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.hcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hcard .meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--faint); }
.hcard .pill { background: var(--chip); color: var(--muted); border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.hcard .ex { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.hcard .arr { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 16px; }
.hcard.feature { grid-column: 1 / -1; background: linear-gradient(135deg, #0b1530 0%, #1a2a5e 100%); border: 0; color: #fff; }
.hcard.feature p, .hcard.feature .meta { color: #c9d3ea; }
.hcard.feature .pill { background: rgba(255,255,255,.14); color: #fff; }
.hcard.feature .arr { color: var(--brand); }
.hubsec { margin: 26px 4px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hubgrid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hubgrid.mini .hcard { padding: 14px; align-items: center; }
.hubgrid.mini .hcard .ico { width: 38px; height: 38px; border-radius: 11px; }
.hubgrid.mini .hcard .ico svg { width: 21px; height: 21px; }
.hubgrid.mini .hcard h3 { font-size: 15px; margin: 0; }
.hubgrid.mini .hcard p { font-size: 13px; }
.t-blue { background: #eaf0ff; color: #2450e6; } .t-green { background: #e7f6ef; color: #0f8a5f; }
.t-amber { background: #fff3e0; color: #b45309; } .t-violet { background: #f1ecff; color: #6d3fd6; }
.t-rose { background: #ffecef; color: #c2264b; } .t-teal { background: #e3f7f7; color: #0f7c80; }
@media (max-width: 900px) {
  .hubgrid:not(.mini) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hubhead { padding: 18px 16px 4px; } .hubhead h1 { font-size: 26px; }
  .hcard { padding: 16px; }
  .hubgrid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hubgrid.mini { gap: 8px; }
  .hubgrid.mini .hcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .hubgrid.mini .hcard h3 { font-size: 13.5px; }
}

/* ---------- Layout polish (UI review, Nov 2026) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* iOS: no text inflation in wide tables */
.vh .va, .strip .sshort { display: none; }
.prose a, .doc p a, .doc li a, .lede a, .pick .pf a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.nw { white-space: nowrap; }
.teamhead { display: flex; align-items: center; gap: 14px; }
.teamhead .badge { width: 56px; height: 56px; font-size: 15px; }
.teamhead .badge.b4 { font-size: 12px; }
.mk h3.injh { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.injh > a { font-size: 15px; color: var(--ink); }
.mk h3.injh .note { flex-basis: 100%; font-weight: 400; font-size: 12.5px; text-transform: none; letter-spacing: 0; padding-left: 30px; }
.chartkey { display: block; margin-top: 4px; }
.pc-narrow { display: none; }
.lgsec .lgh { flex-wrap: wrap; row-gap: 2px; }
.lgsec .lgh h2, .lgsec .lgh .note { white-space: nowrap; }
.lgsec .lgh .lgl { display: inline-flex; gap: 10px; margin-left: auto; }
.gcard .gbot .note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .gbot .spacer { display: none; }
.gcard .gbot a { white-space: nowrap; }

@media (max-width: 900px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }          /* the footer clears the bottom bar */
  .page, .page.two { padding-bottom: 18px; }
  /* scroll hints: the ticker and the league tabs fade out at the right edge */
  .strip .wrap, .subnav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; }
  .strip .sfull { display: none; } .strip .sshort { display: inline; }
  .strip .wrap { gap: 14px; }
  /* odds boards: no Fair column on phones until the Pinnacle feed, and every app's column visible */
  .board.odds th:nth-child(n+5), .board.odds td:nth-child(n+5) { display: table-cell; }
  .board.odds th:nth-child(2), .board.odds td:nth-child(2):not([colspan]) { display: none; }
  .legend .lg-fair { display: none; }
  .board.fut th:nth-child(n+5), .board.fut td:nth-child(n+5) { display: table-cell; }
  .board.fut th:last-child, .board.fut td:last-child { display: none; }
  .board.odds th, .board.fut th { padding: 8px 3px; }
  .board.odds td, .board.fut td { padding-left: 2px; padding-right: 2px; }
  .board .cell { min-width: 60px; }
  .board .cell.lowcol { min-width: 66px; align-items: center; padding: 3px 6px; }
  .board .cell.lowcol .p { display: flex; flex-direction: column; align-items: center; line-height: 1.12; }
  .board .cell.lowcol small { font-size: 10px; }
  .vh { flex-direction: column; gap: 3px; }
  .vh .vn { display: none; } .vh .va { display: inline; }
  .board .team .nm.keep { display: inline; max-width: none; white-space: normal; font-size: 13px; line-height: 1.2; }
  .board.odds td.game, .board.fut td.game, .board.odds th:first-child, .board.fut th:first-child { padding-left: 10px; }
  /* tap targets */
  .seg button { padding: 8px 14px; font-size: 13px; }
  footer a { padding: 6px 0; }
  details summary { padding: 4px 0; }
  .calc .row > div { flex: 1 1 100%; }
  .calc input, .calc select { max-width: none !important; font-size: 16px !important; }   /* 16px: iOS doesn't zoom on focus */
  .pc-wide { display: none; } .pc-narrow { display: block; }
  .cmp td.nw .note { display: block; }
  .teamhead .badge { width: 46px; height: 46px; font-size: 13px; }
  .teamhead h1 { font-size: 24px; line-height: 1.2; }
}
/* SEO heading levels: same look as before */
.drawer .dh4 { margin: 14px 18px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mk h2.mkh { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 0; padding: 12px 16px 6px; display: flex; justify-content: space-between; }
.mk h2.injh { flex-wrap: wrap; align-items: center; gap: 4px 8px; justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.mk h2.injh .note { flex-basis: 100%; font-weight: 400; font-size: 12.5px; text-transform: none; letter-spacing: 0; padding-left: 30px; }
.hubhead h1 { font-size: 28px; line-height: 1.2; }
@media (max-width: 900px) { .hubhead h1 { font-size: 24px; } }
.hubgrid + .hubsec, .hubhead + .hubsec { margin-top: 18px; }

/* Game page: spread / total cards */
.mkc { margin-top: 14px; padding: 4px 0 12px; }
.mkc .mkch { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; }
.mkc .mkch h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.mkc .mkch .note { margin-left: auto; font-size: 12px; }
.mkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid #f0f2f5; }
.mkl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mkl b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mkl .ou { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--muted); font-size: 11px; font-weight: 800; flex: none; }
.mkbest { display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 6px 12px; border-radius: 10px;
  border: 1.5px solid var(--best); background: var(--best-bg); line-height: 1.1; }
.mkbest .p { font-size: 17px; font-weight: 800; color: var(--best); font-variant-numeric: tabular-nums; }
.mkbest .v { font-size: 11px; color: var(--muted); font-weight: 600; }
.mkbest.none { border-color: var(--line); background: #fafbfc; }
.mkbest.none .p { color: var(--faint); }
.mkoth { display: flex; gap: 6px; }
.mkoth .oc { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); line-height: 1.1; }
.mkoth .p { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkoth .p.na { color: #c2c8d0; } .mkoth .p.st { color: var(--faint); text-decoration: line-through; }
.mkoth .v { font-size: 11px; color: var(--muted); font-weight: 600; order: 2; }
.mklines { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; border-top: 1px solid #f0f2f5; }
.mklines > .note { flex: none; font-size: 12px; }
.mklines .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 2px; }
.mklines .chips::-webkit-scrollbar { display: none; }
.mklines button { flex: none; font: inherit; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.mklines button.main { border-color: #c9ced6; }
.mklines button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.alllines { margin-top: 8px; padding: 0; }
.alllines > summary { padding: 12px 16px; font-size: 13px; }
.alllines .ladtable { padding: 0 0 8px; }
@media (max-width: 900px) {
  .mkrow { gap: 8px; padding: 8px 12px; }
  .mkl b { font-size: 14px; }
  .mkbest { min-width: 76px; padding: 6px 8px; }
  .mkoth .oc { min-width: 58px; padding: 6px 6px; }
  .mklines { padding: 10px 12px 0; }
}
.board .team .lnl { font-weight: 750; font-variant-numeric: tabular-nums; margin-left: 4px; white-space: nowrap; }
.board .team:has(.gm) { flex-wrap: wrap; row-gap: 0; }
.board .team .gm { flex-basis: 100%; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.board .cell .s { white-space: nowrap; }
@media (max-width: 900px) { .board .cell .s { font-size: 9.5px; } }

/* Game page price chart: team switch, key, tap-for-price */
.pchartc .tsw { display: inline-flex; background: var(--chip); border-radius: 10px; padding: 3px; margin: 10px 0 6px; }
.pchartc .tsw button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font: inherit; font-weight: 650; font-size: 13px;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pchartc .tsw .badge { width: 20px; height: 20px; font-size: 7.5px; }
.pchartc .tsw b { font-variant-numeric: tabular-nums; }
.pchartc .tsw button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pchartc .ckey { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 6px 0 2px; }
.pchartc .ckey i { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid; vertical-align: middle; margin-right: 5px; }
.pchartc .ckey i.d { border-top-style: dashed; }
.pchartc .cwrap { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pchartc .ctip { position: absolute; top: 2px; pointer-events: none; background: #0b1530; color: #fff; border-radius: 8px; padding: 6px 9px;
  font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translateX(-50%); z-index: 2; }
.pchartc .ctip b { font-variant-numeric: tabular-nums; } .pchartc .ctip .v0 { color: #5be3b4; } .pchartc .ctip .v1 { color: #9db3ff; }
.board tbody.dayh td { background: #f4f6fa; font-size: 12px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 7px 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .board tbody.dayh td { padding: 7px 10px; } }

/* Fair line (Pinnacle, margin removed) */
.cell.fair.on { border-style: solid; background: #f4f6fa; }
.cell.fair.on .p { color: var(--ink); }
.cell.lowcol .fl { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.cell.lowcol.value { border-color: var(--best); background: var(--best-bg); }
.cell.lowcol.value .p, .cell.lowcol.value .fl b { color: var(--best); }
.mkbest.value { box-shadow: 0 0 0 2px var(--best-bg); }
.mkoth .oc.fairc { background: #f4f6fa; border-style: dashed; }
.mkoth .oc.fairc .v { order: 0; }
@media (min-width: 901px) { .cell.lowcol .fl { display: none; } .cell.lowcol.value .fl { display: block; } }

/* Menu (drawer): live / next game card from /menu.json, shortcut tiles, collapsible league sections */
.drawer.d2 { padding-top: 4px; background: #fff; }
.d2 .mlive { display: block; margin: 6px 14px 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid #cfe9dc;
  background: linear-gradient(180deg, #f2fbf6, #fff); color: var(--ink); }
.d2 .mlive.next { border-color: var(--line); background: #f7f9fc; }
.d2 .mlh, .d2 .mlg, .d2 .mlt { display: flex; align-items: center; gap: 8px; }
.d2 .sp { flex: 1; }
.d2 .mlh b { font-size: 12px; letter-spacing: .08em; color: #0f8a5f; }
.d2 .mlive.next .mlh b { color: var(--muted); }
.d2 .dotl { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.d2 .all { font-size: 13px; font-weight: 700; color: #0f8a5f; }
.d2 .mlive.next .all { color: var(--accent); }
.d2 .mlg { margin: 8px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.d2 .mlg .clk { color: #e5484d; letter-spacing: 0; }
.d2 .mlive.next .mlg .clk { color: var(--muted); }
.d2 .mlt { padding: 4px 0; font-size: 15px; font-weight: 600; }
.d2 .mlt .badge { width: 22px; height: 22px; font-size: 8px; }
.d2 .mlt b { font-size: 17px; font-variant-numeric: tabular-nums; }
.d2 .mlt b.pr { font-size: 15px; color: var(--best); }
.d2 .mtop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 14px 12px; border-bottom: 1px solid #eef0f4; }
.d2 .mtop a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #f5f7fa; font-weight: 650;
  color: var(--ink); border: 0; }
.d2 .mtop .tic { width: 22px; text-align: center; color: var(--accent); }
.d2 .msec { border-bottom: 1px solid #eef0f4; padding: 0; }
.d2 .msec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-size: 16px; font-weight: 700; cursor: pointer; }
.d2 .msec > summary::-webkit-details-marker { display: none; }
.d2 .msec .mi { width: 24px; height: 24px; display: grid; place-items: center; color: #23272e; }
.d2 .msec .mi svg { width: 22px; height: 22px; }
.d2 .chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #8a93a0; border-bottom: 2px solid #8a93a0; transform: rotate(45deg); transition: transform .15s; }
.d2 .msec[open] .chev { transform: rotate(-135deg); border-color: var(--accent); }
.d2 .msec[open] > summary { color: var(--ink); }
.d2 .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 0 18px 14px 52px; }
.d2 .mgrid a { padding: 9px 0; font-weight: 550; color: var(--muted); border: 0; font-size: 14.5px; }
.d2 .help { margin: 16px 18px 0; font-size: 12.5px; color: var(--muted); }
.d2 .mtop .tic { display: grid; place-items: center; height: 22px; }
.d2 .mtop .tic svg { width: 22px; height: 22px; }
.d2 .mlive[hidden] { display: none; }
.d2 .mlt .nm { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.d2 .mlt .badge, .d2 .mlt b { flex: none; }
.d2 .mlt .badge.b4 { font-size: 6.5px; }

/* Game cards (Today, games today / tomorrow): the whole card opens the game page. The card's one link ("Odds →")
   is stretched over it, so there's still a single link per game (no nested links, no JavaScript). */
.gcard { position: relative; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.gcard .gbot a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gcard:hover { border-color: #c9d3e3; box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
.gcard.in:hover { border-color: #ec9c95; }
.gcard:active { background: #f7f9fc; }
.gcard .gbot a:focus-visible { outline: none; }
.gcard:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ▲▼ price moved 1c+ in the last hour */
.mv { font-style: normal; font-size: .62em; margin-right: 3px; vertical-align: .18em; }
.mv.up { color: #0f8a5f; }
.mv.dn { color: #d0453b; }

/* Game page: the lowest-price tile opens that app's market */
.bestbar a.trade .tr { color: var(--accent); font-weight: 700; }
.bestbar a.trade:hover .tr { text-decoration: underline; }

/* Price format switch (¢ / % / US), next to the freshness note */
.fmt { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-right: 8px; vertical-align: middle; }
.fmt button { border: 0; background: #fff; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; cursor: pointer; }
.fmt button + button { border-left: 1px solid var(--line); }
.fmt button.on { background: var(--ink); color: #fff; }
.sumline { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.sumline .spacer { flex: 1; }
.sumline .fmt { margin: 2px 0; }
.cell .p { position: relative; }
.cell .p .mv { position: absolute; right: 100%; top: .45em; margin-right: 2px; }

/* Home: live games summary */
.livepill { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 4px 11px; border-radius: 999px;
  background: #fdeceb; color: #c2372f; font-weight: 700; font-size: 13px; border: 1px solid #f6c9c5; }
.livepill .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.18); animation: lp 1.6s ease-in-out infinite; }
@keyframes lp { 50% { opacity: .35; } }
.livetag { margin-left: 10px; color: #c2372f; font-weight: 700; font-size: 13px; }

/* Boards on phones: the game's status line (start time, or ● LIVE · clock) above its first row; on wider screens
   it stays in its own column. */
.team .when .lvw { font-style: normal; display: none; }
@media (max-width: 900px) {
  .board tr.g1 .team { flex-wrap: wrap; row-gap: 1px; }
  .board tr.g1 .team .when { display: block; flex-basis: 100%; width: auto; font-size: 11.5px; line-height: 1.2; }
  .board tr.g1 .team .when .lvw { display: inline; }
  .board tr.g1 .team .when .live { font-weight: 700; letter-spacing: .01em; }
}

/* Line movement */
.dch { display: inline-block; min-width: 38px; text-align: center; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: 12.5px; }
.dch.up { background: #e6f6ee; color: #0f7a54; }
.dch.dn { background: #fdecec; color: #c2372f; }
.dch.z { color: var(--muted); }
.steam { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: #fff1e0; color: #b45309; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.mvlist { list-style: none; margin: 0; padding: 0 8px; }
.mvlist li a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-top: 1px solid #f0f2f5; color: var(--ink); }
.mvlist .mvt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvlist .mvp { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mvtable td { vertical-align: middle; }
.mvtable .nw { white-space: nowrap; }
@media (max-width: 600px) { .mvlist .mvt .note { display: none; } }
.mvnote { padding: 0 20px 14px; margin: -6px 0 0; }
.movesbox { margin-top: 14px; }
.mvtable .mob { display: none; margin-top: 3px; }
@media (max-width: 700px) { .mvtable .wd { display: none; } .mvtable .mob { display: block; } .mvtable .nw { white-space: normal; } }

/* Big trades / smart money */
.trlist { list-style: none; margin: 0; padding: 0 8px 6px; }
.trd { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-top: 1px solid #f0f2f5; font-size: 14px; }
.trd .tamt { flex: none; min-width: 64px; font-weight: 800; font-variant-numeric: tabular-nums; }
.trd .tbody { flex: 1; min-width: 0; line-height: 1.45; }
.trd .twal { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.trd.smart { background: #f4fbf7; border-radius: 8px; }
.smt { display: inline-block; padding: 0 6px; border-radius: 5px; background: #0f7a54; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.tradesbox { margin-top: 14px; }
.trd .tamt small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }

/* Betting splits */
.split{padding:4px 14px 12px}
.split .spl{display:flex;align-items:center;gap:6px;font-size:14px;margin-bottom:6px}
.split .spr{display:flex;align-items:center;gap:8px;margin:4px 0}
.split .spk{width:52px;font-size:12px;color:var(--muted,#667)}
.split .spb{flex:1;display:flex;height:22px;border-radius:6px;overflow:hidden;background:#eef0f3}
.split .spb.thin{height:16px;opacity:.75}
.split .spb i{font-style:normal;font-size:12px;font-weight:600;line-height:22px;color:#fff;white-space:nowrap;overflow:hidden;min-width:0}
.split .spb.thin i{line-height:16px;font-size:11px}
.split .spb i.a{background:#2f6fde;padding-left:6px}
.split .spb i.h{background:#e0663a;text-align:right;padding-right:6px}
.split .spn{margin-top:6px}
.splitgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px;margin-top:14px}
.splitgrid .card{margin:0}
.splow{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0 14px 12px;font-size:13px}
.splow a{border:1px solid #e3e6ea;border-radius:6px;padding:3px 8px;text-decoration:none}
.moneybox{margin-top:14px}
@media (max-width:600px){.splitgrid{grid-template-columns:1fr}}
.split .spl>span{display:inline-flex;align-items:center;gap:6px}
.split .spl .badge,.split .spl img{flex:none}
.split .sptot{margin:8px 0 2px;font-size:14px}
.split .sptot b{font-size:16px}
.pgtot{padding:0 16px 8px;font-size:15px}
.pgtot b{font-size:18px}
/* Kalshi / Polymarket switch (betting splits) */
.vsw{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;vertical-align:middle}
.vsw button{border:0;background:#fff;color:var(--muted);font:inherit;font-size:13px;font-weight:700;padding:5px 12px;cursor:pointer}
.vsw button+button{border-left:1px solid var(--line)}
html:not([data-venue=polymarket]) .vsw button[data-v=kalshi],html[data-venue=polymarket] .vsw button[data-v=polymarket]{background:var(--ink);color:#fff}
html:not([data-venue=polymarket]) .vpanel[data-v=polymarket],html[data-venue=polymarket] .vpanel[data-v=kalshi]{display:none}
.vswlab{font-size:12px;color:var(--muted);margin-right:8px}
.lvred{color:var(--live,#c2372f);font-weight:700}
/* price cells that open the app's market */
a.cell.go { display: inline-flex; text-decoration: none; color: inherit; position: relative; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
a.cell.go:hover { border-color: var(--ink); box-shadow: 0 1px 6px rgba(16, 24, 40, .12); }
a.cell.go:not(.lowcol)::after { content: "↗"; position: absolute; top: 1px; right: 4px; font-size: 9px; color: var(--faint); }
a.cell.go:hover::after { color: var(--ink); }
/* start times (macros.lt) */
time.lt .tzn { font-size: .78em; font-weight: 600; color: var(--muted); }
time.lt .wdx { font-size: .85em; font-weight: 700; color: #b45309; }
/* Games today: league chips, capped lists, finals */
.chips { display: flex; gap: 8px; padding: 0 16px 14px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips small { font-weight: 600; opacity: .7; margin-left: 3px; }
.tdy[data-f="nfl"] .gcard:not([data-lg="nfl"]),
.tdy[data-f="nba"] .gcard:not([data-lg="nba"]),
.tdy[data-f="mens-college-basketball"] .gcard:not([data-lg="mens-college-basketball"]) { display: none; }
.glist.capped:not(.uncap):not([data-cap]) > .gcard:nth-child(n+7),
.glist.capped[data-cap="12"]:not(.uncap) > .gcard:nth-child(n+13) { display: none; }
.tdy[data-f]:not([data-f="all"]) .showall { display: none; }
.showall { display: block; width: 100%; margin: 10px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.tsec details > summary { list-style: none; cursor: pointer; }
.tsec details > summary::-webkit-details-marker { display: none; }
.sumline .tmr { font-size: 13px; margin-right: 10px; }
.sumline .tmr a { font-weight: 700; }
.gcard .glg { font-weight: 700; margin-right: 6px; }
.gcard .glg + .note::before { content: "· "; }
/* Home: market pulse (right rail on desktop, after the first board on phones) */
.mpulse { overflow: hidden; }
.mpulse > input { position: absolute; opacity: 0; pointer-events: none; }
.mpulse .ptabs { display: flex; gap: 4px; padding: 4px 10px 8px; border-bottom: 1px solid var(--line); }
.mpulse .ptabs label { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 4px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.mpulse .pt-mv:checked ~ .ptabs label[for$="-mv"], .mpulse .pt-mn:checked ~ .ptabs label[for$="-mn"], .mpulse .pt-tr:checked ~ .ptabs label[for$="-tr"] { background: var(--ink); color: #fff; }
.mpulse > input:disabled + * { }
.mpulse .pp { display: none; }
.mpulse .pt-mv:checked ~ .pp-mv, .mpulse .pt-mn:checked ~ .pp-mn, .mpulse .pt-tr:checked ~ .pp-tr { display: block; }
.mpulse .plist { list-style: none; margin: 0; padding: 0; }
.mpulse .plist li + li { border-top: 1px solid var(--line); }
.mpulse .plist a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 14px; text-decoration: none; color: inherit; }
.mpulse .plist a:hover { background: #f7f9fc; }
.mpulse .pt { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpulse .pt .badge { width: 22px; height: 22px; font-size: 8px; flex: none; }
.mpulse .pv { font-size: 13px; white-space: nowrap; text-align: right; }
.mpulse .pn { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.mpulse .pmore { display: block; padding: 9px 14px 12px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line); }
.mpulse.pulse-m { margin-top: 14px; }
@media (min-width: 901px) { .mpulse.pulse-m { display: none; } }
@media (max-width: 900px) { .mpulse.pulse-d { display: none; } }
/* Large trades: venue chips, in-game tag, before/in-game tabs */
.vchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.vchip.v-polymarket_com { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.vchip.v-kalshi { border-color: #bbe5d4; background: #ecfaf4; color: #046c4e; }
.vchip.v-polymarket_us { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.trd .tmeta { display: block; margin-top: 2px; }
.trd .igtag { font-size: 10.5px; font-weight: 800; color: #b45309; border: 1px solid #f3d19c; background: #fff8eb; border-radius: 5px; padding: 0 5px; margin-left: 4px; }
.trd.ingame .tamt { color: var(--muted); }
.trtabs > input { position: absolute; opacity: 0; pointer-events: none; }
.trtabs .ptabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.trtabs .ptabs label { flex: 1; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.trtabs .ptabs small { font-weight: 600; opacity: .7; }
#trt-pre:checked ~ .ptabs label[for="trt-pre"], #trt-ig:checked ~ .ptabs label[for="trt-ig"] { background: var(--ink); color: #fff; }
.trtabs .tp { display: none; }
#trt-pre:checked ~ .tp-pre, #trt-ig:checked ~ .tp-ig { display: block; }
/* Who holds what (gen/positions.py) */
.held { padding: 4px 16px 10px; }
.held .hrow { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.held .hk { font-size: 13px; font-weight: 700; color: var(--muted); }
.held .hv { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.held .hv .badge { width: 22px; height: 22px; font-size: 8px; }
.held .hlist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; }
.held .hlist li { padding: 4px 0; }
@media (max-width: 900px) { .held .hrow { grid-template-columns: 1fr 1fr; } .held .hk { grid-column: 1 / -1; } }
/* Game recap (gen/recap.py) */
.pchartc .rfinal { margin: 0 0 6px; font-size: 15px; }
.pchartc .rhead { margin: 0 0 4px; font-size: 15.5px; line-height: 1.45; }
.pchartc .rdetail { margin: 0 0 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
/* Holiday slate banner */
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 16px; margin-bottom: 14px; text-decoration: none; color: inherit; border-left: 4px solid #d97706; background: #fffaf0; }
.promo:hover { background: #fff3dc; }
.promo .pt { font-size: 15px; }
.promo .pn { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.lgh + .promo, .card + .promo { margin-top: 14px; }
/* Holiday slate page */
.spfacts { list-style: none; margin: 0; padding: 6px 16px 8px; font-size: 14px; }
.spfacts li { padding: 5px 0; border-top: 1px solid var(--line); }
.spfacts .k { display: inline-block; min-width: 120px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) { .spfacts .k { display: block; min-width: 0; } }
/* How the pre-game signals did (gen/outcomes.py) */
.verdicts { list-style: none; margin: 0; padding: 0; }
.verdicts li { display: grid; grid-template-columns: 210px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.verdicts .vk { font-size: 13px; font-weight: 700; color: var(--muted); }
.verdicts .vr { font-weight: 800; font-size: 13px; white-space: nowrap; }
.verdicts li.hit .vr { color: #047857; }
.verdicts li.miss .vr { color: #b91c1c; }
@media (max-width: 900px) { .verdicts li { grid-template-columns: 1fr auto; } .verdicts .vk { grid-column: 1 / -1; } }
/* Results & analysis */
.sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.sig { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sig .sk { font-size: 13px; font-weight: 700; color: var(--muted); }
.sig .sv { font-size: 15px; margin: 2px 0; }
.sig .sv b { font-size: 24px; }
.resg .rhit { color: #047857; font-weight: 800; }
.resg .rmiss { color: #b91c1c; font-weight: 800; }
/* market prediction box (game pages, team pages) */
.predbox{margin:0 20px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.predbox .pk{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#667)}
.predbox .pmain{font-size:18px;margin:2px 0 8px}
.predbox .pbar{height:6px;border-radius:3px;background:var(--line,#dde);overflow:hidden}
.predbox .pbar span{display:block;height:100%;background:var(--accent,#2563eb)}
.predbox .pfacts{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;font-size:14px}
.predbox .pfacts .note{flex-basis:100%;font-size:12px}
/* picks: edge %, buy button, phone results table */
.pick .pedge{color:var(--best);font-weight:600}
.pick .pfl{display:flex;gap:12px;align-items:center}
.pick .pf a.pbuy{background:var(--accent);color:#fff;padding:6px 12px;border-radius:8px;font-weight:600;text-decoration:none;white-space:nowrap}
.pick .pf a.pbuy:hover{filter:brightness(1.08)}
@media (max-width:640px){
  table.cmp .hm{display:none}
  table.cmp td,table.cmp th{padding-left:6px;padding-right:6px}
  .pick .pf{flex-wrap:wrap;gap:8px}
}
/* picks: league switch */
.pklg{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 4px}
.pklg a,.pklg span{border:1px solid var(--line);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600;color:var(--muted);text-decoration:none}
.pklg span.on{background:var(--ink);color:#fff;border-color:var(--ink)}
/* holiday slate: each game's name is a visible link to its page */
.spgame h2 a.spgl{color:var(--accent);text-decoration:none}
.spgame h2 a.spgl:hover{text-decoration:underline}
.spgame .rfinal a{color:inherit}

/* Fair column live (FAIR_PUBLIC=1): it replaces "Lowest price"; the outlined app cell is the lowest, filled light
   green when it is under fair. Phones show the Fair column too. */
.board.fairon .cell.low.value { background: var(--best-bg); border-color: var(--best); }
.board.fairon .cell.low.value .p { color: var(--best); }
.cell.fair .uf { color: var(--best); font-weight: 700; }
.legend .cell.low.value { background: var(--best-bg); border-color: var(--best); }
@media (max-width: 900px) {
  .board.odds.fairon th:nth-child(2), .board.odds.fairon td:nth-child(2):not([colspan]) { display: table-cell; }
  .board.fairon .cell.fair { min-width: 56px; }
  .legend .lg-fair { display: inline; }
}
.cell.fair.on.lv { background: #fff; border-style: dashed; }
.cell.fair.on.lv .s { color: var(--accent); font-weight: 600; }
/* Quick answer box at the top of game pages (Nov 30 2026): favorite + chance, cheapest app per team vs fair */
.qa{margin:2px 20px 12px;padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--best,#0a7d32);border-radius:10px;background:var(--bg)}
.qa .qak{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#667)}
.qa .qam{margin:4px 0 8px;font-size:17px}
.qa .qas{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:14px}
.qa .qabtn{display:inline-block;padding:4px 10px;border-radius:8px;background:var(--best,#127a3f);color:#fff;text-decoration:none;font-size:13px;margin:2px 0}.qa .qabtn b{color:#fff}.qa .qabtn:hover{filter:brightness(1.08)}
.qa .qas>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.qa .qat{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.qa .qav{margin:8px 0 0;font-size:14px;font-weight:600}
@media (max-width:640px){.qa{margin:2px 12px 12px}.qa .qam{font-size:16px}}
@media (max-width: 900px){ .board .team .ab{display:inline-block;max-width:9.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-weight:700} }
.tdy .gcard[hidden], .tdy .tsec[hidden], .tdy .showall[hidden] { display: none !important; }

/* ---- Dec 1 layout audit ---- */
/* Games today search: inside the card's padding, no edge contact */
.tsearch { display: block; box-sizing: border-box; margin: 0 16px 16px; width: calc(100% - 32px); max-width: 320px; padding: 9px 12px; border: 1px solid #d5dae3; border-radius: 10px; font: inherit; background: #fff; }
.tsearch:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 111, 235, .25); }
/* 4-letter team codes fit their circle */
.badge.b4 { font-size: 7px; letter-spacing: -.03em; }
.teamhead .badge.b4 { font-size: 11px; }
/* Boards on desktop: full team names (the old 150px cap left empty space), live status on two lines instead of "1st Hal…" */
@media (min-width: 901px) {
  .board .team .nm { max-width: 260px; }
  .board .team .when { white-space: normal; line-height: 1.15; width: 74px; overflow: hidden; text-overflow: clip; }
}
/* Even price boxes; the last column clears the card edge */
.board .cell { min-width: 66px; box-sizing: border-box; }
.board td:last-child { padding-right: 10px; }
/* Section tabs never wrap; fade hints that the strip scrolls */
.subnav { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.subnav::-webkit-scrollbar { display: none; }
.subnav .lg { white-space: nowrap; }
/* Number columns line up */
.cmp td.num, .cmp th.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cmp.wk { table-layout: fixed; }
.cmp.wk th:nth-child(1) { width: 46%; } .cmp.wk th:nth-child(2) { width: 22%; }
/* Reading width for articles */
.doc p, .doc li, .doc blockquote { max-width: 68ch; }
/* Hub cards: footer (chip, arrow) at the bottom of every card in a row */
.hcard .bd { display: flex; flex-direction: column; align-self: stretch; }
.hcard .meta { margin-top: auto; padding-top: 10px; }
/* Tap targets on touch screens */
@media (pointer: coarse) {
  .fmt button { min-width: 40px; min-height: 36px; }
  .crumbs a { display: inline-block; padding: 8px 0; }
  footer a { display: inline-block; padding: 5px 0; }
}
/* Headings don't leave one word on the last line */
h1, h2, .hcard h3 { text-wrap: balance; }
time.lt, .tzn { white-space: nowrap; }
/* Live "lowest price" cards: name and price never touch */
.bestbar a { gap: 10px; }
.bestbar a > div { min-width: 0; }
.bestbar a > div:last-child { flex: none; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- One page header for every page type ----
   Inset 20px on desktop, 16px on phones (cards, headers, summaries); one H1 size; breadcrumbs above the first card. */
:root { --inset: 20px; }
@media (max-width: 900px) { :root { --inset: 16px; } }
.page.noside { grid-template-columns: 72px minmax(0, 1fr); }
.page.two.noside, .page.one.noside { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page.noside { grid-template-columns: minmax(0, 1fr); } }
main > .crumbs { display: block; padding: 0 2px 8px; }
main h1, .head h1, .doc h1, .hubhead h1, .teamhead h1, .gtitle h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; }
@media (max-width: 900px) { main h1, .head h1, .doc h1, .hubhead h1, .teamhead h1, .gtitle h1 { font-size: 22px; } }
.head, .hubhead { padding: 18px var(--inset) 10px; }
.card.pad, .doc { padding: var(--inset); }
.head .lede, .hubhead .lede, .doc .lede, .card.pad > .lede { font-size: 15px; color: var(--muted); }
.sumline, .chips { padding-left: var(--inset); padding-right: var(--inset); }
.tsearch { margin-left: var(--inset); margin-right: var(--inset); width: calc(100% - 2 * var(--inset)); }
.board td.game, .board th:first-child { padding-left: var(--inset); }
.gtitle { padding: 18px var(--inset) 0; }
.bestbar { padding: 0 var(--inset) var(--inset); }
.bbhead { padding-left: var(--inset) !important; padding-right: var(--inset) !important; }
.board .team .when time.lt { white-space: normal; }

/* ---- Game header before the game: one row per team (chance, cheapest price, form) ---- */
.gh2 { padding: 4px var(--inset) 18px; }
.gh2 .hint { font-size: 11px; color: var(--faint); text-align: right; margin: 0 0 2px; text-transform: uppercase; letter-spacing: .05em; }
.gh2 .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gh2 .badge.big { width: 44px; height: 44px; font-size: 13px; }
.gh2 .tn { font-weight: 750; font-size: 18px; line-height: 1.25; }
.gh2 .tn a { color: var(--ink); }
.gh2 .nm small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.gh2 .buy { display: inline-block; white-space: nowrap; margin-top: 8px; background: var(--best, #127a3f); color: #fff; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.gh2 .buy.plain { background: var(--chip); color: var(--ink); }
.gh2 .buy b { font-weight: 800; }
.gh2 .nm small.am { margin-top: 4px; }
.gh2 .pc { text-align: right; line-height: 1.15; padding-top: 2px; }
.gh2 .pc b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gh2 .pc span { display: block; font-size: 12px; color: var(--muted); }
.gh2 .pc.fav b { color: var(--best, #127a3f); }
.gh2 .good { color: var(--best, #127a3f); font-weight: 600; }
.gh2 .facts { font-size: 13.5px; color: var(--muted); padding: 10px 0 0; }
.gh2 .qav { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.gh2 .meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gh2 .meta b { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) { .gh2 .tn { font-size: 17px; } .gh2 .badge.big { width: 40px; height: 40px; font-size: 12px; } .gh2 .buy { font-size: 13.5px; } }
@media (max-width: 380px) { .gh2 .buy { white-space: normal; } }
/* Recent form, head-to-head, our read */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; gap: 14px; } }
.form h3 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.form h3 .badge { width: 22px; height: 22px; font-size: 8px; }
.form .sum { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.form ol { list-style: none; margin: 0; padding: 0; }
.form li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.form .wl { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.form .wl.w { background: #12a150; } .form .wl.l { background: #d0473b; }
.form .cp { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h2h { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.read { background: #f5f8ff; border: 1px solid #dfe7fb; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; margin: 0 0 12px; }
.read b.k { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #3757c5; margin-bottom: 2px; }
.gh2 .row + .meta { border-top: 0; margin-top: 0; }
.gpred { font-size: 13px; color: var(--muted); padding: 2px 0 6px; } .gpred b { color: var(--ink); }

/* ---- Legal by state (/legal/) ---- */
.page.one:has(.legal) { max-width: 920px; }
.legal p, .legal li { max-width: none; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill.available { background: #e5f4e4; color: #0b6b35; }
.pill.restricted, .pill.not_available { background: #fbebeb; color: #a5261c; }
.pill.unclear { background: #f9eeda; color: #8a5a00; }
.answer { border-left: 4px solid var(--best, #127a3f); background: #f4fbf7; border-radius: 10px; padding: 14px 16px; margin: 12px 0 4px; font-size: 16px; line-height: 1.5; }
.answer.no { border-color: #c2382d; background: #fdf3f2; }
.answer b.k { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.legal table.apps, .legal table.hubt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal .apps th, .legal .apps td, .legal .hubt th, .legal .hubt td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal .apps th, .legal .hubt th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.legal .apps td.n { font-size: 13.5px; color: var(--muted); }
.legal .hubt td { vertical-align: middle; }
.tl { list-style: none; margin: 0 0 0 6px; padding: 0; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 14px 18px; font-size: 14.5px; line-height: 1.45; }
.tl li:before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #98a2b3; }
.tl li.big:before { border-color: #c2382d; background: #c2382d; }
.tl .d { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.tl .ty { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-left: 6px; }
.tl .st { font-size: 13px; color: var(--muted); }
.sum5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.sum5 div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--muted); }
.sum5 b { display: block; font-size: 20px; color: var(--ink); }
@media (max-width: 700px) { .sum5 { grid-template-columns: 1fr 1fr; } .legal .hubt th, .legal .hubt td { padding: 7px 4px; } .legal .hubt .pill { font-size: 10.5px; padding: 2px 6px; } }
.legal .srcs { font-size: 13px; color: var(--muted); }
.legal .disc { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.legal .hubt td:first-child { white-space: nowrap; }
.legal .hubt td:not(:first-child), .legal .hubt th:not(:first-child) { text-align: center; }
.legal .hubt .pill { min-width: 34px; text-align: center; }
.legal .hubt .sh { display: none; }
@media (max-width: 700px) { .legal .hubt .lg { display: none; } .legal .hubt .sh { display: inline; } .legal .hubt th { font-size: 10px; letter-spacing: 0; } }
.legal .hubt th { overflow-wrap: normal; word-break: normal; }
@media (max-width: 700px) {
  .legal .hubt td:first-child { white-space: normal; font-size: 13.5px; }
  .legal .hubt .pill { min-width: 0; padding: 2px 5px; font-size: 10.5px; }
  .legal .hubt th, .legal .hubt td { padding: 6px 2px; }
  /* app table: one block per app, details under the name */
  .legal table.apps tr:first-child { display: none; }
  .legal table.apps tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .legal table.apps td { border: 0; padding: 0; }
  .legal table.apps td.n { grid-column: 1 / -1; padding-top: 3px; }
}
