.day-night-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-left:auto;font-size:1rem}.day-night-controls button{min-height:48px;padding:.55rem .9rem;background:var(--paper);color:var(--ink);border:2px solid var(--purple);border-radius:3px}.day-night-controls button[aria-pressed=true]{background:var(--purple);color:var(--paper);font-weight:700}.coherence-world{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;margin-block:1.5rem}.coherence-world figure{margin:0}.coherence-world img{width:100%;height:auto;border-radius:0;aspect-ratio:3/2;object-fit:cover}.coherence-world details{border-block:1px solid var(--line);padding:1rem 0;margin:1rem 0}.coherence-world summary{font-weight:700;cursor:pointer;min-height:44px}.coherence-night-question{display:none}html[data-display-cycle=night] .coherence-night-question{display:block}
html[data-appearance=dark]{--purple:#e0c9ff;--ink:#f5f3fa;--muted:#d7d3e1;--paper:#18202d;--cream:#242d3d;--line:#657080;--forest:#c7e5d9;--deep:#111924;color-scheme:dark}html[data-appearance=dark] body{background:var(--paper);color:var(--ink)}html[data-appearance=dark] :is(.site-header,.mobile-nav,.reading-bar,.legal-box,.an-section,.an-soft,.an-page-head,.nh-case,.nh-entry-grid article,.nh-publication,.nh-further a,.manifest-author,.consent-box,.journey-panel,.family-series,.page-continuation,.nh-hero,.life-milieu){background:var(--paper)!important;color:var(--ink)}html[data-appearance=dark] :is(h1,h2,h3,h4,p,li,figcaption,summary,dt,dd,label,.an-kicker,.eye,.an-meta,.nh-hero h1){color:inherit}html[data-appearance=dark] :is(input,textarea,select){background:var(--cream);color:var(--ink)}html[data-appearance=dark] .brand img,html[data-appearance=dark] .footer-logo{background:#fff;padding:4px}html[data-appearance=dark] :is(.button,.nav-action){background:#e0c9ff;color:#18202d}html[data-appearance=dark] :is(.button-outline,.text-link){color:var(--purple)}html[data-appearance=dark] .consent{background:#101825cc}html[data-appearance=dark] .coherence-world{background:var(--paper);color:var(--ink)}
@media(max-width:800px){.coherence-world{grid-template-columns:1fr}.day-night-controls{margin-left:0}.reading-inner{flex-wrap:wrap}}@media print{.day-night-controls{display:none}html[data-appearance=dark]{--ink:#302f38;--muted:#5b5b65;--paper:#fff;--cream:#f3efe6;--purple:#403b59;color-scheme:light}}

.coherence-world[data-anatomy=nerves] img{object-fit:contain;background:#fff;aspect-ratio:auto;height:600px;max-height:70vh}.sensory-path{display:grid;gap:.65rem;padding-left:1.6rem}.sensory-path li{padding:.75rem;border:1px solid var(--line)}html[data-appearance=dark] :is(.an-choices button,.nh-focus-choices button,.family-controls button,.focus-explorer-controls button,.home-topic-choices button,.home-position-choices button,.home-moment-choices button){background:var(--paper);color:var(--ink)}html[data-appearance=dark] button[aria-pressed=true]{background:#e0c9ff!important;color:#18202d!important}html[data-appearance=dark] :is(.family-observation-grid article,.institution-field a,.entry-fork a,.nh-thesis){background:var(--cream)!important;color:var(--ink)}html[data-appearance=dark] .nh-thesis .button{color:#18202d}
html[data-appearance=dark] :is(.legal-page main,.page-hero,.editorial-section,.opening-statement,.world-card,.milieu-section,.pathways,.meet-section,.meet-card,.life-explorer,.explorer-panel,.self-section,.self-form,.research-principles,.home-claim,.home-journey,.home-steps,.home-academy,.home-people,.focus-topic-panel,.milieu-field,.expose-download,.expose-role-grid>label:has(input:checked)){background:var(--cream)!important;color:var(--ink)}
html[data-appearance=dark] :is(.support-field,.support-nodes button){background:var(--cream);color:var(--ink)}
html[data-appearance=dark] :is(.contact-surface,.meet-card-accent){background:#403b59;color:#fff}
html[data-appearance=dark] .entry-icon{background:var(--cream)!important;color:var(--ink)!important}
html[data-appearance=dark] .skip-link{background:#fff;color:#403b59}
html[data-appearance=dark] .reading-inner [data-read-start]{background:#e0c9ff;color:#18202d}
html[data-appearance=dark] .consent-box button{background:var(--cream);color:var(--ink)}
html[data-appearance=dark] .consent-box .yes{background:#e0c9ff;color:#18202d}
.day-night-controls span{flex:none}.day-night-controls button{white-space:normal;line-height:1.5;font-size:1rem;min-width:4.5rem;max-width:100%}.reading-inner>*{min-width:0}.reading-inner select{max-width:100%}.day-night-controls{max-width:100%}
@media(max-width:550px){.day-night-controls{flex-basis:100%;border-top:1px solid var(--line);padding-top:.75rem}.coherence-world[data-anatomy=nerves] img{height:auto;max-height:70vh;width:auto;max-width:100%;margin-inline:auto}.reading-inner label{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.nh-focus,.focus-window{transition:none}}

.day-night-controls>div{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.day-night-controls>div+div{margin-left:.75rem}
html[data-appearance=dark] :is(.continuity-figure,.embodiment-figure,.embodiment-scale-grid article,.embodiment-examples .an-depth){background:var(--paper);color:var(--ink)}
html[data-appearance=dark] :is(.continuity-era,.continuity-name,.embodiment-axis-label,.embodiment-axis-caption,.embodiment-time-labels){fill:var(--ink)}
html[data-appearance=dark] .continuity-note{fill:var(--ink);stroke:var(--paper)}
html[data-appearance=dark] .continuity-milieu{fill:var(--forest);stroke:var(--paper)}
html[data-appearance=dark] .continuity-environment{stroke:var(--forest);opacity:.5}
html[data-appearance=dark] .embodiment-focus-label{fill:#ffd094}
html[data-appearance=dark] .embodiment-focus{stroke:#ffd094}
html[data-appearance=dark] .embodiment-time{stroke:var(--muted);color:var(--muted)}
html[data-appearance=dark] .embodiment-x-node{fill:var(--purple)}
html[data-appearance=dark] .embodiment-y-node{fill:var(--forest)}
html[data-appearance=dark] .embodiment-z-node{fill:#ffd094;stroke:var(--paper)}
html[data-appearance=dark] :is(.embodiment-examples .an-depth a,.embodiment-scale-grid .an-kicker){color:var(--purple)}
html[data-appearance=dark] .mobile-nav a:last-child{background:var(--purple);color:var(--paper)}
html[data-appearance=dark] :is(.continuity-figure figcaption,.embodiment-figure figcaption){color:var(--muted)}
html[data-appearance=dark] :is(.embodiment-x.embodiment-open,.embodiment-mobile .embodiment-x.embodiment-open){stroke:var(--purple)}
html[data-appearance=dark] :is(.embodiment-y.embodiment-open,.embodiment-mobile .embodiment-y.embodiment-open){stroke:var(--forest)}
@media(max-width:550px){.day-night-controls>div+div{margin-left:0}.day-night-controls>div{flex-basis:100%}}
.reading-inner .day-night-controls button{background:var(--paper);color:var(--ink)}
.reading-inner .day-night-controls button[aria-pressed=true]{background:var(--purple);color:var(--paper)}

/* Explicit contrast for action types; appearance and scene time stay independent. */
html[data-appearance=dark] :is(.button,.nav-action){background:#e0c9ff;color:#18202d;border-color:#e0c9ff}
html[data-appearance=dark] :is(.button-outline,.nh-thesis .button-outline){background:transparent;color:#e0c9ff;border-color:#e0c9ff}
html[data-appearance=dark] :is(.button-outline:hover,.nh-thesis .button-outline:hover){background:#34314a;color:#f5f3fa}
html[data-appearance=dark] .desktop-nav .nav-action:hover{background:#f0e4ff;color:#18202d}
html[data-appearance=dark] :is(.contact-content a,.focus-source,.an-depth a,.an-depth summary,.nh-selected,.nh-question){color:#e0c9ff}
html[data-appearance=dark] :is(.embodiment-diagram text,.continuity-figure text){fill:#f5f3fa}
html[data-appearance=dark] :is(.embodiment-focus-label,.embodiment-mobile .embodiment-focus-label){fill:#ffd094}
html[data-appearance=dark] :is(.embodiment-reading,.embodiment-examples,.nh-origin-disclosure,.family-notes){color:#f5f3fa}
html[data-appearance=dark] .nh-thesis blockquote{color:#f5f3fa}
html[data-appearance=dark] :is(.reading-inner button,.reading-inner select,.day-night-controls button,.focus-explorer-controls button,.focus-topic-panel button){border-color:#bfa6e3}
html[data-appearance=dark] :is(.brand img,.footer-logo){background:transparent;padding:0}
html[data-appearance=dark] :focus-visible{outline:3px solid #ffd094;outline-offset:4px}
:root{--night-scene-surface:#151e2d}
html[data-display-cycle=night] :is(.nh-scene,.focus-scene.focus-illustrated){background:var(--night-scene-surface)}
html[data-display-cycle=night] :is(.nh-scene img,.focus-illustrated img){filter:none;opacity:1}
.source-help{padding:1rem 1.25rem;background:var(--cream);border-left:4px solid var(--purple);margin-block:1.5rem;font-size:1rem}
.source-help a{text-decoration:underline;text-underline-offset:3px}
html[data-appearance=light] .desktop-nav .nav-action[aria-current]{background:#403b59;color:#fff}
html[data-appearance=dark] .form-actions .clear-button{color:#e0c9ff;border-color:#bfa6e3;background:transparent}
html[data-appearance=dark] .form-actions .button{color:#18202d;background:#e0c9ff}

.brand{width:clamp(180px,22vw,250px);min-width:0}.brand img{width:100%;height:auto;aspect-ratio:3/1;object-fit:contain;background:transparent;padding:0}.footer-logo{height:auto;aspect-ratio:3/1;background:transparent;padding:0}
@media(max-width:550px){.brand{width:190px}.brand img{min-width:0}.nav-shell{gap:12px}}
html[data-appearance=light] .an-choices button[aria-pressed=true]{background:#403b59;color:#fff;border-color:#403b59}

.external-link-address{margin:.4rem 0 1rem;font-size:.9rem;max-width:100%;}.external-link-address summary{cursor:pointer;text-decoration:underline;}.external-link-address input{display:block;box-sizing:border-box;width:100%;max-width:48rem;padding:.65rem;margin:.5rem 0;font:inherit;color:inherit;background:transparent;border:1px solid currentColor;}.external-link-address button{padding:.5rem .8rem;font:inherit;background:transparent;color:inherit;border:1px solid currentColor;border-radius:.4rem;cursor:pointer;}.external-link-address [role=status]{display:block;margin-top:.4rem;}

/* Fixed light surfaces inside the continuity graphic retain dark labels. */
html[data-appearance=dark] .continuity-figure .continuity-name{fill:#302f38}
html[data-appearance=dark] .continuity-figure .continuity-milieu{fill:#29453e;stroke:#fbfaf6}
