/*
 * MIAWS Brand System — /brand.css
 * ============================================================
 * Single source of truth for the visual identity across all
 * static pages (about, apply, curriculum, faculty, topics, etc.)
 *
 * Applied via <link rel="stylesheet" href="/brand.css"> injected
 * as the LAST stylesheet in every static page's <head>, so these
 * rules cascade over the per-page inline <style> block.
 *
 * Design contract:
 *   Background  — animated pastel gradient, 45s mesh flow, same
 *                 as the main conversational canvas at miaws.com
 *   Logo font   — DePixelBreit (local) → 'Press Start 2P' (gfont fallback)
 *   Body font   — Inter 300 (unchanged)
 *   Text        — dark-on-light: rgba(30,15,50,…) — same tokens
 *                 as the student portal
 *   Nav         — frosted glass light (white 55% opacity, blur 14px)
 *   Cards       — rgba(255,255,255,0.50) surfaces, light borders
 *   Accent      — #8e72d5 purple remains for CTAs and tags
 *   Motion      — honours prefers-reduced-motion
 * ============================================================ */

/* ── Pixel logo font (same file the main app uses) ── */
@font-face {
  font-family: 'DePixelBreit';
  src: url('/fonts/DePixelBreit.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Animated blob position properties ── */
@property --mb1x { syntax: '<percentage>'; initial-value:  5%; inherits: false; }
@property --mb1y { syntax: '<percentage>'; initial-value: 55%; inherits: false; }
@property --mb2x { syntax: '<percentage>'; initial-value: 92%; inherits: false; }
@property --mb2y { syntax: '<percentage>'; initial-value: 18%; inherits: false; }
@property --mb3x { syntax: '<percentage>'; initial-value: 72%; inherits: false; }
@property --mb3y { syntax: '<percentage>'; initial-value: 90%; inherits: false; }
@property --mb4x { syntax: '<percentage>'; initial-value: 40%; inherits: false; }
@property --mb4y { syntax: '<percentage>'; initial-value:  5%; inherits: false; }

@keyframes brandMeshFlow {
  0%   { --mb1x:  5%; --mb1y: 55%; --mb2x: 92%; --mb2y: 18%; --mb3x: 72%; --mb3y: 90%; --mb4x: 40%; --mb4y:  5%; }
  12%  { --mb1x: 45%; --mb1y: 22%; --mb2x: 60%; --mb2y: 72%; --mb3x: 88%; --mb3y: 35%; --mb4x: 12%; --mb4y: 58%; }
  25%  { --mb1x: 12%; --mb1y: 82%; --mb2x: 85%; --mb2y:  8%; --mb3x: 30%; --mb3y: 92%; --mb4x: 78%; --mb4y: 20%; }
  37%  { --mb1x: 68%; --mb1y: 45%; --mb2x: 22%; --mb2y: 60%; --mb3x: 82%; --mb3y: 18%; --mb4x: 50%; --mb4y: 88%; }
  50%  { --mb1x:  8%; --mb1y: 18%; --mb2x: 90%; --mb2y: 82%; --mb3x: 48%; --mb3y: 55%; --mb4x: 20%; --mb4y: 35%; }
  62%  { --mb1x: 72%; --mb1y: 78%; --mb2x: 35%; --mb2y: 12%; --mb3x: 15%; --mb3y: 70%; --mb4x: 88%; --mb4y: 42%; }
  75%  { --mb1x: 28%; --mb1y: 38%; --mb2x: 78%; --mb2y: 55%; --mb3x: 62%; --mb3y: 28%; --mb4x: 35%; --mb4y: 75%; }
  87%  { --mb1x: 55%; --mb1y: 88%; --mb2x: 15%; --mb2y: 35%; --mb3x: 92%; --mb3y: 72%; --mb4x: 62%; --mb4y: 12%; }
  100% { --mb1x:  5%; --mb1y: 55%; --mb2x: 92%; --mb2y: 18%; --mb3x: 72%; --mb3y: 90%; --mb4x: 40%; --mb4y:  5%; }
}

/* ── Gradient goes on <html> so it fills 100vh behind scroll ── */
html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 90% 70% at var(--mb1x) var(--mb1y), #a8bef7 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at var(--mb2x) var(--mb2y), #f4a8d8 0%, transparent 58%),
    radial-gradient(ellipse 65% 55% at var(--mb3x) var(--mb3y), #f7b8e2 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at var(--mb4x) var(--mb4y), #b8d8fd 0%, transparent 50%),
    #c4b4ee !important;
  animation: brandMeshFlow 45s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { animation: none; }
}

/* ── Remove the per-page dark body background ── */
body {
  background: transparent !important;
  background-image: none !important;
  /* Readable dark text on the light pastel canvas — matches SPA body style */
  color: rgba(30,15,50,0.70) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  font-size: 16px !important;
}

/* ── Main content area — wider than legacy 860px, matches SPA padding ── */
main {
  max-width: 900px !important;
  padding: 2.5rem clamp(20px,4vw,40px) 5rem !important;
}

/* ── Override dark CSS custom properties → light tokens ── */
:root {
  --text:       rgba(30,15,50,0.88) !important;
  --text-muted: rgba(30,15,50,0.55) !important;
  --bg:         transparent !important;
  --surface:    rgba(255,255,255,0.52) !important;
  --border:     rgba(30,15,50,0.11) !important;
  --max-w:      900px !important;
  /* Remap light-on-dark colours to readable dark-on-light equivalents */
  --light-blue: #8e72d5 !important;   /* remap to brand purple for dark-on-light */
  --blue:       #5a78e8 !important;
  --pink:       #c050a0 !important;   /* was #e050a8 — darkened for legibility */
}

/* ── Header layout (provides sticky + flex layout for pages without inline header CSS) ── */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}
header > nav {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0.85rem 1.5rem !important;
}
header > nav > ul {
  list-style: none !important;
  display: flex !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
}
header > nav .logo {
  flex-shrink: 0 !important;
  text-decoration: none !important;
}
header > nav .cta-nav {
  margin-left: auto !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* ── Logo: pixel font, dark color ── */
.logo,
nav .logo,
header .logo,
a.logo {
  font-family: 'DePixelBreit', 'Press Start 2P', 'Courier New', monospace !important;
  font-size: 1.05rem !important;
  font-weight: normal !important;
  letter-spacing: 0.04em !important;
  color: rgba(30,15,50,0.88) !important;
}
.logo:hover,
nav .logo:hover,
a.logo:hover {
  color: rgba(30,15,50,0.50) !important;
  opacity: 1 !important;
}

/* ── Navigation bar → frosted glass light ── */
header {
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(30,15,50,0.09) !important;
}

nav a {
  color: rgba(30,15,50,0.52) !important;
}
nav a:hover,
nav a[aria-current="page"] {
  color: rgba(30,15,50,0.88) !important;
}

/* CTA button stays purple — keep gradient, just ensure text is white */
nav .cta-nav,
.cta-nav {
  background: linear-gradient(135deg, #8e72d5, #6a55c0) !important;
  color: #fff !important;
  border: none !important;
}
nav .cta-nav:hover,
.cta-nav:hover {
  opacity: 0.88 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM — matched to FoundationsPage SPA design tokens (S object)
   dark88 = rgba(30,15,50,0.88)  dark70 = rgba(30,15,50,0.70)
   dark55 = rgba(30,15,50,0.55)  dark38 = rgba(30,15,50,0.38)
   ══════════════════════════════════════════════════════════════════════════ */

/* Safety net: neutralise the old white→blue gradient-clip-text trick on ALL
   headings. -webkit-text-fill-color wins over color when present, so we must
   reset it before setting our own value. */
h1, h2, h3, h4, h5, h6 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: rgba(30,15,50,0.88) !important;
  color: rgba(30,15,50,0.88) !important;
}

/* ── H1 / .page-title — same style as SPA hero, content-page scale ── */
/* SPA hero: clamp(28px, 5vw, 72px). Static pages: same style, smaller max. */
h1,
.page-title {
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.1 !important;
  color: rgba(30,15,50,0.88) !important;
  -webkit-text-fill-color: rgba(30,15,50,0.88) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin-bottom: 0.55rem !important;
}

/* ── .page-subtitle — dim secondary line under H1 ── */
.page-subtitle {
  font-size: 1.0rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: rgba(30,15,50,0.55) !important;
  margin-bottom: 2.25rem !important;
}

/* ── H2 — section headings ── */
h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  color: rgba(30,15,50,0.88) !important;
  -webkit-text-fill-color: rgba(30,15,50,0.88) !important;
  margin: 2rem 0 0.65rem !important;
}

/* ── H3 — label / eyebrow style (matches SPA labelStyle) ── */
/* SPA: 0.70rem / w500 / 0.16em tracking / uppercase / dark38 */
h3 {
  font-size: 0.70rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(30,15,50,0.38) !important;
  -webkit-text-fill-color: rgba(30,15,50,0.38) !important;
  line-height: 1.4 !important;
  margin: 1.5rem 0 0.4rem !important;
}

/* ── Body text — matches SPA bodyStyle ── */
/* SPA: 0.94rem / w400 / lh1.65 / dark70 */
p {
  font-size: 0.94rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: rgba(30,15,50,0.70) !important;
  margin-bottom: 1rem !important;
}
p:last-child { margin-bottom: 0 !important; }
strong {
  color: rgba(30,15,50,0.88) !important;
  font-weight: 600 !important;
}
em {
  color: rgba(30,15,50,0.88) !important;
  font-style: italic !important;
}
li {
  color: rgba(30,15,50,0.70) !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
}

/* ── Breadcrumb — small dim nav trail ── */
.breadcrumb {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  color: rgba(30,15,50,0.38) !important;
  margin-bottom: 1.75rem !important;
}
.breadcrumb a,
.breadcrumb-sep {
  color: rgba(30,15,50,0.38) !important;
}
.breadcrumb a:hover { color: rgba(30,15,50,0.75) !important; }

/* "MIAWS" home crumb → match logo: DePixelBreit pixel font, lowercase */
.breadcrumb a:first-child {
  font-family: 'DePixelBreit', 'Press Start 2P', 'Courier New', monospace !important;
  font-size: 0.62rem !important;
  font-weight: normal !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase !important;
}

/* ── Cards → light glass surfaces ── */
.card {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(30,15,50,0.10) !important;
  backdrop-filter: blur(8px) !important;
}
.card h2,
.card h3 {
  color: rgba(30,15,50,0.88) !important;
}

.card-tag {
  background: rgba(142,114,213,0.15) !important;
  color: #8e72d5 !important;
}

/* ── Stat / info boxes — matches SPA stat card style ── */
.stat-box,
.stat,
.stats-grid > * {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(30,15,50,0.10) !important;
  color: rgba(30,15,50,0.88) !important;
  backdrop-filter: blur(8px) !important;
}
/* Stat number — large bold dark figure (SPA: huge, w700, dark88) */
.stat-number {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: rgba(30,15,50,0.88) !important;
  -webkit-text-fill-color: rgba(30,15,50,0.88) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin-bottom: 0.3rem !important;
}
/* Stat label — tiny uppercase dim (SPA: labelStyle dark38) */
.stat-label {
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(30,15,50,0.38) !important;
}

/* ── Tables, lists ── */
table { border-color: rgba(30,15,50,0.10) !important; }
th { color: rgba(30,15,50,0.52) !important; background: rgba(255,255,255,0.35) !important; }
td { color: rgba(30,15,50,0.75) !important; border-color: rgba(30,15,50,0.07) !important; }
tr:hover td { background: rgba(255,255,255,0.45) !important; }

/* ── Site header — pixel-matched to FoundationsPage SPA header ── */
header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(0,0,0,0.28) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  display: block !important;
  padding: 0 !important;
  max-width: none !important;
}
.site-header-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 clamp(20px,4vw,40px) !important;
  min-height: 52px !important;
  height: 52px !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ── Brand: logo + program switcher ── */
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.hdr-logo {
  font-family: 'DePixelBreit', 'Press Start 2P', monospace !important;
  font-size: 15px !important;
  font-weight: normal !important;
  color: rgba(255,255,255,1.00) !important;
  text-decoration: none !important;
  letter-spacing: 0.04em !important;
  flex-shrink: 0;
}
header.site-header a.hdr-logo,
header.site-header .hdr-logo {
  color: rgba(255,255,255,1.00) !important;
  font-size: 15px !important;
}
.hdr-logo:hover,
header.site-header a.hdr-logo:hover { color: #fff !important; }

/* ── Program switcher — mirrors ProgramSwitcher component ── */
.hdr-pills {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 100px !important;
  padding: 3px !important;
  gap: 2px !important;
}
/* Individual program pill — inactive state */
.hdr-pills .hdr-pill {
  display: inline-flex !important;
  align-items: center !important;
  font-family: Inter, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.38) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 100px !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  line-height: 1 !important;
}
.hdr-pills .hdr-pill:hover {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.88) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* ── Center nav — mirrors fp-nav-links + fp-nav-link ── */
header.site-header nav,
.hdr-center {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 1 !important;
  justify-content: center !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Section links: Timeline, Modules, Workshops, Faculty */
header.site-header nav a,
.hdr-center a {
  font-family: Inter, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
  padding: 6px 13px !important;
  border-radius: 100px !important;
  border: none !important;
  background: transparent !important;
  white-space: nowrap !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}
header.site-header nav a:hover,
.hdr-center a:hover {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.95) !important;
}
/* "How to apply" pill — matches the SPA onHowToApply button */
header.site-header nav a.hdr-pill,
.hdr-center a.hdr-pill {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  padding: 5px 16px !important;
  border-radius: 100px !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.88) !important;
}
header.site-header nav a.hdr-pill:hover,
.hdr-center a.hdr-pill:hover {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}
/* --sm modifier kept for backward compat */
.hdr-pill--sm { text-transform: none !important; }

