:root {
    --fno-blue: #2563eb;
    --fno-blue-dark: #1d4ed8;
    --fno-ink: #1e293b;
    --fno-text: #64748b;
    --fno-border: #e2e8f0;
    --fno-footer: #1e293b;
    --fno-white: #fff;
}

/* Keep the shared sticky header attached to the viewport. */
#body-wrapper {
    overflow-x: clip;
}

.fno-header,
.fno-footer,
.fno-header *,
.fno-footer * {
    box-sizing: border-box;
}

.fno-header,
.fno-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.fno-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.fno-header {
    position: sticky;
    z-index: 100;
    top: 0;
    padding: 20px 0;
    background: var(--fno-white);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.admin-bar .fno-header {
    top: 32px;
}

.fno-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.fno-logo {
    display: flex;
    align-items: center;
}

.fno-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
}

.fno-nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fno-nav__links li {
    margin: 0;
    padding: 0;
}

.fno-nav__links a:not(.fno-button) {
    display: block;
    padding: 8px 0;
    color: var(--fno-text);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fno-nav__links a:not(.fno-button):hover {
    color: var(--fno-blue);
}

.fno-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fno-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: var(--fno-blue);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fno-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.fno-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.fno-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.fno-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fno-button--primary {
    border-color: var(--fno-blue);
    color: var(--fno-white);
    background: var(--fno-blue);
}

.fno-button--primary:hover {
    border-color: var(--fno-blue-dark);
    color: var(--fno-white);
    background: var(--fno-blue-dark);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.fno-nav__cta {
    min-height: 42px;
    padding: 9px 20px;
}

.fno-header a:focus-visible,
.fno-header button:focus-visible,
.fno-footer a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 4px;
}

.fno-footer {
    padding: 60px 0 30px;
    color: var(--fno-white);
    background: var(--fno-footer);
}

.fno-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.fno-footer h2 {
    margin: 0 0 20px;
    color: var(--fno-white);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
}

.fno-footer p {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}

.fno-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.fno-footer a:hover {
    color: var(--fno-white);
}

.fno-footer__bottom {
    margin: 0;
    padding-top: 30px;
    border-top: 1px solid #334155;
    text-align: center;
}

@media (max-width: 1024px) {
    .fno-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .admin-bar .fno-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    .fno-container {
        width: min(100% - 32px, 1200px);
    }

    .fno-header {
        padding: 15px 0;
    }

    .fno-logo img {
        height: 35px;
    }

    .fno-menu-toggle {
        display: flex;
    }

    .fno-nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 0 16px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: var(--fno-white);
        box-shadow: 0 8px 15px rgba(15, 23, 42, 0.1);
        transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0.25s ease;
    }

    .fno-nav__links.is-open {
        max-height: 520px;
        padding-top: 12px;
        padding-bottom: 20px;
        visibility: visible;
        opacity: 1;
    }

    .fno-nav__links li {
        border-bottom: 1px solid var(--fno-border);
    }

    .fno-nav__links li:last-child {
        padding-top: 12px;
        border-bottom: 0;
    }

    .fno-nav__links a:not(.fno-button) {
        width: 100%;
        padding: 14px 4px;
        color: var(--fno-ink);
    }

    .fno-nav__cta {
        width: 100%;
    }

    .fno-footer__grid {
        grid-template-columns: 1fr;
    }
}
