/* SENDA Gazette · products: the catalogue page and the eight product-line pages.
 * Builds on site.css (tokens, .section, .sechead, .table, .faqs, .stamp, .btn, .fill, .note).
 * New here: classified ads, the box score strip, the sticky in-page nav, the printable spec sheet,
 * the specimen drawing plate, the installation stepper and the comparison tables.
 * Motion is transform, opacity and stroke-dashoffset only; each piece has a reduced-motion fallback at the foot. */

:root {
  --dw-grid: color-mix(in oklch, var(--color-rule) 26%, transparent);
  --dw-screen: color-mix(in oklch, var(--color-accent) 9%, var(--color-paper-2));
}

.products .write, .product .write { margin-top: 0; }
html:not(.js) [data-print], html:not(.js) .sizes__pick, html:not(.js) .exhibit__tabs, html:not(.js) .sheet__printrow { display: none; }

/* a chip: filter options, size picker, drawing tabs */
.chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: none; color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-outlier); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.chip:hover { background: var(--color-highlight); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }

/* ================================================================= the catalogue page */

/* box score beside the headline */
.pscore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 4px double var(--color-rule-2); border-left: var(--rule-hair) solid var(--color-rule); }
.pscore > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); padding: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); }
.pscore dd { margin: 0; font: 700 var(--text-display-s)/0.95 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pscore dt { font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }

/* the filter: where will the screen live? Radios, so it filters with scripting off (:has) */
.pfilter { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-paper); border-block: var(--rule-hair) solid var(--color-rule-2); }
.pfilter__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl); padding-block: var(--space-sm); }
.pfilter fieldset { display: flex; align-items: center; gap: var(--space-sm) var(--space-lg); min-width: 0; margin: 0; padding: 0; border: 0; }
.pfilter legend { float: left; padding: 0; font: 700 var(--text-lg)/1.2 var(--font-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.pfilter__opts { display: flex; gap: var(--space-xs); min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.pfilter__opt { position: relative; flex: none; }
.pfilter__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pfilter__opt > span { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); font: 600 var(--text-sm)/1 var(--font-outlier); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.pfilter__opt:hover > span { background: var(--color-highlight); }
.pfilter__opt input:checked + span { background: var(--color-ink); color: var(--color-paper); }
.pfilter__opt input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pfilter__n { font-variant-numeric: tabular-nums; opacity: 0.7; }
.pfilter__status { flex: none; white-space: nowrap; }

.pcat:has(input[value="indoor"]:checked) .ad:not([data-place~="indoor"]),
.pcat:has(input[value="window"]:checked) .ad:not([data-place~="window"]),
.pcat:has(input[value="outdoor"]:checked) .ad:not([data-place~="outdoor"]),
.pcat:has(input[value="counter"]:checked) .ad:not([data-place~="counter"]),
.pcat:has(input[value="handheld"]:checked) .ad:not([data-place~="handheld"]) { display: none; }
.pcat:has(input[value="indoor"]:checked) .ptable tbody tr:not([data-place~="indoor"]),
.pcat:has(input[value="window"]:checked) .ptable tbody tr:not([data-place~="window"]),
.pcat:has(input[value="outdoor"]:checked) .ptable tbody tr:not([data-place~="outdoor"]),
.pcat:has(input[value="counter"]:checked) .ptable tbody tr:not([data-place~="counter"]),
.pcat:has(input[value="handheld"]:checked) .ptable tbody tr:not([data-place~="handheld"]) { opacity: 0.28; }

/* classified ads: one box per line */
.pads { padding-block: var(--space-2xl) var(--section-gap-s); }
.ads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 4px double var(--color-rule-2); border-left: var(--rule-hair) solid var(--color-rule); }
.ad { display: grid; align-content: start; gap: var(--space-sm); min-width: 0; padding: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); animation: ad-in var(--dur-long) var(--ease-out) both; }
.ad:nth-child(2) { animation-delay: 50ms; } .ad:nth-child(3) { animation-delay: 100ms; } .ad:nth-child(4) { animation-delay: 150ms; }
.ad:nth-child(5) { animation-delay: 200ms; } .ad:nth-child(6) { animation-delay: 250ms; } .ad:nth-child(7) { animation-delay: 300ms; } .ad:nth-child(8) { animation-delay: 350ms; }
@keyframes ad-in { from { opacity: 0; transform: translateY(10px); } }
.ad__no { display: flex; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ad__no span:first-child { color: var(--color-ink); font-weight: 600; white-space: nowrap; }
.ad__no span:last-child { text-align: right; }
.ad__link { display: grid; gap: var(--space-md); color: var(--color-ink); text-decoration: none; }
.ad__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.ad__name { font-size: var(--text-title); line-height: 1.15; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.ad__link:hover .ad__name { text-decoration-color: var(--color-accent); }
.ad__link:hover .photo > img { transform: scale(calc(var(--zoom, 1) * 1.03)); }
.ad__head { font-style: italic; font-weight: 500; color: var(--color-accent); }
.ad__body { color: var(--color-ink-2); }
.ad__facts { display: grid; gap: var(--space-2xs); margin: var(--space-2xs) 0 0; padding-top: var(--space-sm); border-top: 1px dotted var(--color-rule-2); }
.ad__facts > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-sm); }
.ad__facts dt { color: var(--color-muted); }
.ad__facts dd { margin: 0; color: var(--color-ink-2); }

/* comparison tables */
.ptable-wrap { border-top: 4px double var(--color-rule-2); scrollbar-color: var(--color-rule) transparent; }
.ptable-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.ptable { font-size: var(--text-md); }
.ptable thead th, .ptable tbody th, .ptable td { padding-left: var(--space-sm); padding-right: var(--space-md); transition: background-color var(--dur-short) var(--ease-out); }
.ptable tbody tr { transition: background-color var(--dur-short) var(--ease-out), opacity var(--dur-long) var(--ease-out); }
.ptable tbody th a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.ptable td { color: var(--color-ink-2); }
.ptable .fill { font-size: var(--text-sm); }
.ptable--full { min-width: 70rem; }
.ptable--full tbody th { width: 13rem; }
.ptable[data-col="2"] :is(td, th):nth-child(2), .ptable[data-col="3"] :is(td, th):nth-child(3), .ptable[data-col="4"] :is(td, th):nth-child(4), .ptable[data-col="5"] :is(td, th):nth-child(5),
.ptable[data-col="6"] :is(td, th):nth-child(6), .ptable[data-col="7"] :is(td, th):nth-child(7), .ptable[data-col="8"] :is(td, th):nth-child(8) { background: color-mix(in oklch, var(--color-highlight) 55%, transparent); }
.ptable-hint { display: none; margin-top: var(--space-sm); }
.pcompare__note { margin-top: var(--space-xl); max-width: 75ch; }
.pcompare .sechead__side .stamp { margin-top: var(--space-xs); }

.ptable--mini { min-width: 40rem; table-layout: fixed; }
.ptable--mini thead th { padding-top: var(--space-md); font: 700 var(--text-lg)/1.2 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); vertical-align: bottom; }
.ptable--mini thead th:first-child { width: 20%; font: 600 var(--text-sm)/1.3 var(--font-outlier); letter-spacing: 0; color: var(--color-muted); }
.ptable--mini thead th a { color: var(--color-ink); }
.ptable--mini tbody th { font: 600 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-ink-2); }
.ptable--mini .is-this { background: var(--color-glare); }
.ptable--mini thead .is-this { box-shadow: inset 0 3px 0 var(--color-accent); }
.ptable--mini td.is-this { color: var(--color-ink); }
.ptable__flag { display: block; margin-bottom: var(--space-2xs); color: var(--color-accent); letter-spacing: 0; }

