:root {
  --paper: #f3f5f1;
  --paper-strong: #fbfcf9;
  --ink: #16201d;
  --muted: #59665f;
  --line: #c9d1cc;
  --line-strong: #a7b5ad;
  --teal: #0c7b75;
  --teal-soft: #e8f3f1;
  --amber: #c48a24;
  --amber-soft: #fff5e5;
  --red: #c74638;
  --red-soft: #fceae7;
  --blue: #2e65a5;
  --blue-soft: #ecf1f7;
  --green-soft: #eff4ea;
  --white: #ffffff;
  --shadow: 0 14px 42px rgba(22, 32, 29, 0.08);
  --reading-width: 940px;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "STZhongsong", "Songti SC", "SimSun", serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

body.font-large {
  font-size: 21px;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(46, 101, 165, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 5.2vw, 78px);
}

h1 em {
  color: var(--teal);
  font-style: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.3vw, 48px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.45;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.personal-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 34px;
  padding: 5px 18px;
  color: #fff9f5;
  background: #7c2f27;
  font-size: 11px;
  line-height: 1.4;
}

.personal-banner strong {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.personal-copy .topbar {
  top: 34px;
}

.personal-copy .reading-shell {
  padding-top: 106px;
}

.personal-copy .chapter-nav {
  top: 106px;
  height: calc(100vh - 106px);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr auto;
  align-items: center;
  height: 72px;
  padding: 0 22px;
  background: rgba(251, 252, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.topbar__progress {
  justify-self: center;
  width: min(520px, 64%);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.progress-copy strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: #dbe1dd;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 120ms linear;
}

.topbar__actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--paper);
  border-color: var(--line);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.menu-toggle {
  display: none;
}

.reading-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 72px;
}

.chapter-nav {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 28px 20px;
  overflow-y: auto;
  background: var(--paper-strong);
  border-right: 1px solid var(--line);
}

.nav-intro {
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--line);
}

.nav-intro h2 {
  margin: 6px 0 8px;
  font-family: var(--font-body);
  font-size: 20px;
}

.nav-intro p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.study-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.study-meter button {
  padding: 2px 0;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chapter-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 18px 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 7px 10px;
  color: #4b5952;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--paper);
}

.nav-link.is-active {
  color: var(--teal);
  background: var(--teal-soft);
  border-left-color: var(--teal);
  font-weight: 700;
}

.nav-link--primary {
  margin: 5px 0;
  color: var(--ink);
  background: #e3eee9;
  border: 1px solid #b6d0c8;
  font-weight: 700;
}

.nav-link.is-studied::after {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.nav-foot {
  padding: 18px 4px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}

.nav-foot p {
  margin-bottom: 7px;
}

.evidence-badge,
.evidence-legend b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: var(--white);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.grade-a {
  background: var(--teal);
}

.grade-b {
  background: var(--blue);
}

.grade-c {
  background: var(--amber);
}

main {
  min-width: 0;
}

.chapter,
.learning-map {
  position: relative;
  width: 100%;
  padding: 96px max(44px, calc((100% - var(--reading-width)) / 2));
  border-bottom: 1px solid var(--line);
}

.chapter:nth-child(even),
.learning-map {
  background: rgba(251, 252, 249, 0.56);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 68px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 88px;
  padding-bottom: 78px;
  background: var(--paper-strong);
}

.hero__lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero__meta {
  display: flex;
  gap: 26px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
}

.hero__meta span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero__meta strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button--primary {
  color: var(--white);
  background: var(--ink);
}

.button--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
}

.button--ghost:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 0.45fr;
  min-height: 540px;
  border: 1px solid var(--line-strong);
  background: #dfe6e1;
  overflow: hidden;
}

.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure--main {
  grid-column: 1 / -1;
}

.hero-figure--main img {
  object-fit: contain;
  object-position: center 50%;
  background: var(--paper);
}

.hero-figure--ct,
.hero-figure--us {
  border-top: 1px solid var(--line-strong);
}

.hero-figure--us {
  border-left: 1px solid var(--line-strong);
}

.hero-figure figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(22, 32, 29, 0.84);
  border-radius: 2px;
  font-size: 10px;
  line-height: 1;
}

.safety-banner {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 34px max(44px, calc((100% - var(--reading-width)) / 2));
  color: #fff9f7;
  background: #632c26;
}

.safety-banner__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.safety-banner__icon svg {
  width: 30px;
  height: 30px;
}

.safety-banner .eyebrow {
  color: #ffb0a5;
}

.safety-banner h2 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 22px;
}

.safety-banner p:last-child {
  max-width: 1050px;
  margin-bottom: 0;
  color: #f3d6d2;
  font-size: 14px;
}

.scope-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px max(44px, calc((100% - var(--reading-width)) / 2));
  color: #4f411f;
  background: var(--amber-soft);
  border-bottom: 1px solid #ddc18c;
}

.scope-strip > strong {
  color: #7b591c;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.scope-strip p {
  margin: 0;
  font-size: 13px;
}

