@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #004F71;
  --navy-dark: #01344c;
  --gold: #F2A900;
  --hotspot: #F2A900;
  --cyan: #7ec9d8;
  --cyan-deep: #3aa0b5;
  --cat-all: #004F71;
  --cat-heart: #004F71;
  --cat-lungs: #004F71;
  --cat-food: #004F71;
  --cat-kidneys: #004F71;
  --cat-bones: #004F71;
  --cat-brain: #004F71;
  --cat-hormones: #004F71;
  --cat-living: #004F71;
  --cat-screening: #004F71;
  --cat-diabetes: var(--cat-hormones);
  --cat-mind: var(--cat-brain);
  --cat-habits: var(--cat-living);
  --active-cat: var(--navy);
  --mist: #f5f9fb;
  --canvas: #EDF6FA;
  --body-panel: #EDF6FA;
  --card: #ffffff;
  --text: #142027;
  --muted: #3d5561;
  --line: #c5d6df;
  --danger: #9b2c2c;
  --shadow: 0 10px 28px rgba(0, 79, 113, 0.08);
  --radius: 1.15rem;
  --body-size: 1.125rem;
  --page: 78rem;
  --page-gutter: 1rem;
  --page-pad-left: max(var(--page-gutter), env(safe-area-inset-left));
  --page-pad-right: max(var(--page-gutter), env(safe-area-inset-right));
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: var(--mist);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button,
.btn,
a.btn,
.filter-chip,
.bottom-nav-btn,
.acc,
.hotspot,
.topic-pick,
.menu-btn,
.menu-close,
.detail-close,
.text-size-btn {
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip: auto;
  clip-path: none;
  overflow: visible;
  z-index: 20;
  background: var(--navy);
  color: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-banner,
.preview-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.7rem;
  background: #fff6d6;
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover, a.btn:hover { background: var(--navy-dark); color: #fff; }
.btn-secondary { background: #e8f3f7; color: var(--navy); }
.btn-secondary:hover { background: #d7ebf2; color: var(--navy-dark); }
.text-btn {
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  max-height: 100vh;
  max-height: -webkit-fill-available;
  max-height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overscroll-behavior-y: contain;
}
.app-shell:has(.explore-main),
body:has(.explore-main) {
  background: var(--canvas);
}
.header-bar {
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.header-bar :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.app-header {
  width: min(var(--page), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: var(--page-pad-left);
  padding-right: var(--page-pad-right);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand:hover { color: #fff; }
.brand > span:last-child { min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-mark svg,
.brand-mark-img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}
.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.2;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.desk-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}
.desk-nav-link {
  appearance: none;
  background: none;
  border: 0;
  color: #fff;
  min-height: 44px;
  padding: 0.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.desk-nav-link:hover { color: rgba(255, 255, 255, 0.88); }
.desk-nav-link[aria-current="page"] {
  color: #F2A900;
  font-weight: 700;
}
.header-bar .desk-nav-link:focus-visible {
  outline: 3px solid #F2A900;
  outline-offset: 3px;
}
.menu-btn,
.menu-close {
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 0.75rem;
  color: var(--navy);
  flex-shrink: 0;
}
.header-bar .menu-btn { color: #fff; }
.header-bar .menu-btn:hover,
.header-bar .menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.menu-btn:hover,
.menu-close:hover,
.menu-btn:focus-visible,
.menu-close:focus-visible {
  background: #e7f3f8;
  outline: 0;
}
.menu-btn svg,
.menu-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-action svg { fill: currentColor; }
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(1, 34, 48, 0.42);
  display: flex;
  justify-content: flex-end;
}
.menu-overlay[hidden] { display: none !important; }
.site-menu {
  width: min(22.5rem, 100%);
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: auto;
  padding: 1rem 1.15rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.site-menu:focus { outline: 0; }
.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.site-menu-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.menu-action {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  color: var(--navy-dark);
  font-weight: 600;
  text-align: left;
}
.menu-action:hover,
.menu-action:focus-visible {
  border-color: var(--navy);
  background: #e7f3f8;
  outline: 0;
}
.menu-about {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.menu-about h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.menu-about p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
img.ems-mark-large {
  display: block;
  width: min(9.5rem, 46vw);
  height: auto;
  margin: 0.4rem 0 0.85rem;
  background: transparent;
}

.app-main {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0.55rem 1rem 0.8rem;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.explore-main {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--canvas);
}
.explore-main[data-view="explore"],
.explore-main[data-view="settings"],
.explore-main[data-view="about"] {
  background: #fff;
}
.explore-nav[hidden] { display: none !important; }
.explore-nav {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 79, 113, 0.14);
  padding: 0.25rem 0;
  padding-left: max(0.5rem, env(safe-area-inset-left));
  overflow-x: clip;
}
.explore-nav-inner {
  position: relative;
  width: 100%;
  min-width: 0;
}
.pill-scroll-btn {
  display: none;
}
.desk-footer {
  display: none;
}
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.4rem 0.8rem;
  padding-right: 2.75rem;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
}
.filters.is-dragging { cursor: grabbing; }
.filters::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.filters > * {
  flex-shrink: 0;
}
.filter-chip {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy-dark);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  font-weight: 600;
}
.filters.is-dragging .filter-chip { pointer-events: none; }
.filter-chip .chip-label { white-space: nowrap; }
.filter-chip:hover { background: #f4f8fb; }
.filter-chip:focus-visible,
.acc:focus-visible,
.topic-pick:focus-visible,
.topic-row:focus-visible,
.explore-row:focus-visible,
.panel-back:focus-visible,
.detail-close:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.filter-chip[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.experience[hidden] { display: none !important; }
.experience {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  min-height: 0;
  background: var(--canvas);
  padding: 0.3rem 0.55rem 0.55rem;
  padding-left: max(0.55rem, env(safe-area-inset-left));
  padding-right: max(0.55rem, env(safe-area-inset-right));
  overflow: hidden;
}
.flip-scene {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
}
/* Classic card: whole .flip-card spins; faces glued to front/back. */
.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border-radius: 1.25rem;
  transform: rotateY(0deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 12px 32px rgba(0, 79, 113, 0.14);
  background: transparent;
}
.flip-card.is-flipped {
  transform: rotateY(180deg);
}
.flip-card .flip-face,
.flip-card .flip-front,
.flip-card .flip-back,
.flip-card .map-canvas.flip-front,
.flip-card .side-panel.flip-back {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border-radius: 1.25rem;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card .flip-front,
.flip-card .map-canvas.flip-front {
  transform: rotateY(0deg);
  z-index: 2;
  background-color: #E5F1F7 !important;
  background-image: linear-gradient(180deg, #F5FAFD 0%, #E5F1F7 100%) !important;
  overflow: hidden;
}
.flip-card .flip-back,
.flip-card .side-panel.flip-back {
  transform: rotateY(180deg);
  z-index: 1;
  background: #fff !important;
  background-image: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.flip-card .flip-back .panel-body,
.flip-card .flip-back .topic-journey,
.flip-card .flip-back .panel-intro {
  background: #fff;
}
.flip-card.is-flipped .flip-front { pointer-events: none; }
.flip-card:not(.is-flipped) .flip-back { pointer-events: none; }
.flip-scene:has(.flip-card.is-turning),
.experience:has(.flip-card.is-turning),
.explore-main:has(.flip-card.is-turning) {
  overflow: visible;
}

.map-canvas {
  position: relative;
  background-color: var(--body-panel);
  background-image: linear-gradient(180deg, #F5FAFD 0%, #E5F1F7 100%);
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 0.2rem 0.35rem 0.35rem;
  overflow: hidden;
  height: 100%;
}
.whole-body {
  margin: 0;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy-dark);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
}
.whole-body:hover { background: #f4f8fb; }
.whole-body[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.map-caption {
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  max-width: 10.5rem;
  z-index: 2;
}
.map-caption h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  line-height: 1.2;
}
.map-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.body-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.body-stage.is-zoomed {
  overflow: hidden;
}
.body-figure {
  position: relative;
  display: block;
  isolation: isolate;
  max-width: 100%;
  width: max-content;
  height: max-content;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.body-figure.is-snapping {
  transition: none;
}
.body-art {
  display: block;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}
.body-tint {
  display: none;
}
.body-stage.is-zoomed .body-figure {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  max-height: none;
}
.map-canvas:has(.body-stage.is-zoomed) {
  overflow: hidden;
}
#list-view {
  width: min(36rem, 100%);
  padding: 1rem;
}
.body-stage[hidden],
.topic-list[hidden],
.map-caption[hidden],
.detail-backdrop[hidden] {
  display: none !important;
}

.hotspot {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 4;
  padding: 0;
  overflow: visible;
}
.hotspot:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.hotspot-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}
.hotspot-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
  border: 2px solid rgba(242, 169, 0, 0.9);
  box-shadow: 0 0 10px 2px rgba(242, 169, 0, 0.45);
  transform: scale(1);
  transform-origin: 50% 50%;
  animation: hotspot-halo var(--halo-duration, 2.8s) cubic-bezier(0.22, 1, 0.36, 1) var(--halo-delay, 0s) infinite;
}
.hotspot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
  border: 2px solid rgba(242, 169, 0, 0.65);
  box-shadow: 0 0 8px 1px rgba(242, 169, 0, 0.3);
  transform: scale(1);
  transform-origin: 50% 50%;
  animation: hotspot-halo var(--halo-duration, 2.8s) cubic-bezier(0.22, 1, 0.36, 1) calc(var(--halo-delay, 0s) - (var(--halo-duration, 2.8s) * 0.5)) infinite;
}
.hotspot[data-halo="0"] { --halo-duration: 2.40s; --halo-delay: -0.35s; }
.hotspot[data-halo="1"] { --halo-duration: 2.55s; --halo-delay: -1.10s; }
.hotspot[data-halo="2"] { --halo-duration: 2.70s; --halo-delay: -1.85s; }
.hotspot[data-halo="3"] { --halo-duration: 2.85s; --halo-delay: -0.70s; }
.hotspot[data-halo="4"] { --halo-duration: 3.00s; --halo-delay: -2.20s; }
.hotspot[data-halo="5"] { --halo-duration: 3.15s; --halo-delay: -1.40s; }
.hotspot[data-halo="6"] { --halo-duration: 3.30s; --halo-delay: -2.55s; }
.hotspot[data-halo="7"] { --halo-duration: 2.50s; --halo-delay: -0.15s; }
.hotspot[data-halo="8"] { --halo-duration: 2.80s; --halo-delay: -1.95s; }
.hotspot[data-halo="9"] { --halo-duration: 3.05s; --halo-delay: -2.80s; }
.hotspot[data-halo="10"] { --halo-duration: 3.20s; --halo-delay: -1.60s; }
.hotspot[data-halo="11"] { --halo-duration: 2.65s; --halo-delay: -0.90s; }
.hotspot[aria-pressed="true"] .hotspot-halo,
.hotspot[aria-pressed="true"]::before {
  animation: none;
  transform: scale(1);
  opacity: 0;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.hotspot[aria-pressed="true"] .hotspot-mark {
  width: 18px;
  height: 18px;
  border-width: 3.5px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(255, 255, 255, 0.85);
}

/* Larger topic hotspots when zoomed in — easier to tap on phones */
.body-stage.is-zoomed .hotspot:not(.hotspot-region) {
  width: 60px;
  height: 60px;
}
.body-stage.is-zoomed .hotspot:not(.hotspot-region) .hotspot-mark {
  width: 26px;
  height: 26px;
  border-width: 3px;
}
.body-stage.is-zoomed .hotspot:not(.hotspot-region) .hotspot-halo,
.body-stage.is-zoomed .hotspot:not(.hotspot-region)::before {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}
.body-stage.is-zoomed .hotspot:not(.hotspot-region)[aria-pressed="true"] .hotspot-mark {
  width: 26px;
  height: 26px;
  border-width: 3.5px;
}
@media (max-width: 767px) {
  .body-stage.is-zoomed .hotspot:not(.hotspot-region) {
    width: 68px;
    height: 68px;
  }
  .body-stage.is-zoomed .hotspot:not(.hotspot-region) .hotspot-mark {
    width: 30px;
    height: 30px;
  }
  .body-stage.is-zoomed .hotspot:not(.hotspot-region) .hotspot-halo,
  .body-stage.is-zoomed .hotspot:not(.hotspot-region)::before {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
  }
  .body-stage.is-zoomed .hotspot:not(.hotspot-region)[aria-pressed="true"] .hotspot-mark {
    width: 30px;
    height: 30px;
  }
}

@keyframes hotspot-halo {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
html.hotspots-paused .hotspot-halo,
html.hotspots-paused .hotspot::before,
.experience[hidden] .hotspot-halo,
.experience[hidden] .hotspot::before,
.flip-card.is-flipped .flip-front .hotspot-halo,
.flip-card.is-flipped .flip-front .hotspot::before {
  animation-play-state: paused;
}
.hotspot-label {
  position: absolute;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}
.hotspot-region .hotspot-label {
  font-size: 0.78rem;
}
.leader-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.leader-layer line {
  stroke: var(--navy-dark);
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.55;
}

.map-note {
  margin: 0.4rem 1rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.side-panel {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
.side-panel[hidden] { display: none !important; }
.side-panel h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy-dark); }
.detail-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #E8F2F7;
  border: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1;
}
.detail-close svg {
  flex-shrink: 0;
  stroke: currentColor;
}
.detail-close:hover {
  background: #dceaf1;
  color: var(--navy-dark);
}
.panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  padding-bottom: 1.25rem;
}
.topic-journey {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}
.panel-intro {
  background: #fff;
  padding: 1rem 1.15rem 1.05rem;
  min-width: 0;
}
.topic-intro-copy {
  margin: 0.7rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42rem;
}
.topic-intro-copy p {
  margin: 0 0 0.75rem;
}
.topic-intro-copy p:last-child {
  margin-bottom: 0;
}
.side-kicker {
  margin: 0.4rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  max-width: 42rem;
}
.panel-intro .detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding-right: 5.25rem;
}
.detail-toolbar h2 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-toolbar h2:focus,
.detail-toolbar h2:focus-visible {
  outline: none;
}
.panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  flex: 1;
}
.panel-inner.no-motion { animation: none; }
@keyframes panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.topic-essential {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42rem;
}
.topic-essential p { margin: 0 0 0.7rem; }
.welcome-list {
  display: grid;
  gap: 0.65rem;
}
.welcome-list.topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.topic-card {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  text-align: left;
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 0.95rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  width: 100%;
  box-shadow: none;
  min-height: 44px;
}
.topic-card:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.topic-card svg {
  grid-row: 1 / span 2;
  fill: var(--navy);
  margin-top: 0.15rem;
}
.topic-card h2,
.topic-card h3,
.topic-card .topic-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  grid-column: 2;
}
.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  grid-column: 2;
}
.topic-card:hover { border-color: #b7d3de; background: #fff; }

.topic-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  width: min(28rem, 100%);
  padding: 0.35rem;
  z-index: 5;
}
.topic-picks[hidden] { display: none !important; }
.topic-pick {
  min-height: 44px;
  border: 1px solid var(--navy);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-dark);
}
.topic-pick[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.map-canvas.is-choice .topic-picks {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
  padding: 0.5rem;
  z-index: 8;
}
.browse-topics {
  width: min(36rem, 100%);
  margin: 0.15rem 0.8rem 0;
  flex-shrink: 0;
  font-size: 0.98rem;
}
.browse-topics summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--navy-dark);
}
.browse-list {
  display: grid;
  gap: 0.7rem;
  padding: 0.35rem 0 0.5rem;
}
.browse-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.browse-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.browse-group h3 { width: 100%; }
.disclaimer-compact {
  margin: 0.25rem 0.8rem 0.45rem;
  font-size: 0.9rem;
  color: var(--navy-dark);
  flex-shrink: 0;
}
.menu-note { margin-top: 0.8rem; }
.resource-title { font-weight: 700; margin: 0 0 0.3rem; }
.disclaimer svg { fill: var(--navy); flex-shrink: 0; margin-top: 0.15rem; }
.empty-state {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 51, 0.35);
  z-index: 11;
}
.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.detail-toolbar h2 {
  flex: 1;
  min-width: 0;
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.acc-item {
  margin: 0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(0, 79, 113, 0.12);
}
.acc-item.is-open {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.accordion button.acc {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1rem 1.15rem;
  min-height: 52px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
}
.accordion .acc-panel {
  padding: 0 1.15rem 1.2rem;
  overflow: hidden;
  color: var(--text);
  background: #fff;
}
.accordion .acc-panel > * { max-width: 42rem; }
.accordion .acc-panel[hidden] { display: none; }
.acc-item.is-open .acc-panel { flex: 1 0 auto; }
.acc-band-plain,
.acc-band-white,
.acc-band-blue,
.acc-band-gold,
.acc-band-sources {
  background: #fff;
  color: var(--text);
}
.acc-band-plain .acc,
.acc-band-white .acc,
.acc-band-blue .acc,
.acc-band-gold .acc,
.acc-band-sources .acc {
  color: var(--navy);
}
.acc-band-plain a,
.acc-band-white a,
.acc-band-blue a,
.acc-band-gold a,
.acc-band-sources a {
  color: var(--navy);
  text-decoration: underline;
}
.acc-band-sources .acc {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.featured-check {
  margin: 0.55rem 1.15rem 0.85rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 79, 113, 0.12);
  box-shadow: inset 3px 0 0 var(--gold), 0 8px 22px rgba(0, 79, 113, 0.05);
}
.featured-check-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.featured-check-head svg {
  fill: var(--navy);
  flex-shrink: 0;
}
.featured-heading {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--navy-dark);
}
.featured-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.featured-body {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.featured-body p { margin: 0 0 0.65rem; }
.featured-body p:first-child {
  font-weight: 600;
  color: var(--navy-dark);
}
.featured-body p:last-child { margin-bottom: 0; }
.featured-eligibility {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.featured-eligibility li {
  position: relative;
  padding: 0.4rem 0.55rem 0.4rem 1.55rem;
  border-radius: 0.65rem;
  background: #f7fafc;
  border: 1px solid rgba(0, 79, 113, 0.1);
  font-size: 0.95rem;
  color: var(--navy-dark);
}
.featured-eligibility li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}
.featured-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.featured-actions {
  margin: 0.9rem 0 0;
}
.btn-primary-cta,
a.btn-primary-cta {
  background: var(--gold);
  color: var(--navy-dark);
  min-width: min(100%, 14rem);
}
.btn-primary-cta:hover,
a.btn-primary-cta:hover {
  background: #e09b00;
  color: var(--navy-dark);
}
.featured-disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.urgent-help {
  margin: 0.55rem 1.15rem 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #fff8f7;
  border: 1px solid rgba(155, 44, 44, 0.22);
  box-shadow: inset 3px 0 0 #b42318;
}
.urgent-help-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  color: #8a1f16;
}
.urgent-help-head svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.urgent-help-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #8a1f16;
}
.urgent-help-body {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}
.urgent-help-body p { margin: 0 0 0.55rem; }
.urgent-help-body p:last-child { margin-bottom: 0; }
.urgent-help-body ul {
  margin: 0.35rem 0 0.7rem;
  padding-left: 1.15rem;
}
.urgent-help-body li {
  margin: 0.2rem 0;
}
.urgent-help-body strong {
  color: #8a1f16;
  font-weight: 700;
}
.section-rich ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}
.section-rich li {
  margin: 0.25rem 0;
}
.link-rows {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.more-block {
  display: grid;
  gap: 1rem;
}
.more-group {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.15rem;
}
.more-group + .more-group {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 79, 113, 0.14);
}
.more-group-title {
  margin: 0;
  color: var(--navy-dark);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.more-group-intro {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 42rem;
}
.more-link-rows {
  margin-top: 0.15rem;
}
.more-link-row {
  background: #fff;
  border-color: rgba(0, 79, 113, 0.16);
}
.more-link-row .link-row-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}
.more-link-row .link-row-action .ext-icon {
  display: inline-flex;
  color: var(--navy);
}
.more-link-row .link-row-icon {
  color: var(--navy);
  display: inline-flex;
  margin-top: 0.15rem;
}
.more-link-row:hover {
  border-color: rgba(242, 169, 0, 0.55);
  background: #fbfcfd;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.link-row-rich {
  align-items: flex-start;
}
.link-row-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.link-row-title {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}
.link-row-desc {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
}
.link-row-icon {
  flex-shrink: 0;
  color: var(--navy);
  margin-top: 0.1rem;
}
.link-row:hover {
  background: #eef5f8;
  border-color: #b7d3de;
}
.edinburgh-block {
  margin-top: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.8rem;
  background: #f7fafc;
  border: 1px solid var(--line);
}
.edinburgh-block h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 0.98rem;
}
.sources-block {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.sources-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.sources-copy ul {
  margin: 0.25rem 0 0.7rem;
  padding-left: 1.1rem;
}
.sources-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.sources-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.journey-divider {
  border: 0;
  border-top: 1px solid rgba(0, 79, 113, 0.16);
  margin: 0.85rem 1.15rem 0.55rem;
}
.pathway {
  max-width: 42rem;
}
.pathway-intro {
  margin: 0 0 1rem;
  line-height: 1.55;
}
.pathway-intro p {
  margin: 0 0 0.7rem;
}
.pathway-intro p:last-child {
  margin-bottom: 0;
}
.pathway-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pathway-step {
  margin: 0;
  padding: 0;
}
.pathway-step-card {
  background: #fff;
  padding: 0.15rem 0 0.35rem;
}
.pathway-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.4rem;
}
.pathway-step-head h4 {
  margin: 0.15rem 0 0;
  color: var(--navy-dark);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}
.pathway-step-icon,
.pathway-step-num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6fa;
  color: var(--navy);
  border: 1px solid rgba(0, 79, 113, 0.14);
  box-shadow: inset 0 0 0 1px rgba(242, 169, 0, 0.25);
}
.pathway-step-icon svg {
  display: block;
}
.pathway-step-num {
  font-size: 0.85rem;
  font-weight: 700;
}
.pathway-step-body {
  padding-left: 2.5rem;
  color: var(--text);
  line-height: 1.55;
}
.pathway-step-body p {
  margin: 0 0 0.6rem;
}
.pathway-step-body p:last-child {
  margin-bottom: 0;
}
.pathway-step-link {
  margin: 0.45rem 0 0;
  padding-left: 2.5rem;
}
.pathway-connector {
  display: flex;
  justify-content: flex-start;
  padding: 0.15rem 0 0.35rem 0.7rem;
}
.pathway-connector span {
  display: block;
  width: 2px;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(#c5dce8, #f2a900);
}
.topic-journey .acc-panel {
  line-height: 1.55;
}
.topic-journey .acc-panel p {
  margin: 0 0 0.65rem;
}
.topic-journey .acc-panel p:last-child {
  margin-bottom: 0;
}
.topic-journey .acc-panel ul {
  margin: 0.35rem 0 0.7rem;
  padding-left: 1.15rem;
}
.resource {
  padding: 0.35rem 0 0.7rem;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.kiosk-bar {
  width: 100%;
  margin: 0;
  padding: 0.4rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--navy);
}
.kiosk-bar .btn-secondary {
  background: #fff;
  color: var(--navy);
}
.idle-dialog {
  position: fixed;
  inset: 0;
  background: rgba(1, 34, 48, 0.55);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 1rem;
}
.idle-dialog[hidden] { display: none; }
.idle-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.4rem;
  max-width: 28rem;
}
.simple-page {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 1rem;
}
.footer-lockup {
  margin-top: 2rem;
  background: #111;
  color: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.footer-lockup img {
  height: auto;
  width: auto;
  max-height: 42px;
  max-width: min(16rem, 80%);
}
.app-shell.has-bottom-nav {
  padding-bottom: var(--bottom-nav-h, calc(56px + env(safe-area-inset-bottom, 0px)));
}
/* Home keeps a fixed viewport shell; utility pages must scroll. */
.app-shell.has-bottom-nav:has(.explore-main[data-view="home"]) {
  overflow: hidden;
  overflow-x: hidden;
}
.app-shell.has-bottom-nav .explore-main {
  padding-bottom: 0;
}
.app-shell.has-bottom-nav .flip-card {
  min-height: 0;
}

.nav-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  background: #fff;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.explore-main[data-view="explore"] .nav-panel,
.explore-main[data-view="settings"] .nav-panel,
.explore-main[data-view="about"] .nav-panel {
  overflow: visible;
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
}
.app-shell:has(.explore-main[data-view="explore"]),
.app-shell:has(.explore-main[data-view="settings"]),
.app-shell:has(.explore-main[data-view="about"]),
.app-shell.has-bottom-nav:has(.explore-main[data-view="explore"]),
.app-shell.has-bottom-nav:has(.explore-main[data-view="settings"]),
.app-shell.has-bottom-nav:has(.explore-main[data-view="about"]) {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-panel[hidden] { display: none !important; }
.nav-panel.page-enter {
  animation: page-enter 0.22s ease;
}
@keyframes page-enter {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel.page-enter { animation: none; }
}
html.reduce-motion-user .nav-panel.page-enter { animation: none; }

.page-surface {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.2rem 2rem;
  padding-left: max(1.2rem, env(safe-area-inset-left));
  padding-right: max(1.2rem, env(safe-area-inset-right));
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}
.page-header { margin-bottom: 1.15rem; }
.page-title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-dark);
}
.page-title:focus,
.page-title:focus-visible { outline: none; }
.page-intro {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  max-width: 40rem;
}
.page-intro p { margin: 0 0 0.65rem; }
.page-intro p:last-child { margin-bottom: 0; }
.page-section { margin: 0 0 0.35rem; }
.page-section-title {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-dark);
}
.page-body {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 40rem;
}
.page-body:last-child { margin-bottom: 0; }
.page-support {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}
.page-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.15rem 0;
}
.app-version {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.explore-topic-list,
.explore-tool-list {
  display: grid;
  gap: 0.55rem;
}
.explore-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  color: var(--navy-dark);
}
.explore-row:hover,
.explore-row:focus-visible {
  border-color: var(--navy);
  background: #f4f8fb;
}
.explore-row-icon {
  display: inline-flex;
  color: var(--navy);
  flex-shrink: 0;
}
.explore-row-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.explore-row-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
}
.explore-row-desc {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.explore-row-chevron {
  color: var(--navy);
  display: inline-flex;
}
.explore-tool {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.85rem;
  background: #fff;
}
.explore-tool-title {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
}
.explore-tool-provider {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.explore-tool-desc,
.explore-tool-suit,
.explore-tool-topic {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}
.explore-tool-suit,
.explore-tool-topic {
  color: var(--muted);
  font-size: 0.875rem;
}
.explore-tool-actions { margin: 0.55rem 0 0; }
.ext-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.15rem;
}

.setting-block {
  margin: 0 0 1rem;
}
.setting-label-block {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.setting-label {
  margin: 0;
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 1rem;
}
.setting-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}
.setting-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  cursor: pointer;
}
.setting-toggle input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}
.text-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.text-size-btn {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy-dark);
  font-weight: 600;
  cursor: pointer;
}
.text-size-btn.is-selected {
  background: var(--gold);
  border-color: var(--navy-dark);
  color: var(--navy-dark);
}
.text-size-btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.about-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  max-width: 40rem;
}
.about-list li {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.about-note {
  max-width: 40rem;
  padding: 0.85rem 0.95rem;
  background: #f8fbfd;
  border-left: 3px solid var(--navy);
  border-radius: 0 0.55rem 0.55rem 0;
}
.about-note p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}
.about-note p:last-child { margin-bottom: 0; }
.about-split-aside {
  display: none;
}
.about-mobile-logo {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 0.25rem;
}
.about-mobile-logo .brand-mark-img,
.about-mobile-logo img {
  width: 7.5rem;
  height: 7.5rem;
  max-width: 42vw;
  object-fit: contain;
  display: block;
}
.about-ems .about-ems-visual {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin: 1rem 0 0.35rem;
  border-radius: 0.75rem;
  background: transparent;
  object-fit: contain;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.about-ems300-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  box-sizing: border-box;
}
.about-ems300-mark {
  display: block;
  width: auto;
  height: auto;
  max-width: min(32rem, 100%);
  max-height: 5.5rem;
  object-fit: contain;
}
/* Desktop-only EdWeb banner; mobile keeps the blue lockup above. */
.about-ems300-banner {
  display: none;
}
.about-staff-login {
  margin: 0.35rem 0 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.about-staff-login a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 400;
}
.about-staff-login a:hover {
  color: var(--navy);
}
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.setting-panel + .setting-panel {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.menu-nav-list {
  display: grid;
  gap: 0.45rem;
}
.menu-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--navy-dark);
  font-weight: 600;
  cursor: pointer;
}
.menu-nav-btn:hover,
.menu-nav-btn:focus-visible {
  border-color: var(--navy);
  background: #f4f8fb;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}
.panel-toolbar h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--navy-dark);
}
.panel-toolbar h2:focus,
.panel-toolbar h2:focus-visible { outline: none; }
.panel-back {
  background: #fff;
  border: 1px solid var(--navy);
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}
.panel-back:hover { background: #f4f8fb; }
.topics-browser {
  display: grid;
  gap: 1rem;
}
.topic-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.topic-row {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.4rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-dark);
}
.topic-row:hover { border-color: var(--navy); background: #f4f8fb; }
.topics-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.topics-detail[hidden] { display: none !important; }
.topics-read {
  overflow: visible;
  min-height: 0;
  flex: 1;
  background: #fff;
  border-radius: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy-dark);
}
.setting-row input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--navy);
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  color: #004F71;
  align-items: stretch;
  box-sizing: border-box;
  min-height: 56px;
  padding: 6px 4px;
  padding-left: max(4px, env(safe-area-inset-left, 0px));
  padding-right: max(4px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
  border-top: 1px solid rgba(0, 79, 113, 0.12);
  box-shadow: 0 -6px 16px rgba(0, 79, 113, 0.07);
  border-radius: 0;
}
.bottom-nav-btn {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  color: #004F71;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 0.2rem 0.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.1;
  border-radius: 12px;
}
.bottom-nav-icon {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}
.bottom-nav-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}
.bottom-nav-label {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  color: #004F71;
  font-size: 0.6875rem;
}
.bottom-nav-btn[aria-current="page"] {
  color: #004F71;
  font-weight: 600;
  background: #F2A900;
}
.bottom-nav-btn[aria-current="page"] .bottom-nav-icon {
  background: transparent;
}
.bottom-nav-btn:focus-visible {
  outline: 3px solid #004F71;
  outline-offset: 2px;
}

