:root {
  color-scheme: dark;
  --ink: #f8f0de;
  --ink-soft: #d8cdb9;
  --navy: #071e33;
  --navy-2: #0c2b46;
  --cream: #fff3d8;
  --red: #f04438;
  --red-deep: #b42318;
  --yellow: #ffd166;
  --teal: #2dd4bf;
  --green: #4ade80;
  --muted: rgba(255, 243, 216, .72);
  --panel: rgba(255, 243, 216, .08);
  --line: rgba(255, 243, 216, .18);
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --radius: 8px;
  --max: 1180px;
  --step--1: clamp(.88rem, .84rem + .2vw, .98rem);
  --step-0: clamp(1rem, .96rem + .25vw, 1.12rem);
  --step-1: clamp(1.22rem, 1.1rem + .55vw, 1.5rem);
  --step-2: clamp(1.52rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2.1rem, 1.65rem + 2vw, 3.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(45, 212, 191, .18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(240, 68, 56, .18), transparent 25rem),
    linear-gradient(140deg, var(--navy), #041321 72%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 160px 100%;
  opacity: .35;
}

body.steps-only .illustration, body.steps-only .hero-scene { display: none; }
body.steps-only .breath-orb, body.steps-only .breath-rectangle { display: none; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .8rem 1rem; background: var(--cream); color: var(--navy); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  background: rgba(7, 30, 51, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 850; }
.brand-mark { width: 1.45rem; height: 1.45rem; border-radius: 45% 55% 50% 50%; background: linear-gradient(135deg, var(--red), var(--yellow)); transform: rotate(-8deg); box-shadow: 0 0 0 5px rgba(240, 68, 56, .12); }
.top-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.top-nav a { padding: .62rem .74rem; color: var(--muted); text-decoration: none; border-radius: var(--radius); font-size: var(--step--1); }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--cream); background: rgba(255, 243, 216, .1); }
.emergency-toggle, .primary, .secondary, .answer, .mode-chip {
  border: 0;
  border-radius: var(--radius);
  min-height: 46px;
  padding: .75rem 1rem;
  color: var(--cream);
  background: var(--red);
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(240, 68, 56, .25);
}
.secondary { background: rgba(255, 243, 216, .1); box-shadow: none; border: 1px solid var(--line); }
.mode-chip { background: rgba(45, 212, 191, .18); box-shadow: none; border: 1px solid rgba(45, 212, 191, .35); }
.mode-chip.active { background: var(--teal); color: #062235; }

.section { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.3rem, 6vw, 5rem) 0; }
.hero { min-height: calc(100vh - 5rem); display: grid; align-items: center; gap: 2rem; grid-template-columns: minmax(0, .88fr) minmax(320px, 1.12fr); }
.academy-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.academy-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}
.academy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 12, 20, .9), rgba(4, 12, 20, .42) 55%, rgba(4, 12, 20, .2));
}
.academy-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.academy-hero h1 { max-width: 12ch; }
.hero-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2rem;
}
.giant-entry {
  display: grid;
  gap: .45rem;
  min-height: 148px;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 243, 216, .1);
  backdrop-filter: blur(12px);
}
.giant-entry strong { font-size: var(--step-1); line-height: 1.1; }
.giant-entry span { color: var(--ink-soft); }
.giant-entry.danger { border-color: rgba(240, 68, 56, .55); }
.giant-entry.urgent { border-color: rgba(255, 209, 102, .55); }
.giant-entry.calm { border-color: rgba(45, 212, 191, .55); }
.media-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.media-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.media-tile img, .scene-module-card img, .scene-module-card picture, .scene-intro img, .scene-intro picture, .step-photo img, .step-photo picture, .lab-media picture, .learning-path-card picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-tile span {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(7, 30, 51, .78);
  font-weight: 850;
}
.split-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.split-band article, .quiet-fact {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 243, 216, .07);
}
.urgent-lanes {
  display: grid;
  gap: .75rem;
  margin: 2rem 0;
}
.rescue-lane {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 243, 216, .22);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(240, 68, 56, .2), rgba(255, 243, 216, .06));
}
.rescue-lane strong { font-size: var(--step-1); }
.rescue-lane span { color: var(--ink-soft); }
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.scene-module-card {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: .45rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(255, 243, 216, .07);
  box-shadow: var(--shadow);
}
.scene-module-card img {
  position: absolute;
  inset: 0;
  opacity: .68;
  z-index: 0;
}
.scene-module-card picture {
  position: absolute;
  inset: 0;
  opacity: .68;
  z-index: 0;
}
.scene-module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 20, .94), rgba(4, 12, 20, .24));
}
.scene-module-card > *:not(img) { position: relative; z-index: 1; }
.scene-module-card strong { font-size: var(--step-1); line-height: 1.1; }
.scene-kicker { color: var(--yellow); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.lab-shell h1 { max-width: 14ch; }
.lab-privacy { margin: 1.25rem 0; }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}
.lab-tool {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 243, 216, .1), rgba(255, 243, 216, .045));
  box-shadow: var(--shadow);
}
.lab-tool-wide { grid-column: 1 / -1; }
.lab-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.lab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lab-options {
  display: grid;
  gap: .65rem;
}
.lab-choice {
  min-height: 58px;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 243, 216, .08);
  text-align: left;
  font-weight: 800;
}
.lab-choice.selected {
  border-color: var(--yellow);
  background: rgba(255, 209, 102, .14);
}
.lab-tool.is-correct { border-color: rgba(74, 222, 128, .55); }
.lab-tool.needs-repair { border-color: rgba(255, 209, 102, .6); }
.path-grid {
  display: grid;
  gap: 1rem;
}
.learning-path-card {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 243, 216, .1), rgba(255, 243, 216, .04));
  box-shadow: var(--shadow);
}
.learning-path-card > img, .learning-path-card > picture {
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.path-goals {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .8rem 0 1rem;
}
.path-goals span {
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(255, 243, 216, .09);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .92rem;
}
.learning-path-card summary {
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  font-weight: 850;
  color: var(--yellow);
}
.path-modules {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}
.path-modules a {
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(255, 243, 216, .06);
}
.learning-scene { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.scene-layer {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 243, 216, .07);
  box-shadow: var(--shadow);
}
.scene-intro {
  min-height: 620px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
}
.scene-intro img, .scene-intro picture {
  position: absolute;
  inset: 0;
  opacity: .72;
}
.scene-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 20, .95), rgba(4, 12, 20, .18));
}
.scene-intro > div { position: relative; z-index: 1; max-width: 760px; }
.now-layer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  color: var(--navy);
}
.now-layer p { color: #244056; }
.photo-sequence {
  display: grid;
  gap: .75rem;
}
.photo-step {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 243, 216, .05);
}
.step-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}
.media-pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px dashed rgba(255, 209, 102, .55);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, .16), rgba(45, 212, 191, .07)),
    rgba(7, 30, 51, .72);
  color: var(--cream);
}
.media-pending .media-pending-label {
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-pending strong {
  margin: 0;
  font-size: 1.02rem;
}
.media-pending p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.media-pending small {
  color: rgba(255, 243, 216, .72);
}
.photo-step span {
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
}
.photo-step strong { display: block; font-size: var(--step-1); margin-bottom: .3rem; }
.eyebrow, .badge { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .28rem .55rem; border-radius: 999px; background: rgba(255, 209, 102, .14); color: var(--yellow); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; }
h1 { font-size: var(--step-3); max-width: 10ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }

.hero-scene, .card, .procedure, .navigator, .training-card, .notice {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 243, 216, .11), rgba(255, 243, 216, .045));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-scene { position: relative; min-height: 440px; overflow: hidden; padding: 1rem; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.hotspot { position: absolute; border: 0; border-radius: 999px; padding: .6rem .8rem; background: var(--cream); color: var(--navy); font-weight: 900; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.hotspot:nth-of-type(1) { left: 12%; top: 55%; }
.hotspot:nth-of-type(2) { left: 67%; top: 28%; }
.hotspot:nth-of-type(3) { left: 56%; top: 70%; }
.hotspot:nth-of-type(4) { left: 30%; top: 24%; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card, .procedure, .navigator, .training-card, .notice { padding: 1rem; }
.training-shell h1 { max-width: none; }
.training-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .35rem 0 .8rem; margin: 1.2rem 0 .4rem; }
.tab {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  color: var(--cream);
  background: rgba(255, 243, 216, .08);
  font-weight: 850;
}
.tab.active { background: var(--cream); color: var(--navy); }
.filter-row { margin: 0 0 1.2rem; }
.training-progress { display: flex; gap: .85rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.training-progress p { margin: 0; }
.training-illustration { width: 100%; aspect-ratio: 16 / 9; height: auto; margin-bottom: .9rem; border-radius: var(--radius); }
.interactive-card, .myth-card, .flip-card { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.interactive-card:focus-within, .myth-card:focus-within, .flip-card:focus-within { border-color: var(--yellow); }
.interactive-card.is-correct { border-color: rgba(74, 222, 128, .62); }
.interactive-card.needs-retry { border-color: rgba(255, 209, 102, .62); }
.answers.compact { margin: .8rem 0; }
.answers.compact .answer { font-size: 1rem; min-height: 54px; }
.answer.selected { box-shadow: inset 0 0 0 2px var(--yellow); }
.feedback {
  margin-top: .8rem;
  padding: .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 243, 216, .08);
}
.feedback p:last-child { margin-bottom: 0; }
.feedback.good { border-color: rgba(74, 222, 128, .6); background: rgba(74, 222, 128, .1); }
.feedback.repair { border-color: rgba(255, 209, 102, .6); background: rgba(255, 209, 102, .1); }
.hidden { display: none; }
.flip-card.flipped { transform: rotateX(0deg); border-color: rgba(45, 212, 191, .5); }
.cpr-practice { display: grid; gap: 1rem; max-width: 820px; }
.metronome-pad {
  min-height: 360px;
  width: 100%;
  border: 1px solid rgba(45, 212, 191, .45);
  border-radius: var(--radius);
  color: var(--cream);
  background:
    radial-gradient(circle at center, rgba(45, 212, 191, .28), transparent 8rem),
    linear-gradient(145deg, rgba(255, 243, 216, .12), rgba(255, 243, 216, .04));
  display: grid;
  place-items: center;
  gap: .6rem;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.metronome-pad.running { animation: padBeat .545s infinite; }
.metronome-pad strong { font-size: var(--step-2); }
.metronome-pad small { color: var(--ink-soft); font-size: var(--step-0); }
.dummy {
  position: relative;
  width: min(210px, 62vw);
  height: 150px;
  border-radius: 80px 80px 34px 34px;
  background: linear-gradient(180deg, #ffe0b8, #2dd4bf 34%);
  box-shadow: inset 0 -18px 0 rgba(7, 30, 51, .18);
}
.dummy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffd8a8;
}
.dummy span {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 96px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff3d8;
  box-shadow: 0 10px 0 rgba(7, 30, 51, .18);
}
.metronome-pad.running .dummy span { animation: compress .545s infinite; }
.card.critical { border-color: rgba(240, 68, 56, .48); background: linear-gradient(145deg, rgba(240, 68, 56, .2), rgba(255, 243, 216, .045)); }
.card.urgent { border-color: rgba(255, 209, 102, .48); }
.card.stable { border-color: rgba(45, 212, 191, .42); }
.card a, .procedure a { text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; color: var(--ink-soft); font-size: .9rem; }
.badge.red { background: rgba(240, 68, 56, .16); color: #ffb4a8; }
.badge.teal { background: rgba(45, 212, 191, .16); color: #a7fff2; }
.badge.yellow { background: rgba(255, 209, 102, .16); color: var(--yellow); }

.quick-bar { position: fixed; z-index: 9; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; }
.quick-bar button, .quick-bar a { box-shadow: var(--shadow); text-align: center; }

.atlas-stats, .section-pills, .source-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.atlas-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

.atlas-grid, .help-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.atlas-card, .help-contact-card, .source-panel {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, .055);
  color: var(--cream);
  text-decoration: none;
}

.atlas-card:hover {
  border-color: rgba(255, 243, 216, .42);
  transform: translateY(-1px);
}

.atlas-detail {
  padding-bottom: 3rem;
}

.atlas-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.step-list {
  display: grid;
  gap: .65rem;
  padding-left: 1.25rem;
}

.source-links a {
  color: var(--cream);
}

.contact-number {
  display: inline-flex;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .4rem;
}

.media-gate, .media-pending {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: .55rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 243, 216, .38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 243, 216, .08), rgba(31, 100, 116, .12)),
    rgba(255, 255, 255, .035);
  color: var(--cream);
}

.media-gate strong, .media-pending strong { font-size: var(--step-1); }
.media-gate p, .media-pending p { margin: 0; color: var(--muted); }
.media-gate ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.media-tile-text { min-height: 150px; align-content: end; }
.media-tile-text small { display: block; color: var(--muted); margin-top: .35rem; }
.navigator { max-width: 820px; margin: 0 auto; }
.answers { display: grid; gap: .75rem; margin: 1.3rem 0; }
.answer { width: 100%; text-align: left; font-size: var(--step-1); background: rgba(255, 243, 216, .1); border: 1px solid var(--line); box-shadow: none; }
.answer.risk { background: rgba(240, 68, 56, .22); border-color: rgba(240, 68, 56, .6); }
.result-action { padding: 1rem; border-radius: var(--radius); background: var(--cream); color: var(--navy); margin: 1rem 0; }
.result-action p { color: #244056; }
.progress-rail { display: flex; gap: .35rem; margin-bottom: 1rem; }
.progress-dot { flex: 1; height: .35rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress-dot.done { background: var(--teal); }

.procedure-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: 1rem; align-items: start; }
.step-list { display: grid; gap: .75rem; counter-reset: steps; }
.step-card { position: relative; padding: 1rem 1rem 1rem 3.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 243, 216, .07); }
.step-card::before { counter-increment: steps; content: counter(steps); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 900; }
.do-dont { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1rem; }
.dont { border-color: rgba(240, 68, 56, .55); }
.remember { border-color: rgba(45, 212, 191, .55); }

.cpr-sim { display: grid; gap: 1rem; }
.torso { position: relative; height: 320px; border-radius: var(--radius); background: radial-gradient(ellipse at center, #ffd8a8 0 26%, #2b6b7f 27% 58%, transparent 59%); overflow: hidden; }
.hands { position: absolute; left: 50%; top: 46%; width: 118px; height: 62px; transform: translate(-50%, -50%); border-radius: 999px; background: linear-gradient(90deg, #f2bf8d, #ffd7aa); box-shadow: 0 12px 0 rgba(100, 45, 22, .25); }
.compressing .hands { animation: compress .545s infinite; }
.rhythm { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--yellow), var(--red)); transform-origin: left center; }
.compressing .rhythm { animation: pulse .545s infinite; }

.calm-page {
  --calm-bg: #201713;
  --calm-panel: rgba(255, 232, 190, .09);
  --calm-line: rgba(255, 232, 190, .18);
  --calm-light: #ffd79a;
  --calm-sage: #9ad8c2;
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 215, 154, .14), transparent 28rem),
    radial-gradient(circle at 8% 28%, rgba(154, 216, 194, .1), transparent 22rem),
    linear-gradient(160deg, #241813, #111819 70%);
}
.calm-page h1 { max-width: 14ch; }
.calm-eyebrow { color: var(--calm-light); background: rgba(255, 215, 154, .12); }
.calm-alert {
  border-color: rgba(255, 215, 154, .28);
  background: rgba(255, 232, 190, .08);
}
.calm-alert .secondary { background: rgba(255, 215, 154, .14); border-color: rgba(255, 215, 154, .32); }
.calm-tool {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(300px, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  width: min(var(--max), 100%);
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid var(--calm-line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 232, 190, .1), rgba(255, 232, 190, .035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.orb-stage {
  min-height: 390px;
  display: grid;
  place-items: center;
  gap: 1rem;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(255, 215, 154, .1), transparent 18rem);
  text-align: center;
}
.breath-orb {
  width: min(310px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 250, 230, .95), transparent 11%),
    radial-gradient(circle at center, rgba(255, 215, 154, .9), rgba(154, 216, 194, .34) 58%, rgba(255, 215, 154, .08) 72%);
  box-shadow: 0 0 80px rgba(255, 215, 154, .28), inset 0 0 45px rgba(255, 255, 255, .16);
  animation: calmOrb var(--orb-duration, 6s) ease-in-out infinite;
}
.orb-stage.soft-motion .breath-orb { animation-name: calmOrbSoft; }
.orb-stage.paused .breath-orb, .breath-rectangle.paused .rect-dot { animation-play-state: paused; }
.orb-stage.text-only .breath-orb { display: none; }
.calm-text-cycle { display: grid; gap: .25rem; color: var(--ink-soft); }
.breath-rectangle {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 215, 154, .34);
  background: rgba(255, 232, 190, .04);
  overflow: hidden;
}
.rect-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--calm-light);
  box-shadow: 0 0 26px rgba(255, 215, 154, .72);
  animation: rectPath var(--rect-duration, 6s) linear infinite;
}
.breath-rectangle.soft-motion .rect-dot { animation-duration: calc(var(--rect-duration, 6s) * 1.8); opacity: .75; }
.rect-label {
  position: absolute;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: rgba(255, 232, 190, .08);
  color: var(--ink-soft);
  font-size: .9rem;
}
.rect-label.top { top: .6rem; left: 50%; transform: translateX(-50%); }
.rect-label.right { right: .6rem; top: 50%; transform: translateY(-50%); }
.rect-label.bottom { bottom: .6rem; left: 50%; transform: translateX(-50%); }
.rect-label.left { left: .6rem; top: 50%; transform: translateY(-50%); }
.calm-inner { width: min(var(--max), 100%); padding-block: 2rem; }
.grounding-card { position: relative; min-height: 220px; }
.grounding-card.done { border-color: rgba(154, 216, 194, .62); background: rgba(154, 216, 194, .1); }
.grounding-count {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #201713;
  background: var(--calm-light);
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: .75rem;
}
.calm-card { border-color: rgba(154, 216, 194, .28); }

.site-footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 6rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { font-size: .92rem; }

@keyframes compress { 50% { transform: translate(-50%, -37%) scale(.94); } }
@keyframes pulse { 50% { transform: scaleX(.25); } }
@keyframes padBeat { 50% { border-color: rgba(255, 209, 102, .88); transform: scale(.992); } }
@keyframes calmOrb { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1); } }
@keyframes calmOrbSoft { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1); } }
@keyframes rectPath {
  0% { left: 8%; top: 8%; }
  32% { left: 92%; top: 8%; }
  50% { left: 92%; top: 92%; }
  82% { left: 8%; top: 92%; }
  100% { left: 8%; top: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  .breath-orb { transform: scale(.94); }
  .rect-dot { left: 50%; top: 50%; }
}
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .top-nav { grid-column: 1 / -1; justify-content: start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .hero, .procedure-layout { grid-template-columns: 1fr; }
  h1 { max-width: 14ch; }
  .hero-scene { min-height: 340px; }
  .training-tabs { margin-left: -.25rem; margin-right: -.25rem; }
  .training-progress { display: grid; }
  .metronome-pad { min-height: 310px; }
  .calm-tool { grid-template-columns: 1fr; }
  .orb-stage, .breath-rectangle { min-height: 320px; }
  .hero-choices, .media-map, .split-band { grid-template-columns: 1fr; }
  .media-tile { min-height: 210px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-tool-wide { grid-column: auto; }
  .learning-path-card { grid-template-columns: 1fr; }
  .learning-path-card > img, .learning-path-card > picture { min-height: 220px; }
  .scene-intro { min-height: 520px; }
  .now-layer { display: grid; }
  .photo-step { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .site-header { padding: .65rem .75rem; }
  .section { width: min(100% - 1rem, var(--max)); }
  .emergency-toggle { padding-inline: .72rem; }
  .hero-scene { min-height: 300px; }
  .hotspot { font-size: .86rem; padding: .45rem .55rem; }
  .tab, .mode-chip, .answer { min-height: 52px; }
  .metronome-pad { min-height: 280px; }
  .lab-choice { min-height: 64px; }
  .orb-stage, .breath-rectangle { min-height: 280px; }
  .breath-orb { width: min(230px, 72vw); }
}

/* 2026 visual refresh: brighter first-aid identity, local artwork, calmer shapes. */
:root {
  color-scheme: light;
  --ink: #162b46;
  --ink-soft: #485b68;
  --navy: #162b46;
  --navy-2: #25496f;
  --cream: #fff8ea;
  --red: #ef3f48;
  --red-deep: #b92831;
  --yellow: #ffcd4b;
  --teal: #0ea5a4;
  --green: #58b872;
  --blue: #2f7fd1;
  --lavender: #8278d1;
  --muted: #536873;
  --panel: #ffffff;
  --line: #d9e5df;
  --shadow: 0 18px 52px rgba(22, 43, 70, .14);
  --soft-shadow: 0 8px 26px rgba(22, 43, 70, .1);
  --radius: 8px;
  --step--1: .92rem;
  --step-0: 1.04rem;
  --step-1: 1.32rem;
  --step-2: 1.9rem;
  --step-3: 3.18rem;
}

body {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(14, 165, 164, .08) 0 22%, transparent 22% 100%),
    linear-gradient(165deg, rgba(255, 205, 75, .16) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #fff8ea 0%, #f7fcf4 46%, #edf8fb 100%);
}

body::before {
  background:
    repeating-linear-gradient(90deg, rgba(22, 43, 70, .045) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(0deg, rgba(22, 43, 70, .035) 0 1px, transparent 1px 118px);
  opacity: .34;
}

p { color: var(--muted); }
h1, h2, h3 { color: var(--ink); letter-spacing: 0; }
h1 { max-width: 12.5ch; }
.lead { color: var(--ink-soft); }

.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: rgba(255, 248, 234, .9);
  border-bottom-color: rgba(22, 43, 70, .1);
  box-shadow: 0 10px 32px rgba(22, 43, 70, .08);
}

.brand {
  color: var(--ink);
  gap: .55rem;
  white-space: nowrap;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0;
  background: none;
  transform: none;
  box-shadow: none;
  animation: logoBeat 4.8s ease-in-out infinite;
}

.top-nav { gap: .15rem; }
.top-nav a {
  color: #4a6070;
  border-radius: 7px;
}
.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(14, 165, 164, .1);
}

.emergency-toggle,
.primary,
.secondary,
.answer,
.mode-chip,
.tab,
.lab-choice {
  border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.emergency-toggle,
.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff7b50);
  box-shadow: 0 12px 28px rgba(239, 63, 72, .24);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.mode-chip,
.tab,
.answer,
.lab-choice {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.mode-chip.active,
.tab.active,
.lab-choice.selected {
  color: #063538;
  background: #dff7ef;
  border-color: rgba(14, 165, 164, .45);
}

.primary:hover,
.secondary:hover,
.emergency-toggle:hover,
.giant-entry:hover,
.scene-module-card:hover,
.media-tile:hover,
.atlas-card:hover {
  transform: translateY(-2px);
}

.eyebrow,
.badge,
.scene-kicker,
.media-pending .media-pending-label {
  border-radius: 6px;
  letter-spacing: 0;
  color: #0a7775;
  background: rgba(14, 165, 164, .11);
  text-transform: none;
}

.badge.red,
.card.critical .badge,
.giant-entry.danger .scene-kicker { color: #a9232c; background: rgba(239, 63, 72, .12); }
.badge.yellow { color: #715000; background: rgba(255, 205, 75, .22); }
.badge.teal { color: #0a7775; background: rgba(14, 165, 164, .12); }

.academy-hero {
  min-height: calc(100svh - 4.2rem);
  align-items: center;
  background: #fff8ea;
}

.academy-hero > picture,
.academy-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.academy-hero > picture img,
.academy-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .98;
  animation: heroDrift 18s ease-in-out infinite;
}

.academy-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 248, 234, .96) 0%, rgba(255, 248, 234, .83) 34%, rgba(255, 248, 234, .25) 66%, rgba(255, 248, 234, .05) 100%),
    linear-gradient(0deg, rgba(22, 43, 70, .08), transparent 45%);
}

.academy-hero-copy {
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.academy-hero h1 {
  color: var(--ink);
  font-size: var(--step-3);
  max-width: 11ch;
}

.hero-choices { max-width: 940px; }
.giant-entry {
  min-height: 160px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(22, 43, 70, .12);
  box-shadow: var(--soft-shadow);
}
.giant-entry::before {
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(0deg, transparent 38%, #fff 38% 62%, transparent 62%),
    var(--teal);
}
.giant-entry.danger::before { background:
  linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%),
  linear-gradient(0deg, transparent 38%, #fff 38% 62%, transparent 62%),
  var(--red);
}
.giant-entry.urgent::before { background:
  linear-gradient(90deg, transparent 38%, #162b46 38% 62%, transparent 62%),
  linear-gradient(0deg, transparent 38%, #162b46 38% 62%, transparent 62%),
  var(--yellow);
}
.giant-entry strong { color: var(--ink); }
.giant-entry span { color: var(--muted); }

.media-map {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.media-tile {
  min-height: 300px;
  background: #fff;
  border-color: rgba(22, 43, 70, .1);
}

.media-tile picture,
.media-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 28, 42, .74), rgba(12, 28, 42, .04) 62%);
}

.media-tile span,
.media-tile small {
  position: absolute;
  z-index: 1;
  left: .85rem;
  right: .85rem;
}

.media-tile span {
  bottom: 3.2rem;
  width: fit-content;
  color: #fff;
  background: rgba(239, 63, 72, .92);
  border-radius: 6px;
}

.media-tile small {
  bottom: .85rem;
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  line-height: 1.3;
}

.split-band article,
.quiet-fact,
.card,
.procedure,
.navigator,
.training-card,
.notice,
.lab-tool,
.scene-layer,
.learning-path-card,
.atlas-card,
.help-contact-card,
.source-panel {
  color: var(--ink);
  border-color: rgba(22, 43, 70, .11);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
}

.scene-layer {
  margin-block: 1.25rem;
  padding: clamp(1rem, 3vw, 2.2rem);
}

.scene-intro {
  min-height: 620px;
  border: 0;
  box-shadow: var(--shadow);
}

.scene-intro picture,
.scene-intro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.scene-intro::after {
  background: linear-gradient(0deg, rgba(12, 28, 42, .8), rgba(12, 28, 42, .08) 60%);
}

.scene-intro h1,
.scene-intro .lead,
.scene-intro .meta,
.scene-intro .meta span {
  color: #fff;
}

.scene-intro .badge { background: rgba(255, 248, 234, .92); }

.now-layer {
  background:
    linear-gradient(135deg, rgba(255, 205, 75, .28), rgba(14, 165, 164, .15)),
    #fff;
}
.now-layer p { color: var(--muted); }

.scene-module-card {
  min-height: 390px;
  border: 0;
  background: #162b46;
  box-shadow: var(--shadow);
}

.scene-module-card picture,
.scene-module-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.scene-module-card::after {
  background: linear-gradient(0deg, rgba(10, 20, 31, .86), rgba(10, 20, 31, .05) 62%);
}

.scene-module-card > :not(picture):not(img) {
  position: relative;
  z-index: 1;
}

.scene-module-card h2,
.scene-module-card strong,
.scene-module-card p {
  color: #fff;
}

.scene-module-card .secondary {
  width: fit-content;
  background: rgba(255, 255, 255, .92);
}

.lab-media,
.training-illustration,
.wide-visual {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 43, 70, .1);
  background: #fff;
}

.wide-visual {
  aspect-ratio: 16 / 7;
  margin: 1.3rem 0;
  box-shadow: var(--soft-shadow);
}

.wide-visual picture,
.wide-visual img,
.training-illustration picture,
.training-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.training-illustration {
  aspect-ratio: 16 / 9;
  margin-bottom: .9rem;
}

.media-gate,
.media-pending {
  border-color: rgba(14, 165, 164, .28);
  background:
    linear-gradient(135deg, rgba(14, 165, 164, .12), rgba(255, 205, 75, .16)),
    #fff;
  color: var(--ink);
}

.media-gate p,
.media-pending p,
.media-gate ul,
.media-pending small {
  color: var(--muted);
}

.step-visual-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 36%, #fff 36% 64%, transparent 64%),
    linear-gradient(0deg, transparent 36%, #fff 36% 64%, transparent 64%),
    var(--teal);
  box-shadow: 0 10px 22px rgba(14, 165, 164, .18);
  animation: iconLift 3.8s ease-in-out infinite;
}

.photo-step {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(22, 43, 70, .1);
}

.step-card {
  background: #fff;
  border-color: rgba(22, 43, 70, .1);
}

.step-card::before {
  border-radius: 7px;
  background: var(--yellow);
}

.urgent-lanes { gap: .85rem; }
.rescue-lane {
  min-height: 96px;
  background: #fff;
  border-left: 8px solid var(--red);
  border-color: rgba(22, 43, 70, .1);
  box-shadow: var(--soft-shadow);
}
.rescue-lane span { color: var(--muted); }

.quick-bar {
  right: .8rem;
  bottom: .8rem;
}
.quick-bar .emergency-toggle,
.quick-bar .secondary {
  min-height: 42px;
  padding: .62rem .78rem;
}

.metronome-pad {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(14, 165, 164, .12), rgba(255, 205, 75, .16)),
    #fff;
}

.dummy { background: linear-gradient(180deg, #ffd9ad, #0ea5a4 34%); }
.torso { background: radial-gradient(ellipse at center, #ffd9ad 0 26%, #0ea5a4 27% 58%, transparent 59%); }

.calm-page {
  --calm-bg: #fff8ea;
  --calm-panel: rgba(255, 255, 255, .78);
  --calm-line: rgba(22, 43, 70, .12);
  --calm-light: #ffcd4b;
  --calm-sage: #0ea5a4;
  background:
    linear-gradient(135deg, rgba(130, 120, 209, .12), transparent 28%),
    linear-gradient(180deg, #fff8ea, #eef8fb);
}

.calm-tool {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(22, 43, 70, .12);
}

.orb-stage { background: linear-gradient(135deg, rgba(255, 205, 75, .12), rgba(14, 165, 164, .08)); }

.visual-intro {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.visual-intro picture,
.visual-intro img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  color: var(--muted);
  border-top-color: rgba(22, 43, 70, .12);
}

@keyframes logoBeat {
  0%, 68%, 100% { transform: scale(1); }
  72% { transform: scale(1.045); }
  76% { transform: scale(.99); }
}

@keyframes heroDrift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes iconLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 980px) {
  :root {
    --step-2: 1.65rem;
    --step-3: 2.48rem;
  }
  .academy-hero::after {
    background: linear-gradient(0deg, rgba(255, 248, 234, .96) 0%, rgba(255, 248, 234, .74) 55%, rgba(255, 248, 234, .22) 100%);
  }
  .hero-choices { grid-template-columns: 1fr; }
  .visual-intro { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .top-nav {
    grid-column: 1 / -1;
    justify-content: start;
  }
  .academy-hero {
    min-height: auto;
    padding-top: 20rem;
  }
  .academy-hero-copy { padding-bottom: 2rem; }
  .media-map { grid-template-columns: 1fr; }
  .wide-visual { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  :root {
    --step--1: .88rem;
    --step-0: 1rem;
    --step-1: 1.18rem;
    --step-2: 1.45rem;
    --step-3: 2.05rem;
  }
  .section { width: min(100% - 1rem, var(--max)); }
  .site-header { gap: .65rem; }
  .brand span:last-child { font-size: .98rem; }
  .emergency-toggle { min-height: 42px; }
  .academy-hero { padding-top: 16rem; }
  .media-tile { min-height: 245px; }
  .scene-intro { min-height: 470px; }
  .scene-module-card { min-height: 330px; }
  .quick-bar {
    left: .5rem;
    right: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-bar a,
  .quick-bar button {
    font-size: .86rem;
    padding-inline: .35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .academy-hero > picture img,
  .academy-hero > img,
  .step-visual-mark {
    animation: none !important;
  }
}

.top-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  min-width: 0;
  scrollbar-width: thin;
}

.top-nav a {
  flex: 0 0 auto;
  padding: .52rem .54rem;
  font-size: .88rem;
}

.quick-bar {
  position: static;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

.quick-bar .emergency-toggle,
.quick-bar .secondary {
  box-shadow: var(--soft-shadow);
}

@media (max-width: 860px) {
  .top-nav { justify-content: start; }
}

@media (max-width: 520px) {
  .quick-bar {
    width: min(100% - 1rem, var(--max));
    display: grid;
    grid-template-columns: 1fr;
  }
  .quick-bar a,
  .quick-bar button {
    font-size: .92rem;
  }
}
