/* ========================================
   Static pages mobile header (?mobile=2)
   Matches Bloomberg main page header design
   ======================================== */

.page-mobile-2 .header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--theme-bg-primary);
    border-bottom: 1px solid var(--theme-border);
    height: 64px;
    min-height: 64px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: none;
    box-shadow: none;
    grid-area: unset !important;
}

.page-mobile-2 .logo-title-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.page-mobile-2 .logo-title-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.page-mobile-2 .logo-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    line-height: 1;
    min-width: 0;
}

.page-mobile-2 .logo-title-main {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--theme-text-primary);
    line-height: 1;
    margin: 0;
}

.page-mobile-2 .logo-title-sub {
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--theme-text-secondary);
    line-height: 1;
    margin: 0;
    margin-top: 1px;
}

.page-mobile-2 .logo-image {
    height: 36px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

/* Hide desktop nav when mobile-2 header is shown */
.page-mobile-2 .header nav,
.page-mobile-2 .header .header-controls nav {
    display: none !important;
}

.page-mobile-2 .header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-mobile-2 .header-controls .theme-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    touch-action: manipulation;
}

.page-mobile-2 .header-controls .theme-toggle:active {
    background: var(--theme-bg-tertiary);
    transform: scale(0.95);
}

.page-mobile-2 .header-controls .theme-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--theme-text-primary);
}

/* Reserve space below fixed header for main content */
.page-mobile-2 .app-container > main,
.page-mobile-2 main.faq-main,
.page-mobile-2 main.privacy-content,
.page-mobile-2 .how-to-use-main {
    padding-top: 80px !important; /* 64px header + 16px */
}

/* How-to-use page: override its .header (sticky, grid-area) so mobile-2 header wins */
body.page-mobile-2 .app-container .header {
    display: flex !important;
    position: fixed !important;
    grid-area: unset !important;
    height: 64px;
    min-height: 64px;
    padding: 16px;
    background: var(--theme-bg-primary);
    border-bottom: 1px solid var(--theme-border);
    z-index: 1000;
}

/* FAQ: reserve space for fixed header (breadcrumb and main follow header) */
.page-mobile-2 .breadcrumb {
    padding-top: 80px;
}