.scope-strip span {
  padding: 3px 7px;
  color: var(--white);
  background: var(--amber);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}

.artifact-governance {
  padding: 30px max(44px, calc((100% - var(--reading-width)) / 2));
  background: #e8eee9;
  border-bottom: 1px solid var(--line-strong);
}

.artifact-governance__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}

.artifact-governance__head .eyebrow {
  margin-bottom: 0;
}

.artifact-governance__head h2 {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 23px;
}

.artifact-governance__head > p:last-child {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.artifact-governance dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.artifact-governance dl > div {
  padding: 12px 14px;
  background: var(--paper-strong);
}

.artifact-governance dt {
  margin-bottom: 3px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.artifact-governance dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.artifact-prohibited {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #6d2f28;
  background: #f8dfdb;
  border-left: 3px solid var(--red);
  font-size: 12px;
}

.beginner-primer {
  padding: 72px max(44px, calc((100% - var(--reading-width)) / 2));
  background: #f7f9f5;
  border-bottom: 1px solid var(--line);
}

.beginner-primer__head {
  max-width: 850px;
  margin-bottom: 28px;
}

.beginner-primer__head > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.beginner-story {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr) auto);
  align-items: stretch;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.beginner-story span {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 12px 14px;
  color: #254a45;
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.beginner-story i {
  display: grid;
  place-items: center;
  width: 30px;
  color: var(--teal);
  background: var(--paper-strong);
}

.beginner-story i svg {
  width: 17px;
  height: 17px;
}

.beginner-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.beginner-facts article {
  min-height: 220px;
  padding: 22px 18px;
  background: var(--paper-strong);
  border-right: 1px solid var(--line);
}

.beginner-facts article:last-child {
  border-right: 0;
}

.beginner-facts span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.beginner-facts h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
}

.beginner-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.beginner-glossary {
  margin-top: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.beginner-glossary summary {
  padding: 18px 22px;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.beginner-glossary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
  padding: 0 22px 22px;
}

.beginner-glossary dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.beginner-glossary dt {
  font-weight: 700;
}

.beginner-glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.master-atlas {
  padding: 78px max(44px, calc((100% - var(--reading-width)) / 2));
  background: #edf1ed;
  border-bottom: 1px solid var(--line);
}

.master-atlas__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px 52px;
  align-items: end;
  margin-bottom: 30px;
}

.master-atlas__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.master-atlas__head h2 {
  margin-bottom: 0;
}

.master-atlas__head > p:last-child {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.master-figure {
  margin-bottom: 0;
}

.master-figure img {
  max-height: 890px;
  background: var(--paper);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.mental-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mental-model-grid article {
  position: relative;
  min-height: 230px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.mental-model-grid article:last-child {
  border-right: 0;
}

.mental-model-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 32px;
  color: var(--teal);
}

.model-number {
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mental-model-grid h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.mental-model-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.terminology-strip {
  display: grid;
  grid-template-columns: auto auto 20px auto;
  gap: 12px;
  align-items: start;
  margin-top: 30px;
  padding: 20px 22px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
}

.terminology-strip strong {
  white-space: nowrap;
}

.terminology-strip p {
  margin-bottom: 0;
  color: #305a55;
  font-size: 13px;
}

.terminology-strip a {
  font-family: var(--font-mono);
  font-size: 11px;
}

.image-figure {
  margin: 0 0 36px;
}

.image-figure img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #111a17;
  border: 1px solid var(--line-strong);
}

.image-figure:not(.annotated-figure) > img {
  cursor: zoom-in;
}

.image-figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.image-figure figcaption > span:first-child {
  max-width: 74ch;
}

.image-source {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: #42534b;
  background: #e3e8e4;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.image-figure--wide img {
  max-height: 760px;
}

.image-stage {
  position: relative;
  overflow: hidden;
  background: #111a17;
  border: 1px solid var(--line-strong);
}

.image-stage > img {
  border: 0;
  cursor: zoom-in;
}

.annotation-layer {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.annotated-figure[data-annotations="true"] .annotation-layer {
  display: block;
}

.hotspot {
  position: absolute;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(198, 70, 56, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hotspot::before {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 7px;
  height: 1px;
  background: #fff;
  content: "";
}

.hotspot--1 {
  top: 55%;
  left: 58%;
}

.hotspot--2 {
  top: 31%;
  left: 70%;
}

.hotspot--3 {
  top: 67%;
  left: 44%;
}

.hotspot--fn {
  top: 64%;
  left: 34%;
}

.hotspot--mp {
  top: 31%;
  left: 64%;
}

.hotspot--sp {
  top: 79%;
  left: 35%;
}

.hotspot--smf {
  top: 88%;
  left: 48%;
}

.hotspot--target {
  top: 30%;
  left: 52%;
}

.hotspot--path {
  top: 21%;
  left: 56%;
}

.hotspot--skin {
  top: 8%;
  left: 46%;
}

.figure-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--teal);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.prose-columns,
.dual-column,
.two-panel-grid,
.positioning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.prose-columns {
  margin-bottom: 38px;
}

.prose-columns h3 {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
}

.prose-columns p,
.prose-card p {
  color: var(--muted);
  font-size: 16px;
}

.data-table-wrap,
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 26px 0 34px;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper-strong);
  font-size: 15px;
  line-height: 1.65;
}

.data-table caption {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  background: #e7ece8;
  font-weight: 700;
}

.data-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.evidence-row a {
  font-family: var(--font-mono);
}

.evidence-row p {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
}

.landmark-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.landmark-list article {
  padding: 26px 22px;
  background: var(--paper-strong);
}

.landmark-list article > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.landmark-list svg {
  width: 21px;
  height: 21px;
  color: var(--teal);
}

.landmark-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.landmark-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.anatomy-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.anatomy-layer-grid article {
  padding: 26px 24px;
  background: var(--paper-strong);
}

.anatomy-layer-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.anatomy-layer-grid h3 {
  font-family: var(--font-display);
  font-size: 23px;
}

.anatomy-layer-grid p {
  color: var(--muted);
  font-size: 14px;
}

.landmark-list p:last-child {
  margin-bottom: 0;
}

.key-callout {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  background: var(--green-soft);
  border-left: 4px solid #5a7e45;
}

.key-callout > svg {
  width: 28px;
  height: 28px;
  color: #5a7e45;
}

.key-callout h3 {
  margin-bottom: 4px;
}

.key-callout p {
  margin-bottom: 0;
  color: #435441;
  font-size: 13px;
}

.key-callout > a {
  font-family: var(--font-mono);
  font-size: 11px;
}

.key-callout--teal {
  background: var(--teal-soft);
  border-left-color: var(--teal);
}

.key-callout--teal > svg {
  color: var(--teal);
}

.key-callout--teal p {
  color: #315b56;
}

.key-callout--amber {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}

.key-callout--amber > svg {
  color: var(--amber);
}

.key-callout--amber p {
  color: #665027;
}

.key-callout--red {
  background: var(--red-soft);
  border-left-color: var(--red);
}

.key-callout--red > svg {
  color: var(--red);
}

.key-callout--red p {
  color: #65342e;
}

.textbook-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin: 6px 0 32px;
  padding: 22px 24px;
  background: #f4efe2;
  border-left: 4px solid #9a742e;
}

.textbook-note > svg {
  width: 27px;
  height: 27px;
  color: #8e6418;
}

.textbook-note h3 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 22px;
}

.textbook-note p {
  margin: 0;
  color: #655638;
  font-size: 13px;
}

.textbook-note__refs {
  display: flex;
  gap: 8px;
}

.textbook-note__refs a {
  font-family: var(--font-mono);
  font-size: 10px;
}

.measurement-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1px;
  margin: 0 0 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.measurement-strip > div {
  padding: 18px 20px;
  background: var(--paper-strong);
}

.measurement-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.measurement-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 17px;
}