/* ── Right side ── */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
/* Student Portal — mirrors fp-portal-btn */
.hdr-portal-btn {
  font-family: Inter, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.38) !important;
  background: none !important;
  text-decoration: none !important;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  white-space: nowrap !important;
  transition: color 0.18s, border-color 0.18s !important;
  display: inline-flex !important;
  align-items: center !important;
}
.hdr-portal-btn:hover {
  color: rgba(255,255,255,0.65) !important;
  border-color: rgba(255,255,255,0.20) !important;
}
/* Separator — mirrors fp-portal-sep */
.hdr-sep {
  display: inline-block !important;
  width: 1px !important;
  height: 16px !important;
  background: rgba(255,255,255,0.12) !important;
  flex-shrink: 0 !important;
}
/* ViewSwitcher container — mirrors fp-view-switcher-wrap */
.hdr-vsw {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 100px !important;
  padding: 3px !important;
  gap: 2px !important;
}
/* ViewSwitcher pills — inactive */
.hdr-vsw-pill {
  display: inline-flex !important;
  align-items: center !important;
  font-family: Inter, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.38) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 100px !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.18s ease !important;
  line-height: 1 !important;
}
.hdr-vsw-pill:hover {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.88) !important;
  border-color: rgba(255,255,255,0.14) !important;
}
/* Active/current view pill (Home) */
.hdr-vsw-active {
  color: rgba(255,255,255,0.88) !important;
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.14) !important;
  font-weight: 400 !important;
  cursor: default !important;
}
/* Language selector — dropdown */
.hdr-lang-wrap { position: relative !important; }
.hdr-lang-btn {
  display: inline-flex !important; align-items: center !important; gap: 3px !important;
  font-family: Inter, sans-serif !important; font-size: 0.60rem !important;
  letter-spacing: 0.08em !important; color: rgba(255,255,255,0.48) !important;
  background: none !important; border: 1px solid transparent !important;
  border-radius: 6px !important; padding: 4px 7px !important;
  cursor: default !important; white-space: nowrap !important; line-height: 1 !important;
  transition: color 0.15s, border-color 0.15s !important;
}
.hdr-lang-btn:hover {
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
.hdr-lang-btn[aria-expanded="true"] {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.22) !important;
}
.hdr-lang-menu {
  display: none !important; position: absolute !important; right: 0 !important;
  top: calc(100% + 4px) !important;
  background: rgba(18,14,38,0.96) !important; backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 8px !important;
  padding: 4px !important; min-width: 64px !important; z-index: 200 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
}
.hdr-lang-btn[aria-expanded="true"] + .hdr-lang-menu { display: block !important; }
.hdr-lang-opt {
  display: block !important; padding: 6px 10px !important;
  color: rgba(255,255,255,0.65) !important; font-size: 0.70rem !important;
  font-family: Inter, sans-serif !important; font-weight: 500 !important;
  letter-spacing: 0.08em !important; text-decoration: none !important;
  border-radius: 5px !important; white-space: nowrap !important;
  transition: background 0.12s, color 0.12s !important;
}
.hdr-lang-opt:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }

