:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --panel: #fffdf8;
  --ink: #1f2937;
  --muted: #64717f;
  --line: #ded4c3;
  --teal: #1f6f78;
  --blue: #335c7a;
  --sage: #6f8f82;
  --coral: #b45d4f;
  --alert: #8b1e1e;
  --gold: #a96d16;
  --shadow: 0 16px 40px rgba(31, 42, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #ede6db;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 58px;
  padding: 6px 10px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.language-toggle button.active {
  color: #fff;
  background: var(--teal);
}

.wrap {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 32px;
  align-items: stretch;
  padding: 48px 0 30px;
}

.hero-copy,
.hero-visual,
.section,
.reader-hero,
.lesson,
.course-card,
.side-nav {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: #275247;
  background: #edf7f3;
  border: 1px solid #cfe0da;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 12px 0 0;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

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

.hero-visual {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-cinematic {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-cinematic::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(252, 249, 244, .99) 0%, rgba(252, 249, 244, .97) 32%, rgba(252, 249, 244, .86) 46%, rgba(252, 249, 244, .24) 63%, rgba(252, 249, 244, 0) 74%);
}

.hero-cinematic .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  width: min(53%, 625px);
  min-height: 620px;
  padding: 52px 48px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-cinematic .hero-copy h1 {
  max-width: 10ch;
}

.hero-cinematic .hero-copy .lead {
  max-width: 31em;
}

.hero-cinematic-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
}

.hero-cinematic-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-cinematic-media figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.course-figure-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef4f2;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.preview-grid,
.course-grid,
.stage-grid,
.knowledge-grid,
.workflow,
.source-grid {
  display: grid;
  gap: 16px;
}

.preview-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

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

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

.section {
  margin: 26px auto;
  padding: 28px;
}

.section-header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.notice {
  margin: 24px auto;
  padding: 16px 18px;
  color: #5d4320;
  background: #fff7e8;
  border: 1px solid #e8c991;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

/* Keep the course catalogue readable when bilingual inline spans are present. */
.course-card-body > .muted {
  min-height: 7.8em;
  margin: 0;
}

.course-card-body > .tag-row {
  min-height: 60px;
  align-content: flex-start;
}

.course-card-body > .button.primary {
  width: 100%;
  margin-top: 8px;
}

.mini-figure,
.visual-board {
  min-height: 190px;
  padding: 16px;
  background: linear-gradient(135deg, #edf7f3 0%, #fff4e9 100%);
}

.course-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0d3036;
}

.course-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 25, 31, 0.04) 20%, rgba(8, 25, 31, 0.88) 100%);
}

.course-visual img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.012);
  transition: transform 320ms ease, filter 320ms ease;
}

.course-card:hover .course-visual img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.045);
}

.course-visual--disaster img { object-position: center 58%; }
.course-visual--chain img { object-position: center 54%; }
.course-visual--bay img { object-position: center 46%; }
.course-visual--xabcde img { object-position: center 49%; }
.course-visual--pelvic img { object-position: center 50%; }

.course-visual figcaption {
  width: 100%;
  padding: 15px 16px 16px;
  color: #fff;
}

.course-visual .board-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.course-visual .tag {
  color: #e6fff3;
  background: rgba(10, 54, 47, 0.74);
  border-color: rgba(204, 245, 223, 0.52);
  backdrop-filter: blur(8px);
}

.course-visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.course-visual-points > span {
  padding: 5px 8px;
  color: #f4fffb;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.course-visual-points > .alert {
  color: #fff1eb;
  background: rgba(148, 31, 31, 0.76);
  border-color: rgba(255, 218, 204, 0.38);
}

.course-visual-points--letters > span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
}

.visual-board.large {
  min-height: 300px;
}

.hero-course-figure {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-course-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.hero-course-figure figcaption {
  color: var(--muted);
  font-size: 14px;
}

.reasoning-loop-figure {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reasoning-loop-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.reasoning-loop-figure figcaption {
  color: var(--muted);
  font-size: 14px;
}

.board-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.figure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.diagram-node,
.figure-chip,
.knowledge-card,
.stage-card,
.workflow-card,
.claim,
.check,
.activity {
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.diagram-node,
.figure-chip {
  min-height: 58px;
  padding: 10px;
  font-weight: 800;
}

.figure-chip {
  display: grid;
  place-items: center;
  text-align: center;
}

.diagram-node small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.diagram-node.alert,
.figure-chip.alert {
  color: #fff;
  background: var(--alert);
  border-color: var(--alert);
}

.mini-reasoning-lens {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 300px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(210, 238, 233, 0.9), transparent 30%),
    linear-gradient(145deg, #edf7f3 0%, #fffaf2 68%, #fff2e8 100%);
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.lens-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.lens-node {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 112px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d8e5e0;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
}

.lens-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--teal);
  border-right: 3px solid var(--teal);
  content: none;
  transform: translateY(-50%) rotate(45deg);
}

.lens-node strong,
.reasoning-step strong,
.learning-window-card strong {
  color: var(--ink);
}

.lens-node small {
  color: var(--muted);
  line-height: 1.35;
}

.lens-icon,
.window-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.lens-node.alert .lens-icon,
.learning-window-card.is-alert .window-index {
  background: var(--alert);
}

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

.lens-trend span {
  padding: 5px 7px;
  color: #e9fff8;
  background: #173f46;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.reasoning-route {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #0f3138 0%, #173f46 58%, #244f55 100%);
  border: 1px solid #244f55;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.reasoning-step {
  position: relative;
  min-height: 122px;
  padding: 15px;
  background: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9px;
}

.reasoning-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 14px;
  height: 3px;
  background: #74c9bb;
  content: "";
}

.reasoning-step:not(:last-child)::before {
  position: absolute;
  top: calc(50% - 4px);
  right: -21px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #74c9bb;
  content: "";
}

.reasoning-step small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.reasoning-step .step-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: var(--teal);
  background: #e7f4f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.monitor-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 16px;
  color: #eafff9;
  background: #0a242a;
  border: 1px solid #315d62;
  border-radius: 9px;
}

.monitor-wave-wrap {
  display: grid;
  gap: 8px;
  align-content: center;
}

.monitor-wave-wrap strong {
  color: #fff;
  font-size: 13px;
}