.measurement-strip small {
  color: var(--muted);
  font-size: 10px;
}

.measurement-strip > a {
  display: grid;
  place-items: center;
  min-width: 54px;
  background: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.textbook-section {
  margin: 48px 0 38px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.textbook-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 24px 44px;
  align-items: end;
  margin-bottom: 26px;
}

.textbook-section__head .eyebrow {
  margin-bottom: 5px;
}

.textbook-section__head h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 29px;
}

.textbook-section__head > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.textbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.textbook-grid article {
  padding: 24px;
  background: var(--paper-strong);
}

.textbook-grid article > span {
  display: block;
  margin-bottom: 18px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.textbook-grid h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
}

.textbook-grid p {
  color: var(--muted);
  font-size: 13px;
}

.textbook-grid strong {
  display: block;
  padding-top: 12px;
  color: #315b56;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  line-height: 1.6;
}

.netter-section {
  background: #f7f3ea;
}

.netter-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 18px 20px;
  color: #5f3f20;
  background: #f6ead8;
  border-left: 4px solid #a86f26;
}

.netter-warning svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #8a5b20;
}

.netter-warning p {
  margin: 0;
  font-size: 13px;
}

.netter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.netter-card {
  background: var(--paper-strong);
  border: 1px solid #c7bda9;
}

.netter-card .image-figure {
  margin: 0;
}

.netter-figure img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d8cfbf;
}

.netter-card .image-figure figcaption {
  padding: 10px 14px;
  border-bottom: 1px solid #ded6c8;
}

.netter-read {
  padding: 22px 22px 24px;
}

.netter-read h3 {
  font-family: var(--font-display);
  font-size: 24px;
}

.netter-read ol {
  padding-left: 20px;
}

