/* ============================================================
   sb-stats — Component.css
   Mobile-first: base styles target mobile (< 768px).
   Desktop overrides in a single @media (min-width: 768px) block.
   ============================================================ */

/* ── Wrapper ───────────────────────────────────────────────── */
.sbst-wrap {
  width: 100%;
  padding: 0 var(--container-offset) var(--container-offset);
  position: relative;
  z-index: 1;
}

/* ── Header: title + gender toggle + filter button ──────── */
.sbst-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.sbst-title {
  order: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  text-transform: uppercase;
  color: hsl(var(--text_invert_high));
}

/* ── Gender tabs ─────────────────────────────────────────── */
.sbst-gender-tabs {
  order: 3;
  display: flex;
  width: 100%;
  height: 40px;
  border: 1px solid hsl(var(--border_invert_default));
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sbst-gender-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font: var(--body_md_bold);
  color: hsl(var(--text_sec_high));
  cursor: pointer;
  text-transform: uppercase;
  background: transparent;
  border: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.sbst-gender-tab--active {
  background: hsl(var(--background_prim_card));
  /* color: hsl(var(--text_invert_high)); */
}

/* ── Filter toggle button ────────────────────────────────── */
.sbst-filter-toggle-btn {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 8px;
  padding: 0.625rem 0.3125rem;
  background-color: hsl(var(--button_filled_style_3_surface_default));
  flex-shrink: 0;
  cursor: pointer;
}

.sbst-filter-icon {
  flex-shrink: 0;
}

.sbst-filter-toggle-btn-text {
  display: none;
  font: var(--body_sm_bold);
  text-transform: uppercase;
}

/* ── Category tabs ───────────────────────────────────────── */
.sbst-category-tabs {
  display: flex;
  border-bottom: 1px solid hsl(var(--border_invert_default));
  margin-bottom: 20px;
}

.sbst-category-tab {
  flex: 1;
  padding: 12px 8px;
  font: var(--body_sm_regular);
  color: hsl(var(--text_prim_high));
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.sbst-category-tab--active {
  font: var(--body_sm_bold);
  /* color: hsl(var(--text_invert_high)); */
  border-bottom-color: hsl(var(--text_invert_high));
}

/* ── Featured player card ────────────────────────────────── */

/* Outer wrapper — overflow: visible so the player image can bleed above the card */
.sbst-featured-wrap {
  position: relative;
  padding-top: 15px;
  margin-bottom: 30px;
}

/* Card — overflow: hidden clips the rounded corners; no direct overflow concern */
.sbst-featured {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  min-height: 134px;
}

.sbst-featured__left {
  min-width: 112px;
  background: hsl(var(--background_prim_card));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.sbst-featured__left::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--player-bg) bottom / 100% 100% no-repeat;
  z-index: 0;
}

/* Rank badge — positioned relative to the wrap, above the player image */
.sbst-featured__rank {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  width: 22px;
  height: 19px;
  border-radius: 4px;
  padding: 2px 8px;
  background: linear-gradient(90deg, #2939a3 0%, #eb1414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font: var(--body_xs_bold);
  color: hsl(var(--text_invert_high));
  box-sizing: border-box;
}

/* Player image — sibling of the card, positioned relative to .sbst-featured-wrap.
   height: 100% = wrapper height (36px padding + card) so the top bleeds into the padding area. */
.sbst-featured__player-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  pointer-events: none;
}

/* Initials fallback when no player image is available */
.sbst-featured__avatar {
  width: 68px;
  height: 68px;
  background: hsl(var(--background_main_container));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* .sbst-featured__initials {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_sec));
  text-transform: uppercase;
  font-size: 18px;
} */

.sbst-featured__right {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
  background: hsl(var(--background_main_surface));
}

.sbst-featured__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 15px;
  padding: 4px 6px;
  background: linear-gradient(90deg, #2939a3 0%, #eb1414 100%);
  color: hsl(var(--text_sec_high));
  font: var(--badge_sm);
  border-radius: 4px;
  /* font-size: 9px; */
  text-transform: uppercase;
  align-self: flex-start;
  /* letter-spacing: 0.06em; */
  box-sizing: border-box;
}

.sbst-featured__name {
  font: var(--dp_4_regular);
  color: hsl(var(--text_main_sec));
  text-transform: uppercase;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
  margin: 0;
  /* line-height: 1.2; */
}