.monitor-wave {
  width: 100%;
  height: 72px;
  background: repeating-linear-gradient(90deg, transparent 0 29px, rgba(116, 201, 187, 0.08) 30px), repeating-linear-gradient(0deg, transparent 0 17px, rgba(116, 201, 187, 0.08) 18px);
  border: 1px solid #315d62;
  border-radius: 7px;
}

.monitor-wave polyline {
  fill: none;
  stroke: #6ee7c5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

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

.monitor-vital {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 9px;
  align-content: center;
  min-height: 100px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(116, 201, 187, 0.25);
  border-radius: 7px;
}

.monitor-vital-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 42px;
  height: 42px;
  padding: 7px;
  color: #9ce6d6;
  background: rgba(110, 231, 197, 0.09);
  border: 1px solid rgba(156, 230, 214, 0.22);
  border-radius: 12px;
}

.monitor-vital.alert .monitor-vital-icon {
  color: #ff9c86;
  background: rgba(255, 156, 134, 0.08);
  border-color: rgba(255, 156, 134, 0.25);
}

.monitor-vital small {
  align-self: end;
  color: #a9d5cd;
  font-size: 10px;
  text-transform: uppercase;
}

.monitor-vital strong {
  align-self: end;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(15px, 1.6vw, 20px);
}

.monitor-vital.alert strong {
  color: #ff9c86;
}

.monitor-vital em {
  grid-column: 1 / -1;
  color: #9ce6d6;
  font-size: 10px;
  font-style: normal;
}

.learning-window-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.learning-window-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf9 100%);
  border: 1px solid #dfe7e2;
  border-top: 4px solid var(--teal);
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.07);
}

.learning-window-card.is-alert {
  border-top-color: var(--alert);
}

.learning-window-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.window-output {
  margin-top: auto;
  padding: 10px;
  color: #315d62;
  background: #eaf6f2;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.case-launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.case-launch-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff7e8;
  border: 1px solid #ead2a7;
  border-radius: 9px;
}

.case-launch-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), #315d62);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.case-launch-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.visual-caption {
  padding: 12px 0 0;
  color: var(--muted);
}

.visual-caption strong {
  display: block;
  color: var(--ink);
}

.clinical-overview {
  margin: 24px 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-map {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin-top: 16px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #eef4f2;
}

.overview-map.compact {
  min-height: 300px;
}

.overview-map.detail-map {
  min-height: 0;
  background: #fff;
}

.overview-map > img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.overview-map.detail-map > img {
  min-height: 0;
  object-fit: contain;
  background: #fff;
}

.overview-map.compact > img {
  min-height: 300px;
}

.route-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(31, 41, 55, 0.58));
}

.route-overlay.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.route-step {
  min-height: 94px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.16);
}

.route-step strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.route-step small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

/* Responsive care-chain overview: labels are independent of the illustration so they remain readable in side panels. */
.care-chain-panel {
  margin: 24px auto;
  padding: clamp(20px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #d6e5df;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 190, 174, 0.16), transparent 25rem),
    linear-gradient(145deg, #fffdf8 0%, #f4f9f7 100%);
}

.care-chain-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.care-chain-heading .overview-copy {
  max-width: 780px;
}

.care-chain-heading h2 {
  margin-bottom: 10px;
}

.care-chain-heading .muted {
  max-width: 62ch;
  margin-bottom: 14px;
}

.care-chain-open {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: #185f68;
  border: 1px solid #185f68;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(24, 95, 104, 0.18);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.care-chain-open:hover,
.care-chain-open:focus-visible {
  color: #fff;
  background: #124f57;
  box-shadow: 0 14px 28px rgba(24, 95, 104, 0.24);
  transform: translateY(-2px);
}

.care-chain-open:focus-visible {
  outline: 3px solid #88c8bd;
  outline-offset: 3px;
}

.care-chain-open [aria-hidden="true"] {
  font-size: 20px;
  line-height: 1;
}

.care-chain-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.93fr) minmax(420px, 1.07fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: stretch;
  margin-top: 28px;
}

.care-chain-figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e9e4;
  border-radius: 20px;
  background: #e5f2ef;
  box-shadow: 0 16px 34px rgba(31, 68, 73, 0.1);
}

.care-chain-figure::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 60, 67, 0.02) 34%, rgba(12, 60, 67, 0.76) 100%);
}

.care-chain-figure picture {
  position: absolute;
  inset: 0;
  display: block;
}

.care-chain-figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.care-chain-figure figcaption {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.care-chain-figure figcaption > span {
  display: inline-block;
  padding: 5px 8px;
  color: #d7f4ee;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(215, 244, 238, 0.34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.care-chain-figure figcaption p {
  max-width: 33ch;
  margin: 10px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.care-chain-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.care-chain-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 17px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dbe9e5;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 68, 73, 0.06);
}

.care-chain-step::before {
  position: absolute;
  top: 37px;
  left: -10px;
  width: 8px;
  height: 8px;
  content: "";
  background: #8ab3a5;
  border-radius: 999px;
}

.care-chain-step:nth-child(odd)::before {
  background: #1f7a83;
}

.care-step-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #1f7a83;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.care-chain-step:nth-child(even) .care-step-index {
  background: #476d8d;
}

.care-chain-step strong {
  display: block;
  color: #203040;
  font-size: 16px;
  line-height: 1.25;
}

.care-chain-step p {
  margin: 7px 0 0;
  color: #607080;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.node-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.node-visual-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.node-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef4f2;
  border-bottom: 1px solid #e4e8e3;
}

.node-visual-card:not(.detail-figure) img {
  object-position: center 35%;
}

.node-visual-card.detail-figure img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.node-visual-card div {
  padding: 14px;
}

.node-visual-card strong {
  display: block;
  color: var(--teal);
}

.node-visual-card p {
  color: var(--muted);
  font-size: 14px;
}

.stage-visual-list {
  display: grid;
  gap: 18px;
}