.netter-read li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.netter-tip {
  margin: 16px 0 0;
  padding-top: 12px;
  color: #6b4a20;
  border-top: 1px dashed #cbbfa9;
  font-size: 13px;
  font-weight: 700;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.atlas-grid .image-figure {
  margin: 0;
}

.atlas-grid .image-figure img {
  height: 360px;
  object-fit: contain;
}

.atlas-grid .image-figure figcaption {
  min-height: 72px;
}

.atlas-grid--two .image-figure img {
  height: 310px;
}

.decision-ribbon {
  display: flex;
  align-items: stretch;
  margin-bottom: 30px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.decision-ribbon > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 94px;
  padding: 16px 20px;
}

.decision-ribbon > svg {
  align-self: center;
  flex: 0 0 28px;
  color: var(--line-strong);
}

.decision-ribbon span {
  color: var(--muted);
  font-size: 10px;
}

.decision-ribbon strong {
  font-size: 13px;
  line-height: 1.55;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 24px;
  background: var(--paper-strong);
  border-top: 4px solid var(--teal);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.panel--amber {
  border-top-color: var(--amber);
}

.panel--red {
  border-top-color: var(--red);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-title svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.panel--amber .panel-title svg {
  color: var(--amber);
}

.panel--red .panel-title svg {
  color: var(--red);
}

.panel-title h3 {
  margin: 0;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.check-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  content: "";
}

.panel--amber .check-list li::before {
  background: var(--amber);
}

.panel--red .check-list li::before {
  background: var(--red);
}

.warning-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  color: #5e2d27;
  background: var(--red-soft);
  border: 1px solid #e2aaa3;
}

.warning-box svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--red);
}

.warning-box p {
  margin: 0;
  font-size: 13px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prep-card {
  position: relative;
  padding: 26px 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.prep-card > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
}

.prep-card > svg {
  width: 24px;
  height: 24px;
  margin-bottom: 22px;
  color: var(--teal);
}

.prep-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.prep-card ul,
.record-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.dose-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
}

.dose-note > div {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dose-note svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.dose-note span {
  color: var(--muted);
  font-size: 11px;
}

.dose-note p {
  margin: 0;
  color: #62502e;
  font-size: 12.5px;
}

.dose-note a {
  font-family: var(--font-mono);
  font-size: 11px;
}

.parameter-table {
  max-width: 100%;
  margin-top: 30px;
  overflow-x: auto;
}

.parameter-table__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.parameter-table__head p {
  color: var(--muted);
  font-size: 12px;
}

.setup-sequence {
  display: grid;
  gap: 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}

.setup-sequence article {
  display: grid;
  grid-template-columns: 44px 28px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.setup-sequence article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
}

.setup-sequence article > svg {
  width: 22px;
  height: 22px;
  margin-top: 5px;
  color: var(--teal);
}

.setup-sequence h3 {
  margin-bottom: 4px;
}

.setup-sequence p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.positioning-grid {
  align-items: start;
}

.positioning-grid .image-figure img {
  height: 100%;
  object-fit: cover;
}

.prose-card {
  padding: 26px 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.prose-card ol {
  padding-left: 20px;
}

.prose-card li {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.step-stack {
  position: relative;
  max-width: 900px;
  margin-bottom: 38px;
}

.step-stack::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 24px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.procedure-step {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 30px;
}

.step-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: var(--ink);
  border: 6px solid var(--paper);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
}

.step-body {
  padding: 18px 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.step-body h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.step-body p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}

.step-check {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: #245f59 !important;
}

.ct-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 32px;
}

.ct-atlas-intro {
  max-width: 900px;
  margin-bottom: 22px;
}

.ct-atlas-intro h3 {
  font-family: var(--font-display);
  font-size: 28px;
}

.ct-atlas-intro p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.plan-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plan;
}

.plan-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 16px;
  padding: 0 0 24px;
  counter-increment: plan;
}

.plan-steps li::before {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid #9ac7c2;
  border-radius: 50%;
  content: counter(plan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.plan-steps strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.plan-steps span {
  color: var(--muted);
  font-size: 13px;
}

.ct-callouts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ct-callouts > div {
  display: grid;
  grid-template-columns: 26px 70px 1fr;
  gap: 10px;
  align-items: center;
  padding: 18px;
  background: var(--paper-strong);
}

.ct-callouts svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.ct-callouts strong {
  font-size: 13px;
}

.ct-callouts span {
  color: var(--muted);
  font-size: 11.5px;
}

.table-scroll .data-table {
  min-width: 820px;
}

.path-planning-detail {
  margin: 34px 0;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.path-planning-detail__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.path-planning-detail__head h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 29px;
}

.path-planning-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-planning-detail__grid article {
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.path-planning-detail__grid article > span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.path-planning-detail__grid h4 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.path-planning-detail__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.path-planning-detail__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
}

.path-planning-detail__strip > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.path-planning-detail__strip > div:last-child {
  border-right: 0;
}

.path-planning-detail__strip b {
  color: var(--teal);
  font-size: 13px;
}

.path-planning-detail__strip > div:nth-child(2) b {
  color: var(--amber);
}

.path-planning-detail__strip > div:nth-child(3) b {
  color: var(--red);
}

.path-planning-detail__strip span {
  color: var(--muted);
  font-size: 12px;
}

.data-table--comparison td:nth-child(2) {
  background: #f0f5eb;
}

.data-table--comparison td:nth-child(3) {
  background: #edf2f7;
}

.data-table--comparison td:nth-child(4) {
  background: #fff8eb;
}

.approach-decision {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  margin-top: 28px;
  border: 1px solid var(--line);
}

.approach-decision__head {
  padding: 22px;
  background: var(--ink);
}

.approach-decision__head h3 {
  margin-bottom: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
}

.approach-decision__head .eyebrow {
  color: #88d6ce;
}

.approach-question {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--paper-strong);
  border-left: 1px solid var(--line);
}

.approach-question span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.approach-question p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.procedure-timeline {
  display: grid;
  gap: 0;
  margin-bottom: 34px;
}

.procedure-timeline article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.procedure-timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--teal);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.procedure-timeline h3 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 23px;
}

