/* PreciseEV theme. Loaded last on every page (workspace, homepage, public pages, account, admin), it gives the
   whole site one design language: a zinc canvas, Plus Jakarta Sans for words and JetBrains Mono for figures and
   labels, hairline borders, violet for the brand and the main action, green for what is up, red for what is down.
   Selectors are scoped under three ids' worth of specificity (html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c))
   so they settle the older page layers without each rule naming them. */

@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';src:url('/assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Older stylesheets name Inter or Outfit directly; both resolve to Plus Jakarta Sans. */
@font-face{font-family:'Inter';src:url('/assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';src:url('/assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';src:url('/assets/fonts/PlusJakartaSans-latin.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';src:url('/assets/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/JetBrainsMono-latin.woff2') format('woff2');font-weight:100 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  /* The PreciseEV kit's colours, as delivered. The site uses Violet and Edge Green as accents only: canvas, cards and
     words are neutral zinc (the --vo-* tokens below), so violet marks the brand, the main action and what is chosen. */
  --pev-ink:#0B0A10; --pev-night:#16131F; --pev-paper:#F5F3FA; --pev-edge-green:#2BD07F; --pev-edge-green-dark:#12A05C;
  --pev-violet:#7B5CFF; --pev-violet-light:#8B6CFF; --pev-muted:#9A93B3;
  --vo-bg:#09090B; --vo-bg-2:#0c0c0e; --vo-surface:#111114; --vo-surface-2:#17171B; --vo-surface-3:#1f1f24;
  --vo-line:rgb(255 255 255/.07); --vo-line-2:rgb(255 255 255/.1); --vo-line-3:rgb(255 255 255/.17);
  --vo-text:#F4F4F5; --vo-text-2:#c4c4cc; --vo-text-3:#9B9BA5; --vo-text-4:#5c5c66;
  --vo-brand:#2BD07F; --vo-brand-hi:#3fe090; --vo-brand-text:#5ce5a3; --vo-brand-pale:#b6f5d4;
  --vo-brand-soft:rgb(43 208 127/.14); --vo-brand-line:rgb(43 208 127/.45);
  --vo-grad-btn:linear-gradient(180deg,#3fe090 0%,#2BD07F 100%);
  --vo-grad-text:linear-gradient(100deg,#9ff0c8 0%,#4ade96 55%,#2BD07F 100%);
  --vo-glow:0 0 0 1px rgb(43 208 127/.3),0 6px 18px -10px rgb(43 208 127/.28);
  --vo-up:#2BD07F; --vo-up-soft:rgb(43 208 127/.12); --vo-up-line:rgb(43 208 127/.4);
  --vo-down:#ff6b6b; --vo-down-soft:rgb(255 107 107/.12);
  --vo-warn:#f7b955; --vo-info:#6fb6ff;
  --vo-font:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --vo-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --vo-r-sm:8px; --vo-r:12px; --vo-r-lg:18px;
  --sl-mono:var(--vo-mono); --mono:var(--vo-mono);
  accent-color:var(--vo-brand);
}

/* ------------------------------------------------------------------ every page */
::selection { background:rgb(43 208 127/.38); color:#fff; }
html { scrollbar-color:#2a2a30 transparent; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#2a2a30; border:3px solid transparent; border-radius:999px; background-clip:padding-box; }
::-webkit-scrollbar-thumb:hover { background:#3a3a41; border:3px solid transparent; background-clip:padding-box; }

html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c) {
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility;

  & code, & kbd, & samp, & pre { font-family:var(--vo-mono) !important; }
  & input, & select, & textarea, & button { font-family:inherit; }
  & :focus-visible { outline-color:var(--vo-brand-hi); }

  /* Eyebrows and kickers: small mono capitals, the label voice of the whole site. */
  & [class*="eyebrow"]:not(:has(h1, h2, h3, p, div)), & [class*="kicker"]:not(:has(h1, h2, h3, p, div)), & .sl-tool-tag:not(:has(h1, h2, h3, p, div)), & .home-feature-label:not(:has(h1, h2, h3, p, div)), & .dashboard-nav-label:not(:has(h1, h2, h3, p, div)), & .sheet-eyebrow:not(:has(h1, h2, h3, p, div)), & .help-course-top:not(:has(h1, h2, h3, p, div)), & .doc-crumb:not(:has(h1, h2, h3, p, div)) {
    font-family:var(--vo-mono) !important; font-weight:500 !important; letter-spacing:.06em !important; text-transform:uppercase !important; font-feature-settings:normal;
  }

  /* Buttons everywhere: a violet gradient for the main action, a hairline outline for the rest, soft red for danger. */
  & :where(.learn-beginner-cta):is(.learn-beginner-cta, .bg-button:not(.bg-button--ghost)):not(:disabled), & .bg-button:not(.bg-button--ghost):not(:disabled), & .settings-button:not(.secondary, .danger, .settings-text-button):not(:disabled), & .tracker-button.primary:not(:disabled), & :where(.evx-primary):is(.evx-primary, .bg-button:not(.bg-button--ghost)):not(:disabled), & :where(.evb-primary):is(.evb-primary, .bg-button:not(.bg-button--ghost)):not(:disabled), & :where(.sm-primary):is(.sm-primary, .bg-button:not(.bg-button--ghost)):not(:disabled), & :where(.account-primary):is(.account-primary, .bg-button:not(.bg-button--ghost)):not(:disabled) {
    border:0 !important; border-radius:9px !important; background:var(--vo-grad-btn) !important; color:#04140b !important; font-weight:700 !important;
    box-shadow:inset 0 1px 0 rgb(255 255 255/.2), 0 0 0 1px rgb(43 208 127/.3), 0 6px 18px -10px rgb(43 208 127/.28) !important;
  }
  & :where(.learn-beginner-cta):is(.learn-beginner-cta, .bg-button:not(.bg-button--ghost)):not(:disabled):hover, & .bg-button:not(.bg-button--ghost):not(:disabled):hover, & .settings-button:not(.secondary, .danger, .settings-text-button):not(:disabled):hover, & .tracker-button.primary:not(:disabled):hover, & :where(.evx-primary):is(.evx-primary, .bg-button:not(.bg-button--ghost)):not(:disabled):hover, & :where(.evb-primary):is(.evb-primary, .bg-button:not(.bg-button--ghost)):not(:disabled):hover, & :where(.sm-primary):is(.sm-primary, .bg-button:not(.bg-button--ghost)):not(:disabled):hover, & :where(.account-primary):is(.account-primary, .bg-button:not(.bg-button--ghost)):not(:disabled):hover { filter:brightness(1.08); }
  & .settings-button.secondary, & :where(.bg-button--ghost):is(.bg-button--ghost, .settings-button.secondary), & .tracker-button:not(.primary) {
    border:1px solid var(--vo-line-2) !important; border-radius:9px !important; background:rgb(255 255 255/.03) !important; color:var(--vo-text) !important; box-shadow:none !important;
  }
  & .settings-button.secondary:hover, & :where(.bg-button--ghost):is(.bg-button--ghost, .settings-button.secondary):hover, & .tracker-button:not(.primary):hover { border-color:var(--vo-line-3) !important; background:rgb(255 255 255/.06) !important; }
  & .settings-button.danger { border:1px solid rgb(255 107 107/.35) !important; border-radius:9px !important; background:var(--vo-down-soft) !important; color:#ff8a8a !important; box-shadow:none !important; }

  /* Keyboard hints. */
  & kbd { border:1px solid var(--vo-line-2) !important; border-radius:6px !important; background:rgb(255 255 255/.04) !important; color:var(--vo-text-3) !important; font-size:10.5px !important; font-weight:500 !important; box-shadow:none !important; }

  /* The brand: the mark alone (lib/brand-mark.mjs) in every brand link. Older sheets size brand images as square
     tiles, so this settles them: 26px tall, width from the artwork, nothing painted on top. */
  & .brand-logo { display:block !important; height:26px !important; width:auto !important; max-width:none !important; border:0 !important; border-radius:0 !important; filter:none !important; box-shadow:none !important; object-fit:contain !important; }
  & :is(#dashboard-sidebar, .dashboard-mobile-bar) .brand-logo { height:22px !important; }
  & .vo-sidebar-collapsed #dashboard-sidebar .brand-logo { height:20px !important; }
}

.brand-logo { height:26px; width:auto; display:block; }

/* The mark's hover: a green trace runs along the line, then the dot hops as the trace reaches it. Keyboard focus
   plays it too; reduced motion plays nothing. */
.pev-mark { overflow:visible; color:var(--vo-text); }
.pev-mark-dot { transform-box:fill-box; transform-origin:50% 50%; }
.pev-mark-trace { opacity:0; }
:is(a:hover, a:focus-visible) > .pev-mark .pev-mark-trace { animation:pev-mark-trace .85s cubic-bezier(.45,0,.2,1); }
:is(a:hover, a:focus-visible) > .pev-mark .pev-mark-dot { animation:pev-mark-hop .85s cubic-bezier(.3,.7,.4,1); }
@keyframes pev-mark-trace {
  0% { opacity:1; stroke-dashoffset:22; }
  88% { opacity:1; }
  100% { opacity:0; stroke-dashoffset:-100; }
}
@keyframes pev-mark-hop {
  0%, 52% { transform:none; }
  70% { transform:translateY(-38%) scale(1.14); }
  84% { transform:translateY(6%) scale(.94); }
  100% { transform:none; }
}
@media (prefers-reduced-motion:reduce) { .pev-mark * { animation:none !important; } }

/* ------------------------------------------------------------------ public pages: homepage, Learn, guides, API, company pages */
html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c) {
  & :is(.vo-site-header, .vo-site-footer) .home-brand { font-weight:700 !important; letter-spacing:-.02em !important; }
  & :is(.vo-site-header, .vo-site-footer) .home-brand img { filter:none !important; border-radius:9px; }
  & :is(.vo-site-header, .vo-site-footer) .home-brand em { color:var(--vo-brand-text) !important; }

  /* Buttons: a violet gradient with a soft glow for the main action, a quiet outlined one beside it. */
  & .home-button:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary), & .tool-hero-primary:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary), & .help-button:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary), & .hd-cta:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary), & .pb-cta:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary) {
    border:0 !important; border-radius:10px !important; background:var(--vo-grad-btn) !important; color:#04140b !important;
    font-weight:700 !important; letter-spacing:-.005em !important;
    box-shadow:inset 0 1px 0 rgb(255 255 255/.2), 0 0 0 1px rgb(43 208 127/.3), 0 6px 18px -10px rgb(43 208 127/.28) !important;
    transition:box-shadow .2s ease, filter .2s ease, transform .2s ease !important;
  }
  & .home-button:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary):hover, & .tool-hero-primary:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary):hover, & .help-button:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary):hover, & .hd-cta:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary):hover, & .pb-cta:not(.home-button-ghost, .is-ghost, .is-secondary, .secondary):hover {
    filter:brightness(1.08) !important; box-shadow:inset 0 1px 0 rgb(255 255 255/.24), 0 0 0 1px rgb(43 208 127/.4), 0 8px 22px -10px rgb(43 208 127/.36) !important;
  }
  & :where(.home-button-ghost):is(.home-button-ghost, .home-button.is-ghost), & .home-button.is-ghost, & .home-button.secondary {
    border:1px solid var(--vo-line-2) !important; border-radius:10px !important; background:rgb(255 255 255/.03) !important; color:var(--vo-text) !important; box-shadow:none !important; font-weight:700 !important;
  }
  & :where(.home-button-ghost):is(.home-button-ghost, .home-button.is-ghost):hover, & .home-button.is-ghost:hover, & .home-button.secondary:hover { background:rgb(255 255 255/.06) !important; border-color:var(--vo-line-3) !important; }

  /* Pills that announce a section ("Research boards for …"). */
  & .sl-eyebrow { border:1px solid var(--vo-line-2) !important; background:rgb(255 255 255/.025) !important; color:var(--vo-text-2) !important; font-family:var(--vo-mono) !important; font-size:11.5px !important; font-weight:500 !important; letter-spacing:.06em !important; text-transform:uppercase !important; box-shadow:none !important; }
  @media (max-width:560px) { & .sl-eyebrow { max-width:100%; border-radius:14px !important; font-size:10px !important; letter-spacing:.03em !important; line-height:1.5 !important; text-align:left; } }
  & .home-feature-label { border:1px solid var(--vo-line-2) !important; background:rgb(255 255 255/.025) !important; color:var(--vo-brand-text) !important; font-size:11px !important; }

  /* Checklists: a plain green tick, no disc. */
  & .sl-check { background:none !important; box-shadow:none !important; border:0 !important; color:var(--vo-up) !important; }
  & .sl-check svg { color:var(--vo-up) !important; stroke:currentColor; }

  /* Headlines: heavier and tighter; the accented phrase in the violet gradient. */
  & :is(.sl-landing, .betting-pages, .help-page, .learn-page, .info-page, .api-page, .edu-page) h1, & :is(.sl-landing, .betting-pages, .help-page, .learn-page, .info-page, .api-page, .edu-page) h2 { font-weight:800 !important; letter-spacing:-.038em !important; }
  & .sl-landing h1 :where(em):is(em, .sl-accent), & .sl-landing h1 :where(span):is(span, .sl-accent), & .sl-landing h1 :where(strong):is(strong, .sl-accent), & .sl-landing h1 .sl-accent, & .sl-landing h2 :where(em):is(em, .sl-accent), & .sl-landing h2 .sl-accent {
    background:var(--vo-grad-text) !important; -webkit-background-clip:text !important; background-clip:text !important; color:transparent !important; -webkit-text-fill-color:transparent !important; font-style:normal !important;
  }

  /* Plans: green ticks, a mono badge on the featured plan, rounded-rectangle actions. */

  /* Account and sign-in forms */
  & .account-submit, & .account-header-link, & .settings-button { border-radius:10px !important; }
  & .account-submit:not(:disabled) { border:0 !important; background:var(--vo-grad-btn) !important; color:#04140b !important; font-weight:700 !important; box-shadow:inset 0 1px 0 rgb(255 255 255/.2), 0 0 0 1px rgb(43 208 127/.4), 0 10px 30px -12px rgb(43 208 127/.75) !important; }
  & .account-submit:not(:disabled):hover { filter:brightness(1.08); }
  & .account-story-label, & .account-kicker, & .settings-kicker, & .account-eyebrow { font-family:var(--vo-mono) !important; font-size:11.5px !important; font-weight:500 !important; letter-spacing:.08em !important; text-transform:uppercase !important; color:var(--vo-brand-text) !important; }

  & .sl-landing .home-hero { padding-bottom:40px !important; }

  /* Footer */
}