.palso__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg) var(--space-2xl); align-items: start; padding-top: var(--space-lg); border-top: 4px double var(--color-rule-2); }
.palso h2 { font-size: var(--head-story); }
.palso { padding-bottom: var(--section-gap-s); }

/* ================================================================= a product line page */

.phero { position: relative; margin: 0; }
.phero__stamp { position: absolute; left: calc(-1 * var(--space-sm)); top: var(--space-lg); z-index: 3; background: var(--color-paper); }
.product .pagehead .dek { max-width: 46ch; }
.product .pagehead { padding-bottom: var(--space-xl); }

/* box score: the figures we can print today, and one that is still out */
.pbox { background: var(--color-paper-2); border-block: 4px double var(--color-rule-2); }
.pbox__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.pbox__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); min-width: 0; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.pbox__grid > div + div { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.pbox dd { margin: 0; font: 700 clamp(2rem, 2.4vw + 1rem, 3.5rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pbox dt { font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); max-width: 30ch; }
.pbox__open dd { display: flex; align-items: center; min-height: clamp(2rem, 2.4vw + 1rem, 3.5rem); font: 500 var(--text-sm)/1.4 var(--font-outlier); letter-spacing: 0; }
.pbox__flag { color: var(--color-accent); font-weight: 600; }
.pbox__flag::after { content: ":"; }

/* the sticky in-page nav */
.psub { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.psub__in { display: flex; align-items: center; gap: var(--space-lg); min-height: 56px; }
.psub__name { flex: none; padding-right: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule); font: 700 var(--text-md)/1 var(--font-display); white-space: nowrap; }
.psub ul { display: flex; flex: 1 1 auto; gap: var(--space-xs) var(--space-lg); min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.psub li a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-2xs); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-outlier); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.psub li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-short) var(--ease-out); }
.psub li a:hover::after, .psub li a[aria-current]::after { transform: scaleX(1); }
.psub li a[aria-current] { color: var(--color-accent); }
.psub li a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.psub__cta { flex: none; min-height: 40px; }

