/* Skip-to-content link */
.bv-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    background: #3b82f6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: top 0.2s;
}
.bv-skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Global focus-visible styles for keyboard nav */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Fix overscroll color above header */
html {
    background: #ffffff;
}

/* ===== GLOBAL HEADER – full-width bar with liquid glass ===== */
.site-header {
    --header-bg: rgba(251, 251, 253, 0.78);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #111114;
    --header-brand: #000000;
    --header-dropdown-bg: #ffffff;
    --header-dropdown-border: rgba(0, 0, 0, 0.1);
    --header-dropdown-hover: rgba(0, 0, 0, 0.06);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(0, 0, 0, 0.06);
    --header-cta-text: #000000;
    --header-menu-icon: #1d1d1f;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1400;
    padding: 0;
    height: 48px;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: none;
    box-shadow: none;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.site-header.is-scrolled {
    --header-bg: rgba(251, 251, 253, 0.9);
    background: rgba(251, 251, 253, 0.9);
    box-shadow: none;
}

body.is-home .site-header.is-over-hero {
    --header-bg: rgba(18, 18, 22, 0.5);
    --header-text: #f5f5f7;
    --header-brand: #f5f5f7;
    --header-menu-icon: #f5f5f7;
    background: rgba(18, 18, 22, 0.5);
    box-shadow: none;
}

[data-theme='dark'] .site-header {
    --header-bg: rgba(251, 251, 253, 0.78);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #111114;
    --header-brand: #000000;
    --header-dropdown-bg: #ffffff;
    --header-dropdown-border: rgba(0, 0, 0, 0.1);
    --header-dropdown-hover: rgba(0, 0, 0, 0.06);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(0, 0, 0, 0.06);
    --header-cta-text: #000000;
    --header-menu-icon: #1d1d1f;
}

.site-header.bv-contrast-on-light {
    --header-bg: rgba(255, 255, 255, 0.72);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #111114;
    --header-brand: #000000;
    --header-dropdown-bg: #ffffff;
    --header-dropdown-border: rgba(0, 0, 0, 0.1);
    --header-dropdown-hover: rgba(0, 0, 0, 0.06);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(0, 0, 0, 0.06);
    --header-cta-text: #000000;
    --header-menu-icon: #1d1d1f;
}

.site-header.bv-contrast-on-dark {
    --header-bg: rgba(251, 251, 253, 0.78);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #111114;
    --header-brand: #000000;
    --header-dropdown-bg: #ffffff;
    --header-dropdown-border: rgba(0, 0, 0, 0.1);
    --header-dropdown-hover: rgba(0, 0, 0, 0.06);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(0, 0, 0, 0.06);
    --header-cta-text: #000000;
    --header-menu-icon: #1d1d1f;
}

.site-header.search-open {
    --header-bg: #ffffff;
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #111114;
    --header-brand: #000000;
    --header-dropdown-bg: #ffffff;
    --header-dropdown-border: rgba(0, 0, 0, 0.1);
    --header-dropdown-hover: rgba(0, 0, 0, 0.06);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(0, 0, 0, 0.06);
    --header-cta-text: #000000;
    --header-menu-icon: #1d1d1f;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Hero context: opening search/menu should switch to solid dark bar (no blur) */
body.is-home .site-header.is-over-hero.search-open,
body.is-home.mobile-menu-open .site-header.is-over-hero {
    --header-bg: #111114;
    --header-text: #f5f5f7;
    --header-brand: #f5f5f7;
    --header-menu-icon: #f5f5f7;
    --header-dropdown-bg: #1f1f23;
    --header-dropdown-border: rgba(255, 255, 255, 0.14);
    --header-dropdown-hover: rgba(255, 255, 255, 0.1);
    --header-cta-bg-hover: rgba(255, 255, 255, 0.14);
    --header-cta-text: #ffffff;
    background: #111114;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.bv-contrast-on-dark.search-open {
    --header-bg: #141418;
    --header-border: rgba(255, 255, 255, 0.16);
    --header-text: #f5f5f7;
    --header-brand: #f5f5f7;
    --header-dropdown-bg: #1f1f23;
    --header-dropdown-border: rgba(255, 255, 255, 0.14);
    --header-dropdown-hover: rgba(255, 255, 255, 0.1);
    --header-cta-bg: transparent;
    --header-cta-bg-hover: rgba(255, 255, 255, 0.14);
    --header-cta-text: #ffffff;
    --header-menu-icon: #f5f5f7;
    background: #141418;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Home page – navbar overlaps hero (floats on top) */
body.is-home.has-global-header .hero-section {
    margin-top: 0;
}

body.has-global-header.bv-search-open::before {
    content: '';
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1390;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

body.has-global-header.bv-search-open.bv-search-dark::before {
    background: rgba(0, 0, 0, 0.24);
}

.site-header .container {
    max-width: var(--section-max-width, 1400px);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .site-header {
        height: 64px;
    }
    .site-header nav {
        height: 64px;
    }
    body.is-home.has-global-header .hero-section {
        margin-top: 0;
    }
    body.has-global-header.bv-search-open::before {
        top: 64px;
    }
    .mobile-search,
    .mobile-menu {
        top: 0;
        height: 100dvh;
    }
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
}

.site-header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header .logo.bv-logo-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .site-header .logo {
        opacity: 1;
        transform: scale(1);
    }
}

.site-header .logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
}

.site-header .logo-text {
    color: var(--header-brand);
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 1;
}

.site-header .nav-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    min-width: auto;
    margin-left: auto;
}

.site-header .nav-links {
    display: flex;
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: max-content;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-header .nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0;
    border-radius: 6px;
    transition:
        opacity 0.2s,
        color 0.25s ease;
    opacity: 0.65;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    min-height: 48px;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    opacity: 1;
}

[data-theme='dark'] .site-header .nav-links a {
    color: var(--header-text);
}

/* Header search */
.site-header .nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--header-text);
    opacity: 1;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0 clamp(10px, 1.5vw, 18px);
    min-width: 0;
    min-height: 0;
    transition:
        background 0.2s,
        color 0.2s;
}

