/* Elite Education — Asian.edu-inspired academic chrome + teal campus modules */

.theme-elite {
    --accent-gold: #0f766e;
    --elite-ink: #0f172a;
    --elite-muted: #64748b;
    --elite-panel: #f0fdfa;
    --elite-accent: #b91c1c;
    --font-display: 'Source Serif 4', Georgia, serif;
    font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 48%, #f8fafc 100%);
}

.theme-elite.edu-page {
    background: transparent;
}

.theme-elite::before {
    background: linear-gradient(90deg, #0f766e, color-mix(in srgb, var(--primary) 70%, #14b8a6), #0f766e);
}

/* Hide classic RSL chrome if any leftover markup appears */
.theme-elite .tenant-topbar,
.theme-elite .tenant-brand-header,
.theme-elite .tenant-navbar,
.theme-elite .tenant-notice-ticker,
.theme-elite .tenant-admission-portal-bar {
    display: none;
}

/* ── Elite top utility ── */
.elite-topbar {
    background: #0f172a;
    color: rgb(255 255 255 / 0.9);
    font-size: 0.75rem;
    border-bottom: 2px solid var(--elite-accent);
}

.elite-topbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    min-width: 0;
}

.elite-topbar a {
    color: rgb(255 255 255 / 0.88);
}

.elite-topbar a:hover {
    color: #fff;
}

.elite-topbar-contact,
.elite-topbar-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.elite-topbar-contact {
    flex: 1 1 auto;
    overflow: hidden;
}

.elite-topbar-right {
    flex: 0 0 auto;
}

.elite-topbar-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.elite-topbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #475569;
    color: #fff;
    flex-shrink: 0;
}

.elite-topbar-badge.is-open {
    background: var(--elite-accent);
}

.elite-topbar-utils {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.elite-utility-link {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(255 255 255 / 0.82) !important;
    white-space: nowrap;
}

/* ── Elite brand row ── */
.elite-brand-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -20px rgb(15 23 42 / 0.35);
}

.elite-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    min-width: 0;
}

.elite-brand-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    min-width: 0;
}

.elite-brand-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.elite-brand-logo {
    height: 2.85rem;
    width: 2.85rem;
    min-width: 2.85rem;
    max-width: 2.85rem;
    aspect-ratio: 1;
    border-radius: 0.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.2rem;
    font-weight: 800;
    color: var(--primary);
}

.elite-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.elite-brand-copy {
    min-width: 0;
}

.elite-brand-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4vw, 1.45rem);
    font-weight: 700;
    color: var(--elite-ink);
    line-height: 1.2;
    margin: 0;
}

.elite-brand-tagline {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--elite-muted);
}

.elite-brand-ctas {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 48%;
}

.elite-helpline {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    align-self: flex-start;
    padding-top: 0.15rem;
}

.elite-helpline__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.elite-helpline__value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.theme-elite .tenant-header-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.4rem;
    width: auto;
    min-width: 0;
}

.theme-elite .tenant-header-cta {
    min-height: 2.15rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
}

.theme-elite .tenant-header-cta--outline {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 0.25rem;
}

.theme-elite .tenant-header-cta--primary {
    border-color: var(--elite-accent);
    background: var(--elite-accent);
    border-radius: 0.25rem;
    box-shadow: none;
}

.theme-elite .tenant-header-cta--primary:hover {
    filter: brightness(1.08);
}

.theme-elite .tenant-header-cta-more {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 0.7rem;
}

.elite-notice-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-width: 0;
}

@media (max-width: 639px) {
    .elite-topbar-link--email {
        display: none;
    }

    .elite-topbar .locale-switcher__label,
    .elite-topbar .locale-switcher__chevron {
        display: none;
    }

    .elite-topbar .locale-switcher__toggle {
        padding: 0.3rem 0.45rem;
        gap: 0;
    }

    .elite-brand-ctas {
        max-width: 11.5rem;
    }

    .theme-elite .tenant-header-cta__full {
        display: none;
    }

    .theme-elite .tenant-header-cta__short {
        display: inline;
    }
}

