/* ===========================
   Alert Bar
   Theme classes map to the "Theme" dropdown on alertBarBlock:
   Green, Yellow, Blue, Dark, Neutral
   =========================== */
.site-header {
    font-family: var(--font-sans);
}

.alert-bar {
    display: flex;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.alert-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.alert-bar--green {
    background-color: var(--aca-green);
    color: var(--aca-text-white);
}

.alert-bar--yellow {
    background-color: var(--aca-yellow);
    color: var(--aca-dark);
}

.alert-bar--blue {
    background-color: var(--aca-blue);
    color: var(--aca-text-white);
}

.alert-bar--dark {
    background-color: var(--aca-dark);
    color: var(--aca-text-light);
}

.alert-bar--neutral {
    background-color: var(--aca-neutral);
    color: var(--aca-dark);
}

.alert-bar__message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .alert-bar__message a,
    .alert-bar__message span {
        color: inherit;
        text-decoration: none;
    }

        .alert-bar__message a:hover {
            text-decoration: underline;
        }

.alert-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Fixed semantic colors — stay consistent no matter which background
   Theme (Green/Yellow/Blue/Dark/Neutral) the alert bar itself is using. */
.alert-bar__dot--live {
    background-color: #22c55e;
}
/* green */
.alert-bar__dot--ended {
    background-color: #9ca3af;
}
/* gray */
.alert-bar__dot--upcoming {
    background-color: #f2c94c;
}
/* yellow */
.alert-bar__dot--default {
    background-color: currentColor;
    opacity: 0.85;
}

.alert-bar__utilities {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.alert-bar__search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
}

    .alert-bar__search input {
        background: transparent;
        border: none;
        color: inherit;
        font-size: 0.82rem;
        outline: none;
        width: 180px;
    }

        .alert-bar__search input::placeholder {
            color: currentColor;
            opacity: 0.7;
        }

.alert-bar__member-login {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

    .alert-bar__member-login:hover {
        text-decoration: underline;
    }

.alert-bar__lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* ===========================
   Main navigation bar
   =========================== */
.site-header__main {
    position: relative; /* containing block for the mega menu below */
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding-top: 3px;
    transition: border-bottom-color 0.15s ease;
}

.site-header__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 1.5rem;
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--header-text);
}

.site-header__logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.site-header__tagline {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aca-text-faint);
    margin-top: 0.2rem;
}

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

    .site-header__nav ul {
        display: flex;
        align-items: center;
        gap: 1.75rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

.nav-item {
    position: relative;
}

    .nav-item > a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--header-text);
        text-decoration: none;
        font-family: var(--font-serif);
        font-size: 0.95rem;
        font-weight: 700;
        padding: 0.5rem 0;
    }

        .nav-item > a i {
            font-size: 0.7rem;
            transition: transform 0.15s ease;
            margin-top: 2px;
        }

        .nav-item > a:hover,
        .nav-item:focus-within > a {
            color: var(--header-accent);
        }

        .nav-item > a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 2px;
            background-color: var(--aca-green);
            transform: scaleX(0);
            transition: transform 0.15s ease;
        }

.nav-item--dropdown:hover > a::after,
.nav-item--dropdown:focus-within > a::after {
    transform: scaleX(1);
}

.nav-item--dropdown:hover > a i,
.nav-item--dropdown:focus-within > a i {
    transform: rotate(180deg);
    margin-top: -8px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(700px, calc(100vw - 3rem));
    display: flex;
    background-color: var(--header-bg);
    border: 1px solid var(--header-border);
    border-top: none;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 50;
}

/* The rightmost dropdown (Journal) would overflow past the viewport edge if
   left-anchored like the others, so it anchors from its right edge instead. */
.nav-item--dropdown:last-of-type .mega-menu {
    left: auto;
    right: 0;
    border-radius: 12px 0 12px 12px;
}

.nav-item--dropdown:hover .mega-menu,
.nav-item--dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu__sections {
    flex: 1;
    min-width: 0; /* prevents flex overflow from pushing the promo card out */
    padding: 1.75rem 2rem;
}

.mega-menu__caption {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--aca-text-faint);
    margin-bottom: 1.1rem;
}