.site-header .nav-search-btn svg {
    width: 18px;
    height: 18px;
}

.site-header .nav-search-btn:hover,
.site-header .nav-search-btn.active {
    opacity: 1;
    background: transparent;
}

.site-header .nav-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(28px, 3.4vw, 42px) 0 clamp(56px, 6vw, 84px);
    height: clamp(320px, 56vh, 520px);
    box-shadow: none;
    opacity: 0;
    transform: scaleY(0.94);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: transform, clip-path, opacity;
    transition:
        opacity 0.34s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .nav-search-panel::-webkit-scrollbar {
    display: none;
}

.site-header.search-open .nav-search-panel {
    background: #ffffff;
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-panel {
    background: #141418;
}

.site-header .nav-search-panel[hidden] {
    display: none !important;
}

.site-header .nav-search-panel.open {
    opacity: 1;
    transform: scaleY(1);
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
}

.site-header .nav-search-panel-inner {
    max-width: var(--section-max-width, 1400px);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-14px);
    transition:
        opacity 0.3s ease 0.11s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.11s;
}

.site-header .nav-search-panel.open .nav-search-panel-inner {
    opacity: 1;
    transform: translateY(0);
}

.site-header .nav-search-field {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    width: min(760px, 100%);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #5f6068;
}

.site-header.search-open .nav-search-field {
    background: transparent;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-field {
    color: #b9bbc2;
}

.site-header .nav-search-field svg {
    width: clamp(22px, 1.7vw, 28px);
    height: clamp(22px, 1.7vw, 28px);
    opacity: 0.68;
    flex-shrink: 0;
}

.site-header .nav-search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #5f6068;
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.2;
    outline: none;
    padding: 0;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-input {
    color: #f5f5f7;
}

.site-header .nav-search-input::placeholder {
    color: #6c6d75;
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
    font-weight: 500;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-input::placeholder {
    color: #a3a6af;
}

.site-header .nav-search-quick-title {
    margin: clamp(30px, 4vw, 46px) 0 clamp(10px, 1.6vw, 16px);
    color: #6c6d75;
    font-size: clamp(1.45rem, 1.85vw, 1.9rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-quick-title {
    color: #c5c7cf;
}

.site-header .nav-search-quick-links {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.7vw, 8px);
    width: min(540px, 100%);
}

.site-header .nav-search-quick-link {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    padding: 0;
    border-radius: 0;
    border: none;
    color: #2d2f35;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    background: transparent;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-quick-link {
    color: #e7e8ed;
}

.site-header .nav-search-quick-link-label {
    margin: 0;
    font-size: clamp(0.92rem, 1.12vw, 1rem);
    font-weight: 500;
    line-height: 1.35;
}

.site-header .nav-search-quick-link-meta {
    margin: 4px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-header .nav-search-quick-link::before {
    content: '\2192';
    color: #6c6d75;
    font-size: 0.95em;
    line-height: 1;
    font-weight: 500;
    flex-shrink: 0;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-quick-link::before {
    color: #a7aab3;
}

.site-header .nav-search-quick-link:hover {
    color: #141418;
    transform: translateX(2px);
}

.site-header.bv-contrast-on-dark.search-open .nav-search-quick-link:hover {
    color: #ffffff;
}

.site-header .nav-search-empty {
    margin-top: 12px;
    color: #7d7e86;
    font-size: 1rem;
    opacity: 1;
}

.site-header.bv-contrast-on-dark.search-open .nav-search-empty {
    color: #aeb1ba;
}

/* Nav CTA – simple black pill (desktop only) */
.site-header .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 7px 14px !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 1 !important;
    border-radius: 980px;
    font:
        600 0.8rem/1 'Inter',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    text-decoration: none;
    white-space: nowrap;
    margin-left: clamp(12px, 1.8vw, 22px);
    transition:
        background 0.2s,
        opacity 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.site-header .nav-cta:hover {
    background: #0f0f10;
    color: #ffffff;
    border-color: #0f0f10;
}

/* Support dropdown */
.site-header .nav-dropdown {
    position: relative;
}

.site-header .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--header-text);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    opacity: 0.65;
    transition:
        opacity 0.2s,
        color 0.25s ease;
}

.site-header .nav-dropdown-trigger:hover,
.site-header .nav-dropdown-trigger.active,
.site-header .nav-dropdown:hover .nav-dropdown-trigger {
    opacity: 1;
}

.site-header .nav-dropdown-chevron {
    transition: transform 0.2s;
}

.site-header .nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.site-header .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 160px;
    background: var(--header-dropdown-bg);
    border: 1px solid var(--header-dropdown-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.2s,
        transform 0.2s,
        visibility 0.2s;
    z-index: 1500;
}

.site-header .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--header-dropdown-bg);
}

.site-header .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .nav-dropdown-menu a {
    display: block;
    color: var(--header-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.25s ease;
}

[data-theme='dark'] .site-header .nav-dropdown-menu a {
    color: var(--header-text);
}

.site-header .nav-dropdown-menu a:hover {
    background: var(--header-dropdown-hover);
    color: var(--header-text);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 2px;
    margin-left: 4px;
    overflow: hidden;
    gap: 0;
}

.lang-toggle .lang-option {
    min-width: 34px;
    text-align: center;
    border-radius: 6px;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6e6e73;
    line-height: 1;
    margin: 0;
}

.lang-toggle .lang-option.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-toggle .lang-option.active:hover {
    background: #fff;
    color: #1d1d1f;
}

[data-theme='dark'] .lang-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .lang-toggle .lang-option {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .lang-toggle .lang-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: #f5f5f7;
    box-shadow: none;
}

.mobile-lang-toggle {
    margin-top: 10px;
    display: inline-flex;
    gap: 0;
    align-self: flex-start;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mobile-lang-toggle .lang-option {
    border-radius: 6px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.6);
    transition:
        color 0.2s,
        background 0.2s;
}

.mobile-lang-toggle .lang-option:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-lang-toggle .lang-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Mobile menu button – hidden on desktop, shown at max-width 900px */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1301;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--header-menu-icon);
    border-radius: 2px;
    transition:
        all 0.3s,
        background 0.25s ease;
}

