/* Prime Health anatomical atlas. Presentation only; clinical state remains app-owned. */
.sn {
  --atlas-paper: #faf7ef;
  --atlas-ink: #282d2c;
  --atlas-muted: #59615c;
  --atlas-brass: #a38045;
  --atlas-rule: #d8d0bf;
  --p-ivory: #f5f1e7;
  --p-ink: #282d2c;
  --sn-line: #d8d0bf;
  color: var(--atlas-ink);
  background: #f5f1e7;
  text-rendering: optimizeLegibility;
}
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn button, .sn a, .sn summary, .sn input { -webkit-tap-highlight-color: #b6944c33; }
.sn :is(button, a, summary, input, select):focus-visible {
  outline: 3px solid #9c702b;
  outline-offset: 4px;
}
.sn button { touch-action: manipulation; }
.sn [hidden] { display: none !important; }
.sn-header { background: var(--atlas-paper); border-bottom-color: var(--atlas-rule); gap: 1rem; }
.sn-review { background: #eae4d6; color: #4d544e; border-bottom: 1px solid var(--atlas-rule); line-height: 1.6; }
.sn-hero { padding-block: 2rem 1.4rem; }
.sn-hero h1 { color: var(--atlas-ink); max-width: 16ch; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.06; letter-spacing: -.045em; }
.sn-hero h1 em { color: #88672f; }
.sn-hero > div > p:not(.eyebrow) { max-width: 45rem; color: #505954; line-height: 1.7; }
.sn .eyebrow { color: #76603a; letter-spacing: .15em; }
.sn-private-note { color: #505954; }
.sn-emergency { background: #f4e8df; border: 1px solid #d8bfb0; border-left: 4px solid #8c3f32; border-radius: 3px; color: #61392f; font-size: .9rem; }
.sn-emergency a { color: #733c2e; font-weight: 700; text-underline-offset: 3px; }
.sn-journey { border-color: var(--atlas-rule); background: #ece7dc; border-radius: 3px; overflow: hidden; }
.sn-journey li { color: #5a625d; padding-block: .9rem; }
.sn-journey li[aria-current="step"] { color: #282d2c; background: #fffaf0; box-shadow: inset 0 -3px #a38045; }
.sn-journey li span { border-color: #a99c84; }
.sn:not(.sn-topic-selected) .sn-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.sn:not(.sn-topic-selected) .sn-explorer { background: transparent; border: 0; border-radius: 0; padding: 0; position: relative; top: auto; }
.sn-card-heading { padding-block: .3rem 1rem; }
.sn-card-heading h2 { color: var(--atlas-ink); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; }
.sn-body-display { padding: .8rem; border: 1px solid #605c4d; border-radius: 8px; background: #282f2d; box-shadow: 0 14px 32px #2b2e2614, inset 0 1px #a69a7955; }
.sn-body-display .sn-body-map {
  min-width: 0;
  height: clamp(32rem, 66vh, 43rem);
  border: 1px solid #736b5355;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 44%, #4c5145 0, #303a35 48%, #202a28 100%);
  box-shadow: inset 0 0 55px #10191655;
  isolation: isolate;
}
.sn-body-display .sn-body-map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image: linear-gradient(#b9b39a 1px, transparent 1px), linear-gradient(90deg, #b9b39a 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse, #000, transparent 75%);
}
.sn-body-display .sn-human { max-width: 68%; filter: drop-shadow(0 9px 10px #060d0b70); }
.sn-body-display .sn-body-detail { opacity: 1; }
.sn-body-display .sn-segmented { gap: .4rem; max-width: 21rem; margin-bottom: .8rem; }
.sn-body-display .sn-segmented button { color: #ede6d5; border-color: #7b7965; border-radius: 3px; min-height: 44px; font-size: .85rem; letter-spacing: .02em; }
.sn-body-display .sn-segmented button[aria-pressed="true"] { color: #292e29; background: #ede3c8; border-color: #ede3c8; box-shadow: inset 0 -2px #ad8b4c; }
.sn-body-display :is(button, a):focus-visible { outline-color: #f5d794; }
.sn-body-display .sn-region-label { color: #f4efdf !important; font-size: .84rem; line-height: 1.35; padding: .5rem; min-height: 44px; max-width: 28%; border-radius: 3px; transition: color 160ms, background-color 160ms; }
.sn-body-display .sn-region-label.is-preview { background: #f1d79512 !important; }
.sn-body-display .sn-region-label.is-selected { color: #fff4cd !important; background: #dfbe6e2e !important; box-shadow: inset 3px 0 #efd38c !important; }
.sn-body-display .sn-region-label::after { border-color: #a69774; }
.sn-body-display .sn-body-region { transition: fill 180ms, stroke 180ms; }
.sn-body-display .sn-body-region.is-preview { fill: #eecb8033; stroke: #f0d08c; stroke-width: 2.5; }
.sn-body-display .sn-body-region.is-selected { fill: #f2ce8150; stroke: #ffe4a6; stroke-width: 3; stroke-dasharray: 5 3; }
.sn-body-instrument-label { color: #e3d9bf; font-size: .68rem; letter-spacing: .14em; margin-block: .7rem .15rem; }
.sn-body-display .sn-map-hint { inset: auto 0 .4rem; transform: none; color: #e2dac6; width: 100%; max-width: 100%; font-size: .68rem; line-height: 1.4; padding: 0 .6rem; }
.sn-map-status { color: #424e47; font-size: .92rem; line-height: 1.6; }
.sn-text-map { border-color: var(--atlas-rule); }
.sn-text-map summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.sn-text-map label { min-height: 44px; align-items: center; font-size: .9rem; }
.sn-selected-regions button { min-height: 44px; border-color: #ad9a72; background: #eee6d3; color: #343d35; }
.sn:not(.sn-topic-selected) .sn-assessment { padding: .6rem 0; }
.sn-assessment { color: var(--atlas-ink); background: var(--atlas-paper); border: 1px solid var(--atlas-rule); border-radius: 5px; padding: clamp(1.3rem, 3vw, 2.5rem); box-shadow: 0 6px 20px #34372b06; }
.sn-assessment #assessment-title { color: var(--atlas-ink); font-size: clamp(1.65rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.sn-assessment p { line-height: 1.7; }
.sn-assessment .sn-subtle { color: var(--atlas-muted); }
.sn-path-grid { gap: .65rem; }
.sn-path-grid button { min-height: 72px; padding: .9rem 1rem; border: 1px solid #c6bda9; background: #fffaf0; border-radius: 3px; text-align: left; transition: border-color 150ms, background-color 150ms; }
.sn-path-grid button:hover { background: #ece4d2; border-color: #9c8050; }
.sn-path-grid button span { color: #29342d; line-height: 1.4; }
.sn-path-grid button small { color: #5d645a; font-size: .75rem; line-height: 1.5; }
.sn-button { background: #293f35; color: #fffaf0; border: 1px solid #293f35; min-height: 48px; border-radius: 3px; padding: .75rem 1.1rem; font-weight: 600; }
.sn-button:hover { background: #385346; }
.sn-button:disabled { opacity: .55; cursor: not-allowed; }
.sn-actions { gap: .7rem; align-items: center; }
.sn-text-button { color: #4c543f; min-height: 44px; text-underline-offset: 4px; }
.sn-consent { background: #eee9dd; border-left: 3px solid #a88b50; padding: 1rem; margin-block: 1.2rem; color: #404a42; }
.sn-consent input { accent-color: #355b45; flex: 0 0 auto; }
.sn.sn-topic-selected .sn-workspace { max-width: 63rem; }
.sn.sn-topic-selected .sn-explorer { background: #e9e4d8; border: 1px solid #d1c7b1; border-left: 3px solid #aa8a48; border-radius: 3px; padding: .75rem 1rem; position: relative; top: auto; }
.sn.sn-topic-selected .sn-card-heading { padding: 0; }
.sn.sn-topic-selected .sn-body-display .sn-body-map::before { display: none; }
.sn.sn-topic-selected .sn-body-display .sn-body-map { min-height: 0; }
.sn-progress { color: #5e665d; font-size: .85rem; }
.sn-progress progress { height: .3rem; border-radius: 2px; accent-color: #9b7b40; background: #e8e1d2; }
.sn-question fieldset { min-width: 0; }
.sn-question legend { color: var(--atlas-ink); font-size: clamp(1.4rem, 2.7vw, 1.9rem); line-height: 1.3; letter-spacing: -.018em; padding-bottom: .8rem; }
.sn-options { gap: .7rem; }
.sn-options button { color: #343c36; background: #fffdf7; border: 1px solid #bebdab; border-radius: 4px; min-height: 56px; padding: 1rem 1.1rem; line-height: 1.45; text-align: left; gap: 1rem; }
.sn-options button::after { flex: 0 0 auto; }
.sn-options button:hover { border-color: #8b835f; background: #f2eddf; }
.sn-options button[aria-pressed="true"] { background: #e6ecdf; border: 2px solid #527056; padding: calc(1rem - 1px) calc(1.1rem - 1px); box-shadow: inset 4px 0 #527056; }
.sn-question-controls { margin-top: 1.6rem; padding-top: 1rem; border-color: var(--atlas-rule); flex-wrap: wrap; }
.sn-warning-row { padding-block: 1.25rem; border-color: #d3c7b3; }
.sn-warning-row h3 { line-height: 1.4; color: #393d33; }
.sn-warning-choices label { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.sn-warning-choices input { min-width: 20px; min-height: 20px; accent-color: #395f45; }
.sn-result-card { padding: clamp(1.3rem, 3vw, 2rem); background: #e9edde; border-color: #6a7952; border-radius: 3px; }
.sn-result-card[data-urgency="emergency"] { background: #fae7df; border-color: #943e30; }
.sn-result-card[data-urgency="urgent"], .sn-result-card[data-urgency="medical"] { background: #f3e8cc; border-color: #946d32; }
.sn-result-card h2 { color: #30392f; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; }
.sn-result-card[data-urgency="emergency"] h2 { color: #762e25; }
.sn-result-label { color: #625439; font-size: .75rem; }
.sn-summary-grid { border-color: #d2c8b5; background: #d2c8b5; }
.sn-summary-grid > div { background: #f7f2e6; padding: 1rem; min-width: 0; }
.sn-summary-grid dt { color: #5e6658; font-size: .72rem; }
.sn-summary-grid dd { color: #303c32; line-height: 1.6; overflow-wrap: anywhere; }
.sn-condition { border-color: #d2c8b5; padding-block: 1.4rem; }
.sn-condition h3 { color: #363d32; line-height: 1.3; }
.sn-pattern-support { background: #edf0e3; border-color: #718664; }
.sn-pattern-unknown, .sn-clarify { background: #f0e8d4; border-color: #a88b50; }
.sn-office, .sn-location { background: #f0ede1; border-color: #d2c8b5; border-radius: 3px; }
.sn-review-row { border-color: #d2c8b5; }
.sn-host, .sn:not(.sn-topic-selected) .sn-host { color: #50594e; border-color: #d2c8b5; }
.sn-host .eyebrow { color: #76603a; }
.sn-library { color: #f1ead8; background: #2a3330; padding: clamp(2rem, 4vw, 3.5rem) 3%; border-block: 1px solid #69715c; }
.sn-library .eyebrow { color: #d7bc85; }
.sn-section-heading { align-items: flex-start; }
.sn-section-heading h2 { color: #fff6e3; letter-spacing: -.025em; line-height: 1.15; }
.sn-section-heading > p { color: #d9ddcc; line-height: 1.7; }
.sn-learning-layout { gap: 1.4rem; }
.sn-lesson-buttons { gap: .5rem; }
.sn-lesson-buttons button { min-height: 48px; color: #eee9d9; border: 1px solid #7b816d; border-radius: 3px; padding: .8rem 1rem; line-height: 1.4; }
.sn-lesson-buttons button:hover { background: #ffffff0b; }
.sn-lesson-buttons button[aria-pressed="true"] { background: #e9dcba; color: #29352e; border-color: #e9dcba; box-shadow: inset 3px 0 #b4914e; }
.sn-lesson-content { color: #2f3b31; background: #faf6eb; border: 1px solid #d5c7a8; border-radius: 4px; padding: clamp(1.1rem, 3vw, 2rem); }
.sn-lesson-content h3 { color: #30392e; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.sn-anatomy { background: #eae4d5; border: 1px solid #cbbf9e; border-radius: 3px; gap: 1.2rem; padding: 1.1rem; }
.sn-plate-canvas { min-width: 0; background: radial-gradient(ellipse, #fffdf4, #eee6d2); border: 1px solid #cec2a1; border-radius: 3px; padding: .5rem; }
.sn-anatomy svg { display: block; max-height: 29rem; }
.sn-anatomy button { min-height: 44px; padding: .55rem .7rem; line-height: 1.4; }
.sn-plate-label { fill: #4c5545; }
.sn-source-links { line-height: 1.6; }
.sn-details { color: #4e584d; }
/* Motion setting hooks supplement the system preference. */
.sn.sn-reduced-motion *, .sn.sn-reduced-motion *::before, .sn.sn-reduced-motion *::after,
.sn[data-motion="reduced"] *, .sn[data-motion="reduced"] *::before, .sn[data-motion="reduced"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}
@media (min-width: 1100px) {
  .sn:not(.sn-topic-selected) .sn-assessment { padding-top: 4.1rem; }
}
@media (max-width: 1000px) {
  .sn:not(.sn-topic-selected) .sn-workspace { grid-template-columns: minmax(0, 1fr); }
  .sn:not(.sn-topic-selected) .sn-host { grid-column: 1; }
  .sn:not(.sn-topic-selected) .sn-body-display .sn-body-map { height: 39rem; }
  .sn-learning-layout { grid-template-columns: minmax(0, 1fr); }
  .sn-lesson-buttons { flex-direction: row; flex-wrap: wrap; }
  .sn-lesson-buttons button { flex: 1 1 11rem; }
}
@media (max-width: 760px) {
  .sn-header { padding: .75rem 4%; flex-wrap: wrap; gap: .55rem 1rem; }
  .sn-header a { min-height: 44px; display: inline-flex; align-items: center; }
  .sn-hero { padding: 1.35rem 4% 1rem; gap: 1rem !important; }
  .sn-hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); max-width: 19ch; }
  .sn-hero > div > p:not(.eyebrow) { font-size: .95rem; }
  .sn-emergency { margin-inline: 4%; padding: .85rem; gap: .4rem; grid-template-columns: minmax(0, 1fr); }
  .sn-emergency a { min-height: 44px; display: inline-flex; align-items: center; }
  .sn-journey { margin-inline: 4%; }
  .sn-journey li { padding: .7rem .35rem; font-size: .7rem; gap: .35rem; }
  .sn-workspace { margin-inline: 4%; gap: 1rem; }
  .sn:not(.sn-topic-selected) .sn-workspace { gap: 1.2rem; }
  .sn-card-heading { padding-bottom: .7rem; }
  .sn-card-heading h2 { font-size: 1.65rem; }
  .sn-body-display { padding: .5rem; border-radius: 5px; }
  .sn:not(.sn-topic-selected) .sn-body-display .sn-body-map { height: auto; min-height: 27rem; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: .35rem; padding: .8rem .4rem; }
  .sn:not(.sn-topic-selected) .sn-body-display .sn-human { width: 100%; max-width: 100%; height: auto; align-self: center; }
  .sn:not(.sn-topic-selected) .sn-region-key { padding-block: .2rem 1.7rem; gap: .1rem; }
  .sn:not(.sn-topic-selected) .sn-region-label { font-size: .81rem; padding: .5rem .45rem; min-height: 44px; max-width: 100%; }
  .sn-body-display .sn-map-hint { font-size: .63rem; }
  .sn-body-instrument-label { font-size: .6rem; letter-spacing: .11em; }
  .sn:not(.sn-topic-selected) .sn-assessment { padding: .5rem 0; }
  .sn-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .sn-path-grid button { padding: .8rem; min-height: 80px; }
  .sn-path-grid button span { font-size: .92rem; }
  .sn.sn-topic-selected .sn-workspace { padding-inline: 4%; margin-inline: 0; }
  .sn.sn-topic-selected .sn-explorer { padding: .65rem .8rem; }
  .sn-assessment { padding: 1.2rem; }
  .sn-question legend { font-size: 1.45rem; }
  .sn-options button { padding: .9rem; font-size: 1rem; }
  .sn-options button[aria-pressed="true"] { padding: calc(.9rem - 1px); }
  .sn-question-controls { gap: .5rem; }
  .sn-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .sn-section-heading { display: block; }
  .sn-section-heading h2 { font-size: 2rem; }
  .sn-library { padding: 2rem 4%; }
  .sn-lesson-buttons button { flex-basis: 8rem; font-size: .82rem; padding: .7rem; }
  .sn-anatomy { grid-template-columns: minmax(0, 1fr); padding: .7rem; }
  .sn-anatomy svg { max-height: 25rem; }
  .sn-source-links { overflow-wrap: anywhere; }
  .sn-result-card { padding: 1.2rem; }
  .sn-review-row { align-items: flex-start; }
}
@media (max-width: 360px) {
  .sn-header { font-size: .8rem; }
  .sn:not(.sn-topic-selected) .sn-body-display .sn-body-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); padding-inline: .2rem; }
  .sn:not(.sn-topic-selected) .sn-region-label { padding-inline: .35rem; font-size: .77rem; }
  .sn-assessment { padding: 1rem; }
  .sn-path-grid button { padding: .65rem; }
  .sn-actions > .sn-button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sn *, .sn *::before, .sn *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .sn-body-display .sn-region-label { color: ButtonText !important; }
  .sn-body-display .sn-region-label.is-selected { outline: 3px solid Highlight; }
  .sn-options button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .sn-body-display .sn-body-region.is-selected { stroke: Highlight; fill: transparent; }
}
@media print {
  .sn { background: white; color: black; }
  .sn-assessment, .sn-result-card, .sn-summary-grid > div { box-shadow: none; background: white; }
  .sn-result-card, .sn-condition { break-inside: avoid; }
}
/* Real anatomical layer and regional-view controls supplied by app.js. */
.sn-atlas-tools { display: grid; gap: .45rem; margin: 0 0 .7rem; }
.sn-atlas-layers, .sn-atlas-view-tools { display: flex; gap: .35rem; flex-wrap: wrap; }
.sn-atlas-layers button, .sn-atlas-view-tools button { flex: 1 1 auto; min-height: 44px; padding: .5rem .65rem; font-size: .78rem; line-height: 1.35; border: 1px solid #a69b7f; border-radius: 3px; color: #3d4639; background: #f9f2e1; }
.sn-body-display .sn-atlas-layers button, .sn-body-display .sn-atlas-view-tools button { color: #f4ebd6; border-color: #7b7965; background: transparent; }
.sn-atlas-layers button[aria-pressed="true"], .sn-atlas-view-tools button[aria-pressed="true"] { background: #e8d6a8; color: #2b332b; border-color: #b69b60; box-shadow: inset 0 -3px #b09251; font-weight: 700; }
.sn-body-display .sn-atlas-layers button[aria-pressed="true"], .sn-body-display .sn-atlas-view-tools button[aria-pressed="true"] { background: #e8d6a8; color: #2b332b; border-color: #e8d6a8; }
.sn-atlas-view-tools button:disabled { opacity: .5; cursor: not-allowed; }
.sn.sn-topic-selected .sn-atlas-tools { display: none; }
.sn #body-map.is-focused .sn-region-key { visibility: hidden; }
.sn:not(.sn-topic-selected) #body-map.is-focused .sn-human { grid-column: 1 / -1; width: 100%; max-width: 100%; height: 100%; }
.sn-pathway-atlas { min-width: 0; margin: 0; padding: 1rem; background: #eae4d5; border: 1px solid #cfc3a9; border-radius: 3px; align-self: start; }
.sn-pathway-atlas-heading .eyebrow { margin: 0 0 .45rem; font-size: .65rem; letter-spacing: .1em; }
.sn-pathway-atlas h3 { margin: 0 0 1rem; color: #343e32; font: 500 1.3rem/1.25 Georgia, serif; }
.sn-pathway-atlas .sn-atlas-layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#pathway-atlas-art { background: radial-gradient(ellipse, #fffbeb, #dcd5c1); border: 1px solid #cfc4a8; border-radius: 3px; overflow: hidden; margin-top: .8rem; }
.sn-regional-plate { display: block; width: 100%; height: 18rem; }
.sn-pathway-atlas figcaption { margin: .7rem 0 .2rem; font-size: .75rem; line-height: 1.5; color: #535d4d; }
.sn-pathway-atlas .sn-text-button { font-size: .78rem; padding-inline: 0; text-align: left; }
@media (min-width: 900px) {
  .sn-assessment:has(.sn-pathway-atlas:not([hidden])) { display: grid; grid-template-columns: minmax(13rem, .65fr) minmax(0, 1.35fr); align-items: start; gap: 1.5rem; }
  .sn-assessment:has(.sn-pathway-atlas:not([hidden])) #assessment-content { min-width: 0; }
}
@media (max-width: 899px) {
  .sn-pathway-atlas { margin-bottom: 1.3rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .5rem .8rem; padding: .8rem; }
  .sn-pathway-atlas-heading { grid-column: 1; }
  .sn-pathway-atlas h3 { margin-bottom: 0; font-size: 1.15rem; }
  .sn-pathway-atlas .sn-atlas-layers { grid-column: 1; gap: .3rem; }
  .sn-pathway-atlas .sn-atlas-layers button { font-size: .72rem; padding: .4rem .25rem; min-width: 0; }
  #pathway-atlas-art { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .sn-regional-plate { height: 100%; min-height: 10rem; max-height: 15rem; }
  .sn-pathway-atlas figcaption { grid-column: 1 / -1; margin: 0; }
  .sn-pathway-atlas .sn-text-button { grid-column: 1; grid-row: 3; margin: 0; font-size: .72rem; line-height: 1.4; }
}
@media (max-width: 760px) {
  .sn-atlas-layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sn-atlas-layers button { padding-inline: .2rem; font-size: .72rem; }
  .sn:not(.sn-topic-selected) #body-map.is-focused { height: 29rem; display: block; }
  .sn:not(.sn-topic-selected) #body-map.is-focused .sn-region-key { position: absolute; }
}
@media print { .sn-pathway-atlas { display: none !important; } }
/* Labels remain actual readable text at phone widths, keyed to the drawing. */
#pathway-atlas-art { background: radial-gradient(ellipse at 50% 40%, #4b574b, #25332f); }
.sn-atlas-legend { display:flex;flex-wrap:wrap;gap:.45rem .8rem;list-style:none;padding:0;margin:.65rem 0;color:#344337;font-size:.82rem;line-height:1.5; }
.sn-atlas-legend li { display:flex;gap:.4rem;align-items:baseline; }
.sn-atlas-legend span { display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:50%;background:#2d4137;color:#fff3d7;font-size:.72rem;flex:none; }
@media(max-width:899px){
 .sn-pathway-atlas{display:block;padding:.8rem;}
 .sn-pathway-atlas h3{margin-bottom:.6rem;}
 .sn-pathway-atlas .sn-atlas-layers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:.6rem;}
 #pathway-atlas-art{margin:0;}
 .sn-regional-plate{height:13rem;min-height:0;max-height:none;}
 .sn-pathway-atlas .sn-text-button{display:block;margin-top:.35rem;}
}
/* Curated atlas illustrations: keep the anatomy on paper, with the frame outside. */
.sn-body-display .sn-body-map { background:radial-gradient(ellipse at 48% 40%,#fffef8,#e8e0ca);box-shadow:inset 0 0 55px #87784914; }
.sn-body-display .sn-human { max-width:74%;height:100%;filter:drop-shadow(0 6px 4px #3c271b18); }
.sn-atlas-source-image { transition:opacity .22s; }
.sn-body-display .sn-region-label { color:#333c33!important;font-weight:600; }
.sn-body-display .sn-region-label.is-selected { background:#ad8b4940!important;color:#253c31!important;box-shadow:inset 3px 0 #89692f!important; }
.sn-body-display .sn-region-label.is-preview { background:#ba9b4f22!important; }
.sn-body-display .sn-body-region { fill:transparent;stroke:transparent;cursor:pointer;pointer-events:all; }
.sn-body-display .sn-body-region.is-preview { fill:#d2a13e35;stroke:#76521a;stroke-width:5; }
.sn-body-display .sn-body-region.is-selected { fill:#b77f203a;stroke:#795517;stroke-width:6;stroke-dasharray:14 8; }
.sn-body-map:has(.is-selected) .sn-atlas-source-image { opacity:.7; }
.sn-body-display .sn-map-hint { color:#455246; }
.sn-atlas-credit {font-size:.68rem;line-height:1.65;color:#5e6658;overflow-wrap:anywhere;margin:.6rem 0 0;}
.sn-body-display .sn-atlas-credit,.sn-body-display .sn-atlas-credit a {color:#ded9c4;}
.sn-atlas-credit a {text-underline-offset:3px;}
.sn-atlas-plate-tabs {display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.7rem;}
.sn-atlas-plate-tabs button {border:1px solid #b4a689;border-radius:3px;background:#f8f3e5;color:#3a4235;padding:.55rem .65rem;min-height:44px;text-align:left;font-size:.76rem;line-height:1.4;flex:1 1 auto;}
.sn-atlas-plate-tabs button[aria-pressed=true] {background:#34463b;color:#fff6dc;border-color:#34463b;box-shadow:inset 0 -3px #bba066;}
#pathway-atlas-art {background:#fff;border:1px solid #d4c9b2;}
.sn-pathway-atlas .sn-regional-plate {width:100%;height:17rem;max-height:22rem;}
.sn-atlas-open {display:block;width:100%;padding:.6rem;min-height:44px;background:#f6edda;border:1px solid #b7a47a;color:#354135;font-weight:600;margin-top:.5rem;border-radius:3px;}
.sn-atlas-dialog {width:min(1100px,95vw);max-height:94dvh;padding:1.25rem;border:1px solid #8f7848;background:#f5f0e4;color:#2c3c32;border-radius:5px;box-shadow:0 24px 90px #0007;}
.sn-atlas-dialog::backdrop {background:#19221df0;}
.sn-atlas-dialog>header {display:flex;align-items:start;justify-content:space-between;gap:1rem;border-bottom:1px solid #cabfa7;padding-bottom:.8rem;}
.sn-atlas-dialog h2 {font:500 clamp(1.4rem,3vw,2rem)/1.2 Georgia,serif;margin:.4rem 0;}
.sn-atlas-dialog button {min-height:44px;min-width:44px;border:1px solid #ac9a73;background:#fff9ed;color:#314135;border-radius:3px;padding:.5rem .8rem;}
.sn-atlas-dialog button:disabled {opacity:.4;}
.sn-atlas-dialog-tools {display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.7rem 0;}
.sn-atlas-dialog-tools output {min-width:4rem;text-align:center;font-variant-numeric:tabular-nums;}
.sn-atlas-dialog-hint {font-size:.8rem;line-height:1.5;margin:0 0 .7rem;color:#586354;}
.sn-atlas-detail-canvas {height:min(60dvh,620px);overflow:auto;overscroll-behavior:contain;background:white;border:1px solid #c8bea9;touch-action:pan-x pan-y;}
.sn-atlas-detail-canvas img {display:block;width:100%;height:auto;max-width:none;}
.sn-atlas-dialog :focus-visible {outline:3px solid #8a662b;outline-offset:3px;}
@media(max-width:899px){.sn-pathway-atlas .sn-regional-plate{height:12.5rem}.sn-atlas-plate-tabs button{font-size:.74rem;flex-basis:8rem}.sn-atlas-dialog{padding:.8rem;max-width:96vw}.sn-atlas-detail-canvas{height:58dvh}.sn-atlas-dialog header .eyebrow{font-size:.65rem}.sn-atlas-dialog>header button{padding:.4rem;white-space:nowrap}}
@media(max-width:760px){.sn:not(.sn-topic-selected) .sn-body-display .sn-human{width:100%;max-width:100%;height:auto;min-height:24rem}.sn:not(.sn-topic-selected) .sn-body-display .sn-body-map{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);min-height:28rem}.sn-atlas-credit{font-size:.64rem}}
@media(prefers-reduced-motion:reduce){.sn-atlas-source-image{transition:none}}
@media print{.sn-atlas-dialog{display:none!important}}
.sn-atlas-source-image,.sn-atlas-selected-image {mix-blend-mode:multiply;}
.sn-atlas-selected-image {pointer-events:none;}
.sn.sn-topic-selected #body-plate-caption {display:none;}
.sn-atlas-dialog {max-width:min(1100px,96vw);}
/* On phones give the illustration the full width, with large named controls below. */
@media(max-width:760px){
 .sn:not(.sn-topic-selected) .sn-body-display .sn-body-map{display:flex;flex-direction:column;height:auto;min-height:0;padding:.5rem;gap:.5rem;}
 .sn:not(.sn-topic-selected) .sn-body-display .sn-human{display:block;flex:none;width:100%;height:min(56dvh,32rem);min-height:23rem;max-width:100%;}
 .sn:not(.sn-topic-selected) .sn-region-key{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 1.7rem;gap:.35rem;width:100%;}
 .sn:not(.sn-topic-selected) .sn-region-label{position:static;transform:none;width:100%;max-width:none;font-size:.75rem;min-height:48px;border:1px solid #a59b8255!important;background:#fff9e9aa!important;padding:.4rem;line-height:1.4;}
 .sn:not(.sn-topic-selected) #body-map.is-focused{height:auto;}
 .sn:not(.sn-topic-selected) #body-map.is-focused .sn-region-key{position:static;visibility:visible;}
 .sn-body-display .sn-map-hint{bottom:.4rem;}
}
/* Learning library uses the same sourced atlas and detail viewer as the explorer. */
.sn-library .sn-anatomy{grid-template-columns:minmax(0,1.4fr) minmax(13rem,.8fr);align-items:start;gap:1.4rem;}
.sn-library .sn-plate-canvas{background:#fff;border-color:#c7b996;padding:.7rem;}
.sn-learning-atlas-image{display:block;width:100%;height:clamp(20rem,38vw,34rem);object-fit:contain;background:#fff;}
.sn-library .sn-anatomy [role=group]{display:flex;flex-direction:column;gap:.6rem;}
.sn-library .sn-anatomy [role=group] button{text-align:left;background:#fffaf0;border:1px solid #9f9c83;color:#344b3d;}
.sn-library .sn-anatomy [role=group] button[aria-pressed=true]{background:#304b3c;color:#fff7e3;border-color:#304b3c;box-shadow:inset 4px 0 #d4b46d;}
.sn-library .sn-anatomy [role=status]{font-size:1rem;line-height:1.75;color:#34463b;margin-top:1rem;}
.sn-library .sn-atlas-credit{font-size:.74rem;line-height:1.6;}
@media(max-width:900px){.sn-library .sn-anatomy{grid-template-columns:minmax(0,1fr);}.sn-learning-atlas-image{height:25rem;}.sn-library .sn-anatomy [role=group]{flex-direction:row;flex-wrap:wrap}.sn-library .sn-anatomy [role=group] button{flex:1 1 8rem;min-height:48px}}
@media(max-width:400px){.sn-learning-atlas-image{height:22rem;}.sn-library .sn-anatomy{padding:.5rem;}}
