/* =========================================================
   HEADER REDESIGN — BANCO SOL (premium escuro, 2 camadas)
   Estilos novos (bsh-*) + overrides sobre header-desktop.css
   e header-mobile.css (carregado DEPOIS destes).
   ========================================================= */

:root {
  --bsh-bg: #0a1420;          /* topbar / base */
  --bsh-bg-2: #0e1c2e;        /* camada de navegação */
  --bsh-bg-3: #142a42;        /* hover de tiles / drawer acentos */
  --bsh-ink: #ffffff;
  --bsh-muted: #9db0c6;
  --bsh-yellow: #ffd200;      /* amarelo institucional */
  --bsh-yellow-soft: rgba(255, 210, 0, .14);
  --bsh-line: rgba(255, 255, 255, .09);
  --bsh-h-top: 55px;          /* topbar escura (segmentos · ações) */
  --bsh-h-mid: 76px;          /* faixa clara (logo · CTAs) — não encolhe */
  --bsh-h-nav: 56px;          /* barra amarela (categorias) — não encolhe */
  --bsh-h-ticker: 44px;       /* ticker de câmbio (4.ª camada) */

  /* altura total do header (usada p/ hero das páginas internas) */
  --header-height: 231px;
}

/* =========================================================
   HEADER GLOBAL (wrapper)
   ========================================================= */
.bsh-header {
  background: var(--bsh-bg) !important;
  box-shadow: none !important;
}

.bsh-header,
.bsh-header a,
.bsh-header button {
  font-family: var(--font-base);
}

.bsh-header .bsh-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* focus visível premium */
.bsh-header :focus-visible,
.bsh-search :focus-visible,
.bsh-drawer :focus-visible {
  outline: 2px solid var(--bsh-yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================
   HEADER DESKTOP — FIXO (permanece no topo ao rolar)
   ========================================================= */
.bsh-header--desktop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
}

/* Devolve ao conteúdo o espaço ocupado pelo header fixo.
   Não usa var(--header-height): essa variável é sobreposta por hero.css
   (:root → 132px) e difere por página (o ticker de câmbio, 44px, só existe
   na home). Calcula-se a partir das camadas sempre presentes
   (topbar 55 + faixa 76 + nav 56 = 187px), imune à cascata. */
.bsh-spacer {
  display: block;
  height: 62px; /* mobile: altura da barra compacta */
}

/* mobile: barra compacta + ticker de câmbio (só na home).
   Limitado a < lg porque o header mobile continua no DOM no desktop. */
@media (max-width: 991.98px) {
  body:has(.bsh-header--mobile .cambio-ticker) .bsh-spacer {
    height: calc(62px + var(--bsh-h-ticker));
  }
}

@media (min-width: 992px) {
  .bsh-spacer {
    height: calc(var(--bsh-h-top) + var(--bsh-h-mid) + var(--bsh-h-nav)); /* desktop */
  }
}

/* =========================================================
   CAMADA 1 — TOPBAR ESCURA
   ========================================================= */
.bsh-header > .bsh-topbar,
.bsh-header .bsh-topbar {
  position: relative;
  height: var(--bsh-h-top);
  background: var(--bsh-bg) !important;
  border-bottom: 1px solid var(--bsh-line);
  transition: height .25s ease;
}

.bsh-header > .bsh-topbar .bsh-container,
.bsh-header .bsh-topbar .bsh-container {
  height: var(--bsh-h-top);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px;
  padding: 0 24px !important;
  transition: height .25s ease;
}

/* LOGO */
.bsh-header .bsh-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.bsh-header .bsh-logo img {
  height: 40px;
  width: auto;
  transition: height .25s ease;
}

/* =========================================================
   SEGMENTOS (tabs) — topbar
   ========================================================= */
.bsh-header .bsh-segments {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.bsh-header .bsh-segments__list {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  height: var(--bsh-h-top) !important;
  max-width: none !important;
  width: auto !important;
}

.bsh-header .bsh-segments__list .nav-item {
  height: var(--bsh-h-top) !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  list-style: none;
}

.bsh-header .bsh-segments__list .nav-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: var(--bsh-h-top) !important;
  padding: 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--bsh-muted) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  opacity: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease !important;
}