.mega-menu__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
}

    .mega-menu__links li {
        width: calc(50% - 0.75rem);
        box-sizing: border-box;
    }

        .mega-menu__links li a {
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            padding: 0.5rem 0.6rem;
            border-radius: 8px;
            color: var(--header-text);
            text-decoration: none;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            white-space: normal;
            line-height: 1.35;
        }

            .mega-menu__links li a::before {
                content: "";
                width: 4px;
                height: 4px;
                border-radius: 50%;
                background-color: var(--aca-text-faint);
                flex-shrink: 0;
                margin-top: 0.5em;
                transition: background-color 0.15s ease;
            }

            .mega-menu__links li a:hover,
            .mega-menu__links li a:focus-visible {
                background-color: rgba(0, 0, 0, 0.045);
            }

                .mega-menu__links li a:hover::before,
                .mega-menu__links li a:focus-visible::before {
                    background-color: var(--aca-green);
                }

.mega-menu__promo {
    width: 240px;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(160deg, var(--aca-green) 0%, #163d24 100%);
    color: var(--aca-text-white);
    display: flex;
    flex-direction: column;
    border-radius: 0 0 12px 0;
}

.mega-menu__promo-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--aca-yellow);
    margin-bottom: 0.75rem;
}

.mega-menu__promo-heading {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.mega-menu__promo-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
    flex: 1;
}

.mega-menu__promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--aca-yellow);
    text-decoration: none;
}

    .mega-menu__promo-link:hover {
        text-decoration: underline;
    }

/* --- CTA button --- */
.site-header__cta {
  /*  display: inline-flex;*/
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--aca-dark);
    color: var(--aca-text-white);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

    .site-header__cta i {
       /* display: inline-flex;*/
        align-items: center;
        line-height: 1;
    }

    .site-header__cta:hover,
    .site-header__cta:focus-visible {
        background-color: var(--aca-green);
        color: var(--aca-text-white);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(45, 90, 61, 0.3);
    }

    .site-header__cta:active {
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(45, 90, 61, 0.25);
    }

    .site-header__cta i {
        transition: transform 0.15s ease;
    }

    .site-header__cta:hover i,
    .site-header__cta:focus-visible i {
        transform: translateX(3px);
    }

/* --- Mobile toggle (hidden on desktop) --- */
.site-header__mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--header-text);
    cursor: pointer;
}

.alert-bar__search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    border: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

    .alert-bar__search:hover,
    .alert-bar__search:focus-within {
        border-color: var(--aca-green);
        box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.35);
        background-color: rgba(255, 255, 255, 0.18);
    }

    .alert-bar__search input {
        background: transparent;
        border: none;
        color: inherit;
        font-size: 0.82rem;
        outline: none;
        width: 180px;
        transition: width 0.25s ease;
    }

    .alert-bar__search:focus-within input {
        width: 220px;
    }

    .alert-bar__search input::placeholder {
        color: currentColor;
        opacity: 0.7;
        transition: opacity 0.25s ease;
    }

    .alert-bar__search:hover input::placeholder,
    .alert-bar__search:focus-within input::placeholder {
        opacity: 0.9;
    }

    .alert-bar__search i {
        transition: color 0.25s ease;
    }

    .alert-bar__search:hover i,
    .alert-bar__search:focus-within i {
        color: var(--aca-green);
    }

/* ===========================
   Responsive breakpoints
   =========================== */
@media (max-width: 992px) {
    .alert-bar__search input {
        width: 120px;
    }

    .alert-bar__member-login span {
        display: none; /* icon only on tablet */
    }
}

@media (max-width: 768px) {
    .alert-bar {
        font-size: 0.78rem;
        padding: 0.5rem 1rem;
    }

    .alert-bar__search {
        display: none; /* hide search inline on small screens */
    }

    .site-header__nav,
    .site-header__cta {
        display: none; /* replaced by mobile menu — see note below */
    }

    .mega-menu {
        position: static;
        width: 100%;
        flex-direction: column;
        box-shadow: none;
    }

    .site-header__mobile-toggle {
        display: block;
    }

    .site-header__main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .alert-bar__utilities {
        gap: 0.75rem;
    }

    .alert-bar__lang-toggle span {
        display: none;
    }
}