.sbst-featured__name::after {
  content: "";
  display: block;
  width: calc(100% - 2px);
  height: 1px;
  background: hsl(var(--border_main_disable));
  margin: 10px auto 0;
  border-radius: 1px;
}

.sbst-featured__stats {
  display: flex;
  overflow-x: auto;
  padding-top: 14px;
  scrollbar-width: none;
}

.sbst-featured__stats::-webkit-scrollbar {
  display: none;
}

.sbst-featured__stat-item {
  flex: 1;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-left: 1px solid hsl(var(--border_main_disable));
}

.sbst-featured__stat-item:first-child {
  border-left: none;
}

/* On mobile, desktop-only items are display:none, so the DOM's :first-child
   may be hidden — remove the border from whichever item is actually first
   visible instead. Restored on desktop in the @media block below. */
.sbst-featured__stat-item--first-mobile {
  border-left: none;
}

/* Hidden on mobile; shown when viewport is wide enough */
.sbst-featured__stat-item--desktop-only {
  display: none;
}

.sbst-featured__stat-val {
  font: var(--h1_bold);
  color: hsl(var(--text_main_prim));
  /* line-height: 1; */
}

.sbst-featured__stat-label {
  font: var(--body_sm_medium);
  color: hsl(var(--text_main_high));
  /* font-size: 8px; */
  text-transform: uppercase;
  /* white-space: nowrap; */
  /* letter-spacing: 0.04em; */
}

/* ── Table wrap ──────────────────────────────────────────── */
.sbst-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 0.5px solid hsl(var(--border_main_disable));
  border-radius: 12px;
}

/* ── Table ───────────────────────────────────────────────── */
.sbst-table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Table header ────────────────────────────────────────── */
.sbst-thead-row {
  background: hsl(var(--background_sec_surface));
}

.sbst-th {
  padding: 10px;
  text-transform: uppercase;
  color: hsl(var(--text_invert_high));
  text-align: center;
  /* white-space: nowrap; */
  /* border: none; */
  font: var(--body_xs_bold);
}

/* .sbst-th--pos {
  width: 36px;
  min-width: 36px;
} */

.sbst-th--teams {
  text-align: left;
  /* padding-left: 8px;
  min-width: 110px; */
}

/* .sbst-th--primary {
  color: hsl(var(--text_prim_high));
} */

/* Secondary columns hidden on mobile */
.sbst-th--secondary {
  display: none;
}

/* ── Table rows ──────────────────────────────────────────── */
.sbst-row--even {
  background: hsl(var(--background_main_surface));
}

.sbst-row--odd {
  background: hsl(var(--background_main_container));
}

.sbst-row--featured {
  background: hsl(var(--background_prim_card) / 0.12);
}

/* ── Table cells ─────────────────────────────────────────── */
.sbst-cell {
  padding: 10px 6px;
  text-align: center;
  color: hsl(var(--text_main_sec));
  font: var(--body_md_medium);
  border: none;
  vertical-align: middle;
}

.sbst-cell--pos {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_sec));
}

.sbst-cell--teams {
  text-align: left;
  padding-left: 8px;
}

.sbst-cell--primary {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_sec));
}

/* Secondary cells hidden on mobile */
.sbst-cell--secondary {
  font: var(--body_md_medium);
  color: hsl(var(--text_main_sec));
  display: none;
}

/* ── Player cell ─────────────────────────────────────────── */
.sbst-player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sbst-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(var(--background_main_surface));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}

.sbst-row--even .sbst-logo-wrap {
  background: hsl(var(--background_main_container));
}

.sbst-row--featured .sbst-logo-wrap {
  background: hsl(var(--background_prim_card) / 0.12);
}

.sbst-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sbst-player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sbst-player-name {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_sec));
  text-transform: uppercase;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.sbst-player-name--featured {
  color: hsl(var(--text_main_prim));
}

.sbst-cell--featured {
  color: hsl(var(--text_main_prim));
}

.sbst-player-team {
  /* display: none; */
  font: var(--body_xs_regular);
  color: hsl(var(--text_main_medium));
  text-transform: uppercase;
  align-self: flex-start;
  border-top: 1px solid hsl(var(--border_main_disable));
  padding-top: 8px;
  margin-top: 8px;
}
.sbst-row--featured .sbst-player-team {
  border-top: 0.5px solid hsl(var(--border_main_prim));
}