.stage-visual-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.stage-visual-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.stage-visual-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.stage-visual-copy h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.stage-letter {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.stage-letter.alert {
  background: var(--alert);
}

.stage-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stage-brief {
  min-width: 0;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.stage-brief strong {
  display: block;
  color: var(--teal);
  font-size: 13px;
}

.stage-brief p {
  color: var(--muted);
  font-size: 14px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mode-card,
.deep-card,
.thinking-card,
.monitor-strip,
.case-panel,
.review-row {
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.mode-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  color: inherit;
  text-align: left;
}

.mode-card strong {
  color: var(--teal);
  font-size: 18px;
}

button.mode-card {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.mode-card.active {
  border-color: #1f7a82;
  box-shadow: inset 0 0 0 2px rgba(31, 122, 130, 0.18);
}

.compact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.compact-actions .button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.compact-actions .button:first-child {
  grid-column: 1 / -1;
}

.learner-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 8px;
  color: #2b4c47;
  background: #eef4f2;
  border: 1px solid #d6e4df;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.learner-status.pending {
  color: #784d11;
  background: #fff4dc;
  border-color: #ead2a6;
}

.learner-status.student-status-aligned,
.tag.student-status-aligned {
  color: #1f5a47;
  background: #edf8f1;
  border-color: #b9dfc7;
}

.audit-code,
.tag.audit-code {
  display: none;
}

body[data-audit="true"] .audit-code,
body[data-audit="true"] .tag.audit-code {
  display: inline-flex;
}

.deep-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 18px;
}

.deep-card + .deep-card {
  margin-top: 18px;
}

.deep-card figure {
  margin: 0;
}

.deep-card figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef4f2;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.deep-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.deep-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.thinking-card {
  padding: 14px;
  background: #f8faf8;
}

.thinking-card summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 900;
}

.thinking-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

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

.micro-card {
  padding: 12px;
  background: #fffdf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.micro-card strong {
  color: var(--teal);
}

.case-sim {
  display: grid;
  gap: 16px;
}

.monitor-strip {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #1f2937;
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.14);
}

.monitor-item {
  min-width: 0;
  padding: 8px;
  color: #e5edf1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.monitor-item small {
  display: block;
  color: #a8bcc5;
  font-weight: 800;
}

.monitor-item strong {
  display: block;
  font-size: 16px;
}