/* underline amarelo (scaleX animado) */
.bsh-header .bsh-segments__list .nav-link::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 0 !important;
  height: 3px !important;
  background: var(--bsh-yellow) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .28s ease !important;
  border-radius: 3px 3px 0 0 !important;
  box-shadow: none !important;
}

.bsh-header .bsh-segments__list .nav-link:hover,
.bsh-header .bsh-segments__list .nav-link:focus-visible {
  color: var(--bsh-ink) !important;
}

.bsh-header .bsh-segments__list .nav-link:hover::after,
.bsh-header .bsh-segments__list .nav-link.active::after {
  transform: scaleX(1) !important;
}

/* activo: amarelo + underline */
.bsh-header .bsh-segments__list .nav-link.active {
  color: var(--bsh-yellow) !important;
  font-weight: 800 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* =========================================================
   AÇÕES DO TOPO (pesquisa · idioma · CTAs)
   ========================================================= */
.bsh-header .bsh-top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px;
  flex-shrink: 0;
  position: static !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;
  list-style: none !important;
  margin: 0 !important;
  height: auto !important;
}

.bsh-header .bsh-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bsh-ink);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.bsh-header .bsh-action:hover,
.bsh-header .bsh-action:focus-visible {
  background: var(--bsh-yellow-soft);
  color: var(--bsh-yellow);
  transform: none !important;
}

.bsh-header .bsh-action svg,
.bsh-header .bsh-langs svg {
  display: block;
}

/* idomas (usado no header e no drawer) */
.bsh-langs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.bsh-langs__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .28);
}

.bsh-lang {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--bsh-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease;
}

.bsh-lang:hover,
.bsh-lang:focus-visible {
  color: var(--bsh-ink);
  background: var(--bsh-yellow-soft);
}

/* idioma activo — amarelo (sem sublinhado) */
.bsh-lang.is-active {
  color: var(--bsh-yellow);
  font-weight: 900;
}

/* =========================================================
   BOTÕES HEADER (Área do Cliente · Abrir Conta)
   ========================================================= */
.bsh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

/* CTA principal — amarelo institucional */
.bsh-btn--cta {
  background: var(--bsh-yellow) !important;
  color: #101318 !important;
  border: 1px solid var(--bsh-yellow) !important;
  box-shadow: 0 6px 18px rgba(255, 210, 0, .28);
}

.bsh-btn--cta:hover,
.bsh-btn--cta:focus-visible {
  transform: translateY(-1px);
  background: #ffdd33 !important;
  box-shadow: 0 10px 24px rgba(255, 210, 0, .38);
}

.bsh-btn--cta .bsh-btn__arrow {
  transition: transform .2s ease;
}

.bsh-btn--cta:hover .bsh-btn__arrow {
  transform: translateX(3px);
}

/* botão secundário "fantasma" */
.bsh-btn--ghost {
  background: transparent;
  color: var(--bsh-ink);
  border: 1px solid rgba(255, 255, 255, .35);
}

.bsh-btn--ghost:hover,
.bsh-btn--ghost:focus-visible {
  border-color: var(--bsh-yellow);
  color: var(--bsh-yellow);
  background: rgba(255, 210, 0, .08);
}

/* =========================================================
   CAMADA 2 — NAV PRINCIPAL (categorias do segmento)
   ========================================================= */
.bsh-header .bs-navbar {
  height: var(--bsh-h-nav) !important;
  background: var(--bsh-yellow) !important;
  background-image: none !important;
  border-top: 0 !important;
  border-bottom: 3px solid rgba(0, 0, 0, 0.15) !important;
  transition: height .25s ease;
}

.bsh-header .bs-navbar .bsh-container {
  height: var(--bsh-h-nav) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 24px !important;
}