.psec { scroll-margin-top: var(--space-2xl); }
.product #related { padding-top: 0; }

/* ---------- the spec sheet: a one-page datasheet ---------- */

.sheet__printrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.sheet { position: relative; padding: var(--space-xl) var(--space-xl) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-glare); box-shadow: 8px 8px 0 var(--color-paper-3); }
.sheet__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-xl); align-items: baseline; padding-bottom: var(--space-lg); border-bottom: 4px double var(--color-rule-2); }
.sheet__plate { font: 700 var(--text-xl)/1 var(--font-display); letter-spacing: -0.02em; }
.sheet__kind { display: flex; gap: var(--space-md); justify-self: end; }
.sheet__kind span + span { padding-left: var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
.sheet__title { grid-column: 1 / -1; max-width: none; margin-top: var(--space-md); padding-right: 16rem; font-size: var(--head-story); line-height: 1.05; }
.sheet__stamp { position: absolute; right: var(--space-xl); top: 5.25rem; background: var(--color-glare); }
.sheet__cols { columns: 2; column-gap: var(--space-2xl); column-rule: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-lg); }
.sheet__table { break-inside: avoid; margin-bottom: var(--space-lg); font-size: var(--text-md); }
.sheet__table caption { padding: var(--space-sm) 0 var(--space-xs); border-bottom: 2px solid var(--color-rule-2); font: 700 var(--text-lg)/1.2 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.sheet__table tbody th, .sheet__table td { padding-block: var(--space-xs); }
.sheet__table tbody th { width: 42%; padding-left: var(--space-2xs); font: 500 var(--text-sm)/1.45 var(--font-outlier); color: var(--color-ink-2); }
.sheet__table td { padding-right: var(--space-2xs); line-height: 1.4; }
.sheet__table .fill { font-size: var(--text-sm); white-space: nowrap; }
.sheet__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-sm) var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.sheet__foot p { max-width: none; }
.sheet__contact { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); justify-content: flex-end; text-align: right; }
.sheet__contact a { color: var(--color-ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.sheet__url { display: none; }

/* ---------- the design drawing: a specimen plate and its key ---------- */

.exhibit { display: grid; gap: var(--space-xl); }
.exhibit__tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.exhibit__name { margin-bottom: var(--space-md); font-size: var(--text-title); }
.exhibit__view + .exhibit__view { margin-top: var(--space-xl); }
.exhibit.is-tabbed .exhibit__view { margin-top: 0; }
.exhibit.is-tabbed .exhibit__view:not(.is-current) { display: none; }
.exhibit.is-tabbed .exhibit__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.exhibit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }

.dwplate { position: sticky; top: var(--space-3xl); margin: 0; border: var(--rule-hair) solid var(--color-rule-2); background-color: var(--color-glare); background-image: linear-gradient(var(--dw-grid) 1px, transparent 1px), linear-gradient(90deg, var(--dw-grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.dwplate__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg) 0; }
.dwplate__tag { padding: var(--space-2xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); font-weight: 600; }
.dwplate__stamp { background: var(--color-glare); }
.dw { width: 100%; height: auto; padding: var(--space-sm) var(--space-md) var(--space-md); color: var(--color-ink); overflow: visible; }
.dw-body { fill: var(--color-glare); stroke: currentColor; stroke-width: 1.7; stroke-linejoin: miter; }
.dw-line { fill: none; stroke: currentColor; stroke-width: 1.7; }
.dw-thin { stroke-width: 1; }
.dw-face { fill: none; stroke: var(--color-accent); stroke-width: 4; }
.dw-ghost { fill: none; stroke: var(--color-muted); stroke-width: 1; stroke-dasharray: 6 4; }
.dw-screen { fill: var(--dw-screen); stroke: currentColor; stroke-width: 0.8; }
.dw-glint { stroke: var(--color-glare); stroke-width: 2; stroke-linecap: round; }
.dw-hatch line { stroke: var(--color-muted); stroke-width: 0.8; }
.dw-dimline, .dw-ext, .dw-tick, .dw-leader { fill: none; stroke: var(--color-accent); stroke-width: 1; }
.dw-tick { stroke-width: 1.6; }
.dw-ext { stroke-width: 0.7; }
.dw-diag { stroke: var(--color-accent); stroke-width: 1; stroke-dasharray: 3 4; }
.dw-num { font: 600 13px/1 var(--font-outlier); fill: var(--color-accent); font-variant-numeric: tabular-nums; }
.dw-num--halo { paint-order: stroke; stroke: var(--dw-screen); stroke-width: 6px; stroke-linejoin: round; }
.dw-view { font: 500 12px/1 var(--font-outlier); fill: var(--color-muted); }
.dw-leader { stroke: var(--color-ink-2); stroke-width: 0.8; }
.dw-dot { fill: var(--color-ink); }
.dw-b { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(var(--bs, 1)); }
.dw-bal { fill: var(--color-glare); stroke: var(--color-ink); stroke-width: 1.4; }
.dw-baln { font: 600 13px/1 var(--font-outlier); fill: var(--color-ink); font-variant-numeric: tabular-nums; }
.dw-num.is-tick { animation: dw-tick var(--dur-long) var(--ease-out); }
@keyframes dw-tick { from { opacity: 0; } }

/* the lines draw themselves in, the cabinet first, then the dimensions, then the numbered balloons */
.js [data-draw] .dw-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-in-out); transition-delay: calc(var(--d, 0) * 55ms); animation: dw-safety 0s 8s forwards; }
.js [data-draw] .dw-fade { opacity: 0; transition: opacity 500ms var(--ease-out); transition-delay: calc(var(--d, 0) * 55ms + 250ms); animation: dw-safety 0s 8s forwards; }
.js [data-draw] .dw-call { opacity: 0; transition: opacity var(--dur-short) var(--ease-out); transition-delay: calc(var(--d, 0) * 55ms + 400ms); animation: dw-safety 0s 8s forwards; }
.js [data-draw] .dw-call .dw-b { transform: scale(calc(var(--bs, 1) * 0.4)); transition: transform var(--dur-long) var(--ease-stamp); transition-delay: calc(var(--d, 0) * 55ms + 400ms); animation: dw-safety-b 0s 8s forwards; }
.js [data-draw].is-drawn .dw-draw { stroke-dashoffset: 0; }
.js [data-draw].is-drawn .dw-fade, .js [data-draw].is-drawn .dw-call { opacity: 1; }
.js [data-draw].is-drawn .dw-call .dw-b { transform: scale(var(--bs, 1)); }
@keyframes dw-safety { to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes dw-safety-b { to { transform: scale(var(--bs, 1)); } }

/* the title block, as on a drawing sheet */
.titleblock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); background: var(--color-glare); color: var(--color-ink-2); }
.titleblock > span { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3xs); min-width: 0; padding: var(--space-xs) var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
.titleblock__cell { white-space: nowrap; }
.titleblock__mark { grid-row: 1 / span 2; border-left: 0 !important; font: 700 var(--text-md)/1.1 var(--font-display); color: var(--color-ink); letter-spacing: -0.02em; white-space: nowrap; }
.titleblock__name { grid-column: 2 / -1; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-start !important; align-items: baseline; gap: var(--space-2xs) var(--space-md) !important; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-weight: 600; font-size: var(--text-md); }
.titleblock__name span { font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); }
.titleblock__status { color: var(--color-accent); }

