.stackup-intro { max-width: 90ch; margin-top: 24px; }
.stackup-model { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); border: 1px solid var(--hairline); margin-top: 32px; }
.stackup-visual { padding: clamp(16px,3vw,32px); background: #e9e9e0; }
.stackup-visual figure { margin: 0; }
.stackup-visual svg { display: block; width: 100%; max-width: 540px; height: auto; margin-inline: auto; }
.stackup-visual svg text { fill: var(--text); font: 20px var(--sans); }
.stackup-visual figcaption { font-size: 12px; line-height: 1.8; margin-top: 12px; color: var(--muted); }
.stackup-outline, .stackup-axis { fill: none; stroke: var(--petrol); stroke-width: 1.5; }
.stackup-block-a { fill: var(--mint); stroke: var(--petrol); stroke-width: 1.5; }
.stackup-block-b { fill: #91aba0; stroke: var(--petrol); stroke-width: 1.5; }
.stackup-space { fill: var(--paper); stroke: var(--petrol); stroke-width: 1.5; stroke-dasharray: 4 3; }
.stackup-band { fill: var(--mint); }
.stackup-point { fill: var(--petrol); }
.stackup-result { margin-block: 26px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.stackup-result span { display: block; font-size: 14px; }
.stackup-result strong { display: block; font: 400 clamp(44px,5vw,66px)/1.2 var(--serif); margin-top: 8px; }
.stackup-equation { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stackup-panel { min-width: 0; padding: clamp(20px,3vw,36px); }
.stackup-panel h3 { font: 400 30px/1.2 var(--serif); margin: 0 0 22px; }
.stackup-field + .stackup-field { margin-top: 22px; }
.stackup-field label { display: block; font-size: 16px; font-weight: 600; }
.stackup-field output { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stackup-field input { display: block; width: 100%; min-width: 44px; min-height: 44px; margin: 4px 0; accent-color: var(--petrol); cursor: ew-resize; }
.stackup-field small { display: block; font-size: 12px; color: var(--muted); }
.stackup-presets { display: grid; gap: 10px; margin-top: 26px; }
.stackup-panel button { min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--petrol); color: var(--text); background: transparent; font-size: 14px; line-height: 1.6; text-align: left; }
.stackup-presets button[aria-pressed="true"] { background: var(--petrol); color: var(--paper); }
.stackup-reset { margin-top: 18px; }
.stackup-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.stackup-bounds { margin-top: 30px; padding: clamp(20px,3vw,36px); background: #e9e9e0; }
.stackup-bounds h3 { margin-top: 0; }
.stackup-bounds p, .stackup-math p { font-size: 16px; }
.stackup-table-wrap { margin-top: 32px; overflow-x: auto; }
.stackup-table-wrap:focus-visible { outline: 2px solid var(--petrol); outline-offset: 5px; }
.stackup-table { border-collapse: collapse; width: 100%; min-width: 520px; table-layout: fixed; }
.stackup-table caption { text-align: left; margin-bottom: 16px; font-size: 18px; }
.stackup-table th, .stackup-table td { border-bottom: 1px solid var(--hairline); padding: 14px 10px; vertical-align: top; text-align: left; font-size: 16px; overflow-wrap: anywhere; }
.stackup-table th:first-child { width: 32%; }
.stackup-table tbody th { font-weight: 500; }
.stackup-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stackup-math { margin-top: 28px; max-width: 85ch; }
.stackup-math p + p { margin-top: 20px; }
.stackup-questions { margin-top: 26px; }
.stackup-questions details { border-top: 1px solid var(--hairline); }
.stackup-questions summary { min-height: 44px; padding-block: 20px; font-size: 18px; cursor: pointer; }
.stackup-questions p { max-width: 85ch; padding-bottom: 20px; }
.stackup-next { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 24px; }
@media (max-width: 850px) { .stackup-model { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
  .stackup-table th, .stackup-table td { padding-inline: 5px; }
  .stackup-table th:first-child { width: 30%; }
  .stackup-next { flex-direction: column; gap: 12px; }
}
@media print { [data-stackup-controls] { display: none; } .stackup-model { display: block; } .stackup-questions details { break-inside: avoid; } }
