/* Homepage promotion only. No dashboard stylesheet or script is required. */
@layer betsidekick-promotion {
  :where(.bso-home) {
    --_bso-blue: var(--bso-home-primary, var(--wp--preset--color--primary, #155eef));
    --_bso-navy: var(--bso-home-text, var(--wp--preset--color--contrast, #172b4d));
    --_bso-green: var(--bso-home-accent, var(--wp--preset--color--accent, #36b37e));
    --_bso-paper: var(--bso-home-background, var(--wp--preset--color--base, #ffffff));
    --_bso-line: var(--bso-home-border, var(--wp--preset--color--border, #dbe4f0));
    --_bso-muted: var(--bso-home-muted, var(--wp--preset--color--muted, #596b86));
    --_bso-font: var(--wp--preset--font-family--body, inherit);
    --_bso-heading: var(--wp--preset--font-family--heading, inherit);
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3%, 2.75rem);
    min-width: 0;
    max-width: 100%;
    margin-block: clamp(1.75rem, 4%, 3rem);
    padding: clamp(1.25rem, 3%, 2rem);
    overflow: hidden;
    border: 1px solid var(--_bso-line);
    border-radius: 1.25rem;
    background: var(--_bso-paper);
    background: radial-gradient(ellipse at 0 0, #155eef09, transparent 45%), radial-gradient(ellipse at 100% 100%, #36b37e0b, transparent 40%), var(--_bso-paper);
    box-shadow: 0 4px 9px #172b4d02, 0 16px 45px #172b4d05;
    color: var(--_bso-navy);
    font-family: var(--_bso-font);
    font-size: 1rem;
    line-height: 1.5;
  }
  :where(.bso-home *, .bso-home *::before, .bso-home *::after) { box-sizing: border-box; }
  :where(.bso-home .bso-home-intro) {
    display: flex;
    flex: 1 1 18rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
  }
  :where(.bso-home .bso-home-eyebrow) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: var(--_bso-blue);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .1em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  :where(.bso-home .bso-home-eyebrow svg) { width: 1rem; height: 1rem; color: var(--_bso-green); }
  :where(.bso-home .bso-home-intro h2) {
    max-width: 14ch;
    margin: 0;
    color: var(--_bso-navy);
    font-family: var(--_bso-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-style: normal;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.1;
    text-wrap: balance;
  }
  :where(.bso-home .bso-home-intro > p) {
    max-width: 36ch;
    margin: 0;
    color: var(--_bso-muted);
    font-size: .9375rem;
    line-height: 1.65;
  }
  :where(.bso-home .bso-home-leagues) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .15rem 0;
    padding: 0;
    list-style: none;
  }
  :where(.bso-home .bso-home-leagues > *) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.4rem;
    padding: .4rem .65rem;
    background: #ffffffb8;
    border: 1px solid var(--_bso-line);
    border-radius: .55rem;
    color: var(--_bso-navy);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }
  :where(.bso-home .bso-home-leagues img) { display: block; width: 1.35rem; height: 1.35rem; object-fit: contain; }
  :where(.bso-home .bso-home-leagues .is-unavailable) { opacity: .55; }
  :where(.bso-home .bso-home-league-label) { display: grid; gap: .15rem; }
  :where(.bso-home .bso-home-league-label small) { font-size: .75rem; font-weight: 450; line-height: 1.3; color: #607089; }
  :where(.bso-home .bso-home-league[data-league-state="off_season"]) { background: #f0f2f5; border-color: #d6dce5; }
  :where(.bso-home .bso-home-league[data-league-state="off_season"] img) { filter: grayscale(1); }
  :where(.bso-home .bso-home-season) { display: grid; gap: .2rem; margin: 0; padding: .6rem .8rem; border-inline-start: 3px solid #9ba9bd; border-radius: .3rem; background: #edf0f4; color: #455168; font-size: .875rem; line-height: 1.4; }
  :where(.bso-home .bso-home-season [data-sd-season-date]) { font-weight: 700; font-variant-numeric: tabular-nums; }
  :where(.bso-home .bso-home-actions) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    width: 100%;
    margin-top: .3rem;
  }
  :where(.bso-home .bso-home-actions a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.85rem;
    max-width: 100%;
    padding: .7rem 1rem;
    border: 1px solid var(--_bso-line);
    border-radius: .5rem;
    background: var(--_bso-paper);
    color: var(--_bso-navy);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }
  :where(.bso-home .bso-home-actions a:first-child, .bso-home .bso-home-primary) {
    border-color: var(--_bso-blue);
    background: var(--_bso-blue);
    background: linear-gradient(135deg, var(--_bso-blue), color-mix(in srgb, var(--_bso-blue) 80%, var(--_bso-navy)));
    box-shadow: 0 4px 12px #155eef1a;
    color: #fff;
  }
  :where(.bso-home .bso-home-actions a:hover) { filter: brightness(.97); }
  :where(.bso-home .bso-home-actions svg) { width: 1rem; height: 1rem; }
  :where(.bso-home .bso-home-tools) { max-width: 39ch; color: var(--_bso-muted); font-size: .75rem; line-height: 1.5; }
  :where(.bso-home a):focus-visible { outline: 2px solid var(--_bso-blue); outline-offset: 4px; }
  :where(.bso-home .bso-home-data) {
    display: flex;
    flex: 1.8 1 29rem;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
  }
  :where(.bso-home .bso-home-metrics) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
  }
  :where(.bso-home .bso-home-data-heading) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; min-width: 0; color: var(--_bso-muted); font-size: .75rem; line-height: 1.4; }
  :where(.bso-home .bso-home-data-heading > strong) { color: var(--_bso-navy); font-size: .875rem; font-weight: 700; }
  :where(.bso-home .bso-home-metrics > *) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .3rem;
    min-width: 0;
    padding: .85rem 1rem;
    border: 1px solid var(--_bso-line);
    border-radius: .65rem;
    background: #ffffffb8;
  }
  :where(.bso-home .bso-home-metrics strong, .bso-home .bso-home-metrics dd) {
    display: block;
    order: -1;
    margin: 0;
    color: var(--_bso-navy);
    font-family: var(--_bso-heading);
    font-size: 1.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1;
  }
  :where(.bso-home .bso-home-metrics > :first-child strong, .bso-home .bso-home-metrics > :first-child dd) { color: var(--_bso-blue); }
  :where(.bso-home .bso-home-metrics small, .bso-home .bso-home-metrics dt, .bso-home .bso-home-metrics span) {
    margin: 0;
    color: var(--_bso-muted);
    font-size: .75rem;
    line-height: 1.35;
  }
  :where(.bso-home .bso-home-scoregrid) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .75rem;
    min-width: 0;
    max-width: 100%;
  }
  :where(.bso-home .bso-home-game) {
    display: grid;
    align-content: center;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--_bso-line);
    border-radius: .7rem;
    background: var(--_bso-paper);
    color: var(--_bso-navy);
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 2px 5px #172b4d02;
  }
  :where(.bso-home .bso-home-game:hover) { border-color: color-mix(in srgb, var(--_bso-blue) 35%, var(--_bso-line)); }
  :where(.bso-home .bso-home-game-meta, .bso-home .bso-home-game-top) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-width: 0;
    margin-bottom: .25rem;
    color: var(--_bso-muted);
    font-size: .6875rem;
    line-height: 1.3;
  }
  :where(.bso-home .bso-home-game-meta > b, .bso-home .bso-home-game-top > strong) { color: var(--_bso-blue); font-size: .6875rem; font-weight: 750; letter-spacing: .05em; }
  :where(.bso-home .bso-home-game-meta > span, .bso-home .bso-home-game-status) { min-width: 0; text-align: end; }
  :where(.bso-home .bso-home-team) {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    color: var(--_bso-navy);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
  }
  :where(.bso-home .bso-home-team img) { display: block; width: 1.75rem; height: 1.75rem; object-fit: contain; }
  :where(.bso-home .bso-home-team > span) { min-width: 0; overflow-wrap: anywhere; }
  :where(.bso-home .bso-home-team strong, .bso-home .bso-home-score) { color: var(--_bso-navy); font-size: 1rem; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
  :where(.bso-home .bso-home-game-time) { display: flex; justify-content: space-between; gap: .5rem; margin-top: .2rem; color: var(--_bso-muted); font-size: .625rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
  :where(.bso-home .bso-home-source) { margin: 0; color: var(--_bso-muted); font-size: .6875rem; line-height: 1.5; }
  :where(.bso-home .bso-home-empty) { margin: 0; padding: 1.1rem; border: 1px dashed var(--_bso-line); border-radius: .65rem; color: var(--_bso-muted); font-size: .875rem; line-height: 1.5; }
  @media (max-width: 600px) {
    :where(.bso-home .bso-home-leagues) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    :where(.bso-home .bso-home-actions) { flex-direction: column; align-items: stretch; width: 100%; }
    :where(.bso-home .bso-home-actions a) { width: 100%; min-height: 2.75rem; }
    :where(.bso-home .bso-home-game:nth-child(n+4)) { display: none; }
    :where(.bso-home) { gap: 1.4rem; padding: 1.25rem; border-radius: 1rem; }
    :where(.bso-home .bso-home-intro) { gap: .8rem; }
    :where(.bso-home .bso-home-intro h2) { max-width: 18ch; font-size: 1.8rem; }
    :where(.bso-home .bso-home-intro > p) { font-size: .875rem; }
    :where(.bso-home .bso-home-actions a) { flex: 1; padding-inline: .8rem; }
    :where(.bso-home .bso-home-metrics) { gap: .5rem; }
    :where(.bso-home .bso-home-metrics > *) { padding: .75rem .65rem; }
    :where(.bso-home .bso-home-metrics strong, .bso-home .bso-home-metrics dd) { font-size: 1.65rem; }
    :where(.bso-home .bso-home-metrics small, .bso-home .bso-home-metrics dt, .bso-home .bso-home-metrics span) { font-size: .6875rem; }
  }
  @media (prefers-reduced-motion: no-preference) {
    :where(.bso-home a) { transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease; }
  }
}

/* Only the new native navigation item needs protection from theme anchor rules. */
.betsidekick-stats-odds-nav-item > a,
.wpn-header-nav a[data-bso-new] {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.betsidekick-stats-odds-nav-item > a .bso-nav-bolt,
.wpn-header-nav a[data-bso-new] .bso-nav-bolt {
  display: block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1.125rem;
  color: var(--wp--preset--color--primary, #155eef);
  fill: currentColor;
}


/* Whole-card links and the primary action retain their intended contrast. */
.home .wpn-main > .bso-home {
  margin-block-end: clamp(3rem, 6vw, 5rem);
}
.bso-home a.bso-home-primary {
  color: #fff;
  text-decoration: none;
}
.bso-home a.bso-home-secondary,
.bso-home a.bso-home-game {
  text-decoration: none;
}
.bso-home a.bso-home-game {
  color: var(--_bso-navy, #172b4d);
}