.bsh-header .bs-navbar .tab-content {
  display: flex;
  width: 100%;
  height: var(--bsh-h-nav) !important;
}

.bsh-header .bs-navbar .tab-pane {
  display: none;
  flex: 1 1 auto;
  width: 100%;
}

.bsh-header .bs-navbar .tab-pane.show.active {
  display: flex;
  align-items: center;
}

.bsh-header .bs-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.bsh-header .bs-navbar .nav-item {
  height: var(--bsh-h-nav) !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.bsh-header .bs-navbar .nav-item.dropdown {
  position: relative !important;
}

/* remove separadores verticais antigos */
.bsh-header .bs-navbar .nav-item::after {
  content: none !important;
  display: none !important;
}

.bsh-header .bs-navbar .nav-link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: var(--bsh-h-nav) !important;
  padding: 0 18px !important;
  background: transparent !important;
  color: #0d2b52 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .2s ease !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* underline escuro */
.bsh-header .bs-navbar .nav-link::after {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 8px !important;
  height: 3px !important;
  background: #0d2b52 !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .28s ease !important;
  border-radius: 3px 3px 0 0 !important;
  display: block !important;
  border: 0 !important;
}

.bsh-header .bs-navbar .nav-link:hover,
.bsh-header .bs-navbar .nav-link:focus-visible {
  color: #071a33 !important;
  background: transparent !important;
}

.bsh-header .bs-navbar .nav-link:hover::after,
.bsh-header .bs-navbar .dropdown:hover > .nav-link::after,
.bsh-header .bs-navbar .dropdown:focus-within > .nav-link::after {
  transform: scaleX(1) !important;
}

/* estado activo (página actual) */
.bsh-header .bs-navbar .nav-link.active,
.bsh-header .bs-navbar .nav-item.active > .nav-link {
  color: #0d2b52 !important;
  background: transparent !important;
  font-weight: 900 !important;
}

.bsh-header .bs-navbar .nav-link.active::after,
.bsh-header .bs-navbar .nav-item.active > .nav-link::after {
  transform: scaleX(1) !important;
  width: auto !important;
  left: 18px !important;
  right: 18px !important;
}

/* caret (seta) do dropdown-toggle */
.bsh-header .bs-navbar .dropdown-toggle .bsh-caret {
  margin-left: 7px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .8;
  transition: transform .2s ease;
}

.bsh-header .bs-navbar .dropdown:hover .dropdown-toggle .bsh-caret,
.bsh-header .bs-navbar .dropdown.show .dropdown-toggle .bsh-caret {
  transform: rotate(225deg) translateY(0);
}

/* =========================================================
   DROPDOWN / MEGA MENU — premium (fade + translateY)
   ========================================================= */
.bsh-header .bs-navbar .nav-item.dropdown > .dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  width: 400px !important;
  min-width: 400px !important;
  max-width: 92vw !important;
  margin: 0 !important;
  padding: 8px 10px 10px !important;
  border: 1px solid rgba(16, 19, 24, .08) !important;
  border-radius: 0 !important;
  border-top: 1px solid rgba(16, 19, 24, .08) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 24px 55px rgba(2, 8, 18, .45) !important;
  z-index: 100000 !important;
  opacity: 0;
  transform: translateY(6px) !important;
  transition: opacity .15s ease, transform .15s ease;
}

/* remove textos/esquinas antigas do mega menu */
.bsh-header .bs-navbar .dropdown-menu::before,
.bsh-header .bs-navbar .dropdown-menu::after {
  content: none !important;
  display: none !important;
}

@media (min-width: 992px) {
  .bsh-header .bs-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .bsh-header .bs-navbar .nav-item.dropdown:focus-within > .dropdown-menu,
  .bsh-header .bs-navbar .nav-item.dropdown > .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0) !important;
  }
}

.bsh-header .bs-navbar .dropdown-menu li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  list-style: none;
}

.bsh-header .bs-navbar .dropdown-menu .dropdown-item {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  background-image: none !important;
  color: #22314a !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, padding-left .16s ease;
}

