:root {
  color-scheme: light;
  --color-primary: #446ccf;
  --color-primary-dark: #23407a;
  --color-primary-light: #e7ecfb;
  --color-accent: #e15b34;
  --color-accent-dark: #c14a2a;
  --color-accent-text: #a94427;
  --color-heading: #23407a;
  --color-bg: #fbfaf8;
  --color-bg-alt: #f1f5f4;
  --color-surface: #ffffff;
  --color-text: #1f2a2a;
  --color-text-muted: #5b6b6a;
  --color-border: #e1e8e6;
  --color-header-bg: rgba(251, 250, 248, 0.92);
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 64, 122, 0.08);
  --max-width: 1140px;
}

/* Dark and high-contrast palettes, switched by the accessibility panel's
   data-theme attribute on <html>. --color-primary-dark is left constant
   across themes on purpose: the footer and CTA banner are always a solid
   dark panel with white text, regardless of theme. --color-heading and
   --color-accent-text are the pieces that actually need to invert for
   readability against a light vs dark page background. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #10151f;
  --color-bg-alt: #171d2b;
  --color-surface: #1b2230;
  --color-text: #e7ebf5;
  --color-text-muted: #a9b2c6;
  --color-border: #2c3547;
  --color-primary: #8aa4f5;
  --color-primary-light: #202b46;
  --color-heading: #dbe4fb;
  --color-accent-text: #f0a688;
  --color-header-bg: rgba(16, 21, 31, 0.85);
}

:root[data-theme="high-contrast"] {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-muted: #1a1a1a;
  --color-border: #000000;
  --color-primary: #0033cc;
  --color-primary-light: #ffffff;
  --color-heading: #000000;
  --color-accent-text: #7a1d00;
  --color-header-bg: rgba(255, 255, 255, 0.98);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-heading);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-light); }

.btn-block { display: block; text-align: center; width: 100%; }

/* Arrow text link, used for lighter secondary calls to action */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
}
.link-arrow:hover { text-decoration: none; color: var(--color-primary-dark); }
.link-arrow .arrow { transition: transform 0.15s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* Top utility bar */
#site-topbar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
}
.topbar-inner a { color: var(--color-text-muted); font-weight: 500; }
.topbar-inner a:hover { color: var(--color-primary); text-decoration: none; }

@media (max-width: 560px) {
  .topbar-inner { justify-content: center; gap: 12px 20px; }
}

/* Header / Nav */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }

/* Mark and wordmark are separate images so they can be sized independently.
   The wordmark is fixed-color artwork, so the matching light/dark variant is
   swapped by CSS based on the accessibility panel's theme, rather than
   trying to recolor the SVG itself. The mark's colors already hold up on
   both light and dark backgrounds, so it never needs to swap. */
.logo-mark-img { height: 44px; width: auto; display: block; }
.logo-word-img { height: 20px; width: auto; display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.footer-brand .logo-word-img { width: 100%; max-width: 90px; height: auto; }

/* Below this width there isn't room for the full wordmark next to the nav
   toggle and accessibility trigger, so the header falls back to the mark
   alone. #site-header raises specificity above the light/dark theme rules
   above, which would otherwise re-show whichever variant matches the theme. */
@media (max-width: 560px) {
  #site-header .logo-word-img { display: none; }
}

.a11y-wrapper { position: relative; }
.a11y-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.a11y-trigger:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.a11y-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
}
.nav-link.active { color: var(--color-primary); }