.exhibit__key { display: grid; gap: var(--space-md); align-content: start; }
.exhibit__key .label { margin: 0; padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); font: 600 var(--text-sm)/1.3 var(--font-outlier); letter-spacing: 0; color: var(--color-ink-2); }
.exhibit__key .label:not(:first-child) { margin-top: var(--space-md); }
.callouts { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; counter-reset: call; }
.callouts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; counter-increment: call; }
.callouts li::before { content: counter(call); display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--color-ink); border-radius: 50%; background: var(--color-glare); font: 600 var(--text-xs)/1 var(--font-outlier); font-variant-numeric: tabular-nums; transform: translateY(2px); }
.dimlegend { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; font: 500 var(--text-sm)/1.5 var(--font-outlier); color: var(--color-ink-2); }
.dimlegend__open { margin-top: var(--space-2xs); color: var(--color-ink); }
.dimlegend__open .fill { white-space: nowrap; }

.sizes { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.sizes__pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.sizes__pick .label { flex-basis: 100%; }
.sizes__table { font-size: var(--text-sm); }
.sizes__table caption { font: 600 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-ink-2); padding-bottom: var(--space-xs); }
.sizes__table thead th { padding-block: var(--space-xs); }
.sizes__table tbody th, .sizes__table td { padding-block: var(--space-xs); padding-left: var(--space-xs); white-space: nowrap; }
.sizes__table tbody th { font: 600 var(--text-sm)/1.4 var(--font-outlier); }
.js .sizes__table tbody tr { cursor: pointer; }
.sizes__table tbody tr.is-current { background: var(--color-highlight); }
.nest { margin: 0; }
.nest__svg { max-width: 100%; height: auto; overflow: visible; }
.nest__svg rect { fill: none; stroke: var(--color-ink-2); stroke-width: 1; }
.nest__svg text { font: 600 11px/1 var(--font-outlier); fill: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.nest__svg g { opacity: 0.4; transition: opacity var(--dur-short) var(--ease-out); }
.nest__svg g.is-current { opacity: 1; }
.nest__svg g.is-current rect { fill: var(--dw-screen); stroke: var(--color-accent); stroke-width: 2; }
.nest__svg g.is-current text { fill: var(--color-accent); }
.sizes__note { font-size: var(--text-sm); }

/* ---------- the installation guide: an ordered list that becomes a stepper ---------- */

.pinstall { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.pinstall__main { display: grid; gap: var(--space-2xl); }
.pinstall__side { position: sticky; top: var(--space-3xl); display: grid; gap: var(--space-sm); justify-items: start; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-left: 4px solid var(--color-accent); background: var(--color-paper-2); }
.pinstall__side h3 { font-size: var(--text-title); }
.pinstall__side p:not(.stamp) { color: var(--color-ink-2); }
.pinstall__side .stamp { margin-bottom: var(--space-xs); }

.stepper__name { margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 4px double var(--color-rule-2); max-width: none; font-size: var(--text-title); }
.steps { position: relative; display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--color-rule); transition: background-color var(--dur-long) var(--ease-out); }
.stepper.is-on:not(.is-all) .step.is-done::after { background: var(--color-ink); }
.step { position: relative; z-index: 1; display: grid; gap: var(--space-2xs); padding: 0 0 var(--space-lg) 68px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--color-ink); border-radius: 50%; background: var(--color-paper); font: 700 var(--text-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-stamp); }
.step__h { display: grid; gap: var(--space-3xs); max-width: none; font-size: var(--text-title); line-height: 1.2; }
.step__n { display: block; letter-spacing: 0; }
.step__p { max-width: 58ch; color: var(--color-ink-2); }
.step__btn { display: grid; gap: var(--space-3xs); width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.step__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.step__btn:hover .step__t { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
/* stepper on: one step open at a time */
.stepper.is-on:not(.is-all) .step:not(.is-current) .step__p { display: none; }
.stepper.is-on:not(.is-all) .step:not(.is-current) .step__t { color: var(--color-ink-2); }
.stepper.is-on .step.is-current .step__p { animation: step-in var(--dur-long) var(--ease-out); }
.stepper.is-on:not(.is-all) .step.is-done::before { background: var(--color-ink); color: var(--color-paper); }
.stepper.is-on:not(.is-all) .step.is-current::before { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); transform: scale(1.08); }
@keyframes step-in { from { opacity: 0; transform: translateY(-8px); } }
.stepper__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding-left: 68px; }
.stepper__status { margin-right: auto; font-variant-numeric: tabular-nums; }
.stepper__all { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-accent); font: 600 var(--text-sm)/1 var(--font-outlier); text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; }
.stepper__all:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.stepper.is-all .stepper__nav { display: none; }