/* seta "›" à direita */
.bsh-header .bs-navbar .dropdown-menu .dropdown-item::before {
  content: none !important;
}

.bsh-header .bs-navbar .dropdown-menu .dropdown-item::after {
  content: "›" !important;
  color: var(--bsh-yellow) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  margin-left: auto !important;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .16s ease, transform .16s ease;
}

.bsh-header .bs-navbar .dropdown-menu .dropdown-item:hover,
.bsh-header .bs-navbar .dropdown-menu .dropdown-item:focus-visible,
.bsh-header .bs-navbar .dropdown-menu .dropdown-item.active {
  background: var(--bsh-yellow-soft) !important;
  color: #101318 !important;
  padding-left: 18px !important;
}

.bsh-header .bs-navbar .dropdown-menu .dropdown-item:hover::after,
.bsh-header .bs-navbar .dropdown-menu .dropdown-item:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   FAIXA BRANCA (camada 2) — logo + CTAs
   ========================================================= */
.bsh-header .bsh-mid {
  height: var(--bsh-h-mid);
  background: #f5f7fa !important;
  border-bottom: 1px solid #e9edf3;
}

.bsh-header .bsh-mid .bsh-container {
  height: var(--bsh-h-mid);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  padding: 0 24px !important;
}

.bsh-header .bsh-mid .bsh-logo img {
  height: 44px;
  width: auto;
  transition: height .25s ease;
}

.bsh-header .bsh-mid__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px;
  flex-shrink: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* botão "fantasma" adaptado para fundo branco */
.bsh-header .bsh-mid .bsh-btn--ghost {
  color: #22314a !important;
  border-color: rgba(10, 20, 32, .35) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bsh-header .bsh-mid .bsh-btn--ghost:hover,
.bsh-header .bsh-mid .bsh-btn--ghost:focus-visible {
  color: #101318 !important;
  border-color: #101318 !important;
  background: rgba(10, 20, 32, .05) !important;
}

/* =========================================================
   HEADER FIXO — sombra subtil ao rolar (sem encolher)
   ========================================================= */
.bsh-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35) !important;
}

/* =========================================================
   RESPONSIVE — DESKTOP ESTRITO (992–1199)
   ========================================================= */
@media (max-width: 1199.98px) {
  .bsh-header .bsh-segments__list .nav-link {
    padding: 0 10px !important;
    font-size: 13.5px !important;
  }

  .bsh-header .bsh-btn--ghost {
    display: none;
  }

  .bsh-header .bsh-langs__sep {
    display: none;
  }

  .bsh-header .bs-navbar .nav-link {
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .bsh-header .bs-navbar .nav-item.dropdown > .dropdown-menu {
    width: 360px !important;
    min-width: 360px !important;
  }
}

/* =========================================================
   HEADER MOBILE — barra escura compacta
   ========================================================= */
.bsh-header--mobile {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: var(--bsh-bg) !important;
  border-bottom: 1px solid var(--bsh-line);
}

.bsh-header--mobile .bsh-mbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 62px;
  padding: 0 14px;
}

.bsh-header--mobile .bsh-mbar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bsh-ink);
  cursor: pointer;
}

.bsh-header--mobile .bsh-mbar__burger:hover,
.bsh-header--mobile .bsh-mbar__burger:focus-visible {
  background: var(--bsh-yellow-soft);
  color: var(--bsh-yellow);
}

.bsh-header--mobile .bsh-logo img {
  height: 32px;
  width: auto;
}

.bsh-header--mobile .bsh-top-actions {
  gap: 2px;
}

.bsh-header--mobile .bsh-action {
  width: 38px;
  height: 38px;
}

/* =========================================================
   DRAWER MOBILE (offcanvas #mobileMenu) — escuro premium
   (prefixado com #mobileMenu para ganhar aos seletores antigos por id)
   ========================================================= */
.offcanvas-backdrop {
  z-index: 99998 !important;
}

