/* Lightweight source-study layouts, scoped separately from existing project stories. */
.study-header .detail-title-row{grid-template-columns:minmax(0,1.6fr) minmax(200px,.7fr);gap:6%}.study-header-meta{padding-bottom:4px}.study-header-meta p{font:14px/1.5 var(--mono);margin:16px 0 0;color:#5a655d}.study-draft{display:inline-block;margin-left:7px;padding:3px 7px;border:1px solid #a95739;color:#8d462d;font-weight:500}.study-header h1{overflow-wrap:break-word}.study-minor-heading{font:12px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#5a655d;margin:0 0 18px}.study-story .art-frame.study-aerial,.study-story .art-frame.study-sheet{aspect-ratio:auto;background:#e9e7e0}.study-story .art-frame.study-aerial img,.study-story .art-frame.study-sheet img{width:100%;height:auto;object-fit:contain}.study-story .project-figure figcaption{font:14px/1.55 var(--body);gap:14px;margin-top:15px}.study-story .image-count{font:11px/1.8 var(--mono)}.study-story .image-open{cursor:zoom-in}.study-story .image-expand{box-shadow:0 1px 8px #0002}.study-drawings{padding-top:75px}.study-section-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:35px}.study-section-heading h2{font-size:clamp(28px,3.2vw,45px);margin:0;max-width:850px}.study-section-heading .eyebrow{margin-bottom:14px}.study-count{font:11px/1.5 var(--mono);color:#626b65;flex-shrink:0;padding-bottom:3px}.study-figure+.study-figure{margin-top:58px}.study-figure-heading{display:flex;justify-content:space-between;gap:25px;align-items:baseline;margin-bottom:20px}.study-figure-heading h3{font-size:clamp(22px,2.3vw,31px);margin:0;letter-spacing:-.025em}.study-figure-heading p{font:12px/1.5 var(--mono);color:#5a655d;margin:0;flex-shrink:0}.study-figure-notes{margin:16px 0 0;padding:0 0 0 19px;max-width:950px;font-size:15px;line-height:1.6;color:#5a655d}.study-figure-notes li+li{margin-top:5px}.study-legend{display:flex;flex-wrap:wrap;gap:10px 25px;list-style:none;padding:16px 0 0;margin:16px 0 0;border-top:1px solid var(--line);font-size:14px}.study-legend li{display:flex;align-items:center;gap:10px}.study-legend i{height:14px;width:20px;flex:0 0 20px;border:1px solid #0002}.study-source-note{border-top:1px solid var(--line);margin-top:65px;padding:24px 0 40px;font-size:14px;line-height:1.6;color:#5a655d}.study-source-note p{max-width:none;margin-bottom:0}.study-source-note ul{padding-left:18px;margin:10px 0 0;max-width:1000px}.study-source-note li+li{margin-top:5px}.study-listing{padding-bottom:80px}.study-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}.study-project-card{min-width:0;display:block}.study-project-card .art-frame{aspect-ratio:1.55}.study-project-card .art-frame img{object-fit:cover}.study-project-card>div:last-child{padding-top:18px}.study-card-place{font:10px/1.6 var(--mono);color:#626b65;margin-bottom:12px}.study-project-card h3{font-size:22px;line-height:1.2;display:flex;align-items:start;justify-content:space-between;gap:12px;margin:0 0 12px}.study-project-card .arrow-icon{width:17px;height:17px;flex-basis:17px;margin-top:5px}.study-project-card .project-status{font-size:11px;line-height:1.4}.study-project-card:hover h3{color:var(--blue)}.study-preview-meta{margin:15px 0 0;color:#5a655d;font-size:16px}.study-preview-meta strong{font-weight:500}.study-viewer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px}.study-viewer-tools button{min-width:44px;min-height:44px;border:1px solid #b9beb8;background:var(--paper);padding:6px 11px;font-size:17px;line-height:1.4}.study-viewer-tools button:disabled{opacity:.4;cursor:default}.study-viewer-tools output{font:12px/1.5 var(--mono);min-width:45px;text-align:center}.study-viewer-tools a{display:inline-flex;align-items:center;gap:10px;margin-left:auto;min-height:44px;font-size:14px;border-bottom:1px solid var(--line)}.study-viewer-tools .arrow-icon{width:15px;height:15px;flex-basis:15px}.study-viewer-help{font:12px/1.5 var(--body);color:#5a655d;max-width:none;margin-bottom:12px}.study-zoom-viewport{overflow:auto;max-height:62svh;background:#e9e7e0;overscroll-behavior:contain;scrollbar-gutter:stable}.study-zoom-viewport img{width:100%;height:auto;max-width:none;display:block}.study-viewer #gallery-caption{font:13px/1.5 var(--body)}.study-viewer #gallery-caption>span:last-child{flex-shrink:0}#gallery-dialog:has(.study-viewer) .gallery-controls{position:sticky;bottom:-24px;background:var(--paper);padding:10px 0 0;z-index:1}
@media(max-width:1050px){.study-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-header .detail-title-row{grid-template-columns:minmax(0,1.3fr) minmax(200px,.7fr)}}
@media(max-width:680px){.study-header .detail-title-row{display:block}.study-header-meta{margin-top:25px}.study-header-meta p{margin-top:12px;font-size:12px}.study-drawings{padding-top:45px}.study-section-heading{display:block;padding-bottom:20px;margin-bottom:25px}.study-section-heading h2{font-size:30px}.study-count{display:block;margin-top:14px}.study-figure-heading{display:block;margin-bottom:17px}.study-figure-heading h3{font-size:24px}.study-figure-heading p{margin-top:10px;font-size:11px}.study-figure+.study-figure{margin-top:40px}.study-story .project-figure figcaption{font-size:13px;gap:10px}.study-story .image-count{font-size:10px}.study-figure-notes{font-size:14px}.study-source-note{margin-top:40px;padding:22px 0 30px;font-size:13px}.study-listing{padding-bottom:50px}.study-project-grid{gap:30px 18px}.study-project-card h3{font-size:20px}.study-project-card .project-status{font-size:10px}.study-card-place{font-size:9px}.study-viewer-tools{gap:8px}.study-viewer-tools a{width:100%;margin-left:0;justify-content:space-between;min-height:40px;font-size:13px}.study-viewer-help{font-size:11px}.study-zoom-viewport{max-height:52svh}.study-viewer #gallery-caption{font-size:12px}#gallery-dialog:has(.study-viewer) .gallery-controls{bottom:-17px}.study-legend{font-size:13px;gap:9px 16px}}
@media(max-width:390px){.study-project-grid{grid-template-columns:1fr}.study-project-card h3{font-size:24px}.study-project-card .project-status{font-size:12px}.study-card-place{font-size:10px}.study-header h1{font-size:36px}}
.study-legend i{background:var(--legend-color)}.study-legend i.is-dashed{height:0;border:0;border-top:3px dashed var(--legend-color);background:none}.study-image-credit{font:11px/1.5 var(--body);color:#626b65;margin:12px 0 0}
.study-header .eyebrow{font-size:11px}
/* Long source captions wrap within narrow dialogs; only the image viewport pans. */
#gallery-content.study-viewer{min-width:0;max-width:100%}.study-viewer #gallery-caption>span:first-child{min-width:0;overflow-wrap:anywhere}.study-zoom-viewport{min-width:0;max-width:100%}
.study-viewer #gallery-caption>span:first-child{white-space:normal;flex:1 1 auto}.study-viewer #gallery-caption>span:last-child{white-space:nowrap;flex:0 0 auto}

/* Match the desktop project-story scale without cropping source plan extents.
   Layout wrappers have no styles below 1024px, preserving the mobile flow. */
@media (min-width:1024px){
  .study-story .project-lead-image .art-frame.study-aerial{height:100%;display:flex;align-items:center;justify-content:center}
  .study-story .project-lead-image .art-frame.study-aerial img{width:100%;height:100%;object-fit:contain}
  .study-story .study-drawings{padding-top:64px}
  .study-story .study-section-heading{margin-bottom:30px}
  .study-story .study-figure+.study-figure{margin-top:44px}
  .study-story .study-figure-body:has(>.study-figure-aside){display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.36fr);gap:32px;align-items:start}
  .study-story .art-frame.study-sheet{max-height:620px}
  .study-story .art-frame.study-sheet img{width:100%;height:auto;max-height:620px;object-fit:contain}
  .study-story .study-figure-aside>:first-child{margin-top:0}
  .study-story .study-figure-aside .study-legend{display:grid;gap:12px;padding-top:0;border-top:0}
  .study-story .study-figure-aside .study-legend li{align-items:start}
  .study-story .study-figure-aside .study-legend i{margin-top:4px}
  .study-story .study-figure-aside .study-legend i.is-dashed{margin-top:11px}
  .study-story .study-source-note{margin-top:48px}
}
/* Compare alternatives side by side only when each preview has desktop room. */
@media (min-width:1280px){
  .study-story .study-drawings:has(>.study-figure+.study-figure){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 30px;align-items:start}
  .study-story .study-drawings:has(>.study-figure+.study-figure)>.study-section-heading{grid-column:1/-1;margin-bottom:0}
  .study-story .study-drawings:has(>.study-figure+.study-figure)>.study-figure{margin-top:0;min-width:0}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-figure-heading{display:block;min-height:66px;margin-bottom:18px}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-figure-heading h3{font-size:25px}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-figure-heading p{margin-top:8px}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-figure-body{display:block}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .art-frame.study-sheet,
  .study-story .study-drawings:has(>.study-figure+.study-figure) .art-frame.study-sheet img{max-height:460px}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-figure-aside{margin-top:20px}
  .study-story .study-drawings:has(>.study-figure+.study-figure) .study-legend{display:flex;gap:10px 20px}
}
/* Approved single-plan study format. Metadata is absent until supplied by the owner. */
.study-metadata{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr) minmax(0,.7fr);gap:28px;margin:0 0 28px;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.study-metadata>div{min-width:0}.study-metadata dt{font:11px/1.6 var(--mono);color:#626b65;margin-bottom:7px}.study-metadata dd{font:18px/1.45 var(--body);margin:0;overflow-wrap:break-word}.study-brief{max-width:1080px;margin:0 0 35px}.study-brief p{max-width:none;font:20px/1.65 var(--body);margin:0;color:#48534d}.study-compact-plan{margin-bottom:46px}.study-compact .study-selected-figure{margin:0 auto}.study-viewer-caution{font:12px/1.5 var(--body);color:#626b65;max-width:none;margin:12px 0 0}.gallery-controls[hidden]{display:none}
/* Compact studies pair the complete plan with a vertical information column. */
.study-compact-header .detail-title-row{display:block}.study-compact-layout{margin-bottom:46px}.study-compact-layout>*,.study-compact-information{min-width:0}.study-compact .study-selected-figure{max-width:none}.study-compact .art-frame.study-sheet,.study-compact .art-frame.study-sheet img{max-height:none}.study-compact-information .study-header-meta{margin:0 0 24px}.study-compact-information .study-metadata{grid-template-columns:1fr;gap:20px}.study-compact-information .study-brief{margin-bottom:0}.study-compact-information .study-brief p{font-size:18px;line-height:1.65}
@media(min-width:1024px){.study-compact-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(32px,4vw,58px);align-items:start}.study-compact-layout .study-compact-plan{margin-bottom:0}}
@media(max-width:680px){.study-compact-layout{margin-bottom:34px}.study-compact-information .study-metadata{gap:18px}.study-compact-information .study-brief p{line-height:1.6}}
@media(max-width:680px){.study-metadata{grid-template-columns:1fr;gap:18px;padding:20px 0;margin-bottom:24px}.study-metadata dt{font-size:10px;margin-bottom:4px}.study-metadata dd{font-size:17px}.study-brief{margin-bottom:30px}.study-brief p{font-size:18px;line-height:1.6}.study-compact-plan{margin-bottom:34px}.study-viewer-caution{font-size:11px}}

/* Optional supporting studies stay below the primary sheet, never alongside its summary. */
.study-supporting-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px;align-items:start}.study-supporting-plans .study-supporting-figure{min-width:0;margin:0}.study-supporting-plans .project-figure figcaption{font-size:13px;gap:10px}.study-supporting-plans .image-expand{width:34px;height:34px;bottom:10px;right:10px}.study-supporting-plans .image-expand .arrow-icon{width:16px;height:16px}
@media(max-width:680px){.study-supporting-plans{grid-template-columns:1fr;gap:26px;margin-top:26px}}

/* Keep the CTA on its own row while preview details await owner review. */
.project-preview-content>.project-status+.button{display:flex;width:fit-content;margin-top:22px}

/* Three optional concept studies use a single row beneath the primary sheet. */
.study-supporting-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(max-width:680px){.study-supporting-three{grid-template-columns:1fr;gap:26px}}

/* Opt-in equal-weight alternatives remain full-width and vertically stacked. */
.study-equal-plans{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}.study-equal-plans .study-equal-figure{margin:0;min-width:0}