.case-panel {
  padding: 18px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.case-feedback {
  margin-top: 14px;
  padding: 14px;
  color: #5d4320;
  background: #fff7e8;
  border: 1px solid #e8c991;
  border-radius: 8px;
}

.enrichment-stack {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.teaching-module,
.stage-module {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.teaching-module figure,
.stage-module figure {
  margin: 0;
}

.teaching-module img,
.stage-module img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.teaching-module figcaption,
.stage-module figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.module-copy {
  min-width: 0;
}

.module-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.module-copy p {
  color: var(--muted);
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.observe-card,
.report-card,
.decision-card,
.reassessment-card,
.mistake-card {
  min-width: 0;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.observe-card strong,
.report-card strong,
.decision-card strong,
.reassessment-card strong,
.mistake-card strong {
  color: var(--teal);
}

.decision-card {
  background: #fff9ec;
  border-color: #ead2a6;
}

.mistake-card {
  background: #fff6f4;
  border-color: #efcaca;
}

.progressive-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.progressive-step {
  display: none;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.progressive-step.is-visible {
  display: block;
}

.mini-quiz {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4e8e3;
}

.lesson-framework,
.stage-visual-grid,
.debrief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.lesson-framework > div,
.debrief-grid > div {
  min-width: 0;
  padding: 14px;
  background: #f8faf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.lesson-framework strong,
.debrief-grid strong {
  color: var(--teal);
}

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

.stage-visual-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.stage-visual-card img {
  width: 100%;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.challenge-score {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.challenge-score span {
  padding: 6px 8px;
  background: #f8faf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.instructor-console[hidden],
.debrief-panel[hidden],
[data-disaster-vitals][hidden],
[data-team-roles][hidden] {
  display: none !important;
}

.instructor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.countdown-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  font-weight: 800;
}

.countdown-select select {
  min-height: 28px;
  color: var(--ink);
  background: #f8faf8;
  border: 1px solid #d6e4df;
  border-radius: 6px;
}

.instructor-status {
  margin-top: 14px;
  padding: 14px;
  color: #244541;
  background: #eef8f5;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  font-weight: 800;
}

details.answer-block > :not(summary) {
  display: none;
}

details.answer-block.is-answer-visible > :not(summary),
body[data-disaster-answers="visible"] details.answer-block > :not(summary) {
  display: block;
}

.quiz-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d6e4df;
  border-radius: 8px;
}

.quiz-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  color: var(--ink);
  background: #f8faf8;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-options label,
.quiz-card label {
  color: var(--muted);
  font-weight: 700;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-explanation {
  padding: 12px;
  color: #244541;
  background: #eef8f5;
  border: 1px solid #cfe4dc;
  border-radius: 8px;
}

.quiz-card.is-submitted {
  border-color: var(--teal);
}

.case-progress-panel,
.case-axis-grid,
.case-release-grid,
.briefing-grid {
  display: grid;
  gap: 12px;
}

.case-progress-panel {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  color: #244541;
  background: #eef8f5;
  border: 1px solid #cfe4dc;
  border-radius: 8px;
}

.case-vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.vital-card {
  min-width: 0;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #d6e4df;
  border-radius: 8px;
}

.vital-card small,
.vital-card strong,
.vital-card span {
  display: block;
}

.vital-card small {
  color: var(--muted);
  font-weight: 800;
}

.vital-card strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.vital-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.vital-card.alert {
  background: #fff2ef;
  border-color: #e4b1a8;
}

.vital-card.alert strong {
  color: var(--alert);
}

.release-prompt {
  margin-top: 12px;
  padding-top: 10px;
  color: #365f59;
  border-top: 1px dashed #cbd9d4;
  font-size: 13px;
  font-weight: 800;
}

.case-lab-step {
  border-left: 6px solid var(--teal);
}

.step-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-axis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-axis-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: #f8faf8;
  border: 1px solid #d6e4df;
  border-radius: 8px;
}

.case-axis-grid small {
  color: var(--muted);
  line-height: 1.35;
}

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

.case-release-card,
.briefing-card {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.case-release-card {
  display: none;
}

.case-release-card.is-visible {
  display: block;
}

.case-release-card strong,
.briefing-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
}

.briefing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

body[data-disaster-mode="challenge"] .quiz-card .quiz-explanation:not(.is-answer-visible),
.quiz-explanation[hidden] {
  display: none;
}

body[data-disaster-answers="visible"] .quiz-explanation {
  display: block;
}

body[data-disaster-mode="challenge"] .answer-block {
  border-style: dashed;
}

.resource-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.resource-item {
  min-width: 0;
  padding: 14px;
  color: #e5edf1;
  background: #20313b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.resource-item small {
  display: block;
  color: #a8bcc5;
  font-weight: 800;
}

.resource-item strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.disaster-module-grid {
  display: grid;
  gap: 18px;
}

.resource-events,
.decision-grid,
.patient-grid,
.case-round-grid,
.system-pressure-panel,
.dual-loop-grid {
  display: grid;
  gap: 12px;
}

.resource-events {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.system-pressure-panel,
.dual-loop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.system-pressure-panel > div,
.dual-loop-grid > div,
.patient-card,
.case-round,
.decision-card {
  padding: 14px;
  background: #fffdf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.system-pressure-panel > div:first-child {
  grid-column: 1 / -1;
  background: #eef8f5;
}

.case-round-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.case-round {
  display: none;
}

.case-round.is-visible {
  display: grid;
  gap: 10px;
}

.case-round figure,
.stage-card figure {
  margin: 0;
}

.case-round img,
.stage-card img {
  width: 100%;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

.patient-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.patient-card {
  background: #fff;
}

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

.decision-stack {
  margin-top: 18px;
}

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

.triage-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.triage-lane {
  min-height: 210px;
  padding: 12px;
  background: #f8faf8;
  border: 1px dashed #b8c9c2;
  border-radius: 8px;
}

.triage-lane strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
}

.triage-card-source {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.triage-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
}

.triage-card small {
  color: var(--muted);
  line-height: 1.35;
}

.triage-card[draggable="true"] {
  cursor: grab;
}

.triage-card button {
  width: fit-content;
  min-height: 30px;
  padding: 5px 9px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.triage-card.is-moving {
  opacity: 0.55;
}

.debrief-panel {
  margin-top: 16px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid #e4e8e3;
  border-radius: 8px;
}

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

.review-grid {
  display: grid;
  gap: 10px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 8px;
  color: #2b4c47;
  background: #eef4f2;
  border: 1px solid #d6e4df;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}

.tag.warning {
  color: #784d11;
  background: #fff4dc;
  border-color: #ead2a6;
}

.tag.approved {
  color: #166534;
  background: #edf8f0;
  border-color: #b8dfc2;
}

.tag.danger {
  color: #7f1d1d;
  background: #fff1f1;
  border-color: #efcaca;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.course-meta > span,
.course-meta > a {
  display: block;
  min-width: 0;
  padding: 8px;
  background: #f8faf7;
  border: 1px solid #e4e8e3;
  border-radius: 7px;
}

.course-meta > span > strong {
  display: block;
  margin-bottom: 5px;
  color: #395d59;
  line-height: 1.3;
}

.knowledge-card,
.stage-card,
.workflow-card,
.claim,
.check,
.activity {
  padding: 14px;
}

.knowledge-card h4,
.stage-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  text-transform: uppercase;
}

.claim-list,
.check-list,
.activity-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.claim code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 12px;
}

.interaction-lab {
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 189, 176, 0.14), transparent 28rem),
    var(--panel);
}

.interaction-lab .section-header {
  align-items: flex-start;
}

.interaction-lab .eyebrow {
  margin-bottom: 12px;
}

.interaction-lab .section-header .muted {
  max-width: 76ch;
}

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

.interaction-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe7e3;
  border-top: 4px solid var(--teal);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 68, 73, 0.07);
}

.interaction-card:nth-child(2) {
  border-top-color: var(--blue);
}

.interaction-card:nth-child(3) {
  border-top-color: var(--coral);
}

.interaction-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.interaction-card-head h3 {
  font-size: 18px;
}

.interaction-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.interaction-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 12px;
  font-weight: 900;
}

.interaction-card:nth-child(2) .interaction-index {
  background: var(--blue);
}

.interaction-card:nth-child(3) .interaction-index {
  background: var(--coral);
}

.interaction-brief {
  padding: 12px;
  color: #365650;
  background: #eef7f4;
  border: 1px solid #d3e6df;
  border-radius: 10px;
}

.interaction-brief strong {
  display: block;
  color: #285b55;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.interaction-brief p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.handoff-sort-board {
  display: grid;
  gap: 9px;
}

.sort-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  color: #344454;
  background: #fafcfb;
  border: 1px solid #e1e9e6;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.sort-row select {
  width: 100%;
  min-height: 38px;
  padding: 7px 30px 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9cbc5;
  border-radius: 7px;
  font: inherit;
}

.resource-checks,
.phrase-choices {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  border: 0;
}

.resource-checks legend,
.phrase-choices legend {
  margin-bottom: 7px;
  color: #425562;
  font-size: 12px;
  font-weight: 900;
}

.resource-checks label,
.phrase-choices label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: start;
  padding: 10px;
  cursor: pointer;
  background: #fafcfb;
  border: 1px solid #e1e9e6;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.resource-checks input,
.phrase-choices input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.resource-checks small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.resource-checks label:has(input:checked),
.phrase-choices label:has(input:checked) {
  background: #eef8f4;
  border-color: #83b9ad;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 120, 0.12);
}

.checkback-cue {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  color: #e9fff9;
  background: #163f46;
  border-radius: 10px;
}

.checkback-cue > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 22px;
}

.checkback-cue p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.checkback-cue strong {
  color: #89e1cf;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.interaction-submit {
  width: 100%;
  margin-top: auto;
}

.interaction-feedback {
  min-height: 58px;
  margin: 0;
  padding: 10px 11px;
  color: #536471;
  background: #f5f8f7;
  border: 1px solid #dfe8e5;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.interaction-feedback.is-correct {
  color: #185d3c;
  background: #edf8f1;
  border-color: #b7dfc5;
}

.interaction-feedback.is-needs-review {
  color: #784d11;
  background: #fff7e7;
  border-color: #ead2a6;
}

.interaction-evidence {
  display: grid;
  grid-template-columns: minmax(170px, 0.25fr) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  margin-top: 16px;
  padding: 16px;
  color: #3f555e;
  background: #f2f7f5;
  border: 1px solid #d4e1dd;
  border-radius: 12px;
}

.interaction-evidence strong {
  color: #285b55;
}

.interaction-evidence p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.interaction-evidence .tag-row {
  grid-column: 2;
}

.reader-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 24px;
  padding: 32px;
  margin-top: 28px;
}

.reader-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.side-nav {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 16px;
  border-radius: 8px;
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
}

.side-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid #eee7db;
  font-size: 14px;
}

.lesson-stack {
  display: grid;
  gap: 20px;
}

.lesson {
  padding: 24px;
  border-radius: 8px;
}

.lesson-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 14px;
}