#mobileMenu.offcanvas.bsh-drawer {
  width: min(92vw, 400px) !important;
  max-width: 400px !important;
  background: var(--bsh-bg) !important;
  background-image: none !important;
  border-left: 1px solid var(--bsh-line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .5) !important;
  z-index: 100000 !important;
}

#mobileMenu .bsh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px !important;
  border-bottom: 1px solid var(--bsh-line);
  background:
    linear-gradient(180deg, rgba(255, 210, 0, .12), rgba(255, 210, 0, 0)) !important;
}

.bsh-drawer__logo {
  display: inline-flex;
  line-height: 0;
}

.bsh-drawer__logo img {
  height: 30px;
  width: auto;
}

.bsh-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--bsh-bg-2);
  color: var(--bsh-ink);
  cursor: pointer;
}

.bsh-drawer__close:hover,
.bsh-drawer__close:focus-visible {
  background: var(--bsh-yellow-soft);
  color: var(--bsh-yellow);
}

#mobileMenu .bsh-drawer__body {
  padding: 16px 16px 28px !important;
  overflow-x: hidden;
}

.bsh-drawer__nav {
  display: grid;
  gap: 10px;
}

.bsh-drawer__group {
  width: 100%;
}

#mobileMenu details.bsh-drawer__details {
  width: 100% !important;
}

#mobileMenu .bsh-drawer__sum {
  list-style: none !important;
  cursor: pointer;
  user-select: none;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 13px 14px !important;
  border-radius: 12px;
  background: var(--bsh-bg-2) !important;
  color: #e6ecf5 !important;
  font-weight: 800 !important;
  font-size: 15px;
  letter-spacing: .2px;
  transition: color .2s ease, background .2s ease;
}

#mobileMenu summary.bsh-drawer__sum::-webkit-details-marker {
  display: none;
}

#mobileMenu summary.bsh-drawer__sum::after {
  content: "" !important;
  width: 9px !important;
  height: 9px !important;
  display: inline-block !important;
  position: static !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: rotate(45deg) translateY(-2px) !important;
  transition: transform .2s ease !important;
  opacity: .85;
}

#mobileMenu details.bsh-drawer__details[open] > summary.bsh-drawer__sum::after {
  transform: rotate(225deg) translateY(0) !important;
}

#mobileMenu details.bsh-drawer__details[open] > summary.bsh-drawer__sum,
#mobileMenu .bsh-drawer__sum:hover,
#mobileMenu .bsh-drawer__sum:focus-visible {
  background: var(--bsh-bg-3) !important;
  color: var(--bsh-yellow) !important;
}

.bsh-drawer__sub {
  display: grid;
  gap: 6px;
  padding: 8px 0 4px 10px;
}

#mobileMenu .bsh-drawer__sum--sub {
  background: transparent !important;
  padding: 10px 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--bsh-muted) !important;
}

.bsh-drawer__sub--links {
  gap: 2px;
  padding-left: 4px;
}

#mobileMenu .bsh-drawer__link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #dfe7f1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, padding-left .16s ease;
}

#mobileMenu .bsh-drawer__link::after {
  content: "›" !important;
  color: var(--bsh-yellow) !important;
  font-size: 18px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
  opacity: 0;
  transition: opacity .16s ease;
}

#mobileMenu .bsh-drawer__link:hover,
#mobileMenu .bsh-drawer__link:focus-visible {
  background: var(--bsh-yellow-soft) !important;
  color: var(--bsh-ink) !important;
  padding-left: 16px !important;
}

#mobileMenu .bsh-drawer__link:hover::after {
  opacity: 1;
}

/* página actual no drawer (classes is-current do menu-active.js) */
#mobileMenu .bsh-drawer__link.is-current,
#mobileMenu a.bsh-drawer__link.is-current {
  background: var(--bsh-yellow-soft) !important;
  color: var(--bsh-yellow) !important;
  font-weight: 800 !important;
}

#mobileMenu .bsh-drawer__link.is-current::after {
  opacity: 1;
}