/* ── Responsive — priority order:
   The full static header (logo + hdr-pills | Timeline+Faculty+Apply | Portal+HOME+AI CANVAS+Lang)
   needs ≈ 940px at full load. Breakpoints must fire BEFORE that threshold.

   1. How to apply         (last to disappear — .hdr-pill in .hdr-center)
   2. AI Canvas / Home     (.hdr-right — hide at ≤ 560px)
   3. Mindhub/Foundations/Advanced  (.hdr-pills — hide at ≤ 860px)
   4. Student Portal · Faculty · section links  (first to disappear, from ≤ 1050px)
   ─────────────────────────────────────────────────────────────────────────────── */

/* ≤ 1050px: hide Student Portal + separator (priority 4 — lowest) */
@media (max-width: 1050px) {
  .hdr-portal-btn { display: none !important; }
  .hdr-sep { display: none !important; }
}

/* ≤ 900px: hide plain section links (Timeline/Modules/Workshops/Faculty)
   in center nav; "How to apply" (.hdr-pill) stays visible */
@media (max-width: 900px) {
  .hdr-center a:not(.hdr-pill) { display: none !important; }
}

/* ≤ 860px: hide Mindhub / Foundations / Advanced program switcher (priority 3) */
@media (max-width: 860px) {
  .hdr-pills { display: none !important; }
}