.nav-book { padding: 10px 22px; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-link-caret { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { transition: transform 0.15s ease; }
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: var(--color-bg-alt);
  text-decoration: none;
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  display: block;
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-book { align-self: flex-start; }

  .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-caret { display: none; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 16px;
    margin-top: 2px;
  }
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-text);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-media {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  text-align: center;
  padding: 24px;
}
.hero-media.has-photo {
  aspect-ratio: 4 / 5;
  border: none;
  padding: 0;
  overflow: hidden;
}
.hero-media.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A small circular avatar instead of a large photo, e.g. the homepage hero.
   Smaller on mobile, larger on desktop once the hero switches to 2 columns
   (see the .hero-inner breakpoint below). */
.hero-media.is-avatar {
  width: 170px;
  height: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto;
  border: none;
  padding: 0;
  overflow: hidden;
}
.hero-media.is-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
@media (min-width: 900px) {
  .hero-media.is-avatar { width: 280px; height: 280px; }
}

/* Small supporting photos, e.g. the About page gallery */
.photo-figure { margin: 0; }
.photo-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.photo-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 88px 0; }
section[id] { scroll-margin-top: 96px; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.grid {
  display: grid;
  gap: 40px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none;
}

/* Cards that hold an interactive form or need visual containment keep a light boundary */
.card-boxed {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-boxed .btn { margin-top: auto; white-space: nowrap; }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cta-banner {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Forms */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* Footer */
#site-footer {
  background: var(--color-primary-dark);
  color: #cfe2e0;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
#site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
#site-footer a { color: #c9d6f7; }
#site-footer p { color: #aab8e8; margin-bottom: 6px; }
.footer-copy {
  text-align: center;
  margin: 32px 0 0;
  color: #aab8e8;
  font-size: 0.85rem;
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.page-hero {
  padding: 56px 0 40px;
  background: var(--color-primary-light);
  text-align: center;
}
.page-hero p { max-width: 560px; margin: 0 auto; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY PANEL
   ═══════════════════════════════════════════════════════ */
.a11y-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 340px;
  max-width: calc(100vw - 1rem);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  padding: 16px;
  z-index: 200;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  scrollbar-width: thin;
}
@media (max-width: 480px) {
  .a11y-panel {
    position: fixed;
    top: 57px;
    left: 8px;
    right: 8px;
    bottom: auto;
    width: auto;
    height: calc(100dvh - 69px);
    max-width: none;
    max-height: calc(100dvh - 76px);
  }
}
.a11y-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.a11y-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.a11y-header > div { min-width: 0; flex: 1; }
.a11y-title { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: var(--color-heading); }
.a11y-subtitle { font-size: 12px; margin: 0; color: var(--color-text-muted); line-height: 1.4; }
.a11y-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
}
.a11y-close:hover { opacity: 1; background: var(--color-primary-light); }

.a11y-section + .a11y-section { margin-top: 14px; }
.a11y-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.a11y-tile-grid { display: grid; gap: 8px; }
.a11y-tile-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a11y-tile-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.a11y-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.a11y-tile:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.a11y-tile:active { transform: scale(0.98); }
.a11y-tile.active,
.a11y-tile[aria-pressed="true"],
.a11y-tile[aria-checked="true"] {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.a11y-tile-icon { display: inline-flex; align-items: center; justify-content: center; height: 24px; flex-shrink: 0; }
.a11y-tile-label { display: block; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.a11y-tile-step {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.3;
  display: none;
}
.a11y-tile.active .a11y-tile-step,
.a11y-tile[aria-pressed="true"] .a11y-tile-step { display: inline-block; }

.a11y-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.a11y-reset:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ── Panel stays legible regardless of the settings it controls ── */
.a11y-panel,
.a11y-panel p,
.a11y-panel h1, .a11y-panel h2, .a11y-panel h3, .a11y-panel h4,
.a11y-panel li, .a11y-panel span, .a11y-panel button {
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: inherit;
}
#a11y-wrapper img, #a11y-wrapper svg { opacity: 1 !important; visibility: visible !important; }

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY FEATURE TWEAKS
   Each feature is opt-in via a data attribute on <html>.
   ═══════════════════════════════════════════════════════ */

/* ── OpenDyslexic font, only downloaded when data-dyslexic is active ── */
@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
[data-dyslexic] body,
[data-dyslexic] h1, [data-dyslexic] h2, [data-dyslexic] h3, [data-dyslexic] h4,
[data-dyslexic] p, [data-dyslexic] li, [data-dyslexic] span,
[data-dyslexic] a, [data-dyslexic] label, [data-dyslexic] button,
[data-dyslexic] input, [data-dyslexic] textarea {
  font-family: "OpenDyslexic", sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
}
[data-dyslexic] body { line-height: 1.85; }
[data-dyslexic] p, [data-dyslexic] li { line-height: 1.85; }
[data-dyslexic] .a11y-panel,
[data-dyslexic] .a11y-panel * {
  font-family: inherit !important;
  letter-spacing: normal;
  word-spacing: normal;
}
[data-dyslexic] .a11y-panel { font-family: var(--font-body) !important; }

/* ── Bigger Text: scales the root font-size ── */
:root[data-text-size="1"] { font-size: 110%; }
:root[data-text-size="2"] { font-size: 120%; }
:root[data-text-size="3"] { font-size: 132%; }

/* ── Line Height ── */
[data-line-height="1"] p, [data-line-height="1"] li,
[data-line-height="1"] h1, [data-line-height="1"] h2,
[data-line-height="1"] h3, [data-line-height="1"] h4 { line-height: 1.75 !important; }
[data-line-height="2"] p, [data-line-height="2"] li,
[data-line-height="2"] h1, [data-line-height="2"] h2,
[data-line-height="2"] h3, [data-line-height="2"] h4 { line-height: 2.1 !important; }

/* ── Letter / Word Spacing ── */
[data-letter-spacing="1"] p, [data-letter-spacing="1"] li,
[data-letter-spacing="1"] h1, [data-letter-spacing="1"] h2,
[data-letter-spacing="1"] h3, [data-letter-spacing="1"] h4,
[data-letter-spacing="1"] a { letter-spacing: 0.05em !important; word-spacing: 0.1em !important; }
[data-letter-spacing="2"] p, [data-letter-spacing="2"] li,
[data-letter-spacing="2"] h1, [data-letter-spacing="2"] h2,
[data-letter-spacing="2"] h3, [data-letter-spacing="2"] h4,
[data-letter-spacing="2"] a { letter-spacing: 0.12em !important; word-spacing: 0.2em !important; }

/* ── Highlight Links ── */
[data-highlight-links] a:not(#a11y-wrapper a):not(.skip-link) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  outline: 2px dashed currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}
[data-highlight-links] a:not(#a11y-wrapper a):hover,
[data-highlight-links] a:not(#a11y-wrapper a):focus-visible {
  background-color: rgba(250, 204, 21, 0.35) !important;
  color: #1a1a1a !important;
  outline-style: solid;
}

/* ── Align Left: forces centred text blocks to the left edge ── */
[data-text-align-left] p, [data-text-align-left] li,
[data-text-align-left] h1, [data-text-align-left] h2,
[data-text-align-left] h3, [data-text-align-left] h4,
[data-text-align-left] .section-head,
[data-text-align-left] .page-hero,
[data-text-align-left] .page-hero p,
[data-text-align-left] .cta-banner { text-align: left !important; }
[data-text-align-left] .page-hero p,
[data-text-align-left] .section-head { margin-left: 0; margin-right: 0; }

/* ── Saturation ── */
[data-saturation="1"] body { filter: saturate(0.5); }
[data-saturation="2"] body { filter: grayscale(1); }

/* ── Big Cursor ── */
[data-big-cursor],
[data-big-cursor] *:not(input):not(textarea) {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3v17.5l4.5-4.5h7L5 3z'/></svg>") 4 4, auto !important;
}
[data-big-cursor] a, [data-big-cursor] button,
[data-big-cursor] [role="button"], [data-big-cursor] [role="radio"],
[data-big-cursor] label {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 11V5a2 2 0 1 1 4 0v6'/><path d='M13 8V4a2 2 0 1 1 4 0v8'/><path d='M17 8a2 2 0 1 1 4 0v6a7 7 0 0 1-7 7h-2a7 7 0 0 1-6-3l-3-5a2 2 0 0 1 3-3l1 1V6a2 2 0 1 1 4 0v5'/></svg>") 8 4, pointer !important;
}

/* ── Hide Images: keep layout, hide visuals ── */
[data-hide-images] img:not(.a11y-keep-img) { opacity: 0 !important; visibility: hidden !important; }

/* ── Reduced Motion (data attribute, in addition to the OS-level media query already set above) ── */
[data-reduced-motion] *, [data-reduced-motion] *::before, [data-reduced-motion] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