.footer {
  padding: 30px 0 50px;
  color: var(--muted);
  text-align: center;
}

/* Evidence-grounded mini-module depth layer */
.textbook-note {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #edf7f5, #f9fcfb);
  color: #28454a;
}

.textbook-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.mechanism-figure {
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #d8e3df;
  border-radius: 14px;
  background: #fffdf8;
}

.mechanism-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mechanism-figure figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

.concept-grid,
.clinical-thinking-grid,
.management-grid,
.imaging-talk-grid,
.trajectory-grid,
.depth-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.concept-card,
.thinking-card,
.management-card,
.imaging-talk-card,
.depth-standard-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
  background: #fff;
}

.concept-card strong,
.thinking-card strong,
.management-card strong,
.imaging-talk-card strong,
.depth-standard-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.concept-card p,
.thinking-card p,
.management-card p,
.imaging-talk-card p,
.depth-standard-card p {
  margin: 0;
  color: var(--muted);
}

.clinical-question {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d9e1dd;
  color: #865516;
  font-weight: 700;
}

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

.trajectory-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe5e1;
  border-radius: 12px;
  background: #101f26;
  color: #e6fff6;
}

.trajectory-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #47b99c;
}

.trajectory-card.caution::after { background: #e5b54b; }
.trajectory-card.alert::after { background: #ef7a58; }
.trajectory-card.critical::after { background: #d94b55; }

.trajectory-head,
.trajectory-body {
  padding: 16px;
}

.trajectory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.trajectory-head small {
  color: #9fc8bd;
}

.trajectory-monitor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.trajectory-monitor div {
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.trajectory-monitor small,
.trajectory-monitor strong {
  display: block;
}

.trajectory-monitor strong {
  margin-top: 3px;
  color: #7ce0bc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
}

.trajectory-card.caution .trajectory-monitor strong { color: #ffd36d; }
.trajectory-card.alert .trajectory-monitor strong { color: #ff9b79; }
.trajectory-card.critical .trajectory-monitor strong { color: #ff7e88; }

.trajectory-body p {
  margin: 0 0 10px;
  color: #c9ddd7;
  font-size: 14px;
}

.trajectory-body p:last-child { margin-bottom: 0; }

.management-card {
  border-top: 4px solid var(--teal);
}

.management-card.escalate { border-top-color: #d8862f; }
.management-card.specialist { border-top-color: #975fa5; }

.management-card ul,
.imaging-talk-card ul,
.thinking-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.management-card li + li,
.imaging-talk-card li + li,
.thinking-card li + li {
  margin-top: 7px;
}

.evidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #cfe0da;
  border-radius: 999px;
  background: #f5faf8;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.evidence-link::before {
  content: "↗";
}

.student-boundary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff5e6;
  color: #754e20;
}

[data-lang="en"] .zh,
[data-lang="zh"] .en {
  display: none !important;
}

/* Polytrauma shock case: full-history and mixed-shock reasoning layer */
.learner-status.reviewed {
  color: #17665d;
  background: #e6f6f1;
  border-color: #b9ded4;
}

.case-panorama-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.case-panorama-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
}

.case-panorama-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.case-panorama-card strong {
  display: block;
  color: var(--ink);
}

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

.case-panorama-card.alert {
  border-color: #e8c6bd;
  background: #fff9f7;
}

.case-panorama-card.alert > span {
  background: var(--alert);
}

.case-panorama-card.key {
  border-color: #dfc17c;
  background: linear-gradient(145deg, #fff9e8, #fffdf8);
  box-shadow: inset 0 0 0 2px rgba(193, 135, 35, 0.08);
}

.case-panorama-card.key > span {
  background: #a66b0b;
}

.case-causal-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  margin: 18px 0;
  color: #563c16;
  background: #fff8e6;
  border: 1px solid #ead2a6;
  border-left: 5px solid #b77716;
  border-radius: 10px;
}

.case-causal-warning strong {
  white-space: nowrap;
}

.case-causal-warning p {
  margin: 0;
}

.shock-mechanism-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  color: #eafff9;
  background: #0a242a;
  border-radius: 12px;
}

.shock-mechanism-strip article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(116, 201, 187, 0.22);
  border-radius: 10px;
}

.shock-mechanism-strip svg {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  padding: 8px;
  color: #7ce4cb;
  background: rgba(110, 231, 197, 0.08);
  border-radius: 12px;
}

.shock-mechanism-strip strong {
  color: #fff;
  font-size: 14px;
}

.shock-mechanism-strip small {
  color: #a9d5cd;
}

.shock-hypothesis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.shock-hypothesis-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
}

.shock-hypothesis-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shock-hypothesis-card > div > strong {
  color: var(--ink);
  font-size: 17px;
}

.shock-hypothesis-card p {
  color: var(--muted);
  font-size: 14px;
}

.shock-hypothesis-card.leading {
  border-color: #d7b662;
  background: linear-gradient(145deg, #fffaf0, #fff);
  box-shadow: inset 4px 0 #b77716;
}

.weight {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.weight.high {
  color: #7f1d1d;
  background: #fee8e4;
}

.weight.medium {
  color: #784d11;
  background: #fff1cf;
}

.weight.lower {
  color: #31545a;
  background: #edf4f2;
}

.reassessment-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d9e5e1;
  border-radius: 12px;
}

.reassessment-timeline article {
  position: relative;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border-right: 1px solid #d9e5e1;
}

.reassessment-timeline article:last-child {
  border-right: 0;
}

.reassessment-timeline article > span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.reassessment-timeline strong {
  display: block;
  color: var(--ink);
}

.reassessment-timeline ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.reassessment-timeline li + li {
  margin-top: 8px;
}

.handover-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.handover-builder-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  background: #f8fbf9;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
}

.handover-builder-grid article > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 11px;
  font-weight: 900;
}

.handover-builder-grid strong {
  color: var(--ink);
}

.handover-builder-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.handover-reference p {
  max-width: 96ch;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .hero,
  .reader-hero,
  .reader-layout,
  .lesson-body,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-cinematic {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero-cinematic::after {
    display: none;
  }

  .hero-cinematic .hero-copy {
    width: 100%;
    min-height: 0;
    padding: 38px;
  }

  .hero-cinematic .hero-copy h1,
  .hero-cinematic .hero-copy .lead {
    max-width: none;
  }

  .hero-cinematic-media {
    position: relative;
    min-height: 390px;
    aspect-ratio: 16 / 9;
  }

  .hero-cinematic-media img {
    object-position: 63% center;
  }

  .course-grid,
  .stage-grid,
  .mode-grid,
  .workflow,
  .knowledge-grid,
  .node-visual-grid,
  .case-axis-grid,
  .case-release-grid,
  .briefing-grid,
  .progressive-case-grid,
  .module-card-grid,
  .lesson-framework,
  .stage-visual-grid,
  .stage-brief-grid,
  .debrief-grid,
  .micro-grid,
  .source-grid,
  .resource-panel,
  .resource-events,
  .system-pressure-panel,
  .case-round-grid,
  .patient-grid,
  .decision-grid,
  .dual-loop-grid,
  .triage-board,
  .triage-card-source {
    grid-template-columns: 1fr;
  }

  .course-card-body > .muted,
  .course-card-body > .tag-row {
    min-height: 0;
  }

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

  .interaction-evidence {
    grid-template-columns: 1fr;
  }

  .interaction-evidence .tag-row {
    grid-column: 1;
  }

  .lens-flow,
  .reasoning-track,
  .learning-window-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trajectory-grid,
  .concept-grid,
  .clinical-thinking-grid,
  .management-grid,
  .imaging-talk-grid,
  .depth-standard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-panorama-grid,
  .shock-mechanism-strip,
  .reassessment-timeline,
  .handover-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reassessment-timeline article:nth-child(2) {
    border-right: 0;
  }

  .reassessment-timeline article:nth-child(-n + 2) {
    border-bottom: 1px solid #d9e5e1;
  }

  .lens-node:not(:last-child)::after,
  .reasoning-step:not(:last-child)::before,
  .reasoning-step:not(:last-child)::after {
    display: none;
  }

  .monitor-panel {
    grid-template-columns: 1fr;
  }

  .stage-visual-card,
  .teaching-module,
  .stage-module,
  .deep-card,
  .review-row {
    grid-template-columns: 1fr;
  }

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

  .stage-visual-card img {
    height: auto;
    min-height: 0;
  }

  .node-visual-card:not(.detail-figure) img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    padding: 0;
  }

  .monitor-strip {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-overlay,
  .route-overlay.six {
    position: static;
    grid-template-columns: 1fr;
    background: #f7faf7;
  }

  .care-chain-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .care-chain-figure {
    min-height: 260px;
  }

  .care-chain-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .care-chain-step::before {
    display: none;
  }

  .overview-map,
  .overview-map.compact,
  .overview-map > img,
  .overview-map.compact > img {
    min-height: auto;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .wrap {
    width: min(100vw - 24px, 1180px);
  }

  .care-chain-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .care-chain-open {
    width: 100%;
    justify-content: center;
  }

  .care-chain-layout {
    gap: 18px;
    margin-top: 20px;
  }

  .care-chain-figure {
    min-height: 220px;
    border-radius: 16px;
  }

  .care-chain-figure figcaption {
    padding: 18px;
  }

  .care-chain-figure figcaption p {
    font-size: 14px;
  }

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

  .care-chain-step {
    min-height: 0;
  }

  .hero-copy,
  .section,
  .reader-hero,
  .lesson {
    padding: 18px;
  }

  .hero-cinematic {
    border-radius: 18px;
  }

  .hero-cinematic .hero-copy {
    padding: 24px 20px 20px;
  }

  .hero-cinematic-media {
    min-height: 290px;
    aspect-ratio: 4 / 3;
  }

  .hero-cinematic-media img {
    object-position: 66% center;
  }

  .diagram-grid,
  .course-meta {
    grid-template-columns: 1fr;
  }

  .lens-flow,
  .reasoning-track,
  .learning-window-grid,
  .case-launch-grid {
    grid-template-columns: 1fr;
  }

  .trajectory-grid,
  .concept-grid,
  .clinical-thinking-grid,
  .management-grid,
  .imaging-talk-grid,
  .depth-standard-grid {
    grid-template-columns: 1fr;
  }

  .case-panorama-grid,
  .shock-mechanism-strip,
  .shock-hypothesis-grid,
  .reassessment-timeline,
  .handover-builder-grid {
    grid-template-columns: 1fr;
  }

  .reassessment-timeline article,
  .reassessment-timeline article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #d9e5e1;
  }

  .reassessment-timeline article:last-child {
    border-bottom: 0;
  }

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

  .case-launch-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .case-launch-mark {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
}

/* Trauma care chain: visual learning models */
.care-chain-visual,
.handoff-scene,
.shock-reasoning-map,
.resource-map-visual {
  --chain-ink: #182534;
  --chain-teal: #147b80;
  --chain-teal-dark: #0d5156;
  --chain-mint: #e5f2ef;
  --chain-sand: #f5f0e6;
  --chain-alert: #9b2527;
  --chain-line: #c9ddd8;
}

.care-chain-visual {
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.care-chain-hero-figure,
.handoff-figure,
.shock-monitor-panel figure,
.resource-team-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cfe0dc;
  border-radius: 24px;
  background: #102d34;
  box-shadow: 0 20px 45px rgba(25, 53, 58, .14);
}

.care-chain-hero-figure {
  min-height: 480px;
}

.care-chain-hero-figure img,
.handoff-figure img,
.shock-monitor-panel figure img,
.resource-team-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.care-chain-hero-figure::after,
.handoff-figure::after,
.shock-monitor-panel figure::after,
.resource-team-figure::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 27, 32, .92));
  pointer-events: none;
}

.care-chain-hero-figure figcaption,
.handoff-figure figcaption,
.shock-monitor-panel figure figcaption,
.resource-team-figure figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: #f8fbfa;
  font-size: .95rem;
  line-height: 1.7;
}

