/* Homepage hero and the page-stack visual. */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero h1 { font-size: var(--wp--preset--font-size--display); margin: 14px 0 22px; }
.hero h1 em { font-style: normal; color: var(--orange-text); }
.hero .lead { margin-bottom: 28px; }

.stack-panel { background: var(--orange); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.stack-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 3px solid var(--ink); background: var(--paper); }
.seg label { cursor: pointer; padding: 8px 14px; font: 700 0.9rem var(--sans); border-right: 3px solid var(--ink); }
.seg label:last-child { border-right: 0; }
.seg label:has(:checked) { background: var(--ink); color: var(--paper); }
@media (forced-colors: active) { .seg label:has(:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.seg label:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.stack-count { font: 900 3rem/0.9 var(--display); text-align: right; }
.stack-count small { display: block; font: 700 0.72rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 559px) {
	.stack-top { flex-direction: column-reverse; align-items: stretch; }
	.seg { display: grid; grid-template-columns: repeat(3, 1fr); }
	.seg label { padding: 10px 4px; text-align: center; font-size: 0.82rem; }
	.stack-count { text-align: left; display: flex; align-items: baseline; gap: 10px; }
}
.stacks { position: relative; }
.stack { display: none; position: relative; padding: 0 0 0 22px; }
.stack::before, .stack::after { content: ""; position: absolute; left: 0; right: 22px; height: 100%; border: 3px solid var(--ink); background: var(--paper-3); }
.stack::before { top: 16px; left: 8px; right: 14px; }
.stack::after { top: 8px; left: 16px; right: 6px; background: var(--paper-2); }
.sheet { position: relative; z-index: 1; border: 3px solid var(--ink); background: var(--paper); }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 3px solid var(--ink); font-size: 0.8rem; font-weight: 600; }
.sheet-bar i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border: 2px solid var(--ink); border-radius: 50%; }
.sheet ol { list-style: none; margin: 0; padding: 4px 14px 10px; counter-reset: p; }
.sheet li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.sheet li::before { content: counter(p, decimal-leading-zero); font: 800 0.95rem var(--display); color: var(--orange-text); }
.sheet li span { font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.sheet li.more { font-weight: 500; color: var(--muted); }
.sheet li.more::before { content: "+"; content: "+" / ""; }
.stack-panel:has(#s-elec:checked) .st-elec, .stack-panel:has(#s-build:checked) .st-build, .stack-panel:has(#s-plumb:checked) .st-plumb, .stack-panel:has(#s-roof:checked) .st-roof, .stack-panel:has(#s-conv:checked) .st-conv, .stack-panel:has(#s-kitch:checked) .st-kitch, .stack-panel:has(#s-heat:checked) .st-heat, .stack-panel:has(#s-test:checked) .st-test, .stack-panel:has(#s-estate:checked) .st-estate, .stack-panel:has(#s-ifa:checked) .st-ifa, .stack-panel:has(#s-land:checked) .st-land, .stack-panel:has(#s-mort:checked) .st-mort, .stack-panel:has(#s-agency:checked) .st-agency, .stack-panel:has(#s-fire:checked) .st-fire, .stack-panel:has(#s-acct:checked) .st-acct, .stack-panel:has(#s-law:checked) .st-law, .stack-panel:has(#s-dent:checked) .st-dent, .stack-panel:has(#s-arch:checked) .st-arch { display: block; }
.stack-note { margin-top: 26px; font-size: 0.82rem; font-weight: 600; }
