/* Landing header only. Palette and typography match the sign-in pages. */
.landing-header--aphero {
    background: #ffffff;
    border-bottom: 5px solid #014565;
    box-shadow: 0 3px 12px rgba(31, 41, 55, 0.06);
    color: #1f2937;
    font-family: Roboto, sans-serif;
}

.landing-header--aphero .aphero-header-inner {
    width: min(1360px, calc(100% - 48px));
    min-height: 104px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.landing-header--aphero .aphero-header-brand {
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    line-height: 1;
    text-decoration: none;
}

.landing-header--aphero .aphero-header-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-header--aphero .aphero-header-nav {
    min-width: 0;
    display: flex;
    align-self: stretch;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.landing-header--aphero .aphero-header-nav a {
    min-height: 44px;
    padding: 0 28px;
    display: inline-flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
}

.landing-header--aphero .aphero-header-nav a:hover,
.landing-header--aphero .aphero-header-nav a:focus-visible {
    color: #ffffff;
    background: #01ada0;
}

.landing-main > #subjects,
.landing-main > #overview {
    scroll-margin-top: var(--aphero-header-height, 109px);
}

.landing-header--aphero .aphero-header-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.landing-header--aphero .aphero-header-actions a {
    min-height: 42px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    font: 700 14px/1.25 Roboto, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.landing-header--aphero .aphero-header-actions .aphero-header-login {
    border-color: #0065b3;
    background: #ffffff;
    color: #0065b3;
}

.landing-header--aphero .aphero-header-actions .aphero-header-login:hover {
    background: #eaf4fc;
    border-color: #004f8c;
    color: #004f8c;
}

.landing-header--aphero .aphero-header-actions .aphero-header-start {
    border-color: #fedb00;
    background: #fedb00;
    color: #1e1e1e;
}

.landing-header--aphero .aphero-header-actions .aphero-header-start:hover {
    background: #f3ce00;
    border-color: #f3ce00;
}

.landing-header--aphero a:focus-visible {
    outline: 3px solid #0065b3;
    outline-offset: 3px;
}

@media (max-width: 900px) and (min-width: 641px) {
    .landing-header--aphero .aphero-header-inner {
        width: calc(100% - 32px);
        gap: 12px;
    }

    .landing-header--aphero .aphero-header-nav {
        gap: 0;
    }

    .landing-header--aphero .aphero-header-nav a {
        padding-inline: 10px;
        font-size: 13px;
    }

    .landing-header--aphero .aphero-header-actions a {
        padding-inline: 13px;
        font-size: 13px;
    }
}

@media (min-width: 641px) and (max-width: 680px) {
    .landing-header--aphero .aphero-header-nav a {
        padding-inline: 8px;
    }
}

@media (max-width: 640px) {
    .landing-header--aphero .aphero-header-inner {
        width: calc(100% - 32px);
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 88px 44px;
        column-gap: 12px;
        row-gap: 0;
    }

    .landing-header--aphero .aphero-header-brand {
        width: 88px;
        height: 88px;
    }

    .landing-header--aphero .aphero-header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc(100% + 32px);
        margin-inline: -16px;
        justify-content: space-between;
        gap: 0;
    }

    .landing-header--aphero .aphero-header-nav a {
        flex: 1 1 auto;
        padding: 0 10px;
        font-size: 12.5px;
    }

    .landing-header--aphero .aphero-header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
    }

    .landing-header--aphero .aphero-header-actions a {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12.5px;
    }
}
