.dossier .anatomy { padding: 64px max(4vw, 20px); border-top: 1px solid var(--rule); scroll-margin-top: 84px; }
.anatomy-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.anatomy-eyebrow { margin: 0 0 10px; color: var(--dim); font: 600 11px/1.6 var(--label); letter-spacing: .07em; text-transform: uppercase; }
.anatomy-heading h1, .anatomy-heading h2 { margin: 0 0 14px; font: 700 clamp(36px, 4vw, 56px)/1 var(--display); letter-spacing: -.025em; }
.anatomy-heading > div > p:last-child { margin: 0; color: var(--dim); max-width: 60ch; line-height: 1.6; }
.anatomy-action { display: inline-flex; flex-shrink: 0; align-items: center; gap: 18px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none; }
.anatomy-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: thin; }
.anatomy-tabs a { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--dim); font-size: 13px; font-weight: 600; }
.anatomy-tabs a[aria-selected=true] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.anatomy-tabs a:hover { border-color: var(--cream); }
.anatomy-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 28px 0; scroll-margin-top: 90px; }
.anatomy-panel[hidden] { display: none; }
.anatomy-figure { min-width: 0; margin: 0; }
.anatomy-figure > a { display: grid; place-items: center; min-height: 280px; border-radius: 16px; overflow: hidden; background: #fff; }
.anatomy-figure img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.anatomy-figure figcaption { margin-top: 12px; font-size: 11px; color: var(--dim); }
.anatomy-figure figcaption a { color: inherit; text-decoration: none; }
.anatomy-copy h3 { margin: 0 0 16px; font: 700 30px/1.15 var(--display); }
.anatomy-copy > p:not(.anatomy-eyebrow) { color: var(--dim); line-height: 1.6; font-size: 14px; }
.anatomy-board-list { list-style: none; padding: 0; margin: 24px 0; counter-reset: boards; }
.anatomy-board-list li { border-top: 1px solid var(--rule); counter-increment: boards; }
.anatomy-board-list a { position: relative; display: block; padding: 14px 0 14px 36px; text-decoration: none; color: var(--cream); }
.anatomy-board-list a::before { content: '0' counter(boards); position: absolute; left: 0; top: 16px; font: 500 11px/1 var(--label); color: var(--yellow); }
.anatomy-board-list strong { display: block; font-size: 14px; }
.anatomy-board-list span { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; line-height: 1.5; }
.anatomy-components { margin: 24px 0; font-size: 13px; }
.anatomy-components > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.anatomy-components dt { color: var(--cream); font-weight: 600; }
.anatomy-components dd { margin: 0; color: var(--dim); line-height: 1.5; }
.anatomy-documents { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.anatomy-documents a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 10px; font-size: 12px; text-decoration: none; color: var(--cream); }
.anatomy-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.anatomy-links a, .anatomy-teardown { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--yellow); font-size: 13px; text-underline-offset: 4px; }
.anatomy-foot { padding-top: 24px; border-top: 1px solid var(--rule); font-size: 11px; line-height: 1.7; color: var(--dim); }
.anatomy-foot p { max-width: 105ch; margin: 0 0 10px; }
.anatomy-foot a { color: inherit; text-underline-offset: 3px; }
.anatomy a:focus-visible, .anatomy-panel:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.anatomy-route { padding-top: 24px; color: var(--cream); font-family: var(--body); }
.anatomy-back { margin: 0 max(4vw, 20px); color: var(--dim); font-size: 13px; text-underline-offset: 4px; }
.anatomy-route .anatomy { border-top: 0; padding-top: 36px; }
.dossier .anatomy-preview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.anatomy-preview-image { display: block; overflow: hidden; border-radius: 16px; }
.anatomy-preview-image img { display: block; width: 100%; height: auto; }
.anatomy-preview .anatomy-heading { margin: 0; }
.anatomy-preview .anatomy-heading p { color: var(--dim); line-height: 1.6; }
.anatomy-preview-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 20px 0 24px; }
.anatomy-preview-boards a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--rule); color: var(--cream); text-decoration: none; font-size: 13px; }
.anatomy-preview .anatomy-preview-credit { margin: 16px 0 0; font-size: 11px; }
.anatomy-preview-credit a { color: inherit; }
@media (max-width: 760px) {
  .dossier .anatomy { padding-top: 36px; padding-bottom: 36px; }
  .anatomy-heading { align-items: flex-start; flex-direction: column; }
  .anatomy-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
  .anatomy-figure > a { min-height: 150px; }
  .anatomy-tabs a { padding: 0 14px; }
  .dossier .anatomy-preview { grid-template-columns: minmax(0, 1fr); }
}

.anatomy-figure > a { position: relative; cursor: zoom-in; }
.anatomy-enlarge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 16px; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; box-shadow: 0 2px 12px #0003; }
.anatomy-figure figcaption p { margin: 8px 0 0; max-width: 70ch; line-height: 1.6; }
.anatomy-permalink { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; color: var(--dim); font-size: 12px; text-underline-offset: 4px; }
.anatomy-workbench { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 24px 0 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.anatomy-workbench h3 { margin: 0 0 12px; color: var(--cream); font: 700 28px/1.2 var(--display); }
.anatomy-workbench p:last-child { max-width: 58ch; margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; }
.has-anatomy-inspector { overflow: hidden; }
.anatomy-inspector { box-sizing: border-box; width: min(1440px, calc(100vw - 48px)); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--rule); border-radius: 24px; background: var(--ink); color: var(--cream); font-family: var(--body); overflow: hidden; }
.anatomy-inspector[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.anatomy-inspector::backdrop { background: #000c; }
.anatomy-inspector-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; }
.anatomy-inspector-heading .anatomy-eyebrow { margin: 0 0 4px; }
.anatomy-inspector-heading h2 { margin: 0; color: var(--cream); font: 700 26px/1.2 var(--display); }
.anatomy-inspector button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--cream); font: 500 16px/1 var(--body); cursor: pointer; }
.anatomy-inspector button:hover:not(:disabled) { background: #ffffff12; border-color: var(--dim); }
.anatomy-inspector button:disabled { opacity: .3; cursor: default; }
.anatomy-inspector [data-inspector-close] { font-size: 26px; }
.anatomy-inspector :is(button,a,.anatomy-inspector-viewport):focus-visible { outline: 2px solid var(--yellow); outline-offset: -3px; }
.anatomy-inspector-viewport { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #eee; scrollbar-color: #777 #ddd; }
.anatomy-inspector-canvas { display: grid; place-items: center; width: max-content; min-width: 100%; height: max-content; min-height: 100%; }
.anatomy-inspector-canvas img { display: block; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }
.anatomy-inspector-viewport.is-zoomed { cursor: grab; }
.anatomy-inspector-viewport.is-zoomed:active { cursor: grabbing; }
.anatomy-inspector-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 16px 24px; }
.anatomy-zoom-controls { display: flex; align-items: center; gap: 8px; }
.anatomy-zoom-controls output { min-width: 50px; color: var(--cream); text-align: center; font: 500 12px/1 var(--label); font-variant-numeric: tabular-nums; }
.anatomy-inspector-tools a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-size: 12px; text-underline-offset: 4px; }
.anatomy-inspector-tools p { flex-basis: 100%; margin: 0; color: var(--dim); font-size: 11px; line-height: 1.5; }
@media (max-width: 760px) {
  .anatomy-workbench { align-items: flex-start; flex-direction: column; }
  .anatomy-inspector { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .anatomy-inspector-heading, .anatomy-inspector-tools { padding: 14px 16px; }
  .anatomy-inspector-tools { gap: 6px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
