/* ============================================================
   LANDING PAGE: SEPTEMBER CHROME (2026-10-13)
   Header, bottom bar, pager, Underground tab, huts and hero exactly as on
   27 September 2026 (values from bunkrosnexus.css), undoing the newer shell.css
   layer for this page only. Kept from today: the travelling pulse on the header
   line and on the top line of the phone bar, and the slim menu.
   Loaded only when the page sets $septShell = true (index.php).
   ============================================================ */
body.sept-shell { --sh-top-h: 81px; --sh-bot-h: 0px; }
@media (max-width: 768px) { body.sept-shell { --sh-top-h: 81px; --sh-bot-h: calc(68px + env(safe-area-inset-bottom)); } }

/* ---------- header: logo left, hamburger right ---------- */
body.sept-shell header.topbar {
    height: auto !important; padding: var(--space-md) !important; gap: normal !important;
    justify-content: space-between;
    -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border-color) !important; box-shadow: none !important;
    transform: none !important;
}
[data-theme="dark"] body.sept-shell header.topbar { background: rgba(10, 10, 15, .85) !important; }
[data-theme="light"] body.sept-shell header.topbar {
    background: linear-gradient(90deg, rgba(250,248,245,.95) 0%, rgba(255,245,248,.92) 25%, rgba(248,250,255,.92) 50%, rgba(250,255,252,.92) 75%, rgba(250,248,245,.95) 100%) !important;
    border-bottom: 1px solid rgba(255, 51, 102, .15) !important;
    box-shadow: 0 2px 20px rgba(255, 51, 102, .06), 0 1px 3px rgba(124, 58, 237, .04) !important;
}
body.sept-shell header.topbar .logo { margin-right: 0; min-height: 0; font-size: clamp(1rem, 4vw, 1.5rem) !important; }
body.sept-shell header.topbar .logo-highlight { margin: 0 .25em 0 0 !important; letter-spacing: .1em !important; }
body.sept-shell .topnav, body.sept-shell #themeIconBtn, body.sept-shell .training-header-progress { display: none !important; }
body.sept-shell .topbar-tools { gap: 0; }
body.sept-shell header.topbar .nav-toggle {
    position: static; display: flex; justify-content: center; align-items: center;
    width: 48px; height: 48px; border-radius: 8px; font-size: 1.25rem;
    background: none; border: 1px solid var(--border-color); color: var(--text-primary);
}
[data-theme="light"] body.sept-shell header.topbar .nav-toggle { border-color: rgba(255, 51, 102, .2); }
body.sept-shell header.topbar .nav-toggle:hover { color: var(--primary-accent); border-color: var(--primary-accent); }

/* ---------- Underground / Above Ground side tab ---------- */
body.sept-shell .theme-toggle { right: var(--space-md) !important; z-index: 998; }
body.sept-shell .theme-toggle-btn {
    min-width: 0; min-height: 0; padding: var(--space-md); border-radius: 8px;
    font-size: .7rem; letter-spacing: .15em;
    background: var(--bg-elevated); border: 1px solid var(--border-color);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}
body.sept-shell .theme-toggle-btn::before { content: none; }
@media (min-width: 769px) { body.sept-shell .theme-toggle { display: flex !important; } }
@media (max-width: 768px) { body.sept-shell .theme-toggle { display: none !important; } }

/* ---------- pager pill (iPad + desktop) ---------- */
body.sept-shell .viewpoint-nav {
    left: 50%; bottom: var(--space-lg); transform: translateX(-50%); z-index: 997;
    gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: 50px;
    background: var(--bg-elevated); border: 1px solid var(--border-color);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}
body.sept-shell .viewpoint-btn { width: 44px; height: 44px; border-radius: 50%; color: var(--text-secondary); font-size: 1rem; }
body.sept-shell .viewpoint-indicator { min-width: 40px; font: 600 .75rem/1.6 var(--font-accent); letter-spacing: .05em; color: var(--text-primary); }
body.sept-shell .viewpoint-indicator #totalViewpoints { font-size: inherit; color: inherit; }
@media (min-width: 769px) { body.sept-shell .viewpoint-nav:not([hidden]) { display: flex !important; } }
@media (max-width: 768px) { body.sept-shell .viewpoint-nav { display: none !important; } }

