/* Beatclap header: desktop mega menus, mobile disclosure navigation. */
.site-header.bc-header { overflow: visible; z-index: 100; background: #000; }
.bc-nav { position: relative; max-width: 1600px; margin: auto; padding: 24px; display: flex; align-items: center; gap: 28px; font-family: var(--font-body, sans-serif); color: #fff; }
.bc-nav button, .bc-nav a { -webkit-tap-highlight-color: transparent; }
.bc-nav button { font: inherit; color: inherit; }
.bc-nav :focus-visible { outline: 2px solid #b8a0ff; outline-offset: 4px; }
.bc-nav__brand { flex: 0 0 auto; }
.bc-nav__brand a { display: flex; align-items: center; color: #fff; font-size: 26px; font-weight: 700; }
.bc-nav__brand img { display: block; width: 164px; height: auto; max-height: 40px; object-fit: contain; }
.bc-nav__body { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex: 1; min-width: 0; }
.bc-nav__links { display: flex; align-items: center; gap: 8px; list-style: none; padding: 4px; margin: 0; border: 0; }
.bc-nav__home, .bc-nav__trigger { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 15px; border: 0; background: transparent; border-radius: 12px; white-space: nowrap; color: #fff; font-size: 14px !important; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .18s ease; }
.bc-nav__home:hover, .bc-nav__trigger:hover, .bc-nav__trigger[aria-expanded="true"] { background: #202020; color: #fff; }
.bc-nav__chevron { display: block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .18s; }
[aria-expanded="true"] > .bc-nav__chevron { transform: rotate(225deg); margin-top: 2px; }
.bc-nav__actions { display: flex; gap: 10px; align-items: center; }
.bc-nav__actions .btn-pill { padding: 11px 17px; font-size: 14px; }
.bc-nav__toggle { display: none; }
.bc-mega { position: absolute; top: calc(100% - 10px); left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 48px)); display: grid; grid-template-columns: .95fr 1fr 1.1fr; background: #0d0d0d; border: 1px solid #292929; border-radius: 18px; box-shadow: 0 24px 64px #0006; overflow: hidden; animation: bc-menu-in .16s ease-out; }
.bc-mega[hidden], .bc-nav__languages[hidden] { display: none; }
.bc-mega__heading { padding: 24px; font-size: 25px; font-weight: 600; letter-spacing: -.6px; }
.bc-mega__options, .bc-mega__featured { padding: 26px 24px 24px; border-left: 1px solid #222; }
.bc-mega__eyebrow { margin: 0 0 18px; color: #858585; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; line-height: 1.4; }
.bc-mega__options ul { padding: 0; margin: 0; list-style: none; }
.bc-mega__link { display: block; color: #f5f5f5; font-size: 14px; font-weight: 500; line-height: 1.5; padding: 10px 0; text-decoration: none; cursor: default; transition: color .15s; }
.bc-mega__link:hover { color: #baa6ff; }
.bc-mega__featured { display: flex; flex-direction: column; gap: 8px; }
.bc-mega__featured .bc-mega__eyebrow { margin-bottom: 5px; }
.bc-mega__card { display: flex; align-items: flex-start; gap: 10px; min-height: 140px; flex: 1; padding: 18px 16px; border-radius: 16px; background: #1b1b1b; color: #fff; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: default; transition: background .18s; }
.bc-mega__card:hover { background: #25222d; color: #fff; }
.bc-mega__spark { color: #c6b66a; font-size: 25px; line-height: 1; }
.bc-nav__language { position: relative; }
.bc-nav__language-trigger { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 12px 2px; cursor: pointer; font-size: 12px !important; }
.bc-nav__languages { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 8px; background: #101010; border: 1px solid #292929; border-radius: 14px; box-shadow: 0 18px 40px #0006; }
.bc-nav__languages a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 14px; cursor: default; }
.bc-nav__languages a:hover { background: #242424; }
@keyframes bc-menu-in { from { opacity: 0; margin-top: -5px; } to { opacity: 1; margin-top: 0; } }
@media (max-width: 1250px) and (min-width: 1100px) {
  .bc-nav { gap: 20px; }
  .bc-nav__body { gap: 15px; }
  .bc-nav__home, .bc-nav__trigger { padding-inline: 11px; }
  .bc-nav__actions .btn-pill { padding-inline: 14px; }
}
@media (max-width: 1099px) {
  .bc-nav { padding: 22px 24px; justify-content: space-between; }
  .bc-nav__toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; background: transparent; border: 1px solid #333; border-radius: 50%; cursor: pointer; }
  .bc-nav__toggle span { display: block; width: 20px; height: 1px; background: #fff; transition: transform .2s; }
  .bc-nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .bc-nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .bc-nav__body { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 86px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 28px; background: #0d0d0d; border-bottom: 1px solid #292929; box-shadow: 0 24px 48px #0008; }
  .bc-nav.is-open .bc-nav__body { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .bc-nav__links { display: block; border: 0; padding: 0; }
  .bc-nav__links > li { border-bottom: 1px solid #242424; }
  .bc-nav__home, .bc-nav__trigger { justify-content: space-between; width: 100%; padding: 18px 8px; font-size: 17px !important; border-radius: 8px; }
  .bc-mega { position: static; transform: none; width: 100%; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; animation: none; }
  .bc-mega__heading { display: none; }
  .bc-mega__options, .bc-mega__featured { border: 0; padding: 14px 12px 20px; }
  .bc-mega__link { padding-block: 10px; }
  .bc-mega__card { min-height: 84px; flex: auto; }
  .bc-nav__actions { flex-wrap: wrap; }
  .bc-nav__actions .btn-pill { min-height: 42px; flex: 1; }
  .bc-nav__language { align-self: flex-start; }
  .bc-nav__languages { position: static; margin-top: 8px; }
}
/* Desktop popups: frosted glass where supported, opaque fallback otherwise. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 1100px) {
    .bc-mega, .bc-nav__languages { background: rgba(13, 13, 13, .74); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); }
    .bc-mega__options, .bc-mega__featured { border-left-color: rgba(255, 255, 255, .08); }
    .bc-mega__card { background: rgba(255, 255, 255, .06); }
    .bc-mega__card:hover { background: rgba(160, 130, 255, .14); }
    .bc-nav__languages a:hover { background: rgba(255, 255, 255, .08); }
  }
}
/* Compact floating bar shown once the header has scrolled out of view (toggled by header-navigation.js). */
.bc-header-slot > .bc-header.is-stuck { position: fixed; top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px); left: 0; right: 0; z-index: 10000; padding-inline: 16px; background: transparent; pointer-events: none; visibility: hidden; transform: translateY(calc(-100% - 48px)); transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; }
.bc-header-slot > .bc-header.is-stuck.is-shown { visibility: visible; transform: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.custom-cursor { z-index: 10001; }
.is-stuck .bc-nav { pointer-events: auto; max-width: 1024px; padding: 8px 8px 8px 20px; gap: 20px; }
.is-stuck .bc-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: #0d0d0d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .35); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-stuck .bc-nav::before { background: rgba(13, 13, 13, .74); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); }
}
.is-stuck .bc-nav__brand img { width: 112px; }
.is-stuck .bc-nav__language { display: none; }
@media (min-width: 1100px) {
  .is-stuck .bc-nav__body { gap: 16px; }
  .is-stuck .bc-nav__links { padding: 0; gap: 4px; }
  .is-stuck .bc-nav__home { display: none; }
  .is-stuck .bc-nav__trigger { padding: 9px 13px; }
  .is-stuck .bc-nav__trigger:hover, .is-stuck .bc-nav__trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
  .is-stuck .bc-nav__actions .btn-pill { padding: 8px 14px; font-size: 13px; }
  .is-stuck .bc-mega { top: calc(100% + 8px); }
}
@media (max-width: 1099px) {
  .bc-header-slot > .bc-header.is-stuck { top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px); padding-inline: 12px; }
  .is-stuck .bc-nav { padding: 8px 8px 8px 18px; }
  .is-stuck .bc-nav__toggle { width: 38px; height: 38px; }
  .is-stuck .bc-nav__body { top: calc(100% + 8px); border: 1px solid #292929; border-radius: 18px; max-height: calc(100dvh - 90px - var(--wp-admin--admin-bar--height, 0px)); }
}
@media (max-width: 600px) {
  .bc-header-slot > .bc-header.is-stuck { top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-nav *, .bc-mega, .bc-header { animation: none !important; transition: none !important; }
}
