/* Global dark/light appearance. The existing design remains the default dark mode. */
:root {
  color-scheme: dark;
  --surface: #0b0b1c;
  --surface-strong: #111127;
  --surface-soft: rgba(12, 12, 32, .76);
  --line: rgba(148, 163, 184, .18);
  --heading: #f8fafc;
  --body-text: #cbd5e1;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #111827;
  --muted: #566176;
  --dim: #6b7280;
  --glass: rgba(255, 255, 255, .86);
  --surface: #ffffff;
  --surface-strong: #f1f4fa;
  --surface-soft: rgba(255, 255, 255, .88);
  --line: rgba(30, 41, 59, .13);
  --heading: #111827;
  --body-text: #475569;
  --shadow: 0 20px 55px rgba(30, 41, 59, .11);
}

body,
.page,
.academic-header,
.site-footer,
.theme-mode-toggle,
.academic-dropdown__menu,
.academic-navigation {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.theme-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #f8fafc;
  cursor: pointer;
  font: 700 11px/1 'Inter', sans-serif;
  white-space: nowrap;
}

.theme-mode-toggle:hover,
.theme-mode-toggle:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent);
  outline: none;
}

.theme-mode-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-mode-toggle__sun { display: none; }
html[data-theme="light"] .theme-mode-toggle__sun { display: block; }
html[data-theme="light"] .theme-mode-toggle__moon { display: none; }

@media (max-width: 1500px) {
  .theme-mode-toggle__label { display: none; }
  .theme-mode-toggle { padding: 0; }
}



html[data-theme="light"] body {
  background: var(--bg) !important;
  color: var(--body-text) !important;
}

html[data-theme="light"] #three {
  opacity: 1;
  filter: saturate(1.24) contrast(1.12);
}
html[data-theme="light"] .cur-ring { border-color: rgba(79, 70, 229, .55); }
html[data-theme="light"] .cur-dot { background: var(--violet); }

html[data-theme="light"] .academic-header {
  background: rgba(255, 255, 255, .9) !important;
  border-bottom-color: var(--line) !important;
  box-shadow: 0 8px 30px rgba(30, 41, 59, .08) !important;
}html[data-theme="light"] .academic-nav-link,
html[data-theme="light"] .academic-social-link {
  color: #1e293b !important;
}

html[data-theme="light"] .academic-dropdown__menu,
html[data-theme="light"] .academic-header.is-compact .academic-navigation {
  background: rgba(255, 255, 255, .98) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow) !important;
}

