/* Chapter 9 follows the editorial geometry documented in DESIGN_PATTERNS.md. */
.ch9{--ch9-accent:#627f86;--ch9-soft:#edf2f2;--ch9-ink:#273943}
.ch9 a:focus-visible,.ch9 button:focus-visible{outline-color:var(--ch9-accent)}
.ch9-inner{padding-inline:60px}
.ch9-introduction,.ch9-toc{margin-inline:auto}
.ch9-toc-head>span,.ch9-major-heading>span{color:var(--ch9-accent)}
.ch9-toc-number{background:var(--ch9-accent)}
.ch9-toc li,.ch9-toc li:last-child{border-color:#e5eded}
.ch9-toc h3 a:hover,.ch9-toc h3 a:focus-visible{text-decoration-color:var(--ch9-accent)}
.ch9-section{width:100%;max-width:1040px;margin:0 auto 100px}
.ch9-section p,.ch9-elements-source-text,.ch9-requirement-list{max-width:840px}
.ch9-section>p,.ch9-section>.ch9-elements-source-text,.ch9-elements-organization p,.ch9-compact-section p,.ch9-methodology-editorial>p,.ch9-error>p,.ch9-grid-note p{font:400 22px/1.62 Literata,Georgia,serif;color:var(--ch9-ink);overflow-wrap:normal}
.ch9-section>p,.ch9-section>.ch9-elements-source-text{margin-bottom:28px}
.ch9-section h2:not(.ch9-topic-heading),.ch9-section h2.ch9-topic-heading,.ch9-section .ch9-major-heading h2,.ch9-section .ch9-compact-section h2{max-width:1040px;color:var(--ch9-ink);font:800 clamp(39px,4.6vw,61px)/1.1 Cygre,sans-serif;letter-spacing:-.04em}
.ch9-major-heading{margin:clamp(95px,10vw,160px) 0 34px;max-width:1040px}
.ch9-major-heading:first-child{margin-top:0}
.ch9-major-heading>span,.ch9-section-rubric{display:block;color:var(--ch9-accent);font:800 13px/1.3 Cygre,sans-serif;letter-spacing:.13em;text-transform:uppercase}
.ch9-section .ch9-major-heading h2{margin:17px 0 0}
.ch9-section>h3,.ch9-elements-organization h3{max-width:900px;margin:65px 0 24px;font:800 clamp(28px,2.6vw,36px)/1.18 Cygre,sans-serif;letter-spacing:-.025em;color:var(--ch9-ink)}
.ch9-requirement-list{margin:22px 0 62px;padding-left:25px;list-style:disc;border:0}
.ch9-requirement-list li{padding:0 0 14px 4px;border:0;font:400 22px/1.62 Literata,Georgia,serif}
.ch9-requirement-list li::before{content:none}
.ch9-requirement-list li::marker{color:var(--ch9-accent)}
.ch9-elements-source-text{margin-top:0}
.ch9-elements-organization{max-width:1040px;margin:85px 0 0}
.ch9-elements-organization h3{margin-top:70px}
.ch9-compact-section{margin:95px 0;scroll-margin-top:150px}
.ch9-section .ch9-compact-section h2{margin:17px 0 34px}
.ch9-compact-section p{max-width:840px}
.ch9-message-questions{max-width:840px;margin:30px 0 34px;padding-left:26px;color:var(--ch9-ink);font:400 22px/1.62 Literata,Georgia,serif}
.ch9-message-questions li{padding:0 0 14px 4px}
.ch9-message-questions li::marker{color:var(--ch9-accent)}
.ch9-message-questions strong{font-weight:800}
.ch9-message-section a{font-weight:800;text-decoration-color:var(--ch9-accent);text-decoration-thickness:3px;text-underline-offset:5px}
.ch9-grid-note{box-sizing:border-box;width:calc(100% + 75px);max-width:1115px;margin:55px 0 0 -75px;padding:52px 75px;border:0;background:var(--ch9-soft)}
.ch9-section .ch9-grid-note h3{margin:0 0 18px}
.ch9-grid-note p{max-width:840px;margin:0 0 18px}
.ch9-sales-emphasis{width:calc(100% + 75px);max-width:1115px;margin:55px 0 55px -75px;padding:55px 75px;background:var(--ch9-soft)}
.ch9-section .ch9-sales-emphasis p{max-width:840px;font:400 22px/1.62 Literata,Georgia,serif;color:var(--ch9-ink)}
.ch9-section h2.ch9-topic-heading{margin:clamp(95px,10vw,160px) 0 34px}
.ch9-feature-quote{border-color:var(--ch9-accent)}
.ch9-section .ch9-criteria-intro>p{max-width:840px;font:400 22px/1.62 Literata,Georgia,serif}
.ch9-story-steps{max-width:840px;margin:30px 0 72px;padding-left:29px;color:var(--ch9-ink);font:400 22px/1.62 Literata,Georgia,serif}
.ch9-story-steps li{padding:0 0 18px 5px}
.ch9-story-steps li::marker{color:var(--ch9-accent);font-weight:800}
.ch9-principles-next{margin-top:36px}
.ch9-principles-next a{font-weight:800;text-decoration-color:var(--ch9-accent);text-decoration-thickness:3px;text-underline-offset:5px}
.ch9-criteria-intro{margin-top:clamp(95px,10vw,160px)}
.ch9-criterion-cover,.ch9-principles{width:calc(100% + 240px);max-width:none;margin-left:-120px}
.ch9-principles{padding:clamp(36px,5vw,72px)}
.ch9-principles .ch9-section-rubric{color:#becfce;margin-bottom:17px}
.ch9-section .ch9-principles h2{color:#fff;margin:0 0 28px}
.ch9-section .ch9-principles-lead{max-width:840px;color:#eee;font:400 22px/1.55 Literata,Georgia,serif;margin:0 0 52px}
.ch9-section .ch9-principles-swipe{display:none}
.ch9-principles-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:38px 35px}
.ch9-principle{grid-column:span 2}
.ch9-principle:nth-child(4){grid-column:2/span 2}
.ch9-principle:nth-child(5){grid-column:4/span 2}
.ch9-methodology-editorial{max-width:1040px}
.ch9-section .ch9-error>p{max-width:840px;font:400 22px/1.62 Literata,Georgia,serif}
.ch9-section .ch9-error .ch9-source-note{font:400 15px/1.5 Literata,Georgia,serif}
.ch9-methodology-editorial>.ch9-lead{font-size:22px}
.ch9-error-heading>span{color:var(--ch9-accent)}
.ch9-final-check{box-sizing:border-box;max-width:1040px;margin:80px 0 100px;padding:46px 54px;background:var(--ch9-soft)}
.ch9-section .ch9-final-check h3{max-width:850px;margin:13px 0 22px;color:var(--ch9-ink);font:800 clamp(30px,3.3vw,42px)/1.14 Cygre,sans-serif;letter-spacing:-.03em}
.ch9-final-check p,.ch9-final-check li{max-width:840px;color:var(--ch9-ink);font:400 20px/1.55 Literata,Georgia,serif}
.ch9-final-check p{margin:0 0 22px}
.ch9-final-check p:last-child{margin:24px 0 0}
.ch9-final-check ol{margin:0;padding-left:28px}
.ch9-final-check li{padding:0 0 11px 5px}
.ch9-final-check li::marker{color:var(--ch9-accent);font-weight:800}
.ch9-materials{border:0;padding-top:0}
.ch9-section .ch9-materials h2{font-size:clamp(39px,4.6vw,61px)}
/* Terms use the same inline interaction as the Introduction. */
.ch9 .intro-term{position:relative;display:inline-block}
.ch9 .intro-term-trigger{padding:0;border:0;border-bottom:2px solid currentColor;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;cursor:help}
.ch9 .intro-term-popover{position:absolute;z-index:30;top:calc(100% + 13px);left:var(--intro-term-offset,0px);width:min(410px,calc(100vw - 44px));max-height:var(--intro-term-max-height,calc(100svh - 44px));overflow-y:auto;padding:18px 20px;background:#303b3d;color:#fff;box-shadow:0 12px 30px #27363730;font:400 16px/1.5 Literata,Georgia,serif;letter-spacing:0;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease}
.ch9 .intro-term.is-above .intro-term-popover{top:auto;bottom:calc(100% + 13px);transform:translateY(4px)}
.ch9 .intro-term:not(.is-escape-dismissed):hover .intro-term-popover,.ch9 .intro-term:not(.is-escape-dismissed):has(.intro-term-trigger:focus-visible) .intro-term-popover,.ch9 .intro-term.is-open .intro-term-popover{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.ch9 .intro-term:is(:hover,:focus-within,.is-open):not(.is-escape-dismissed)::after{content:"";position:absolute;z-index:29;top:100%;left:0;width:100%;height:13px}
.ch9 .intro-term.is-above:is(:hover,:focus-within,.is-open):not(.is-escape-dismissed)::after{top:auto;bottom:100%}
/* A gallery owns its caption and controls; the image strip reaches the viewport edge. */
.ch9-editorial-gallery{--ch9-gallery-height:clamp(400px,35vw,560px);width:calc(50vw + 520px);max-width:none;margin:50px 0 70px;scroll-margin-top:150px}
.ch9-editorial-gallery--1,.ch9-editorial-gallery--2{--ch9-gallery-height:clamp(430px,39vw,610px)}
.ch9-editorial-gallery--3{--ch9-gallery-height:clamp(450px,40vw,620px)}
.ch9-editorial-gallery--4{--ch9-gallery-height:clamp(430px,38vw,590px)}
.ch9-editorial-gallery--5{--ch9-gallery-height:clamp(400px,37vw,570px)}
.ch9-gallery-track{display:flex;align-items:stretch;gap:15px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:0}
.ch9-gallery-track::-webkit-scrollbar{display:none}
.ch9-gallery-track::after{content:"";flex:0 0 var(--ch9-gallery-end-space,50%);height:1px}
.ch9-gallery-slide{position:relative;flex:0 0 auto;width:auto;margin:0;scroll-snap-align:start}
.ch9-gallery-slide .ch9-image-button{width:auto;height:100%}
.ch9-gallery-slide img{display:block;width:auto;height:var(--ch9-gallery-height);max-width:none;object-fit:contain}
.ch9-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ch9-gallery-body{max-width:1040px;margin:15px 0 0}
.ch9-gallery-captions{display:grid;max-width:840px}
.ch9-gallery-captions p{grid-area:1/1;max-width:840px;margin:0;color:#5a686d;font:400 14px/1.5 Cygre,sans-serif;visibility:hidden}
.ch9-gallery-captions p.is-active{visibility:visible}
.ch9-gallery-actions{gap:22px;margin:16px 0 0;padding:0;border:0}
.ch9-gallery-actions button{border:0;border-radius:0;background:none;padding:2px 0;color:var(--ch9-accent);font:800 14px/1.4 Cygre,sans-serif}
.ch9-gallery-actions button:hover:not(:disabled){text-decoration:underline}
.ch9-gallery-actions span{color:var(--ch9-ink);font:800 14px/1.4 Cygre,sans-serif;font-variant-numeric:tabular-nums}
.ch9-single-image{max-width:1040px;margin:50px 0 70px}
.ch9-single-image .ch9-image-button{width:auto;max-width:100%}
.ch9-single-image img{display:block;max-width:100%;max-height:670px;width:auto;height:auto}
.ch9-single-image figcaption{max-width:840px;margin-top:15px;color:#5a686d;font:400 14px/1.5 Cygre,sans-serif}
@media(max-width:1199px){
 .ch9-inner{padding-inline:clamp(24px,4vw,48px)}
 .ch9-section{max-width:1040px}
 .ch9-section>p,.ch9-section>.ch9-elements-source-text,.ch9-elements-organization p,.ch9-compact-section p,.ch9-methodology-editorial>p,.ch9-error>p,.ch9-grid-note p,.ch9-requirement-list li{font-size:18px;line-height:1.7}
 .ch9-message-questions{font-size:18px;line-height:1.7}
 .ch9-story-steps{font-size:18px;line-height:1.7}
 .ch9-final-check p,.ch9-final-check li{font-size:18px;line-height:1.6}
 .ch9-criterion-cover,.ch9-principles{width:100%;margin-left:0}
 .ch9-grid-note,.ch9-sales-emphasis{width:100%;margin-left:0;padding:44px 48px}
 .ch9-editorial-gallery{width:min(calc(50vw + 520px),calc(100vw - clamp(24px,4vw,48px)));margin-left:0}
 .ch9-gallery-body{margin-left:0;padding-right:clamp(24px,4vw,48px)}
 .ch9-principles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ch9-principle,.ch9-principle:nth-child(4){grid-column:span 1}
 .ch9-principle:nth-child(5){grid-column:1/-1;width:calc((100% - 35px)/2);justify-self:center}
}
@media(max-width:760px){
 .ch9-inner{padding-inline:22px}
 .ch9-introduction,.ch9-toc{margin-left:0;margin-right:0}
 .ch9-toc-head>span,.ch9-major-heading>span,.ch9-section-rubric{font-size:12px}
 .ch9-toc li,.ch9-toc li:last-child{border-color:#e5eded}
 .ch9-section{margin-bottom:68px}
 .ch9-major-heading{margin:68px 0 23px}
 .ch9-section h2:not(.ch9-topic-heading),.ch9-section h2.ch9-topic-heading,.ch9-section .ch9-major-heading h2,.ch9-section .ch9-compact-section h2{font-size:clamp(29px,7.5vw,34px);line-height:1.1}
 .ch9-section .ch9-major-heading h2,.ch9-section .ch9-compact-section h2{margin-top:12px}
 .ch9-section>p,.ch9-section>.ch9-elements-source-text,.ch9-elements-organization p,.ch9-compact-section p,.ch9-methodology-editorial>p,.ch9-error>p,.ch9-grid-note p,.ch9-requirement-list li{font-size:15px;line-height:1.58}
 .ch9-section>p,.ch9-section>.ch9-elements-source-text{margin-bottom:22px}
 .ch9-section>h3,.ch9-elements-organization h3{font-size:26px;margin:46px 0 18px}
 .ch9-requirement-list{margin:18px 0 48px;padding-left:20px}
 .ch9-requirement-list li{padding-bottom:11px}
 .ch9-message-questions{font-size:16px;line-height:1.55;padding-left:21px}
 .ch9-story-steps{margin:22px 0 50px;padding-left:21px;font-size:16px;line-height:1.55}
 .ch9-story-steps li{padding-bottom:13px}
 .ch9-final-check{margin:55px 0 68px;padding:30px 22px}
 .ch9-section .ch9-final-check h3{font-size:29px}
 .ch9-final-check p,.ch9-final-check li{font-size:16px;line-height:1.55}
 .ch9-final-check ol{padding-left:22px}
 .ch9-compact-section{margin:68px 0}
 .ch9-section .ch9-compact-section h2{margin-bottom:23px}
 .ch9-grid-note,.ch9-sales-emphasis{width:100%;margin:42px 0;padding:28px 22px}
 .ch9-section .ch9-grid-note p,.ch9-section .ch9-sales-emphasis p{font-size:17px;line-height:1.5}
 .ch9-section h2.ch9-topic-heading{margin:68px 0 23px}
 .ch9-section .ch9-criteria-intro>p{font-size:18px;line-height:1.5}
 .ch9-editorial-gallery{--ch9-gallery-height:clamp(255px,80vw,370px);width:calc(100vw - 22px);margin:36px 0 50px 0}
 .ch9-editorial-gallery--1,.ch9-editorial-gallery--2,.ch9-editorial-gallery--3,.ch9-editorial-gallery--4,.ch9-editorial-gallery--5{--ch9-gallery-height:clamp(255px,80vw,370px)}
 .ch9-gallery-track{gap:10px}
 .ch9-gallery-body{margin-top:10px;padding-right:22px}
 .ch9-gallery-captions p{font-size:12px;line-height:1.5}
 .ch9-gallery-actions{margin-top:10px}
 .ch9-single-image{margin:36px 0 50px}
 .ch9-single-image figcaption{font-size:12px;margin-top:10px}
 .ch9-principles-grid{display:flex;gap:16px}
 .ch9-principle{flex:0 0 100%}
 .ch9-principle:nth-child(5){width:auto}
 .ch9-principles .ch9-section-rubric{margin-bottom:12px}
 .ch9-section .ch9-principles-lead{font-size:17px;margin-bottom:26px}
 .ch9-section .ch9-principles-swipe{display:block;margin:-10px 0 20px;color:#d5dfdf;font:700 13px/1.4 Cygre,sans-serif}
 .ch9 .intro-term-popover{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.ch9 .intro-term-popover{transition:none}.ch9-gallery-track{scroll-behavior:auto}}
html:has(.ch9),body:has(.ch9){overflow-x:clip}
.ch9-section-headline{margin:clamp(95px,10vw,160px) 0 34px;scroll-margin-top:150px}
.ch9-section .ch9-section-headline h2,.ch9-section .ch9-section-headline h2.ch9-topic-heading{margin:17px 0 0}
.ch9-criterion-cover--feature{grid-template-columns:minmax(0,.17fr) minmax(0,.30fr) minmax(0,.53fr);column-gap:clamp(16px,2vw,30px)}
@media(max-width:760px){
 .ch9-section-headline{margin:68px 0 23px;scroll-margin-top:90px}
 .ch9-section .ch9-section-headline h2,.ch9-section .ch9-section-headline h2.ch9-topic-heading{margin:12px 0 0}
 .ch9-criterion-cover--feature{display:block}
 .ch9-criterion-cover--feature .ch9-crafted-main figure,.ch9-criterion-cover--crafted .ch9-crafted-main figure{margin-inline:-20px}
 .ch9-criterion-cover--attract .ch9-criterion-image-window{aspect-ratio:1}
 .ch9-criterion-cover--attract.ch9-criterion-cover--feature .ch9-criterion-image-window img{object-position:50% 62%;transform:scale(1.45)}
}
.ch9-lightbox>button{background:#627f86}
.ch9-elements-organization .ch9-major-heading{margin:95px 0 34px}
.ch9-elements-organization .ch9-major-heading h2{margin:17px 0 0}
@media(max-width:760px){.ch9-elements-organization .ch9-major-heading{margin:68px 0 23px}.ch9-elements-organization .ch9-major-heading h2{margin:12px 0 0}}
.ch9-materials{margin:clamp(95px,10vw,160px) 0 0;scroll-margin-top:150px}
.ch9-section .ch9-materials h2{margin:17px 0 34px}
@media(max-width:760px){.ch9-materials{margin-top:68px;scroll-margin-top:90px}.ch9-section .ch9-materials h2{margin:12px 0 23px}}
