/* Shared mint/teal palette with the water game; utility layer colours retain their meaning. */
:root {
  --school-navy:#173c46; --school-green:#147f7b; --school-yellow:#f2d17d;
  --surface:#fff; --surface-alt:#e8f3ef; --ink:#173c46; --muted:#637e7b;
  --line:#d6e5df; --accent:#147f7b; --accent-soft:#edf7f0;
  --shadow:0 8px 28px #17433812; background:#f6faf9;
}
:root[data-theme=night] {
  --surface:#183431; --surface-alt:#24433f; --ink:#edf7f0; --muted:#b6cfc6;
  --line:#40615a; --accent:#8cd4c6; --accent-soft:#2a5148; --shadow:0 12px 32px #0004;
  background:#142c2a;
}
.app-header {background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 4px 24px #17433808}
.brand {gap:10px;letter-spacing:-1px;font-size:28px}
.brand-ai {color:var(--ink)}
.brand-name {color:var(--ink)}
.brand small {color:var(--muted);font-size:8px;letter-spacing:1.3px}
.brand-symbol {display:grid;place-items:center;width:40px;height:40px;background:var(--school-green);color:#fff;font-size:23px;border-radius:12px}
.app-header .district-search {border-color:var(--line);background:var(--surface-alt)}
.app-header .district-search select {color:var(--ink)}
.app-header .language-switch button,.app-header .presentation-tools button {color:var(--muted);background:transparent;border-color:transparent}
.app-header .language-switch [aria-pressed=true] {background:var(--accent-soft);color:var(--accent);border-color:var(--line)}
.app-header .presentation-tools button:hover,.app-header .language-switch button:hover {background:var(--accent-soft);color:var(--accent)}
.app-header button:focus-visible,.app-header a:focus-visible,.app-header select:focus-visible {outline-color:var(--school-yellow)}
.floating-panel {border-radius:22px;border:1px solid var(--line)}
.left-panel {background:var(--surface)}
.right-panel {background:var(--surface-alt)}
.year-switch button[aria-pressed=true],.primary-action,#lesson-save[aria-pressed=true],.mobile-switch button[aria-pressed=true] {background:var(--school-yellow);border-color:var(--school-yellow);color:var(--school-navy)}
.primary-action {background:var(--school-green);border-color:var(--school-green);color:#fff}
.primary-action:hover {background:#106b68;color:#fff;opacity:1}
.lesson-navigation button[aria-pressed=true] {background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.lesson-navigation button[aria-pressed=true] b {background:var(--school-green);color:#fff}
.lesson-track {background:var(--surface-alt)}
.lesson-bar.supply i,.intro-comparison i {background:var(--school-green)}
.lesson-bar.demand i,.intro-comparison>div:last-child i {background:#d3a45b}
.intro-equation,.intro-numbers,.small-example {border:1px solid var(--line);background:var(--surface-alt)}
#project-intro {border:1px solid var(--line);box-shadow:0 24px 70px #17433822;border-radius:24px}
#project-intro::before {content:"";display:block;width:72px;height:6px;border-radius:6px;background:var(--school-green);margin-bottom:16px}
.intro-kicker,.author-project,.author-history strong {color:var(--accent)}
.author-photo-link {border:1px solid var(--line);box-shadow:0 4px 16px #17433810}
.intro-dots [aria-pressed=true] {background:var(--school-yellow);color:var(--school-navy);border-color:var(--school-yellow)}
#information-dialog {border:1px solid var(--line);border-radius:22px}
.source-icon {background:var(--accent-soft);color:var(--accent)}
.source-card:hover {border-color:var(--accent)!important}
.map-tools button:hover {background:var(--school-yellow);color:var(--school-navy)}
.status-dot {color:var(--accent)}
:root[data-theme=night] .year-switch button[aria-pressed=true] {color:var(--school-navy)}
@media(max-width:1100px){.brand{font-size:24px}.brand small{font-size:7px;letter-spacing:.7px}.brand-symbol{width:30px;height:34px;font-size:20px}}
@media(max-width:760px){.brand{font-size:23px;gap:6px}.brand small{font-size:6px}.brand-symbol{width:25px;height:29px;font-size:17px}.app-header{border-bottom-width:1px}#project-intro{padding:20px}.floating-panel{border-radius:16px}}

/* Persistent entry to the classroom adventure. */
.app-header .game-entry{display:inline-flex;align-items:center;white-space:nowrap;background:var(--school-yellow);color:var(--school-navy);border-radius:9px;padding:9px 13px;font-size:12px;font-weight:700}
@media(max-width:760px){.app-header .game-entry{order:4;font-size:10px;padding:7px 9px}}

/* Keep geography quiet behind the lesson panels; overlays are not filtered. */
:root:not([data-theme=night]) .map-workspace .leaflet-tile-pane{filter:saturate(.65) sepia(.06)}
#map-root{background:var(--surface-alt)}
.station-label,.district-label,.network-tooltip{border-radius:8px;box-shadow:0 3px 10px #17433812}
.map-approximation,.map-tools{border-radius:12px}
:root:not([data-theme=night]) .resource-label{border-color:#6eaaa5}
:root[data-theme=night] .brand-symbol{background:#75b9a9;color:#142c2a}
:root[data-theme=night] .primary-action{background:#8cd4c6;border-color:#8cd4c6;color:#142c2a}
:root[data-theme=night] .primary-action:hover{background:#a5dfd3;color:#142c2a}
