.site-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--fm-page-gutter, clamp(16px, 3vw, 56px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    min-height: var(--fm-header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 9, 20, 0.96);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    background: rgba(2, 9, 20, 0.99);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: var(--fm-header-height);
    display: grid;
    grid-template-columns: minmax(205px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--fm-white);
    text-decoration: none;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 3px;
    line-height: 1;
}

.brand-copy strong {
    color: var(--fm-white);
    font: 850 15px/1 var(--fm-font-sans);
    letter-spacing: 0.01em;
}

.brand-copy span {
    color: var(--fm-gold-400);
    font: 800 9px/1.15 var(--fm-font-sans);
    letter-spacing: 0.115em;
    text-transform: uppercase;
}

.site-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.35vw, 22px);
}

.site-nav > a {
    position: relative;
    padding: 33px 0 28px;
    color: rgba(255, 255, 255, 0.68);
    font: 700 12px/1 var(--fm-font-sans);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav > a::after {
    content: "";
    position: absolute;
    right: 100%;
    bottom: 21px;
    left: 0;
    height: 2px;
    background: var(--fm-gold-400);
    transition: right 160ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > a.is-active,
.site-nav > a[aria-current="page"] {
    color: var(--fm-white);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.site-nav > a.is-active::after,
.site-nav > a[aria-current="page"]::after {
    right: 0;
}

.header-member-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-member-cta,
.nav-member-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    font: 800 11px/1 var(--fm-font-sans);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-member-cta:hover,
.header-member-cta:focus-visible,
.nav-member-cta:hover,
.nav-member-cta:focus-visible {
    transform: translateY(-1px);
}

.header-login-cta,
.nav-login-cta {
    color: var(--fm-white);
    background: rgba(255, 255, 255, 0.045);
}

.header-login-cta:hover,
.nav-login-cta:hover {
    border-color: rgba(225, 173, 49, 0.5);
    background: rgba(225, 173, 49, 0.1);
}

.header-register-cta,
.nav-register-cta {
    border-color: var(--fm-gold-400);
    background: var(--fm-gold-400);
    color: var(--fm-navy-950);
}

.nav-member-actions,
.header-login-static,
.nav-toggle {
    display: none;
}

.mobile-nav-drawer {
    position: fixed;
    inset: var(--fmmsc-mobile-header-height, var(--fm-header-height)) 0 0;
    z-index: 1199;
    overflow-y: auto;
    background: rgba(2, 9, 20, 0.995);
}

.mobile-nav-drawer[hidden] {
    display: none;
}

.mobile-nav-drawer-inner {
    width: min(calc(100% - 40px), 620px);
    margin-inline: auto;
    padding: 22px 0 42px;
}

.mobile-nav-links {
    display: grid;
}

.mobile-nav-links a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font: 750 15px/1.2 var(--fm-font-sans);
    text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.is-active {
    color: var(--fm-gold-300);
}

.mobile-nav-member-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 22px;
}

.mobile-nav-login,
.mobile-nav-register {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 11px;
    font: 800 12px/1 var(--fm-font-sans);
    text-decoration: none;
    text-align: center;
}

.mobile-nav-login {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--fm-white);
}

.mobile-nav-register {
    border: 1px solid var(--fm-gold-400);
    background: var(--fm-gold-400);
    color: var(--fm-navy-950);
}

body.nav-open {
    overflow: hidden;
}

/* Footer returns to the compact pre-v5 FMMSC rhythm. */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--fm-navy-950);
    color: var(--fm-white);
}

.footer-top {
    min-height: 165px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    gap: 36px;
    align-items: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--fm-white);
    text-decoration: none;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    font: 850 15px/1 var(--fm-font-sans);
}

.footer-brand span {
    margin-top: 5px;
    color: var(--fm-gold-400);
    font: 800 9px/1.2 var(--fm-font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px 18px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.55);
    font: 700 11px/1.2 var(--fm-font-sans);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--fm-gold-300);
}

.footer-social {
    justify-self: end;
    text-align: right;
}

.footer-social > span {
    display: block;
    margin-bottom: 8px;
    color: var(--fm-gold-300);
    font: 800 9px/1 var(--fm-font-sans);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.footer-social > div {
    display: flex;
    gap: 12px;
}

.footer-social-link,
.social-disabled {
    font: 700 11px/1.2 var(--fm-font-sans);
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.social-disabled {
    color: rgba(255, 255, 255, 0.34);
}

.footer-bottom {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.34);
    font: 650 10px/1.4 var(--fm-font-sans);
    letter-spacing: 0.04em;
}

.footer-bottom > span:last-child {
    color: var(--fm-gold-400);
    font-weight: 850;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1160px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
    }

    .site-nav,
    .header-member-actions {
        display: none;
    }

    .header-login-static {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 13px;
        border: 1px solid rgba(225, 173, 49, 0.38);
        border-radius: 10px;
        color: var(--fm-gold-300);
        background: rgba(225, 173, 49, 0.07);
        font: 800 11px/1 var(--fm-font-sans);
        text-decoration: none;
        white-space: nowrap;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        cursor: pointer;
    }

    .nav-toggle span {
        width: 18px;
        height: 1.5px;
        border-radius: 999px;
        background: var(--fm-white);
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        padding: 34px 0;
    }

    .footer-nav {
        justify-content: flex-end;
    }

    .footer-social {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .site-container {
        width: 100%;
        padding-inline: 16px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy span {
        font-size: 8px;
        letter-spacing: 0.09em;
    }

    .header-login-static {
        min-height: 38px;
        padding-inline: 11px;
    }

    .mobile-nav-member-actions {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-social {
        grid-column: auto;
    }

    .footer-bottom {
        min-height: 92px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
    }
}
