/**
 * Public/marketing nav — single source of truth for the masthead on every
 * public page. Loaded automatically by nav-public.php.
 *
 * "The Periodical" redesign (2026-06-22): translucent paper bar + hairline
 * rule, body-font links, green CTA. Uses theme.css tokens with literal
 * fallbacks so it renders correctly on pages that have NOT yet loaded
 * theme.css (during the page-by-page conversion).
 */

/* Dark-safe: keep the light brand look; stop OS dark mode from inverting
   form controls / scrollbars. */
:root { color-scheme: light; }

.logo-bar {
    background: rgba(238,242,245,0.86);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
    backdrop-filter: saturate(1.1) blur(8px);
    border-bottom: 1px solid var(--rule, rgba(0,55,109,0.16));
    padding: 13px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-bar-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-bar img {
    height: 34px;
    width: auto;
    max-width: none;
    display: block;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}
.nav-links a {
    font-family: var(--body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: var(--ink, #11263b);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--green-dark, #0d8563);
}
.nav-links a.nav-login {
    font-weight: 500;
}

.nav-cta {
    background: var(--green, #10a077);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover {
    background: var(--green-dark, #0d8563);
    transform: translateY(-1px);
}

/* Mobile nav — hamburger + collapsible list */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy, #00376d);
}

@media (max-width: 920px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sheet, #fff);
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.10);
        gap: 16px;
        align-items: stretch;
    }
    .mobile-menu-btn { display: block; }
}