/* ── Empty states ────────────────────────────────────────── */
.sbst-empty-cell {
  padding: 40px 24px;
  text-align: center;
  color: hsl(var(--text_main_low));
  font: var(--h3_medium);
}

.sbst-empty-msg {
  padding: 40px 24px;
  text-align: center;
  color: hsl(var(--text_main_low));
  font: var(--h3_medium);
}

.sbst-empty-state {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 50% 24px;
}

.sbst-empty-img {
  width: 18px;
  height: 18px;
}

.sbst-empty-state .sbst-empty-msg,
.sbst-empty-state .sbst-empty-cell {
  padding: 0;
}

.sbst-loading {
  padding: 40px 24px;
  text-align: center;
  color: hsl(var(--text_main_medium, 0 0% 55%));
  font-size: 15px;
}

.sbst-sentinel {
  height: 1px;
  width: 100%;
}

.sbst-loading-more {
  padding: 16px 24px;
  text-align: center;
  color: hsl(var(--text_main_medium));
  font: var(--body_md_bold);
}

/* ── Filter backdrop ─────────────────────────────────────── */
.sbst-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1399;
}

/* ── Filter panel (slides in from right) ─────────────────── */
.sbst-filter-panel {
  position: fixed;
  inset: 0 0 0 auto;
  /* width: 100vw; */
  height: 100dvh;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: hsl(var(--background_main_surface));
  width: 100%;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0s 0.3s;
}

.sbst-filter-panel--open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.3s ease,
    visibility 0s 0s;
}

/* ── Panel header ────────────────────────────────────────── */
.sbst-filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: hsl(var(--background_sec_container_2));
  flex-shrink: 0;
}

.sbst-filter-panel-title {
  text-transform: uppercase;
  color: hsl(var(--text_sec_high));
}

.sbst-filter-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: hsl(var(--text_sec_high));
  cursor: pointer;
}

.sbst-filter-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Filter body ────────────────────────────────────────── */
.sbst-filter-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sbst-filter-item {
  position: relative;
}

.sbst-filter-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #e5e7eb;
}

.sbst-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 24px;
  cursor: pointer;
}

.sbst-filter-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sbst-filter-row-label {
  text-transform: uppercase;
  color: hsl(var(--text_main_low));
  font: var(--body_sm_regular);
}

.sbst-filter-row-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: hsl(var(--text_main_prim));
  font: var(--body_md_bold);
}

.sbst-filter-row-chevron {
  flex-shrink: 0;
  color: hsl(var(--text_main_medium));
  transition: transform 0.2s ease;
}

.sbst-filter-row-chevron--open {
  transform: rotate(180deg);
}

.sbst-filter-dropdown {
  padding-left: 24px;
  padding-right: 24px;
}

.sbst-filter-option {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.75rem;
  cursor: pointer;
  color: hsl(var(--text_main_high));
  font: var(--body_sm_medium);
  background: none;
  border: none;
  text-align: left;
}

.sbst-filter-option:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: #f3f4f6;
}

.sbst-filter-option--selected {
  color: hsl(var(--text_main_prim));
}

/* ── Filter footer ──────────────────────────────────────── */
/* A plain static flex item (sibling of .sbst-filter-body, both children of
   .sbst-filter-panel) — no position:fixed/sticky at all. .sbst-filter-panel
   has a transform (for its slide-in animation) which makes it the containing
   block for any position:fixed descendant, so a "fixed" footer nested inside
   it anchors to the panel's own box, not the real viewport — the opposite of
   what's needed when a mobile WebView's native header throws off the panel's
   own height. Since the panel has a bounded height and .sbst-filter-body is
   flex:1 (scrolling internally), this footer is guaranteed visible right
   after it with no special positioning, immune to both that transform issue
   and to position:fixed's separate reliability issues in some WebViews. */
.sbst-filter-footer {
  background: hsl(var(--background_main_surface));
  /* border-top: 0.5px solid hsl(var(--border_main_prim)); */
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  justify-content: center;
}

