/* release 371 (new design): the home page on the designer's building blocks (sx_brand.css). Only what the blocks don't already
   give: the three-column hero, the photo collage, the odds chart and the simulator re-skinned as brand cards, the coverage
   counts, the feature cards and the step tabs. Text colours are the brand's --b-text / --b-muted (4.5:1 or better on white). */

body.b-home { background: #fff; color: var(--b-ink); }
/* the site-wide light theme (scoutics_light.css, html.sx-cream) greys the page and sets every heading to 500 with !important;
   the designer's page is white with heavy headings (ask: the lead may want this in sx_brand.css for every rebuilt page) */
html.sx-cream body.b-home { background: #fff !important; }
html.sx-cream body.b-home :is(h1, h2, .b-h1, .b-h2) { font-weight: 800 !important; }
html.sx-cream body.b-home :is(h3, h4, .b-h3) { font-weight: 700 !important; }
.b-home .sx-skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 16px; border-radius: var(--b-radius); background: var(--b-primary); color: #fff; font-weight: 700; text-decoration: none; }
.b-home .sx-skip:focus { top: 12px; }
.b-home main { display: block; overflow-x: clip; }

/* ---------------------------------------------------------------- the member welcome card (home_welcome.js) in brand */
.b-home .mw { padding: 32px 0 0; font-family: var(--b-font); }
.b-home .mw .b-container > div:empty { display: none; }
.b-home :is(.mw-card, .mw-teamsbox) { border: 0; border-radius: var(--b-radius); box-shadow: var(--b-shadow); }
.b-home .mw-title { color: var(--b-ink); font-weight: 800; }
.b-home :is(.mw-lede, .mw-kicker) { color: var(--b-muted); }

/* ---------------------------------------------------------------- 1. hero: tall photo | copy and real prices | photo pair */
.b-home .bh-hero { padding: 72px 0 96px; }
.bh-hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 32px; align-items: stretch; }
.bh-hero-tall { position: relative; min-height: 100%; }
.bh-hero-tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--b-radius); box-shadow: var(--b-shadow); }
.bh-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.bh-hero-sub { margin: 12px 0 0; color: var(--b-text); font-size: 24px; line-height: 1.3; font-weight: 700; }
.bh-hero-lede { margin-top: 16px; max-width: 34em; }
.bh-hero-btns { margin-top: 24px; }
.bh-hero-side { display: grid; grid-template-rows: auto auto; gap: 24px; align-content: center; }
.bh-hero-side img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--b-radius); box-shadow: var(--b-shadow); }
.bh-hero-wide img { aspect-ratio: 3 / 2; }
.bh-hero-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.bh-hero-small img { aspect-ratio: 4 / 3; }
.bh-hero-shape { background: var(--b-primary); border-radius: var(--b-radius); min-height: 120px; }