.care-chain-intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #d1e1de;
  border-radius: 24px;
  background: linear-gradient(145deg, #f0f8f6, #fbf7ef);
}

.care-chain-intro p {
  margin: 12px 0 20px;
  color: #506273;
  line-height: 1.75;
}

.care-chain-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.care-chain-prompts article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 123, 128, .18);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
}

.prompt-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: #fff;
  background: var(--chain-teal-dark);
  font-size: .68rem;
  font-weight: 900;
}

.care-chain-prompts strong,
.care-chain-prompts small {
  display: block;
}

.care-chain-prompts strong {
  color: var(--chain-ink);
  font-size: .88rem;
}

.care-chain-prompts small {
  margin-top: 5px;
  color: #687987;
  font-size: .72rem;
  line-height: 1.45;
}

.care-chain-track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.care-chain-track li {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 15px;
  align-content: center;
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--chain-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f0f7f5);
}

.care-chain-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -17px;
  width: 19px;
  height: 4px;
  border-radius: 99px;
  background: var(--chain-teal);
}

.care-chain-track li:nth-child(3)::after,
.care-chain-track li:nth-child(6)::after {
  display: none;
}

.care-chain-track li.critical {
  color: #fff;
  border-color: #7d1d20;
  background: linear-gradient(145deg, #a82b2f, #74191d);
  box-shadow: 0 12px 28px rgba(141, 28, 31, .2);
}

.care-chain-track img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 116px;
  height: 116px;
  margin: 0;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
}