/* ------------------------------------------------------------------ workspace */
html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c).site-layout {
  /* What's up is green: edges, plus-EV prices, the best number on a row. */
  & #ev-view :where(.evb-board .is-positive):is(.evb-board .is-positive, .evd-grid tbody td.is-best strong), & #ev-view :where(.evb-stats .is-positive dd):is(.evb-stats .is-positive dd, .evd-grid tbody td.is-best strong), & #ev-view :where(.evd-grid .evd-best strong):is(.evd-grid .evd-best strong, .evd-grid tbody td.is-best strong), & #ev-view :is(.evd-grid tbody td.is-best strong), & #ev-view :where(.evd-boost-result):is(.evd-boost-result, .evd-grid tbody td.is-best strong), & #ev-view :where(.evb-ev .evb-pin):is(.evb-ev .evb-pin, .evd-grid tbody td.is-best strong) { color:var(--vo-up) !important; }
  & #ev-view .evb-ev-bar i { background:var(--vo-up) !important; }
  & #ev-view .evb-matrix tbody td.is-plus { border-color:var(--vo-up-line) !important; background:var(--vo-up-soft) !important; color:var(--vo-up) !important; }
  & #ev-view .evb-matrix tbody td.is-best { border-color:var(--vo-up) !important; background:var(--vo-up) !important; color:#04180d !important; }
  & #ev-view .evb-legend i.is-best { background:var(--vo-up) !important; border-color:var(--vo-up) !important; }
  & #ev-view .evb-legend i.is-plus { background:var(--vo-up-soft) !important; border-color:var(--vo-up-line) !important; }

  /* Prices read in mono, like a quote screen. */
  & #ev-view :where(.evb-price):is(.evb-price, .evd-grid tbody td strong), & #ev-view :where(.evb-prob strong):is(.evb-prob strong, .evd-grid tbody td strong), & #ev-view :where(.evb-stake strong):is(.evb-stake strong, .evd-grid tbody td strong), & #ev-view :where(.evb-matrix tbody td):is(.evb-matrix tbody td, .evd-grid tbody td strong), & #ev-view :is(.evd-grid tbody td strong) { font-family:var(--vo-mono) !important; font-weight:600 !important; letter-spacing:-.01em !important; font-variant-numeric:tabular-nums; }
  & #ev-view .evb-price { font-size:15px !important; }

  /* Odds screen: every price a small mono chip; the best green, the worst red. */
  &.ev-page[data-ev-screen="odds"] .os-px { border:1px solid rgb(255 255 255/.05); background:rgb(255 255 255/.025); border-radius:7px; font-family:var(--vo-mono); font-size:12.5px; }
  &.ev-page[data-ev-screen="odds"] .os-px b { font-weight:500; }
  &.ev-page[data-ev-screen="odds"] .os-book-cell[data-open-quote]:hover .os-px { border-color:rgb(255 255 255/.14); background:rgb(255 255 255/.05); }
  &.ev-page[data-ev-screen="odds"] .os-book-cell.is-best .os-px { border-color:rgb(62 224 143/.38); background:rgb(62 224 143/.12); color:var(--vo-up); }
  &.ev-page[data-ev-screen="odds"] .os-book-cell.is-best .os-px b { font-weight:650; }
  &.ev-page[data-ev-screen="odds"] .os-book-cell.is-worst .os-px { border-color:rgb(255 107 107/.3); background:rgb(255 107 107/.1); color:#ff8a8a; }
  &.ev-page[data-ev-screen="odds"] .os-book-cell:is(.is-missing, .is-locked) .os-px { border-color:transparent; background:none; }
  &.ev-page[data-ev-screen="odds"] .os-average strong { font-family:var(--vo-mono); font-size:12.5px; font-weight:500; }

  /* Filter triggers on phones: one line each, the value ellipsized rather than wrapped. */
  @media (max-width:560px) {
    & #main .td-choice-trigger { font-size:13px !important; gap:6px !important; }
    & #main .td-choice-trigger .choice-trigger-copy { display:flex !important; align-items:center; gap:6px; min-width:0; overflow:hidden; }
    & #main .td-choice-trigger :where(.choice-trigger-label):is(.choice-trigger-label, .choice-trigger-copy strong), & #main .td-choice-trigger :is(.choice-trigger-copy strong) { min-width:0 !important; max-width:none !important; overflow:hidden !important; white-space:nowrap !important; text-overflow:ellipsis !important; }
    & #main .td-choice-trigger .choice-trigger-label { flex:0 1 auto !important; }
    & #main .td-choice-trigger .choice-trigger-copy strong { flex:0 1 auto !important; }
    & #main .dfs-slip-trigger { gap:6px !important; font-size:13px !important; }
    & #main .dfs-slip-trigger > span, & #main .dfs-slip-trigger > strong, & #main .dfs-slip-trigger > b { min-width:0 !important; overflow:hidden !important; white-space:nowrap !important; text-overflow:ellipsis !important; }
  }

  /* Shapes: buttons and segmented controls are rounded rectangles; only badges stay pills. */
  & .evx-view-toggle, & .vo-refresh-options, & .tracker-period-tabs, & .tracker-view-switch, & .picks-tabs, & .side-toggle, & .section-tabs, & .os-tabs, & .sports-views { border-radius:10px !important; }
  & :is(.evx-view-toggle, .vo-refresh-options, .tracker-period-tabs, .tracker-view-switch, .picks-tabs, .side-toggle, .section-tabs, .os-tabs, .sports-views) > button, & :is(.evx-view-toggle, .vo-refresh-options, .tracker-period-tabs, .tracker-view-switch, .picks-tabs, .side-toggle, .section-tabs, .os-tabs, .sports-views) > a { border-radius:7px !important; }
  & .market-tabs > .market-tab { border-radius:8px !important; }
  & :where(.button):is(.button, .hd-onboard-steps a), & :where(.tracker-button):is(.tracker-button, .hd-onboard-steps a), & :where(.connection):is(.connection, .hd-onboard-steps a), & :where(.td-choice-trigger):is(.td-choice-trigger, .hd-onboard-steps a), & :where(.calendar-trigger):is(.calendar-trigger, .hd-onboard-steps a), & :where(.hd-open):is(.hd-open, .hd-onboard-steps a), & :where(.pb-open):is(.pb-open, .hd-onboard-steps a), & :where(.dfs-platform-all):is(.dfs-platform-all, .hd-onboard-steps a), & :where(.evb-link):is(.evb-link, .hd-onboard-steps a), & :is(.hd-onboard-steps a), & :is(.vo-onboard-steps a) { border-radius:9px !important; }
  & :is(main .site-sports, .hd-sports .site-sports) a { border-radius:9px !important; }
  & main nav > button { border-radius:8px !important; }
}

/* ------------------------------------------------------------------ one frame for every public page
   The page content and the footer share one width and one gutter on the homepage, Learn, guides, calculators,
   docs, help and company pages; the header floats above them as a narrower glass bar. */
:root { --site-wide:1240px; --site-gutter:clamp(20px,4vw,40px); }
html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c) {
  &:has(.vo-site-header) { overflow-x:clip; }
  & .vo-site-footer .vo-footer, &.sl-landing .home-wide { position:relative; width:min(100% - var(--site-gutter)*2, var(--site-wide)) !important; }
  & :where(.learn-main):is(.learn-main, .edu-main:has(.learn-library)), & :where(.bet-main):is(.bet-main, .edu-main:has(.learn-library)), & :where(.info-main):is(.info-main, .edu-main:has(.learn-library)), & :is(.edu-main:has(.learn-library)), & :is(.market-guide-site .market-hub) { width:min(100% - var(--site-gutter)*2, var(--site-wide)) !important; }
  & .edu-main:not(:has(.learn-library)) { width:min(100% - var(--site-gutter)*2, 1060px) !important; }
  & .market-guide-site .edu-main, & .market-guide-site .market-article-page { width:min(100% - var(--site-gutter)*2, 1200px) !important; }
}