.sbst-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-width: 156px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 8px;
  gap: 0.25rem;
  padding: 0.625rem 5px;
  background: hsl(var(--button_filled_style_1_surface_default));
  text-transform: uppercase;
  color: hsl(var(--button_filled_style_1_text_default));
  border: none;
  cursor: pointer;
}

.sbst-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-width: 156px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 8px;
  gap: 0.25rem;
  padding: 0.625rem 5px;
  background: hsl(var(--background_main_surface));
  color: hsl(var(--button_outline_style_1_text_default));
  border: 1px solid hsl(var(--button_outline_style_1_text_default));
  text-transform: uppercase;
  cursor: pointer;
}

.sbst-reset-icon {
  flex-shrink: 0;
}

/* ── Desktop overrides (≥ 768px) ─────────────────────────── */
@media (min-width: 768px) {
  .sbst-empty-state {
    padding: 15% 24px;
  }

  .sbst-featured {
    min-height: 212px;
  }

  .sbst-featured__name::after {
    margin: 20px auto 0;
  }
  .sbst-header {
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 50px;
  }

  .sbst-gender-tabs {
    order: 2;
    width: 180px;
  }
  .sbst-featured__rank {
    width: 43px;
    height: 31px;
    font: var(--h1_bold);
  }

  /* Filter toggle: expand to show text, move to end */
  .sbst-filter-toggle-btn {
    order: 3;
    width: auto;
    min-width: 107px;
    max-width: unset;
    padding: 0.625rem 1rem;
  }

  .sbst-filter-toggle-btn-text {
    display: inline;
  }

  /* Filter panel: right-side drawer */
  .sbst-filter-panel {
    width: 375px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  }

  .sbst-category-tab {
    font: var(--body_lg_regular);
    color: hsl(var(--text_sec_high));
    padding: 14px 12px;
  }
  .sbst-category-tab--active {
    font: var(--body_lg_bold);
  }

  /* Show all stat columns */
  .sbst-th--secondary {
    display: table-cell;
  }

  .sbst-cell--secondary {
    display: table-cell;
  }

  /* Show desktop-only featured stat items */
  .sbst-featured__stat-item--desktop-only {
    display: flex;
  }

  /* Desktop shows every item, so the mobile-only border exception no longer
     applies — restore it unless this item is also the true :first-child. */
  .sbst-featured__stat-item--first-mobile {
    border-left: 1px solid hsl(var(--border_main_disable));
  }

  /* Larger table cells */
  .sbst-th {
    padding: 13px 10px;
    font: var(--body_sm_bold);
  }

  .sbst-cell {
    padding: 12px 10px;
  }

  .sbst-cell--teams {
    padding-left: 12px;
  }

  .sbst-player-cell {
    gap: 10px;
  }

  /* Featured card desktop */
  .sbst-featured__left {
    min-width: 170px;
  }

  .sbst-featured__player-img {
    width: 170px;
  }

  .sbst-featured__avatar {
    width: 100px;
    height: 100px;
  }

  .sbst-featured__right {
    padding: 30px 32px;
    gap: 4px;
  }

  .sbst-featured__stats {
    padding-top: 24px;
  }

  .sbst-featured__stat-item {
    gap: 10px;
  }
}

/* Empty state only widens its padding on large desktop monitors —
   1366px-wide laptops stay in the 15% bucket. */
@media (min-width: 1920px) {
  .sbst-empty-state {
    padding: 25% 24px;
  }
}

/* ── Skeleton shimmer ────────────────────────────────────── */
@keyframes sbst-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sbst-shimmer {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    hsl(var(--background_main_container)) 25%,
    hsl(var(--background_main_surface)) 50%,
    hsl(var(--background_main_container)) 75%
  );
  background-size: 200% 100%;
  animation: sbst-shimmer 1.4s ease-in-out infinite;
}

.sbst-shimmer--sm {
  height: 12px;
  width: 28px;
}
.sbst-shimmer--badge {
  height: 15px;
  width: 58px;
}
.sbst-shimmer--name {
  height: 16px;
  width: 110px;
}
.sbst-shimmer--val {
  height: 18px;
  width: 36px;
}
.sbst-shimmer--label {
  height: 10px;
  width: 52px;
  margin-top: 4px;
}
.sbst-shimmer--logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sbst-shimmer--player-name {
  height: 12px;
  width: 80px;
}
.sbst-shimmer--team-name {
  height: 10px;
  width: 52px;
  margin-top: 8px;
}

