
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.nav-item {
    position: relative;
}
.nav-item:hover .dropdown {
    display: block;
}
.nav-item:hover .nav-underline {
    width: 100%;
}
.nav-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 1px;
    width: 0;
    background-color: white;
    transition: width 0.3s ease;
}
.active .nav-underline {
    width: 100%;
}
/* Glass dropdown panels — charcoal glass + blur (match reference) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    /* Padding, not margin top gap — avoids hover dead zone */
    padding: 20px 0 14px;
    min-width: 280px;
    z-index: 50;
    background: rgba(15, 18, 28, 0.45);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 4px;
}
.dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s;
}
.dropdown a:hover {
    color: #ffffff;
}
.dropdown-submenu-wrap {
    position: relative;
}
.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 2px;
    min-width: 220px;
    padding: 10px 0;
    z-index: 60;
    background: rgba(15, 18, 28, 0.45);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 4px;
}
.dropdown-submenu-wrap:hover .dropdown-submenu {
    display: block;
}

/* Page banner — dark hero panel with a subtle radial lift behind the headline */
.page-banner {
    background-color: #0a0f1e;
    background-image:
        radial-gradient(ellipse 70% 50% at 20% 40%, rgba(40, 48, 80, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 70%, rgba(80, 30, 50, 0.2), transparent 60%);
    min-height: 720px;
}

/* Tabs — underline-on-active style */
.tab-btn {
    position: relative;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    padding: 16px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}
.tab-btn.active {
    color: #ffffff;
}
.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
/* Responsive embeds inside tab panels (full width of container, fluid height) */
.tab-panel-embed-wrap {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.tab-panel-iframe {
    width: 100%;
    max-width: 100%;
    /* Fallback when auto-height isn’t possible (e.g. cross-origin without postMessage) */
    height: clamp(420px, 70vh, 920px);
    min-height: 380px;
    border: 0;
    display: block;
}
/* Let explicit JS height win over .tab-panel-iframe min-height */
.tab-panel-iframe.is-auto-sized {
    min-height: 0;
}

/* Standalone (non-tab) iframe card — same visual language, no tab coupling */
.iframe-section {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgb(255, 255, 255);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.iframe-section-frame {
    width: 100%;
    max-width: 100%;
    height: clamp(420px, 70vh, 920px);
    min-height: 380px;
    border: 0;
    display: block;
}
.iframe-section-frame.is-auto-sized {
    min-height: 0;
}