/* ------------------------------------------------------------------ the public header: a floating glass bar
   One bar 900px wide floats 12px under the top of the window: frosted, with a lit rim, the mark, the links and
   the actions held close together. Below 900px the links fold into a glass menu 8px under the bar. The frost
   lives on the bar's ::before, not the bar, so the menu inside it can blur the page too. */
html:is(:root,#vo-a) body:is(*,#vo-b):is(*,#vo-c) {
  & .vo-site-header {
    z-index:60 !important; padding:12px var(--site-gutter) 0 !important;
    border:0 !important; background:none !important; box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
    pointer-events:none;
  }
  & .vo-site-header .home-header-inner {
    position:relative; isolation:isolate; display:flex !important; align-items:center; gap:8px !important; width:min(100%, 900px) !important; min-height:60px !important; margin-inline:auto !important; padding:0 10px 0 20px !important;
    border-radius:20px; background:none !important; box-shadow:0 1px 2px rgb(0 0 0/.35), 0 18px 44px -20px rgb(0 0 0/.85);
    pointer-events:auto; transition:box-shadow .3s ease;
  }
  & .vo-site-header .home-header-inner::before {
    content:''; position:absolute; inset:0; z-index:-2; border-radius:inherit; pointer-events:none;
    background:linear-gradient(180deg,rgb(255 255 255/.075),rgb(255 255 255/.025)), rgb(17 17 21/.52);
    box-shadow:inset 0 1px 0 rgb(255 255 255/.13);
    backdrop-filter:blur(22px) saturate(1.7); -webkit-backdrop-filter:blur(22px) saturate(1.7);
    transition:background-color .3s ease;
  }
  /* The rim: brighter where light would catch the top-left and bottom-right edges. */
  & .vo-site-header .home-header-inner::after {
    content:''; position:absolute; inset:0; z-index:-1; padding:1px; border-radius:inherit; pointer-events:none;
    background:linear-gradient(155deg,rgb(255 255 255/.3),rgb(255 255 255/.07) 32%,rgb(255 255 255/.03) 62%,rgb(255 255 255/.16));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
  }
  & .vo-site-header.is-scrolled .home-header-inner { box-shadow:0 1px 2px rgb(0 0 0/.4), 0 22px 50px -18px rgb(0 0 0/.9); }
  & .vo-site-header.is-scrolled .home-header-inner::before { background-color:rgb(14 14 17/.72); }
  & .vo-site-header .home-brand { flex:1 1 0; min-width:0; padding:6px 0; }
  & .vo-site-header .brand-logo { height:24px !important; }
  & .vo-site-header .home-nav {
    position:static !important; display:flex !important; flex:none; flex-direction:row !important; align-items:center; gap:2px !important; margin:0 !important; padding:0 !important;
    border:0 !important; background:none !important; box-shadow:none !important; backdrop-filter:none !important;
  }
  & .vo-site-header .home-nav > a {
    display:inline-flex; align-items:center; height:36px; padding:0 13px !important; border-radius:10px !important;
    color:var(--vo-text-2) !important; font-size:14px !important; font-weight:550 !important; letter-spacing:0 !important; transition:color .15s, background-color .15s;
  }
  & .vo-site-header .home-nav > a:hover, & .vo-site-header .home-nav > a[aria-current="page"] { background:rgb(255 255 255/.07) !important; color:var(--vo-text) !important; }
  & .vo-site-header .home-nav > .home-nav-login { display:none !important; }
  & .vo-site-header .home-header-end { display:flex !important; flex:1 1 0; justify-content:flex-end; align-items:center; gap:4px !important; }
  & .vo-site-header .home-login { display:inline-flex !important; align-items:center; height:36px; padding:0 13px !important; border-radius:10px; color:var(--vo-text-2) !important; font-size:14px !important; font-weight:600 !important; }
  & .vo-site-header .home-login:hover { background:rgb(255 255 255/.07); color:var(--vo-text) !important; }
  & .vo-site-header .home-header-action { height:40px !important; min-height:0 !important; padding:0 17px !important; border-radius:10px !important; font-size:14px !important; }
  & .vo-site-header .home-menu-toggle { display:none !important; }

  @media (max-width:900px) {
    /* Here the bar spans the page, so its edges sit on the same gutter as the content under it. */
    & .vo-site-header { padding:10px var(--site-gutter) 0 !important; }
    & .vo-site-header .home-header-inner { min-height:56px !important; padding:0 8px 0 16px !important; border-radius:18px; }
    & .vo-site-header .home-nav {
      position:absolute !important; top:calc(100% + 8px) !important; left:0 !important; right:0 !important; display:none !important; flex-direction:column !important; align-items:stretch;
      gap:2px !important; padding:8px !important; border-radius:18px !important;
      background:linear-gradient(180deg,rgb(255 255 255/.07),rgb(255 255 255/.02)), rgb(15 15 19/.82) !important;
      box-shadow:inset 0 1px 0 rgb(255 255 255/.12), inset 0 0 0 1px rgb(255 255 255/.08), 0 30px 60px -20px rgb(0 0 0/.9) !important;
      backdrop-filter:blur(24px) saturate(1.6) !important; -webkit-backdrop-filter:blur(24px) saturate(1.6) !important;
    }
    & .vo-site-header .home-nav[data-open=true] { display:flex !important; }
    & .vo-site-header .home-nav > a { height:46px; padding:0 14px !important; border-radius:12px !important; font-size:16px !important; }
    & .vo-site-header .home-nav > .home-nav-login { display:inline-flex !important; }
    & .vo-site-header .home-login { display:none !important; }
    & .vo-site-header .home-header-action { height:38px !important; padding:0 14px !important; font-size:13.5px !important; }
    & .vo-site-header .home-menu-toggle {
      display:grid !important; width:38px; height:38px; border:0 !important; border-radius:10px !important;
      background:rgb(255 255 255/.06) !important; box-shadow:inset 0 0 0 1px rgb(255 255 255/.09); color:var(--vo-text) !important;
    }
    & .vo-site-header .home-menu-toggle svg { width:18px; height:18px; }
  }
  @media (max-width:359px) { & .vo-site-header .home-header-action { display:none !important; } }
  /* The docs page pins its own bar instead, so the site bar scrolls away there. */
  &:has(> div.site-header) .vo-site-header { position:relative !important; }
  /* The API page's section bar sits right under the bar (66px tall here, 72px wider up). */
  @media (max-width:900px) { & .api-subnav { top:66px !important; } }
}

/* The public footer is styled in site-footer.css. */