/* the three priced games (home_next.js) as brand cards, one under another in the hero's copy column */
.b-home .home-next { margin: 24px 0 0; max-width: none; }
/* the room the three cards and the foot line take (measured: 496px at 1366, 607px at 390), kept while they load: no layout shift */
.b-home .home-next.is-loading { min-height: 496px; }
.b-home .home-next.is-loading.has-offer { min-height: 650px; }
.b-home .home-next .hn-row { grid-template-columns: 1fr; gap: 12px; }
.b-home .home-next .hn-card { position: relative; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; color: var(--b-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); transition: border-color .2s, box-shadow .2s, transform .2s var(--b-ease); }
.b-home .home-next .hn-card > * { grid-column: 1; }
.b-home .home-next .hn-card:hover { border-color: var(--b-primary); box-shadow: var(--b-shadow); }
.b-home .home-next .hn-card:focus-visible, .b-home .home-next a:focus-visible, .b-home .home-next button:focus-visible { outline: 2px solid var(--b-primary-600); outline-offset: 2px; }
.b-home .home-next .hn-k { color: var(--b-muted); font-size: 13px; font-weight: 700; }
.b-home .home-next .hn-t { font-size: 16px; font-weight: 800; color: var(--b-ink); }
.b-home .home-next .hn-l { font-size: 15px; color: var(--b-text); }
.b-home .home-next .hn-l strong { color: var(--b-primary-700); font-size: 17px; font-weight: 800; }
.b-home .home-next .hn-m { font-size: 13.5px; font-weight: 700; color: var(--b-success); }
.b-home .home-next .hn-at { font-size: 12.5px; color: var(--b-muted); }
.b-home .home-next .hn-foot { margin: 4px 0 0; font-size: 14px; color: var(--b-muted); }
.b-home .home-next .hn-foot a { color: var(--b-primary-600); font-weight: 800; }
.b-home .home-next .hn-region { border-color: var(--b-line); border-radius: var(--b-radius); background: var(--b-primary-50); color: var(--b-text); font-size: 15px; }
.b-home .home-next .hn-chip { font-family: var(--b-font); font-weight: 700; border-color: var(--b-primary); color: var(--b-ink); }
.b-home .home-next .hn-chip:hover { border-color: var(--b-primary); background: var(--b-primary-50); }
.b-home .home-next .hn-chip.is-main { background: var(--b-primary); border-color: var(--b-primary); color: #fff; }
.b-home .home-next .hn-chip.is-main:hover { background: var(--b-primary-600); }
.b-home .home-next .hn-chip.is-link { border-color: transparent; color: var(--b-primary-700); }

/* ---------------------------------------------------------------- 2. the odds chart inside the designer's big card */
.b-home .ow { --ow-ink: var(--b-ink); --ow-text: var(--b-text); --ow-muted: var(--b-muted); --ow-line: var(--b-line); --ow-accent: var(--b-primary); --ow-pale: var(--b-soft); padding-top: 0; }
.bh-ow-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--b-line); }
.bh-ow-checks li strong { color: var(--b-ink); }
.b-home .ow .ow-card { margin-top: 28px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.b-home .ow .ow-game h3 { font-family: var(--b-font); font-size: 22px; font-weight: 800; color: var(--b-ink); }
.b-home .ow .ow-badge { background: var(--b-primary-50); color: var(--b-primary-700); font-weight: 700; }
.b-home .ow .ow-seg { border-radius: var(--b-radius); background: var(--b-soft); padding: 4px; }
.b-home .ow .ow-seg button { min-height: 40px; padding: 8px 16px; border-radius: var(--b-radius); font-weight: 700; }
.b-home .ow .ow-seg button[aria-pressed="true"] { background: var(--b-primary); color: #fff; box-shadow: none; }
.b-home .ow .ow-stats > div { border: 0; border-radius: var(--b-radius); box-shadow: var(--b-shadow); padding: 16px 18px; }
.b-home .ow .ow-stats strong { font-weight: 800; }
.b-home .ow .ow-stats .is-gap { background: var(--b-primary-50); box-shadow: none; }
.b-home .ow .ow-stats .is-gap strong { color: var(--b-primary-700); }
.b-home .ow .ow-books button { min-height: 40px; border-radius: var(--b-radius); }
.b-home .ow .ow-more summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--b-primary-700); font-weight: 700; cursor: pointer; }
.b-home .ow .ow-fallback { margin: 16px 0 0; color: var(--b-muted); font-size: 14px; }
.b-home .ow .ow-fallback a { color: var(--b-primary-600); font-weight: 700; }

/* ---------------------------------------------------------------- 3. simulate: the photo collage and the simulator card */
.bh-collage { position: relative; min-height: 440px; }
.bh-collage-shape { position: absolute; top: 0; right: 8%; width: 46%; height: 62%; background: var(--b-primary); border-radius: var(--b-radius); }
.bh-collage img { position: absolute; display: block; height: auto; border-radius: var(--b-radius); box-shadow: var(--b-shadow); object-fit: cover; }
.bh-collage-a { left: 0; bottom: 0; width: 66%; aspect-ratio: 3 / 2; z-index: 1; }
.bh-collage-b { right: 0; top: 40px; width: 46%; aspect-ratio: 3 / 2; z-index: 2; }
.b-home .ht.bh-try { --muted: var(--b-muted); --border: var(--b-line); --subtle: var(--b-soft); --primary: var(--b-primary); --ink: var(--b-ink); margin-top: 72px; padding: 36px; }
.b-home .ht.bh-try[hidden] { display: none; }
.b-home .ht .ht-head { display: grid; gap: 8px; max-width: 46rem; }
.b-home .ht .ht-head .b-eyebrow { margin: 0; }
.b-home .ht .progress-card h4.ht-h { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 14px 0 4px; color: var(--b-ink); }
.b-home .ht .card-head h4.ht-h { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--b-ink); }
.b-home .ht .shots-head h4.ht-h { margin: 0; font-size: 15px; font-weight: 700; color: var(--b-ink); }
.b-home .ht .card { border-color: var(--b-line); border-radius: var(--b-radius); }
.b-home .ht .ht-foot { margin-top: 16px; }