@media (max-width: 767px),
(max-height: 540px) and (orientation: landscape),
(orientation: portrait) and (max-width: 1024px) {
  .bottom-nav { display: flex; }
  .header-tools { display: none; }
  .desk-footer,
  .pill-scroll-btn { display: none !important; }
  .app-shell.has-bottom-nav .kiosk-bar { display: none; }
  .header-bar {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .app-header {
    position: relative;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    height: 58px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
  .brand {
    position: static;
    left: auto;
    transform: none;
    gap: 9px;
    justify-content: center;
  }
  .brand-mark,
  .brand-mark svg,
  .brand-mark-img {
    width: 36px;
    height: 36px;
  }
  .brand h1 {
    font-weight: 700;
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .brand p { display: none; }
  html.larger-text .app-header {
    min-height: 60px;
    height: 60px;
  }
  html.larger-text .brand h1 { font-size: 24px; }
  html.larger-text .brand-mark,
  html.larger-text .brand-mark svg,
  html.larger-text .brand-mark-img {
    width: 38px;
    height: 38px;
  }

  .explore-nav {
    background: #fff;
    border-bottom: 9px solid var(--body-panel);
    box-shadow: none;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
  .explore-nav .filters {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .bottom-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 4px;
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px;
    padding-left: max(4px, env(safe-area-inset-left, 0px));
    padding-right: max(4px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 0;
  }
  .bottom-nav-btn {
    flex: 1 1 0;
    background: transparent;
    color: #004F71;
    border-radius: 12px;
    min-height: 44px;
    height: 44px;
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 0.15rem 0.1rem;
    gap: 0.08rem;
    font-weight: 600;
    font-size: 0.6875rem;
    overflow: hidden;
    transition: background-color 160ms ease, color 160ms ease;
    -webkit-appearance: none;
    appearance: none;
  }
  .bottom-nav-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
  }
  .bottom-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  .bottom-nav-label {
    font-size: 0.6875rem;
    line-height: 1.1;
  }
  .bottom-nav-btn[aria-current="page"] {
    background: #F2A900;
    color: #004F71;
    font-weight: 600;
  }
  .bottom-nav-btn[aria-current="page"] .bottom-nav-icon,
  .bottom-nav-btn[aria-current="page"] .bottom-nav-label {
    background: transparent;
    color: #004F71;
  }
  .bottom-nav-btn:focus-visible {
    outline: 3px solid #004F71;
    outline-offset: 2px;
  }

  /* Avoid Safari auto-zoom on focused form controls */
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .setting-toggle {
    min-height: 48px;
    padding: 0.15rem 0;
  }
  .setting-toggle input {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
  }
}

@media (max-width: 899px) and (min-width: 768px) {
  .explore-main { padding: 0; padding-bottom: env(safe-area-inset-bottom); }
  .app-shell.has-bottom-nav .explore-main { padding-bottom: 0; }
  .brand p { display: none; }
  .experience { padding: 0.2rem 0.4rem 0.45rem; }
}

@media (max-width: 767px) {
  .nav-panel {
    background: #fff;
  }
  .page-surface {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .about-split-aside,
  .about-brand-panel {
    display: none !important;
  }
  .explore-main {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .app-shell.has-bottom-nav .explore-main { padding-bottom: 0; }
  .brand p { display: none; }
  .experience {
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .flip-scene,
  .flip-card,
  .flip-face,
  .map-canvas,
  .side-panel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .flip-card,
  .flip-face,
  .map-canvas,
  .side-panel {
    border-radius: 0;
  }
  .flip-card {
    box-shadow: none;
  }
  .app-shell.has-topic {
    height: auto;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
  }
  .app-shell.has-bottom-nav.has-topic {
    overflow-x: clip;
    overflow-y: visible;
  }
  .app-shell.has-topic .header-bar,
  .app-shell.has-topic .explore-nav {
    position: sticky;
    z-index: 12;
  }
  .app-shell.has-topic .header-bar {
    top: 0;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .app-shell.has-topic .explore-nav {
    top: calc(58px + env(safe-area-inset-top, 0px));
  }
  html.larger-text .app-shell.has-topic .explore-nav {
    top: calc(60px + env(safe-area-inset-top, 0px));
  }
  .app-shell.has-topic .detail-close {
    top: max(0.55rem, env(safe-area-inset-top, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
  }
  .app-shell.has-topic .explore-main,
  .app-shell.has-topic .experience,
  .app-shell.has-topic .flip-scene,
  .app-shell.has-topic .flip-card,
  .app-shell.has-topic .side-panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overflow-x: hidden;
    overflow-x: clip;
    flex: none;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  .app-shell.has-topic .panel-body {
    overflow: visible;
    overflow-x: clip;
    flex: none;
    height: auto;
    max-height: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-bottom: 1.75rem;
  }
  .app-shell.has-topic .side-panel {
    background: #fff;
    border-radius: 0;
  }
  /* After the card flip settles: expand to a flat text page (body face hidden). */
  .app-shell.has-topic:not(:has(.experience.has-panel)) .flip-card.is-flipped:not(.is-turning) {
    transform: none !important;
    transition: none !important;
    height: auto;
    max-height: none;
    overflow: visible;
    overflow-x: clip;
    background: #fff;
    box-shadow: none;
  }
  .app-shell.has-topic:not(:has(.experience.has-panel)) .flip-card.is-flipped:not(.is-turning) .flip-front {
    display: none !important;
  }
  .app-shell.has-topic:not(:has(.experience.has-panel)) .flip-card.is-flipped:not(.is-turning) .flip-back,
  .flip-card.is-flipped:not(.is-turning) .flip-back {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    height: auto !important;
    width: 100% !important;
    max-width: none;
    background: #fff;
    border-radius: 0;
  }
  .flip-card.is-flipped:not(.is-turning) .flip-front {
    display: none;
  }
  .topic-journey {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    gap: 0.55rem;
    padding-bottom: 0.85rem;
  }
  .panel-intro {
    padding: 1.05rem 1.2rem 1rem;
  }
  .panel-intro .detail-toolbar {
    padding-right: 5rem;
  }
  .featured-check,
  .urgent-help {
    margin: 0.35rem 1.2rem 0.55rem;
  }
  .urgent-help {
    margin-top: 0.55rem;
    margin-bottom: 0.85rem;
  }
  .accordion button.acc,
  .accordion .acc-panel {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .topic-accordion + .topic-accordion {
    margin-top: 0.25rem;
  }
  .journey-divider {
    margin: 0.95rem 1.2rem 0.65rem;
  }
  .pathway-connector {
    padding: 0.25rem 0 0.45rem 0.75rem;
  }
  .pathway-step-card {
    padding-bottom: 0.5rem;
  }
  .topic-intro-copy {
    max-width: none;
  }
  .app-shell.has-topic .panel-body {
    padding-bottom: 1.35rem;
  }
}

.mode-kiosk { --body-size: 1.25rem; }
.mode-kiosk .btn,
.mode-kiosk .filter-chip,
.mode-kiosk .menu-btn,
.mode-kiosk .menu-close,
.mode-kiosk .menu-action,
.mode-kiosk .bottom-nav-btn { min-height: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .body-figure { transition: none; }
  .acc-panel { transition: none !important; }
  .flip-card { transform: none; will-change: auto; }
  .flip-card { transition: none !important; transform: none !important; will-change: auto; }
  .flip-card.is-flipped { transform: none !important; }
  .flip-back { transform: none; position: relative; z-index: 2; }
  .flip-card.is-flipped .flip-front { display: none; }
  .flip-card:not(.is-flipped) .flip-back { display: none; }
  .bottom-nav-btn { transition: none; }
}

html.reduce-motion-user {
  scroll-behavior: auto;
}
html.reduce-motion-user .body-figure { transition: none; }
html.reduce-motion-user .acc-panel { transition: none !important; }
html.reduce-motion-user .flip-card { transform: none; will-change: auto; }
html.reduce-motion-user .flip-card { transition: none !important; transform: none !important; will-change: auto; }
html.reduce-motion-user .flip-card.is-flipped { transform: none !important; }
html.reduce-motion-user .flip-back { transform: none; position: relative; z-index: 2; }
html.reduce-motion-user .flip-card.is-flipped .flip-front { display: none; }
html.reduce-motion-user .flip-card:not(.is-flipped) .flip-back { display: none; }
html.reduce-motion-user .bottom-nav-btn { transition: none; }
html.reduce-motion-user .hotspot-halo,
html.reduce-motion-user .hotspot::before {
  animation: none;
  transform: scale(1);
  opacity: 0;
  border-color: transparent;
  box-shadow: none;
}

@keyframes desk-info-flip {
  from { transform: rotateY(-88deg); }
  to { transform: rotateY(0deg); }
}

@keyframes desk-panel-enter {
  from {
    opacity: 0;
    transform: translateX(4.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.experience.has-panel .flip-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(16rem, 0.6fr);
  gap: 0.85rem;
  transform: none;
  transform-style: flat;
  transition: none;
  will-change: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
}
.experience.has-panel .flip-card.is-flipped {
  transform: none;
}
.experience.has-panel .flip-front,
.experience.has-panel .flip-back {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
  display: flex;
}
.experience.has-panel .flip-front {
  transform: none !important;
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 79, 113, 0.1);
  overflow: hidden;
  background-color: var(--body-panel);
  background-image: linear-gradient(180deg, #F5FAFD 0%, #E5F1F7 100%);
}
.experience.has-panel .flip-back {
  border-radius: 1.25rem;
  overflow: hidden;
  transform: none;
  transform-origin: center right;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 79, 113, 0.1);
}
.experience.has-panel .detail-close {
  right: 2.85rem;
}
.experience.has-panel .panel-intro .detail-toolbar {
  padding-right: 7rem;
}
.experience.has-panel .flip-back .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  height: auto;
  max-height: none;
}
/* Keep accordion + warning in normal document flow (no flex-fill pinning). */
.experience.has-panel .panel-body.topic-journey > .accordion,
.experience.has-panel .panel-body .topic-accordion {
  flex: 0 0 auto;
  min-height: auto;
}
.experience.has-panel .panel-body .acc-item.is-open {
  flex: 0 0 auto;
}
.experience.has-panel .panel-body .acc-panel {
  height: auto;
  max-height: none;
  overflow: visible;
}
.experience.has-panel .panel-body .acc-panel[hidden] {
  display: none;
  overflow: hidden;
}
.experience.has-panel .urgent-help {
  position: static;
  inset: auto;
  z-index: auto;
  flex: 0 0 auto;
  align-self: stretch;
  margin-top: 1.4rem;
  margin-bottom: 1rem;
}
.experience.has-panel .flip-back.is-flipping {
  animation: desk-panel-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.experience.has-panel .flip-card.is-flipped .flip-front,
.experience.has-panel .flip-card:not(.is-flipped) .flip-back {
  display: flex;
  pointer-events: auto;
}

/* Laptop/desktop only. Inverse of the compact (phone / portrait-tablet) query. */
@media (min-width: 1025px), (orientation: landscape) and (min-width: 768px) and (min-height: 541px) {
  .desk-nav { display: flex; }
  .header-tools .menu-btn { display: none; }
  .bottom-nav { display: none !important; }
  .brand-mark,
  .brand-mark svg,
  .brand-mark-img {
    width: 32px;
    height: 32px;
  }
  .brand { gap: 0.55rem; }
  .app-shell,
  .app-shell.has-bottom-nav {
    padding-bottom: 0;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
  }
  /* Home: fill the viewport so the explorer absorbs space freed by the slim footer. */
  .app-shell:has(.explore-main[data-view="home"]) {
    background: var(--navy);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: clip;
    overflow-y: hidden;
  }
  .app-shell:has(.explore-main[data-view="explore"]),
  .app-shell:has(.explore-main[data-view="settings"]),
  .app-shell:has(.explore-main[data-view="about"]) {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--canvas);
  }
  .explore-main {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow-x: clip;
    background: var(--canvas);
    flex: 1 1 auto;
  }
  .explore-main[data-view="home"] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .explore-main[data-view="home"] .explore-nav {
    padding-bottom: 0;
  }
  .explore-main[data-view="explore"],
  .explore-main[data-view="settings"],
  .explore-main[data-view="about"] {
    background: var(--canvas);
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
  }
  .explore-main[data-view="explore"] .nav-panel,
  .explore-main[data-view="settings"] .nav-panel,
  .explore-main[data-view="about"] .nav-panel {
    overflow: visible;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
  }
  .explore-nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0;
    padding-left: 0;
    padding-right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 79, 113, 0.14);
    overflow: visible;
    flex-shrink: 0;
  }
  .explore-nav-inner {
    width: min(var(--page), 100%);
    max-width: var(--page);
    margin: 0 auto;
    padding-left: var(--page-pad-left);
    padding-right: var(--page-pad-right);
    box-sizing: border-box;
  }
  .explore-nav .filters {
    padding-left: 0.15rem;
    padding-right: 3.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .explore-nav.can-scroll-left .filters {
    padding-left: 3.1rem;
  }
  .explore-nav .filters::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .explore-nav.can-scroll-right .explore-nav-inner::after,
  .explore-nav.can-scroll-left .explore-nav-inner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3.75rem;
    pointer-events: none;
    z-index: 2;
  }
  .explore-nav.can-scroll-right .explore-nav-inner::after {
    right: var(--page-pad-right);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 42%, #fff 72%, #fff 100%);
  }
  .explore-nav.can-scroll-left .explore-nav-inner::before {
    left: var(--page-pad-left);
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 42%, #fff 72%, #fff 100%);
  }
  .pill-scroll-btn {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 79, 113, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 79, 113, 0.1);
  }
  .pill-scroll-btn[hidden] {
    display: none !important;
  }
  .pill-scroll-prev {
    left: calc(var(--page-pad-left) + 0.15rem);
  }
  .pill-scroll-next {
    right: calc(var(--page-pad-right) + 0.15rem);
  }
  .pill-scroll-btn:hover {
    border-color: var(--navy);
    background: #f4f8fb;
  }
  .pill-scroll-btn:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
  }
  .explore-main[data-view="home"] .experience {
    width: min(var(--page), 100%);
    max-width: var(--page);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-pad-left);
    padding-right: var(--page-pad-right);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    box-sizing: border-box;
    background: transparent;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .explore-main[data-view="home"] .flip-scene,
  .explore-main[data-view="home"] .flip-card,
  .explore-main[data-view="home"] .map-canvas {
    height: 100%;
    min-height: 0;
  }
  .explore-main[data-view="home"] .body-stage {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
  }
  .experience {
    width: min(var(--page), 100%);
    max-width: var(--page);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-pad-left);
    padding-right: var(--page-pad-right);
    padding-top: 0.55rem;
    padding-bottom: 1.1rem;
    box-sizing: border-box;
    background: transparent;
  }
  .nav-panel {
    width: min(var(--page), 100%);
    max-width: var(--page);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: var(--page-pad-left);
    padding-right: var(--page-pad-right);
    box-sizing: border-box;
    background: transparent;
  }
  .page-surface {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 28px rgba(0, 79, 113, 0.1);
    padding: 1.75rem 1.85rem 2rem;
    background: #fff;
  }
  .page-header {
    margin-bottom: 1.5rem;
  }
  .page-section-title {
    margin-bottom: 0.85rem;
  }
  .page-divider {
    margin: 1.6rem 0;
  }
  .page-intro {
    max-width: 54rem;
  }
  .page-body,
  .page-support,
  .about-list {
    max-width: 50rem;
  }
  .about-note {
    max-width: 56rem;
  }

  /* About: purposeful desktop columns */
  .about-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    align-items: start;
  }
  .about-split-copy,
  .about-split-aside,
  .about-split-media {
    min-width: 0;
  }
  .about-split-aside {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .about-mobile-logo {
    display: none;
  }
  .about-split-aside .brand-mark-img,
  .about-split-aside img {
    width: 12.5rem;
    height: 12.5rem;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }
  .about-does-not .about-note {
    max-width: 56rem;
  }
  .about-ems.about-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
  }
  .about-ems .about-split-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .about-ems .about-actions {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.35rem;
  }
  .about-ems .about-split-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .about-ems .about-ems-visual {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0.9rem;
  }
  .about-lower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    align-items: start;
  }
  .about-lower-grid .page-section {
    margin: 0;
  }
  .about-lower-sep {
    display: none;
  }
  .about-surface .page-header,
  .about-surface .about-split,
  .about-surface .about-does-not,
  .about-surface .about-lower-grid,
  .about-surface > .page-section,
  .about-surface > .page-divider {
    max-width: none;
  }
  /* Full-width EMS300 banner at the bottom of the white About panel (desktop only). */
  .about-closing {
    display: flex;
    flex-direction: column;
  }
  .about-staff-login {
    order: -1;
    margin: 1.25rem 0 0.35rem;
  }
  .about-ems300-footer {
    order: 1;
    display: block;
    margin: 1.25rem -1.85rem -2rem;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 1.25rem 1.25rem;
  }
  .about-ems300-mark {
    display: none;
  }
  .about-ems300-banner {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
  }

  /* Explore: two-column tool cards when width allows */
  .explore-main[data-view="explore"] .page-header,
  .explore-main[data-view="explore"] .page-intro {
    max-width: 54rem;
  }
  .explore-tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1.25rem;
    max-width: none;
  }
  .explore-tool {
    max-width: none;
    height: auto;
    padding: 1rem 1.05rem;
  }

  /* Settings: two-column grouped panels when width allows */
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.25rem;
  }
  .setting-panel,
  .setting-panel + .setting-panel {
    margin: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(0, 79, 113, 0.14);
    border-radius: 0.9rem;
    background: #f8fbfd;
    border-top: 1px solid rgba(0, 79, 113, 0.14);
  }
  .setting-panel .page-section-title {
    margin-top: 0;
  }
  .setting-panel .page-body {
    max-width: none;
  }
  .settings-surface .page-header,
  .settings-surface .settings-grid,
  .settings-surface .app-version {
    max-width: none;
  }
  .desk-footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: var(--navy);
    color: #fff;
    box-sizing: border-box;
    height: 3.9rem;
    min-height: 3.9rem;
    max-height: 3.9rem;
    padding: 0.35rem 0;
    line-height: 1;
  }
  .desk-footer-inner {
    width: min(var(--page), 100%);
    margin: 0 auto;
    padding-left: var(--page-pad-left);
    padding-right: var(--page-pad-right);
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    height: 100%;
    line-height: 1;
  }
  .desk-footer-logo {
    display: block;
    width: auto;
    max-width: min(36rem, 72vw);
    height: auto;
    max-height: 2.9rem;
    object-fit: contain;
    object-position: left center;
    background: transparent;
  }
  .kiosk-bar {
    padding-left: calc((100% - min(var(--page), 100%)) / 2 + var(--page-pad-left));
    padding-right: calc((100% - min(var(--page), 100%)) / 2 + var(--page-pad-right));
  }
}

/* Stack EMS300 text/image when the desktop panel is too narrow for two columns */
@media (min-width: 768px) and (max-width: 1099px) {
  .about-ems.about-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .about-ems .about-split-copy,
  .about-ems .about-actions,
  .about-ems .about-split-media {
    grid-column: auto;
    grid-row: auto;
  }
  .about-ems .about-ems-visual {
    margin: 0.25rem 0 0;
  }
}

@media (min-width: 1025px) and (prefers-reduced-motion: reduce),
(orientation: landscape) and (min-width: 768px) and (min-height: 541px) and (prefers-reduced-motion: reduce),
(orientation: portrait) and (min-width: 768px) and (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .experience.has-panel .flip-back.is-flipping { animation: none; }
}
html.reduce-motion-user .experience.has-panel .flip-back.is-flipping { animation: none; }

/* Desktop: clearer panel entrance when a hotspot opens the side panel */
@media (min-width: 1025px), (orientation: landscape) and (min-width: 768px) and (min-height: 541px) {
  .experience.has-panel .flip-back.is-flipping {
    animation: desk-panel-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
  .app-shell.has-topic:not(:has(.experience.has-panel)) {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .app-shell.has-topic:not(:has(.experience.has-panel)) .panel-body {
    overflow: visible;
    height: auto;
  }
  .experience.has-panel .flip-card {
    grid-template-columns: minmax(13rem, 0.44fr) minmax(16rem, 0.56fr);
  }
  .side-kicker,
  .topic-intro-copy,
  .acc-panel,
  .topic-journey {
    max-width: 38rem;
  }
}

html.text-size-standard {
  --body-size: 1.125rem;
}
html.text-size-large,
html.larger-text {
  --body-size: 1.28rem;
}
html.text-size-xl {
  --body-size: 1.45rem;
}
html.text-size-large .bottom-nav-label,
html.text-size-xl .bottom-nav-label,
html.larger-text .bottom-nav-label {
  font-size: 0.75rem;
}
html.text-size-large .bottom-nav-btn,
html.text-size-xl .bottom-nav-btn,
html.larger-text .bottom-nav-btn {
  min-height: 46px;
  height: 46px;
}
html.text-size-large .bottom-nav-icon svg,
html.text-size-xl .bottom-nav-icon svg {
  width: 21px;
  height: 21px;
}
html.text-size-large .filter-chip,
html.text-size-xl .filter-chip,
html.larger-text .filter-chip {
  font-size: 1.02rem;
}

html.high-contrast {
  --text: #0a1216;
  --muted: #1c333d;
  --navy: #003652;
  --navy-dark: #001f2e;
  --line: #5a7380;
  --canvas: #e4eef3;
  --mist: #e4eef3;
  --body-panel: #e4eef3;
}
html.high-contrast .explore-row,
html.high-contrast .explore-tool,
html.high-contrast .text-size-btn,
html.high-contrast .panel-back,
html.high-contrast .filter-chip {
  border-width: 2px;
}
html.high-contrast .page-divider {
  border-top-width: 2px;
}

html.underline-links a:not(.btn):not(.brand):not(.desk-nav-link):not(.bottom-nav-btn) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 430px) {
  :root { --body-size: 1rem; }
  html.text-size-standard { --body-size: 1rem; }
  html.text-size-large,
  html.larger-text { --body-size: 1.125rem; }
  html.text-size-xl { --body-size: 1.28rem; }
}

/* Visitor panning: hotspot coordinates are measured from the transformed image. */
.body-stage.is-zoomed { touch-action: pinch-zoom; cursor: grab; }
.body-stage.is-panning, .body-stage.is-panning * { cursor: grabbing; user-select: none; }
.body-stage:focus-visible { outline: 3px solid #004F71; outline-offset: -5px; }
.body-stage .hotspot[hidden] { display: none !important; }
.body-stage.is-zoomed .hotspot:not(.hotspot-region) { width: 44px; height: 44px; }
.phone-orientation[hidden] { display: none; }
.phone-orientation {
 position: fixed; inset: 0; z-index: 10000; overflow: auto;
 display: flex; flex-direction: column; align-items: center; justify-content: safe center;
 gap: 1rem; padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
 background: #004F71; color: white; text-align: center;
}
.phone-orientation svg { flex: 0 0 64px; color: #F2A900; }
.phone-orientation h1 { margin: 0; color: white; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.phone-orientation p { margin: 0; font-size: 1.125rem; }
.phone-orientation button { min-height: 44px; padding: .5rem 1rem; background: transparent; border: 2px solid white; color: white; border-radius: .3rem; font: inherit; text-decoration: underline; }
.phone-orientation button:focus-visible { outline: 3px solid #F2A900; outline-offset: 4px; }
html.phone-rotate-open { overflow: hidden; }
/* Keep the phone exit outside the 3D scene's fixed-position containing block. */
.detail-close.is-phone-close {
  position: fixed;
  top: max(.5rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: max-content;
  z-index: 80;
}
/* Explicit non-anatomical choices must remain reachable with enlarged text. */
.map-canvas.is-choice .topic-picks {
  top: 50%;
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: flex-start;
  scroll-padding-block: .5rem;
}
.topic-picks:focus-visible { outline: 3px solid #004F71; outline-offset: -3px; }
/* In the overview, labels are the large tap targets. Invisible overlapping
   button rectangles must not obscure adjacent anatomical points. */
.hotspot-region { pointer-events: none; }
.hotspot-region .hotspot-mark { pointer-events: auto; }
.hotspot-region .hotspot-label {
  pointer-events: auto;
  padding: .12rem .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  font-size: .78rem;
}
.hotspot-region .hotspot-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-width: 44px;
  height: max(100%, 44px);
  pointer-events: auto;
}
.hotspot-region::before { display: none; }
.hotspot-region:focus-visible { outline: none; }
.hotspot-region:focus-visible .hotspot-label { outline: 3px solid #004F71; outline-offset: 3px; }