/* ---------- related ---------- */

.prelated__h { margin-bottom: var(--space-lg); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); max-width: none; font: 600 var(--text-sm)/1.3 var(--font-outlier); letter-spacing: 0; color: var(--color-ink-2); }
.prelated__two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); margin-top: var(--space-2xl); align-items: start; }
.prelated__rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.prelated__note { margin-top: var(--space-md); }
.pstories { display: grid; margin: 0; padding: 0; list-style: none; }
.pstory { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); text-decoration: none; }
.pstories li:first-child .pstory { padding-top: 0; }
.pstory:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.pstory__title { font: 700 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.pstory:hover .pstory__title { text-decoration-color: var(--color-accent); }
.pstory__dek { color: var(--color-ink-2); }

/* ================================================================= narrower screens */

@media (max-width: 75rem) {
  .ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit__grid { grid-template-columns: minmax(0, 1fr); }
  .exhibit__key { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2xl); }
  .exhibit__key > .sizes, .exhibit__key > .note { grid-column: 1 / -1; }
  .exhibit__key > .label { grid-row: 1; margin-top: 0 !important; }
  .dwplate { position: relative; top: auto; }
  .sheet__title { padding-right: 0; }
  .sheet__stamp { position: static; justify-self: start; grid-column: 1 / -1; margin-top: var(--space-sm); }
}
@media (max-width: 60rem) {
  .pfilter__in { flex-direction: column; align-items: stretch; gap: var(--space-2xs); }
  .pfilter fieldset { flex-direction: column; align-items: stretch; gap: var(--space-xs); }
  .pfilter legend { float: none; font-size: var(--text-md); }
  .pfilter__status { font-size: var(--text-xs); }
  .ptable-hint { display: block; }
  .ptable tbody th { position: sticky; left: 0; z-index: 1; background: var(--color-paper-2); box-shadow: 1px 0 0 var(--color-rule); }
  .ptable tbody tr:hover th { background: var(--color-highlight); }
  .ptable--full tbody th { width: 9.5rem; }
  .palso__grid, .pinstall, .prelated__two, .sheet__foot { grid-template-columns: minmax(0, 1fr); }
  .pinstall__side { position: static; }
  .pbox__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbox__grid > div { padding: var(--space-md) var(--space-md) var(--space-md) 0; }
  .pbox__grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pbox__grid > div:nth-child(even) { padding-left: var(--space-md); }
  .pbox__grid > div:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .psub__name { display: none; }
  .sheet__cols { columns: 1; }
  .sheet__contact { justify-content: flex-start; text-align: left; }
  .phero__stamp { left: var(--space-sm); }
  /* the drawing shrinks with the page, so its lettering grows in drawing units */
  .dw-num { font-size: 24px; }
  .dw-baln { font-size: 21px; }
  .dw-view { font-size: 19px; }
  .dw { --bs: 1.55; padding: var(--space-xs); }
  .dw-body, .dw-line { stroke-width: 2.4; }
  .dw-thin { stroke-width: 1.5; }
  .dw-dimline, .dw-ext, .dw-leader, .dw-diag { stroke-width: 1.5; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock__mark { grid-row: auto; grid-column: 1 / -1; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .titleblock__name { grid-column: 1 / -1; border-left: 0 !important; }
  .titleblock__cell { white-space: normal; }
  .titleblock__cell:nth-of-type(3) { border-left: 0; }
  .titleblock__status { grid-column: 1 / -1; border-left: 0 !important; border-top: var(--rule-hair) solid var(--color-rule); }
  .dwplate { position: relative; top: auto; }
}
@media (max-width: 40rem) {
  .ads { grid-template-columns: minmax(0, 1fr); }
  .pscore > div { padding: var(--space-md); }
  .psub__cta { display: none; }
  .psub ul { gap: var(--space-md); }
  .sheet { padding: var(--space-lg) var(--space-md) var(--space-md); box-shadow: 4px 4px 0 var(--color-paper-3); }
  .sheet__head { grid-template-columns: minmax(0, 1fr); }
  .sheet__kind { justify-self: start; }
  .sheet__table tbody th { width: 44%; }
  .exhibit__key { grid-template-columns: minmax(0, 1fr); }
  .exhibit__key > .label { grid-row: auto; }
  .exhibit__key > .label:not(:first-child) { margin-top: var(--space-md) !important; }
  .step { padding-left: 56px; }
  .step::before { width: 40px; height: 40px; }
  .step:not(:last-child)::after { left: 19px; top: 40px; }
  .stepper__ctl { padding-left: 0; }
  .prelated__rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptable--mini { min-width: 34rem; }
  .ptable--mini .fill { white-space: normal; }
  .ptable--mini thead th { font-size: var(--text-md); }
}

/* ================================================================= reduced motion */

@media (prefers-reduced-motion: reduce) {
  .js [data-draw] .dw-draw { stroke-dashoffset: 0; }
  .js [data-draw] .dw-fade, .js [data-draw] .dw-call { opacity: 1; }
  .js [data-draw] .dw-call .dw-b { transform: scale(var(--bs, 1)); }
  .ad { animation: none; }
  .stepper.is-on .step.is-current::before { transform: none; }
}

/* ================================================================= print: the spec sheet alone, on one page */

@media print {
  @page { size: A4; margin: 12mm; }
  .product .mast, .product .foot, .product main > :not(#spec), .product #spec .sechead, .product .progress { display: none !important; }
  body.product { background: none; }
  .product #spec { padding: 0; }
  .product #spec .container { max-width: none; padding: 0; }
  .product .sheet { padding: 0; border: 0; background: none; box-shadow: none; }
  .product .sheet__plate { font-size: 20pt; }
  .product .sheet__title { font-size: 22pt; padding-right: 0; }
  .product .sheet__stamp { position: static; justify-self: start; grid-column: 1 / -1; margin-top: 6pt; background: none; opacity: 1 !important; transform: rotate(-3deg) !important; }
  .product .sheet__cols { columns: 2; column-gap: 10mm; margin-top: 5mm; }
  .product .sheet__table { margin-bottom: 4mm; font-size: 9pt; }
  .product .sheet__table caption { font-size: 11pt; padding-top: 0; }
  .product .sheet__table tbody th { font-size: 8pt; }
  .product .sheet__table tbody th, .product .sheet__table td { padding-block: 2.5pt; }
  .product .sheet__table tbody tr:hover { background: none; }
  .product .sheet__foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); font-size: 8pt; }
  .product .sheet__contact { justify-content: flex-end; text-align: right; }
  .product .sheet__url { display: inline; }

  .js [data-ink], .js .stamp[data-stamp] { opacity: 1 !important; }
  .js [data-ink] { transform: none !important; }
}
