.theme-toggle:not([hidden]) {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  flex:none; min-height:44px; padding:0 .65rem; border:1px solid var(--line);
  border-radius:999px; background:var(--paper); color:var(--ink); font-weight:700;
}
.theme-toggle [aria-hidden=true] { font-size:1.05rem; }
.theme-toggle[aria-pressed=false] .theme-moon,
.theme-toggle[aria-pressed=true] .theme-sun { opacity:.45; }
.languages { align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.languages .theme-toggle { margin-inline-start:.45rem; }
@media(max-width:420px) {
  .language-inner { flex-wrap:wrap; justify-content:flex-end; }
  .languages .theme-toggle { margin-inline-start:.15rem; }
}
:root[data-theme=dark] {
  color-scheme:dark;
  --paper:#261821; --ink:#fff1e7; --muted:#d7bec9; --wine:#ffba99; --line:#755462;
  --sales-wine:#8d4260; --sales-dark:#ffddd0; --sales-gold:#ffc28d;
  --dark-panel:#35212d; --dark-raised:#432b39;
}
[data-theme=dark] :is(body,.language-bar,.sales-header,.header-social,footer,.site-fees .pricing,.lesson,.booking-section,.map-section,.route-summary,.research-section,.expertise-section,.teaching-value) {
  background:var(--paper); color:var(--ink);
}
[data-theme=dark] :is(.sales-mobile nav,.path,.value-grid article,.social-card,.activity-grid article,.milestone,.route-cost,.travel-note,.price-card,.sales-route,.privacy-paper,.calendar-panel,.request-panel,.venue-panel,.faq-group,.learning-outcome,.recommended-cost,.long-route,dialog) {
  background:var(--dark-panel); color:var(--ink); border-color:var(--line);
}
[data-theme=dark] :is(.site-about .paths,.teaching-value .value-grid) > article:nth-child(n),
[data-theme=dark] :is(.site-fees .price-card,.site-fees .travel-note,.site-courses .sales-route) { background:var(--dark-panel); color:var(--ink); border-color:var(--line); }
[data-theme=dark] :is(.site-about .paths,.teaching-value .value-grid) > article:nth-child(2),
[data-theme=dark] .site-fees .price-card:nth-child(2) { background:#233d35; }
[data-theme=dark] :is(.site-about .paths,.teaching-value .value-grid) > article:nth-child(3) { background:#29364f; }
[data-theme=dark] :is(.path p,.value-grid p,.pricing-lead,.price-card small,.privacy-paper p,.booking-small,.booking-lead,.route-lead,.route-travel,.calendar-legend,.header-social a,.privacy-link,.site-about .path .path-index) { color:var(--muted); }
[data-theme=dark] .sales-header a[aria-current=page]:not(.sales-cta) { color:var(--wine); }
[data-theme=dark] .sales-header a.sales-cta:hover { background:#6f334d; }
[data-theme=dark] #programmes { background:linear-gradient(130deg,#2d1a28,#512439 72%,#662e43); }
[data-theme=dark] #programmes .programme-card {
  --course:#ffc1a6; --tint:#4d293c;
  color:var(--ink); border-top-color:var(--course);
}
[data-theme=dark] #programmes .programme-card:nth-child(2) { --course:#b1e3c8; --tint:#233d35; }
[data-theme=dark] #programmes .programme-card:nth-child(3) { --course:#c6d7ff; --tint:#29364f; }
[data-theme=dark] #programmes .programme-card p { color:var(--ink); }
[data-theme=dark] #programmes .programme-card .card-entry { border-color:#fae3e260; }
[data-theme=dark] .sales-course-link { color:#261821; }
[data-theme=dark] #programmes :is(.audience-grid article,.included,.schedule-note) { background:var(--dark-raised); color:var(--ink); border-color:#ae7387; }
[data-theme=dark] #programmes .audience-grid > article:nth-child(2) { background:#233d35; border-color:#84ab9b; }
[data-theme=dark] #programmes :is(.audience-grid p,.audience-grid h4,.included li,.included h3) { color:var(--ink); }
[data-theme=dark] .site-courses .route-detail .sales-route > summary { background:#4d293c; color:#ffe1e9; border-color:#9f667f; }
[data-theme=dark] .site-courses .route-2 .sales-route > summary { background:#233d35; color:#d4f1e0; border-color:#709785; }
[data-theme=dark] .site-courses .route-3 .sales-route > summary { background:#29364f; color:#e1eaff; border-color:#7185ad; }
[data-theme=dark] .site-courses .sales-route > summary span { background:#fff2; color:inherit; }
[data-theme=dark] :is(.calendar-panel button,.request-panel input,.request-panel select,.request-panel textarea,.map-reset,.contact .btn) { background:var(--dark-raised); color:var(--ink); border-color:var(--line); }
[data-theme=dark] .calendar-panel button[aria-pressed=true] { background:#9d486d; color:white; }
[data-theme=dark] :is(.cred-item img[src*="cred-"],img[src$="mfs-dark.png"]) { filter:invert(1) grayscale(1); }
[data-theme=dark] .social-card:hover { background:#4a2e3f; }
