/* Psychiatry Atlas — editorial science. These styles follow the established
   brand sheet; safety colors, navigation and regional content are unchanged. */
:root{--figure-paper:var(--white);--figure-ink:var(--ink);--figure-teal:var(--ink);--figure-sage:var(--accent);--figure-medicine:var(--warning-text)}
.page-head{padding-block:.35rem 1.65rem}.page-head .lead{line-height:1.7}.content>h2,.article-section h2{letter-spacing:-.018em}.article-section{padding-block:1.6rem}.article-panel{font-size:1rem;line-height:1.75}.article-panel>p,.article-subsection>p{max-width:68ch}.article-panel h3{font-family:var(--serif);font-size:1.35rem;font-weight:500;line-height:1.3;margin-block:1.6rem .8rem}.article-panel h4{font-size:1.05rem;line-height:1.4}.article-toggle{line-height:1.35}.article-contents{background:transparent;border:0;border-inline-start:1px solid var(--line);border-radius:0}.article-contents summary{font-family:var(--sans)}
.article-section,.article-subsection,.mechanism-layer,.learning-diagram,.science-group,[data-article-anchor]{scroll-margin-block-start:1.5rem}
.entry-list li{padding-block:1.25rem}.entry-list h2,.entry-list h3{font-family:var(--serif);font-size:1.35rem;font-weight:500;line-height:1.35}.entry-list p{font-size:.95rem;line-height:1.65}.category-group h3,.science-group h2{font-family:var(--serif)}.related-reading{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:1.6rem 0;box-shadow:none}.related-reading h2{font-size:1.45rem}.related-reading section{margin-block:1.1rem}.related-reading h3{font-family:var(--sans);font-size:1rem;font-weight:650}.related-reading li{margin-block:.5rem}.use-card,.comparison-card{background:transparent;box-shadow:none;border:0;border-block-start:1px solid var(--line);border-radius:0;padding:1.1rem 0}
.home-section{padding-block:clamp(1.8rem,4vw,3.4rem)}.section-heading{margin-bottom:1.4rem}.entrance h2{line-height:1.2}.collection-intro p{line-height:1.65}.topic-card{box-shadow:none}.science-feature{gap:clamp(1.5rem,4vw,3rem);align-items:start}.science-feature>div>p:not(.eyebrow){max-width:48ch}.science-feature figure{padding:0;background:transparent;border:0;box-shadow:none;border-radius:0}.science-feature figure>figcaption{padding:.8rem 0;font-size:.95rem}.science-feature .atlas-scene{padding:1rem}.trust p{line-height:1.75}
/* One surface, generous spacing and real HTML keys that reflow independently. */
.atlas-figure,.process-figure,.learning-diagram{container-type:inline-size;min-width:0;max-width:100%}.article-panel figure,.atlas-figure,.atlas-image{margin:1.5rem 0}.learning-diagram{margin-block:2rem;padding:1.4rem 0;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent}.figure-header{margin-bottom:1rem}.figure-kicker{font-family:var(--sans);font-size:.74rem;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);font-weight:650;margin:0 0 .55rem}.learning-diagram .figure-header h3,.learning-diagram .figure-header h4{font-family:var(--serif);font-size:clamp(1.4rem,2.5vw,1.7rem);font-weight:500;line-height:1.3;margin:0;max-width:40ch}.figure-step-title{font-family:var(--sans);font-weight:650;font-size:1rem;margin:0 0 .8rem}.atlas-figure-step+.atlas-figure-step{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.atlas-scene{display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem;background:var(--figure-paper);padding:clamp(.6rem,2vw,1.4rem);align-items:center;min-width:0}.atlas-art{min-width:0;max-width:23rem;width:100%;margin-inline:auto}.atlas-art>svg,.learning-diagram .atlas-art>svg{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:360/380;margin:0}.atlas-key{list-style:none;padding:0;margin:0;display:grid;gap:.9rem;min-width:0}.atlas-key li,.learning-diagram .atlas-key li{display:grid;grid-template-columns:1.65rem minmax(0,1fr);gap:.6rem;align-items:start;margin:0;font-family:var(--sans);line-height:1.5}.atlas-key-number{display:grid;place-items:center;min-width:1.65rem;min-height:1.65rem;border:1px solid var(--figure-teal);border-radius:50%;color:var(--figure-teal);font-size:.8rem;font-weight:700;line-height:1}.atlas-key strong{display:block;color:var(--ink);font-size:1rem;font-weight:650;line-height:1.4;margin-bottom:.2rem}.atlas-key p,.atlas-key .atlas-key-description,.atlas-key li>div>span{font-size:.95rem;color:var(--muted);line-height:1.55;margin:0}.atlas-figure figcaption,.atlas-image figcaption,.process-figure figcaption,.learning-diagram figcaption,.article-panel figcaption{font-family:var(--sans);font-size:1rem;line-height:1.65;color:var(--muted);border:0;background:transparent;margin:.85rem 0 0;padding:0}.learning-diagram figcaption strong{display:block;color:var(--ink);font-size:1.05rem;line-height:1.45;margin-bottom:.3rem}.learning-diagram figcaption>span{display:block}.article-panel .figure-description,.figure-description{border:0;margin:.65rem 0 0;padding:0}.figure-description summary{font-size:.9rem;font-family:var(--sans);min-height:44px;line-height:1.5;cursor:pointer;padding-block:.5rem}.figure-description p{font-size:.95rem;line-height:1.6;margin:.5rem 0}
@container(min-width:35rem){.atlas-scene{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.6rem}.atlas-key{gap:1.2rem}}
/* The tallest step reserves space. Inactive steps are inert, not clipped. */
.learning-diagram:not([data-diagram-enhanced]) [data-diagram-intro]{display:none}.diagram-stage{min-width:0}.diagram-stage>figure{margin:0 0 1.25rem}.learning-diagram[data-diagram-enhanced] .diagram-stage{display:grid;grid-template-columns:minmax(0,1fr)}.learning-diagram[data-diagram-enhanced] .diagram-stage>figure{grid-area:1/1;margin:0 0 1rem;min-width:0;align-self:start}.learning-diagram[data-diagram-enhanced] .diagram-stage>[aria-hidden=true]{visibility:hidden;pointer-events:none}
.diagram-controls{display:block;margin:.25rem 0 1rem}.diagram-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.5rem;align-items:center}.diagram-navigation>button:first-child{justify-self:start}.diagram-navigation>button:last-child{justify-self:end}.diagram-navigation [data-diagram-progress]{font-size:.9rem;font-weight:650;line-height:1.4;color:var(--muted);text-align:center}.diagram-playback{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-top:.45rem}.diagram-controls button,.atlas-image [data-figure-zoom],.figure-dialog-close{min-height:44px;padding:.5rem .65rem;font-family:var(--sans);font-size:.9rem;line-height:1.4;border:1px solid transparent;border-radius:var(--radius-pill);color:var(--teal);background:transparent;box-shadow:none}@media (hover:hover) and (pointer:fine){.diagram-controls button:hover:not(:disabled),.atlas-image [data-figure-zoom]:hover,.figure-dialog-close:hover{background:transparent;text-decoration:underline;text-underline-offset:.22em}}.diagram-controls button:active{background:transparent;text-decoration:underline;text-underline-offset:.22em}.diagram-controls button:disabled{color:var(--muted);border-color:transparent;background:transparent;opacity:.65}.diagram-controls [aria-pressed=true]{border-bottom-color:var(--teal);font-weight:700}.diagram-controls button:focus-visible,.atlas-image [data-figure-zoom]:focus-visible,.figure-dialog-close:focus-visible{outline:3px solid var(--teal);outline-offset:2px}.diagram-playback button{font-size:.85rem}.diagram-legend,.diagram-motion-note{font-size:.9rem;line-height:1.65;color:var(--muted)}.diagram-legend{margin-top:1rem;border-top:1px solid var(--line);padding-top:1rem}.learning-diagram details{margin:0;padding:.75rem 0;border-bottom:1px solid var(--line)}.learning-diagram details summary{font:600 .95rem/1.5 var(--sans);padding-block:.45rem;min-height:44px;color:var(--teal)}.learning-diagram details p,.learning-diagram details li{font-size:.95rem;line-height:1.65}.learning-diagram details ol{padding-left:1.35rem}
@container(max-width:25rem){.diagram-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}.diagram-navigation [data-diagram-progress]{grid-row:1;grid-column:1/-1}.diagram-navigation>button{grid-row:2}}
.diagram-viewport{width:100%;max-width:100%;padding:0;overflow:visible}.diagram-viewport img,.diagram-viewport svg{display:block;width:auto;min-width:0;max-width:100%;height:auto;margin-inline:auto}.atlas-image{min-width:0}.atlas-image img{width:auto;max-width:100%;height:auto}.atlas-image [data-figure-zoom]{margin-top:.5rem;text-decoration:underline}
@media(max-width:40rem){.article-panel{font-size:1rem}.science-feature{grid-template-columns:minmax(0,1fr)}.article-panel h3{font-size:1.3rem}.article-section{padding-block:1.35rem}.learning-diagram{padding:1.15rem 0}.diagram-viewport img,.diagram-viewport svg{min-width:0;max-width:100%;width:auto}.atlas-image img{max-width:100%}.article-contents{border-inline-start:0;border-block:1px solid var(--line);padding:.6rem 0}.figure-dialog{padding:.6rem}}
@media print{.learning-diagram[data-diagram-enhanced] .diagram-stage{display:block}.learning-diagram[data-diagram-enhanced] .diagram-stage>[data-diagram-step]{visibility:visible!important;display:block!important;margin:1.2rem 0}.learning-diagram [data-diagram-intro]{display:none!important}.atlas-art>svg,.learning-diagram .atlas-art>svg{max-height:none}.atlas-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:white}.atlas-image [data-figure-zoom],.figure-dialog{display:none!important}.learning-diagram{border:0}.figure-description{display:none}}
.atlas-scene-sequence{display:grid;gap:1.25rem}.atlas-target-example{min-width:0}.atlas-target-example>.figure-step-title{margin-bottom:.6rem}

.atlas-key-number{background:var(--accent);color:var(--ink);border-color:var(--ink)}