html[data-theme="light"] .academic-dropdown__menu a,
html[data-theme="light"] .academic-navigation__mobile-socials a { color: #334155 !important; }

html[data-theme="light"] .academic-dropdown__menu a:hover,
html[data-theme="light"] .academic-dropdown__menu a.is-active { color: #fff !important; }

html[data-theme="light"] .theme-mode-toggle {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

/* Page backgrounds and large dark sections */
html[data-theme="light"] .page,
html[data-theme="light"] main,
html[data-theme="light"] [class$="-page"],
html[data-theme="light"] [class$="-section"],
html[data-theme="light"] [class*="__section"],
html[data-theme="light"] .course-page,
html[data-theme="light"] .conference-page,
html[data-theme="light"] .seminar-detail-page,
html[data-theme="light"] .study-meeting-page,
html[data-theme="light"] .study-math-page,
html[data-theme="light"] .resources-page,
html[data-theme="light"] .education-page,
html[data-theme="light"] .publications-page {
  background-color: transparent !important;
}

html[data-theme="light"] :is(
  .hero, .about-hero, .awards-hero, .committee-hero, .conference-detail-hero,
  .conferences-hero, .course-detail-hero, .courses-catalog-hero, .education-hero,
  .inner-page-hero, .media-hero, .publications-hero, .research-hero,
  .resource-library-hero, .resources-hero, .seminar-detail-hero, .seminars-hero,
  .study-hub-hero, .study-meeting-hero, .supervision-hero
),
html[data-theme="light"] [class*="banner"],
html[data-theme="light"] [class*="masthead"] {
  background-color: #f4f1ff !important;
  background-image: radial-gradient(circle at 78% 20%, rgba(139, 92, 246, .15), transparent 34%), radial-gradient(circle at 12% 80%, rgba(34, 211, 238, .12), transparent 30%) !important;
}

/* Reusable panels, cards, lists and dialogs */
html[data-theme="light"] :is(
  [class*="card"], [class*="panel"], [class*="box"], [class*="tile"],
  [class*="item"], [class*="entry"], [class*="modal__content"],
  [class*="timeline-content"], [class*="resource-group"], [class*="filter"]
) {
  border-color: var(--line) !important;
}

html[data-theme="light"] :is(
  .course-card, .resource-card, .academic-hub-card, .publication-card,
  .conference-card, .seminar-card, .award-card, .committee-card,
  .education-card, .media-card, .supervision-card, .profile-card,
  .meeting-card, .detail-card, .content-card, .info-card,
  [class*="__card"], [class*="-panel"], [class*="__panel"],
  [class*="modal__content"], [class*="timeline-content"]
) {
  background: var(--surface) !important;
  color: var(--body-text) !important;
  box-shadow: var(--shadow) !important;
}

html[data-theme="light"] :is(
  h1, h2, h3, h4, h5, h6,
  [class*="title"], [class*="heading"], [class*="name"]
) { color: var(--heading) !important; }

html[data-theme="light"] :is(
  p, li, dd, [class*="description"], [class*="summary"], [class*="excerpt"],
  [class*="meta"], [class*="subtitle"], [class*="text"], [class*="content"]
) { border-color: var(--line); }

html[data-theme="light"] :is(
  input, select, textarea, .search-input, [class*="search"], [class*="filter-button"]
) {
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #94a3b8 !important; }

html[data-theme="light"] table,
html[data-theme="light"] thead,
html[data-theme="light"] tbody,
html[data-theme="light"] tr,
html[data-theme="light"] th,
html[data-theme="light"] td {
  background-color: #fff !important;
  color: #334155 !important;
  border-color: var(--line) !important;
}

html[data-theme="light"] :is(.modal, [class*="overlay"], .video-modal) {
  background-color: rgba(15, 23, 42, .62) !important;
}

html[data-theme="light"] :is(.tag, .badge, [class*="chip"], [class*="pill"]) {
  background-color: #eef2ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
}

/* Keep filled accent actions readable. */
html[data-theme="light"] :is(
  .btn-primary, .button-primary, [class*="primary-button"], [class*="cta"],
  [class*="download"], [class*="action"]
) { color: #fff; }

html[data-theme="light"] .site-footer {
  background: #eef1f7 !important;
  border-top-color: var(--line) !important;
  color: #475569 !important;
}

html[data-theme="light"] .site-footer a,
html[data-theme="light"] .site-footer strong { color: #1e293b !important; }

html[data-theme="light"] .preloader { background: #f8fafc !important; }
html[data-theme="light"] .ring-bg { stroke: rgba(30, 41, 59, .14); }
html[data-theme="light"] .ring-prog text { fill: #334155; }

/* High-contrast light palette: keep every home element readable and the 3D scene visible. */
html[data-theme="light"] body {
  --page-bg-gradient:
    radial-gradient(circle at 17% 16%, rgba(79, 70, 229, .12), transparent 31%),
    radial-gradient(circle at 82% 28%, rgba(219, 39, 119, .10), transparent 30%),
    linear-gradient(135deg, #fbfcff 0%, #f3f0ff 55%, #eef6ff 100%);
  background: var(--page-bg-gradient) !important;
}

html[data-theme="light"] .hero {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-theme="light"] .ann {
  background: linear-gradient(105deg, rgba(79,70,229,.13), rgba(219,39,119,.10)) !important;
  border-color: rgba(79,70,229,.28) !important;
  box-shadow: 0 12px 34px rgba(67,56,202,.09);
}

html[data-theme="light"] .ann-text { color: #27324a !important; }
html[data-theme="light"] .ann-date { color: #4338ca !important; }
html[data-theme="light"] .ann-badge { color: #fff !important; }

html[data-theme="light"] .hero-badge {
  color: #3730a3 !important;
  background: rgba(238,242,255,.92) !important;
  border-color: rgba(79,70,229,.34) !important;
  box-shadow: 0 8px 24px rgba(79,70,229,.10);
}

html[data-theme="light"] .hero-title { color: #111827 !important; text-shadow: 0 18px 55px rgba(79,70,229,.14); }
html[data-theme="light"] .hero-title .grad {
  background: linear-gradient(120deg, #4f46e5, #7c3aed, #db2777, #4f46e5) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] .type-line,
html[data-theme="light"] .panel-eq { color: #b45309 !important; }
html[data-theme="light"] .hero-quote { color: #3730a3 !important; }
html[data-theme="light"] .hero-sub { color: #526078 !important; }

html[data-theme="light"] .hero-stat {
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(79,70,229,.18) !important;
  box-shadow: 0 14px 35px rgba(30,41,59,.08) !important;
}
html[data-theme="light"] .stat-num {
  background: linear-gradient(135deg, #4338ca, #be185d) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] .stat-label { color: #526078 !important; }
html[data-theme="light"] .btn-outline {
  color: #3730a3 !important;
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(79,70,229,.45) !important;
}

html[data-theme="light"] .hero-3d-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(238,242,255,.25)) !important;
  border: 2px solid rgba(79,70,229,.32) !important;
  box-shadow: 0 0 100px rgba(124,58,237,.10) inset, 0 28px 75px rgba(30,41,59,.16) !important;
  backdrop-filter: none !important;
}
html[data-theme="light"] .panel-hint { color: #59657a !important; font-weight: 650; }
html[data-theme="light"] .marquee {
  background: rgba(255,255,255,.46) !important;
  border-color: rgba(79,70,229,.16) !important;
}
html[data-theme="light"] .marquee-track span { color: #4f46e5 !important; }

/* Desktop navigation must be part of the full-width header, not a white card. */
@media (min-width: 1701px) {
  html[data-theme="light"] .academic-header:not(.is-compact) .academic-navigation {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

html[data-theme="light"] .academic-header {
  background: rgba(255,255,255,.94) !important;
  border-top: 3px solid #6d4aff !important;
  border-bottom: 1px solid rgba(79,70,229,.14) !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 35px rgba(30,41,59,.10) !important;
}

html[data-theme="light"] .academic-header__inner { background: transparent !important; }
html[data-theme="light"] .academic-nav-link:hover { background: rgba(79,70,229,.08) !important; }
html[data-theme="light"] .nav-active-indicator {
  background: linear-gradient(145deg, rgba(79,70,229,.12), rgba(124,58,237,.06)) !important;
  border-color: rgba(109,74,255,.65) !important;
  box-shadow: 0 7px 22px rgba(79,70,229,.13), inset 0 -2px 0 #7c3aed !important;
}

html[data-theme="light"] .academic-social-link {
  background: #f4f1ff !important;
  border-color: #ddd6fe !important;
  color: #252b3b !important;
}
html[data-theme="light"] .academic-social-link:hover { background: #6d4aff !important; color: #fff !important; }

html[data-theme="light"] .skins {
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(79,70,229,.24) !important;
  box-shadow: 0 12px 34px rgba(30,41,59,.12);
}
html[data-theme="light"] .skin.active { border-color: #312e81 !important; box-shadow: 0 0 0 2px #fff; }

@media (prefers-reduced-motion: reduce) {
  body, .page, .academic-header, .site-footer, .theme-mode-toggle,
  .academic-dropdown__menu, .academic-navigation { transition: none !important; }
}

/* ========================================================================== 
   LIGHT MODE V3 — professional contrast system shared by every public page
   ========================================================================== */
html[data-theme="light"] {
  --light-canvas: #f7f8fc;
  --light-surface: #ffffff;
  --light-surface-muted: #f1f3f9;
  --light-title: #171528;
  --light-text: #3f4a60;
  --light-muted: #68748b;
  --light-accent: #5b3df5;
  --light-accent-dark: #4527c7;
  --light-accent-soft: #eeeaff;
  --light-cyan: #087f9c;
  --light-border: #dfe3ee;
  --light-shadow: 0 16px 44px rgba(37, 31, 78, .10);
}

html[data-theme="light"] body {
  background: #f7f8fc !important;
  color: var(--light-text) !important;
}

html[data-theme="light"] body::after { display: none !important; }
html[data-theme="light"] .page { background: transparent !important; }

/* Make the animated universe decorative, never dominant over content. */
html[data-theme="light"] #three {
  opacity: .58 !important;
  filter: saturate(.92) contrast(.92) !important;
}

html[data-theme="light"] main,
html[data-theme="light"] main :is(section, article, div) {
  border-color: var(--light-border);
}

html[data-theme="light"] main :is(h1,h2,h3,h4,h5,h6) {
  color: var(--light-title) !important;
}

html[data-theme="light"] main :is(p,li,dd) {
  color: var(--light-text);
}

html[data-theme="light"] main :is(
  [class*="lead"], [class*="intro"], [class*="summary"], [class*="description"],
  [class*="authors"], [class*="citation"], [class*="meta"], [class*="period"],
  [class*="date"], [class*="location"], [class*="role"], [class*="count"]
) {
  color: var(--light-muted) !important;
}

html[data-theme="light"] main :is(
  [class*="eyebrow"], [class*="kicker"], [class*="code"],
  [class*="index"], [class*="number"]
) {
  color: var(--light-accent) !important;
}

html[data-theme="light"] main a:not(.btn):not([class*="button"]):not([class*="action"]) {
  color: var(--light-accent-dark);
}

/* Consistent page heroes */
html[data-theme="light"] :is(
  .about-hero,.awards-hero,.committee-hero,.conference-detail-hero,.conferences-hero,
  .course-detail-hero,.courses-catalog-hero,.education-hero,.inner-page-hero,.media-hero,
  .publications-hero,.research-hero,.resource-library-hero,.resources-hero,.seminar-detail-hero,
  .seminars-hero,.study-hub-hero,.study-meeting-hero,.supervision-hero
) {
  background: linear-gradient(135deg, #fbfcff 0%, #f1efff 58%, #eef7fb 100%) !important;
  border-bottom: 1px solid #ddd8f7 !important;
}

html[data-theme="light"] :is(
  .about-hero,.awards-hero,.committee-hero,.conference-detail-hero,.conferences-hero,
  .course-detail-hero,.courses-catalog-hero,.education-hero,.inner-page-hero,.media-hero,
  .publications-hero,.research-hero,.resource-library-hero,.resources-hero,.seminar-detail-hero,
  .seminars-hero,.study-hub-hero,.study-meeting-hero,.supervision-hero
) p { color: #536078 !important; }

/* Cards, panels, timelines and content blocks */
html[data-theme="light"] main :is(
  .course-card,.related-course-card,.publication-card,.research-card,.research-center-card,
  .research-list-card,.research-project,.research-visit,.conference-card,.conference-index-card,
  .conference-featured-card,.conference-activity-card,.seminar-card,.seminar-related-card,
  .award-card,.committee-card,.education-card,.media-card,.supervision-card,.study-course-card,
  .study-meeting-card,.resource-item-card,.resource-card--page,.youtube-video-card,.certificate-card,
  .about-contact-card,.about-files-card,.academic-content-panel,.course-content-panel,
  .course-overview-panel,.conference-detail-section--panel,.seminar-layout-panel
) {
  background: var(--light-surface) !important;
  color: var(--light-text) !important;
  border: 1px solid var(--light-border) !important;
  box-shadow: var(--light-shadow) !important;
}

html[data-theme="light"] main :is(
  .course-card,.related-course-card,.publication-card,.research-card,.research-center-card,
  .research-list-card,.conference-card,.conference-index-card,.conference-featured-card,
  .conference-activity-card,.seminar-card,.seminar-related-card,.award-card,.committee-card,
  .education-card,.media-card,.supervision-card,.study-course-card,.study-meeting-card,
  .resource-item-card,.resource-card--page,.youtube-video-card,.certificate-card
):hover {
  border-color: #b8aafc !important;
  box-shadow: 0 22px 58px rgba(55, 43, 126, .15) !important;
}

/* Toolbars, searches, jump navigation and sticky filters */
html[data-theme="light"] :is(
  .publications-toolbar,.conference-toolbar,.seminars-toolbar,.resource-library-toolbar,
  .courses-filter-bar,.conference-filters,.seminar-filters,.committee-nav,.education-nav,
  .supervision-nav,.research-jump,.conference-detail-nav,.seminar-detail-nav,.course-section-nav
) {
  background: rgba(255,255,255,.96) !important;
  color: var(--light-text) !important;
  border: 1px solid var(--light-border) !important;
  box-shadow: 0 12px 34px rgba(37,31,78,.10) !important;
  backdrop-filter: blur(18px) !important;
}

html[data-theme="light"] main :is(input,select,textarea) {
  background: #fff !important;
  color: #252238 !important;
  border-color: #cfd5e3 !important;
}
html[data-theme="light"] main :is(input,textarea)::placeholder { color: #7c879d !important; opacity: 1; }

/* Header and menus */
html[data-theme="light"] .academic-header,
html[data-theme="light"] .academic-header.is-compact {
  background: rgba(255,255,255,.97) !important;
  border-top-color: #6847f5 !important;
  border-bottom-color: #e1e4ec !important;
  box-shadow: 0 8px 28px rgba(35,31,64,.10) !important;
}

html[data-theme="light"] .academic-nav-link { color: #29263a !important; }
html[data-theme="light"] .academic-nav-link:hover,
html[data-theme="light"] .academic-nav-link.is-active { color: #3e26bd !important; }

html[data-theme="light"] .academic-header.is-compact .academic-navigation,
html[data-theme="light"] .academic-navigation.is-open {
  background: rgba(255,255,255,.99) !important;
  border-color: #ddd8f7 !important;
  box-shadow: 0 24px 60px rgba(35,31,64,.16) !important;
}
html[data-theme="light"] .academic-header.is-compact .academic-nav-link.is-active {
  color: #fff !important;
  background: linear-gradient(90deg,#5b3df5,#7c3aed) !important;
}
html[data-theme="light"] .academic-dropdown__menu a:hover,
html[data-theme="light"] .academic-dropdown__menu a.is-active {
  color: #fff !important;
  background: #5b3df5 !important;
}

/* Home page */
html[data-theme="light"] .hero { background: linear-gradient(135deg,#fafbff 0%,#f1efff 60%,#eef8fc 100%) !important; }
html[data-theme="light"] .hero-copy {
  padding: 24px;
  border-radius: 26px;
  background: rgba(250,251,255,.76);
  box-shadow: 0 18px 55px rgba(44,35,92,.08);
  backdrop-filter: blur(4px);
}
html[data-theme="light"] .hero-3d-panel {
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(91,61,245,.28) !important;
  box-shadow: 0 20px 60px rgba(44,35,92,.12) !important;
}
html[data-theme="light"] .motivation-quote { color: #242036 !important; }
html[data-theme="light"] .motivation-by { color: #657087 !important; }
html[data-theme="light"] .section-sub { color: #657087 !important; }
html[data-theme="light"] .academic-hub-card__description { color: #5e697f !important; }
html[data-theme="light"] .academic-hub-card__footer { color: #4931cc !important; }
html[data-theme="light"] .home-resources-cta,
html[data-theme="light"] .courses-cta {
  color: #fff !important;
  background: linear-gradient(135deg,#5b3df5,#7c3aed) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 26px rgba(91,61,245,.24) !important;
}

/* Publications — every weak element gets an explicit accessible color. */
html[data-theme="light"] .publications-page { color: var(--light-text) !important; }
html[data-theme="light"] .publications-eyebrow {
  color: #5135d5 !important;
  background: #f0edff !important;
  border-color: #a999fa !important;
}
html[data-theme="light"] .publications-hero p { color: #536078 !important; }
html[data-theme="light"] .publications-stats span {
  color: #59657a !important;
  background: #fff !important;
  border-color: #d8dce8 !important;
  box-shadow: 0 8px 22px rgba(37,31,78,.07);
}
html[data-theme="light"] .publications-stats strong { color: #3d2ab2 !important; }
html[data-theme="light"] .publication-search { background: #f8f9fd !important; border-color: #cfd5e3 !important; }
html[data-theme="light"] .publication-search span { color: #5b3df5 !important; }
html[data-theme="light"] .publication-filters button {
  color: #4e596e !important;
  background: #f6f7fb !important;
  border-color: #d9ddea !important;
}
html[data-theme="light"] .publication-filters button:hover,
html[data-theme="light"] .publication-filters button.is-active {
  color: #fff !important;
  background: #5b3df5 !important;
  border-color: #5b3df5 !important;
}
html[data-theme="light"] .publication-section { border-bottom-color: #dfe3ee !important; }
html[data-theme="light"] .publication-section__header > span { color: #5b3df5 !important; }
html[data-theme="light"] .publication-section__header p { color: #657087 !important; }
html[data-theme="light"] .publication-card { background: #fff !important; }
html[data-theme="light"] .publication-card__meta span {
  color: #5135d5 !important;
  background: #eeeaff !important;
}
html[data-theme="light"] .publication-authors { color: #58657b !important; font-weight: 600; }
html[data-theme="light"] .publication-citation { color: #66738a !important; }
html[data-theme="light"] .publication-citation strong { color: #087f9c !important; }
html[data-theme="light"] .publication-details { color: #465268 !important; }
html[data-theme="light"] .publication-details summary { color: #573cd5 !important; }
html[data-theme="light"] .publication-actions a,
html[data-theme="light"] .publication-actions button {
  color: #4931cc !important;
  background: #f0edff !important;
  border-color: #c7bbff !important;
}
html[data-theme="light"] .publication-actions a:hover,
html[data-theme="light"] .publication-actions button:hover {
  color: #fff !important;
  background: #5b3df5 !important;
  border-color: #5b3df5 !important;
}

/* Footer */
html[data-theme="light"] .site-footer {
  background: #eceff6 !important;
  border-top: 1px solid #d6dbe7 !important;
}
html[data-theme="light"] .site-footer__copyright-text,
html[data-theme="light"] .site-footer__credit-text {
  color: #566176 !important;
}

/* ========================================================================== 
   HOME LIGHT MODE — high-contrast editorial layout + visible 3D universe
   ========================================================================== */
html[data-theme="light"] body.page-home {
  --home-canvas: #f5f4ff;
  --home-surface: rgba(255,255,255,.90);
  --home-ink: #12152a;
  --home-copy: #4b5871;
  --home-purple: #5536e8;
  --home-cyan: #087f9c;
  background: linear-gradient(135deg,#fafbff 0%,#f3f1ff 48%,#eef7fb 100%) !important;
}

html[data-theme="light"] body.page-home #three {
  opacity: .88 !important;
  filter: saturate(1.24) contrast(1.08) !important;
}

html[data-theme="light"] body.page-home .ann {
  color: var(--home-ink) !important;
  background: linear-gradient(105deg,rgba(238,242,255,.96),rgba(253,242,248,.94)) !important;
  border-color: #c5b9ff !important;
  box-shadow: 0 10px 30px rgba(58,45,122,.10) !important;
}

html[data-theme="light"] body.page-home .hero {
  min-height: calc(100vh - 110px);
  background: linear-gradient(105deg,rgba(249,250,255,.78),rgba(244,241,255,.56) 52%,rgba(238,248,252,.42)) !important;
}

html[data-theme="light"] body.page-home .hero-inner {
  align-items: stretch;
}

html[data-theme="light"] body.page-home .hero-copy {
  align-self: center;
  padding: clamp(26px,3vw,46px) !important;
  border: 1px solid rgba(125,109,211,.20) !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,247,255,.82)) !important;
  box-shadow: 0 26px 70px rgba(47,38,92,.12) !important;
  backdrop-filter: blur(14px) !important;
}

html[data-theme="light"] body.page-home .hero-title {
  color: var(--home-ink) !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.page-home .hero-quote { color: #32269b !important; }
html[data-theme="light"] body.page-home .hero-sub { color: var(--home-copy) !important; }
html[data-theme="light"] body.page-home .type-line { color: #087f9c !important; }
html[data-theme="light"] body.page-home .type-caret { background: #06b6d4 !important; }

html[data-theme="light"] body.page-home .hero-stat {
  background: #fff !important;
  border-color: #ddd8f5 !important;
  box-shadow: 0 12px 28px rgba(48,39,92,.09) !important;
}

html[data-theme="light"] body.page-home .hero-visual {
  position: relative;
  min-height: 540px;
}

html[data-theme="light"] body.page-home .hero-3d-panel {
  width: min(100%,540px) !important;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 42%,rgba(255,255,255,.04) 0 24%,rgba(255,255,255,.22) 64%,rgba(243,240,255,.70) 100%) !important;
  border: 2px solid rgba(85,54,232,.42) !important;
  box-shadow: 0 30px 80px rgba(58,45,122,.17),inset 0 0 80px rgba(124,58,237,.07) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body.page-home .hero-3d-panel::before {
  content: "INTERACTIVE 3D";
  position: absolute;
  top: 22px;
  left: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(85,54,232,.28);
  border-radius: 999px;
  color: #4d32cb;
  background: rgba(255,255,255,.78);
  font: 800 10px/1 'JetBrains Mono',monospace;
  letter-spacing: 1.4px;
}

html[data-theme="light"] body.page-home .panel-eq { color: #c2410c !important; }
html[data-theme="light"] body.page-home .panel-hint { color: #4d5870 !important; }

html[data-theme="light"] body.page-home .marquee {
  background: rgba(255,255,255,.78) !important;
  border-color: #dcd7f2 !important;
  box-shadow: 0 10px 30px rgba(47,38,92,.06) !important;
}

html[data-theme="light"] body.page-home :is(.academic-areas,.courses-section,.video-section,#resources) {
  margin: 28px auto;
  width: min(1840px,calc(100% - 40px));
  border: 1px solid rgba(91,61,245,.12) !important;
  border-radius: 34px;
  background: linear-gradient(145deg,rgba(255,255,255,.78),rgba(247,246,255,.72)) !important;
  box-shadow: 0 24px 70px rgba(41,34,81,.07);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] body.page-home .section-title { color: var(--home-ink) !important; }
html[data-theme="light"] body.page-home .section-label { color: #633ee8 !important; }
html[data-theme="light"] body.page-home .section-sub { color: #59667d !important; }

html[data-theme="light"] body.page-home .academic-hub-card {
  color: var(--home-ink) !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.97),rgba(244,242,255,.94)),
    var(--card-cover) center/cover no-repeat !important;
  border-color: #ded9f1 !important;
  box-shadow: 0 16px 38px rgba(46,38,90,.09) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body.page-home .academic-hub-card__overlay {
  background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(238,235,255,.28)) !important;
}

html[data-theme="light"] body.page-home .academic-hub-card__icon {
  color: #fff !important;
  background: linear-gradient(135deg,#5536e8,#8b5cf6) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(85,54,232,.24);
}

html[data-theme="light"] body.page-home .academic-hub-card__counter {
  color: #4930c1 !important;
  background: #eeeaff !important;
  border-color: #cfc5ff !important;
}

html[data-theme="light"] body.page-home .academic-hub-card__body strong { color: #171528 !important; }
html[data-theme="light"] body.page-home .academic-hub-card__body small { color: #59667c !important; }
html[data-theme="light"] body.page-home .academic-hub-card__featured {
  color: #4f5870 !important;
  background: #f2efff !important;
}
html[data-theme="light"] body.page-home .academic-hub-card__footer { color: #4c31c9 !important; }

html[data-theme="light"] body.page-home .course-card {
  min-height: 455px !important;
  color: var(--home-ink) !important;
  background: rgba(255,255,255,.96) !important;
  border-color: #dddfea !important;
  box-shadow: 0 18px 45px rgba(40,34,76,.10) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body.page-home .course-card__media { height: 245px; }
html[data-theme="light"] body.page-home .course-card__media img { filter: brightness(.82) saturate(.96) contrast(1.04); }
html[data-theme="light"] body.page-home .course-card:hover .course-card__media img { filter: brightness(.94) saturate(1.08); }
html[data-theme="light"] body.page-home .course-card h3 { color: #171528 !important; }
html[data-theme="light"] body.page-home .course-card p { color: #5d687d !important; }
html[data-theme="light"] body.page-home .course-card__credits { color: #68748a !important; }
html[data-theme="light"] body.page-home .course-card__meta span {
  color: #536079 !important;
  background: #f4f3fb !important;
  border-color: #ddd9ed !important;
}
html[data-theme="light"] body.page-home .course-card__action { color: #4830c4 !important; }
html[data-theme="light"] body.page-home .courses-view-all {
  color: #fff !important;
  background: linear-gradient(135deg,#5536e8,#7c3aed) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(85,54,232,.25) !important;
}

html[data-theme="light"] body.page-home .video-grid {
  padding: 18px;
  border: 1px solid #ded9f1;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 44px rgba(43,35,82,.09);
}
html[data-theme="light"] body.page-home .video-thumb {
  border-color: #d3cafa !important;
  box-shadow: 0 12px 30px rgba(45,37,87,.13);
}
html[data-theme="light"] body.page-home .video-thumb img { filter: brightness(.72) saturate(1.04); }
html[data-theme="light"] body.page-home .video-thumb:hover img { filter: brightness(.86) saturate(1.12); }
html[data-theme="light"] body.page-home .video-title { color: #fff !important; }
html[data-theme="light"] body.page-home .video-meta { color: #dbeafe !important; }

html[data-theme="light"] body.page-home .motivation {
  margin-top: 38px;
  margin-bottom: 38px;
  border: 1px solid #ddd7f5;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 45px rgba(45,37,87,.08);
}

html[data-theme="light"] body.page-home .resource-card {
  position: relative;
  overflow: hidden;
  color: var(--home-ink) !important;
  background: linear-gradient(150deg,#fff,#f4f1ff) !important;
  border-color: #dcd6f3 !important;
  box-shadow: 0 15px 34px rgba(43,35,82,.09) !important;
  backdrop-filter: none !important;
}
html[data-theme="light"] body.page-home .resource-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#5536e8,#06b6d4,#ec4899);
}
html[data-theme="light"] body.page-home .res-ic {
  background: linear-gradient(135deg,#ebe7ff,#dff8fb) !important;
  border-color: #c9bfff !important;
}
html[data-theme="light"] body.page-home .res-ic svg { stroke: #4f32d0 !important; }
html[data-theme="light"] body.page-home .resource-title { color: #171528 !important; }
html[data-theme="light"] body.page-home .resource-desc { color: #5b677d !important; }

@media (max-width: 900px) {
  html[data-theme="light"] body.page-home .hero-visual { min-height: 400px; }
  html[data-theme="light"] body.page-home .hero-3d-panel { width: min(100%,420px) !important; }
  html[data-theme="light"] body.page-home :is(.academic-areas,.courses-section,.video-section,#resources) {
    width: min(100% - 20px,1840px);
    border-radius: 24px;
  }
}

/* Keep controls clear on touch/laptop layouts. */
@media (max-width: 1900px) {
  html[data-theme="light"] .academic-header.is-compact .academic-navigation {
    background: #fff !important;
    border-color: #ddd8f7 !important;
  }
}

@media (max-width: 900px) {
  html[data-theme="light"] #three { opacity: .34 !important; }
  html[data-theme="light"] .hero-copy { padding: 18px; }
}

/* ========================================================================== 
   RESEARCH LIGHT MODE — one continuous canvas, white content cards only
   ========================================================================== */
html[data-theme="light"] .research-page,
html[data-theme="light"] .research-hero,
html[data-theme="light"] .research-content,
html[data-theme="light"] .research-section {
  background: #f5f6fb !important;
  background-image: none !important;
}

html[data-theme="light"] .research-page {
  color: #344057 !important;
}

html[data-theme="light"] .research-hero {
  border-bottom: 1px solid #dfe3ee !important;
}

html[data-theme="light"] .research-hero .research-container,
html[data-theme="light"] .research-content.research-container,
html[data-theme="light"] .research-section,
html[data-theme="light"] .research-section__heading,
html[data-theme="light"] .research-interest-grid,
html[data-theme="light"] .research-center-grid,
html[data-theme="light"] .research-timeline,
html[data-theme="light"] .research-id-grid,
html[data-theme="light"] .research-two-columns,
html[data-theme="light"] .research-projects,
html[data-theme="light"] .research-books {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .research-kicker {
  color: #4b32c3 !important;
  background: #ebe8ff !important;
  border-color: #bcb1f7 !important;
}

html[data-theme="light"] .research-hero h1,
html[data-theme="light"] .research-section__heading h2,
html[data-theme="light"] .research-subheading {
  color: #111827 !important;
}

html[data-theme="light"] .research-hero p,
html[data-theme="light"] .research-section__heading p {
  color: #536078 !important;
}

html[data-theme="light"] .research-section {
  border-bottom: 1px solid #d9deea !important;
}

html[data-theme="light"] .research-section__heading > span {
  color: #5b3df5 !important;
}

/* The sticky section menu is the only white horizontal strip. */
html[data-theme="light"] .research-jump {
  background: rgba(255,255,255,.97) !important;
  border-top: 0 !important;
  border-bottom: 1px solid #dfe3ee !important;
  box-shadow: 0 8px 24px rgba(37,31,78,.07) !important;
}

html[data-theme="light"] .research-jump a {
  color: #4b556b !important;
  background: transparent !important;
}

html[data-theme="light"] .research-jump a:hover,
html[data-theme="light"] .research-jump a.is-active {
  color: #4527c7 !important;
  background: #ece9ff !important;
}

/* White cards on the shared page canvas. */
html[data-theme="light"] :is(
  .research-card,.research-center-card,.research-visit__body,.research-id-card,
  .research-list-card,.research-journal-list a,.research-journal-item,
  .research-project,.research-book
) {
  background: #ffffff !important;
  background-image: none !important;
  color: #344057 !important;
  border: 1px solid #d8deea !important;
  box-shadow: 0 12px 34px rgba(37,31,78,.08) !important;
}

html[data-theme="light"] :is(
  .research-card,.research-center-card,.research-visit__body,.research-id-card,
  .research-list-card,.research-journal-list a,.research-project,.research-book
):hover {
  border-color: #b9aff0 !important;
  box-shadow: 0 18px 42px rgba(60,45,137,.13) !important;
}

html[data-theme="light"] :is(
  .research-card h3,.research-center-card h3,.research-visit h3,.research-project h3,
  .research-book h3,.research-list-card strong,.research-id-card strong
) {
  color: #151827 !important;
}

html[data-theme="light"] :is(
  .research-card p,.research-center-card p,.research-project p,.research-book__body p,
  .research-rich
) {
  color: #46536a !important;
}

html[data-theme="light"] .research-meta {
  color: #5e6b82 !important;
  font-weight: 600;
}

html[data-theme="light"] .research-visit__date {
  color: #4931cc !important;
}

html[data-theme="light"] .research-visit__date small {
  color: #647087 !important;
}

html[data-theme="light"] .research-timeline::before {
  background: linear-gradient(#6d4aff,rgba(109,74,255,.12)) !important;
}

html[data-theme="light"] .research-visit::before {
  background: #6d4aff !important;
  box-shadow: 0 0 0 5px #ebe8ff,0 6px 16px rgba(91,61,245,.22) !important;
}

html[data-theme="light"] .research-chip,
html[data-theme="light"] .research-project__meta span,
html[data-theme="light"] .research-book__facts span {
  color: #4931cc !important;
  background: #eeebff !important;
  border: 1px solid #ddd7ff !important;
  font-weight: 700;
}

/* Profiles */
html[data-theme="light"] .research-id-card > span {
  color: #ffffff !important;
  background: linear-gradient(135deg,#5b3df5,#7c3aed) !important;
  box-shadow: 0 7px 18px rgba(91,61,245,.22);
}

html[data-theme="light"] .research-id-card small {
  color: #67738a !important;
}

html[data-theme="light"] .research-id-card strong {
  margin-top: 5px;
  font-weight: 800;
}

/* Editorial and referee lists */
html[data-theme="light"] .research-subheading {
  font-weight: 800;
}

html[data-theme="light"] .research-list-card span {
  color: #087f9c !important;
  font-weight: 650;
}

html[data-theme="light"] .research-list-card a,
html[data-theme="light"] .research-journal-list a,
html[data-theme="light"] .research-journal-name {
  color: #263249 !important;
}

html[data-theme="light"] .research-journal-list a,
html[data-theme="light"] .research-journal-item {
  min-height: 54px;
  padding: 14px 17px !important;
}

html[data-theme="light"] .research-journal-list a > span:last-child {
  color: #5b3df5 !important;
  font-weight: 900;
}

html[data-theme="light"] .research-journal-list a:hover {
  color: #4527c7 !important;
  background: #f2f0ff !important;
}

/* Remove the remaining outer white layers. Only the real content cards stay white. */
html[data-theme="light"] main .research-visit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .research-two-columns > div,
html[data-theme="light"] .research-subheading {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .research-subheading {
  padding: 0 !important;
  color: #111827 !important;
}

/* Calm, professional link buttons. */
html[data-theme="light"] .research-action,
html[data-theme="light"] .research-center-card a,
html[data-theme="light"] .research-links a,
html[data-theme="light"] .research-book a {
  color: #4931cc !important;
  text-decoration: none !important;
}

html[data-theme="light"] .research-links--buttons {
  gap: 9px !important;
}

html[data-theme="light"] .research-links--buttons a,
html[data-theme="light"] .research-book__body .research-action {
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 13px !important;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d3ed !important;
  border-radius: 10px !important;
  background: #f7f6fb !important;
  color: #4931cc !important;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none !important;
}

html[data-theme="light"] .research-links--buttons a:hover,
html[data-theme="light"] .research-book__body .research-action:hover {
  color: #ffffff !important;
  background: #5638dc !important;
  border-color: #5638dc !important;
}

/* Books */
html[data-theme="light"] .research-book {
  overflow: hidden;
}

html[data-theme="light"] .research-book__body {
  background: #ffffff !important;
}

html[data-theme="light"] .research-book__body p:first-of-type {
  color: #39465d !important;
  font-weight: 600;
}

html[data-theme="light"] .research-book__placeholder {
  color: #ffffff !important;
  background: linear-gradient(145deg,#5540c7,#262044) !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] .research-hero,
  html[data-theme="light"] .research-content,
  html[data-theme="light"] .research-section { background: #f5f6fb !important; }
}

/* ========================================================================== 
   CONFERENCES LIGHT MODE — high contrast, page-specific colour system
   ========================================================================== */
html[data-theme="light"] .conferences-page,
html[data-theme="light"] .conference-featured-pages,
html[data-theme="light"] .conference-activities-section {
  --conference-ink: #111827;
  --conference-body: #46536a;
  --conference-purple: #5737d6;
  --conference-pink: #c92483;
  --conference-cyan: #087f9c;
  --conference-line: #d8deea;
  background: #f5f6fb !important;
  color: var(--conference-ink) !important;
}

html[data-theme="light"] .conferences-hero {
  background: #f5f6fb !important;
  background-image: none !important;
  border-bottom-color: #dfe3ee !important;
}

html[data-theme="light"] .conferences-eyebrow {
  color: #5b3df5 !important;
  background: #ffffff !important;
  border-color: #ee65b9 !important;
}

html[data-theme="light"] .conferences-hero h1,
html[data-theme="light"] .conference-section-heading h2,
html[data-theme="light"] .conference-activity-card h3 {
  color: var(--conference-ink) !important;
}

html[data-theme="light"] .conferences-hero > div > p,
html[data-theme="light"] .conference-section-heading p {
  color: #536078 !important;
}

/* Each statistic has its own strong, accessible accent. */
html[data-theme="light"] .conferences-stats div {
  min-width: 142px;
  padding: 13px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 22px rgba(30, 41, 59, .08) !important;
}

html[data-theme="light"] .conferences-stats div:nth-child(1) {
  background: #eeeaff !important;
  border-color: #cec4ff !important;
}

html[data-theme="light"] .conferences-stats div:nth-child(2) {
  background: #e7f8fb !important;
  border-color: #b9e8ef !important;
}

html[data-theme="light"] .conferences-stats div:nth-child(3) {
  background: #fff0f7 !important;
  border-color: #f4c5dd !important;
}

html[data-theme="light"] .conferences-stats strong {
  color: #4b32c3 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .conferences-stats div:nth-child(2) strong { color: #087f9c !important; }
html[data-theme="light"] .conferences-stats div:nth-child(3) strong { color: #b42373 !important; }

html[data-theme="light"] .conferences-stats span {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #354158 !important;
  font-weight: 750 !important;
}

/* A true light-mode search and filter browser. */
html[data-theme="light"] .conference-browser {
  padding: 12px !important;
  border: 1px solid #d7ddea !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .10) !important;
}

html[data-theme="light"] .conference-search {
  border: 1px solid #cfd6e4 !important;
  background: #f8f9fc !important;
  box-shadow: none !important;
}

html[data-theme="light"] .conference-search span {
  color: var(--conference-purple) !important;
}

html[data-theme="light"] .conference-search input {
  background: transparent !important;
  color: #182033 !important;
}

html[data-theme="light"] .conference-search input::placeholder {
  color: #68758c !important;
  opacity: 1 !important;
}

html[data-theme="light"] .conference-filters {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-color: #be2b88 #ece9f5 !important;
}

html[data-theme="light"] .conference-filters button {
  min-height: 48px;
  padding: 0 17px !important;
  border: 1px solid #d6dbe7 !important;
  background: #f7f7fb !important;
  color: #3e495f !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .conference-filters button:hover {
  border-color: #afa2f3 !important;
  background: #efecff !important;
  color: #4527c7 !important;
}

html[data-theme="light"] .conference-filters button.is-active {
  border-color: #5b3df5 !important;
  background: #5b3df5 !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(91, 61, 245, .20) !important;
}

html[data-theme="light"] .conference-filters::-webkit-scrollbar-track {
  background: #ece9f5 !important;
}

html[data-theme="light"] .conference-filters::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6847e7, #c92483) !important;
}

/* Activity card readability. */
html[data-theme="light"] .conference-activity-card {
  border-color: var(--conference-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 16px 42px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .conference-category-badge {
  background: #dff5f8 !important;
  color: #08758e !important;
  border: 1px solid #aee3ea !important;
  font-weight: 850 !important;
}

html[data-theme="light"] .conference-badges span:not(.conference-category-badge) {
  background: #eeeaff !important;
  color: #4b32c3 !important;
  border: 1px solid #d5cdff !important;
}

html[data-theme="light"] .conference-year {
  color: #6847e7 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .conference-role,
html[data-theme="light"] .conference-event-meta,
html[data-theme="light"] .conference-summary {
  color: var(--conference-body) !important;
}

html[data-theme="light"] .conference-role strong {
  color: #087f9c !important;
}

html[data-theme="light"] .conference-actions a,
html[data-theme="light"] .conference-actions button {
  border-color: #b9aff0 !important;
  background: #f7f5ff !important;
  color: #4931cc !important;
}

html[data-theme="light"] .conference-actions a:hover,
html[data-theme="light"] .conference-actions button:hover {
  border-color: #5737d6 !important;
  background: #5737d6 !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] .conference-browser {
    padding: 10px !important;
  }

  html[data-theme="light"] .conferences-stats div {
    min-width: 0;
  }
}

/* ========================================================================== 
   CONFERENCE DETAIL LIGHT MODE — SDEW and all dynamic event pages
   ========================================================================== */
html[data-theme="light"] .conference-detail-page {
  --detail-ink: #111827;
  --detail-body: #46536a;
  --detail-muted: #617087;
  --detail-purple: #5737d6;
  --detail-cyan: #087f9c;
  --detail-pink: #bd287d;
  --detail-line: #d8deea;
  background: #f5f6fb !important;
  color: var(--detail-ink) !important;
}

html[data-theme="light"] .conference-detail-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(8, 127, 156, .10), transparent 28%),
    radial-gradient(circle at 15% 86%, rgba(87, 55, 214, .10), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom: 1px solid #d9deea !important;
}

/* The generic light-mode overlay rule previously placed a dark sheet over this hero. */
html[data-theme="light"] .conference-detail-overlay {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}

html[data-theme="light"] .conference-detail-back {
  color: #4931cc !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .conference-detail-back:hover {
  color: #28158f !important;
}

html[data-theme="light"] .conference-detail-eyebrow {
  color: #5737d6 !important;
  background: #ffffff !important;
  border-color: #bcaef7 !important;
  box-shadow: 0 6px 16px rgba(73, 49, 204, .08) !important;
}

html[data-theme="light"] .conference-detail-hero h1 {
  color: var(--detail-ink) !important;
  text-wrap: balance;
}

html[data-theme="light"] .conference-detail-meta span {
  color: #354158 !important;
  background: #ffffff !important;
  border-color: #cfd6e4 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(37, 31, 78, .06) !important;
}

html[data-theme="light"] .conference-detail-meta span:first-child {
  color: #4931cc !important;
  background: #eeeaff !important;
  border-color: #cec4ff !important;
}

html[data-theme="light"] .conference-detail-intro,
html[data-theme="light"] .conference-detail-intro p {
  color: var(--detail-body) !important;
}

html[data-theme="light"] .conference-detail-actions {
  gap: 10px !important;
}

html[data-theme="light"] .conference-detail-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px !important;
  border: 1px solid #b9aff0 !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  color: #4931cc !important;
  box-shadow: 0 7px 18px rgba(55, 43, 126, .07) !important;
}

html[data-theme="light"] .conference-detail-actions a:hover {
  transform: translateY(-2px);
  border-color: #5737d6 !important;
  background: #5737d6 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(87, 55, 214, .20) !important;
}

html[data-theme="light"] .conference-detail-hero__media {
  padding: 7px;
  border: 1px solid #c9d1df !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 58px rgba(37, 31, 78, .15) !important;
}

html[data-theme="light"] .conference-detail-hero__media img {
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 21px;
}

/* Sticky section navigation. */
html[data-theme="light"] .conference-detail-nav {
  background: rgba(255, 255, 255, .96) !important;
  border: 0 !important;
  border-bottom: 1px solid #d9deea !important;
  box-shadow: 0 10px 30px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .conference-detail-nav a {
  color: #455168 !important;
}

html[data-theme="light"] .conference-detail-nav a:hover {
  color: #4527c7 !important;
  background: #ece9ff !important;
}

html[data-theme="light"] .conference-detail-content {
  background: transparent !important;
}

html[data-theme="light"] :is(
  .conference-detail-section,
  .conference-detail-gallery-section,
  .conference-detail-files-section
) {
  background: transparent !important;
  border-bottom-color: var(--detail-line) !important;
}

html[data-theme="light"] .conference-detail-section__number {
  color: var(--detail-purple) !important;
}

html[data-theme="light"] :is(
  .conference-detail-section h2,
  .conference-detail-gallery-section h2,
  .conference-detail-files-section h2
) {
  color: var(--detail-ink) !important;
}

html[data-theme="light"] .conference-detail-section__body,
html[data-theme="light"] .conference-detail-section__body :is(p, li) {
  color: var(--detail-body) !important;
}

html[data-theme="light"] .conference-detail-section__body a {
  color: #087f9c !important;
  font-weight: 750 !important;
}

html[data-theme="light"] :is(
  .conference-detail-section--panel,
  .conference-detail-section--cards,
  .conference-detail-section--highlights
) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] :is(
  .conference-detail-section--panel .conference-detail-section__main,
  .conference-detail-section--cards .conference-detail-section__main,
  .conference-detail-section--highlights .conference-detail-section__main
) {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid var(--detail-line) !important;
  box-shadow: 0 14px 38px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .conference-detail-section--highlights .conference-detail-section__main {
  border-left: 4px solid var(--detail-pink) !important;
}

html[data-theme="light"] .conference-detail-gallery button {
  border-color: #cfd6e4 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(37, 31, 78, .10) !important;
}

html[data-theme="light"] .conference-detail-files a {
  color: #253047 !important;
  background: #ffffff !important;
  border-color: #d2d9e6 !important;
  box-shadow: 0 8px 22px rgba(37, 31, 78, .07) !important;
}

html[data-theme="light"] .conference-detail-files a span {
  color: var(--detail-purple) !important;
}

html[data-theme="light"] .conference-detail-files a:hover {
  color: #4527c7 !important;
  border-color: #a99af1 !important;
  background: #f2f0ff !important;
}

html[data-theme="light"] .conference-detail-empty h1 {
  color: var(--detail-ink) !important;
}

html[data-theme="light"] .conference-detail-empty a {
  color: var(--detail-purple) !important;
}

@media (max-width: 620px) {
  html[data-theme="light"] .conference-detail-hero {
    padding-top: 105px !important;
  }

  html[data-theme="light"] .conference-detail-hero__media {
    border-radius: 22px !important;
  }
}

/* ========================================================================== 
   SUPERVISING STUDENTS LIGHT MODE — clear academic hierarchy and contrast
   ========================================================================== */
html[data-theme="light"] .supervision-hero,
html[data-theme="light"] .supervision-main,
html[data-theme="light"] .supervision-section {
  --supervision-ink: #111827;
  --supervision-body: #46536a;
  --supervision-purple: #5737d6;
  --supervision-purple-dark: #3f23b1;
  --supervision-cyan: #087f9c;
  --supervision-line: #d8deea;
  background-color: #f5f6fb !important;
  color: var(--supervision-ink) !important;
}

html[data-theme="light"] .supervision-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(8, 127, 156, .09), transparent 28%),
    radial-gradient(circle at 16% 82%, rgba(87, 55, 214, .11), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .supervision-eyebrow {
  color: #4b32c3 !important;
  background: #ffffff !important;
  border-color: #a996f5 !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .supervision-hero h1,
html[data-theme="light"] .supervision-section h2,
html[data-theme="light"] .entry-content h3 {
  color: var(--supervision-ink) !important;
}

html[data-theme="light"] .supervision-hero p {
  color: #4e5c73 !important;
  font-weight: 520 !important;
}

/* Strong statistic cards instead of faint outlined pills. */
html[data-theme="light"] .supervision-stats {
  gap: 12px !important;
}

html[data-theme="light"] .supervision-stats > span {
  min-width: 140px;
  padding: 13px 18px !important;
  border-radius: 14px !important;
  color: #354158 !important;
  font-weight: 750 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .supervision-stats > span:nth-child(1) {
  background: #eeeaff !important;
  border-color: #cfc5ff !important;
}

html[data-theme="light"] .supervision-stats > span:nth-child(2) {
  background: #e4f7fa !important;
  border-color: #b6e6ed !important;
}

html[data-theme="light"] .supervision-stats > span strong {
  color: var(--supervision-purple-dark) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .supervision-stats > span:nth-child(2) strong {
  color: var(--supervision-cyan) !important;
}

/* Sticky section navigation. */
html[data-theme="light"] .supervision-nav {
  background: rgba(255, 255, 255, .97) !important;
  border: 0 !important;
  border-bottom: 1px solid #d9deea !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .supervision-nav a {
  border-color: #d2d8e5 !important;
  background: #f7f8fb !important;
  color: #3f4b62 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .supervision-nav a:nth-child(1) {
  border-color: #b9aff0 !important;
  background: #eeeaff !important;
  color: #4931cc !important;
}

html[data-theme="light"] .supervision-nav a:nth-child(2) {
  border-color: #aee0e8 !important;
  background: #e7f8fb !important;
  color: #08758e !important;
}

html[data-theme="light"] .supervision-nav a:nth-child(3) {
  border-color: #efbfd8 !important;
  background: #fff0f7 !important;
  color: #a91f6d !important;
}

html[data-theme="light"] .supervision-nav a:hover {
  border-color: var(--supervision-purple) !important;
  background: var(--supervision-purple) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(87, 55, 214, .18) !important;
}

html[data-theme="light"] .supervision-section {
  border-bottom-color: var(--supervision-line) !important;
}

html[data-theme="light"] .section-index,
html[data-theme="light"] .entry-number {
  color: var(--supervision-purple) !important;
}

html[data-theme="light"] .supervision-section-head p,
html[data-theme="light"] .section-description,
html[data-theme="light"] .section-description :is(p, li) {
  color: var(--supervision-body) !important;
}

html[data-theme="light"] .section-count {
  color: #ffffff !important;
  background: var(--supervision-purple) !important;
  border-color: var(--supervision-purple) !important;
  box-shadow: 0 9px 22px rgba(87, 55, 214, .20) !important;
}

/* Records remain white, with stronger metadata and status chips. */
html[data-theme="light"] .supervision-card {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--supervision-line) !important;
  box-shadow: 0 12px 34px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .supervision-card:hover {
  border-color: #b4a7f2 !important;
  box-shadow: 0 18px 42px rgba(55, 43, 126, .13) !important;
}

html[data-theme="light"] .entry-meta {
  color: #607087 !important;
  font-weight: 560 !important;
}

html[data-theme="light"] .entry-meta strong {
  color: var(--supervision-cyan) !important;
  font-weight: 850 !important;
}

html[data-theme="light"] .entry-badges span {
  color: #4931cc !important;
  background: #eeeaff !important;
  border: 1px solid #d4ccff !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .entry-badges span:first-child {
  color: #ffffff !important;
  background: #332060 !important;
  border-color: #332060 !important;
}

html[data-theme="light"] .entry-details,
html[data-theme="light"] .entry-details :is(p, li) {
  color: var(--supervision-body) !important;
}

html[data-theme="light"] .entry-files a {
  color: #4931cc !important;
  background: #f7f5ff !important;
  border-color: #b9aff0 !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .entry-files a:hover {
  color: #ffffff !important;
  background: var(--supervision-purple) !important;
  border-color: var(--supervision-purple) !important;
}

html[data-theme="light"] .supervision-empty,
html[data-theme="light"] .supervision-empty-state p {
  color: var(--supervision-body) !important;
}

@media (max-width: 700px) {
  html[data-theme="light"] .supervision-stats > span {
    min-width: 0;
  }

  html[data-theme="light"] .supervision-nav-inner {
    padding-inline: 2px;
  }
}

/* ========================================================================== 
   SEMINARS LIGHT MODE — professional listing, controls, and readable metadata
   ========================================================================== */
html[data-theme="light"] .seminars-hero,
html[data-theme="light"] .seminars-main {
  --seminars-ink: #111827;
  --seminars-body: #46536a;
  --seminars-purple: #5737d6;
  --seminars-purple-dark: #3f23b1;
  --seminars-cyan: #087f9c;
  --seminars-pink: #b42373;
  --seminars-line: #d8deea;
  background-color: #f5f6fb !important;
  color: var(--seminars-ink) !important;
}

html[data-theme="light"] .seminars-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(8, 127, 156, .09), transparent 28%),
    radial-gradient(circle at 15% 84%, rgba(87, 55, 214, .11), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .seminars-eyebrow {
  color: #4b32c3 !important;
  background: #ffffff !important;
  border-color: #a996f5 !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .seminars-hero h1 {
  color: var(--seminars-ink) !important;
}

html[data-theme="light"] .seminars-hero p {
  color: #4e5c73 !important;
}

/* Three distinct, high-contrast statistic cards. */
html[data-theme="light"] .seminars-stats > span {
  min-width: 140px;
  padding: 13px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: #354158 !important;
  font-weight: 750 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .seminars-stats > span:nth-child(1) {
  background: #eeeaff !important;
  border-color: #cfc5ff !important;
}

html[data-theme="light"] .seminars-stats > span:nth-child(2) {
  background: #e4f7fa !important;
  border-color: #b6e6ed !important;
}

html[data-theme="light"] .seminars-stats > span:nth-child(3) {
  background: #fff0f7 !important;
  border-color: #efbfd8 !important;
}

html[data-theme="light"] .seminars-stats strong {
  color: var(--seminars-purple-dark) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .seminars-stats > span:nth-child(2) strong {
  color: var(--seminars-cyan) !important;
}

html[data-theme="light"] .seminars-stats > span:nth-child(3) strong {
  color: var(--seminars-pink) !important;
}

/* Search and filters must be a real light toolbar. */
html[data-theme="light"] .seminars-toolbar {
  padding: 12px !important;
  border: 1px solid #d7ddea !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .10) !important;
}

html[data-theme="light"] .seminars-search {
  min-height: 52px;
  border: 1px solid #cfd6e4 !important;
  background: #f8f9fc !important;
  box-shadow: none !important;
}

html[data-theme="light"] .seminars-search > span {
  color: var(--seminars-purple) !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .seminars-search input {
  background: transparent !important;
  color: #182033 !important;
}

html[data-theme="light"] .seminars-search input::placeholder {
  color: #68758c !important;
  opacity: 1 !important;
}

html[data-theme="light"] .seminar-filters {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .seminar-filters button {
  min-height: 48px;
  padding: 0 17px !important;
  border: 1px solid #d5dbe7 !important;
  background: #f7f7fb !important;
  color: #3e495f !important;
  font-weight: 780 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .seminar-filters button:hover {
  border-color: #afa2f3 !important;
  background: #efecff !important;
  color: #4527c7 !important;
}

html[data-theme="light"] .seminar-filters button.active {
  border-color: var(--seminars-purple) !important;
  background: var(--seminars-purple) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(87, 55, 214, .20) !important;
}

/* Seminar records use dark headings; accents are reserved for metadata and actions. */
html[data-theme="light"] .seminar-card {
  border-color: var(--seminars-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 38px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .seminar-card:hover {
  border-color: #b3a6f2 !important;
  box-shadow: 0 20px 46px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .seminar-card-index {
  color: var(--seminars-purple) !important;
}

html[data-theme="light"] .seminar-card-meta {
  color: #59677e !important;
  font-weight: 850 !important;
}

html[data-theme="light"] .seminar-card-meta span + span {
  color: #08758e !important;
}

html[data-theme="light"] .seminar-card h2,
html[data-theme="light"] .seminar-card h2 a {
  color: var(--seminars-ink) !important;
}

html[data-theme="light"] .seminar-card h2 a:hover {
  color: var(--seminars-purple-dark) !important;
}

html[data-theme="light"] .seminar-card-place {
  color: #68758c !important;
  font-weight: 560 !important;
}

html[data-theme="light"] .seminar-card-place strong {
  color: var(--seminars-cyan) !important;
  font-weight: 850 !important;
}

html[data-theme="light"] .seminar-card p {
  color: var(--seminars-body) !important;
}

html[data-theme="light"] .seminar-open {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #b9aff0;
  border-radius: 10px;
  background: #f7f5ff;
  color: #4931cc !important;
}

html[data-theme="light"] .seminar-open:hover {
  border-color: var(--seminars-purple);
  background: var(--seminars-purple);
  color: #ffffff !important;
}

html[data-theme="light"] .seminar-card-visual {
  border: 1px solid #d5d0ee !important;
  background: linear-gradient(145deg, #eeeaff, #e7f7fa) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65) !important;
}

html[data-theme="light"] .seminar-card-visual span {
  color: var(--seminars-purple) !important;
  text-shadow: 0 8px 22px rgba(87, 55, 214, .14);
}

html[data-theme="light"] .seminars-empty {
  color: var(--seminars-body) !important;
}

@media (max-width: 900px) {
  html[data-theme="light"] .seminars-toolbar {
    padding: 10px !important;
  }

  html[data-theme="light"] .seminar-filters button {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  html[data-theme="light"] .seminars-stats > span {
    min-width: 0;
  }
}

/* ========================================================================== 
   AWARDS & HONOURS LIGHT MODE — recognition, filters, records, laureates
   ========================================================================== */
html[data-theme="light"] .awards-page,
html[data-theme="light"] .awards-hero,
html[data-theme="light"] .awards-list {
  --awards-ink: #111827;
  --awards-body: #46536a;
  --awards-purple: #5737d6;
  --awards-purple-dark: #3f23b1;
  --awards-cyan: #087f9c;
  --awards-pink: #b42373;
  --awards-amber: #a95309;
  --awards-line: #d8deea;
  background-color: #f5f6fb !important;
  color: var(--awards-ink) !important;
}

html[data-theme="light"] .awards-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(8, 127, 156, .09), transparent 28%),
    radial-gradient(circle at 15% 84%, rgba(87, 55, 214, .11), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .awards-kicker {
  color: #4b32c3 !important;
  background: #ffffff !important;
  border-color: #a996f5 !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .awards-title,
html[data-theme="light"] .award-card h2 {
  color: var(--awards-ink) !important;
}

html[data-theme="light"] .awards-lead {
  color: #4e5c73 !important;
}

/* Distinct, readable hero statistics. */
html[data-theme="light"] .awards-stat {
  min-width: 140px;
  padding: 13px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: #354158 !important;
  font-weight: 750 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .awards-stat:nth-child(1) {
  background: #eeeaff !important;
  border-color: #cfc5ff !important;
}

html[data-theme="light"] .awards-stat:nth-child(2) {
  background: #e4f7fa !important;
  border-color: #b6e6ed !important;
}

html[data-theme="light"] .awards-stat:nth-child(3) {
  background: #fff4e7 !important;
  border-color: #f1d2aa !important;
}

html[data-theme="light"] .awards-stat strong {
  color: var(--awards-purple-dark) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .awards-stat:nth-child(2) strong {
  color: var(--awards-cyan) !important;
}

html[data-theme="light"] .awards-stat:nth-child(3) strong {
  color: var(--awards-amber) !important;
}

/* Sticky filters become a light toolbar. */
html[data-theme="light"] .awards-controls {
  padding: 14px 0 !important;
  border-bottom: 1px solid #d9deea !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .award-filter {
  min-height: 42px;
  padding: 9px 16px !important;
  border: 1px solid #d5dbe7 !important;
  background: #f7f7fb !important;
  color: #3e495f !important;
  font-weight: 780 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .award-filter:hover {
  border-color: #afa2f3 !important;
  background: #efecff !important;
  color: #4527c7 !important;
}

html[data-theme="light"] .award-filter.active {
  border-color: var(--awards-purple) !important;
  background: var(--awards-purple) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(87, 55, 214, .20) !important;
}

/* Award records. */
html[data-theme="light"] .award-card {
  border-color: var(--awards-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 38px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .award-card:hover {
  border-color: #b3a6f2 !important;
  box-shadow: 0 20px 46px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .award-index {
  color: var(--awards-purple) !important;
}

html[data-theme="light"] .award-date {
  color: var(--awards-cyan) !important;
}

html[data-theme="light"] .award-meta {
  color: #617087 !important;
  font-weight: 560 !important;
}

html[data-theme="light"] .award-copy,
html[data-theme="light"] .award-copy :is(p, li) {
  color: var(--awards-body) !important;
}

html[data-theme="light"] .award-link {
  color: #4931cc !important;
  background: #f7f5ff !important;
  border-color: #b9aff0 !important;
}

html[data-theme="light"] .award-link:hover {
  color: #ffffff !important;
  background: var(--awards-purple) !important;
  border-color: var(--awards-purple) !important;
}

html[data-theme="light"] .award-media {
  border: 1px solid #d5d0ee !important;
  background: linear-gradient(145deg, #eeeaff, #e7f7fa) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65) !important;
}

html[data-theme="light"] .award-symbol {
  color: var(--awards-purple) !important;
  text-shadow: 0 8px 24px rgba(87, 55, 214, .16) !important;
}

html[data-theme="light"] .award-gallery img {
  border: 1px solid #d5dbe7;
  box-shadow: 0 8px 22px rgba(37, 31, 78, .08);
}

/* Nobel encounters stay visually special without becoming unreadable. */
html[data-theme="light"] .laureates {
  border-top: 1px solid #d9deea !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(87, 55, 214, .10), transparent 28%),
    linear-gradient(145deg, #f1efff, #edf7fa) !important;
}

html[data-theme="light"] .laureates .awards-kicker {
  color: #a91f6d !important;
  border-color: #e9a9ca !important;
  background: #fff0f7 !important;
}

html[data-theme="light"] .laureates h2 {
  color: var(--awards-ink) !important;
}

html[data-theme="light"] .laureate-card {
  border-color: #d4dae6 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .10) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

html[data-theme="light"] .laureate-card:hover {
  transform: translateY(-5px);
  border-color: #afa2f3 !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .laureate-photo {
  background: linear-gradient(145deg, #eeeaff, #e7f7fa) !important;
}

html[data-theme="light"] .laureate-photo span {
  color: var(--awards-purple) !important;
}

html[data-theme="light"] .laureate-info h3 {
  color: var(--awards-ink) !important;
}

html[data-theme="light"] .laureate-info p {
  color: var(--awards-body) !important;
}

@media (max-width: 640px) {
  html[data-theme="light"] .awards-stat {
    min-width: 0;
  }

  html[data-theme="light"] .award-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* ========================================================================== 
   STUDY MATH ONLINE LIGHT MODE — courses and student meetings
   ========================================================================== */
html[data-theme="light"] .study-hub-hero,
html[data-theme="light"] .study-hub-main,
html[data-theme="light"] .study-meetings-section {
  --study-ink: #111827;
  --study-body: #46536a;
  --study-purple: #5737d6;
  --study-purple-dark: #3f23b1;
  --study-cyan: #087f9c;
  --study-pink: #b42373;
  --study-line: #d8deea;
  background-color: #f5f6fb !important;
  color: var(--study-ink) !important;
}

html[data-theme="light"] .study-hub-hero {
  background:
    radial-gradient(circle at 80% 22%, rgba(8, 127, 156, .09), transparent 29%),
    radial-gradient(circle at 15% 84%, rgba(87, 55, 214, .11), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .study-hub-kicker {
  color: #4b32c3 !important;
  background: #ffffff !important;
  border-color: #a996f5 !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .study-hub-hero h1,
html[data-theme="light"] .study-section-heading h2,
html[data-theme="light"] .study-course-group > header h3 {
  color: var(--study-ink) !important;
}

html[data-theme="light"] .study-hub-hero p {
  color: #4e5c73 !important;
}

/* Hero statistics. */
html[data-theme="light"] .study-hub-stats > span {
  min-width: 140px;
  padding: 13px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: #354158 !important;
  font-weight: 750 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .study-hub-stats > span:nth-child(1) {
  background: #eeeaff !important;
  border-color: #cfc5ff !important;
}

html[data-theme="light"] .study-hub-stats > span:nth-child(2) {
  background: #e4f7fa !important;
  border-color: #b6e6ed !important;
}

html[data-theme="light"] .study-hub-stats > span:nth-child(3) {
  background: #fff0f7 !important;
  border-color: #efbfd8 !important;
}

html[data-theme="light"] .study-hub-stats strong {
  color: var(--study-purple-dark) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .study-hub-stats > span:nth-child(2) strong {
  color: var(--study-cyan) !important;
}

html[data-theme="light"] .study-hub-stats > span:nth-child(3) strong {
  color: var(--study-pink) !important;
}

/* Section headings and group headers. */
html[data-theme="light"] .study-section-heading span,
html[data-theme="light"] .study-course-group > header > span {
  color: var(--study-purple) !important;
}

html[data-theme="light"] .study-section-heading > p,
html[data-theme="light"] .study-course-group > header p {
  color: #617087 !important;
}

html[data-theme="light"] .study-course-group > header {
  border-bottom-color: var(--study-line) !important;
}

html[data-theme="light"] .study-course-group > header b {
  color: #ffffff !important;
  background: var(--study-purple) !important;
  border-color: var(--study-purple) !important;
  box-shadow: 0 8px 20px rgba(87, 55, 214, .18) !important;
}

/* These cards live outside main, so they need direct light-mode rules. */
html[data-theme="light"] .study-course-card {
  border-color: color-mix(in srgb, var(--course-accent, #8b5cf6) 34%, #d8deea) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .study-course-card::before {
  opacity: .55;
  background: radial-gradient(circle, color-mix(in srgb, var(--course-accent, #8b5cf6) 16%, transparent), transparent 70%) !important;
}

html[data-theme="light"] .study-course-card:hover {
  border-color: var(--course-accent, #8b5cf6) !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .study-course-code {
  color: color-mix(in srgb, var(--course-accent, #8b5cf6) 78%, #201547) !important;
}

html[data-theme="light"] .study-course-card h4 {
  color: var(--study-ink) !important;
}

html[data-theme="light"] .study-course-card p {
  color: var(--study-body) !important;
}

html[data-theme="light"] .study-course-card-footer {
  border-top-color: #e3e7ef !important;
  color: #617087 !important;
}

html[data-theme="light"] .study-course-card-footer i {
  color: var(--study-purple-dark) !important;
}

/* Student Meetings is part of the light page, not a dark island. */
html[data-theme="light"] .study-meetings-section {
  border-top: 1px solid #d9deea !important;
  background:
    radial-gradient(circle at 86% 14%, rgba(180, 35, 115, .07), transparent 28%),
    linear-gradient(180deg, #f2f0fb, #f5f6fb) !important;
}

html[data-theme="light"] .study-meeting-card {
  border-color: var(--study-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .study-meeting-card:hover {
  border-color: #b3a6f2 !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .study-meeting-card.is-featured {
  border-color: #dfa0c4 !important;
  box-shadow: 0 14px 38px rgba(180, 35, 115, .10) !important;
}

html[data-theme="light"] .study-meeting-date {
  border-color: #cfc5ff !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .study-meeting-date strong {
  color: var(--study-purple-dark) !important;
}

html[data-theme="light"] .study-meeting-date span {
  color: #5e6a80 !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .study-meeting-copy > span {
  color: var(--study-cyan) !important;
}

html[data-theme="light"] .study-meeting-copy h3 {
  color: var(--study-ink) !important;
}

html[data-theme="light"] .study-meeting-copy p {
  color: var(--study-body) !important;
}

html[data-theme="light"] .study-meeting-copy small {
  color: #657188 !important;
}

html[data-theme="light"] .study-meeting-card > i {
  color: var(--study-pink) !important;
}

html[data-theme="light"] .study-empty {
  color: var(--study-body) !important;
  border-color: #b9aff0 !important;
  background: #ffffff !important;
}

@media (max-width: 480px) {
  html[data-theme="light"] .study-hub-stats > span {
    min-width: 0;
  }
}

/* ========================================================================== 
   COURSE DETAIL LIGHT MODE — clear navigation, resources and related courses
   ========================================================================== */
html[data-theme="light"] .course-detail-hero,
html[data-theme="light"] .course-detail-content {
  --course-light-ink: #111827;
  --course-light-body: #46536a;
  --course-light-purple: #5737d6;
  --course-light-purple-dark: #3f23b1;
  --course-light-cyan: #087f9c;
  --course-light-line: #d8deea;
  color: var(--course-light-ink) !important;
}

html[data-theme="light"] .course-detail-hero {
  background:
    radial-gradient(circle at 76% 26%, rgba(8, 127, 156, .09), transparent 29%),
    radial-gradient(circle at 18% 78%, rgba(87, 55, 214, .10), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f4f2ff 58%, #edf7fa 100%) !important;
  border-top-color: var(--course-accent, #5737d6) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .course-back-link {
  color: var(--course-light-purple-dark) !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .course-back-link:hover {
  color: var(--course-light-cyan) !important;
}

html[data-theme="light"] .course-detail-code,
html[data-theme="light"] .course-section-kicker {
  color: var(--course-light-purple) !important;
}

html[data-theme="light"] .course-detail-copy h1,
html[data-theme="light"] .course-content-panel h2,
html[data-theme="light"] .course-file-group h3,
html[data-theme="light"] .related-courses-section h2,
html[data-theme="light"] .course-gallery-section h2 {
  color: var(--course-light-ink) !important;
}

html[data-theme="light"] .course-detail-lead,
html[data-theme="light"] .course-description,
html[data-theme="light"] .course-richtext,
html[data-theme="light"] .course-textbook,
html[data-theme="light"] .course-outline-grid {
  color: var(--course-light-body) !important;
}

html[data-theme="light"] .course-detail-facts span,
html[data-theme="light"] .course-detail-level {
  color: var(--course-light-purple-dark) !important;
  border-color: #cfc5ff !important;
  background: #eeeaff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .08) !important;
}

html[data-theme="light"] .course-detail-image {
  border-color: #c9c2e8 !important;
  background: #ffffff !important;
  box-shadow: 0 26px 60px rgba(40, 35, 76, .16) !important;
}

html[data-theme="light"] .course-section-nav {
  border-color: #d9deea !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .07) !important;
}

html[data-theme="light"] .course-section-nav a {
  color: #4b5870 !important;
}

html[data-theme="light"] .course-section-nav a:first-child {
  color: #ffffff !important;
  background: var(--course-light-purple) !important;
}

html[data-theme="light"] .course-section-nav a:hover {
  color: var(--course-light-purple-dark) !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .course-section-nav a:first-child:hover {
  color: #ffffff !important;
  background: var(--course-light-purple-dark) !important;
}

html[data-theme="light"] .course-detail-content {
  background:
    radial-gradient(circle at 86% 12%, rgba(8, 127, 156, .05), transparent 28%),
    linear-gradient(180deg, #f7f8fc 0%, #f3f5fa 100%) !important;
}

html[data-theme="light"] .course-content-panel,
html[data-theme="light"] .course-file-group {
  border-color: var(--course-light-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .course-material-item {
  color: #28364d !important;
  border-color: #d8d2f4 !important;
  background: #f7f5ff !important;
  font-weight: 650 !important;
}

html[data-theme="light"] .course-material-item:hover {
  color: #ffffff !important;
  border-color: var(--course-light-purple) !important;
  background: var(--course-light-purple) !important;
  box-shadow: 0 10px 24px rgba(87, 55, 214, .18) !important;
}

html[data-theme="light"] .course-material-type {
  color: var(--course-light-purple-dark) !important;
  background: #e7e1ff !important;
}

html[data-theme="light"] .course-material-item:hover .course-material-type {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .18) !important;
}

html[data-theme="light"] .course-material-item i {
  color: var(--course-light-purple-dark) !important;
}

html[data-theme="light"] .course-material-item:hover i {
  color: #ffffff !important;
}

html[data-theme="light"] .course-outline-grid a,
html[data-theme="light"] .course-outline-grid div {
  color: #344157 !important;
}

html[data-theme="light"] .course-outline-grid a:hover {
  color: var(--course-light-purple-dark) !important;
}

html[data-theme="light"] .related-course-card {
  color: var(--course-light-ink) !important;
  border-color: var(--course-light-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .related-course-card span {
  color: var(--course-light-purple) !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .related-course-card strong {
  color: var(--course-light-ink) !important;
}

html[data-theme="light"] .related-course-card i {
  color: var(--course-light-purple-dark) !important;
}

html[data-theme="light"] .related-course-card:hover {
  border-color: #a99bed !important;
  box-shadow: 0 18px 38px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .course-empty-state {
  color: var(--course-light-body) !important;
}

html[data-theme="light"] .course-gallery-grid img {
  border-color: var(--course-light-line) !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .10) !important;
}

@media (max-width: 600px) {
  html[data-theme="light"] .course-section-nav .course-detail-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ========================================================================== 
   ACADEMIC COMMITTEES LIGHT MODE — readable service records and navigation
   ========================================================================== */
html[data-theme="light"] body.page-academic-committees {
  --committee-light-ink: #111827;
  --committee-light-body: #46536a;
  --committee-light-purple: #5737d6;
  --committee-light-purple-dark: #3f23b1;
  --committee-light-cyan: #087f9c;
  --committee-light-line: #d8deea;
  background: #f5f6fb !important;
  color: var(--committee-light-ink) !important;
}

html[data-theme="light"] .committee-hero {
  background:
    radial-gradient(circle at 82% 28%, rgba(8, 127, 156, .09), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(87, 55, 214, .11), transparent 34%),
    linear-gradient(135deg, #fbfcff 0%, #f4f2ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .committee-hero h1,
html[data-theme="light"] .committee-section-head h2,
html[data-theme="light"] .committee-card h3,
html[data-theme="light"] .committee-empty-state h2 {
  color: var(--committee-light-ink) !important;
}

html[data-theme="light"] .committee-hero p,
html[data-theme="light"] .committee-section-head p,
html[data-theme="light"] .committee-description,
html[data-theme="light"] .committee-section-description,
html[data-theme="light"] .committee-empty {
  color: var(--committee-light-body) !important;
}

html[data-theme="light"] .committee-kicker,
html[data-theme="light"] .committee-scope {
  color: var(--committee-light-purple-dark) !important;
  border-color: #a996f5 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .committee-stats span {
  min-width: 138px;
  color: #3f4c63 !important;
  border-color: #cfc5ff !important;
  background: #eeeaff !important;
  font-weight: 700 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .committee-stats span:nth-child(2) {
  border-color: #b6e6ed !important;
  background: #e4f7fa !important;
}

html[data-theme="light"] .committee-stats span:nth-child(3) {
  border-color: #efbfd8 !important;
  background: #fff0f7 !important;
}

html[data-theme="light"] .committee-stats strong {
  color: var(--committee-light-purple-dark) !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .committee-stats span:nth-child(2) strong {
  color: var(--committee-light-cyan) !important;
}

html[data-theme="light"] .committee-stats span:nth-child(3) strong {
  color: #b42373 !important;
}

html[data-theme="light"] .committee-nav {
  border-color: #d9deea !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .07) !important;
}

html[data-theme="light"] .committee-nav a {
  color: #46536a !important;
  border-color: #d8d2f4 !important;
  background: #f8f7ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .committee-nav a:first-child {
  color: #ffffff !important;
  border-color: var(--committee-light-purple) !important;
  background: var(--committee-light-purple) !important;
}

html[data-theme="light"] .committee-nav a:hover {
  color: #ffffff !important;
  border-color: var(--committee-light-purple-dark) !important;
  background: var(--committee-light-purple-dark) !important;
}

html[data-theme="light"] .committee-nav-inner {
  scrollbar-color: #8d78e9 #ece9fa !important;
}

html[data-theme="light"] .committee-nav-inner::-webkit-scrollbar-track {
  background: #ece9fa !important;
}

html[data-theme="light"] .committee-nav-inner::-webkit-scrollbar-thumb {
  background: #8d78e9 !important;
}

html[data-theme="light"] .committee-main {
  color: var(--committee-light-ink) !important;
}

html[data-theme="light"] .committee-section {
  border-bottom-color: var(--committee-light-line) !important;
}

html[data-theme="light"] .committee-section-index {
  color: var(--committee-light-purple) !important;
}

html[data-theme="light"] .committee-section-count {
  color: #ffffff !important;
  border-color: var(--committee-light-purple) !important;
  background: var(--committee-light-purple) !important;
  box-shadow: 0 8px 20px rgba(87, 55, 214, .18) !important;
}

html[data-theme="light"] .committee-card {
  color: var(--committee-light-ink) !important;
  border-color: var(--committee-light-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .committee-card:hover,
html[data-theme="light"] .committee-card.is-featured {
  border-color: #a99bed !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .committee-entry-number {
  color: var(--committee-light-purple) !important;
}

html[data-theme="light"] .committee-role,
html[data-theme="light"] .committee-period {
  color: var(--committee-light-purple-dark) !important;
  border: 1px solid #d8d2f4 !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .committee-meta {
  color: var(--committee-light-cyan) !important;
}

html[data-theme="light"] .committee-actions a,
html[data-theme="light"] .committee-section-files a {
  color: var(--committee-light-purple-dark) !important;
  border-color: #b8aaf2 !important;
  background: #f7f5ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .committee-actions a:hover,
html[data-theme="light"] .committee-section-files a:hover {
  color: #ffffff !important;
  border-color: var(--committee-light-purple) !important;
  background: var(--committee-light-purple) !important;
}

html[data-theme="light"] .committee-description a:not([class]),
html[data-theme="light"] .committee-section-description a:not([class]) {
  color: var(--committee-light-cyan) !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .committee-main-image img,
html[data-theme="light"] .committee-entry-gallery img,
html[data-theme="light"] .committee-section-gallery img {
  border: 1px solid var(--committee-light-line) !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .10) !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] .committee-stats span {
    min-width: 0;
  }
}

/* ========================================================================== 
   MEDIA & SOCIETY LIGHT MODE — unified controls, timeline and activity cards
   ========================================================================== */
html[data-theme="light"] .media-page {
  --media-light-ink: #111827;
  --media-light-body: #46536a;
  --media-light-purple: #5737d6;
  --media-light-purple-dark: #3f23b1;
  --media-light-cyan: #087f9c;
  --media-light-pink: #b42373;
  --media-light-line: #d8deea;
  color: var(--media-light-ink) !important;
  background: #f5f6fb !important;
}

html[data-theme="light"] .media-hero {
  background:
    radial-gradient(circle at 78% 24%, rgba(8, 127, 156, .09), transparent 29%),
    radial-gradient(circle at 16% 82%, rgba(87, 55, 214, .11), transparent 35%),
    linear-gradient(135deg, #fbfcff 0%, #f4f2ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .media-title,
html[data-theme="light"] .media-card h3,
html[data-theme="light"] .media-empty {
  color: var(--media-light-ink) !important;
}

html[data-theme="light"] .media-sub,
html[data-theme="light"] .media-card p,
html[data-theme="light"] .media-description {
  color: var(--media-light-body) !important;
}

html[data-theme="light"] .media-kicker,
html[data-theme="light"] .media-chip {
  color: var(--media-light-purple-dark) !important;
  border-color: #a996f5 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .media-stat {
  min-width: 138px;
  color: #3f4c63 !important;
  border-color: #cfc5ff !important;
  background: #eeeaff !important;
  font-weight: 700 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .media-stat:nth-child(2) {
  border-color: #b6e6ed !important;
  background: #e4f7fa !important;
}

html[data-theme="light"] .media-stat:nth-child(3) {
  border-color: #efbfd8 !important;
  background: #fff0f7 !important;
}

html[data-theme="light"] .media-stat b {
  color: var(--media-light-purple-dark) !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .media-stat:nth-child(2) b {
  color: var(--media-light-cyan) !important;
}

html[data-theme="light"] .media-stat:nth-child(3) b {
  color: var(--media-light-pink) !important;
}

html[data-theme="light"] .media-controls {
  border-color: #d9deea !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .media-search {
  color: var(--media-light-ink) !important;
  border-color: #cfd6e4 !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .03) !important;
}

html[data-theme="light"] .media-search::placeholder {
  color: #718096 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .media-search:focus {
  outline: 0 !important;
  border-color: #8d78e9 !important;
  box-shadow: 0 0 0 4px rgba(87, 55, 214, .11) !important;
}

html[data-theme="light"] .media-filter {
  color: #46536a !important;
  border-color: #d8d2f4 !important;
  background: #f7f5ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .media-filter:hover {
  color: var(--media-light-purple-dark) !important;
  border-color: #a99bed !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .media-filter.active {
  color: #ffffff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--media-light-purple), var(--media-light-pink)) !important;
  box-shadow: 0 8px 20px rgba(87, 55, 214, .20) !important;
}

html[data-theme="light"] .media-timeline {
  background:
    radial-gradient(circle at 88% 14%, rgba(180, 35, 115, .05), transparent 27%),
    linear-gradient(180deg, #f7f8fc, #f3f5fa) !important;
}

html[data-theme="light"] .media-year {
  border-bottom-color: var(--media-light-line) !important;
}

html[data-theme="light"] .media-year-label {
  color: var(--media-light-purple) !important;
}

html[data-theme="light"] .media-card {
  color: var(--media-light-ink) !important;
  border-color: var(--media-light-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .media-card:hover {
  border-color: #a99bed !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .media-cover {
  border-bottom: 1px solid var(--media-light-line) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(87, 55, 214, .12), transparent 48%),
    linear-gradient(135deg, #f1eeff, #edf7fa) !important;
}

html[data-theme="light"] .media-symbol {
  color: var(--media-light-purple) !important;
}

html[data-theme="light"] .media-meta {
  color: var(--media-light-cyan) !important;
}

html[data-theme="light"] .media-action,
html[data-theme="light"] .media-entry-content a:not([class]) {
  color: var(--media-light-purple-dark) !important;
}

html[data-theme="light"] .media-action:hover,
html[data-theme="light"] .media-entry-content a:not([class]):hover {
  color: var(--media-light-cyan) !important;
}

html[data-theme="light"] .media-gallery img {
  border: 1px solid var(--media-light-line) !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .10) !important;
}

html[data-theme="light"] .media-empty {
  border: 1px solid var(--media-light-line) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
}

@media (max-width: 640px) {
  html[data-theme="light"] .media-stat {
    min-width: 0;
  }

  html[data-theme="light"] .media-control-row {
    align-items: stretch !important;
  }

  html[data-theme="light"] .media-search {
    flex-basis: 100% !important;
  }
}

/* ========================================================================== 
   EDUCATION & PROFESSIONAL LIGHT MODE — clear academic timeline and records
   ========================================================================== */
html[data-theme="light"] .page-education-professional {
  --education-light-ink: #111827;
  --education-light-body: #46536a;
  --education-light-purple: #5737d6;
  --education-light-purple-dark: #3f23b1;
  --education-light-cyan: #087f9c;
  --education-light-pink: #b42373;
  --education-light-line: #d8deea;
  color: var(--education-light-ink) !important;
  background: #f5f6fb !important;
}

html[data-theme="light"] .education-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(8, 127, 156, .09), transparent 29%),
    radial-gradient(circle at 16% 82%, rgba(87, 55, 214, .11), transparent 35%),
    linear-gradient(135deg, #fbfcff 0%, #f4f2ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .education-hero:after {
  border-color: rgba(87, 55, 214, .16) !important;
  background: rgba(255, 255, 255, .24) !important;
  box-shadow: 0 0 90px rgba(87, 55, 214, .10) !important;
}

html[data-theme="light"] .education-hero h1,
html[data-theme="light"] .education-section-copy h2,
html[data-theme="light"] .education-card h3,
html[data-theme="light"] .education-empty-state h2 {
  color: var(--education-light-ink) !important;
}

html[data-theme="light"] .education-hero p,
html[data-theme="light"] .education-section-copy p,
html[data-theme="light"] .education-section-description,
html[data-theme="light"] .education-summary,
html[data-theme="light"] .education-description,
html[data-theme="light"] .education-empty,
html[data-theme="light"] .education-empty-state {
  color: var(--education-light-body) !important;
}

html[data-theme="light"] .education-kicker,
html[data-theme="light"] .education-type {
  color: var(--education-light-purple-dark) !important;
  border-color: #a996f5 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .education-stats span {
  min-width: 138px;
  color: #3f4c63 !important;
  border-color: #cfc5ff !important;
  background: #eeeaff !important;
  font-weight: 700 !important;
  box-shadow: 0 9px 22px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .education-stats span:nth-child(2) {
  border-color: #b6e6ed !important;
  background: #e4f7fa !important;
}

html[data-theme="light"] .education-stats span:nth-child(3) {
  border-color: #efbfd8 !important;
  background: #fff0f7 !important;
}

html[data-theme="light"] .education-stats strong {
  color: var(--education-light-purple-dark) !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .education-stats span:nth-child(2) strong {
  color: var(--education-light-cyan) !important;
}

html[data-theme="light"] .education-stats span:nth-child(3) strong {
  color: var(--education-light-pink) !important;
}

html[data-theme="light"] .education-nav {
  border-color: #d9deea !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .07) !important;
}

html[data-theme="light"] .education-nav a {
  color: #46536a !important;
  border-color: #d8d2f4 !important;
  background: #f7f5ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .education-nav a:first-child {
  color: #ffffff !important;
  border-color: var(--education-light-purple) !important;
  background: var(--education-light-purple) !important;
}

html[data-theme="light"] .education-nav a:hover {
  color: #ffffff !important;
  border-color: var(--education-light-purple-dark) !important;
  background: var(--education-light-purple-dark) !important;
}

html[data-theme="light"] .education-main {
  color: var(--education-light-ink) !important;
}

html[data-theme="light"] .education-section {
  border-bottom-color: var(--education-light-line) !important;
}

html[data-theme="light"] .education-section-index {
  color: var(--education-light-purple) !important;
}

html[data-theme="light"] .education-section-mark {
  color: var(--education-light-purple-dark) !important;
  border-color: #cfc5ff !important;
  background: linear-gradient(145deg, #eeeaff, #e4f7fa) !important;
  box-shadow: 0 12px 28px rgba(55, 43, 126, .10) !important;
}

html[data-theme="light"] .education-timeline:before {
  background: linear-gradient(var(--education-light-purple), rgba(87, 55, 214, .13)) !important;
}

html[data-theme="light"] .education-dot {
  border-color: var(--education-light-purple) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 6px rgba(87, 55, 214, .11) !important;
}

html[data-theme="light"] .education-card-content {
  color: var(--education-light-ink) !important;
  border-color: var(--education-light-line) !important;
  background: #f5f6fb !important;
  background-image: none !important;
  box-shadow: 0 10px 28px rgba(37, 31, 78, .07) !important;
}

html[data-theme="light"] .education-card {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Override the generic main-card light rule, which has higher specificity. */
html[data-theme="light"] .page-education-professional main.education-main .education-timeline article.education-card,
html[data-theme="light"] body.page-education-professional main.education-main .education-timeline article.education-card {
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] .page-education-professional main.education-main .education-card-content,
html[data-theme="light"] body.page-education-professional main.education-main .education-card-content {
  background: #f5f6fb !important;
  background-color: #f5f6fb !important;
}

/* ========================================================================== 
   ABOUT LIGHT MODE — professor profile, biography and academic links
   ========================================================================== */
html[data-theme="light"] .about-page {
  --about-light-ink: #111827;
  --about-light-body: #46536a;
  --about-light-purple: #5737d6;
  --about-light-purple-dark: #3f23b1;
  --about-light-cyan: #087f9c;
  --about-light-line: #d8deea;
  color: var(--about-light-ink) !important;
  background: #f5f6fb !important;
}

html[data-theme="light"] .about-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(8, 127, 156, .10), transparent 29%),
    radial-gradient(circle at 14% 84%, rgba(87, 55, 214, .12), transparent 36%),
    linear-gradient(135deg, #fbfcff 0%, #f3f1ff 58%, #edf7fa 100%) !important;
  border-bottom: 1px solid #d9deea !important;
}

html[data-theme="light"] .about-hero::before {
  opacity: .08 !important;
  filter: saturate(.65) contrast(.8) !important;
}

html[data-theme="light"] .about-hero::after {
  background: linear-gradient(90deg, rgba(251,252,255,.94) 0%, rgba(244,242,255,.88) 52%, rgba(237,247,250,.70) 100%) !important;
}

html[data-theme="light"] .about-hero__overlay {
  background: radial-gradient(circle, rgba(87, 55, 214, .13), transparent 66%) !important;
}

html[data-theme="light"] .about-portrait-wrap::before {
  border-color: #b9aff0 !important;
}

html[data-theme="light"] .about-portrait {
  border: 1px solid #d4d9e5 !important;
  background: #ffffff !important;
  box-shadow: 0 28px 68px rgba(37, 31, 78, .17) !important;
}

html[data-theme="light"] .about-eyebrow {
  color: var(--about-light-purple-dark) !important;
  border-color: #a996f5 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .about-identity h1,
html[data-theme="light"] .about-section__heading h2,
html[data-theme="light"] .about-sidebar h2,
html[data-theme="light"] .certificate-card h3,
html[data-theme="light"] .youtube-video-card h3 {
  color: var(--about-light-ink) !important;
}

html[data-theme="light"] .about-title {
  color: var(--about-light-purple) !important;
}

html[data-theme="light"] .about-affiliation {
  color: #354158 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .about-affiliation span:not(:last-child)::after {
  color: var(--about-light-purple) !important;
}

html[data-theme="light"] .about-lead,
html[data-theme="light"] .about-richtext,
html[data-theme="light"] .about-richtext p,
html[data-theme="light"] .youtube-feature p,
html[data-theme="light"] .youtube-video-card p,
html[data-theme="light"] .certificate-card p {
  color: var(--about-light-body) !important;
}

html[data-theme="light"] .about-btn {
  color: var(--about-light-purple-dark) !important;
  border-color: #b8aaf2 !important;
  background: #ffffff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .about-btn:hover {
  color: #ffffff !important;
  border-color: var(--about-light-purple-dark) !important;
  background: var(--about-light-purple-dark) !important;
}

html[data-theme="light"] .about-btn--primary {
  color: #ffffff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--about-light-purple), #8b3fc5) !important;
  box-shadow: 0 10px 24px rgba(87, 55, 214, .20) !important;
}

html[data-theme="light"] .about-section {
  border-bottom-color: var(--about-light-line) !important;
}

html[data-theme="light"] .about-section__heading span {
  color: var(--about-light-purple) !important;
  background: #e9e4ff !important;
}

html[data-theme="light"] .certificate-card,
html[data-theme="light"] .youtube-video-card {
  color: var(--about-light-ink) !important;
  border-color: var(--about-light-line) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] .certificate-card__year,
html[data-theme="light"] .certificate-card a,
html[data-theme="light"] .about-richtext a:not([class]) {
  color: var(--about-light-purple-dark) !important;
}

html[data-theme="light"] .about-file-list a,
html[data-theme="light"] .about-files-card a {
  color: var(--about-light-purple-dark) !important;
  border: 1px solid #d8d2f4 !important;
  background: #f7f5ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .youtube-feature {
  color: var(--about-light-ink) !important;
  border: 1px solid #cfc5ff !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(8, 127, 156, .08), transparent 30%),
    linear-gradient(135deg, #f3f0ff, #edf7fa) !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .youtube-feature img {
  border: 1px solid var(--about-light-line) !important;
  box-shadow: 0 10px 26px rgba(37, 31, 78, .11) !important;
}

html[data-theme="light"] .about-sidebar > section,
html[data-theme="light"] .about-contact-card,
html[data-theme="light"] .about-social-card,
html[data-theme="light"] .about-files-card {
  color: var(--about-light-ink) !important;
  border-color: var(--about-light-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(37, 31, 78, .09) !important;
}

html[data-theme="light"] .about-contact-card > a,
html[data-theme="light"] .about-contact-card > div {
  color: #26344b !important;
  border-bottom-color: #e1e5ee !important;
}

html[data-theme="light"] .about-contact-card small,
html[data-theme="light"] .about-social-list small {
  color: #69768c !important;
}

html[data-theme="light"] .about-contact-card strong {
  color: var(--about-light-ink) !important;
}

html[data-theme="light"] .about-social-list a,
html[data-theme="light"] .about-social-list__static {
  color: #28364d !important;
  border-color: #d8d2f4 !important;
  background: #f7f5ff !important;
}

html[data-theme="light"] .about-social-list a:hover {
  color: var(--about-light-purple-dark) !important;
  border-color: #a99bed !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .about-social-list a > span {
  color: #ffffff !important;
  background: var(--about-light-purple) !important;
}

html[data-theme="light"] .about-social-list b {
  color: var(--about-light-purple-dark) !important;
}

html[data-theme="light"] .about-gallery__item {
  border: 1px solid var(--about-light-line) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .10) !important;
}

@media (max-width: 720px) {
  html[data-theme="light"] .about-hero {
    padding-top: 86px !important;
  }

  html[data-theme="light"] .about-identity h1 {
    font-size: clamp(2.8rem, 14vw, 4rem) !important;
  }
}

/* ========================================================================== 
   RESOURCES LIGHT MODE — polished academic resource hub
   ========================================================================== */
html[data-theme="light"] .resources-page {
  --resources-light-ink: #111827;
  --resources-light-body: #46536a;
  --resources-light-purple: #5737d6;
  --resources-light-purple-dark: #3f23b1;
  --resources-light-cyan: #087f9c;
  --resources-light-pink: #b42373;
  --resources-light-line: #d8deea;
  color: var(--resources-light-ink) !important;
  background: #f5f6fb !important;
}

html[data-theme="light"] .resources-hero {
  background:
    radial-gradient(circle at 80% 22%, rgba(8, 127, 156, .09), transparent 29%),
    radial-gradient(circle at 16% 80%, rgba(87, 55, 214, .11), transparent 35%),
    linear-gradient(135deg, #fbfcff 0%, #f4f2ff 58%, #edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .resources-kicker {
  color: var(--resources-light-purple-dark) !important;
  border-color: #a996f5 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 18px rgba(73, 49, 204, .09) !important;
}

html[data-theme="light"] .resources-hero h1,
html[data-theme="light"] .resources-section__head h2,
html[data-theme="light"] .resource-card--page h3 {
  color: var(--resources-light-ink) !important;
}

html[data-theme="light"] .resources-hero p,
html[data-theme="light"] .resource-card--page p,
html[data-theme="light"] .resources-empty {
  color: var(--resources-light-body) !important;
}

/* Resource library pages: Lecture Notes, Videos, Problem Sets and Guidance. */
html[data-theme="light"] body:is(.page-lecture-notes,.page-videos,.page-problem-sets,.page-guidance-sessions) {
  background: #f5f6fb !important;
  color: #111827 !important;
}

html[data-theme="light"] .resource-library-hero {
  background:
    radial-gradient(circle at 82% 25%, rgba(8,127,156,.10), transparent 29%),
    radial-gradient(circle at 18% 82%, rgba(87,55,214,.12), transparent 34%),
    linear-gradient(135deg,#fbfcff 0%,#f3f1ff 58%,#edf7fa 100%) !important;
  border-bottom-color: #d9deea !important;
}

html[data-theme="light"] .resource-library-back { color:#64748b !important; }
html[data-theme="light"] .resource-library-back:hover { color:#4931cc !important; }
html[data-theme="light"] .resource-library-kicker { color:#5737d6 !important; }
html[data-theme="light"] .resource-library-hero h1 { color:#111827 !important; }
html[data-theme="light"] .resource-library-hero p { color:#536078 !important; }

html[data-theme="light"] .resource-library-summary > div {
  background:#ffffff !important;
  border-color:#d7dced !important;
  box-shadow:0 10px 26px rgba(37,31,78,.08) !important;
}
html[data-theme="light"] .resource-library-summary strong { color:#3f23b1 !important; }
html[data-theme="light"] .resource-library-summary span { color:#64748b !important; }

html[data-theme="light"] .resource-library-content {
  background:linear-gradient(180deg,#f8f9fc,#f3f5fa) !important;
}
html[data-theme="light"] .resource-library-search,
html[data-theme="light"] .resource-library-toolbar select {
  color:#1e293b !important;
  background:#ffffff !important;
  border-color:#cfd6e4 !important;
  box-shadow:0 9px 24px rgba(37,31,78,.07) !important;
}
html[data-theme="light"] .resource-library-search input,
html[data-theme="light"] .resource-library-toolbar select { color:#1e293b !important; }
html[data-theme="light"] .resource-library-search input::placeholder { color:#7b879b !important; }

html[data-theme="light"] .resource-course-group {
  background:#ffffff !important;
  border-color:#d7dced !important;
  box-shadow:0 14px 36px rgba(37,31,78,.08) !important;
}
html[data-theme="light"] .resource-course-header {
  background:#f7f5ff !important;
  border-bottom-color:#dcd7f3 !important;
}
html[data-theme="light"] .resource-course-identity > span {
  color:#4931cc !important;
  background:#e9e4ff !important;
  border-color:#cfc5ff !important;
}
html[data-theme="light"] .resource-course-identity small { color:#5737d6 !important; }
html[data-theme="light"] .resource-course-identity h2 { color:#111827 !important; }
html[data-theme="light"] .resource-course-identity p { color:#64748b !important; }
html[data-theme="light"] .resource-course-link {
  color:#4931cc !important;
  background:#ffffff !important;
  border-color:#b9aff0 !important;
}
html[data-theme="light"] .resource-course-link:hover { color:#fff !important; background:#5737d6 !important; }

html[data-theme="light"] .resource-item-card {
  color:#111827 !important;
  background:#ffffff !important;
  border-color:#d9deea !important;
  box-shadow:0 10px 28px rgba(37,31,78,.07) !important;
}
html[data-theme="light"] .resource-item-card:hover {
  border-color:#a99bed !important;
  box-shadow:0 18px 42px rgba(55,43,126,.13) !important;
}
html[data-theme="light"] .resource-item-visual {
  background:linear-gradient(145deg,#eeeaff,#e7f8fb) !important;
}
html[data-theme="light"] .resource-item-visual img { filter:brightness(.86) saturate(1.02) !important; }
html[data-theme="light"] .resource-item-symbol {
  color:#4931cc !important;
  background:rgba(255,255,255,.92) !important;
  border-color:#b9aff0 !important;
}
html[data-theme="light"] .resource-item-extension { color:#fff !important; background:#4931cc !important; }
html[data-theme="light"] .resource-item-body h3 { color:#111827 !important; }
html[data-theme="light"] .resource-item-body p { color:#536078 !important; }
html[data-theme="light"] .resource-item-body time { color:#5737d6 !important; }
html[data-theme="light"] .resource-item-action { color:#4931cc !important; }
html[data-theme="light"] .resource-course-empty,
html[data-theme="light"] .resource-library-empty {
  color:#64748b !important;
  background:#ffffff !important;
  border-color:#b9aff0 !important;
}
html[data-theme="light"] .resource-library-empty h2 { color:#111827 !important; }
html[data-theme="light"] .resource-library-empty p { color:#536078 !important; }

/* Home resource cards need explicit icon and text colors in light mode. */
html[data-theme="light"] .resources-grid .resource-card {
  background:#ffffff !important;
  border-color:#d8dced !important;
  box-shadow:0 12px 30px rgba(37,31,78,.08) !important;
}
html[data-theme="light"] .resources-grid .resource-card:hover {
  border-color:#9c8cea !important;
  box-shadow:0 18px 42px rgba(55,43,126,.14) !important;
}
html[data-theme="light"] .resources-grid .res-ic {
  background:linear-gradient(135deg,#e9e4ff,#e4f7fa) !important;
  border-color:#b9aff0 !important;
}
html[data-theme="light"] .resources-grid .res-ic svg { stroke:#4931cc !important; }
html[data-theme="light"] .resources-grid .resource-title { color:#111827 !important; }
html[data-theme="light"] .resources-grid .resource-desc { color:#536078 !important; }

/* Keep the supervising page consistently light through its full page shell. */
html[data-theme="light"] body.page-supervising-students,
html[data-theme="light"] body.page-supervising-students .page,
html[data-theme="light"] body.page-supervising-students main {
  background:#f5f6fb !important;
  color:#111827 !important;
}

html[data-theme="light"] .resources-content {
  background:
    radial-gradient(circle at 88% 12%, rgba(8, 127, 156, .05), transparent 27%),
    linear-gradient(180deg, #f7f8fc, #f3f5fa) !important;
}

html[data-theme="light"] .resources-section {
  border-bottom-color: var(--resources-light-line) !important;
}

html[data-theme="light"] .resources-section__head span {
  color: var(--resources-light-purple) !important;
}

/* Higher specificity is intentional: the generic main-card rule forces white. */
html[data-theme="light"] main.resources-page .resources-grid--page article.resource-card--page {
  color: var(--resources-light-ink) !important;
  border-color: #d7dced !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(87, 55, 214, .07), transparent 30%),
    #f5f6fb !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .08) !important;
}

html[data-theme="light"] main.resources-page .resources-grid--page article.resource-card--page:hover {
  border-color: #9c8cea !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(87, 55, 214, .11), transparent 32%),
    #f3f1fb !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .14) !important;
}

html[data-theme="light"] .resource-card--page .res-ic {
  color: var(--resources-light-purple-dark) !important;
  border: 1px solid #cec4ff !important;
  background: #e9e4ff !important;
  box-shadow: 0 8px 18px rgba(87, 55, 214, .11) !important;
}

html[data-theme="light"] .resource-type {
  color: var(--resources-light-cyan) !important;
}

html[data-theme="light"] .resource-open {
  color: var(--resources-light-purple-dark) !important;
}

html[data-theme="light"] .resource-open:hover {
  color: var(--resources-light-cyan) !important;
}

html[data-theme="light"] .resource-open--disabled {
  color: #707c91 !important;
}

html[data-theme="light"] .resources-empty {
  border-color: #b9aff0 !important;
  background: #f5f6fb !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .08) !important;
}

@media (max-width: 640px) {
  html[data-theme="light"] .resource-card--page {
    min-height: 240px !important;
  }
}

html[data-theme="light"] .education-card.is-featured .education-card-content {
  border-color: #a99bed !important;
  background: #f3f1fb !important;
  box-shadow: 0 14px 34px rgba(55, 43, 126, .10) !important;
}

html[data-theme="light"] .education-card:hover .education-card-content {
  border-color: #8f7be8 !important;
  box-shadow: 0 20px 44px rgba(55, 43, 126, .15) !important;
}

html[data-theme="light"] .education-period {
  color: var(--education-light-purple-dark) !important;
  border: 1px solid #d8d2f4 !important;
  background: #eeeaff !important;
}

html[data-theme="light"] .education-qualification {
  color: var(--education-light-cyan) !important;
  border: 1px solid #b6e6ed !important;
  background: #e4f7fa !important;
}

html[data-theme="light"] .education-meta {
  color: var(--education-light-cyan) !important;
}

html[data-theme="light"] .education-meta span + span:before {
  color: #9aa5b7 !important;
}

html[data-theme="light"] .education-actions a {
  color: var(--education-light-purple-dark) !important;
  border-color: #b8aaf2 !important;
  background: #f7f5ff !important;
  font-weight: 750 !important;
}

html[data-theme="light"] .education-actions a:hover {
  color: #ffffff !important;
  border-color: var(--education-light-purple) !important;
  background: var(--education-light-purple) !important;
}

html[data-theme="light"] .education-main-image img,
html[data-theme="light"] .education-gallery img {
  border: 1px solid var(--education-light-line) !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .10) !important;
}

html[data-theme="light"] .education-empty,
html[data-theme="light"] .education-empty-state {
  border-color: #b9aff0 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(37, 31, 78, .08) !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] .education-stats span {
    min-width: 0;
  }
}

/* ========================================================================== 
   COURSES CATALOG LIGHT MODE — final frontend pass
   ========================================================================== */
html[data-theme="light"] body.page-courses {
  background: linear-gradient(135deg,#fafbff 0%,#f4f2ff 48%,#eef7fb 100%) !important;
  color: #3f4a60 !important;
}

html[data-theme="light"] body.page-courses #three {
  opacity: .22 !important;
  filter: saturate(.9) contrast(.95) !important;
}

html[data-theme="light"] body.page-courses .courses-catalog-hero {
  padding-top: 92px;
  padding-bottom: 72px;
  background: linear-gradient(135deg,rgba(250,251,255,.96),rgba(242,239,255,.94) 58%,rgba(237,247,252,.94)) !important;
  border-bottom: 1px solid #ddd8f3 !important;
}

html[data-theme="light"] body.page-courses .inner-page-kicker {
  display: inline-flex;
  padding: 9px 15px;
  color: #5135d5 !important;
  background: #eeeaff !important;
  border: 1px solid #c7bbff !important;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

html[data-theme="light"] body.page-courses .courses-catalog-hero h1 {
  color: #141629 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.page-courses .courses-catalog-hero p {
  color: #55637c !important;
}

html[data-theme="light"] body.page-courses .courses-catalog-section {
  background: transparent !important;
}

html[data-theme="light"] body.page-courses .courses-filter-bar {
  gap: 18px;
  padding: 22px;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid #dcdfea !important;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(43,35,82,.10) !important;
  backdrop-filter: blur(14px) !important;
}

html[data-theme="light"] body.page-courses .courses-filter-bar label {
  color: #343b50 !important;
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="light"] body.page-courses .courses-filter-bar :is(input,select) {
  height: 52px;
  color: #202438 !important;
  background: #f7f8fc !important;
  border: 1px solid #ccd2df !important;
  box-shadow: inset 0 1px 2px rgba(35,31,64,.04) !important;
  font-size: 14px;
  font-weight: 600;
}

html[data-theme="light"] body.page-courses .courses-filter-bar input::placeholder {
  color: #758197 !important;
  opacity: 1;
}

html[data-theme="light"] body.page-courses .courses-filter-bar :is(input,select):focus {
  color: #171528 !important;
  background: #fff !important;
  border-color: #6b4cf0 !important;
  box-shadow: 0 0 0 4px rgba(91,61,245,.12) !important;
}

html[data-theme="light"] body.page-courses .courses-results-meta {
  margin: 32px 0 18px;
  color: #5e697f !important;
  font-size: 15px;
  font-weight: 700;
}

html[data-theme="light"] body.page-courses .courses-results-meta strong {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  margin-right: 7px;
  place-items: center;
  color: #fff !important;
  background: linear-gradient(135deg,#5536e8,#7c3aed) !important;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(85,54,232,.23);
  font-size: 15px;
}

html[data-theme="light"] body.page-courses .course-card {
  min-height: 470px !important;
  color: #171528 !important;
  background: rgba(255,255,255,.97) !important;
  border: 1px solid #dcdfea !important;
  box-shadow: 0 16px 40px rgba(40,34,76,.10) !important;
}

html[data-theme="light"] body.page-courses .course-card:hover {
  border-color: #a996fa !important;
  box-shadow: 0 25px 58px rgba(55,43,126,.16) !important;
}

html[data-theme="light"] body.page-courses .course-card__media img {
  filter: brightness(.84) saturate(.96) contrast(1.04) !important;
}

html[data-theme="light"] body.page-courses .course-card:hover .course-card__media img {
  filter: brightness(.95) saturate(1.08) contrast(1.03) !important;
}

html[data-theme="light"] body.page-courses .course-card__level {
  color: #fff !important;
  background: rgba(24,22,43,.84) !important;
  border-color: rgba(255,255,255,.30) !important;
}

html[data-theme="light"] body.page-courses .course-card h3 { color: #171528 !important; }
html[data-theme="light"] body.page-courses .course-card p { color: #5a667c !important; }
html[data-theme="light"] body.page-courses .course-card__credits { color: #657188 !important; }

html[data-theme="light"] body.page-courses .course-card__meta span {
  color: #536078 !important;
  background: #f3f2fb !important;
  border-color: #dcd8ed !important;
}

html[data-theme="light"] body.page-courses .course-card__action {
  color: #4931c8 !important;
  border-top: 1px solid #ebe8f4;
}

html[data-theme="light"] body.page-courses .courses-empty {
  margin-top: 24px;
  color: #4f5b72 !important;
  background: #fff !important;
  border: 1px dashed #a99afa !important;
  border-radius: 18px;
}

@media (max-width: 680px) {
  html[data-theme="light"] body.page-courses .courses-filter-bar { padding: 16px; }
  html[data-theme="light"] body.page-courses .course-card { min-height: 450px !important; }
}