.procedure-timeline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.technique-checklist {
  margin: 32px 0;
  padding: 24px;
  background: #eef3ef;
  border: 1px solid var(--line);
}

.technique-checklist__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.technique-checklist__head .eyebrow {
  margin-bottom: 0;
}

.technique-checklist__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
}

.technique-checklist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.technique-checklist__grid > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--paper-strong);
}

.technique-checklist__grid span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.technique-checklist__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stimulator-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.7fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px;
  color: var(--white);
  background: var(--ink);
}

.stimulator-panel > svg {
  width: 24px;
  height: 24px;
  color: #7e9188;
}

.stimulator-readout span,
.stimulator-result span {
  display: block;
  margin-bottom: 8px;
  color: #91aaa0;
  font-size: 10px;
  text-transform: uppercase;
}

.stimulator-readout strong {
  color: #f2c953;
  font-family: var(--font-mono);
  font-size: 25px;
}

.stimulator-readout p,
.stimulator-result p {
  margin: 4px 0 0;
  color: #b9c9c2;
  font-size: 11px;
}

.stimulator-result strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.4;
}

.confirmation-chain {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.confirmation-chain article {
  padding: 20px;
  background: var(--paper-strong);
}

.confirmation-chain__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--ink);
}

.confirmation-chain__head strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.confirmation-chain__head span {
  color: #b8c9c1;
  font-size: 11px;
}

.confirmation-chain article span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.confirmation-chain article strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 21px;
}

.confirmation-chain article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.confirmation-chain > i {
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
}

.confirmation-chain > i svg {
  width: 17px;
  height: 17px;
}

.two-panel-grid {
  gap: 20px;
}

.rf-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.rf-step {
  min-height: 230px;
  padding: 22px 18px;
  background: var(--paper-strong);
}

.rf-step > span {
  display: block;
  margin-bottom: 30px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rf-step strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
}

.rf-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.rf-step--stop {
  color: var(--white);
  background: #6a2c25;
}

.rf-step--stop > span,
.rf-step--stop p {
  color: #f3c8c3;
}

.ranges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ranges-grid article {
  padding: 20px 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.ranges-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}

.ranges-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 19px;
}

.ranges-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.record-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.record-card > div {
  display: flex;
  gap: 12px;
}

.record-card svg {
  width: 23px;
  height: 23px;
  color: var(--teal);
}