@media (min-width: 768px) {
    .elite-brand-inner {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .elite-brand-row {
        flex: 1 1 auto;
        align-items: center;
        gap: 1.25rem;
    }

    .elite-brand-ctas {
        max-width: none;
    }

    .elite-brand-logo {
        height: 3.35rem;
        width: auto;
        min-width: 5.5rem;
        max-width: 10rem;
        aspect-ratio: 3 / 1;
        padding: 0.2rem 0.45rem;
    }

    .elite-helpline {
        flex-direction: column;
        padding-right: 0.75rem;
        border-right: 1px solid #e2e8f0;
        margin-right: 0.15rem;
    }

    .theme-elite .tenant-header-cta {
        min-height: 2.35rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .theme-elite .tenant-header-cta-more {
        width: auto;
        font-size: 0.75rem;
    }
}

@media (min-width: 900px) {
    .elite-topbar-utils {
        display: inline-flex;
    }

    .elite-topbar-link {
        max-width: 22rem;
    }
}

/* ── Elite nav ── */
.elite-navbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: color-mix(in srgb, var(--primary) 88%, #0f172a);
    border-bottom: 2px solid #0f766e;
    box-shadow: 0 12px 28px -20px rgb(0 0 0 / 0.55);
}

.elite-navbar-inner {
    min-height: 2.85rem;
}

.elite-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.8rem;
    color: rgb(241 245 249);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.elite-nav-link:hover,
.elite-nav-link.is-active {
    background: color-mix(in srgb, #14b8a6 18%, transparent);
    color: #fff;
    border-bottom-color: #5eead4;
}

.elite-navbar .tenant-nav-dropdown > summary.elite-nav-link {
    list-style: none;
    cursor: pointer;
}

.elite-navbar .tenant-nav-dropdown-panel {
    border-radius: 0.25rem;
    border-top: 2px solid var(--elite-accent);
}

.elite-nav-toggle {
    color: #fff;
    border-color: rgb(255 255 255 / 0.25);
}

.elite-notice-ticker {
    background: linear-gradient(90deg, #134e4a, color-mix(in srgb, var(--primary) 55%, #0f766e));
    color: #ecfdf5;
    overflow: hidden;
}

.elite-notice-label {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    background: var(--elite-accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.elite-notice-ticker .tenant-notice-content {
    color: #ecfdf5;
}

@media (min-width: 1024px) {
    .elite-brand-ctas {
        max-width: none;
    }
}

.theme-elite .edu-section-title {
    color: var(--elite-ink);
    font-family: var(--font-display);
}

.theme-elite .edu-section-title::before {
    background: linear-gradient(180deg, #0f766e, var(--primary));
}

.theme-elite .edu-section--alt {
    background: linear-gradient(180deg, #ffffff 0%, var(--elite-panel) 100%);
}

.theme-elite .edu-card {
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, #0f766e 14%, #e2e8f0);
    box-shadow: 0 16px 40px -28px color-mix(in srgb, #0f766e 45%, transparent);
}

.theme-elite .edu-card:hover {
    border-color: color-mix(in srgb, #0f766e 35%, #cbd5e1);
    transform: translateY(-2px);
}

.theme-elite .edu-hero-band {
    background:
        radial-gradient(ellipse 70% 60% at 0% 0%, color-mix(in srgb, #14b8a6 18%, transparent), transparent 55%),
        radial-gradient(ellipse 50% 50% at 100% 20%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 50%),
        #fff;
}

.theme-elite .edu-hero-band--wide {
    padding-top: 0;
}

.theme-elite .edu-cta-band {
    background: linear-gradient(135deg, #0f172a 0%, color-mix(in srgb, var(--primary) 70%, #134e4a) 55%, #0f766e 100%);
}

.theme-elite .edu-quick-tile {
    border-radius: 1rem;
    border-color: color-mix(in srgb, #0f766e 18%, #e2e8f0);
}

.theme-elite .edu-quick-tile:hover {
    border-color: #0f766e;
    background: var(--elite-panel);
}

.theme-elite .tenant-site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #042f2e 100%);
}
