html {
    scroll-behavior: smooth;
}

body {
    padding-top: var(--spa-topbar-offset, 72px);
}

body[data-spa-loading="true"] {
    cursor: progress;
}

body[data-spa-loading="true"] [data-spa-root] {
    opacity: 0.72;
    transition: opacity 0.18s ease;
}

body::before {
    background: linear-gradient(90deg, #106962, #0f766e);
    content: "";
    height: 3px;
    inset: 0 auto auto 0;
    position: fixed;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
    width: 100%;
    z-index: 9999;
}

body[data-spa-loading="true"]::before {
    transform: scaleX(0.65);
}

body[data-spa-ready="true"]:not([data-spa-loading="true"])::before {
    transform: scaleX(1);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.topbar {
    inset: 0 0 auto 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.subnav a.subnav-cta {
    align-items: center;
    background: linear-gradient(135deg, #106962, #1d4ed8);
    border: 1px solid #1d4ed8;
    border-radius: 0;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    padding: 12px 18px;
    position: relative;
    white-space: nowrap;
}

.subnav a.subnav-cta::after {
    content: "↗";
    font-size: 1rem;
    line-height: 1;
    opacity: 0.95;
}

.subnav a.subnav-cta:hover {
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
}

.subnav a.subnav-cta:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .subnav a.subnav-cta {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body[data-spa-loading="true"] [data-spa-root],
    body::before,
    body[data-spa-ready="true"]:not([data-spa-loading="true"])::before {
        transition: none;
    }
}