/* ---------- phone bottom bar: full width, flat, with the pulse on its top line ---------- */
@media (min-width: 769px) { body.sept-shell .mobile-bottom-bar { display: none !important; } }
@media (max-width: 768px) {
    body.sept-shell .mobile-bottom-bar {
        display: flex !important; justify-content: space-around; align-items: center;
        position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: auto; transform: none;
        padding: var(--space-sm) var(--space-md); padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
        border: 0; border-top: 1px solid var(--border-color); border-radius: 0;
        background: var(--bg-elevated) !important;
        -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; z-index: 998;
    }
    body.sept-shell .mobile-bottom-bar::before {
        content: ''; position: absolute; left: 0; right: 0; top: -1px; bottom: auto; inset-inline: 0; height: 2px; z-index: 1;
        padding: 0; border-radius: 0; -webkit-mask: none; mask: none; pointer-events: none;
        background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(140, 0, 40, .9) 46%, #ff005a 49%, #ff6aa8 51.5%, rgba(255, 0, 90, .6) 54%, transparent 58%, transparent 100%);
        background-size: 300% 100%; background-repeat: no-repeat;
        filter: drop-shadow(0 0 6px rgba(255, 0, 90, .9));
        animation: shPulse 5.5s cubic-bezier(.45, 0, .25, 1) infinite;
    }
    body.sept-shell .mobile-bar-btn {
        position: static; width: auto; height: auto; min-width: 60px; padding: var(--space-sm);
        display: flex; flex-direction: column; align-items: center; justify-content: normal; gap: 4px;
        border: 0; border-radius: 0; background: none; color: var(--text-secondary) !important;
        transition: color var(--transition-fast); transform: none;
    }
    body.sept-shell .mobile-bar-btn i { font-size: 1.25rem; }
    body.sept-shell .mobile-bar-btn span { font: 600 .6rem/normal Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: inherit; }
    body.sept-shell .mobile-bar-btn::after { content: none; }
    body.sept-shell .mobile-bar-btn:hover, body.sept-shell .mobile-bar-btn:focus,
    body.sept-shell .mobile-bar-btn.is-active, body.sept-shell.menu-open #mobileMenuBtn { color: var(--primary-accent) !important; }
    body.sept-shell .mobile-bar-btn:disabled { opacity: 1; }
    body.sept-shell.shell { padding-bottom: 0; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) { body.sept-shell .mobile-bottom-bar::before { animation: none; background: none; } }

/* ---------- huts: September badges, part of the hero (they scroll away with it) ---------- */
body.sept-shell .hud-container {
    position: absolute !important; left: var(--space-md) !important; right: auto !important;
    top: 0 !important; bottom: auto !important; height: 100vh; height: 100dvh; box-sizing: border-box;
    display: flex !important; flex-direction: column; justify-content: flex-end; gap: var(--space-sm);
    padding-bottom: var(--space-lg); width: auto; transform: none !important; z-index: 997; pointer-events: none;
}
@media (max-width: 768px) { [data-theme="dark"] body.sept-shell .hud-container { padding-bottom: calc(var(--space-lg) + 72px + env(safe-area-inset-bottom)); } }
html[data-theme="light"] body.sept-shell .hud-container { height: auto; justify-content: flex-start; padding: 5rem 0 0; }
body.sept-shell .hud-container .hud-badge {
    display: block !important; width: auto; padding: var(--space-sm) var(--space-md); border-radius: 6px;
    font: 600 .65rem/1.6 var(--font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary);
    background: var(--bg-elevated); border: 1px solid var(--border-color);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); pointer-events: auto;
}
body.sept-shell .hud-badge::before { content: none !important; animation: none !important; }
body.sept-shell .hud-badge > span { display: inline !important; height: auto !important; }
body.sept-shell .hud-badge-label { display: inline !important; width: auto !important; margin: 0 var(--space-xs) 0 0 !important; color: var(--primary-accent); }
@media (max-width: 479px) { body.sept-shell .hud-container .time-badge { display: none !important; } }
body.sept-shell.menu-open .hud-container { opacity: 1; }

/* ---------- hero: September values (newer subtitle shadows off) ---------- */
body.sept-shell .hero-subtitle { text-shadow: none; color: var(--text-secondary); font-weight: 400; }
body.sept-shell .hud-container .hud-badge {
    height: auto !important; padding: var(--space-sm) var(--space-md) !important; line-height: 1.6 !important; align-items: normal; min-width: 0;
}
body.sept-shell .hud-badge-label { font-weight: 600; }
body.sept-shell .hud-container[data-away="true"] { opacity: 1; transform: none !important; }

/* the two hero buttons: September pills */
body.sept-shell .hero-cta .cta-btn {
    display: inline-flex; justify-content: center; align-items: center; gap: normal;
    min-height: 52px; min-width: 180px; padding: var(--space-md) var(--space-xl); border-radius: 50px;
    font: 600 .85rem/1.6 var(--font-accent); letter-spacing: .1em; text-transform: uppercase;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: all var(--transition-fast);
}
body.sept-shell .hero-cta .cta-primary { background: linear-gradient(135deg, var(--primary-accent), var(--tertiary-accent)); color: #fff !important; border: none; box-shadow: 0 10px 30px var(--glow-color); }
body.sept-shell .hero-cta .cta-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px var(--glow-color); }
body.sept-shell .hero-cta .cta-secondary { background-color: transparent; color: var(--text-primary) !important; border: 1px solid var(--primary-accent); box-shadow: none; }
[data-theme="light"] body.sept-shell .hero-cta .cta-secondary { background-color: transparent; }
body.sept-shell .hero-cta .cta-secondary:hover { background-color: rgba(var(--primary-accent-rgb), .1); transform: translateY(-3px); }
body.sept-shell .hud-container .hud-badge > span { display: inline !important; height: auto !important; line-height: inherit !important; align-items: normal !important; }