#mobileMenu summary.bsh-drawer__sum.is-current,
#mobileMenu .bsh-drawer__sum.is-current {
  background: var(--bsh-bg-3) !important;
  color: var(--bsh-yellow) !important;
  font-weight: 900 !important;
}

/* desactiva a "barra" amarela do summary activo (CSS antigo por id) */
#mobileMenu summary.bsh-drawer__sum.is-current::after,
#mobileMenu .bsh-drawer__sum.is-current::after {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  width: 9px !important;
  height: 9px !important;
}

.bsh-drawer__empty {
  color: var(--bsh-muted);
  font-size: 13px;
  padding: 6px 10px;
}

/* rodapé do drawer */
.bsh-drawer__footer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bsh-line);
}

#mobileMenu .bsh-drawer__footer .bsh-btn--cta,
#mobileMenu .bsh-drawer__footer .bsh-btn--ghost {
  width: 100% !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
}

.bsh-drawer__locate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--bsh-line);
  border-radius: 999px;
  color: var(--bsh-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
}

.bsh-drawer__locate:hover,
.bsh-drawer__locate:focus-visible {
  border-color: var(--bsh-yellow);
  color: var(--bsh-yellow);
}

#mobileMenu .bsh-drawer__footer .bsh-langs {
  justify-content: center;
  margin: 4px 0 0;
}

/* =========================================================
   OVERLAY DE PESQUISA (full page, dark)
   ========================================================= */
.bsh-search[hidden] {
  display: none;
}

.bsh-search {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(4, 10, 18, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.bsh-search.is-open {
  opacity: 1;
  visibility: visible;
}

.bsh-search__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bsh-search__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: clamp(60px, 12vh, 130px) 20px 0;
  background: var(--bsh-bg-2);
  border: 1px solid var(--bsh-line);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  overflow: hidden;
  transform: translateY(-14px);
  transition: transform .26s ease;
}

.bsh-search.is-open .bsh-search__panel {
  transform: translateY(0);
}

.bsh-search__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bsh-line);
}

.bsh-search__brand {
  display: inline-flex;
  line-height: 0;
}

.bsh-search__brand img {
  height: 28px;
  width: auto;
}

.bsh-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bsh-ink);
  cursor: pointer;
}

.bsh-search__close:hover,
.bsh-search__close:focus-visible {
  background: var(--bsh-yellow-soft);
  color: var(--bsh-yellow);
}

.bsh-search__form {
  padding: 28px 28px 24px;
}

.bsh-search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsh-search__icon {
  position: absolute;
  left: 18px;
  color: var(--bsh-muted);
  pointer-events: none;
}

.bsh-search__input {
  flex: 1 1 auto;
  width: 100%;
  padding: 16px 18px 16px 52px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--bsh-bg-3);
  color: var(--bsh-ink);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.bsh-search__input::placeholder {
  color: var(--bsh-muted);
}

.bsh-search__input:focus {
  border-color: var(--bsh-yellow);
  box-shadow: 0 0 0 2px rgba(255, 210, 0, 0.25);
}

/* anel de foco enxuto (o global :focus-visible é grosso demais aqui) */
.bsh-search__input:focus-visible {
  outline: none;
}

.bsh-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--bsh-muted);
  cursor: pointer;
}

.bsh-search__clear:hover,
.bsh-search__clear:focus-visible {
  color: var(--bsh-ink);
  background: var(--bsh-bg-3);
}

.bsh-search__clear[hidden] {
  display: none;
}

.bsh-search__hint {
  margin: 14px 2px 0;
  color: var(--bsh-muted);
  font-size: 13px;
}

.bsh-search__hint kbd {
  padding: 2px 7px;
  border: 1px solid var(--bsh-line);
  border-radius: 6px;
  background: var(--bsh-bg-3);
  color: var(--bsh-ink);
  font-family: inherit;
  font-size: 11.5px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .bsh-header *,
  .bsh-search *,
  .bsh-drawer * {
    transition: none !important;
    animation: none !important;
  }
}