/* ≤ 560px: hide Home + AI Canvas (priority 2) */
@media (max-width: 560px) {
  .hdr-right { display: none !important; }
}

/* ≤ 380px: hide How to apply (priority 1 — last; only logo remains) */
@media (max-width: 380px) {
  .hdr-center { display: none !important; }
}

/* ── Footer ── */
footer {
  background: rgba(255,255,255,0.30) !important;
  border-top: 1px solid rgba(30,15,50,0.08) !important;
  color: rgba(30,15,50,0.42) !important;
  /* reset the old flex layout — inner .footer-inner handles it */
  display: block !important;
  padding: 0 !important;
  max-width: none !important;
}
footer a { color: rgba(30,15,50,0.52) !important; text-decoration: none; }
footer a:hover { color: rgba(30,15,50,0.88) !important; }

/* Rich footer grid */
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-logo {
  font-family: 'DePixelBreit', 'Press Start 2P', monospace !important;
  font-size: 1rem !important;
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(30,15,50,0.80) !important;
}
.footer-tagline {
  font-size: 0.78rem !important;
  font-weight: 300;
  margin: 0 0 1rem !important;
  line-height: 1.5;
  color: rgba(30,15,50,0.52) !important;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  color: rgba(30,15,50,0.42) !important;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.footer-social a:hover { opacity: 1; color: rgba(30,15,50,0.88) !important; }
.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.4;
  display: block;
  color: rgba(30,15,50,0.42) !important;
}
.footer-col-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30,15,50,0.38) !important;
  margin-bottom: 0.75rem;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
}
.footer-col nav a {
  font-size: 0.82rem !important;
  font-weight: 300;
  line-height: 2.2;
  text-decoration: none !important;
  color: rgba(30,15,50,0.48) !important;
  transition: color 0.15s;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.footer-col nav a:hover { color: rgba(30,15,50,0.88) !important; }
.footer-advisor-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  background: rgba(142,114,213,0.88) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.footer-advisor-btn:hover { background: rgba(142,114,213,1) !important; color: #fff !important; }
.footer-apply-links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-apply-links a {
  font-size: 0.75rem !important;
  font-weight: 300;
  color: rgba(30,15,50,0.40) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  line-height: 2;
  transition: color 0.15s;
}
.footer-apply-links a:hover { color: rgba(30,15,50,0.80) !important; }
.footer-sponsors-row {
  border-top: 1px solid rgba(30,15,50,0.08);
  padding-top: 1.25rem;
}
.footer-sponsors-label {
  display: block;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30,15,50,0.28) !important;
  margin-bottom: 1rem;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logos img {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 110px !important;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.45;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-logos { gap: 1.25rem; }
  .footer-logos img { height: 28px; }
}

/* ── Misc interactive ── */
a { color: #8e72d5; }
a:hover { color: #6a55c0; }

hr {
  border-color: rgba(30,15,50,0.09) !important;
}

input, textarea, select {
  background: rgba(255,255,255,0.65) !important;
  border-color: rgba(30,15,50,0.18) !important;
  color: rgba(30,15,50,0.88) !important;
}
input::placeholder, textarea::placeholder {
  color: rgba(30,15,50,0.35) !important;
}

/* ── Tags / badges / labels ── */
.tag, .badge, .label {
  background: rgba(142,114,213,0.15) !important;
  color: #8e72d5 !important;
  border-color: rgba(142,114,213,0.25) !important;
}

/* ── Module / step numbered circles ── */
.step-number,
.module-number {
  background: rgba(30,15,50,0.88) !important;
  color: #fff !important;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  background: #8e72d5 !important;
  color: #fff !important;
}

/* ── Code / pre blocks ── */
code, pre {
  background: rgba(255,255,255,0.55) !important;
  color: rgba(30,15,50,0.82) !important;
  border-color: rgba(30,15,50,0.10) !important;
}

/* ── Curriculum / module page specific elements ── */

/* Module hero image border (was white — near-invisible on light bg) */
.module-hero {
  border-color: rgba(30,15,50,0.10) !important;
}

/* Topic badges (were light-blue-on-dark) */
.topic-badge {
  background: rgba(90,120,232,0.12) !important;
  border-color: rgba(90,120,232,0.25) !important;
  color: #5a78e8 !important;
}

/* Deliverable box (was blue tint on dark bg — readable on light) */
.deliverable {
  background: rgba(90,120,232,0.08) !important;
  border-left-color: #5a78e8 !important;
  color: rgba(30,15,50,0.65) !important;
}
.deliverable strong { color: #5a78e8 !important; }

/* Module-nav prev/next links */
.module-nav-link {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(30,15,50,0.11) !important;
}
.module-nav-link:hover { border-color: rgba(90,120,232,0.4) !important; }
.module-nav-dir { color: rgba(30,15,50,0.42) !important; }
.module-nav-title { color: rgba(30,15,50,0.82) !important; }

/* FAQ accordion */
.faq-item, details.faq-item {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(30,15,50,0.11) !important;
}
details.faq-item[open] { border-color: #5a78e8 !important; }
.faq-q, summary.faq-q { color: rgba(30,15,50,0.88) !important; }
summary.faq-q::before { color: #8e72d5 !important; }
.faq-a { color: rgba(30,15,50,0.60) !important; }

/* CTA block (was dark purple gradient on dark — fine on light) */
.cta-block {
  background: linear-gradient(135deg, rgba(90,120,232,0.10), rgba(142,114,213,0.12)) !important;
  border-color: rgba(90,120,232,0.22) !important;
}

/* Faculty cards */
.faculty-card,
.faculty-profile-header {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(30,15,50,0.10) !important;
}

/* Sections with dark glass backgrounds */
section, .section, .content-section {
  background: transparent !important;
}
div[style*="rgba(26,21,48"],
div[style*="rgba(255,255,255,0.06"],
div[style*="background: rgba(26"] {
  background: rgba(255,255,255,0.45) !important;
}

/* Stat numbers on curriculum/about pages */
.stat-number, .stat-value {
  color: rgba(30,15,50,0.88) !important;
}

/* Timeline / step items */
.timeline-item, .step-item, .step {
  background: rgba(255,255,255,0.45) !important;
  border-color: rgba(30,15,50,0.10) !important;
}

/* Pill / chip tags that inherit white text */
.pill, .chip {
  background: rgba(255,255,255,0.52) !important;
  color: rgba(30,15,50,0.75) !important;
  border-color: rgba(30,15,50,0.12) !important;
}

/* Faculty bio page CTA button + expertise tag (legacy dark-theme classes) */
.cta-btn {
  color: rgba(30,15,50,0.82) !important;
  border-color: rgba(30,15,50,0.22) !important;
}
.cta-btn:hover {
  color: rgba(30,15,50,0.95) !important;
  border-color: rgba(30,15,50,0.45) !important;
}
.expertise-tag {
  background: rgba(142,114,213,0.15) !important;
  color: #8e72d5 !important;
  border-color: rgba(142,114,213,0.25) !important;
}
