/* Structural Edge fictional roof study. The base's graphite/cream/copper remains authoritative. */
.study-feature{padding:clamp(3rem,6vw,6rem) 5%;border-top:1px solid var(--line);background:#e6e5db}
.study-feature>*{min-width:0}.study-label{font-size:.8rem;line-height:1.5;font-weight:700;letter-spacing:.015em;margin:0 0 1.25rem;max-width:68ch}
.study-feature-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:end;gap:1.5rem 4rem;margin-bottom:2rem}
.study-feature h2,.study-opening h1{font-family:Barlow,'Arial Narrow',Arial,sans-serif;text-transform:uppercase;line-height:.96;letter-spacing:-.02em;overflow-wrap:normal;word-break:normal}
.study-feature h2{font-size:clamp(2.7rem,6vw,6.75rem);max-width:10ch;margin:0}.study-feature-summary{max-width:45ch;line-height:1.7;margin:0 0 1.5rem}
.study-feature-images{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,.9fr);gap:1rem;align-items:start}.study-feature-images figure{margin:0;min-width:0}.study-feature-images figure:last-child{align-self:end;margin-top:4rem}
.study-image{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:5px;background:#bec0bb}.study-image picture,.study-image img{display:block;width:100%;height:100%;object-fit:cover}.study-image:after{content:'Illustrative image unavailable';position:absolute;inset:0;display:none;place-content:center;text-align:center;padding:1rem;color:#25302f;background:#d4d5d0}.study-image.image-failed picture{visibility:hidden}.study-image.image-failed:after{display:grid}
.study-feature figcaption,.study-frames figcaption{font-size:.82rem;line-height:1.6;margin-top:.6rem;max-width:65ch}
.study-observations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;margin:2.5rem 0;border-top:1px solid #858986}.study-observations div{padding-top:1rem}.study-observations dt{font-weight:750;font-size:.85rem}.study-observations dd{margin:.5rem 0 0;line-height:1.6;max-width:30ch;font-size:.9rem}
.study-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem}.study-text-link{color:inherit;display:inline-flex;align-items:center;min-height:44px;padding-block:.6rem;text-decoration:underline;text-underline-offset:.28em;text-decoration-thickness:1px;font-weight:650}.study-actions .cta{margin:0}.study-note{font-size:.76rem;line-height:1.6;color:#414a49;margin:1.25rem 0 0}
.study-opening,.study-gallery,.study-record{padding-inline:5%;max-width:1600px;margin-inline:auto}.study-opening{padding-top:1.4rem;padding-bottom:2.5rem}.study-breadcrumb{display:flex;align-items:center;gap:.6rem;font-size:.82rem;margin:0 0 1.6rem}.study-breadcrumb a{color:inherit;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:.25em}
.study-opening-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:2rem 4rem;align-items:end}.study-opening h1{font-size:clamp(3rem,6vw,7rem);max-width:11ch;margin:0 0 1rem}.study-opening p:not(.study-label){max-width:48ch;line-height:1.7}.study-opening .study-image{margin:0}.study-gallery{padding-top:2rem;border-top:1px solid var(--line)}.study-gallery h2,.study-record h2{font-family:Barlow,'Arial Narrow',Arial,sans-serif;text-transform:uppercase;font-size:clamp(2rem,3.5vw,3.75rem);line-height:1.05;margin:0 0 1.5rem}
.study-frames{list-style:none;padding:0;margin:0;display:grid;gap:2rem}.study-frames>li{min-width:0}.study-frames figure{margin:0}.study-frames .study-image{max-height:70vh}.study-frames figcaption{display:grid;grid-template-columns:auto 1fr;gap:1rem;min-height:3.5rem}.study-frames figcaption span{min-width:0;overflow-wrap:anywhere}.study-frames figcaption span:first-child,.gallery-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.study-gallery[data-enhanced=true] .study-frames{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;touch-action:pan-x pan-y pinch-zoom}.study-gallery[data-enhanced=true] .study-frames>li{flex:0 0 100%;scroll-snap-align:start}.gallery-controls[hidden]{display:none}.gallery-controls{padding-top:1rem}.gallery-directions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.gallery-controls button{font:inherit;font-size:.85rem;min-height:44px;padding:.6rem 1rem;background:transparent;color:var(--ink);border:1px solid #626966;border-radius:4px;cursor:pointer}.gallery-controls button[aria-disabled=true]{color:#5b6260;border-color:#a5aaa5;cursor:default}.gallery-thumbnails{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.gallery-thumbnails button{display:flex;align-items:center;gap:.5rem;padding:.3rem .65rem .3rem .3rem}.gallery-thumbnails img{width:58px;aspect-ratio:3/2;object-fit:cover}.gallery-thumbnails button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px;background:#e5e7df}
.study-record{padding-top:clamp(3rem,6vw,6rem);padding-bottom:clamp(3rem,6vw,6rem)}.study-record section:not(.study-next){display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:2rem 4rem;border-top:1px solid #a0a5a0;padding:2.5rem 0}.study-record p{max-width:68ch;line-height:1.8;margin:0}.study-record ol,.study-record dl{margin:0;padding:0;list-style:none}.study-record li+li,.study-record dl div+div{margin-top:1.5rem}.study-record h3,.study-record dt{font-size:1rem;font-weight:750;margin:0 0 .55rem}.study-record dd{margin:0;line-height:1.7}.study-next{background:var(--ink);color:var(--paper);padding:clamp(2rem,5vw,5rem);border-radius:6px}.study-next h2{max-width:18ch}.study-next .study-actions{margin-top:2rem}.study-next .study-text-link{color:var(--paper)}
.study-record section>*{min-width:0}.study-record h2{overflow-wrap:anywhere}
.study-text-link:focus-visible,.gallery-controls button:focus-visible,.study-breadcrumb a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}.study-next .study-text-link:focus-visible{outline-color:var(--paper)}
@media(hover:hover) and (pointer:fine){.study-text-link:hover{text-decoration-thickness:2px}.gallery-controls button:not([aria-disabled=true]):hover{background:#d7dcd6}}
@media(max-width:900px){.study-feature-head,.study-opening-grid{grid-template-columns:1fr}.study-feature-images{grid-template-columns:1.4fr 1fr}.study-opening h1{max-width:13ch}.study-record section:not(.study-next){grid-template-columns:1fr;gap:1rem}}
@media(max-width:600px){.study-feature,.study-opening,.study-gallery,.study-record{padding-inline:min(1.375rem,7vw)}.study-feature-images{grid-template-columns:1fr}.study-feature-images figure:last-child{width:65%;margin:0 0 0 auto}.study-observations{grid-template-columns:1fr;gap:0;margin:2rem 0}.study-observations div{padding-block:1rem;border-bottom:1px solid #a0a5a0}.study-opening{padding-top:.75rem}.study-opening h1{font-size:clamp(2.4rem,12vw,4rem)}.study-opening-grid{gap:1rem}.study-gallery{padding-top:2rem}.study-frames figcaption{font-size:.75rem;min-height:5rem}.gallery-directions{flex-wrap:wrap}.gallery-count{order:-1;flex:0 0 100%;text-align:center}.gallery-directions button{flex:1}.gallery-thumbnails img{display:none}.gallery-thumbnails button{min-width:44px;justify-content:center;padding:.5rem}.study-record section:not(.study-next){padding:2rem 0}}
@media(prefers-reduced-motion:reduce){.study-frames{scroll-behavior:auto!important;scroll-snap-type:none!important}.gallery-controls button{transition:none!important}}
@media(forced-colors:active){.gallery-thumbnails button[aria-pressed=true]{outline:2px solid Highlight}.study-image.image-failed:after{color:CanvasText}}

/* Candidate003: preserve whole-word reading at 320/390 with 32px root text. */
.study-image-fallback{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:1rem;font-size:1rem;line-height:1.5;color:#25302f;background:#d4d5d0;z-index:0}
.study-image picture{z-index:1}.study-image img{font-size:0;color:transparent;background:transparent}.study-image.image-failed picture{visibility:visible;opacity:0}.study-image:after{display:none!important}
.study-breadcrumb{flex-wrap:wrap;overflow-wrap:normal}.study-breadcrumb a{flex:0 0 auto;white-space:nowrap}.study-breadcrumb span{overflow-wrap:normal}
.study-record h2{overflow-wrap:normal;word-break:normal;hyphens:none;font-size:clamp(1.75rem,3.5vw,3.75rem)}
@media(max-width:600px){
 .gallery-directions{display:grid;grid-template-columns:minmax(0,1fr)}
 .gallery-directions .gallery-count{order:0;flex:auto}
 .gallery-directions button{width:100%;overflow-wrap:normal;word-break:normal;white-space:normal}
 .study-next{padding:1rem}
 .study-next h2{font-size:clamp(1.25rem,3vw,3rem);overflow-wrap:normal;word-break:normal}
}

/* Candidate004: loaded pictures sit above the no-script fallback layer. */
.study-image picture{position:relative;z-index:1}

/* Failed media retains the native image name in the accessibility tree. */
.site-header .wordmark{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:600px){
 .site-header .header-row{min-height:0;padding:8px min(1.375rem,6vw);gap:4px 8px}
 .site-header .wordmark{flex:1 1 100%;min-height:44px}
 .site-header .header-inquiry,.site-header .mobile-menu{min-height:44px}
 .site-header .mobile-menu>summary{min-height:44px;height:44px;padding:0;line-height:1.2;gap:6px}
 .study-record h2{font-size:min(1.75rem,10vw)}
}

/* SE-Q07: keep accepted words readable while constraining enlarged phone titles. */
.study-feature-head>*,.study-opening-grid>div{min-width:0}
@media(max-width:900px){.study-feature-head,.study-opening-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .study-feature h2,.study-opening h1{max-width:100%;overflow-wrap:anywhere;word-break:normal}
 .study-feature h2{font-size:min(clamp(2.7rem,6vw,6.75rem),12vw)}
 .study-opening h1{font-size:min(clamp(2.4rem,12vw,4rem),12vw)}
}

/* SE-Q08: reserve the story's longest whole word before placing its image. */
.study-opening-grid{grid-template-columns:minmax(min-content,.8fr) minmax(0,1.2fr)}
.study-opening h1{max-width:none;font-size:min(clamp(3rem,6vw,7rem),10vw)}
@media(max-width:1200px){.study-opening-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.study-opening h1{font-size:min(clamp(2.4rem,12vw,4rem),12vw)}}
