.aat-atlas {
  --ink: #e8f3f0;
  --muted: #8fa8a7;
  --dim: #607b7c;
  --bg: #061217;
  --bg-deep: #030b0f;
  --panel: #0b1c22;
  --line: rgba(173, 216, 210, .14);
  --line-strong: rgba(173, 216, 210, .25);
  --mint: #61d6c4;
  --mint-soft: #a8efe2;
  --amber: #eeb968;
  --coral: #ee7a6b;
  --blue: #78a9e5;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.aat-atlas * { box-sizing: border-box; }
.aat-atlas {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 8%, rgba(36, 113, 105, .13), transparent 25rem),
    var(--bg-deep);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.aat-atlas button, .aat-atlas a { -webkit-tap-highlight-color: transparent; }
.aat-atlas button { font: inherit; }
.aat-atlas a { color: inherit; }
.aat-atlas .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.aat-atlas .eyebrow { margin: 0 0 12px; color: var(--mint); font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.aat-atlas h1, .aat-atlas h2, .aat-atlas h3, .aat-atlas p { margin-top: 0; }
.aat-atlas .atlas { padding: 18px clamp(18px, 5vw, 78px) 88px; background: linear-gradient(180deg, var(--bg), #07151a); }
.aat-atlas h2 { margin-bottom: 0; font: 400 clamp(34px, 4vw, 56px)/1 var(--serif); letter-spacing: -.035em; }
.aat-atlas .genotype-view { padding: 8px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; border-top: 1px solid var(--line); }
.aat-atlas .genotype-copy { grid-column: 1; padding-right: 28px; }
.aat-atlas .genotype-copy .nav-label { margin-bottom: 8px; }
.aat-atlas .genotype-copy strong { display: block; margin-bottom: 6px; color: var(--ink); font: 400 22px/1.1 var(--serif); }
.aat-atlas #genotype-summary { max-width: 290px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.aat-atlas .genotype-controls { grid-column: 3; display: grid; gap: 5px; }
.aat-atlas .genotype-tabs { width: 100%; padding: 4px; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 100px; }
.aat-atlas .genotype-tab { min-width: 105px; padding: 9px 14px; border: 0; border-radius: 100px; background: transparent; color: var(--muted); display: flex; align-items: baseline; justify-content: center; gap: 7px; cursor: pointer; transition: .2s ease; }
.aat-atlas .genotype-tab:hover { color: var(--ink); }
.aat-atlas .genotype-tab b { font: 500 12px/1 var(--sans); letter-spacing: .08em; }
.aat-atlas .genotype-tab small { font-size: 9px; }
.aat-atlas .genotype-tab.active { background: var(--ink); color: var(--bg-deep); }
.aat-atlas .genotype-tab[data-genotype="MZ"].active { background: var(--amber); }
.aat-atlas .genotype-tab[data-genotype="ZZ"].active { background: var(--coral); }
.aat-atlas .mini-mechanism { padding-top: 4px; display: grid; grid-template-columns: auto minmax(0, 250px); align-items: center; gap: 8px; border-top: 1px solid rgba(173, 216, 210, .08); color: var(--dim); }
.aat-atlas .mini-mechanism-label { justify-self: end; font-size: 8px; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.aat-atlas .mini-mechanism svg { display: block; width: 100%; max-width: 250px; height: 40px; overflow: visible; }
.aat-atlas .mini-mechanism .mini-protein { fill: none; stroke: var(--mint); stroke-width: 1.1; }
.aat-atlas .mini-mechanism .reactive-loop { fill: none; stroke: var(--coral); stroke-width: 1.2; stroke-linecap: round; }
.aat-atlas .mini-mechanism .protease { fill: var(--coral); stroke: none; }
.aat-atlas .mini-mechanism .mini-arrow { fill: none; stroke: rgba(168, 239, 226, .38); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.aat-atlas .mini-mechanism text { fill: var(--muted); font: 500 7px var(--sans); text-anchor: middle; text-transform: uppercase; letter-spacing: .08em; }
.aat-atlas .genotype-caveat { max-width: 290px; margin: 9px 0 0; padding-left: 13px; border-left: 2px solid var(--mint); color: var(--dim); font-size: 9px; line-height: 1.5; }
.aat-atlas .genotype-view[data-genotype="MZ"] .genotype-caveat { border-color: var(--amber); }
.aat-atlas .genotype-view[data-genotype="ZZ"] .genotype-caveat { border-color: var(--coral); }
.aat-atlas .filter-row { position: relative; z-index: 3; min-height: 48px; padding: 6px 12px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.aat-atlas .filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: .2s ease;
}
.aat-atlas .filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.aat-atlas .filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg-deep); }
.aat-atlas .filter-chip:focus-visible, .aat-atlas .system-link:focus-visible, .aat-atlas .hotspot:focus-visible, .aat-atlas .source-link:focus-visible, .aat-atlas .deep-toggle:focus-visible, .aat-atlas .genotype-tab:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.aat-atlas .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.aat-atlas .chip-dot.established { color: var(--mint); }
.aat-atlas .chip-dot.supported { color: var(--amber); }
.aat-atlas .chip-dot.investigational { color: var(--coral); }
.aat-atlas .filter-chip.active .chip-dot { color: var(--bg-deep); }
.aat-atlas .atlas-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 760px; }
.aat-atlas .system-nav { padding: 45px 36px 32px 0; border-right: 1px solid var(--line); }
.aat-atlas .nav-label { margin-bottom: 24px; color: var(--dim); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.aat-atlas .system-link {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(173, 216, 210, .08);
  background: none;
  color: var(--muted);
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.aat-atlas .system-link:hover { color: var(--ink); transform: translateX(3px); }
.aat-atlas .system-link.active { color: var(--ink); }
.aat-atlas .system-link b { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; }
.aat-atlas .system-link small { color: var(--dim); font-size: 10px; }
.aat-atlas .system-count { color: var(--dim); font: 400 15px/1 var(--serif); }
.aat-atlas .system-link.active .system-icon { color: var(--mint); border-color: rgba(97, 214, 196, .45); background: rgba(97, 214, 196, .08); }
.aat-atlas .system-icon { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: .2s ease; }
.aat-atlas .system-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.aat-atlas .body-stage { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid var(--line); isolation: isolate; }
.aat-atlas .body-glow { position: absolute; width: 340px; height: 560px; left: 50%; top: 90px; translate: -50% 0; border-radius: 50%; background: rgba(62, 164, 150, .08); filter: blur(50px); pointer-events: none; transition: background .45s ease, scale .45s ease; }
.aat-atlas .body-stage[data-genotype="MZ"] .body-glow { background: rgba(238, 185, 104, .075); }
.aat-atlas .body-stage[data-genotype="ZZ"] .body-glow { background: rgba(238, 122, 107, .09); }
.aat-atlas .body-stage[data-genotype="MZ"] .silhouette { stroke: rgba(238, 185, 104, .35); }
.aat-atlas .body-stage[data-genotype="ZZ"] .silhouette { stroke: rgba(238, 122, 107, .38); }
.aat-atlas .body-map { display: block; width: 100%; height: 760px; margin: 0; overflow: visible; background: #000; }
.aat-atlas .anatomy-photo { opacity: .94; filter: saturate(.86) contrast(1.07) brightness(.94); }
.aat-atlas .silhouette, .aat-atlas .skeleton, .aat-atlas .anatomy, .aat-atlas .pathway-lines { display: none; }
.aat-atlas .organ-focus { color: var(--mint); transform-box: view-box; transform-origin: 0 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), color .3s ease; pointer-events: none; }
.aat-atlas .organ-focus.supported { color: var(--amber); }
.aat-atlas .organ-focus.investigational { color: var(--coral); }
.aat-atlas .organ-focus .focus-aura { fill: currentColor; opacity: .14; filter: blur(9px); }
.aat-atlas .organ-focus .focus-ring { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 5; opacity: .52; }
.aat-atlas .silhouette { fill: url(#bodyFill); stroke: rgba(116, 181, 184, .42); stroke-width: 1; }
.aat-atlas .silhouette .skin-shell { vector-effect: non-scaling-stroke; }
.aat-atlas .silhouette .body-contour { fill: none; stroke: rgba(166, 222, 217, .13); stroke-width: .8; }
.aat-atlas .skeleton { fill: none; stroke: rgba(206, 231, 225, .15); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.aat-atlas .skeleton .skull { stroke: rgba(206, 231, 225, .19); }
.aat-atlas .skeleton .axial { stroke-width: 1; }
.aat-atlas .skeleton .limbs { stroke-width: 1.5; }
.aat-atlas .skeleton .joint-guide { fill: rgba(206, 231, 225, .04); }
.aat-atlas .anatomy > *, .aat-atlas .anatomy .organ, .aat-atlas .skeleton { transition: opacity .36s ease, filter .36s ease, transform .36s cubic-bezier(.2,.8,.2,1), stroke-width .36s ease; transform-box: fill-box; transform-origin: center; }
.aat-atlas .anatomy .organ { fill: url(#organFill); stroke: rgba(97, 214, 196, .48); stroke-width: 1.1; }
.aat-atlas .anatomy .brain { fill: rgba(120, 169, 229, .12); stroke: rgba(120, 169, 229, .48); }
.aat-atlas .anatomy .lungs { fill: url(#lungFill); }
.aat-atlas .anatomy .heart { fill: url(#heartFill); stroke: rgba(238, 122, 107, .68); }
.aat-atlas .anatomy .liver { fill: url(#liverFill); stroke: rgba(238, 185, 104, .62); }
.aat-atlas .anatomy .gallbladder, .aat-atlas .anatomy .spleen { fill: rgba(238, 185, 104, .1); stroke: rgba(238, 185, 104, .38); }
.aat-atlas .anatomy .uterus, .aat-atlas .anatomy .bladder { fill: rgba(238, 122, 107, .08); stroke: rgba(238, 122, 107, .32); }
.aat-atlas .anatomy-detail, .aat-atlas .organ-lobe-detail, .aat-atlas .airway, .aat-atlas .diaphragm, .aat-atlas .ureters, .aat-atlas .colon, .aat-atlas .small-bowel { fill: none; stroke: rgba(143, 199, 192, .32); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.aat-atlas .organ-lobe-detail { stroke: rgba(238, 185, 104, .3); stroke-width: .75; }
.aat-atlas .airway { stroke: rgba(97, 214, 196, .55); stroke-width: 2; }
.aat-atlas .diaphragm { stroke-dasharray: 3 4; }
.aat-atlas .colon { stroke-width: 1.6; }
.aat-atlas .small-bowel { stroke: rgba(97, 214, 196, .38); }
.aat-atlas .kidney-depth { opacity: .54; }
.aat-atlas .placenta { fill: rgba(238, 122, 107, .22); stroke: rgba(238, 122, 107, .62); stroke-width: 1; }
.aat-atlas .vascular { fill: none; stroke: rgba(238, 122, 107, .28); stroke-width: 2.2; stroke-linecap: round; }
.aat-atlas .vascular.secondary { stroke: rgba(120, 169, 229, .2); stroke-width: 1.5; }
.aat-atlas .lymph-nodes { fill: rgba(238, 185, 104, .28); stroke: rgba(238, 185, 104, .55); stroke-width: .7; }
.aat-atlas .immune-cell circle { fill: rgba(120, 169, 229, .08); stroke: rgba(120, 169, 229, .48); stroke-width: .8; }
.aat-atlas .immune-cell path { fill: rgba(120, 169, 229, .28); stroke: none; }
.aat-atlas .joint, .aat-atlas .skin-layer { fill: none; stroke: rgba(238, 185, 104, .4); stroke-width: 3; stroke-linecap: round; }
.aat-atlas .pathway-lines { fill: none; stroke: rgba(97, 214, 196, .12); stroke-width: 1; stroke-dasharray: 4 7; }
.aat-atlas .body-stage[data-active] .anatomy > * { opacity: .55; }
.aat-atlas .body-stage[data-active="liver"] .anatomy :is(.liver, .organ-lobe-detail), .aat-atlas .body-stage[data-active="lung"] .anatomy :is(.lungs, .lung-detail), .aat-atlas .body-stage[data-active="airway"] .anatomy .airway, .aat-atlas .body-stage[data-active="blood"] .anatomy .vascular, .aat-atlas .body-stage[data-active="immune"] .anatomy :is(.immune-cell, .lymph-nodes), .aat-atlas .body-stage[data-active="vessels"] .anatomy :is(.vascular, .heart), .aat-atlas .body-stage[data-active="skin"] .anatomy .skin-layer, .aat-atlas .body-stage[data-active="pancreas"] .anatomy .pancreas, .aat-atlas .body-stage[data-active="gut"] .anatomy :is(.colon, .small-bowel), .aat-atlas .body-stage[data-active="kidney"] .anatomy .kidney-depth, .aat-atlas .body-stage[data-active="joints"] .anatomy .joint, .aat-atlas .body-stage[data-active="brain"] .anatomy :is(.brain, .brain-detail), .aat-atlas .body-stage[data-active="placenta"] .anatomy :is(.placenta, .uterus) {
  opacity: 1;
  filter: url(#softFocus);
  stroke-width: 1.75;
  transform: scale(1.035);
}
.aat-atlas .body-stage[data-active="skin"] .skin-shell { stroke: rgba(238, 185, 104, .78); }
.aat-atlas .hotspot { cursor: pointer; transition: opacity .25s ease; }
.aat-atlas .hotspot .pulse { fill: none; stroke-width: 1; opacity: 0; transform: scale(.75); transform-box: fill-box; transform-origin: center; transition: opacity .25s ease, transform .25s ease; }
.aat-atlas .hotspot .hit-leader { fill: none; stroke: transparent; stroke-width: 20; pointer-events: stroke; }
.aat-atlas .hotspot .hit-marker { fill: transparent; stroke: transparent; pointer-events: all; }
.aat-atlas .hotspot .marker { fill: #0b1c22; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: fill .2s ease, transform .28s cubic-bezier(.2,.85,.2,1); }
.aat-atlas .hotspot text { fill: var(--ink); font: 600 9px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.aat-atlas .hotspot .leader { fill: none; stroke: rgba(180, 211, 207, .28); stroke-width: 1; }
.aat-atlas .hotspot .site-label { fill: var(--muted); font: 500 9px var(--sans); letter-spacing: .08em; text-transform: uppercase; text-anchor: start; }
.aat-atlas .hotspot.established .marker, .aat-atlas .hotspot.established .pulse { stroke: var(--mint); }
.aat-atlas .hotspot.supported .marker, .aat-atlas .hotspot.supported .pulse { stroke: var(--amber); }
.aat-atlas .hotspot.investigational .marker, .aat-atlas .hotspot.investigational .pulse { stroke: var(--coral); }
.aat-atlas .hotspot:hover .marker, .aat-atlas .hotspot.active .marker { fill: var(--ink); transform: scale(1.12); transform-origin: center; }
.aat-atlas .hotspot:hover text:not(.site-label), .aat-atlas .hotspot.active text:not(.site-label) { fill: var(--bg-deep); }
.aat-atlas .hotspot:hover .site-label, .aat-atlas .hotspot.active .site-label { fill: var(--ink); }
.aat-atlas .hotspot.active .pulse { opacity: .2; transform: scale(1.55); }
.aat-atlas .hotspot.is-entering .pulse { animation: pulseBurst .82s cubic-bezier(.14,.72,.2,1) both; }
.aat-atlas .hotspot.is-entering .marker { animation: markerPop .58s cubic-bezier(.18,.9,.24,1.25) both; }
.aat-atlas .hotspot.is-entering .leader { animation: leaderReveal .48s ease-out both; }
.aat-atlas .hotspot.filtered-out { opacity: .08; pointer-events: none; }
@keyframes pulseBurst { 0% { transform: scale(.55); opacity: .7; } 72% { opacity: .24; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes markerPop { 0% { transform: scale(.78); } 55% { transform: scale(1.28); } 100% { transform: scale(1.12); } }
@keyframes leaderReveal { 0% { stroke-dasharray: 0 150; opacity: 0; } 100% { stroke-dasharray: 150 0; opacity: 1; } }
@keyframes detailArrive { 0% { opacity: .72; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .aat-atlas .hotspot.is-entering .pulse, .aat-atlas .hotspot.is-entering .marker, .aat-atlas .hotspot.is-entering .leader, .aat-atlas .detail-panel.is-updating { animation: none; }
  .aat-atlas * { transition-duration: .01ms !important; }
}
.aat-atlas .detail-panel { padding: 48px 0 28px 42px; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 18px; }
.aat-atlas .detail-panel.is-updating { animation: detailArrive .42s cubic-bezier(.2,.75,.2,1); }
.aat-atlas .detail-kicker { color: var(--dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.aat-atlas .detail-panel h3 { margin: 0 0 18px; font: 400 clamp(38px, 4vw, 58px)/1 var(--serif); letter-spacing: -.04em; }
.aat-atlas .detail-summary { min-height: 78px; color: #acc0bf; font-size: 14px; line-height: 1.7; }
.aat-atlas .detail-facts { margin: 0; }
.aat-atlas .detail-facts div { padding: 13px 0; border-bottom: 1px solid rgba(173, 216, 210, .09); display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.aat-atlas .detail-facts dt { color: var(--dim); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.aat-atlas .detail-facts dd { margin: 0; color: #aabdbc; font-size: 11px; line-height: 1.55; }
.aat-atlas .deep-toggle { width: 100%; margin: 24px 0 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.aat-atlas .deep-toggle svg { width: 17px; height: 17px; fill: none; stroke: var(--mint); stroke-width: 1.6; transition: transform .22s ease; }
.aat-atlas .deep-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.aat-atlas .deep-dive { padding: 24px 0 8px; }
.aat-atlas .deep-dive[hidden] { display: none; }
.aat-atlas .deep-label, .aat-atlas .partner-block > span, .aat-atlas .source-block > span { margin: 0 0 10px; color: var(--dim); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.aat-atlas .deep-copy { margin-bottom: 22px; color: #aabdbc; font-size: 11px; line-height: 1.65; }
.aat-atlas .partner-block, .aat-atlas .source-block { padding: 17px 0; border-top: 1px solid rgba(173, 216, 210, .09); }
.aat-atlas .partner-list { display: flex; flex-wrap: wrap; gap: 6px; }
.aat-atlas .partner-list span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 9px; }
.aat-atlas .source-block ol { margin: 0; padding: 0; list-style: none; counter-reset: sources; }
.aat-atlas .source-block li { counter-increment: sources; padding: 8px 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; border-bottom: 1px solid rgba(173, 216, 210, .07); }
.aat-atlas .source-block li::before { content: "0" counter(sources); color: var(--dim); font: 400 12px/1.4 var(--serif); }
.aat-atlas .source-block a { color: #b6c8c6; font-size: 10px; line-height: 1.4; text-decoration: none; }
.aat-atlas .source-block a:hover { color: var(--mint); }
.aat-atlas .source-link { margin-top: 18px; padding: 16px 0 6px; color: var(--mint); text-decoration: none; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(97, 214, 196, .38); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.aat-atlas .source-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s ease; }
.aat-atlas .source-link:hover svg { transform: translate(3px,-3px); }
@media (min-width: 1101px) {
  .aat-atlas .genotype-view { height: 216px; }
  .aat-atlas .body-stage { margin-top: -216px; }
  .aat-atlas .mini-mechanism-label { transform: translateX(clamp(10px, 1.5vw, 17.5px)); }
  .aat-atlas .system-nav, .aat-atlas .detail-panel { margin-top: -52px; }
  .aat-atlas .system-nav { padding-top: 0; }
  .aat-atlas .detail-panel { padding-top: 0; }
}
@media (max-width: 1100px) {
  .aat-atlas .atlas-layout { grid-template-columns: 220px minmax(360px, 1fr); }
  .aat-atlas .genotype-view { grid-template-columns: 220px minmax(360px, 1fr); column-gap: 28px; }
  .aat-atlas .genotype-copy { grid-column: 1; }
  .aat-atlas .genotype-controls { grid-column: 2; }
  .aat-atlas .detail-panel { grid-column: 1 / -1; padding: 42px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1fr; gap: 0 50px; }
  .aat-atlas .detail-kicker, .aat-atlas .detail-panel h3, .aat-atlas .detail-summary { grid-column: 1; }
  .aat-atlas .detail-facts { grid-column: 2; }
  .aat-atlas .detail-facts { grid-row: 3 / span 3; }
  .aat-atlas .deep-toggle, .aat-atlas .source-link { grid-column: 1; align-self: end; }
  .aat-atlas .deep-dive { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .aat-atlas .atlas { padding-top: 12px; }
  .aat-atlas .genotype-view { grid-template-columns: 1fr; }
  .aat-atlas .genotype-copy, .aat-atlas .genotype-controls { grid-column: 1; }
  .aat-atlas #genotype-summary, .aat-atlas .genotype-caveat { max-width: 100%; }
  .aat-atlas .genotype-controls { margin-top: 12px; }
  .aat-atlas .genotype-tabs { width: 100%; }
  .aat-atlas .genotype-tab { flex: 1; min-width: 0; }
  .aat-atlas .mini-mechanism { grid-column: 1; width: 100%; grid-template-columns: 100px minmax(0, 1fr); }
  .aat-atlas .mini-mechanism svg { width: 100%; max-width: 250px; justify-self: end; }
  .aat-atlas .genotype-caveat { grid-column: 1; }
  .aat-atlas .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .aat-atlas .filter-row::-webkit-scrollbar { display: none; }
  .aat-atlas .filter-chip { flex: 0 0 auto; }
  .aat-atlas .atlas-layout { display: flex; flex-direction: column; min-height: 0; }
  .aat-atlas .system-nav { padding: 14px 0; border-right: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .aat-atlas .system-nav::-webkit-scrollbar { display: none; }
  .aat-atlas .system-nav > .nav-label { display: none; }
  .aat-atlas .system-link { width: auto; flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 100px; grid-template-columns: 26px auto; gap: 7px; }
  .aat-atlas .system-link:hover { transform: none; }
  .aat-atlas .system-link.active { background: rgba(97, 214, 196, .07); border-color: rgba(97, 214, 196, .34); }
  .aat-atlas .system-icon { width: 26px; height: 26px; border: 0; }
  .aat-atlas .system-count, .aat-atlas .system-link small { display: none; }
  .aat-atlas .body-stage { border: 0; border-top: 1px solid var(--line); }
  .aat-atlas .body-map { height: auto; min-height: 640px; }
  .aat-atlas .detail-panel { display: block; padding: 40px 0 0; }
  .aat-atlas .detail-summary { min-height: auto; }
  .aat-atlas .source-link { margin-top: 24px; }
}
@media (max-width: 470px) {
  .aat-atlas .filter-row { gap: 6px; }
  .aat-atlas .filter-chip { font-size: 9px; padding: 8px 10px; }
  .aat-atlas .genotype-tab { padding: 9px 7px; }
  .aat-atlas .genotype-tab small { display: none; }
  .aat-atlas .body-map { min-height: 570px; }
}

/* ==========================================================================
   AAT ATLAS — embed overrides
   Restyle the two border columns (interaction lens + detail panel) and the
   genotype header to match the light Alpha-1 MZ site theme, while keeping the
   central anatomical image on a black background exactly as designed.
   Border columns get site colours by locally re-mapping the atlas CSS
   variables on their subtrees only — the .body-stage keeps the dark palette.
   ========================================================================== */

.aat-atlas { background: transparent; }
.aat-atlas .atlas { background: var(--paper); padding-top: 8px; }

/* Central column stays dark, matching the black body image */
.aat-atlas .body-stage { background: #000; }

/* Light theme for the border columns + genotype header copy/controls */
.aat-atlas .genotype-copy,
.aat-atlas .genotype-controls,
.aat-atlas .system-nav,
.aat-atlas .detail-panel {
  --ink: #0f1c1e;
  --muted: #5a6664;
  --dim: #7a8683;
  --mint: #0e4f4a;
  --mint-soft: #0a3c38;
  --amber: #d8612b;
  --coral: #b94d1c;
  --line: #dcd3bf;
  --line-strong: #c9bfa8;
  --panel: #fbf7ee;
  --bg: #f6f1e7;
  --bg-deep: #f6f1e7;
}
.aat-atlas .genotype-view { border-top-color: #dcd3bf; }

/* Hard-coded light greys in the detail panel would vanish on paper — recolour */
.aat-atlas .detail-panel .detail-summary,
.aat-atlas .detail-panel .detail-facts dd,
.aat-atlas .detail-panel .deep-copy { color: #3a4644; }
.aat-atlas .detail-panel .source-block a { color: #0e4f4a; }
.aat-atlas .detail-panel .source-block a:hover { color: #d8612b; }

/* Faint dividers: swap the light-on-dark hairlines for dark-on-paper ones */
.aat-atlas .system-nav .system-link,
.aat-atlas .genotype-controls .mini-mechanism,
.aat-atlas .detail-panel .detail-facts div,
.aat-atlas .detail-panel .partner-block,
.aat-atlas .detail-panel .source-block,
.aat-atlas .detail-panel .source-block li { border-color: rgba(15,28,30,.10); }

/* Interaction-lens active icon in site petrol tints */
.aat-atlas .system-nav .system-link.active .system-icon {
  color: #0e4f4a; border-color: rgba(14,79,74,.42); background: rgba(14,79,74,.07);
}
.aat-atlas .source-link { border-bottom-color: rgba(14,79,74,.35); }

/* Mobile: lens chips + active pill in site tints */
@media (max-width: 760px) {
  .aat-atlas .system-nav .system-link.active {
    background: rgba(14,79,74,.07); border-color: rgba(14,79,74,.34);
  }
  .aat-atlas .body-stage { border-top-color: #dcd3bf; }
}

/* Requested atlas refinements: centred upper controls and a reversible light map. */
.aat-atlas .genotype-controls { justify-items: center; }
.aat-atlas .atlas-column-title {
  margin: 0 0 16px;
  color: #0f1c1e;
  font: 400 clamp(34px, 3.1vw, 44px)/1 var(--serif);
  letter-spacing: -.035em;
}
.aat-atlas .genotype-tabs {
  width: min(100%, 430px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.aat-atlas .genotype-tab { width: 100%; min-width: 0; }

/* Use the Foundation logo green for every selected control and map marker. */
.aat-atlas .genotype-tab.active,
.aat-atlas .genotype-tab[data-genotype="MZ"].active,
.aat-atlas .genotype-tab[data-genotype="ZZ"].active,
.aat-atlas .filter-chip.active {
  background: var(--petrol, #0e4f4a);
  border-color: var(--petrol, #0e4f4a);
  color: var(--paper, #f6f1e7);
}
.aat-atlas .filter-chip.active .chip-dot { color: var(--paper, #f6f1e7); }
.aat-atlas .hotspot.active .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.active .marker {
  fill: var(--petrol, #0e4f4a);
}
.aat-atlas .hotspot.active text:not(.site-label),
.aat-atlas .body-stage[data-background="cream"] .hotspot.active text:not(.site-label) {
  fill: var(--paper, #f6f1e7);
}

/* Keep each interaction row plain; only its leading icon is a pill. */
.aat-atlas .system-nav .system-link {
  margin: 0;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 28, 30, .10);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  grid-template-columns: 46px minmax(0, 1fr) auto;
}
.aat-atlas .system-nav .system-link:hover {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.aat-atlas .system-nav .system-link.active {
  background: transparent;
  border-color: rgba(15, 28, 30, .10);
  color: var(--ink);
}
.aat-atlas .system-nav .system-link.active small,
.aat-atlas .system-nav .system-link.active .system-count {
  color: var(--dim);
}
.aat-atlas .system-nav .system-icon {
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: var(--panel, #fbf7ee);
}
.aat-atlas .system-nav .system-link.active .system-icon {
  color: var(--paper, #f6f1e7);
  border-color: var(--petrol, #0e4f4a);
  background: var(--petrol, #0e4f4a);
}

@media (max-width: 760px) {
  .aat-atlas .system-nav .system-link {
    padding: 7px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    grid-template-columns: 40px auto;
  }
  .aat-atlas .system-nav .system-link.active {
    border-color: transparent;
    background: transparent;
  }
  .aat-atlas .system-nav .system-icon {
    width: 36px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

/* The right-hand headings must remain fully legible on the site's cream paper. */
.aat-atlas .detail-panel .detail-kicker,
.aat-atlas .detail-panel h3,
.aat-atlas .detail-panel .detail-summary,
.aat-atlas .detail-panel .detail-facts dt,
.aat-atlas .detail-panel .deep-label,
.aat-atlas .detail-panel .partner-block > span,
.aat-atlas .detail-panel .source-block > span { color: #000; }
.aat-atlas .detail-panel .detail-facts dd,
.aat-atlas .detail-panel .deep-copy { color: #202020; }

/* Double-clicking the middle background switches the map to the site paper. */
.aat-atlas .body-stage[data-background="cream"] {
  --ink: #0f1c1e;
  --muted: #111;
  --dim: #222;
  --bg-deep: #f6f1e7;
  --line: rgba(15, 28, 30, .18);
  --line-strong: rgba(15, 28, 30, .34);
  background: var(--paper, #f6f1e7);
}
.aat-atlas .body-stage { align-self: start; }
.aat-atlas .body-map {
  height: auto;
  aspect-ratio: 420 / 736;
  overflow: hidden;
}
.aat-atlas .body-stage[data-background="cream"] .body-map { background: transparent; }
.aat-atlas .body-stage[data-background="cream"] .anatomy-photo {
  filter: url(#atlas-cream-key) saturate(.9) contrast(1.04);
}
.aat-atlas .body-stage[data-background="cream"] .body-glow { opacity: .24; }
.aat-atlas .body-stage[data-background="cream"] .filter-row {
  background: rgba(246, 241, 231, .94);
  border-bottom-color: rgba(15, 28, 30, .18);
}
.aat-atlas .body-stage[data-background="cream"] .hotspot .leader {
  stroke: rgba(0, 0, 0, .58);
}
.aat-atlas .body-stage[data-background="cream"] .hotspot .site-label,
.aat-atlas .body-stage[data-background="cream"] .hotspot text { fill: #000; }
.aat-atlas .body-stage[data-background="cream"] .hotspot .marker {
  fill: var(--paper, #f6f1e7);
}
.aat-atlas .body-stage[data-background="cream"] .hotspot:hover .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.active .marker { fill: #000; }
.aat-atlas .body-stage[data-background="cream"] .hotspot:hover text:not(.site-label),
.aat-atlas .body-stage[data-background="cream"] .hotspot.active text:not(.site-label) { fill: var(--paper, #f6f1e7); }
.aat-atlas .body-stage[data-background="cream"] .hotspot:hover .site-label,
.aat-atlas .body-stage[data-background="cream"] .hotspot.active .site-label { fill: #000; }

@media (min-width: 1101px) {
  /* Extend the left/middle divider to the map top without moving the nav text. */
  .aat-atlas .system-nav {
    margin-top: -216px;
    padding-top: var(--atlas-left-nav-offset, 228px);
  }
  /* The detail copy moves into the space freed by the removed trap diagram. */
  .aat-atlas .detail-panel { margin-top: -132px; }
}

/* Keep the selected body number in logo green after all cream-mode rules. */
.aat-atlas .hotspot.active .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.active .marker {
  fill: var(--petrol, #0e4f4a);
}
.aat-atlas .hotspot.active text:not(.site-label),
.aat-atlas .body-stage[data-background="cream"] .hotspot.active text:not(.site-label) {
  fill: var(--paper, #f6f1e7);
}

@media (min-width: 761px) {
  /* Keep all evidence controls centred on one line in the equal middle column. */
  .aat-atlas .body-stage .filter-row {
    padding-inline: 4px;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .aat-atlas .body-stage .filter-chip {
    padding: 8px;
    gap: 6px;
    font-size: 9px;
  }
}

/* Readability pass: larger supporting type across all three atlas columns. */
.aat-atlas .atlas-column-title {
  font-size: clamp(38px, 3.4vw, 48px);
}
.aat-atlas .nav-label {
  font-size: 12px;
}
.aat-atlas .genotype-copy strong {
  font-size: 25px;
}
.aat-atlas #genotype-summary {
  font-size: 14px;
  line-height: 1.55;
}
.aat-atlas .genotype-caveat {
  font-size: 12px;
  line-height: 1.55;
}
.aat-atlas .genotype-tab b {
  font-size: 14px;
}
.aat-atlas .genotype-tab small {
  font-size: 11px;
}

.aat-atlas .system-link b {
  font-size: 14px;
}
.aat-atlas .system-link small {
  font-size: 12px;
}
.aat-atlas .system-count {
  font-size: 17px;
}

.aat-atlas .body-stage .filter-chip {
  padding: 8px 7px;
  gap: 4px;
  font-size: 11px;
}

.aat-atlas .detail-kicker {
  font-size: 12px;
}
.aat-atlas .detail-summary {
  font-size: 16px;
  line-height: 1.65;
}
.aat-atlas .detail-facts dt {
  font-size: 11px;
}
.aat-atlas .detail-facts dd {
  font-size: 14px;
  line-height: 1.55;
}
.aat-atlas .deep-toggle {
  font-size: 12px;
}
.aat-atlas .deep-label,
.aat-atlas .partner-block > span,
.aat-atlas .source-block > span {
  font-size: 11px;
}
.aat-atlas .deep-copy {
  font-size: 14px;
  line-height: 1.65;
}
.aat-atlas .partner-list span {
  font-size: 11px;
}
.aat-atlas .source-block li::before {
  font-size: 14px;
}
.aat-atlas .source-block a {
  font-size: 12px;
}
.aat-atlas .source-link {
  font-size: 13px;
}

/* Selected map markers use the same evidence colours as the filter pills. */
.aat-atlas .hotspot.established.active .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.established.active .marker {
  fill: var(--mint);
  stroke: var(--mint);
}
.aat-atlas .hotspot.supported.active .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.supported.active .marker {
  fill: var(--amber);
  stroke: var(--amber);
}
.aat-atlas .hotspot.investigational.active .marker,
.aat-atlas .body-stage[data-background="cream"] .hotspot.investigational.active .marker {
  fill: var(--coral);
  stroke: var(--coral);
}

/* Give the left column the same readable measure and hierarchy as the detail column. */
.aat-atlas #genotype-summary,
.aat-atlas .genotype-caveat {
  width: 100%;
  max-width: none;
}
.aat-atlas .genotype-copy .nav-label,
.aat-atlas .system-nav .nav-label {
  font-size: 13px;
}
.aat-atlas .genotype-copy strong {
  font-size: 27px;
}
.aat-atlas #genotype-summary {
  font-size: 16px;
  line-height: 1.55;
}
.aat-atlas .genotype-caveat {
  font-size: 14px;
  line-height: 1.55;
}
.aat-atlas .system-link b {
  font-size: 16px;
  line-height: 1.35;
}
.aat-atlas .system-link small {
  font-size: 14px;
  line-height: 1.45;
}
.aat-atlas .system-count {
  font-size: 18px;
}

@media (min-width: 1101px) {
  .aat-atlas .system-nav {
    padding-top: var(--atlas-left-nav-offset, 288px);
  }
}

/* Keep the former selection-halo area as an invisible marker hitbox. */
.aat-atlas .organ-focus {
  display: none;
}
.aat-atlas .hotspot:focus-visible {
  outline: none;
}
.aat-atlas .hotspot:focus-visible .marker {
  stroke-width: 3;
}

/* The enlarged interaction geometry must never paint an edge or pulse. */
.aat-atlas .hotspot .hit-marker {
  fill: none;
  stroke: none;
  opacity: 0;
  pointer-events: all;
}
.aat-atlas .hotspot .pulse,
.aat-atlas .hotspot.active .pulse,
.aat-atlas .hotspot.is-entering .pulse {
  display: none;
}
.aat-atlas .hotspot:focus {
  outline: none;
}