/* Ask Scoutics on the soft band */
.b-home .hq { padding-bottom: 96px; }
.b-home .hq .hq-copy { gap: 16px; }
.b-home .hq .hq-copy .b-eyebrow { margin: 0; }
.b-home .hq .hq-panel { border-radius: var(--b-radius); box-shadow: var(--b-shadow); border: 0; background: #fff; }
.b-home .hq .hq-actions { margin: 8px 0 0; }

/* ---------------------------------------------------------------- 4. forecast record: the live coverage counts */
.bh-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bh-proof-item { display: grid; gap: 2px; padding: 18px 20px; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
.bh-proof-item .b-stat { color: var(--b-primary-700); font-size: 32px; }
.bh-proof-item span { color: var(--b-ink); font-weight: 700; }
.bh-proof-item small { color: var(--b-muted); font-size: 13.5px; line-height: 1.4; }
.b-home .bh-today { margin: 16px 0 0; padding: 14px 16px; border-left: 4px solid var(--b-primary); border-radius: var(--b-radius); background: var(--b-primary-50); color: var(--b-text); font-size: 15px; line-height: 1.5; }
.b-home .bh-today[hidden] { display: none; }
.b-home .bh-today a { color: var(--b-primary-700); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.b-home .bh-today :is(strong, b) { color: var(--b-ink); }
.b-home .bh-today .home-today-dot { display: none; }
.b-home .bh-today .home-today-text { display: grid; justify-items: start; gap: 2px; }
.b-home .bh-today .home-today-meta { color: var(--b-muted); font-size: 14px; }

/* ---------------------------------------------------------------- 5. feature cards */
.bh-feat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.bh-feat .b-icon svg { width: 26px; height: 26px; }
.bh-feat .b-h3 { margin-top: 4px; }
.bh-feat > .b-link, .bh-feat-links { margin-top: auto; }
.bh-feat .b-link { display: inline-flex; align-items: center; min-height: 44px; }
.bh-feat .b-text .b-link { display: inline; min-height: 0; }
.bh-feat-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 0; }

/* ---------------------------------------------------------------- 7. the three step tabs */
.bh-step-list { display: grid; gap: 16px; }
.bh-step { display: grid; gap: 8px; width: 100%; padding: 24px; text-align: left; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; color: var(--b-ink); font: inherit; cursor: pointer; transition: box-shadow .25s, border-color .25s, transform .25s var(--b-ease); }
.bh-step:hover { border-color: var(--b-primary); }
.bh-step.is-active { border-color: transparent; box-shadow: var(--b-shadow-lg); }
.bh-step .b-h3 { display: block; }
.bh-step .b-text { display: block; }
.bh-step-pane img.is-swap { animation: bh-swap .45s var(--b-ease); }
@keyframes bh-swap { from { opacity: .2; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bh-step-pane img.is-swap { animation: none; } .bh-step { transition: none; } }

/* the chart section runs straight into the simulator section (no double gap) */
.b-home section.ow.b-section { padding-bottom: 0; }
/* closing band: the second button is the designer's white outline on indigo */
.b-home .bh-close .b-h2 { color: #fff; }
.b-home .bh-close p { color: #fff; }
.b-home .bh-close .b-btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.b-home .bh-close .b-btn-secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 1199px) {
  .bh-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .bh-hero-tall { display: none; }
}
@media (max-width: 991px) {
  .bh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bh-ow-head { grid-template-columns: 1fr; gap: 24px; }
  .b-home .ht .ht-grid2 { grid-template-columns: 1fr; }
  .b-home .hq .hq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .b-home .bh-hero { padding: 24px 0 56px; }
  .bh-hero-sub { font-size: 20px; margin-top: 8px; }
  .bh-hero-lede { font-size: 15px; }
  .bh-hero-btns { margin-top: 20px; }
  .b-home .home-next { margin-top: 20px; }
  .b-home .home-next.is-loading { min-height: 607px; }
  .b-home .home-next.is-loading.has-offer { min-height: 800px; }
  .b-home .home-next .hn-card { padding: 12px 14px; }
  .bh-hero-side { gap: 16px; }
  .bh-hero-pair { gap: 16px; }
  .b-home .ow .ow-stats { grid-template-columns: 1fr; }
  .bh-collage { min-height: 300px; }
  .b-home .ht.bh-try { margin-top: 48px; padding: 20px 16px; }
  .b-home .hq { padding-bottom: 56px; }
  .bh-proof { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bh-proof-item { padding: 14px; }
  .bh-proof-item .b-stat { font-size: 26px; }
  .bh-step { padding: 18px; }
  .b-home .b-card.is-pad-lg.bh-ow { padding: 20px 16px; }
}

/* release 371 (new design): the phone top bar's burger lines and icon buttons are still white from release 343's navy bar
   (scoutics_nav.css), which is invisible on the designer's white bar; ink here until the foundation fixes it for every page */
html:not(#b1a):not(#b1b):not(#b1c):not(#b1d) body.b-home header.scoutics-topbar .scoutics-menu-trigger::before,
html:not(#b1a):not(#b1b):not(#b1c):not(#b1d) body.b-home header.scoutics-topbar .scoutics-menu-trigger::after { background: var(--b-ink) !important; background-color: var(--b-ink) !important; border-color: var(--b-ink) !important; }
html:not(#b1a):not(#b1b):not(#b1c):not(#b1d) body.b-home header.scoutics-topbar :is(.scoutics-menu-trigger, .sx-pb) { color: var(--b-ink) !important; }
html:not(#b1a):not(#b1b):not(#b1c):not(#b1d) body.b-home header.scoutics-topbar .sx-pb svg.lc { stroke: var(--b-ink) !important; }
/* 44px tap targets on phones for the chart's team and book buttons and the simulator's team switch */
@media (max-width: 767px) {
  .b-home .ow :is(.ow-seg button, .ow-books button) { min-height: 44px; }
  .b-home .ht .lineup-sides button { min-height: 44px; }
}

/* release 373 (owner: compact): the three price boxes become one line */
.b-home .ow .ow-stats { display: block; margin-top: 16px; }
.b-home .ow .ow-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0; padding: 12px 16px; border-radius: var(--b-radius); background: var(--b-primary-50); color: var(--b-text); font-size: 15px; line-height: 1.4; }
.b-home .ow .ow-sum-best strong { font-size: 22px; font-weight: 800; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.b-home .ow .ow-sum-best { color: var(--b-ink); font-weight: 700; }
.b-home .ow .ow-sum-best em { font-style: normal; font-weight: 400; color: var(--b-muted); }
.b-home .ow .ow-sum-gap b { color: var(--b-primary-700); font-weight: 800; }
@media (max-width: 767px) { .b-home .ow .ow-sum { gap: 4px 14px; font-size: 14px; } }

/* release 373 (design review): the member welcome card (home_welcome.css, release 363) still had the old look: a mint
   #19EFAE button, navy #08111C selected options and chips, a mint-tinted selected card, Inter. Brand look here */
.b-home .mw, .b-home .mw :is(button, select) { font-family: var(--b-font); }
.b-home .mw-opt { border-color: var(--b-line); border-radius: var(--b-radius); }
.b-home .mw-opt:hover { border-color: var(--b-primary); }
.b-home .mw-opt.is-on { border-color: var(--b-primary); box-shadow: inset 0 0 0 1px var(--b-primary); background: var(--b-primary-50); }
.b-home .mw-guess { color: var(--b-primary-700); }
.b-home .mw-chip { border-color: var(--b-line); font-weight: 700; }
.b-home .mw-chip.is-on { border-color: var(--b-primary); background: var(--b-primary); color: #fff; }
.b-home .mw-btn { border-radius: var(--b-radius); background: var(--b-primary); color: #fff; font-weight: 700; }
.b-home .mw-btn:hover:not(:disabled) { background: var(--b-primary-600); }
.b-home .mw :is(.mw-later, .mw-back) { border-color: var(--b-line); border-radius: var(--b-radius); font-weight: 700; }
.b-home .mw :is(button, a, select):focus-visible { outline: 2px solid var(--b-primary-600); outline-offset: 2px; }
.b-home .mw :is(.mw-links a, .mw-empty a) { color: var(--b-primary-700); }
.b-home .mw-game { border-color: var(--b-line); border-radius: var(--b-radius); }
.b-home .mw-game:hover { border-color: var(--b-primary); }
.b-home .mw-g-fc strong { color: var(--b-ink); }
.b-home .mw-field select { border-color: var(--b-line); border-radius: var(--b-radius); font-size: 16px; }
/* release 373 (design review): the chart's "+6 more" sportsbooks button was navy text (books_more.js inline style) */
.b-home .ow .ow-books > .bm-more { color: var(--b-ink); border-color: var(--b-line); border-radius: var(--b-radius); font-family: var(--b-font); font-weight: 700; }
/* release 373 (design review): the signed-in dot on the phone account icon was the old mint on navy */
html:not(#b1a):not(#b1b):not(#b1c):not(#b1d) body.b-home header.scoutics-topbar .sx-pb-on { background: var(--b-primary) !important; box-shadow: 0 0 0 2px #fff !important; }

/* release 382 (owner: "the same panels as the simulation pages, in a rolling manner, 5-7 seconds each"): a progress line on the
   active step while the steps advance by themselves; the picture frame keeps one shape, and the drawings and dice sit on white */
.bh-step { position: relative; overflow: hidden; }
.bh-step-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.bh-step-bar i { display: block; width: 0; height: 100%; background: var(--b-primary); }
[data-bh-steps].is-auto .bh-step.is-active .bh-step-bar i { animation: bh-bar 6s linear forwards; }
[data-bh-steps].is-held .bh-step.is-active .bh-step-bar i, [data-bh-steps]:not(.is-auto) .bh-step-bar i { animation: none; width: 0; }
@keyframes bh-bar { from { width: 0; } to { width: 100%; } }
.bh-step-pane img[data-bh-step-img] { aspect-ratio: 3 / 2; object-fit: cover; }
.bh-step-pane img[data-bh-step-img].is-art { object-fit: contain; background: #fff; padding: 2%; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { [data-bh-steps] .bh-step-bar i { animation: none !important; } }

/* release 383 (owner: "3 panels that roll"): the steps, the lineup panel and the dice panel side by side, sliding; radio dots */
.bh-roll { overflow: hidden; padding: 0 28px; margin: 0 -28px; }
.bh-roll-track { display: flex; transition: transform .7s var(--b-ease); }
.bh-slide { flex: 0 0 100%; min-width: 0; padding: 0 28px 34px; box-sizing: border-box; }
.bh-slide[aria-hidden="true"] { visibility: hidden; transition: visibility 0s .7s; }
.bh-slide[aria-hidden="false"] { visibility: visible; }
.bh-slide .b-media img { aspect-ratio: auto; }
.bh-dots { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.bh-dots button { width: 14px; height: 14px; padding: 0; border: 2px solid var(--b-primary); border-radius: 50%; background: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.bh-dots button[aria-checked="true"] { background: var(--b-primary); transform: scale(1.12); }
.bh-dots button:focus-visible { outline: 3px solid var(--b-primary-50); outline-offset: 3px; }
@media (max-width: 767px) { .bh-roll { padding: 0 16px; margin: 0 -16px; } .bh-slide { padding: 0 16px 28px; } .bh-dots { gap: 18px; } .bh-dots button { width: 16px; height: 16px; } }
@media (prefers-reduced-motion: reduce) { .bh-roll-track { transition: none; } }

/* release 446 (owner: "I like dice"): the owner's 20-sided die, white outline, centred on the indigo block */
.bh-hero-shape { display: grid; place-items: center; }
.bh-hero-side .bh-hero-shape img.bh-hero-die { width: 74%; max-width: 160px; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; display: block; }
