/* Data-driven public header. It uses theme tokens but never the theme's
   hard-coded header composition; original themes keep their own headers. */
.sb-custom-header {
  position: relative;
  z-index: 80;
  width: 100%;
  color: var(--sb-text, #1b1a17);
  font-family: var(--sb-font-body, system-ui, sans-serif);
  background: color-mix(in srgb, var(--sb-bg, #fff) 92%, var(--sb-surface, #fff) 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--sb-border, #ddd) 80%, transparent);
}
.sb-custom-header.is-sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}
.sb-custom-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 32px), var(--sb-header-max, 1240px));
  margin: 0 auto;
  padding-top: var(--sb-header-pad, 16px);
  padding-bottom: var(--sb-header-pad, 16px);
}
.sb-custom-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sb-custom-header__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sb-primary);
  color: var(--sb-primary-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.sb-custom-header__logo {
  display: block;
  width: auto;
  max-width: 170px;
  height: 42px;
  object-fit: contain;
}
.sb-custom-header__copy { display: grid; gap: 2px; min-width: 0; }
.sb-custom-header__eyebrow { color: var(--sb-muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sb-custom-header__meta { color: var(--sb-muted); font-size: 9px; letter-spacing: .08em; }
.sb-custom-header__copy strong {
  overflow: hidden;
  color: var(--sb-text);
  font-family: var(--sb-font-heading);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-custom-header__copy small {
  overflow: hidden;
  color: var(--sb-muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-custom-header__nav {
  display: flex;
  align-items: center;
  justify-content: var(--sb-header-nav-align, left);
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.sb-custom-header__nav .site-menu-item > a,
.sb-custom-header__nav .site-menu-link {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--sb-text) 82%, var(--sb-muted));
  font-size: var(--sb-header-nav-size, 12px);
  font-weight: 650;
  letter-spacing: .04em;
  text-decoration: none;
}
.sb-custom-header__nav .site-menu-item > a:hover,
.sb-custom-header__nav .site-menu-link:hover { background: color-mix(in srgb, var(--sb-primary) 10%, transparent); color: var(--sb-primary); }
.sb-custom-header--caps .sb-custom-header__nav .site-menu-item > a,
.sb-custom-header--caps .sb-custom-header__nav .site-menu-link { text-transform: uppercase; }
.sb-custom-header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sb-custom-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.sb-custom-header__button--primary { background: var(--sb-primary); color: var(--sb-primary-text); }
.sb-custom-header__button--primary:hover { filter: brightness(1.07); }
.sb-custom-header__button--ghost { border-color: color-mix(in srgb, var(--sb-border) 82%, transparent); color: var(--sb-text); }
.sb-custom-header__button--ghost:hover { border-color: var(--sb-primary); color: var(--sb-primary); }
.sb-custom-header__button--plain { padding: 0; border: 0; background: none; color: var(--sb-text); text-decoration: underline; text-underline-offset: 3px; }
.sb-custom-header__toggle {
  display: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--sb-border) 82%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--sb-text);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sb-custom-header--brand-buttons-menu .sb-custom-header__brand { order: 0; }
.sb-custom-header--brand-buttons-menu .sb-custom-header__actions { order: 1; margin-left: auto; }
.sb-custom-header--brand-buttons-menu .sb-custom-header__nav { order: 2; flex: 0 0 auto; }
.sb-custom-header--menu-brand-buttons .sb-custom-header__nav { order: 0; flex: 0 0 auto; }
.sb-custom-header--menu-brand-buttons .sb-custom-header__brand { order: 1; margin-left: auto; }
.sb-custom-header--menu-brand-buttons .sb-custom-header__actions { order: 2; }
.sb-custom-header--center-brand .sb-custom-header__nav { order: 0; flex: 0 0 auto; }
.sb-custom-header--center-brand .sb-custom-header__brand { order: 1; flex: 1; justify-content: center; }
.sb-custom-header--center-brand .sb-custom-header__actions { order: 2; }

@media (max-width: 900px) {
  .sb-custom-header__inner { flex-wrap: wrap; gap: 12px; }
  .sb-custom-header__brand { width: auto; }
  .sb-custom-header__nav { order: 5 !important; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; }
  .sb-custom-header__actions { margin-left: auto; }
}

@media (max-width: 760px) {
  .sb-custom-header__inner { width: calc(100% - 22px); padding-top: 12px; padding-bottom: 12px; }
  .sb-custom-header--toggle .sb-custom-header__toggle { display: inline-flex; }
  .sb-custom-header--toggle .sb-custom-header__nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 2px; }
  .sb-custom-header--toggle .sb-custom-header__nav.is-open { display: flex; }
  .sb-custom-header--toggle .sb-custom-header__nav .site-menu-item > a,
  .sb-custom-header--toggle .sb-custom-header__nav .site-menu-link { display: flex; width: 100%; }
  .sb-custom-header--toggle .site-submenu { position: static; display: flex; flex-direction: column; padding-left: 12px; box-shadow: none; border: 0; }
  .sb-custom-header__actions { width: 100%; flex-wrap: wrap; }
  .sb-custom-header__button { flex: 1 1 auto; }
}

/* Footer account CTA (future player cabinet). */
.sb-footer-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}
.sb-footer-account--primary { background: var(--sb-primary); color: var(--sb-primary-text); }
.sb-footer-account--primary:hover { filter: brightness(1.07); }
.sb-footer-account--ghost { border-color: color-mix(in srgb, var(--sb-border) 80%, transparent); color: var(--sb-text); }
.sb-footer-account--ghost:hover { border-color: var(--sb-primary); color: var(--sb-primary); }
.sb-abs-mini-footer .sb-footer-account--left { order: -2; }
.sb-abs-mini-footer .sb-footer-account--center { margin-left: auto; margin-right: auto; }
.sb-abs-mini-footer .sb-footer-account--right { order: 2; }
.site-footer .sb-footer-account { margin-left: 12px; vertical-align: middle; }
.sb-custom-header--align-center .sb-custom-header__inner { justify-content: center; }
.sb-custom-header--align-center .sb-custom-header__brand { text-align: center; }
.sb-custom-header--align-center .sb-custom-header__nav { flex: 0 1 auto; justify-content: center; }
.sb-custom-header--align-center .sb-custom-header__actions { margin-left: 0; }
.sb-custom-header--align-right .sb-custom-header__inner { justify-content: flex-end; }
.sb-custom-header--align-right .sb-custom-header__brand { margin-left: 0; }
.sb-custom-header--align-right .sb-custom-header__nav { flex: 0 1 auto; margin-left: 0; }
.sb-custom-header--align-right .sb-custom-header__actions { margin-left: 0; }

@media (max-width: 760px) {
  .sb-custom-header--hide-subtitle-mobile .sb-custom-header__copy small { display: none; }
  .sb-custom-header--hide-buttons-mobile .sb-custom-header__actions { display: none; }
}
.sb-abs--modern-light .sb-footer-account { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; }
.sb-abs--editorial .sb-footer-account { border-radius: 0; font-family: var(--sb-font-heading); text-transform: uppercase; letter-spacing: .12em; }
.sb-abs--neon-tech .sb-footer-account { border-radius: 0; font-family: var(--sb-font-heading); text-transform: uppercase; }
.sb-abs--organic-soft .sb-footer-account { border-radius: 999px; }

/* Editable classic footer. Absolute themes use their own compositions. */
.sb-classic-footer { display: grid; gap: 16px; padding: 26px 0 22px; }
.sb-theme-footer--brandless.sb-theme-footer--classic { padding-top: 16px; }
.sb-classic-footer__main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 28px; }
.sb-classic-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sb-text); }
.sb-classic-footer__main > p { max-width: 560px; margin: 0; color: var(--sb-muted); font-size: 12px; line-height: 1.6; }
.sb-classic-footer__main nav { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.sb-classic-footer__main nav a { color: var(--sb-text); font-size: 11px; text-decoration: none; }
.sb-classic-footer__main nav span { color: var(--sb-muted); font-size: 11px; }
.sb-classic-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--sb-border) 72%, transparent); color: var(--sb-muted); font-size: 10px; }
.sb-theme-footer__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-theme-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sb-theme-footer__meta .sb-footer-account--left { order: -1; margin-right: auto; }
.sb-theme-footer__meta .sb-footer-account--center { margin-left: auto; margin-right: auto; }
.sb-theme-footer__meta .sb-footer-account--right { margin-left: auto; }
.sb-theme-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.sb-theme-footer__button--primary { background: var(--sb-primary); color: var(--sb-primary-text); }
.sb-theme-footer__button--ghost { border-color: currentColor; }
.sb-theme-footer__button--plain { padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.sb-theme-footer__logo { display: block; width: auto; max-width: 150px; max-height: 34px; object-fit: contain; }
.sb-theme-footer__note { color: var(--sb-muted); font-size: 10px; letter-spacing: .06em; }
@media (max-width: 760px) {
  .sb-classic-footer__main nav { width: 100%; margin-left: 0; }
  .sb-theme-footer__meta { width: 100%; justify-content: flex-start; }
  .sb-theme-footer__meta .sb-footer-account--center,
  .sb-theme-footer__meta .sb-footer-account--right { margin-left: 0; }
}