/* Mobile search overlay */
.mobile-search {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: #f5f5f7;
    flex-direction: column;
    z-index: 1501;
    overflow-y: hidden;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0;
    transform: translateY(-20px);
    opacity: 0;
    transform-origin: top center;
    transition:
        transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease;
    pointer-events: none;
}

.mobile-search.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-search-sheet {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(30px, 5vw, 64px) clamp(20px, 5.5vw, 44px) clamp(28px, 5vw, 56px);
    transform: translateY(-12px);
    transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-search.open .mobile-search-sheet {
    transform: translateY(0);
}

.mobile-search-close {
    position: absolute;
    top: clamp(14px, 2.6vw, 24px);
    right: clamp(14px, 2.6vw, 24px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #1d1d1f;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
    padding: 0;
}

.mobile-search-close:hover {
    opacity: 0.72;
}

.mobile-search-inner {
    width: 100%;
    max-width: min(760px, 100%);
    padding-top: clamp(26px, 4.4vw, 52px);
}

.mobile-search-field {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #4b4b51;
    padding: 0;
}

.mobile-search-field svg {
    width: clamp(34px, 5vw, 48px);
    height: clamp(34px, 5vw, 48px);
    flex-shrink: 0;
    opacity: 0.7;
}

.mobile-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #5f6068;
    font-size: clamp(2.2rem, 6.4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    outline: none;
    padding: 0;
}

.mobile-search-input::placeholder {
    color: #6c6d75;
    font-size: clamp(1.35rem, 4.4vw, 2rem);
    font-weight: 600;
}

.mobile-search-title {
    margin: clamp(38px, 6vw, 62px) 0 clamp(12px, 2.2vw, 20px);
    color: #6c6d75;
    font-size: clamp(1.8rem, 4.6vw, 3.1rem);
    font-weight: 500;
    line-height: 1.12;
}

.mobile-search-links {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.8vw, 14px);
}

.mobile-search-link {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 20px);
    width: 100%;
    color: #2d2f35;
    text-decoration: none;
    padding: 0;
    border-bottom: none;
    font-weight: 600;
    font-size: clamp(2rem, 5.6vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.mobile-search-link-arrow {
    color: #6c6d75;
    font-size: 1em;
    line-height: 1;
    font-weight: 500;
    flex-shrink: 0;
}

.mobile-search-link-text {
    display: inline-block;
}

.mobile-search-link-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.mobile-search-link-meta {
    font-size: 0.78rem;
    line-height: 1.3;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-search-empty {
    margin-top: 10px;
    color: #7d7e86;
    font-size: 1rem;
}

/* Mobile menu – full-screen takeover, slides from top */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: #f5f5f7;
    flex-direction: column;
    gap: 0;
    z-index: 1500;
    overflow-y: hidden;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0;
    transform: translateY(-20px);
    opacity: 0;
    transform-origin: top center;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-sheet {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(34px, 5.5vw, 66px) clamp(20px, 5.5vw, 44px) clamp(28px, 5vw, 56px);
    transform: translateY(-12px);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open .mobile-menu-sheet {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: clamp(12px, 2.2vw, 20px);
    right: clamp(18px, 3.1vw, 30px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #1d1d1f;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
    padding: 0;
}

.mobile-menu-close:hover {
    opacity: 0.72;
}

body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    inset: 0;
    width: 100%;
    padding-right: var(--scrollbar-compensation, 0px);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    margin-bottom: 0;
    gap: clamp(14px, 2.8vw, 24px);
    padding-top: clamp(26px, 4.4vw, 52px);
}

.mobile-menu-links a {
    display: block;
    width: 100%;
    color: #1d1d1f !important;
    text-decoration: none !important;
    padding: 0;
    border-bottom: none;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.6rem) !important;
    line-height: 1.08;
    letter-spacing: 0;
    transition: color 0.2s;
}

.mobile-menu-links a:hover {
    color: #141418;
    background: transparent;
}

.mobile-menu-cta,
.mobile-menu-divider,
.mobile-menu-legal,
.mobile-menu-footer {
    display: none;
}

.mobile-menu-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}
.mobile-menu-legal a {
    padding: 4px 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.mobile-menu-legal a:hover {
    text-decoration: underline;
}
.mobile-menu-legal-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
}
.mobile-menu-footer {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== GLOBAL FOOTER (columnar Hjertnes-style) ===== */
.site-footer {
    background: #f5f5f7;
    border-top: none;
}

.site-footer .footer-main {
    padding: 44px 0 30px;
}

.site-footer .container {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer .footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr 1fr;
    gap: 40px 32px;
    align-items: start;
}

.site-footer .footer-col-title {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-footer .footer-brand.bv-logo-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-brand {
        opacity: 1;
        transform: scale(1);
    }
}

.site-footer .footer-brand:hover {
    opacity: 0.9;
}

.site-footer .footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.site-footer .footer-brand-name {
    color: #111827;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.site-footer .footer-link {
    display: block;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.site-footer .footer-link:hover {
    color: #111827;
}

.site-footer .footer-contact-line {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.site-footer .footer-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition:
        transform 0.2s,
        background 0.2s;
    margin-bottom: 16px;
}

.site-footer .footer-download-btn:hover {
    transform: translateY(-2px);
    background: #000000;
}

.site-footer .footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer .bv-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    font-family: inherit;
}

.site-footer .bv-theme-toggle:hover {
    background: #f3f4f6;
}

.site-footer .lang-toggle .lang-option {
    text-decoration: none;
}

.site-footer .lang-toggle .lang-option:hover {
    color: #111827;
    background: #e5e7eb;
    text-decoration: none;
}

.site-footer .lang-toggle .lang-option.active,
.site-footer .lang-toggle .lang-option.active:hover {
    background: #111111;
    color: #ffffff;
    text-decoration: none;
}

.lang-toggle-footer {
    border-color: #d1d5db;
    background: #ffffff;
}

.lang-toggle-footer .lang-option {
    color: #374151;
}

.site-footer .footer-bottom-bar {
    background: transparent;
    padding: 16px 0;
    text-align: center;
}

.site-footer .footer-bottom-bar .container {
    border-top: none;
    padding-top: 0;
}

.site-footer .footer-bottom-bar .container::before {
    content: '';
    display: block;
    width: clamp(180px, 42vw, 420px);
    max-width: 100%;
    height: 1px;
    margin: 0 auto 16px;
    background: #e5e7eb;
}

.site-footer .footer-bottom-bar p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.site-footer .footer-bottom-bar a {
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.site-footer .footer-bottom-bar a:hover {
    color: #111827;
}

/* Keep footer light/readable even when site dark mode is active */
[data-theme='dark'] .site-footer {
    background: #f5f5f7 !important;
    border-top: none !important;
}

[data-theme='dark'] .site-footer .footer-col-title,
[data-theme='dark'] .site-footer .footer-brand-name,
[data-theme='dark'] .site-footer .footer-link,
[data-theme='dark'] .site-footer .footer-contact-line,
[data-theme='dark'] .site-footer .footer-bottom-bar p,
[data-theme='dark'] .site-footer .footer-bottom-bar a,
[data-theme='dark'] .site-footer .lang-toggle .lang-option,
[data-theme='dark'] .site-footer .bv-theme-toggle {
    color: #111827 !important;
}

[data-theme='dark'] .site-footer .footer-link:hover,
[data-theme='dark'] .site-footer .footer-bottom-bar a:hover {
    color: #000000 !important;
}

[data-theme='dark'] .site-footer .footer-download-btn {
    background: #111111 !important;
    color: #ffffff !important;
}

[data-theme='dark'] .site-footer .footer-bottom-bar {
    background: transparent !important;
}

[data-theme='dark'] .site-footer .footer-bottom-bar .container {
    border-top: none !important;
}

[data-theme='dark'] .site-footer .bv-theme-toggle {
    background: #ffffff !important;
    border-color: #d1d5db !important;
}

[data-theme='dark'] .site-footer .lang-toggle .lang-option.active,
[data-theme='dark'] .site-footer .lang-toggle .lang-option.active:hover {
    background: #111111 !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .site-footer .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .site-footer .footer-main {
        padding: 40px 0 32px;
    }
}

/* Language suggestion banner */
.lang-prompt {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    display: flex;
    justify-content: center;
}

.lang-prompt-inner {
    width: min(760px, 100%);
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(6px);
}

.lang-prompt-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
}

.lang-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-prompt-btn {
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1;
    padding: 9px 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.lang-prompt-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.lang-prompt-btn-primary:hover {
    background: #2563eb;
}

.lang-prompt-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.lang-prompt-btn-ghost:hover {
    color: #fff;
    border-color: rgba(148, 163, 184, 0.9);
}

/* Consent: small bottom-right box + always-visible tab */
.bv-consent-box {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    width: 430px !important;
    max-width: calc(100vw - 40px);
    max-height: 85vh;
    z-index: 2000;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.bv-consent-box.bv-consent-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.bv-consent-inner {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.bv-consent-main[hidden],
.bv-consent-details[hidden] {
    display: none !important;
}

.bv-consent-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bv-consent-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bv-consent-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(160deg, #1a365d 0%, #0f2744 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

/* Hide floating cookie tab button; cookie preferences remain available in footer link */
.bv-consent-tab {
    display: none !important;
}

.bv-consent-tab:hover {
    transform: scale(1.05);
}

.bv-consent-box:not(.bv-consent-hidden) ~ .bv-consent-tab,
.bv-consent-box:not(.bv-consent-hidden) + .bv-consent-tab {
    opacity: 0;
    pointer-events: none;
}

.bv-consent-main {
    padding: 14px 16px 14px;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bv-consent-details {
    padding: 14px 16px 14px;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bv-consent-content {
    min-width: 0;
}

.bv-consent-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 8px;
}

.bv-consent-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
}

.bv-consent-message {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.92);
}

.bv-consent-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bv-consent-content a:hover {
    color: #93c5fd;
}

.bv-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bv-consent-btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 10px;
    min-height: 36px;
    white-space: nowrap;
    transition:
        background 0.2s,
        transform 0.15s;
}

.bv-consent-btn:hover {
    transform: translateY(-1px);
}

.bv-consent-btn.primary {
    background: #3b82f6;
    color: #fff;
}

.bv-consent-btn.primary:hover {
    background: #2563eb;
}

.bv-consent-btn.outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.bv-consent-btn.outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.bv-consent-links {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.bv-consent-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bv-consent-links a:hover {
    color: #fff;
}

.bv-consent-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.bv-consent-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bv-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.bv-consent-option input {
    margin-top: 4px;
    flex-shrink: 0;
}

.bv-consent-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0 0 12px 0;
    align-self: flex-start;
}

.bv-consent-back:hover {
    color: #fff;
}

/* Dark mode toggle */
.bv-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    font-family: inherit;
}
.bv-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}
[data-theme='dark'] .bv-theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e7;
}
[data-theme='dark'] .bv-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}
[data-theme='dark'] .bv-theme-icon-dark,
:not([data-theme='dark']) .bv-theme-icon-light {
    display: none;
}
[data-theme='dark'] .bv-theme-icon-light,
:not([data-theme='dark']) .bv-theme-icon-dark {
    display: none;
}
[data-theme='dark'] .bv-theme-icon-dark {
    display: block;
}
:not([data-theme='dark']) .bv-theme-icon-light {
    display: block;
}

