/* Shared site header; used by every page, with navigation on interior pages. */

/* Match Momentum's desktop card edges; keep all main containers independent. */
.header-inner,
.site-footer .footer-inner {
    box-sizing: border-box;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: block;
    flex-shrink: 0;
}

.brand img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    padding: 12px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
}

nav a:hover {
    color: var(--green);
    text-decoration: underline;
}

nav a[aria-current="page"] {
    color: var(--green);
}

.site-header {
    --surface: #ffffff;
    --text: #101318;
    --border: #e2e6ea;
    --green: #078532;
}

.site-header a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px;
}

@media (max-width: 800px) {
    .header-inner {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 8px 24px;
        padding-block: 20px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 40px;
    }

    nav {
        gap: 20px;
    }
}
