/* GRA palette. Darker aqua/slate derivatives keep small text and controls readable. */
:root {
    --brand-aqua:#11a7c0;
    --brand-orange:#f47721;
    --brand-ice:#eff8fc;
    --brand-slate:#19344f;
    --brand-white:#ffffff;
    --brand-aqua-strong:#087f93;
    --brand-dark-surface:#132b42;
}
#learner-sidebar-course-name {
    white-space:normal;overflow-wrap:anywhere;word-break:normal;
    text-overflow:clip;line-height:1.45;flex-shrink:0;
}
#course-opening-status:not(.hidden) {
    position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;
    flex-direction:column;gap:1rem;background:var(--bg);color:var(--text);font-weight:700;
}
.course-opening-mark {
    position:relative;display:grid;place-items:center;width:9rem;aspect-ratio:1;
}
.course-opening-logo {
    width:calc(100% - 1rem);aspect-ratio:1;border-radius:50%;
    background:var(--brand-slate) url('/images/gra-test-prep-white.svg') center / 75% auto no-repeat;
}
.course-opening-spinner {
    position:absolute;inset:0;border:3px solid var(--border);border-top-color:var(--brand-aqua);
    border-radius:50%;animation:course-opening-spin .8s linear infinite;
}
@keyframes course-opening-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .course-opening-spinner { animation:none; } }
body {
    --bg:var(--brand-dark-surface);
    --bg2:var(--brand-slate);
    --surface:rgba(239,248,252,.06);
    --surface-solid:#24435f;
    --text:var(--brand-ice);
    --text-muted:#b6cbd7;
    --border:rgba(239,248,252,.16);
    --accent:var(--brand-orange);
    --accent2:var(--brand-aqua);
    --gradient:linear-gradient(135deg,var(--brand-slate),var(--brand-aqua-strong));
    --glow:rgba(17,167,192,.16);
}
body.light-mode {
    --bg:var(--brand-ice);
    --bg2:var(--brand-white);
    --surface:rgba(255,255,255,.9);
    --surface-solid:var(--brand-white);
    --text:var(--brand-slate);
    --text-muted:#526b7a;
    --border:rgba(25,52,79,.16);
}
body .btn-primary { background:var(--brand-aqua-strong);color:var(--brand-white); }
body .btn-primary:hover:not(:disabled) { background:var(--brand-slate);color:var(--brand-white); }
body .btn-primary:focus-visible { outline:3px solid var(--brand-orange);outline-offset:3px; }
body.light-mode .nav-link.active { background:var(--brand-slate);border-left:3px solid var(--brand-aqua); }
body:not(.light-mode) select,body:not(.light-mode) select option,body:not(.light-mode) select optgroup { background-color:var(--brand-slate);color:var(--brand-ice); }
body.light-mode select option:checked,body:not(.light-mode) select option:checked { background:var(--brand-slate);color:var(--brand-white); }
#landing-screen { --campus-ink:var(--brand-slate);--campus-base:var(--brand-ice);--campus-paper:var(--brand-white); }
#landing-screen .landing-nav,#landing-screen .landing-footer { background:var(--brand-slate); }
#landing-screen .hero-cta .btn-ghost { border-color:var(--brand-slate);color:var(--brand-slate); }
#landing-screen .hero-cta .btn-ghost:hover { background:var(--brand-slate);color:var(--brand-white); }
#landing-screen #nav-signup-btn:hover,#landing-screen #hero-signup-btn:hover,#landing-screen .campus-account-card>button:hover { background:var(--brand-slate);color:var(--brand-white); }
body:not(.light-mode) #landing-screen { --campus-ink:var(--brand-ice);--campus-base:var(--brand-dark-surface);--campus-paper:var(--brand-slate); }
body:not(.light-mode) #landing-screen .hero-cta .btn-ghost { border-color:var(--brand-ice);color:var(--brand-ice); }
body:not(.light-mode) #landing-screen #hero-login-btn { border-color:var(--brand-ice);color:var(--brand-ice);background:transparent; }
body:not(.light-mode) #landing-screen #hero-login-btn:hover { border-color:var(--brand-aqua);background:var(--brand-aqua-strong);color:var(--brand-white); }
#subjects-container .learner-subject-action .btn-primary { background:var(--brand-slate);color:var(--brand-white); }
#subjects-container .learner-subject-action .btn-primary:hover { background:var(--brand-aqua-strong); }
.test-bank-v2 .v2-generated-quizzes .v2-generated-heading { background:var(--brand-slate); }
.learner-course-tab.active { background:var(--brand-slate);color:var(--brand-white); }
.subjects-catalog-table .subject-status-toggle:hover,.subjects-catalog-table .subject-status-toggle:focus-visible { background:var(--brand-aqua-strong);color:var(--brand-white); }
/* Permanent course-family colors, independent of catalogue position or enrollment. */
.course-profile-modal { --profile-color:#184b7a;--profile-ink:#102f50;--profile-pale:#eaf1fa; }
.course-profile-modal[data-course-family="nclex"] { --profile-color:#11a7c0;--profile-ink:#075766;--profile-pale:#e6f7fa; }
.course-profile-modal[data-course-family="pnle"] { --profile-color:#e6b628;--profile-ink:#795700;--profile-pale:#fff7dc; }
.course-profile-modal[data-course-family="prometric"] { --profile-color:#28945f;--profile-ink:#125337;--profile-pale:#eaf6ed; }
.course-profile-modal[data-course-family="cse"] { --profile-color:#19344f;--profile-ink:#19344f;--profile-pale:#eaf0f5; }
#modal-course-profile[data-course-family] {
    --text:#19344f;--text-muted:#526b7a;--border:#d5e1e9;
    background:linear-gradient(145deg,#fff 40%,var(--profile-pale));color:var(--text);
    border-top:5px solid var(--profile-color);
}
#modal-course-profile[data-course-family] :is(.section-label,h2,.modal-close) { color:var(--profile-ink); }
#modal-course-profile[data-course-family] #course-profile-subtitle { color:#526b7a; }
#modal-course-profile[data-course-family] .btn-primary { background:var(--profile-ink);color:#fff; }
#modal-course-profile[data-course-family] :is(.course-profile-summary>div,.course-profile-grid>div,.course-profile-description) {
    background:#fff;border:1px solid #d5e1e9;
}
#modal-course-profile[data-course-family] .course-profile-summary>div { border-top:3px solid var(--profile-color);background:linear-gradient(135deg,#fff,var(--profile-pale)); }
#modal-course-profile[data-course-family] :is(.course-profile-summary span,.course-profile-grid span,.course-profile-description>span) { color:var(--profile-ink); }
#courses-container .learner-course-card:where([data-course-family]) {
    --course-card-color:#184b7a;--course-card-color-dark:#102f50;
    --course-card-accent:#184b7a;--family-pale:#eaf1fa;--family-night:#182e46;
    --course-card-soft:var(--family-pale);--course-card-accent-soft:var(--family-pale);
    --course-card-border:var(--course-card-color);
    --course-footer-text:#fff;
    --available-course-color:var(--course-card-color);--available-course-dark:var(--course-card-color-dark);
    --available-course-soft:var(--family-pale);--available-course-border:var(--course-card-color);
    border-top:5px solid var(--course-card-color);
    background:linear-gradient(145deg,var(--family-night),#132b42);
}
#course-details-area { --course-card-color:#184b7a;--course-card-color-dark:#102f50;--course-card-accent:#184b7a;--family-pale:#eaf1fa;--family-night:#182e46;--course-footer-text:#fff; }
#courses-container [data-course-family="nclex"],#course-details-area[data-course-family="nclex"] { --course-card-color:#11a7c0;--course-card-color-dark:#075766;--course-card-accent:#076779;--family-pale:#e6f7fa;--family-night:#143c49; }
#courses-container [data-course-family="pnle"],#course-details-area[data-course-family="pnle"] { --course-card-color:#e6b628;--course-card-color-dark:#806015;--course-card-accent:#795700;--family-pale:#fff7dc;--family-night:#3d3521; }
#courses-container [data-course-family="prometric"],#course-details-area[data-course-family="prometric"] { --course-card-color:#28945f;--course-card-color-dark:#125337;--course-card-accent:#17633e;--family-pale:#eaf6ed;--family-night:#183c30; }
#courses-container [data-course-family="cse"],#course-details-area[data-course-family="cse"] { --course-card-color:#19344f;--course-card-color-dark:#102338;--course-card-accent:#19344f;--family-pale:#eaf0f5;--family-night:#243c52; }
#courses-container [data-course-family="nclex"],#courses-container [data-course-family="pnle"],#course-details-area[data-course-family="nclex"],#course-details-area[data-course-family="pnle"] { --course-footer-text:#102338; }
#courses-container [data-course-family="prometric"],#course-details-area[data-course-family="prometric"] { --course-footer-text:#081d13; }
body.light-mode #courses-container .learner-course-card[data-course-family] { background:linear-gradient(145deg,#ffffff,var(--family-pale)); }
#courses-container .learner-course-card[data-course-family] .course-card-open-label {
    background:var(--course-card-color);color:var(--course-footer-text);
}
#courses-container .learner-course-card[data-course-family] .course-card-open-label span,
#courses-container .learner-course-card[data-course-family] .course-card-open-label svg { color:var(--course-footer-text); }
#courses-container .learner-course-card.course-locked[data-course-family] { min-height:0; }
#courses-container .course-locked .available-course-content { padding:1.55rem 1.55rem 1.35rem; }
#courses-container .course-locked .available-course-content h3 { color:var(--text);font-size:1.28rem;font-weight:600; }
#courses-container .course-locked .enrolled-card-eyebrow small { white-space:normal;overflow-wrap:anywhere; }
#courses-container .course-locked .course-card-actions { padding:0 1.55rem 1.35rem; }
#courses-container .batch-card-schedule {
    display:grid;grid-template-columns:fit-content(48%) minmax(0,1fr);
    gap:.62rem .8rem;align-items:baseline;margin:0;
    color:var(--text-muted);font-size:.77rem;
}
#courses-container .batch-card-schedule dt { display:flex;align-items:center;gap:.52rem;overflow-wrap:anywhere; }
#courses-container .batch-card-schedule dd { margin:0;font-variant-numeric:tabular-nums; }
@media(max-width:600px) {
    #courses-container .course-locked .available-course-content { padding:1.25rem 1.15rem 1.1rem; }
    #courses-container .course-locked .course-card-actions { padding:0 1.15rem 1.1rem; }
}
#courses-container .learner-course-card[data-course-family] .course-subscribe-btn { background:var(--course-card-color-dark);color:#fff; }
#courses-container .learner-course-card[data-course-family]::before,#courses-container .learner-course-card[data-course-family]::after { display:none; }
body:not(.light-mode) #courses-container .learner-course-card[data-course-family] .course-code-btn { color:#eff8fc;border-color:#b6cbd7; }
body:not(.light-mode) #courses-container .learner-course-card[data-course-family] { --course-card-accent:#d6edf5;--course-card-accent-soft:#24435f;--course-card-soft:#24435f; }
body:not(.light-mode) #courses-container .learner-course-card[data-course-family] .course-ranking-badge { color:#eff8fc; }
/* Profile summary beside the learner welcome hero; no decorative background shapes. */
#course-details-area[data-course-family] .course-overview-hero {
    padding:1.3rem;border-radius:16px;border:1px solid #d5e1e9;
    background:#fff;
    color:var(--brand-slate);
}
#course-details-area[data-course-family] .course-overview-hero :is(h2,.section-subtitle,.section-eyebrow) { color:var(--brand-slate); }
#course-details-area[data-course-family] .course-overview-enrolled { background:var(--course-card-color-dark);color:#fff; }
#course-details-area .course-overview-hero>div:first-child { flex:1;min-width:0; }
#course-details-area .course-overview-actions { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;max-width:100%; }
#course-details-area .course-overview-actions .btn-ghost {
    display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
    border:1px solid var(--course-card-accent);border-radius:999px;
    background:transparent;color:var(--course-card-accent);padding:.5rem .8rem;
    font-size:.72rem;white-space:nowrap;
}
#course-details-area .course-overview-actions .btn-ghost svg { width:16px;height:16px; }
#course-details-area .course-overview-actions .btn-ghost:hover { background:var(--course-card-color-dark);color:#fff; }
@media(max-width:1100px) { #course-details-area .course-overview-hero { flex-wrap:wrap; } }
@media(max-width:760px) { #course-details-area .course-overview-actions { justify-content:flex-start; } }
#course-details-area[data-course-family] :is(.course-overview-metrics>div,.course-live-schedule,.learner-subject-row) {
    border-color:var(--course-card-color);
    border-top:3px solid var(--course-card-color);
    background:linear-gradient(135deg,var(--family-night),#132b42);
}
body.light-mode #course-details-area[data-course-family] :is(.course-overview-metrics>div,.course-live-schedule,.learner-subject-row) { background:linear-gradient(135deg,#fff,var(--family-pale)); }
#course-details-area[data-course-family] :is(.course-overview-metric-icon,.course-panel-icon) {
    background:var(--course-card-color-dark);color:#fff;border:0;
}
#course-details-area[data-course-family] :is(.course-overview-hero,.course-overview-metrics>div,.course-live-schedule) {
    --text:#19344f;--text-muted:#526b7a;--border:#d5e1e9;
    background:#fff;border:1px solid #d5e1e9;color:var(--text);
}
body.light-mode #course-details-area[data-course-family] :is(.course-overview-metrics>div,.course-live-schedule) { background:#fff; }
#course-details-area[data-course-family] .learner-subject-progress-track span { background:var(--course-card-color); }
#course-details-area[data-course-family] .learner-subject-action .btn-primary:not(:hover) { background:var(--course-card-color);color:var(--course-footer-text); }
#course-details-area[data-course-family] .learner-subject-row:hover { border-color:var(--course-card-color); }
.course-overview-metrics small { color:var(--brand-orange); }
#course-details-area[data-course-family] .course-overview-hero { display:block;padding:0;overflow:hidden; }
#course-details-area[data-course-family] .course-overview-titlebar {
    display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;
    padding:1.3rem;background:var(--course-card-color);color:var(--course-footer-text);
}
#course-details-area[data-course-family] .course-overview-titlebar :is(h2,.section-eyebrow) { color:var(--course-footer-text); }
#course-details-area[data-course-family] .course-overview-titlebar .btn-ghost { color:var(--course-footer-text);border-color:currentColor; }
#course-details-area[data-course-family] .course-overview-titlebar .btn-ghost:hover { color:#fff;background:var(--course-card-color-dark); }
#course-details-area[data-course-family] .course-overview-hero>.section-subtitle { margin:0;padding:1rem 1.3rem; }
#course-details-area .course-overview-body { padding:1rem 1.3rem; }
#course-details-area .course-overview-body .section-subtitle { margin:0; }
#course-details-area .course-overview-titlebar .section-eyebrow { margin:0; }
#course-details-area .course-overview-divider { border:0;border-top:1px solid #d5e1e9;margin:0 1.3rem; }
#course-details-area .course-overview-hero .course-overview-metrics { margin:0;padding:1rem 1.3rem 1.3rem; }
/* Dashboard panels follow the existing body theme switch, without changing family colors. */
body:not(.light-mode) #course-details-area[data-course-family] :is(.course-overview-hero,.course-overview-metrics>div,.course-live-schedule) {
    --text:#eff8fc;--text-muted:#b6cbd7;--border:#3b5368;
    background:#19344f;border-color:var(--border);color:var(--text);
}
body:not(.light-mode) #course-details-area[data-course-family] .course-overview-metrics>div { background:#24435f; }
body:not(.light-mode) #course-details-area[data-course-family] .course-overview-body :is(h2,.section-subtitle) { color:var(--text); }
body:not(.light-mode) #course-details-area .course-overview-divider { border-top-color:#3b5368; }
body:not(.light-mode) #course-details-area[data-course-family] :is(.course-overview-metric-icon,.course-panel-icon) { border:1px solid #698196; }
#dashboard-hero .dashboard-hero-panel {
    border-top:4px solid var(--brand-slate);
    background:linear-gradient(135deg,#24435f 0%,var(--brand-slate) 65%,var(--brand-dark-surface) 100%);
    box-shadow:0 12px 32px rgba(25,52,79,.12);
}
body.light-mode #dashboard-hero .dashboard-hero-panel {
    background:linear-gradient(135deg,var(--brand-white) 0%,var(--brand-ice) 65%,#deedf4 100%);
}