/* Dark mode – override CSS custom properties globally */
[data-theme='dark'] {
    --white: #1e293b !important;
    --gray-50: #0f172a !important;
    --gray-100: #1e293b !important;
    --gray-200: #334155 !important;
    --text-primary: #e2e8f0 !important;
    --text-secondary: #94a3b8 !important;
    --primary: #3b82f6 !important;
    --primary-dark: #2563eb !important;
    --primary-light: #60a5fa !important;
}

/* Dark mode – global overrides for sub-pages */
[data-theme='dark'] body,
[data-theme='dark'] body.has-global-header {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}
[data-theme='dark'] .page-hero {
    background: #0f172a !important;
}
/* Override hardcoded white btn-primary on sub-pages */
[data-theme='dark'] .btn-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
}
[data-theme='dark'] .panel,
[data-theme='dark'] .card,
[data-theme='dark'] .contact-form-wrapper,
[data-theme='dark'] .guide-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme='dark'] input,
[data-theme='dark'] textarea,
[data-theme='dark'] select {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}
[data-theme='dark'] input:focus,
[data-theme='dark'] textarea:focus,
[data-theme='dark'] select:focus {
    border-color: #3b82f6;
}
[data-theme='dark'] input::placeholder,
[data-theme='dark'] textarea::placeholder {
    color: #64748b;
}
[data-theme='dark'] .form-group label,
[data-theme='dark'] .spam-check label {
    color: #e2e8f0;
}
[data-theme='dark'] .spam-check {
    background: #1e293b;
}
[data-theme='dark'] .submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}
[data-theme='dark'] .contact-form-wrapper {
    background: #1e293b;
}
[data-theme='dark'] .section-label {
    color: #ffffff;
}
[data-theme='dark'] .pro-feature {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme='dark'] .feature-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4,
[data-theme='dark'] strong {
    color: #f1f5f9;
}
[data-theme='dark'] p {
    color: #cbd5e1;
}
[data-theme='dark'] a:not(.nav-cta):not(.btn-primary):not(.btn-secondary):not(.footer-link):not(.lang-option) {
    color: #93c5fd;
}
[data-theme='dark'] .search-input {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

/* Sub-page cards, panels, wrappers – make them dark */
[data-theme='dark'] .card,
[data-theme='dark'] .panel,
[data-theme='dark'] .faq-card,
[data-theme='dark'] .faq-item,
[data-theme='dark'] .guide-card,
[data-theme='dark'] .content-card,
[data-theme='dark'] .changelog-entry,
[data-theme='dark'] .contact-form-wrapper,
[data-theme='dark'] [class*='card'],
[data-theme='dark'] [class*='panel'],
[data-theme='dark'] [class*='wrapper']:not(.showcase-track-wrapper):not(.lang-prompt) {
    background: #1e293b !important;
    color: #e2e8f0;
    border-color: #334155;
}
[data-theme='dark'] .faq-question,
[data-theme='dark'] .faq-toggle,
[data-theme='dark'] summary {
    color: #f1f5f9;
}
[data-theme='dark'] details {
    border-color: #334155;
}
/* Sub-page section backgrounds */
[data-theme='dark'] main,
[data-theme='dark'] section:not(.hero-section):not(.cta-section) {
    color: #e2e8f0;
}
/* Label/form overrides for sub-pages with custom vars */
[data-theme='dark'] label {
    color: #e2e8f0 !important;
}
[data-theme='dark'] .form-row label,
[data-theme='dark'] .form-group label {
    color: #e2e8f0 !important;
}
/* Sub-page inline style overrides for common patterns */
[data-theme='dark'] [style*='background:#fff'],
[data-theme='dark'] [style*='background: #fff'],
[data-theme='dark'] [style*='background:white'],
[data-theme='dark'] [style*='background: white'] {
    background: #1e293b !important;
}
[data-theme='dark'] hr {
    border-color: #334155;
}
[data-theme='dark'] .cta-box,
[data-theme='dark'] [class*='cta-box'],
[data-theme='dark'] [class*='cta-card'] {
    background: #1e293b !important;
}
/* FAQ items and CTA sections on sub-pages */
[data-theme='dark'] .faq-item,
[data-theme='dark'] .faq-section,
[data-theme='dark'] .content-card,
[data-theme='dark'] .cta-section {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
[data-theme='dark'] .faq-item h3,
[data-theme='dark'] .faq-item strong,
[data-theme='dark'] .benefit h3,
[data-theme='dark'] .benefit-title {
    color: #f1f5f9 !important;
}
[data-theme='dark'] .benefit-icon {
    background: linear-gradient(135deg, #1e3a5f, #2563eb) !important;
}
[data-theme='dark'] .benefit-icon .material-symbols-rounded {
    color: #93c5fd !important;
}
/* Changelog entries */
[data-theme='dark'] .changelog-card,
[data-theme='dark'] .release-card,
[data-theme='dark'] [class*='changelog'],
[data-theme='dark'] [class*='release'] {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme='dark'] .version-coming-badge {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
}
/* Filter chips/tags on sub-pages */
[data-theme='dark'] .chip,
[data-theme='dark'] [class*='chip'],
[data-theme='dark'] [class*='filter'] {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
[data-theme='dark'] .chip.active,
[data-theme='dark'] [class*='chip'].active {
    background: #3b82f6 !important;
    color: #ffffff !important;
}
/* Override any hardcoded background:white on elements */
[data-theme='dark'] .contact-form,
[data-theme='dark'] .form-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
/* Ensure all text in dark mode is readable */
[data-theme='dark'] li,
[data-theme='dark'] span,
[data-theme='dark'] td,
[data-theme='dark'] th,
[data-theme='dark'] dt,
[data-theme='dark'] dd {
    color: #e2e8f0;
}
[data-theme='dark'] .alt-contact,
[data-theme='dark'] .divider {
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

/* Body styling */
body.has-global-header {
    background: #ffffff;
}

/* Hero spacing when global header is injected */
body.has-global-header .page-hero {
    padding-top: 116px !important;
}

/* Keep non-home hero backgrounds clean/flat */
body.has-global-header .page-hero::before,
body.has-global-header .page-hero::after {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .site-header,
    .site-header.bv-contrast-on-dark,
    .site-header.bv-contrast-on-light {
        height: 56px;
        --header-bg: rgba(255, 255, 255, 0.96);
        --header-text: #111114;
        --header-menu-icon: #111114;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
    }

    .site-header nav {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
        width: 100%;
        height: 56px;
        align-items: center;
    }

    .site-header .logo {
        min-height: 56px;
        display: inline-flex;
        align-items: center;
    }

    .site-header .nav-right {
        flex: 0 0 auto;
        min-width: auto;
        margin-left: auto;
        justify-content: flex-end;
        gap: 4px;
        margin-right: 0;
    }

    .site-header .nav-search-btn {
        margin-left: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .site-header .nav-search-btn svg {
        width: 18px;
        height: 18px;
    }

    .site-header .nav-links {
        display: none;
    }

    .site-header .nav-cta,
    .site-header a.nav-cta {
        display: none !important;
    }

    .bv-theme-toggle {
        display: none !important;
    }

    .site-header .nav-search-panel {
        display: none !important;
    }

    body.has-global-header.bv-search-open::before {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: 0;
    }

    /* Burger animation when open */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero mobile sizing */
    body.has-global-header .page-hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    body.has-global-header .page-hero h1 {
        font-size: 2rem !important;
    }

    body.has-global-header .page-hero p {
        font-size: 1rem !important;
    }

    .lang-prompt-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .bv-consent-box {
        bottom: 16px;
        right: 16px;
        left: auto;
        width: min(420px, calc(100vw - 32px)) !important;
    }

    .bv-consent-tab {
        bottom: 16px;
        right: 16px;
    }

    .bv-consent-actions {
        display: flex;
        flex-direction: column;
    }

    .bv-consent-btn {
        width: 100%;
    }
}
