/* Shared site nav — single source of truth (Phase 1, 2026-06-07).
   Depends on :root tokens defined per page; fallbacks included so a page
   that's missing a token still renders a usable nav. */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h, 72px);
    background: rgba(248, 246, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, #e0dbd5);
    z-index: 100;
}
.nav-inner {
    max-width: var(--max-w, 1200px);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-brand {
    font-family: var(--mono, 'IBM Plex Mono', monospace);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading, #162032);
    text-decoration: none;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.nav-brand .dot { color: var(--accent, #0d7377); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body, #2d3748);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--accent, #0d7377); background: var(--accent-light, rgba(13,115,119,0.07)); }
.nav-links a[aria-current="page"] { color: var(--accent, #0d7377); font-weight: 600; }
.nav-links .nav-cta {
    background: var(--accent, #0d7377);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--accent-hover, #0a5e61); color: #fff; }
.nav-links .nav-cta[aria-current="page"] { color: #fff; }

/* Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-heading, #162032);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h, 72px);
        left: 0; right: 0;
        background: var(--bg-white, #fff);
        border-bottom: 1px solid var(--border, #e0dbd5);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 2px;
        box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.06));
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 12px; font-size: 14px; }
    .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}