.record-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.danger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.danger-grid article {
  padding: 23px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

.danger-grid svg {
  width: 23px;
  height: 23px;
  margin-bottom: 18px;
  color: var(--red);
}

.danger-grid h3 {
  font-family: var(--font-display);
  font-size: 21px;
}

.danger-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.emergency-panel {
  padding: 24px;
  color: #fff8f6;
  background: #6a2c25;
}

.emergency-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.emergency-panel__head svg {
  width: 25px;
  height: 25px;
}

.emergency-panel__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.emergency-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.emergency-columns ul {
  margin: 0;
  padding-left: 20px;
  color: #f0d7d3;
  font-size: 12.5px;
  line-height: 1.75;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.walkthrough {
  background: var(--paper-strong);
}

.walkthrough-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.walkthrough-gates > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  padding: 18px;
  background: var(--teal-soft);
}

.walkthrough-gates span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.walkthrough-gates strong {
  font-size: 13px;
}

.walkthrough-gates small {
  color: var(--muted);
  font-size: 11px;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.walk-card {
  position: relative;
  min-height: 300px;
  padding: 25px 23px;
  background: var(--paper);
}

.walk-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 17px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.walk-phase {
  margin-bottom: 4px !important;
  color: var(--teal) !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.walk-card h3 {
  min-height: 2.6em;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 24px;
}

.walk-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.walk-stop {
  margin-top: auto;
  padding-top: 10px;
  color: #7e322a !important;
  border-top: 1px dashed var(--line);
}

.us-reading-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 34px;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.us-reading-guide__image {
  display: flex;
  align-items: center;
  background: #101916;
}

.us-reading-guide__image img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  cursor: zoom-in;
}

.us-reading-guide__copy {
  padding: 12px 8px;
}

.us-reading-guide__copy .eyebrow {
  margin-bottom: 6px;
}

.us-reading-guide__copy h3 {
  font-family: var(--font-display);
  font-size: 29px;
}

.us-reading-guide__copy ol {
  padding-left: 20px;
}

.us-reading-guide__copy li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.us-troubleshooting {
  margin: 34px 0;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.us-troubleshooting > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.us-troubleshooting > div:first-child h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.us-troubleshooting__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.us-troubleshooting__grid article {
  padding: 20px;
  background: var(--paper-strong);
}

.us-troubleshooting__grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
}

.us-troubleshooting__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.risk-management {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.risk-management__head {
  max-width: 820px;
  margin-bottom: 20px;
}

.risk-management__head h3 {
  font-family: var(--font-display);
  font-size: 29px;
}

.risk-management__head > p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.risk-table {
  min-width: 860px;
  table-layout: fixed;
}

.risk-table td {
  font-size: 14px;
}

.risk-table th:nth-child(1),
.risk-table td:nth-child(1) {
  width: 12%;
}

.risk-table th:nth-child(2),
.risk-table td:nth-child(2),
.risk-table th:nth-child(3),
.risk-table td:nth-child(3) {
  width: 22%;
}

.risk-table th:nth-child(4),
.risk-table td:nth-child(4) {
  width: 33%;
}

.risk-table th:nth-child(5),
.risk-table td:nth-child(5) {
  width: 11%;
}

.recovery-card {
  min-height: 260px;
  padding: 22px;
  background: var(--paper-strong);
}

.recovery-card > span {
  display: block;
  margin-bottom: 26px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
}

.recovery-card svg {
  width: 25px;
  height: 25px;
  margin-bottom: 20px;
  color: var(--teal);
}

.recovery-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
}

.recovery-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-study {
  border-top: 6px solid var(--teal);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.case-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.case-meta span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.case-meta strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.case-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.case-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-timeline > div {
  min-height: 230px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-timeline > div:nth-child(even) {
  border-right: 0;
}

.case-timeline span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 7px;
  color: var(--white);
  background: var(--teal);
  font-family: var(--font-mono);
  font-size: 9px;
}

.case-timeline h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.case-timeline p {
  color: var(--muted);
  font-size: 13px;
}

.case-timeline em {
  display: block;
  margin-top: 18px;
  padding-top: 10px;
  color: #8b3a31;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.quiz-list {
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
}

.quiz-list details {
  border-bottom: 1px solid var(--line);
}

.quiz-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.quiz-list summary::-webkit-details-marker {
  display: none;
}

.quiz-list summary::after {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--teal);
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  transform: translateY(-50%);
}

.quiz-list details[open] summary::after {
  content: "−";
}

.quiz-list details p {
  max-width: 80ch;
  padding: 0 34px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.print-checklist {
  padding: 30px;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
}

.print-checklist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.print-checklist__head h2 {
  margin-bottom: 0;
  font-size: 32px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.checklist-grid label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.checklist-grid input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.evidence-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.evidence-item__id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.evidence-item h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.evidence-item p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.evidence-item__meta {
  color: #6f7e76;
  font-size: 10px;
}

.evidence-item a {
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.evidence-item__local {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.evidence-item:target {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(12, 123, 117, 0.16);
}

.source-note {
  margin-top: 26px;
  padding: 22px;
  color: #5c4b2d;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
}

.source-note h3 {
  font-family: var(--font-display);
  font-size: 21px;
}

.source-note p {
  margin-bottom: 8px;
  font-size: 12px;
}

.source-note code {
  padding: 2px 5px;
  background: rgba(196, 138, 36, 0.14);
  font-family: var(--font-mono);
  font-size: 10px;
}

.final-statement {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 2px solid var(--ink);
}

.final-statement h2 {
  max-width: 740px;
}

.final-statement ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: final;
}

.final-statement li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  counter-increment: final;
}

.final-statement li::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  content: counter(final);
  font-family: var(--font-mono);
  font-size: 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px max(44px, calc((100% - var(--reading-width)) / 2));
  color: #c5d1cb;
  background: var(--ink);
  font-size: 11px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #95d8d2;
}

.image-dialog {
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.image-dialog::backdrop {
  background: rgba(12, 20, 17, 0.84);
  backdrop-filter: blur(3px);
}

.image-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.image-dialog img {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  background: #0f1715;
}

.image-dialog__foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.image-dialog__foot p {
  margin-bottom: 3px;
  font-size: 13px;
}

.image-dialog__foot small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1220px) {
  .reading-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .chapter-nav {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chapter,
  .learning-map,
  .master-atlas,
  .beginner-primer,
  .site-footer {
    padding-right: 38px;
    padding-left: 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__visual {
    min-height: 520px;
  }

  .mental-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walkthrough-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mental-model-grid article:nth-child(2) {
    border-right: 0;
  }

  .mental-model-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .approach-decision {
    grid-template-columns: repeat(4, 1fr);
  }

  .approach-decision__head {
    grid-column: 1 / -1;
  }

  .rf-ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rf-step {
    min-height: 190px;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .topbar__progress {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .reading-shell {
    grid-template-columns: 1fr;
  }

  .chapter-nav {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 900;
    width: min(340px, 88vw);
    height: auto;
    border-right: 1px solid var(--line-strong);
    box-shadow: 18px 0 52px rgba(22, 32, 29, 0.16);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .personal-banner {
    justify-content: flex-start;
    font-size: 10px;
  }

  .personal-copy .topbar {
    top: 44px;
  }

  .personal-copy .reading-shell {
    padding-top: 116px;
  }

  .personal-copy .chapter-nav {
    top: 106px;
    height: calc(100vh - 106px);
  }

  .netter-grid {
    grid-template-columns: 1fr;
  }

  .nav-open .chapter-nav {
    transform: translateX(0);
  }

  .chapter,
  .learning-map,
  .master-atlas,
  .beginner-primer,
  .site-footer {
    padding-right: 42px;
    padding-left: 42px;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .three-column,
  .danger-grid,
  .anatomy-layer-grid,
  .path-planning-detail__grid,
  .us-troubleshooting__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-column > :last-child,
  .danger-grid > :last-child {
    grid-column: 1 / -1;
  }

  .recovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach-decision {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-decision__head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    font-size: 18px;
  }

  .topbar {
    height: 62px;
    padding: 0 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy small {
    display: none;
  }

  .personal-banner {
    min-height: 58px;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
  }

  .personal-copy .topbar {
    top: 58px;
  }

  .personal-copy .reading-shell {
    padding-top: 120px;
  }

  .personal-copy .chapter-nav {
    top: 120px;
    height: calc(100vh - 120px);
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .chapter-nav {
    top: 62px;
  }

  .reading-shell {
    padding-top: 62px;
  }

  .chapter,
  .learning-map,
  .master-atlas {
    padding: 70px 22px;
  }

  .beginner-primer {
    padding: 58px 22px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(32px, 8.7vw, 38px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .hero__visual {
    min-height: 430px;
  }

  .safety-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 22px;
  }

  .scope-strip {
    grid-template-columns: 1fr auto;
    padding: 16px 22px;
  }

  .artifact-governance {
    padding: 24px 22px;
  }

  .artifact-governance__head {
    display: block;
  }

  .artifact-governance__head > p:last-child {
    margin: 6px 0 0;
  }

  .artifact-governance dl {
    grid-template-columns: 1fr;
  }

  .scope-strip p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .safety-banner__icon {
    width: 48px;
    height: 48px;
  }

  .mental-model-grid,
  .prose-columns,
  .dual-column,
  .two-panel-grid,
  .positioning-grid,
  .prep-grid,
  .atlas-grid,
  .three-column,
  .danger-grid,
  .recovery-grid,
  .ranges-grid,
  .case-timeline,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .walkthrough-grid,
  .walkthrough-gates,
  .anatomy-layer-grid,
  .path-planning-detail__grid,
  .path-planning-detail__strip,
  .technique-checklist__grid,
  .us-reading-guide,
  .us-troubleshooting__grid {
    grid-template-columns: 1fr;
  }

  .confirmation-chain {
    grid-template-columns: 1fr;
  }

  .confirmation-chain__head {
    display: block;
  }

  .confirmation-chain__head span {
    display: block;
    margin-top: 3px;
  }

  .confirmation-chain > i {
    min-height: 28px;
    transform: rotate(90deg);
  }

  .beginner-story,
  .beginner-facts,
  .beginner-glossary dl {
    grid-template-columns: 1fr;
  }

  .beginner-story i {
    width: auto;
    height: 28px;
    transform: rotate(90deg);
  }

  .beginner-facts article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .beginner-facts article:last-child {
    border-bottom: 0;
  }

  .beginner-glossary dl > div {
    grid-template-columns: 100px 1fr;
  }

  .walkthrough-gates > div,
  .path-planning-detail__strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .walkthrough-gates > div:last-child,
  .path-planning-detail__strip > div:last-child {
    border-bottom: 0;
  }

  .walk-card {
    min-height: auto;
  }

  .walk-card h3 {
    min-height: 0;
  }

  .us-troubleshooting > div:first-child,
  .technique-checklist__head,
  .path-planning-detail__head {
    display: block;
  }

  .us-troubleshooting > div:first-child .eyebrow,
  .technique-checklist__head .eyebrow,
  .path-planning-detail__head .eyebrow {
    margin-bottom: 6px;
  }

  .textbook-section__head,
  .textbook-grid {
    grid-template-columns: 1fr;
  }

  .textbook-note {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .measurement-strip {
    grid-template-columns: 1fr;
  }

  .measurement-strip > a {
    min-height: 38px;
  }

  .textbook-note__refs {
    grid-column: 2;
  }

  .master-atlas__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mental-model-grid article,
  .mental-model-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mental-model-grid article:last-child {
    border-bottom: 0;
  }

  .terminology-strip {
    grid-template-columns: auto 1fr auto;
  }

  .terminology-strip p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .landmark-list {
    grid-template-columns: 1fr;
  }

  .atlas-grid .image-figure img,
  .atlas-grid--two .image-figure img {
    height: 260px;
  }

  .decision-ribbon {
    flex-direction: column;
  }

  .decision-ribbon > svg {
    transform: rotate(90deg);
  }

  .three-column > :last-child,
  .danger-grid > :last-child {
    grid-column: auto;
  }

  .dose-note {
    grid-template-columns: 1fr auto;
  }

  .dose-note p {
    grid-column: 1 / -1;
  }

  .parameter-table__head {
    display: block;
  }

  .setup-sequence article {
    grid-template-columns: 38px 24px minmax(0, 1fr);
  }

  .ct-plan-grid {
    grid-template-columns: 1fr;
  }

  .approach-decision {
    grid-template-columns: 1fr;
  }

  .approach-question {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stimulator-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stimulator-panel > svg {
    transform: rotate(90deg);
  }

  .rf-ladder {
    grid-template-columns: 1fr;
  }

  .rf-step {
    min-height: auto;
  }

  .rf-step > span {
    margin-bottom: 12px;
  }

  .record-card {
    grid-template-columns: 1fr;
  }

  .emergency-columns {
    grid-template-columns: 1fr;
  }

  .recovery-card {
    min-height: auto;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-meta span {
    grid-row: auto;
  }

  .case-timeline > div {
    min-height: auto;
    border-right: 0;
  }

  .image-figure figcaption {
    display: block;
  }

  .figure-tools {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .image-source {
    margin-top: 6px;
  }

  .table-scroll,
  .data-table-wrap,
  .parameter-table {
    overflow: visible;
  }

  .data-table,
  .table-scroll .data-table,
  .data-table-wrap .data-table,
  .parameter-table .data-table {
    display: block;
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .data-table caption {
    display: block;
    margin-bottom: 10px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 14px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
  }

  .data-table td,
  .data-table--comparison td:nth-child(2),
  .data-table--comparison td:nth-child(3),
  .data-table--comparison td:nth-child(4) {
    padding: 12px 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed var(--line);
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--teal);
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .evidence-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .evidence-item > a {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 22px 96px;
  }

  .final-statement ol {
    grid-template-columns: 1fr;
  }

  .hotspot {
    font-size: 8px;
    padding: 4px 5px;
  }
}

@media (max-width: 480px) {
  .chapter,
  .learning-map,
  .master-atlas {
    padding-right: 18px;
    padding-left: 18px;
  }

  .beginner-primer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero__visual {
    grid-template-columns: 1fr;
    grid-template-rows: 1.2fr 0.6fr;
    min-height: 470px;
  }

  .hero-figure--main {
    grid-column: auto;
  }

  .hero-figure--us {
    display: none;
  }

  .hero-figure--ct {
    border-left: 0;
  }

  .hero__meta span {
    width: calc(50% - 10px);
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__actions {
    display: grid;
  }

  .terminology-strip {
    grid-template-columns: 1fr auto;
  }

  .terminology-strip strong {
    grid-column: 1;
  }

  .terminology-strip .evidence-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .terminology-strip a {
    display: none;
  }

  .image-source {
    display: inline-block;
    white-space: normal;
  }

  .stimulator-readout strong {
    font-size: 22px;
  }

  .print-checklist {
    padding: 20px;
  }

  .print-checklist__head {
    display: block;
  }

  .print-checklist__head .button {
    margin-top: 16px;
  }

  .image-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm;
  }

  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body {
    font-size: 11pt;
  }

  .topbar,
  .chapter-nav,
  .hero__actions,
  .figure-tools,
  .site-footer,
  .image-dialog,
  .safety-banner {
    display: none !important;
  }

  .reading-shell {
    display: block;
  }

  .chapter,
  .learning-map {
    padding: 12mm 0;
    break-inside: avoid;
  }

  .image-figure,
  .data-table,
  .panel {
    break-inside: avoid;
  }

  body.print-checklist-mode .chapter:not(#quiz),
  body.print-checklist-mode .scope-strip,
  body.print-checklist-mode .master-atlas,
  body.print-checklist-mode .learning-map,
  body.print-checklist-mode #quiz > .section-heading,
  body.print-checklist-mode #quiz .quiz-list {
    display: none !important;
  }

  body.print-checklist-mode #quiz {
    padding: 0;
    border: 0;
  }

  body.print-checklist-mode .print-checklist {
    border: 0;
  }

  body.print-checklist-mode .print-checklist__head .button {
    display: none;
  }

  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
}
