.showcase-inner { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.modelling-section { padding: 88px 0 100px; background: #f4f7f3; scroll-margin-top: 90px; }
.modelling-heading { margin-bottom: 44px; }
.modelling-heading h2, .soa-showcase-heading h2 {margin-top: 22px;}
.modelling-figure { margin: 0; }
.modelling-image { overflow: hidden; border: 1px solid #dbe5dd; border-radius: 19px; box-shadow: 0 23px 54px -34px #183b2b40; }
.modelling-image img { display: block; width: 100%; height: auto; }
.soa-showcase { padding: 100px 0 80px; background: radial-gradient(ellipse at 50% 63%, #e9eee0, #fafbf7 70%); scroll-margin-top: 90px; overflow: hidden; }
.soa-showcase-heading { text-align: center; }
.soa-showcase-heading > p:last-child { max-width: 690px; margin: 25px auto 0; font-size: 15px; line-height: 1.85; color: #65786f; }
.soa-gallery { display: flex; align-items: flex-start; margin: 64px 0 0; padding: 0 0 42px; isolation: isolate; }
.soa-sheet { position: relative; flex: 0 0 26.5%; min-width: 0; background: #fffefa; border: 1px solid #dce3d7; box-shadow: -7px 8px 24px #24362c18, 0 22px 35px -24px #24362c55; }
.soa-sheet + .soa-sheet { margin-left: -2%; }
.soa-sheet:nth-child(1) { z-index: 1; }
.soa-sheet:nth-child(2) { z-index: 2; }
.soa-sheet:nth-child(3) { z-index: 3; }
.soa-sheet:nth-child(4) { z-index: 4; }
.soa-paper { position: relative; display: block; width: 100%; aspect-ratio: var(--paper-width, 794) / var(--paper-height, 1123); overflow: hidden; background: #fffefa; }
.soa-paper iframe { position: absolute; inset: 0; display: block; width: calc(var(--paper-width, 794) * 1px); height: calc(var(--paper-height, 1123) * 1px); border: 0; transform-origin: top left; transform: scale(var(--paper-scale, .32)); pointer-events: none; }
.soa-showcase-bottom { text-align: center; margin-top: 2px; }
.soa-showcase-bottom p { font-size: 15px; color: #4b6859; }
.soa-showcase-bottom > span { display: block; margin-top: 17px; font-size: 11px; color: #66765f; line-height: 1.6; }
.soa-preview-button { display: inline-flex; align-items: center; gap: 28px; margin-top: 26px; padding: 17px 25px; border-radius: 40px; background: #173e3b; color: #fff; font-size: 14px; transition: background .2s; }
.soa-preview-button svg { width: 18px; height: 18px; }
.soa-preview-button:hover { background: #2f594a; }
.soa-preview-button:focus-visible { outline: 3px solid #54735e; outline-offset: 5px; }

html:has(#soa-reader[open]) { overflow: hidden; }
dialog.soa-reader { width: min(1168px, calc(100% - 28px)); max-width: none; max-height: 92svh; padding: 0; margin: auto; border: 1px solid #d5e0d3; border-radius: 18px; background: #eef2ea; color: #244537; overflow: hidden; }
.soa-reader::backdrop { background: #102a23b8; backdrop-filter: blur(8px); }
.soa-reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px 15px; background: #fafcf7; border-bottom: 1px solid #e0e6dc; }
.soa-reader-toolbar p { font-size: 8px; letter-spacing: .1em; color: #6d806f; }
.soa-reader-toolbar h2 { margin-top: 7px; font-size: 21px; font-weight: 400; letter-spacing: -.035em; }
.soa-reader-close { flex: none; width: 36px; height: 36px; background: #e7eee2; border-radius: 50%; font-size: 25px; color: #2f5a42; }
.soa-reader-picker { display: flex; align-items: center; gap: 16px; padding: 13px 24px 0; }
.soa-reader-picker label { flex: none; font-size: 11px; color: #61755e; }
.soa-reader-picker select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid #cbd8c6; border-radius: 6px; background: #fafcf7; color: #244537; font: inherit; font-size: 12px; }
.soa-reader-controls { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; }
.soa-reader-controls > div { display: flex; gap: 14px; align-items: center; font-size: 11px; }
.soa-reader-controls button { background: #fffefa; border: 1px solid #d6e0d2; border-radius: 5px; padding: 6px 12px; font-size: 12px; color: #31573f; min-height: 36px; }
.soa-reader-controls button:disabled { opacity: .4; cursor: default; }
.soa-reader-scroll { overflow: auto; overflow-anchor: none; max-height: calc(92svh - 205px); padding: 0 20px 20px; overscroll-behavior: contain; }
.soa-reader-paper { width: min(100%, calc(var(--paper-width, 794) * 1px)); margin: auto; box-shadow: 0 6px 25px #20392a16; }
.soa-reader-paper.is-actual-size { width: calc(var(--paper-width, 794) * 1px); max-width: none; }
.soa-reader select:focus-visible, .soa-reader button:focus-visible, .soa-reader-scroll:focus-visible { outline: 2px solid #54735e; outline-offset: 3px; }
@media (min-width: 1700px) { .showcase-inner { width: min(1420px, calc(100% - 140px)); } }
@media (max-width: 1100px) {
  .showcase-inner { width: calc(100% - 52px); }
}
@media (max-width: 760px) {
  .showcase-inner { width: calc(100% - 34px); }
  .modelling-section { padding: 60px 0 65px; scroll-margin-top: 75px; }
  .modelling-heading { margin-bottom: 28px; }
  .modelling-image { border-radius: 9px; }
  .soa-showcase { padding: 65px 0; scroll-margin-top: 75px; }
  .soa-showcase-heading > p:last-child { font-size: 14px; }
  .soa-gallery { margin-top: 38px; padding-bottom: 30px; }
  .soa-showcase-bottom { margin-top: 0; }
  .soa-showcase-bottom p { font-size: 13px; }
  .soa-showcase-bottom > span { font-size: 10px; }
  .soa-preview-button { margin-top: 23px; padding: 16px 23px; }
  .soa-reader-picker { padding: 11px 16px 0; gap: 10px; }
  .soa-reader-toolbar { padding: 16px; }
  .soa-reader-toolbar h2 { font-size: 19px; }
  .soa-reader-toolbar p { font-size: 7px; }
  .soa-reader-controls { padding: 9px 16px; }
  .soa-reader-scroll { padding: 0 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .soa-preview-button { transition: none; } }

/* Client-sharing action shown as part of the modelling preview, not a live publishing control. */
.modelling-caption { margin-top: 32px; padding-top: 28px; border-top: 1px solid #dbe5dd; }
.modelling-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 28px; align-items: center; width: max-content; max-width: 100%; margin-left: auto; text-align: right; }
.modelling-share .section-title { display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; grid-column: 1 / -1; grid-row: 1 / 3; min-width: 0; }
.modelling-share .sharing-lead { grid-column: 1; grid-row: 1; color: inherit; }
.modelling-share .sharing-accent { grid-column: 1 / -1; grid-row: 2; }
.publish-preview { grid-column: 2; grid-row: 1; justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex-shrink: 0; }
.publish-preview-control { display: inline-flex; align-items: center; gap: 20px; padding: 15px 21px; border-radius: 30px; background: #173e3b; color: #f0f3e9; font-size: 14px; line-height: 1.4; }
.publish-preview-control svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .modelling-caption { margin-top: 24px; padding-top: 24px; }

}

@media (max-width: 560px) {
  .modelling-share { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .modelling-share .section-title { display: block; grid-column: 1; grid-row: 1; }
  .modelling-share .section-title > span { display: block; }
  .publish-preview { grid-column: 1; grid-row: 2; }
}