/* ── Shared pennant badge ────────────────────────────────────────────────────── */

.sbh-pennant-sm {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 66px;
  top: 5px;
}

.sbh-pennant-lg {
  position: absolute;
  left: calc(var(--container-offset));
  top: 0;
  z-index: 10;
  width: 85px;
  height: 103px;
}

.sbh-pennant-svg {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.sbh-pennant-shape {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.sbh-logo-path-theme {
  fill: black;
  transition: fill 0.3s ease;
}

/* ─── Desktop Header: Home page transparent states ─── */
.sbh-header-desktop {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* 1. Desktop Pennant Badge on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-pennant-shape {
  fill: #1f2b7b;
}

body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-logo-path-theme {
  fill: white;
}

/* 2. Desktop Topbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-topbar {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3. Desktop Navbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-navbar {
  background: hsl(var(--core_neu_50) / 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sbh-pennant-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sbh-pennant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────────── */

.sbh-mobile-bar {
  height: 54px;
  background: #ffffff;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
  box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.2);
}

/* Mobile Pennant Shape default background (always blue by default) */
.sbh-header-mobile .sbh-pennant-shape {
  fill: #1f2b7b;
}

/* Mobile Logo Paths default fill (always white by default) */
.sbh-header-mobile .sbh-logo-path-theme {
  fill: #ffffff;
}

/* Mobile Bar when scrolled and not open: gets the dark blue background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-mobile-bar {
  background: hsl(var(--background_sec_card));
  /* matches background_sec_card */
}

/* Mobile Pennant Shape when scrolled and not open: gets white background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-pennant-shape {
  fill: #ffffff;
}

/* Mobile Logo Paths when scrolled and not open: gets black fill */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-logo-path-theme {
  fill: #000000;
}

.sbh-cta-gap {
  border-top: 1px solid hsl(var(--border_sec_disable));
  gap: 24px;
}

.sbh-hamburger-btn {
  width: 60px;
  height: 54px;
}

.sbh-line-s {
  width: 12px;
}

.sbh-line-l {
  width: 22px;
}

/* ── Mobile overlay ──────────────────────────────────────────────────────────── */

.sbh-menu-overlay {
  font-family: "Montserrat", sans-serif;
  height: calc(100dvh - 54px);
  z-index: -1;
}

.sbh-left-panel {
  width: 185px;
}

.sbh-left-panel-inner {
  gap: 24px;
}

.sbh-download-row {
  height: 40px;
}

.sbh-download-icon {
  width: 36px;
  height: 36px;
}

.sbh-social-icon-sm {
  width: 24px;
  height: 28px;
}

/* ── Bottom pennant (left panel footer) ──────────────────────────────────────── */

.sbh-bottom-pennant {
  margin-top: auto;
  padding: 0 12px 16px;
}

.sbh-bottom-pennant-badge {
  position: relative;
  width: 54px;
  height: 66px;
  margin-top: -20px;
}

/* ── Right panel ─────────────────────────────────────────────────────────────── */

.sbh-right-bg {
  background:
    url("/static-assets/images/misc/sbstatic-assetsimagesmischeader-m-right-pattern.png"),
    var(--gradient_sec_vert_5_gradient);
}

.sbh-nav-inner {
  gap: 24px;
}

.sbh-chevron-left {
  font-size: 12px;
  line-height: 1;
  transform: rotate(-90deg);
}

.sbh-hospitality-btn {
  padding: 0 25px;
}

.sbh-cta-btn {
  border: 0.5px solid hsl(var(--text_invert_high));
  padding: 10px 20px;
}

/* ── Desktop ─────────────────────────────────────────────────────────────────── */

.sbh-desktop-offset {
  padding-left: 100px;
}

.sbh-topbar,
.sbh-navbar {
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.sbh-sponsor-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.sbh-sponsor-img--rounded {
  width: 28px;
  border-radius: 50%;
}

.sbh-more-panel {
  width: 165px;
}

.sbh-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.sbh-social-icon-desktop {
  width: 22px;
  height: 22px;
}

.sbh-desktop-nav-item.sbh-active {
  background-color: hsl(var(--background_prim_card));
}

.sbh-mobile-nav-item.sbh-active {
  color: hsl(var(--background_prim_card));
}
