/* Article spreads share the workshop's page margins, type and binding rules. */
.reading-layout, .studio-document, .studio-missing, .search-related {
  width: min(76rem, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin-inline: auto;
}
.reading-layout, .studio-document { padding-bottom: clamp(3rem, 7vw, 6rem); }
.reading-page { background: linear-gradient(122deg, #242c24 0, #232822 24rem, var(--forest) 55rem) !important; }
.reading-crumbs { padding-block: .48rem; border-bottom: 1px solid #4b5347; }
.reading-crumbs ol, .reading-links, .search-related ul, .document-index ul { list-style: none; margin: 0; padding: 0; }
.reading-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .65rem; color: #c3c5b9; font-size: .82rem; }
.reading-crumbs li + li::before { content: "/"; margin-right: .65rem; color: #abac98; }
.reading-crumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--copper); }
.reading-crumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }
.reading-opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.4rem, 6vw, 5.6rem); }
.reading-head { padding: 0; }
.reading-head h1, .document-heading h1, .missing-copy h1 {
  color: var(--paper); font: 400 clamp(2.7rem, 5vw, 5rem)/1.015 Georgia, "Times New Roman", serif;
  letter-spacing: -.047em; text-wrap: balance; margin: 0 0 1.15rem;
}
.reading-head p, .document-heading p, .missing-copy p { color: #d9d7c9; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.62; max-width: 57ch; }
.reading-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem; max-width: 100%;
  min-height: 44px; padding: .65rem 1.05rem; margin-top: 1.35rem; border: 1px solid #ceab84;
  background: #e3b78a; color: #242619; border-radius: .3rem; font: 650 .93rem/1.3 system-ui, sans-serif; text-decoration: none;
}
.reading-action:hover { background: #efcda8; }
.reading-action svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.65; flex: none; }
.reading-grid { border-top: 1px solid #747260; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .42fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.reading-copy section, .document-chapters section { padding-block: clamp(1.6rem, 3.4vw, 2.8rem); }
.reading-copy section + section, .document-chapters section + section { border-top: 1px solid #4a5247; }
.reading-copy h2, .document-chapters h2, .reading-next h2, .search-related h2 {
  font: 400 clamp(1.48rem, 2.45vw, 2.35rem)/1.12 Georgia, serif;
  letter-spacing: -.025em; color: var(--paper); margin: 0 0 .7rem; text-wrap: balance;
}
.reading-copy p, .document-chapters :is(p, li) { color: #d4d5c9; font: 400 1.025rem/1.75 system-ui, sans-serif; margin: 0; max-width: 68ch; }
.reading-copy p + p, .document-chapters p + p, .document-chapters li + li { margin-top: .7rem; }
.reading-next { margin-top: clamp(1.8rem,3.4vw,2.8rem); padding: 1.2rem clamp(.9rem,2vw,1.55rem); background: #2c342b; border-top: 2px solid #bb9673; }
.reading-next h2 { font-size: 1.55rem; }
.reading-links a, .document-index a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #e0dccb; min-height: 46px; padding-block: .56rem; font-size: .94rem; line-height: 1.45; }
.reading-links li + li, .document-index li + li { border-top: 1px solid #535b4d; }
.reading-links svg { width: 1rem; flex: none; color: #d9b18a; }
.reading-links a:hover, .document-index a:hover { color: #ffd5a5; }
.reading-questions details { border-bottom: 1px solid #515a4d; }
.reading-questions summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none; cursor: pointer; font-weight: 620; min-height: 48px; padding-block: .65rem; }
.reading-questions summary::-webkit-details-marker { display: none; }
.reading-questions summary svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--copper); }
.reading-questions summary:hover { color: #ffd4a8; }
.reading-questions [open] summary svg { transform: rotate(180deg); }
.reading-questions details p { padding: .15rem 1.7rem 1rem 0; }
.reading-opening figure { margin: 0; min-width: 0; }
.area-atlas { color: #2e3a2d; background: #eae4d4; border: 1px solid #968e77; padding: clamp(.5rem,1.2vw,.9rem); border-radius: .3rem; }
.atlas-map { position: relative; border: 1px solid #889981; }
.atlas-map img { display: block; width: 100%; height: auto; }
.atlas-north { position: absolute; top: 4%; right: 3%; font: 600 .68rem/1 ui-monospace,monospace; letter-spacing:.1em; }
.atlas-gulf { position: absolute; bottom: 9%; left: 46%; font: italic clamp(.8rem,1.6vw,1.12rem)/1 Georgia,serif; color: #435c4b; letter-spacing: .03em; }
.atlas-place { display: flex; align-items: center; gap: .3rem; min-height: 44px; position: absolute; transform: translateY(-50%); color: #203a2a; font-weight: 670; font-size: clamp(.75rem,1.25vw,.92rem); }
.atlas-place i { flex: none; width: .6rem; height: .6rem; border: 2px solid #344d3b; background: #edeada; border-radius: 50%; }
.atlas-place span { background: #eae9d7; padding: .08rem .22rem; }
.atlas-place:hover span { text-decoration: underline; }
.atlas-place[aria-current] span { background: #294c34; color: #fff3db; }
.atlas-place[aria-current] i { background: #9a4f2c; outline: 2px solid #fff0cd; }
.atlas-hanko { left: 16.6%; top: 65.7%; }
.atlas-raseborg { left: 32.9%; top: 50.6%; }
.atlas-helsinki { right: 16%; top: 31.2%; flex-direction: row-reverse; }
.area-atlas figcaption, .project-plate figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .12rem .6rem; font-size: .87rem; line-height: 1.35; }
.area-atlas figcaption { margin-top: .2rem; }
.atlas-base { font-weight: 700; }
.area-atlas figcaption a { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.area-atlas a:focus-visible, .guide-sheet input:focus-visible, .web-flow a:focus-visible { outline-color: #783f23 !important; }
.project-plate { padding: clamp(.8rem,2vw,1.7rem); background: #343c32; border: 1px solid #636d5a; border-radius: .3rem; }
.project-print { display: block; position: relative; padding: .4rem; background: #ece6d8; border: 1px solid #c6bba7; border-radius: .15rem; box-shadow: 0 .45rem 1.4rem #12181038; }
.project-print img { display: block; width: 100%; height: auto; }
.project-print > svg { position: absolute; right: .65rem; bottom: .65rem; width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: .25rem; border: 1px solid #a0947b; fill: none; background: #f1ebdc; stroke: #26362a; stroke-width: 1.6; }
.project-print:hover > svg { background: #f5d9b8; }
.project-plate figcaption { margin: .85rem 0 0; color: #eee6d5; }
.project-plate figcaption small { font-size: .78rem; color: #bdc6b5; }
.reading-case .reading-opening { grid-template-columns: minmax(0,.82fr) minmax(0,1.2fr); }
.reading-case .reading-head { container-type: inline-size; }
.reading-case .reading-head h1 { font-size: clamp(2.15rem, 11.8cqw, 4.55rem); }
.reading-case .project-plate { background: linear-gradient(140deg,#575345,#35382f); border-color: #77705f; }
.guide-sheet, .web-flow { padding: clamp(1.2rem,2.3vw,2.2rem); background: #f1ebdc; color: #2e3f32; border: 1px solid #b8ac96; border-radius: .25rem; }
.guide-sheet figcaption, .web-flow figcaption { font: 400 clamp(1.5rem,2.8vw,2.3rem)/1.1 Georgia,serif; letter-spacing: -.035em; margin-bottom: 1.15rem; }
.guide-sheet p { margin-top: 1rem; color: #4f584a; font-size: .83rem; line-height: 1.5; }
.worksheet-inputs { border-top: 1px solid #a49e87; }
.worksheet-inputs label { display: grid; grid-template-columns: minmax(0,1fr) 5rem; align-items: center; gap: .6rem; min-height: 49px; border-bottom: 1px solid #bcb9a6; font-size: .93rem; }
.worksheet-inputs input { width: 100%; min-height: 40px; padding: .2rem .42rem; text-align: end; font-variant-numeric: tabular-nums; background: #fffaf0; border: 1px solid #8a9684; border-radius: .16rem; color: #203b29; color-scheme: light; }
.estimate-result { display: flex; gap: .45rem; align-items: baseline; padding-top: .9rem; font-weight: 650; }
.estimate-result output { margin-left: auto; font: 500 2rem/1.05 Georgia,serif; overflow-wrap: anywhere; }
.estimate-result small { font-weight: 500; }
.flow-drawing { padding-block: 1.3rem 1.15rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem,3vw,2rem); border-block: 1px solid #aaa68e; }
.flow-page,.flow-form { border: 1px solid #7e8877; border-radius: .25rem; padding: .7rem; display: flex; flex-direction: column; align-items: start; position: relative; background: #f7f3e8; }
.flow-page { align-self: start; }
.flow-form { margin-top: 1.65rem; }
.flow-edge { width: 100%; border-top: 3px double #9fa490; margin-bottom: .65rem; }
.flow-page strong,.flow-form strong { font: 600 clamp(.86rem,1.4vw,1.1rem)/1.25 system-ui,sans-serif; }
.flow-page i { height: 2px; width: 65%; margin-top: .8rem; background: #abab97; }
.flow-page i + i { width: 45%; margin: .32rem 0 .5rem; }
.flow-page svg { width: clamp(1.3rem, 3vw,2.05rem); height: 1.25rem; position: absolute; left: 100%; bottom: .6rem; stroke: #99613e; fill: none; stroke-width: 2; }
.flow-form small { margin-top: .8rem; font-size: .69rem; color: #485546; }
.flow-form b { margin-top: .25rem; padding: .32rem; border: 1px solid #91a088; background: #e0e5d5; width: 100%; display: flex; justify-content: space-between; font-size: .76rem; }
.web-flow a { display: flex; gap: .4rem; align-items: center; min-height: 44px; color: #54432e; font-size: .93rem; font-weight: 610; text-decoration: underline; text-underline-offset: .2em; margin-bottom: -.5rem; }
.search-related { border-top: 1px solid #687263; padding-block: clamp(1.8rem,4vw,3rem); }
.search-related h2 { margin-bottom: .55rem; }
.search-related p { color: var(--muted); max-width: 63ch; }
.search-related ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(15rem,100%),1fr)); gap: 0 1.4rem; margin-top: .85rem; }
.search-related a { display:flex; align-items:center; justify-content:space-between; gap:.6rem; min-height:46px; padding-block:.5rem; border-top:1px solid #626958; color:var(--paper); }
.search-related a::after { content:"↗"; color:var(--copper); }
.search-related a:hover { color:var(--copper); }
.studio-document { max-width: 66rem; }
.document-heading { padding-block: clamp(2.7rem,6.5vw,5.3rem); }
.document-heading p { max-width: 56ch; }
.document-layout { display: grid; grid-template-columns: minmax(12rem,.4fr) minmax(0,1fr); gap: clamp(2rem,6vw,6rem); align-items: start; border-top: 1px solid #767662; }
.document-index { margin-top: clamp(1.6rem,3.4vw,2.8rem); background: #2c342b; border-top: 2px solid #b89876; padding: 1rem; }
.document-index-label { color: #e2b888; font: 450 1.3rem/1.35 Georgia,serif; }
.document-index a > span:last-child { color: #e2b888; }
.document-chapters section { scroll-margin-top: 6rem; }
.document-chapters ul { padding-left: 1.2rem; list-style: disc; }
.document-chapters ::marker { color: var(--copper); }
.document-chapters a { color: var(--copper); text-decoration: underline; text-underline-offset: .18em; overflow-wrap: anywhere; }
.studio-missing { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr); gap: clamp(2rem,5vw,5rem); align-items:center; padding-block:clamp(3rem,8vw,8rem); }
html[data-page="missing"] body { display: flex; flex-direction: column; min-height: 100svh; }
html[data-page="missing"] .studio-missing { flex: 1; }
.missing-map { position: relative; min-height: clamp(11rem,24vw,20rem); background: #abb99f url("/assets/images/uusimaa-coast.svg") center/cover; border: .55rem solid #dfd9c7; display:grid; place-items:center; border-radius:.25rem; }
.missing-map span { font:400 clamp(5rem,12vw,11rem)/1 Georgia,serif; letter-spacing:-.07em; color:#203d2c; }
@media(max-width: 52rem) {
  .reading-opening, .reading-case .reading-opening { grid-template-columns: minmax(0,1fr); gap:1.8rem; }
  .reading-opening figure { width:min(100%,38rem); }
  .reading-head h1 { max-width:24ch; }
  .reading-next { margin-top:1.6rem; }
  .reading-grid { grid-template-columns:minmax(0,1fr); gap:0; }
}
@media(max-width: 40rem) {
  .reading-grid, .document-layout, .studio-missing { display:block; }
  .missing-map { margin:0 0 2rem; }
  .reading-opening { padding-block:1.9rem 2.2rem; }
  .reading-head h1, .reading-case .reading-head h1, .document-heading h1, .missing-copy h1 { font-size:clamp(2.15rem,8.5vw,3.5rem); }
  .studio-document .document-index { margin-top:1.1rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .reading-questions summary svg { transition:transform .15s ease; }
}
.cost-example dl { margin: .8rem 0 1rem; }
.cost-example dl div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .85rem 0; border-block-start: 1px solid #a9ab95; }
.cost-example dt { color: #475146; }
.cost-example dd { margin: 0; color: #263b2d; font: 500 clamp(1.35rem,2.6vw,2rem)/1.2 Georgia,serif; white-space: nowrap; }
