/* Task 32A: site-shell color tokens. The simulator and wp-admin own their styles. */
:root {
  color-scheme: dark;
  --sl-bg-primary:#080e1d; --sl-bg-secondary:#101b2f;
  --sl-surface:#142238d9; --sl-surface-elevated:#1c2d46e8;
  --sl-text-primary:#f1f6ff; --sl-text-secondary:#b6c5da;
  --sl-border:#a8c9ef32; --sl-shadow:0 18px 44px #0005;
  --sl-accent:#78bdff; --sl-accent-hover:#a6dcff; --sl-radius:20px;
}
:root[data-sl-theme=light] {
  color-scheme: light;
  --sl-bg-primary:#eaf1fb; --sl-bg-secondary:#f7f9ff;
  --sl-surface:#ffffffd9; --sl-surface-elevated:#fff;
  --sl-text-primary:#14243e; --sl-text-secondary:#455b76;
  --sl-border:#6489ba42; --sl-shadow:0 17px 42px #355e9230;
  --sl-accent:#075b9c; --sl-accent-hover:#003c72;
  --bg:var(--sl-bg-primary); --panel:var(--sl-surface);
  --text:var(--sl-text-primary); --muted:var(--sl-text-secondary);
}
body:not(.page-template-page-network-lab) {
  background:radial-gradient(ellipse at 12% 8%,#456ebf16,transparent 36%),radial-gradient(ellipse at 90% 25%,#32b9ca12,transparent 34%),var(--sl-bg-primary);
  color:var(--sl-text-primary);
}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) {
  background:radial-gradient(ellipse at 9% 5%,#b8c6ff8c,transparent 38%),radial-gradient(ellipse at 91% 21%,#b8eff376,transparent 34%),radial-gradient(ellipse at 70% 78%,#ffd2ac5c,transparent 40%),linear-gradient(145deg,#f5f8ff,#e8f1fa);
}
.slv2-theme-toggle {
  flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--sl-border);border-radius:50%;
  background:var(--sl-surface);color:var(--sl-text-primary);font:700 12px/1 system-ui,sans-serif;
  box-shadow:inset 0 1px #ffffff24,0 5px 17px #0002;backdrop-filter:blur(16px);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.slv2-theme-toggle:hover {transform:translateY(-2px);border-color:var(--sl-accent);box-shadow:0 7px 19px #438fce31}
.slv2-theme-toggle:focus-visible {outline:3px solid var(--sl-accent);outline-offset:3px}
.slv2-theme-icon {display:grid;place-items:center;width:100%;height:100%;line-height:1}
.slv2-theme-icon::before {content:'☾';font-size:20px;line-height:1;display:block}
:root[data-sl-theme=light] .slv2-theme-icon::before {content:'☀'}
:root[data-sl-theme=light] .site-header .nav {
  border-color:#678cb64d;background:radial-gradient(ellipse at 3% 0%,#ffd2ac59,transparent 40%),radial-gradient(ellipse at 95% 100%,#b3e8f48c,transparent 48%),#fffffff0;
  box-shadow:inset 0 1px #fff,0 15px 36px #52749c30;
}
:root[data-sl-theme=light] .site-header .brand,
:root[data-sl-theme=light] .site-header .primary-nav a:not(.button) {color:#18304e}
:root[data-sl-theme=light] .site-header .brand small {color:#46627f}
:root[data-sl-theme=light] .site-header .primary-nav a:not(.button):hover,
:root[data-sl-theme=light] .site-header .primary-nav a[aria-current=page] {color:#075b9c}
:root[data-sl-theme=light] .site-header .menu-toggle {color:#18304e;border-color:#7295bd;background:#fff}
:root[data-sl-theme=light] body.home {color:var(--sl-text-primary)}
:root[data-sl-theme=light] body.home .hero-copy,
:root[data-sl-theme=light] body.home .card,
:root[data-sl-theme=light] body:not(.home) .content>.card {
  background:linear-gradient(145deg,#ffffffed,#f0f7ffdb);border-color:var(--sl-border);
  box-shadow:var(--sl-shadow);color:var(--sl-text-primary);
}
:root[data-sl-theme=light] body.home .hero-copy h1,
:root[data-sl-theme=light] body.home .card h2,
:root[data-sl-theme=light] body.home .card h3,
:root[data-sl-theme=light] body.home .section-top h2 {color:var(--sl-text-primary)}
:root[data-sl-theme=light] body.home .hero-copy p,
:root[data-sl-theme=light] body.home .card p,
:root[data-sl-theme=light] body.home .section-top p {color:var(--sl-text-secondary)}
:root[data-sl-theme=light] body.home .hero-copy .skill-line,
:root[data-sl-theme=light] body.home .hero-copy .hero-intro {color:var(--sl-text-secondary)}
:root[data-sl-theme=light] body.home .hero-copy .hero-notes {color:#49637f}
:root[data-sl-theme=light] body.home .hero-copy .eyebrow {color:#075b9c}
:root[data-sl-theme=light] body.home .hero-visual,
:root[data-sl-theme=light] body.home .slv2-network-lab,
:root[data-sl-theme=light] body.home .phase2-section:not(.slv2-network-lab) {color:#f1f6ff}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) input:not([type=checkbox]):not([type=radio]),
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) select,
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) textarea {
  background:#fff;color:#162a43;border-color:#7895b8;
}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) input::placeholder,
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) textarea::placeholder {color:#526a85;opacity:1}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer {color:#3b536e}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer a {color:#164d81}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer a:hover {color:#073358}
@media(max-width:1180px){.slv2-theme-toggle{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.slv2-theme-toggle{transition:none}.slv2-theme-toggle:hover{transform:none}}

/* Task 32B: pair light glass surfaces with dark text, and pastel sections with dark headings.
   Existing dark card designs remain dark islands; no rule below applies to Dark Mode. */
:root[data-sl-theme=light] body.home .hero-copy {
  background:radial-gradient(ellipse at 0 0,#b9e7f695,transparent 62%),
    radial-gradient(ellipse at 100% 100%,#ffe3b078,transparent 61%),
    linear-gradient(135deg,#ffffffed,#eff6ffeb);
  border-color:#729dc46b;box-shadow:inset 0 1px #fff,0 18px 48px #476b9a38;
}
:root[data-sl-theme=light] body.home .hero-copy>h1 {
  color:#122b4a;background-image:linear-gradient(110deg,#10243e 5%,#17558d 55%,#087397 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:none;
}
:root[data-sl-theme=light] body.home .hero-copy>h1 em {color:#075b9c}
:root[data-sl-theme=light] body.home .hero-copy>.eyebrow {
  color:#09577e;background:#d9f0f4b8;border-color:#4e9ab383;text-shadow:none;
}
:root[data-sl-theme=light] body.home .hero-copy>.skill-line,
:root[data-sl-theme=light] body.home .hero-copy>.hero-intro {color:#354c68}
:root[data-sl-theme=light] body.home .hero-copy .skill-word {
  color:#075b9c;text-shadow:none;
}
:root[data-sl-theme=light] body.home .hero-copy .skill-word:after {
  background:linear-gradient(90deg,#1676a5,#d97706 65%,transparent);
}
:root[data-sl-theme=light] body.home .hero-copy .hero-notes {
  color:#405a77;border-top-color:#7396b65c;
}
:root[data-sl-theme=light] body.home .featured-course {
  background:linear-gradient(135deg,#fffffff0,#eaf3fbed);border-color:#6e9ac364;
  box-shadow:inset 0 1px #fff,0 12px 34px #456f9b2c;
}
:root[data-sl-theme=light] body.home .featured-copy h2 {color:#173452}
:root[data-sl-theme=light] body.home .featured-copy p,
:root[data-sl-theme=light] body.home .featured-copy .amount {color:#405a77}
:root[data-sl-theme=light] body.home .orbit-caption {color:#405a77}

:root[data-sl-theme=light] body.home .section-top h2,
:root[data-sl-theme=light] body.home .phase2-heading h2,
:root[data-sl-theme=light] body.home .sl-testimonials-heading h2,
:root[data-sl-theme=light] body.home .slv2-network-lab-heading h2,
:root[data-sl-theme=light] body .slv2-roadmaps-intro h1 {color:#172d4a}
:root[data-sl-theme=light] body.home .section-top p,
:root[data-sl-theme=light] body.home .phase2-heading p,
:root[data-sl-theme=light] body.home .slv2-network-lab-heading>p:last-child,
:root[data-sl-theme=light] body .slv2-roadmaps-intro p {color:#425c78}
:root[data-sl-theme=light] body.home .slv2-why .phase2-heading h2 {
  color:#173452;background-image:linear-gradient(100deg,#16304e,#126e97 55%,#8f4e41);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none;
}
:root[data-sl-theme=light] body.home .slv2-network-lab-eyebrow,
:root[data-sl-theme=light] body.home .slv2-why .phase2-heading .eyebrow,
:root[data-sl-theme=light] body.home .sl-testimonials-eyebrow {color:#92501e}
:root[data-sl-theme=light] body.home .sl-testimonials-intro,
:root[data-sl-theme=light] body.home .sl-testimonials-notice {color:#405a77}
:root[data-sl-theme=light] body.home .sl-testimonials-notice {
  background:#e8f2fac9;border-color:#769bc365;
}

/* Task 32A made generic .card surfaces white; their old light-on-dark descendants needed matching ink. */
:root[data-sl-theme=light] body.home .card h2,
:root[data-sl-theme=light] body.home .card h3,
:root[data-sl-theme=light] body.home .card summary,
:root[data-sl-theme=light] body.home .card blockquote {color:#173452}
:root[data-sl-theme=light] body.home .card p,
:root[data-sl-theme=light] body.home .card small {color:#405a77}
:root[data-sl-theme=light] body.home .card a:not(.button) {color:#075b9c}
:root[data-sl-theme=light] body.home .card a:not(.button):hover {color:#003c72}

/* Course, roadmap, testimonial and counselling cards still have their own dark surfaces.
   Keep their existing light text rather than pairing it with an accidental pale override. */
:root[data-sl-theme=light] body.home #courses .phase2-course,
:root[data-sl-theme=light] body.home .slv2-roadmap-card,
:root[data-sl-theme=light] body.home .sl-testimonials-card,
:root[data-sl-theme=light] body.home .slv2-why-card,
:root[data-sl-theme=light] body.home .phase2-card,
:root[data-sl-theme=light] body.home .phase2-empty,
:root[data-sl-theme=light] body.home .counselling-panel {color:#f1f6ff}
:root[data-sl-theme=light] body.home .phase2-card p,
:root[data-sl-theme=light] body.home .slv2-roadmap-card p,
:root[data-sl-theme=light] body.home .slv2-why-card p {color:#c4d5e8}
:root[data-sl-theme=light] body.home .phase2-empty h3,
:root[data-sl-theme=light] body.home .phase2-card h3 {color:#f4f8ff}
:root[data-sl-theme=light] body.home .slv2-why-card h3 {color:var(--why-accent)}
:root[data-sl-theme=light] body.home .sl-testimonials-student strong {color:#e4e8ed}
:root[data-sl-theme=light] body.home .sl-testimonials-card-title {color:#f4f6f8}
:root[data-sl-theme=light] body.home .slv2-roadmap-card h3 {
  color:var(--rm-accent);background-image:linear-gradient(100deg,var(--rm-accent),var(--rm-accent2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
:root[data-sl-theme=light] body.home .phase2-section {color:#172d4a}
:root[data-sl-theme=light] body.home .phase2-card {color:#f1f6ff}

/* Task 32C: verified cross-page Light Mode contrast conflicts. */
:root[data-sl-theme=light] .site-header .brand:hover {color:#18304e}
:root[data-sl-theme=light] .site-header .brand span {color:#a34b17}
:root[data-sl-theme=light] .site-header .primary-nav .current-menu-item>a:not(.nav-primary-cta),
:root[data-sl-theme=light] .site-header .primary-nav .current_page_item>a:not(.nav-primary-cta),
:root[data-sl-theme=light] .site-header .primary-nav a[aria-current=page]:not(.nav-primary-cta) {
  color:#075b9c!important;border-color:#6395ba73!important;background:#cdeaf281;
}
@media(max-width:1180px){
  :root[data-sl-theme=light] .site-header .primary-nav {
    background:radial-gradient(ellipse at 8% 0,#d7e8f9,transparent 58%),#fffffffa;
    border-color:#7899bd83;box-shadow:inset 0 1px #fff,0 18px 40px #3d668b38;
  }
  :root[data-sl-theme=light] .site-header .nav-account-links {border-top-color:#7398bb5c}
}
/* The transparent Live Batches introduction follows the Light Mode page ink. */
:root[data-sl-theme=light] body.home .slv2-home-interview__heading h2 {color:#172d4a}
:root[data-sl-theme=light] body.home .slv2-home-interview__heading p {color:#425c78}
:root[data-sl-theme=light] body .slv2-live-directory-head h1 {color:#172d4a}
:root[data-sl-theme=light] body .slv2-live-directory-head p {color:#425c78}
:root[data-sl-theme=light] body .slv2-live-directory-head .eyebrow {color:#a3470d}
:root[data-sl-theme=light] body .slv2-roadmaps-eyebrow {color:#91501c}
:root[data-sl-theme=light] body.home .slv2-network-lab-caption {color:#405a77}
:root[data-sl-theme=light] body.home .slv2-network-lab-pulse {background:#1676a5}

/* The original footer remains a dark panel in Dark Mode; Light Mode must pair its new
   dark links with a light footer surface, including branding and small print. */
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer {
  background:linear-gradient(130deg,#ffffffef,#eaf3fbed);border-top-color:#7798ba61;
  color:#3b536e;box-shadow:0 -10px 30px #577fa21a;
}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer .footer-brand,
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer .footer-brand .brand-copy strong {color:#172d4a}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer .footer-brand .brand-copy small,
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer .footer-navigation .copyright {color:#4d637d}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer .footer-tagline {color:#91501c}
:root[data-sl-theme=light] body:not(.page-template-page-network-lab) .site-footer a:hover {color:#003c72}

/* Plugin-rendered page introductions sit outside their dark component cards. */
:root[data-sl-theme=light] body .slv2-portal-auth .slv2-portal-intro h2,
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-heading h2,
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-grid .slv2-portal-main>h3,
:root[data-sl-theme=light] body .slvi-head h2 {color:#172d4a}
:root[data-sl-theme=light] body .slv2-portal-auth .slv2-portal-intro p,
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-heading p,
:root[data-sl-theme=light] body .slvi-head p {color:#425c78}
:root[data-sl-theme=light] body .slv2-portal-auth .slv2-portal-kicker,
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-heading .slv2-portal-kicker,
:root[data-sl-theme=light] body .slvi-head>a {color:#075b9c}
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-heading a {
  color:#075b9c;background:#ffffffd9;border-color:#789abd6b;
}
:root[data-sl-theme=light] body .slv2-portal>.slv2-portal-heading a:hover {color:#003c72;background:#e7f4fb}
:root[data-sl-theme=light] body.home .slnl-home,
:root[data-sl-theme=light] body.home .slnl-home h2 {color:#172d4a}
:root[data-sl-theme=light] body.home .slnl-home p {color:#425c78}
:root[data-sl-theme=light] body.home .slnl-home .slnl-kicker {color:#075b9c}
:root[data-sl-theme=light] body.home .slnl-home .slnl-muted-action {
  color:#294b6c;background:#ffffffd6;border-color:#789abd73;
}

/* Task 32D: Dark batch cards need their own light ink on the Light Mode page. */
:root[data-sl-theme=light] body .slv2-live-directory .phase2-batch,
:root[data-sl-theme=light] body .slv2-live-directory .phase2-empty {color:#f2f7ff}
:root[data-sl-theme=light] body .slv2-live-directory .phase2-batch h3,
:root[data-sl-theme=light] body .slv2-live-directory .phase2-empty h3 {color:#f5f9ff}
:root[data-sl-theme=light] body .slv2-live-directory .phase2-batch p,
:root[data-sl-theme=light] body .slv2-live-directory .phase2-empty p {color:#c5d7e9}
:root[data-sl-theme=light] body .slv2-live-directory .phase2-batch dt {color:#b6cbe2}
:root[data-sl-theme=light] body .slv2-live-directory .phase2-batch dd {color:#f0f6ff}

/* The five interview program cards remain color-coded and animated, with a stable
   dark glass base so the pastel page cannot wash out their title or action. */
:root[data-sl-theme=light] body.home .slv2-interview-card {
  background:radial-gradient(circle at 15% 0%,color-mix(in srgb,var(--slvi-accent) 20%,transparent),transparent 62%),
    linear-gradient(145deg,#263f5bf5,#10213afa 55%,#0b1a2efd);
  color:#f6faff;
}
:root[data-sl-theme=light] body.home .slv2-interview-card strong {color:#f6faff;text-shadow:0 1px 3px #061326}
:root[data-sl-theme=light] body.home .slv2-interview-card__action {color:#dcecff}

/* The testimonial heading used transparent text fill over a pale Dark Mode gradient.
   Replace the gradient itself; deepen the translucent review cards just enough for copy. */
:root[data-sl-theme=light] body.home .sl-testimonials-heading h2 {
  color:#173452;background-image:linear-gradient(105deg,#112944 8%,#155f8b 55%,#315786 94%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none;
}
:root[data-sl-theme=light] body.home .sl-testimonials-card {
  background:radial-gradient(circle at 95% 0,color-mix(in srgb,var(--review-accent) 17%,transparent),transparent 54%),
    linear-gradient(145deg,#21364cef,#0d1c30fa 64%);
}
:root[data-sl-theme=light] body.home #reviews .sl-testimonials-card:first-child {
  background:radial-gradient(ellipse 82% 70% at 11% 0%,#53afe548,transparent 83%),
    radial-gradient(ellipse 80% 80% at 100% 100%,#446fba38,transparent 85%),
    linear-gradient(135deg,#21436bef,#102544f8 50%,#0b1930fc);
}
:root[data-sl-theme=light] body.home .sl-testimonials-quote {color:#e8f1fc;text-shadow:0 1px 2px #061426a8}
:root[data-sl-theme=light] body.home #reviews .sl-testimonials-card:first-child .sl-testimonials-quote {color:#f0f7ff}
