/* The chapter shares the typography, navigation and reading shelf of the research atlas. */
.ai-chapter{--ae-ink:#f5f2df;--ae-leaf:#d0e9ac;--ae-ice:#9cdbd5;--ae-gold:#f4bb82;--ae-muted:#b8c9bb;--ae-line:#8bb8a13d;--ae-base:#0e1d1a;background:#101e1b;color:var(--ae-ink);isolation:isolate}
.ai-chapter *, .ai-chapter *::before,.ai-chapter *::after{box-sizing:border-box}
.ae-mast{position:relative;overflow:hidden;background:#172923;isolation:isolate}
.ae-mast-photo,.ae-mast::before,.ae-mast::after,.ae-hero-ink{position:absolute;pointer-events:none}
.ae-mast-photo{inset:0 0 0 32%;background:url('/media/places/ai.webp') 50% 4%/cover no-repeat;transform-origin:60% 40%;animation:ae-drift 23s ease-in-out infinite alternate;z-index:-4;filter:saturate(.83)}
.ae-mast::before{content:"";inset:0;z-index:-3;background:linear-gradient(90deg,#10241f 2%,#142a24 30%,#172b2194 51%,#13241b00 79%),linear-gradient(0deg,#13251fe0,transparent 34%,transparent 78%,#10201b48)}
.ae-mast::after{content:"";inset:0;z-index:-1;border-bottom:1px solid #b5d5b740}
.ae-hero-ink{width:min(40%,570px);height:auto;bottom:-12px;right:0;opacity:.65;z-index:-2}
.ae-ink-travel{stroke-dasharray:2 98;stroke-width:2.4;animation:ae-ink 6s linear infinite}
.ae-mast-inner,.ae-routes-wrap,.ae-study,.ae-evidence{margin:auto;width:min(100%,1536px);padding-inline:var(--pad)}
.ae-mast-inner{min-height:clamp(210px,18.5vw,292px);padding-top:24px;padding-bottom:27px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.ae-location{display:flex;align-items:center;gap:.75rem;font-size:.82rem;letter-spacing:.025em;color:#e0e9d9}
.ae-location a{display:inline-flex;gap:.5em;align-items:center;min-height:40px}.ae-location .ico{width:1.05em;height:1.05em}
.ae-mast h1{font:500 clamp(3.65rem,6.3vw,7.2rem)/.96 var(--serif);letter-spacing:-.055em;text-shadow:0 1px 24px #0a190f36;margin:.09em 0}
.ae-mast h1 em{font-weight:400;color:#e9f5d4}
.ae-mast-question{font:500 clamp(1.1rem,1.45vw,1.55rem)/1.22 var(--serif);color:#e4ecde;letter-spacing:.005em}
.ae-photo-credit{position:absolute;bottom:8px;right:var(--pad);color:#f3f6e6;font-size:.75rem;text-shadow:0 1px 5px #000}
.ae-routes-wrap{padding-block:0;border-bottom:1px solid var(--ae-line)}
.ae-route-nav{display:flex;gap:clamp(12px,4vw,75px)}
.ae-route-nav a{position:relative;display:inline-flex;align-items:center;gap:.7em;min-height:57px;line-height:1.2;padding:9px 0;color:var(--ae-muted);font-size:.94rem}
.ae-route-nav a[aria-current]{color:var(--ae-leaf);font-weight:bold}
.ae-route-nav a[aria-current]::after,.ae-step-nav a[aria-current]::after{content:"";position:absolute;bottom:-1px;height:2px;background:currentColor;left:0;right:0}
.ae-route-nav svg{width:24px;height:24px;flex:none}.ae-route-nav a:hover,.ae-step-nav a:hover{color:var(--ae-ink)}
.ae-study{padding-top:clamp(18px,2.1vw,36px);padding-bottom:22px}
.ae-section-title{display:flex;justify-content:space-between;align-items:center;gap:14px}
.ae-byline,.ae-plate-caption,.ae-sample-status{font:500 .79rem/1.4 var(--sans);color:var(--ae-leaf);letter-spacing:.045em}
.ae-byline{display:inline-block;border-bottom:1px solid #b4d7a14f}
.ae-byline strong,.ae-byline cite{display:block;letter-spacing:normal;line-height:1.38}
.ae-byline strong{font-size:.94rem;color:var(--ae-leaf);font-weight:650}
.ae-byline cite{font-size:.88rem;color:var(--ae-muted);font-style:italic}
.ae-byline:focus-visible{outline:2px solid var(--ae-leaf);outline-offset:3px}
.ae-section-title h2,.ae-method h2,.ae-evidence .research-shelf h2{font:500 clamp(2.4rem,3.45vw,3.9rem)/1.04 var(--serif);letter-spacing:-.045em;margin:.10em 0}
.ae-section-title p{color:#cfdbce;max-width:62ch;font-size:1rem;line-height:1.4;margin-top:3px}.ae-play{min-width:87px;flex:none}
.ae-step-nav{display:flex;gap:clamp(12px,2vw,36px);align-items:center;margin:.45rem 0 .65rem}
.ae-step-nav a{position:relative;display:inline-flex;align-items:center;color:#b6c8b9;min-height:43px;font-size:.88rem}
.ae-step-nav a[aria-current]{color:var(--ae-gold)}
.ai-chapter:not([data-case=monitoring]) .ae-section-title{margin-bottom:17px}
.ae-instrument{overflow:hidden;border:1px solid var(--ae-line);border-radius:15px;background:#102722;isolation:isolate;min-width:0;scroll-margin-top:14px}
.ae-poster{display:grid;grid-template-columns:45% 1fr;align-items:center;min-height:280px;gap:24px;padding:15px}.ae-poster img{height:230px;width:100%;object-fit:cover}.ae-poster strong{font:1.8rem var(--serif)}
.ae-study-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px}
.ai-chapter .chip,.ae-study-actions a{min-height:44px;line-height:1.2}
.ae-study-actions a{display:inline-flex;align-items:center;gap:.5em;font-size:.88rem;margin-left:auto;color:var(--ae-muted)}
.ae-evidence{border-top:1px solid var(--ae-line);padding-block:clamp(22px,3vw,46px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(25px,8vw,135px)}
.ae-evidence .research-shelf{position:static;max-height:none;max-width:none;width:auto;background:transparent;border:0;border-left:1px solid var(--ae-line);border-radius:0;padding:0 0 0 clamp(15px,2.2vw,36px);overflow:visible}
.ae-evidence .research-shelf h2,.ae-method h2{font-size:clamp(1.8rem,2.25vw,2.5rem);margin:0 0 .55em}
.ae-method p{color:#d0dccf;max-width:61ch;margin:.7rem 0}
.ae-method details,.ae-local-method{margin-top:1rem;border-top:1px solid var(--ae-line);padding-top:.5rem}
.ae-method summary,.ae-local-method summary{cursor:pointer;min-height:44px;align-content:center;color:var(--ae-leaf)}
.ae-method a{color:var(--ae-leaf);text-decoration:underline;text-underline-offset:.2em}
.ae-window-example{max-width:33rem;margin:1rem 0}
.ae-window-example ol{display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem;padding:0;list-style:none}
.ae-window-example li{padding:.55rem .1rem;text-align:center;border:1px solid var(--ae-line);border-radius:.3rem;font:500 .9rem/1.25 var(--sans);color:var(--ae-ink)}
.ae-window-example li:first-child{border-color:var(--ae-leaf);background:#355344}
.ae-window-example li:last-child{border-style:dashed;color:var(--ae-muted)}
.ae-window-example figcaption{margin-top:.5rem;color:var(--ae-muted);font-size:.9rem;line-height:1.45}
.ae-method .ae-figure{margin:1rem 0}.ae-figure img{border-radius:7px;background:#f7f5ee;max-width:100%;width:auto;max-height:360px}.ae-figure figcaption{font-size:.82rem;line-height:1.45;color:var(--ae-muted);margin-top:.4rem}
.ai-chapter[data-case=bossou] .ae-mast-photo{background-image:url('/media/ai-atlas/bossou.svg');background-color:#15352e;background-size:auto 123%;background-position:73% 50%;filter:saturate(.97)}
.ai-chapter[data-case=practice] .ae-mast-photo{background-image:url('/media/film/desk.webp');background-position:55% 47%;filter:saturate(.7)}
@keyframes ae-drift{from{transform:scale(1.015)}to{transform:scale(1.058) translateX(-.35%)}}@keyframes ae-ink{to{stroke-dashoffset:-100}}
.motion-paused .ai-chapter *,.film-suspended .ai-chapter *,.page-hidden .ai-chapter *,.ai-chapter[data-animating=false] .ae-mast-photo,.ai-chapter[data-animating=false] .ae-ink-travel{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.ai-chapter *,.ai-chapter *::before,.ai-chapter *::after{animation:none!important;transition:none!important}}
@media(max-width:740px){
.ae-mast-inner{min-height:174px;padding-top:10px;padding-bottom:15px}.ae-mast-photo{inset:0 -6% 0 20%;background-position:50% 30%}.ae-mast::before{background:linear-gradient(90deg,#11251fe8 3%,#11251fd4 32%,#11251f24 84%),linear-gradient(0deg,#102119e6,transparent 55%)}.ae-mast h1{font-size:clamp(3.45rem,11.5vw,4.6rem)}.ae-location{font-size:.76rem}.ae-location a{min-height:36px}.ae-mast-question{max-width:53%;font-size:1.05rem}.ae-photo-credit{right:13px;font-size:.7rem}.ae-routes-wrap{padding-inline:var(--pad)}.ae-route-nav{gap:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ae-route-nav a{min-height:54px;font-size:.82rem;gap:5px;max-width:100%}.ae-route-nav svg{width:17px;height:17px}.ae-study{padding-top:16px}.ae-section-title{align-items:flex-start}.ae-section-title h2{font-size:2.35rem}.ae-section-title p{font-size:.96rem}.ae-section-title .ae-play{margin-top:4px;min-width:67px;padding-inline:9px}.ae-step-nav{gap:13px;margin:.24rem 0 .45rem}.ae-step-nav a{font-size:.82rem;min-height:44px}.ae-evidence{grid-template-columns:1fr;gap:22px}.ae-evidence .research-shelf{border:0;border-top:1px solid var(--ae-line);padding:22px 0 0}.ae-hero-ink{width:46%;bottom:0}.ae-instrument{border-radius:12px}
}
@media(max-width:370px){.ai-chapter{--pad:13px}.ae-route-nav a{font-size:.80rem}.ae-route-nav svg{display:none}.ae-step-nav{gap:10px}.ae-study-actions a{margin-left:0}.ae-section-title h2{font-size:2.05rem}}
.inset-only .ai-chapter .ae-mast,.inset-only .ai-chapter .ae-routes-wrap,.inset-only .ai-chapter .ae-evidence,.inset-only .ai-chapter .ae-study-actions{display:none}.inset-only .ai-chapter .ae-study{display:block}

@media(max-width:430px){
.ae-section-title{display:block;position:relative}.ae-section-title .ae-byline{max-width:calc(100% - 79px);min-height:30px;align-content:center;border-bottom:0}.ae-section-title h2{margin-top:.15em;font-size:clamp(1.95rem,8.7vw,2.35rem)}.ae-section-title .ae-play{position:absolute;top:-3px;right:0;min-height:36px;min-width:63px;margin:0}.ae-section-title p{max-width:45ch}
}
@media(max-height:500px) and (min-width:550px){
.ae-mast-inner{min-height:100px;padding-block:5px}.ae-mast .ae-location{display:none}.ae-mast h1{font-size:3.1rem}.ae-mast-question{font-size:.98rem}.ae-route-nav a{min-height:44px}.ae-study{padding-top:7px}.ae-section-title h2{font-size:2rem}.ae-section-title p{font-size:.89rem}.ae-step-nav{margin:0}.ae-step-nav a{min-height:38px}.ae-mast-photo{background-position:50% 5%}
}

.ai-chapter{position:relative}
.ae-route-ink{position:absolute;width:clamp(155px,22vw,335px);height:auto;right:5%;bottom:8%;z-index:-2;color:#cde9bc;opacity:.57}
.ae-observation-passage{position:absolute;inset:0 auto auto 0;z-index:5;pointer-events:none;overflow:visible;max-width:100%}
.ae-observation-passage path{fill:none;stroke:#f1c794;stroke-width:1.2;opacity:.74}
.ae-observation-passage circle{fill:#e4f4bd;stroke:#294b3e;stroke-width:1.25}
.motion-paused .ae-observation-passage,.page-hidden .ae-observation-passage{visibility:hidden}
[data-ai-saved] .ae-poster p{visibility:hidden}
@media(max-width:640px){
 .ae-mast-inner{min-height:139px;padding-block:7px 17px}
 .ae-mast h1{font-size:clamp(2.85rem,12vw,4rem);margin:.03em 0}
 .ae-mast-question{max-width:66%;font-size:1.02rem}
 .ae-mast-photo{background-image:url('/media/places/ai-sm.webp');inset:0 -3% 0 17%;background-position:54% 29%}
 .ae-location a{min-height:32px}
 .ae-photo-credit{font-size:.66rem;bottom:5px}
 .ae-route-nav a{min-height:48px;padding:6px 0}.ae-step-nav{margin:.12rem 0 .25rem}
 .ae-study{padding-top:10px}.ae-section-title h2{margin:0}.ae-section-title p{font-size:.91rem;line-height:1.32}
 .ae-route-ink{width:30%;right:4%;bottom:12%}
}
@media(max-height:500px) and (min-width:550px){
 .ae-mast-inner{min-height:88px}.ae-route-nav a{min-height:41px}
}
@media(prefers-reduced-motion:reduce){.ae-observation-passage{display:none}}
.ae-poster img{height:auto;max-height:290px;object-fit:contain;border-radius:8px}
.ae-plain h3{font:500 1.7rem var(--serif);margin-bottom:.35rem}
@media(max-width:640px){.ae-poster{grid-template-columns:1fr;gap:8px;min-height:180px}.ae-poster img{width:100%;max-height:230px}.ae-poster p{font-size:.86rem}}
[data-ai-saved] .ae-poster img{visibility:hidden}

/* Layout also follows the available reading width when the page is magnified. */
body:has(.ai-chapter) .shellbar{container:ai-header / inline-size}
.ai-chapter{container:ai-reading / inline-size}
@container ai-header (max-width:575px){
 .shellbar>.brand{font-size:.96rem;gap:5px;white-space:nowrap}
 .brand .netmark{width:26px;height:27px}
 .shellbar .topnav{gap:2px;flex-shrink:0}
 .topnav .nav-divider,.topnav .nav-control>span{display:none}
 .topnav .nav-control{position:relative;flex-direction:column;width:37px;min-height:44px;gap:1px;padding:2px 0}
 .topnav .nav-control small{display:block;font-size:.65rem;line-height:1.1}
 .topnav .nav-control .ico{width:17px;height:17px}
 .topnav .nav-control i{position:absolute;right:0;top:1px;font-size:.56rem}
 .topnav .nav-control.nav-atlas{width:45px;min-height:44px;padding:2px;border-radius:10px}
 .topnav .nav-atlas .ico{width:20px;height:20px}
 .topnav .sound-control,.topnav .motion-control{min-width:30px;width:30px;height:44px;margin:0;padding:0;border:0}
 .topnav .motion-control{width:auto;min-width:43px;gap:3px}
}
@container ai-header (max-width:310px){.brand-com{display:none}}
@container ai-reading (max-width:640px){
 .ae-mast-inner,.ae-routes-wrap,.ae-study,.ae-evidence{padding-inline:clamp(12px,4cqw,20px)}
 .ae-route-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .ae-route-nav a{font-size:.82rem;min-height:46px;line-height:1.2;gap:4px}
 .ae-route-nav svg{width:16px;height:16px}
 .ae-evidence{grid-template-columns:minmax(0,1fr);gap:20px}
 .ae-evidence .research-shelf{border-left:0;padding-left:0}
 .ae-section-title h2{font-size:clamp(1.9rem,9cqw,2.65rem)}
 .ae-mast h1{font-size:clamp(2.85rem,13cqw,4.05rem)}
}