.care-chain-track img.chain-photo {
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255,255,255,.88);
  box-shadow: 0 8px 20px rgba(31, 62, 65, .12);
}

.care-chain-track strong,
.care-chain-track small {
  display: block;
}

.care-chain-track strong {
  grid-column: 2;
  align-self: end;
  font-size: .98rem;
}

.care-chain-track small {
  grid-column: 2;
  align-self: start;
  margin-top: 6px;
  color: #667786;
  font-size: .74rem;
  line-height: 1.45;
}

.care-chain-track .critical small {
  color: #f5dbd5;
}

.chain-step,
.quadrant-mark,
.resource-code {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--chain-teal-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.care-chain-track .chain-step {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  box-shadow: 0 4px 10px rgba(13, 81, 86, .16);
}

.critical .chain-step {
  color: #772024;
  background: #fff2ee;
}

.handoff-scene {
  display: grid;
  grid-template-columns: minmax(260px, .74fr) minmax(460px, 1.26fr);
  gap: 22px;
}

.handoff-figure {
  min-height: 470px;
}

.handoff-figure figcaption {
  display: grid;
  gap: 6px;
}

.handoff-figure figcaption strong {
  color: #8fe4d7;
  font-size: 1.05rem;
}

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

.handoff-quadrants article {
  position: relative;
  min-height: 205px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #cfdfdc;
  border-radius: 20px;
  background: #fff;
}

.handoff-quadrants article::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 24px solid rgba(20, 123, 128, .08);
  border-radius: 50%;
}

.handoff-quadrants strong,
.handoff-quadrants p {
  position: relative;
  z-index: 1;
  display: block;
}

.handoff-quadrants strong {
  margin-top: 15px;
  color: var(--chain-ink);
  font-size: 1.12rem;
}

.handoff-quadrants p {
  margin: 9px 0 0;
  color: #5a6b78;
  line-height: 1.68;
}

