/* Visible on all corporate pages without changing original logo or navigation. */
.croskt-site-theme-toggle {
  position: fixed; right: 18px; bottom: 96px; z-index: 9000;
  color: #f9f7ff; background: #272043; border: 1px solid #7e6cba;
  padding: 11px 16px; border-radius: 999px; font: 700 12px Inter, sans-serif;
  box-shadow: 0 8px 24px #090e2033; cursor: pointer;
}
.croskt-site-theme-toggle:focus-visible {outline:3px solid #806cf0;outline-offset:3px}
html[data-croskt-site-theme="light"] {
 color-scheme: light;
}
html[data-croskt-site-theme="light"] body {
 background: #f5f8ff !important; color: #25334f !important;
}
html[data-croskt-site-theme="light"] :is(main,section,article,footer):not(.bg-transparent) {
 --tw-bg-opacity: 1;
}
/* Lighten utility surfaces only when they are not intentionally dark. */
html[data-croskt-site-theme="light"] :is(.bg-midnight-navy,.bg-deep-slate,.bg-\[\#0B1020\],.bg-\[\#10152B\]):not(.croskt-dark-surface):not(.croskt-logo-badge):not(.croskt-dark-surface *) {
 background-color: #f0f3ff !important;
}
/* Do not recolor every heading and .text-white globally: dark cards keep dark backgrounds.
   Only explicitly light-surface programme cards receive dark text. */
html[data-croskt-site-theme="light"] .stacked-card-light :is(h1,h2,h3,h4,p) { color:#20324f!important; }
html[data-croskt-site-theme="light"] :is(header#mainHeader,.fixed.top-0.z-50) {
 background:rgba(249,250,255,.96)!important; border-color:#d6dff0!important;
}
html[data-croskt-site-theme="light"] :is(.bg-\[\#162039\],.bg-\[\#0F172A\]) {
 background-color: #e8eefc!important;
}
html[data-croskt-site-theme="light"] a:not(.btn-primary-gradient):not([class*=bg-gradient]):hover {color:#3853bb}
html[data-croskt-site-theme="light"] #logoRevealOverlay {display:none!important}
html[data-croskt-site-theme="light"] .croskt-site-theme-toggle {
 color:#1d2d53;background:#fff;border-color:#b5c3e3;
}
@media (prefers-reduced-motion:reduce) {.croskt-site-theme-toggle{transition:none}}

/* 2026-11-19 button contrast fix — light theme; preserve original dark theme. */
:root[data-croskt-site-theme="light"],html.croskt-light-mode {
  --croskt-btn-ink: #172b49;
  --croskt-btn-surface: #f5f7ff;
  --croskt-btn-surface-hover: #e2e9ff;
  --croskt-btn-primary: #33449b;
  --croskt-btn-primary-hover: #26377f;
  --croskt-btn-on-primary: #ffffff;
  --croskt-btn-focus: #204a9c;
}
:root[data-croskt-site-theme="dark"] {
  --croskt-btn-ink: #f4f6ff;
  --croskt-btn-surface: #202b48;
  --croskt-btn-surface-hover: #303d61;
  --croskt-btn-primary: #33449b;
  --croskt-btn-primary-hover: #26377f;
  --croskt-btn-on-primary: #ffffff;
  --croskt-btn-focus: #b59af5;
}
html[data-croskt-site-theme="light"] :is(.btn-primary-gradient,.btn-primary,button.bg-gradient-to-r,a.bg-gradient-to-r) {
  background:var(--croskt-btn-primary)!important;
  color:var(--croskt-btn-on-primary)!important;
}
html[data-croskt-site-theme="light"] :is(.btn-primary-gradient,.btn-primary,button.bg-gradient-to-r,a.bg-gradient-to-r):is(:hover,:active) {
  background:var(--croskt-btn-primary-hover)!important;
  color:var(--croskt-btn-on-primary)!important;
}
html[data-croskt-site-theme="light"] :is(.btn-primary-gradient,.btn-primary,button.bg-gradient-to-r,a.bg-gradient-to-r) :is(span,svg,i) {
  color:inherit!important;
}
html[data-croskt-site-theme="light"] :is(.btn-secondary,.prog-filter-btn,#closeSidebarNav) {
  background:var(--croskt-btn-surface)!important;
  color:var(--croskt-btn-ink)!important;
}
html[data-croskt-site-theme="light"] :is(.btn-secondary,.prog-filter-btn,#closeSidebarNav):is(:hover,:active) {
  background:var(--croskt-btn-surface-hover)!important;
  color:var(--croskt-btn-ink)!important;
}
html[data-croskt-site-theme="light"] :is(.btn-secondary,.prog-filter-btn,#closeSidebarNav) :is(span,svg,i) {color:inherit!important}
html[data-croskt-site-theme="light"] :is(button,a[role="button"],a[class*="btn"]):focus-visible {
  outline:3px solid var(--croskt-btn-focus)!important;
  outline-offset:3px;
}
html[data-croskt-site-theme="light"] :is(.btn-primary-gradient,.btn-primary,.btn-secondary,.prog-filter-btn):disabled {
  opacity:1;filter:saturate(.65);cursor:not-allowed;
}

/* Interactive journey stage buttons, plus dark-mode filter contrast. */
html[data-croskt-site-theme="light"] .step-node-btn,
html[data-croskt-site-theme="light"] .step-node-btn:is(:hover,:active) {
 background:#f5f7ff!important;color:#172b49!important;border-color:#c7d4eb!important;
}
html[data-croskt-site-theme="light"] .step-node-btn :is(.text-white,.text-slate-400) {
 color:#172b49!important;
}
html[data-croskt-site-theme="dark"] .prog-filter-btn:not(.bg-\[\#7560C9\]),
html[data-croskt-site-theme="dark"] .btn-secondary {
 background:#24334f!important;color:#f4f6ff!important;
}
html[data-croskt-site-theme="dark"] .prog-filter-btn:not(.bg-\[\#7560C9\]):is(:hover,:active),
html[data-croskt-site-theme="dark"] .btn-secondary:is(:hover,:active){background:#364669!important;color:#f4f6ff!important}
html[data-croskt-site-theme="dark"] :is(.prog-filter-btn,.btn-secondary) :is(span,i,svg) {color:inherit!important}

/* Dark-mode navigation controls on dark surfaces. */
html[data-croskt-site-theme="dark"] #closeSidebarNav {
 background:#24334f!important;color:#f4f6ff!important;
}
html[data-croskt-site-theme="dark"] #closeSidebarNav:is(:hover,:active) {
 background:#364669!important;color:#f4f6ff!important;
}
html[data-croskt-site-theme="dark"] #skipIntroBtn {
 color:#f4f6ff!important;
}


/* 2026-11-21 — Preserve readable text on intentionally dark programme cards.
   The broad light-mode h1-h4/p rule above made headings dark on #10152B. */
html[data-croskt-site-theme="light"] .stacked-card-dark {
 background:#10152B!important;
 color:#f5f7ff!important;
}
html[data-croskt-site-theme="light"] .stacked-card-dark :is(h1,h2,h3,h4) {
 color:#f8f9ff!important;
}
html[data-croskt-site-theme="light"] .stacked-card-dark :is(p,.text-slate-300,.text-slate-400) {
 color:#d9e4f6!important;
}
html[data-croskt-site-theme="light"] .stacked-card-dark .group-hover\:text-\[\#B59AF5\]:hover {color:#d2b9ff!important;}
html[data-croskt-site-theme="light"] .stacked-card-dark :is(.bg-black\/40,.bg-black\/30) {
 background:rgba(0,0,0,.35)!important;
 color:#e5edff!important;
}
html[data-croskt-site-theme="light"] .stacked-card-dark :is(.text-\[\#B59AF5\],.text-\[\#B9DBFF\]) {color:#d7c6ff!important;}
html[data-croskt-site-theme="light"] .stacked-card-dark a.bg-\[\#7560C9\] {color:#fff!important;}
html[data-croskt-site-theme="light"] .stacked-card-light :is(h1,h2,h3,h4) {color:#162340!important;}
html[data-croskt-site-theme="light"] .stacked-card-light p {color:#354765!important;}
/* Accessible pale card labels, while retaining the purple/blue identity. */
html[data-croskt-site-theme="light"] .stacked-card-light .text-\[\#7560C9\] {color:#5136a3!important;}

/* Semantic surface roles: explicit text/icon contrast without modifying the logo pixels. */
html[data-croskt-site-theme="light"] .croskt-dark-surface {
  background-color:#0b1020!important;
  color:#f3f6ff!important;
}
html[data-croskt-site-theme="light"] .croskt-dark-surface :is(h1,h2,h3,h4,h5,h6,.text-white) {
  color:#f8faff!important;
}
html[data-croskt-site-theme="light"] .croskt-dark-surface :is(p,.text-slate-300,.text-slate-400,.text-slate-500) {
  color:#dbe5f7!important;
}
html[data-croskt-site-theme="light"] .croskt-dark-surface :is(svg,i) {color:inherit;stroke:currentColor;}
html[data-croskt-site-theme="light"] .croskt-dark-surface .text-\[\#4DD9E8\] {color:#76e5f1!important;}
html[data-croskt-site-theme="light"] .croskt-dark-surface a:not([class*=btn]):not([class*=bg-]):not(.text-white) {color:#dce8fa!important;}
/* A solid navy backing is essential for the unchanged white CROSK-T mark. */
html[data-croskt-site-theme="light"] .croskt-logo-badge {
  background:#10152b!important;
  border:1px solid #7869bf!important;
  box-shadow:0 5px 18px rgba(16,21,43,.25)!important;
}
html[data-croskt-site-theme="light"] .croskt-logo-badge img {
  opacity:1!important;filter:none!important;
}
html[data-croskt-site-theme="light"] #mainHeader :is(svg,i) {color:inherit;stroke:currentColor;}
html[data-croskt-site-theme="light"] .croskt-dark-surface .btn-cyan {
  color:#f4fbff!important; background:#14516c!important;border-color:#3585a0!important;
}
html[data-croskt-site-theme="light"] .croskt-dark-surface .btn-secondary {
  background:#f5f7ff!important;color:#172b49!important;
}

/* A light CTA on the intentionally dark hero must keep a readable foreground. */
html[data-croskt-site-theme="light"] .croskt-dark-surface a[href="/student-portal"] {
 background-color:#f2f5ff!important;
 color:#172b49!important;
 border-color:#c3d1e6!important;
}
html[data-croskt-site-theme="light"] .croskt-dark-surface a[href="/student-portal"] :is(span,svg) {
 color:inherit!important;
 stroke:currentColor;
}

/* Header may gain .scrolled while user is in light mode. Never leave a dark
   scrolled header with dark navigation links. */
html.croskt-light-mode header#mainHeader.scrolled,
html[data-croskt-site-theme="light"] header#mainHeader.scrolled {
 background:rgba(249,250,255,.97)!important;
 border-bottom-color:#cbd5e5!important;
 box-shadow:0 8px 25px rgba(19,36,70,.13)!important;
}
html[data-croskt-site-theme="light"] #mainHeader :is(.nav-link,a:not(.btn-primary-gradient):not([class*=btn])) {
 color:#203451!important;
}
/* Dedicated dark hero retains its original midnight backdrop in light mode. */
html[data-croskt-site-theme="light"] main .croskt-dark-surface.bg-\[\#0B1020\] {
 background:#0b1020!important;
}
html[data-croskt-site-theme="light"] main .croskt-dark-surface .bg-\[\#10152B\] {
 background:#10152b!important;
}
html[data-croskt-site-theme="light"] main .croskt-dark-surface :is(.text-\[\#B8C3DA\],.text-slate-300) {
 color:#dae4f7!important;
}
html[data-croskt-site-theme="light"] main .croskt-dark-surface .text-\[\#B59AF5\] {
 color:#d0baff!important;
}