.handoff-quadrants .unknown { background: #f4f7f6; }
.handoff-quadrants .concern {
  color: #fff;
  border-color: #8c2023;
  background: linear-gradient(145deg, #a1272b, #72181c);
}
.handoff-quadrants .concern strong,
.handoff-quadrants .concern p { color: #fff; }
.handoff-quadrants .concern .quadrant-mark { color: #8a2023; background: #fff; }
.handoff-quadrants .next { background: linear-gradient(145deg, #e6f4f0, #f8fbfa); }

.handoff-rule {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 20px;
  border-radius: 16px;
  color: #21474b;
  background: #e6f2ef;
}

.rule-pulse,
.hub-pulse {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #db4f43;
  box-shadow: 0 0 0 4px rgba(219, 79, 67, .17);
}

.shock-reasoning-map {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
  gap: 24px;
}

.shock-monitor-panel {
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  gap: 14px;
}

.shock-monitor-panel figure {
  min-height: 330px;
}

.trend-console {
  padding: 17px;
  border-radius: 18px;
  color: #d8f8f1;
  background: #0b3036;
  box-shadow: inset 0 0 0 1px #1c5960;
}

.trend-head,
.trend-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.trend-head {
  grid-template-columns: 1fr auto;
  padding-bottom: 11px;
  border-bottom: 1px solid #24575c;
  font-weight: 800;
}

.trend-head b {
  color: #ff9b87;
  font-size: .7rem;
  letter-spacing: .12em;
}

.trend-row {
  grid-template-columns: 54px 1fr 58px;
  padding-top: 10px;
  font-size: .76rem;
}

.trend-row small { text-align: right; color: #87b9b4; }

.trend-line {
  display: block;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.trend-line.rise { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 20'%3E%3Cpath d='M0 16L35 15L54 12L75 14L98 8L120 10L145 4L180 3' fill='none' stroke='%236ce0cf' stroke-width='3'/%3E%3C/svg%3E"); }
.trend-line.fall { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 20'%3E%3Cpath d='M0 3L34 5L56 4L80 10L105 8L132 14L180 16' fill='none' stroke='%23ff927d' stroke-width='3'/%3E%3C/svg%3E"); }
.trend-line.variable { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 20'%3E%3Cpath d='M0 10L28 10L45 5L62 15L78 7L96 12L116 6L136 14L153 8L180 9' fill='none' stroke='%23f4d27b' stroke-width='3'/%3E%3C/svg%3E"); }
.trend-line.steps { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 20'%3E%3Cpath d='M0 4H48V9H100V15H180' fill='none' stroke='%23a4c9ff' stroke-width='3'/%3E%3C/svg%3E"); }

.shock-lens-flow {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shock-lens-flow article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid #d3e1de;
  border-radius: 18px;
  background: #fff;
}

.shock-lens-flow article.warning {
  border-color: #edc9c3;
  background: #fff3f0;
}

.lens-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: var(--chain-teal-dark);
  font-weight: 900;
}

.shock-lens-flow .warning .lens-icon { background: var(--chain-alert); }
.shock-lens-flow strong { color: var(--chain-ink); }
.shock-lens-flow p { margin: 5px 0 0; color: #586977; line-height: 1.62; }

.teaching-boundary {
  margin: 2px 0 0;
  padding: 14px 17px;
  border-left: 4px solid var(--chain-teal);
  border-radius: 0 13px 13px 0;
  color: #38565b;
  background: #edf5f3;
  font-size: .88rem;
  line-height: 1.6;
}

.resource-map-visual {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(500px, 1.28fr);
  gap: 24px;
}

.resource-team-figure {
  min-height: 500px;
}

.resource-network {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid #cfe0dc;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, #d8eeea 0 17%, transparent 18%), linear-gradient(145deg, #f0f7f5, #f8f2e9);
}

.resource-network::before,
.resource-network::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: #9bc3bd;
}

.resource-network::after {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 2px;
  height: auto;
}

.resource-node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #cadbd8;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(42, 71, 73, .08);
}

.resource-node strong { color: var(--chain-ink); }
.resource-node small { color: #61727e; line-height: 1.5; }
.resource-node.hub {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-items: center;
  text-align: center;
  color: #fff;
  border-color: #0d575d;
  background: linear-gradient(145deg, #197f84, #0e5157);
  box-shadow: 0 15px 32px rgba(14, 81, 87, .24);
}
.resource-node.hub strong,
.resource-node.hub small { color: #fff; }
.resource-node.blood { grid-row: 3; }
.resource-node.capability { grid-row: 3; }

.resource-boundaries {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resource-boundaries > span {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid #d5e2df;
  border-radius: 16px;
  color: #586b77;
  background: #f8faf9;
  font-size: .85rem;
  line-height: 1.55;
}

.resource-boundaries b { color: var(--chain-teal-dark); }

@media (max-width: 1180px) {
  .care-chain-visual { grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); }
  .care-chain-hero-figure { min-height: 460px; }
  .care-chain-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-chain-track li:nth-child(3)::after { display: block; }
  .care-chain-track li:nth-child(2n)::after { display: none; }
  .resource-map-visual { grid-template-columns: 1fr; }
  .resource-team-figure { min-height: 390px; }
}

@media (max-width: 820px) {
  .care-chain-visual,
  .handoff-scene,
  .shock-reasoning-map {
    grid-template-columns: 1fr;
  }

  .care-chain-hero-figure { grid-row: auto; min-height: 360px; }
  .care-chain-intro { padding: 22px; }
  .handoff-figure { min-height: 350px; }
  .resource-boundaries { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .care-chain-track,
  .handoff-quadrants,
  .resource-network {
    grid-template-columns: 1fr;
  }

  .care-chain-track li::after { display: none; }
  .care-chain-prompts { grid-template-columns: 1fr; }
  .care-chain-track li {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 130px;
  }
  .care-chain-track img { width: 96px; height: 96px; }
  .handoff-quadrants article { min-height: auto; }
  .resource-network { grid-template-rows: none; }
  .resource-node.hub,
  .resource-node.blood,
  .resource-node.capability { grid-column: auto; grid-row: auto; }
  .resource-network::before,
  .resource-network::after { display: none; }
}

@media print {
  .topbar,
  .hero-actions,
  .side-nav,
  .case-actions,
  .audit-code,
  button,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .reader-hero,
  .lesson,
  .clinical-overview,
  .deep-card,
  .case-panel,
  .course-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .monitor-strip {
    position: static;
  }
}

/* Source-backed reading windows: keep clinical images uncropped and evidence secondary. */
.source-backed { margin: 32px 0; padding: clamp(18px,3vw,36px); background:#faf8f1; border:1px solid #d9d7cb; border-radius:22px; }
.source-backed > header { margin-bottom:24px; max-width:76ch; }
.source-backed header .eyebrow { color:#24776b; font-size:.72rem; letter-spacing:.12em; }
.sb-reading { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; padding:24px 0; border-top:1px solid #deddd3; }
.sb-reading figure { margin:0; min-width:0; }
.sb-reading figure img { display:block; width:100%; max-height:520px; object-fit:contain; background:#0f1717; border-radius:12px; }
.sb-reading figcaption { font-size:.8rem; line-height:1.6; margin-top:10px; color:#4d5a54; }
.sb-reading-copy { align-self:center; min-width:0; }
.sb-reading-copy h3 { margin-top:0; }
.sb-reading-copy p { line-height:1.75; }
.sb-limit { border-left:3px solid #bd8740; padding:12px 16px; background:#f0ede3; }
.sb-reading details,.sb-evidence { margin-top:16px; font-size:.85rem; overflow-wrap:anywhere; }
.source-backed summary { cursor:pointer; font-weight:650; padding:12px 0; }
.sb-reasoning { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:20px; }
.sb-reasoning article { padding:18px; background:white; border-radius:12px; border:1px solid #e3e1d6; }
.sb-reasoning article > span { color:#b78540; font-weight:700; }
.sb-reasoning h3 { font-size:1rem; margin:8px 0; }
.sb-reasoning p { font-size:.92rem; line-height:1.75; }
.sb-quiz { margin-top:20px; padding:8px 18px; background:#e6efeb; border-radius:12px; }
.sb-video { padding:20px; margin-top:20px; border-radius:12px; background:#153e36; color:#f7f4e8; }
.sb-video a { color:#f9d08c; text-decoration:underline; }
.sb-video small { display:block; margin-top:12px; opacity:.85; }
.sb-task-marker { padding:22px; border:1px dashed #aab7af; border-radius:12px; background:#eff2ec; color:#29544a; font-size:.85rem; }
.source-backed a { overflow-wrap:anywhere; }
.sb-video a.button { color:#143c32; background:#f5f3eb; }
@media(max-width:720px){.sb-reading,.sb-reasoning{grid-template-columns:1fr}.sb-reading{gap:16px}.source-backed{padding:18px}.sb-reading figure img{max-height:440px}.source-backed h2{font-size:1.5rem}}

.sb-context {max-width:760px;margin:24px auto}.sb-context img{width:100%;max-height:380px;object-fit:contain;background:#e8e8e2}.sb-context figcaption,.hero-credit,.source-credit{font-size:12px;line-height:1.5}.sb-context figcaption{padding:12px}

.source-backed{scroll-margin-top:110px}.route-task-icon{display:grid;place-items:center;min-height:90px;background:#173e36;color:#f2d5a3;font-size:32px}.module-visual .source-credit{color:#fff;background:rgba(0,0,0,.65);padding:5px 8px}

.decision-task{min-height:150px;display:flex;align-items:center;justify-content:center;gap:20px;background:#143c32;color:#fff}.decision-task span{position:static!important;font-size:40px}.skill-hero-image img{object-fit:contain!important;background:#eee}

.skill-card-credit{display:block;font-size:11px;padding:5px 12px;color:#53645c}.source-backed img{max-height:570px}
