/* King Supplies. Palette from the finishes: galvanized page, steel ink, white plates for the product photos,
   chromate gold (the yellow-zinc finish) as the one accent. One family, Archivo, with width doing the work:
   condensed heavy for headings, normal width for reading. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Extended Latin (Polish, Czech, Turkish… 2026-12-02), Google Fonts' latin-ext subset; loaded only when such letters appear. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --zinc: #E6E9EC;
  --zinc-2: #D8DDE2;
  --ink: #18212B;
  --steel: #545F69;
  --plate: #FFFFFF;
  --gold: #E2B43B;
  --gold-deep: #9A7413;
  --rule: #C5CCD3;
  --ok: #1F6B45;
  --bad: #A3261B;
  --wrap: 76rem;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --r: 3px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--zinc); color: var(--ink);
  font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif; font-stretch: 100%;
  font-feature-settings: 'tnum' 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-stretch: 72%; font-weight: 780; line-height: 1; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; font-stretch: 80%; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: .5rem; top: -3rem; background: var(--gold); color: var(--ink); padding: .5rem .8rem; z-index: 20; }
.skip:focus { top: .5rem; }
.print-brand { display: none; }
.num, .sku, .grid td, .tile-meta { font-variant-numeric: tabular-nums; }

/* ---- header / footer ---- */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-stretch: 68%; font-weight: 820; font-size: 1.55rem; letter-spacing: .01em; }
.mark { width: 2.1rem; height: auto; color: var(--gold); }
.mark .cut { fill: var(--ink); }
.top-end { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2rem); font-weight: 560; font-size: .98rem; }
.nav a { white-space: nowrap; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .4rem; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gold); }
.qcount { background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 750; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 1rem; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.qcount[hidden] { display: none; }

.foot { background: var(--ink); color: #C9D0D6; margin-top: clamp(3rem, 8vw, 6rem); padding: 3rem 0 2.5rem; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 2rem; }
.foot h2 { font-size: 1.1rem; color: #fff; margin-bottom: .7rem; font-stretch: 85%; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; }
.foot-brand b { color: #fff; font-stretch: 75%; font-size: 1.2rem; }
.foot .fine { margin-top: 1rem; font-size: .82rem; color: #97A2AC; max-width: 34ch; }

/* ---- buttons, pills ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: inherit; font-weight: 650; font-stretch: 90%; padding: .7rem 1.25rem; border-radius: var(--r); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--plate); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--steel); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link:hover { color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pill, .seg { position: relative; display: inline-block; }
.pill input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill > span { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border: 1px solid var(--rule); background: var(--plate); border-radius: 2rem; font-size: .92rem; font-weight: 520; white-space: nowrap; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pill:hover > span { border-color: var(--ink); }

/* finish swatches: tiny metal chips */
.swatch { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(24, 33, 43, .25); }
.sw-ZN { background: linear-gradient(135deg, #F4F7FA, #B5C1CC 45%, #E8EDF2 62%, #95A4B2); }
.sw-CG { background: linear-gradient(135deg, #E9B48E, #B8673F 50%, #D98E62 65%, #8E4628); }
.sw-PL { background: linear-gradient(135deg, #5C636A, #23282D 55%, #474E55 70%, #1A1E22); }
.sw-HG { background: linear-gradient(135deg, #D2D6D9, #959CA2 40%, #C2C7CB 55%, #82898F); }
.sw-ZY { background: linear-gradient(135deg, #F6E28A, #CFA32A 45%, #E9CD6B 58%, #B98A1C 80%, #9DAF6A); }

/* ---- hero: hangers on threaded rod from a strut channel ---- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-stretch: 64%; font-weight: 820; line-height: .93; max-width: 12ch; }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 46ch; color: #2C3742; }
.hero .lede { margin-top: 1.3rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.promise { margin: 1.2rem 0 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 760; font-stretch: 80%; line-height: 1.15; padding-inline-start: .8rem; border-inline-start: 5px solid var(--gold); }
.promise + .lede { margin-top: .9rem; }
.rail { background: var(--plate); border-radius: var(--r); padding: 0 0 1rem; overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.channel { display: block; width: 100%; height: 2.6rem; }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: .5rem; padding: 0 1rem 1.5rem; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; padding-top: var(--rod); }
.drop img { width: 100%; max-width: 15rem; position: relative; }
/* threaded rod: drawn above the photo, ending where the part's top boss sits (--stop, % of the image) */
.rod { position: absolute; top: 0; left: 50%; width: 7px; margin-left: -3.5px; z-index: 1;
  height: calc(var(--rod) + var(--stop) * min(15rem, 100%) / 100);
  background: repeating-linear-gradient(180deg, #9AA4AE 0 2px, #D4D9DE 2px 4px), #A9B2BA; border-radius: 0 0 1px 1px; }
.d1 { --rod: 1.25rem; --stop: 15; }
.d2 { --rod: 4.5rem; --stop: 21; }
.d3 { --rod: 2.6rem; --stop: 20; }
.drop-label { font-size: .88rem; font-weight: 600; font-stretch: 85%; color: var(--steel); text-align: center; line-height: 1.2; max-width: 12ch; }
.drop:hover .drop-label { color: var(--ink); text-decoration: underline; }

/* ---- category sections and the parts-bin tiles ---- */
.cat { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--rule); }
.cat-in { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cat-head { position: sticky; top: 5rem; }
.cat-head h2 a { text-decoration: none; }
.cat-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.cat-head p { color: var(--steel); margin: .7rem 0 .9rem; max-width: 30ch; }
.more { font-weight: 600; font-size: .95rem; }
/* a parts bin: white cells sharing 1px walls; empty trailing cells stay page-coloured */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.tile { background: var(--plate); border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile a { display: flex; flex-direction: column; height: 100%; padding: .9rem 1rem 1rem; text-decoration: none; }
.tile .plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tile-name { font-weight: 720; font-stretch: 82%; font-size: 1.12rem; line-height: 1.15; margin-top: .4rem; }
.tile-meta { color: var(--steel); font-size: .92rem; margin-top: .2rem; }
.tile-fin { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-top: auto; padding-top: .6rem; font-size: .8rem; color: var(--steel); }
.chip { display: inline-flex; align-items: center; gap: .3rem; }
.tile a:hover .tile-name { text-decoration: underline; text-decoration-color: var(--gold-deep); }
.tile a:hover { box-shadow: inset 0 -3px 0 var(--gold); }
.tile[hidden] { display: none; }

/* ---- finishes ---- */
.finishes { padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--ink); color: #fff; }
.sec-lede { color: var(--steel); max-width: 56ch; margin-top: .7rem; font-size: 1.08rem; }
.finishes .sec-lede { color: #B8C1C9; }
.fin-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.metal { display: block; height: 4.5rem; border-radius: var(--r); margin-bottom: .9rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.fin-list p { color: #C2CAD1; font-size: .95rem; margin: .5rem 0 0; }
.fin-list .fin-count a { color: var(--gold); font-weight: 600; }

/* ---- how quoting works (a real sequence, so it is numbered) ---- */
.how { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font-stretch: 62%; font-weight: 820; font-size: 3.2rem; line-height: 1; color: var(--gold-deep); margin-bottom: .5rem; }
.steps p { color: var(--steel); margin-top: .5rem; max-width: 34ch; }

/* ---- products page ---- */
.page-head { padding: clamp(2rem, 5vw, 3.2rem) 0 1.5rem; }
.filters { display: grid; gap: .8rem; margin-top: 1.5rem; }
.filters fieldset { display: flex; flex-wrap: wrap; gap: .4rem; }
.search input { width: 100%; max-width: 34rem; font: inherit; padding: .75rem 1rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--plate); }
.count { color: var(--steel); font-size: .95rem; margin: 0 0 .8rem; }
.empty { padding: 2rem; background: var(--plate); border-radius: var(--r); }

/* ---- family page ---- */
.crumbs { padding-top: 1.4rem; font-size: .92rem; color: var(--steel); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: '/'; margin-inline-end: .3rem; color: var(--rule); }
.crumbs a { color: var(--steel); }
.crumbs + .page-head { padding-top: 1rem; }
.fam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: 1.2rem; align-items: start; }
.plate { background: var(--plate); display: block; }
.plate-lg { border-radius: var(--r); padding: clamp(.5rem, 2vw, 1.5rem); }
.plate-lg img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.thumbs button { width: 5rem; padding: .2rem; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.fam-info h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.fam-info .lede { margin: 1rem 0; }
.features { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .35rem; }
.features li { padding-inline-start: 1.2rem; position: relative; font-weight: 560; }
.features li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: .55rem; height: .55rem; background: var(--gold); }
.finish-notes { margin: 1.5rem 0 0; display: grid; gap: .8rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.finish-notes dt { font-weight: 680; display: flex; align-items: center; gap: .45rem; }
.finish-notes dd { margin: .15rem 0 0; color: var(--steel); font-size: .96rem; }

.order { margin-top: clamp(2rem, 5vw, 3.5rem); }
.order-head { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; margin-bottom: 1rem; }
.order-head h2 { margin-inline-end: auto; }
.fin-switch { display: flex; flex-wrap: wrap; gap: .4rem; }
.units { display: flex; align-items: center; gap: 0; font-size: .9rem; }
.units legend { float: inline-start; margin-inline-end: .6rem; color: var(--steel); }
.seg > span { display: block; padding: .3rem .65rem; border: 1px solid var(--rule); background: var(--plate); margin-inline-start: -1px; font-weight: 560; }
.seg:first-of-type > span { border-start-start-radius: var(--r); border-end-start-radius: var(--r); }
.seg:last-of-type > span { border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-scroll { overflow-x: auto; background: var(--plate); border-radius: var(--r); }
.grid { width: 100%; border-collapse: collapse; font-size: .98rem; }
.grid th, .grid td { padding: .55rem .9rem; text-align: start; border-bottom: 1px solid var(--zinc-2); white-space: nowrap; vertical-align: middle; }
.grid thead th { font-size: .85rem; font-weight: 640; color: var(--steel); background: #F4F6F7; border-bottom: 1px solid var(--rule); }
.grid tbody th { font-weight: 700; }
.grid td .swatch { margin-inline-end: .4rem; vertical-align: -1px; }
.grid .num { text-align: end; }
.grid .sku { color: var(--steel); letter-spacing: .01em; }
.grid tr.off { display: none; }
.grid tbody tr:hover { background: #FAFBF6; }
.qty-h { width: 8rem; }
.qty input { width: 6.5rem; font: inherit; font-variant-numeric: tabular-nums; padding: .35rem .5rem; border: 1px solid var(--rule); border-radius: var(--r); text-align: end; background: #fff; }
.qty input:focus { border-color: var(--ink); }
.qty input.has { border-color: var(--ink); background: #FFF8E3; font-weight: 650; }
.order-fn { margin: .6rem 0 0; font-size: .9rem; }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1rem; }
.hint { color: var(--steel); margin: 0 auto 0 0; }
.hint.ok { color: var(--ok); font-weight: 600; }
/* Dimensions and ratings: the gold letter key ties each column to the drawing. */
.dims { margin-top: clamp(2rem, 5vw, 3.5rem); }
.dims > h2 { margin-bottom: .8rem; }
.dims-body { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.2rem 2rem; align-items: start; margin-bottom: 1.2rem; }
.dims-fig { margin: 0; background: var(--plate); border: 1px solid var(--rule); border-radius: var(--r); }
.dims-fig img { display: block; width: 100%; height: auto; }
.dims-facts { margin: 0; display: grid; gap: .7rem; }
.dims-facts dt { font-size: .85rem; font-weight: 640; color: var(--steel); }
.dims-facts dd { margin: .1rem 0 0; max-width: 60ch; }
.dims-notes { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; max-width: 62ch; color: var(--steel); }
.dims-notes li { padding-inline-start: 1.2rem; position: relative; }
.dims-notes li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: .55rem; height: 2px; background: var(--steel); }
.dims-table thead th { vertical-align: bottom; }
.dl { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .25rem; margin-inline-end: .4rem; background: var(--gold); color: var(--ink); font-weight: 760; font-size: .8rem; border-radius: 2px; vertical-align: 1px; }
.dims .hint { margin: .7rem 0 0; max-width: 70ch; font-size: .92rem; }
.dims .units legend { float: inline-start; }
@media (max-width: 48rem) { .dims-body { grid-template-columns: 1fr; } .dims-fig { max-width: 22rem; } }
.related { margin-top: clamp(2.5rem, 6vw, 4rem); }
/* Selling points: an ink band straight after the hero, the one loud block on the home page. */
.why { background: var(--ink); color: #fff; padding: clamp(1.8rem, 4vw, 2.6rem) 0; }
.why h2 { color: #fff; margin-bottom: 1.4rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2.2rem; }
.why-list li { border-top: 4px solid var(--gold); padding-top: 1rem; }
.why-list h3 { color: #fff; font-size: clamp(1.35rem, 2vw, 1.65rem); font-stretch: 76%; line-height: 1.05; }
.why-list p { color: #C9D0D6; margin: .45rem 0 0; font-size: 1rem; line-height: 1.45; }
.why-more { margin: 1.4rem 0 0; }
.why-more a { color: var(--gold); font-weight: 650; }
.assure { list-style: none; margin: 1.4rem 0 0; padding: .9rem 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; background: var(--plate); border: 1px solid var(--rule); border-inline-start: 4px solid var(--gold); border-radius: var(--r); font-size: .95rem; }
.assure li { font-weight: 600; }
.assure li:last-child { font-weight: 400; color: var(--steel); }
.about > * { max-width: 50rem; }
.about-sec { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.about-sec h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.about-sec p { font-size: 1.08rem; line-height: 1.65; max-width: 68ch; margin: 0; }
.about-sec:first-child { border-top: 3px solid var(--ink); }
.about-contact { margin: 1.6rem 0 0; font-size: 1.08rem; font-weight: 600; }
.about-contact a { white-space: nowrap; }
.about-guides { color: var(--steel); margin: 1.6rem 0 0; }
.about .cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.related h2 { margin-bottom: 1rem; }

/* ---- quote page ---- */
.quote { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: var(--gap); align-items: start; }
.q-empty { background: var(--plate); padding: 2rem; border-radius: var(--r); }
.q-empty h2 { margin-bottom: .7rem; }
.qtable td { vertical-align: middle; }
.qpart { display: flex; align-items: center; gap: .8rem; white-space: normal; text-decoration: none; min-width: 14rem; }
.qpart img { width: 3.5rem; height: 3.5rem; flex: none; }
.qpart b { display: block; font-stretch: 85%; }
.qpart > span > span { color: var(--steel); font-size: .9rem; }
.qpart:hover b { text-decoration: underline; }
.q-tools { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .8rem; color: var(--steel); font-size: .95rem; }
.q-tools span { margin-inline-end: auto; }
.q-form { background: var(--plate); padding: 1.5rem; border-radius: var(--r); display: grid; gap: .9rem; position: sticky; top: 5rem; }
.q-form h2 { font-size: 1.6rem; }
.field label { display: block; font-weight: 620; font-size: .95rem; margin-bottom: .3rem; }
.opt { color: var(--steel); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #A9B3BC; border-radius: var(--r); background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.bad { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.sent { background: var(--plate); padding: 1.5rem; border-radius: var(--r); border-top: 4px solid var(--gold); }
.sent h2 { margin-bottom: .6rem; }

/* ---- responsive ---- */
@media (max-width: 62rem) {
  .fin-list { grid-template-columns: repeat(3, 1fr); }
  .cat-in { grid-template-columns: 1fr; }
  .cat-head { position: static; }
  .quote { grid-template-columns: 1fr; }
  .q-form { position: static; }
}
@media (max-width: 48rem) {
  .hero-in, .fam { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .fin-list { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile a { padding: .6rem .7rem .8rem; }
  .nav { font-size: .92rem; }
  .order-head h2 { width: 100%; }
}
/* order table on phones: one stacked row per part, quantity box always in view on the right */
@media (max-width: 40rem) {
  .order .table-scroll { overflow: visible; }
  .order .grid thead { display: none; }
  .order .grid tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .8rem; row-gap: .1rem; position: relative; padding-block: .7rem; padding-inline: .9rem 8rem; border-bottom: 1px solid var(--zinc-2); }
  .order .grid tbody tr.off { display: none; }
  .order .grid tbody th, .order .grid tbody td { border: 0; padding: 0; white-space: normal; }
  .order .grid .c-size { font-size: 1.1rem; }
  .order .grid .sku { flex-basis: 100%; font-size: .92rem; }
  .order .grid .c-spec { text-align: start; font-size: .85rem; color: var(--steel); }
  .order .grid .c-spec::before { content: attr(data-label) ' '; }
  .order .grid .c-qty { position: absolute; inset-inline-end: .9rem; top: 50%; transform: translateY(-50%); }
  .order .grid .c-qty input { width: 6rem; }
}
@media (max-width: 30rem) {
  .brand span { font-size: 1.3rem; }
  .nav a[href="/#finishes"] { display: none; }
  .drop-label { font-size: .78rem; }
  .drops { padding: 0 .4rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- family page extras ---- */
.aka { color: var(--steel); font-size: .95rem; margin: .8rem 0 0; }
.sizes-line { color: var(--steel); font-size: .95rem; }
.spec-links { margin-top: 1.4rem; }
.zoomable { border: 0; width: 100%; cursor: zoom-in; font: inherit; }
.zoom-dialog { border: 0; padding: 0; max-width: min(92vw, 1024px); width: 100%; background: var(--plate); border-radius: var(--r); }
.zoom-dialog::backdrop { background: rgba(24, 33, 43, .82); }
.zoom-stage { overflow: hidden; cursor: zoom-in; }
.zoom-stage img { width: 100%; height: auto; transition: transform .2s ease; }
.zoom-stage.in { cursor: zoom-out; }
.zoom-stage.in img { transform: scale(2.2); }
.zoom-close { position: absolute; top: .4rem; inset-inline-end: .5rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ctn-hint { display: block; margin: .3rem 0 0 auto; background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; white-space: nowrap; }
.ctn-hint:hover { color: var(--ink); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 1.2rem; z-index: 30; transform: translate(-50%, 150%); display: flex; gap: 1rem; align-items: center;
  background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: var(--r); border-inline-start: 4px solid var(--gold); box-shadow: 0 8px 24px rgba(24, 33, 43, .25);
  max-width: calc(100vw - 2rem); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--gold); font-weight: 650; white-space: nowrap; }

/* ---- quote page: paste box ---- */
.paste { margin-top: 1.5rem; background: var(--plate); border-radius: var(--r); padding: 1rem 1.2rem; }
.paste summary { cursor: pointer; font-weight: 720; font-stretch: 80%; font-size: 1.35rem; }
.paste p { color: var(--steel); margin: .7rem 0; }
.paste textarea { width: 100%; font: .95rem/1.5 ui-monospace, 'SF Mono', Menlo, monospace; padding: .6rem .7rem; border: 1px solid #A9B3BC; border-radius: var(--r); }
.paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.file { position: relative; color: var(--ink); text-decoration: underline; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.qtable .qty { white-space: nowrap; }
.qtable .rm { text-align: end; }

/* ---- guides ---- */
.guides-band { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.guide-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.guide-list li { background: var(--plate); border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guide-list a { display: block; height: 100%; padding: 1.2rem 1.3rem; text-decoration: none; }
.guide-list h2, .guide-list h3 { font-size: 1.3rem; font-stretch: 78%; line-height: 1.1; }
.guide-list p { color: var(--steel); margin: .6rem 0 0; font-size: .96rem; }
.guide-list a:hover h2, .guide-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--gold-deep); }
.guide > * { max-width: 50rem; }
.guide-thumb { display: block; margin: -1.2rem -1.3rem 1rem; aspect-ratio: 3 / 2; overflow: hidden; background: var(--zinc); border-bottom: 1px solid var(--rule); }
.guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-fig { margin: 1.6rem 0; max-width: 50rem; }
.guide-fig img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--zinc); }
.guide-fig-drawing { max-width: 26rem; }
.guide-fig-drawing img { background: var(--plate); border: 1px solid var(--rule); }
.guide-fig figcaption { font-size: .9rem; color: var(--steel); margin-top: .5rem; padding-inline-start: .7rem; border-inline-start: 3px solid var(--gold); line-height: 1.45; }
.more-link { margin: 1.4rem 0 0; }
.guide-head { padding: 1.2rem 0 1.5rem; border-bottom: 3px solid var(--ink); margin-bottom: 1.5rem; }
.guide-head .meta { color: var(--steel); font-size: .9rem; margin: 0; }
.prose { font-size: 1.08rem; line-height: 1.65; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: 1.75rem; }
.prose p, .prose ul { max-width: 68ch; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin: .4rem 0; }
.prose .table-scroll { margin: 1.4rem 0; }
.prose a { text-decoration-color: var(--gold-deep); }
.disclaimer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--steel); font-size: .92rem; }
.compare { margin-top: clamp(2rem, 5vw, 3rem); }
.compare h2 { margin-bottom: 1rem; }
.cat-page-head .sec-lede { max-width: 62ch; }

/* ---- spec sheet (screen) ---- */
.spec-page .top, .spec-page .foot, .spec-page .skip { display: none; }
.spec { background: var(--plate); max-width: 60rem; margin: 2rem auto; padding: 2rem 2.2rem; }
.spec-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--ink); padding-bottom: .8rem; }
.spec-brand { display: flex; align-items: center; gap: .5rem; font-stretch: 68%; font-weight: 820; font-size: 1.6rem; }
.spec-brand .mark { color: var(--gold-deep); }
.spec-brand .mark .cut { fill: var(--plate); }
.spec-kind { text-align: end; font-weight: 650; }
.spec-kind span { color: var(--steel); font-weight: 400; font-size: .9rem; }
.spec-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.6rem; margin: 1.4rem 0; }
.spec-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .5rem; align-content: start; }
.spec-imgs figure { margin: 0; border: 1px solid var(--zinc-2); }
.spec-imgs figcaption { font-size: .78rem; color: var(--steel); padding: .2rem .4rem; }
.spec-text h1 { font-size: 2.3rem; }
.spec-text .lede { font-size: 1.05rem; margin: .7rem 0; }
.spec-text p { font-size: .95rem; }
.spec-text .features { margin: .8rem 0; }
.spec-table { font-size: .88rem; }
.spec-table th, .spec-table td { padding: .32rem .6rem; }
.spec-dims { margin-top: 1.4rem; break-inside: auto; }
.spec-dims h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.spec-dims-top { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-bottom: .8rem; font-size: .9rem; }
.spec-dims-top .dims-notes { margin-top: .6rem; }
.spec-dims .dims-table { font-size: .84rem; }
.spec-dims .dims-table th, .spec-dims .dims-table td { padding: .3rem .5rem; }
.spec-dims .hint { font-size: .8rem; margin-top: .4rem; }
.spec-foot { margin-top: 1rem; font-size: .82rem; color: var(--steel); }
.spec-foot p { margin: .2rem 0; }
.spec-actions { margin-top: 1.4rem; }

@media (max-width: 48rem) {
  .spec { padding: 1.2rem; margin: 0; }
  .spec-top { grid-template-columns: 1fr; }
}

/* ---- print: spec sheets, product pages and the quote list print clean ---- */
@media print {
  @page { size: letter; margin: 12mm; }
  body { background: #fff; font-size: 10.5pt; }
  .top, .foot, .skip, .crumbs, .toast, .thumbs, .order-head fieldset, .order-foot, .related, .spec-links, .spec-actions, .paste, .q-tools button, .q-form, .ctn-hint, .zoom-dialog, noscript { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .spec { margin: 0; padding: 0; max-width: none; }
  .table-scroll { overflow: visible; }
  .grid tr.off { display: table-row; }
  .grid { page-break-inside: auto; } .grid tr { page-break-inside: avoid; }
  .grid thead { display: table-header-group; }
  .qty input { border: 0; background: none; padding: 0; width: auto; font-weight: 700; }
  .fam { grid-template-columns: 14rem 1fr; }
  .quote { display: block; }
  a { text-decoration: none; }
  .hero, .finishes, .how, .guides-band, .why, .assure { display: none; }
  .guide-fig { break-inside: avoid; max-width: 32rem; }
  .print-brand { display: flex; align-items: center; gap: .5rem; border-bottom: 2px solid #18212B; padding-bottom: 6pt; margin-bottom: 12pt; font-stretch: 70%; font-size: 16pt; }
  .print-brand .mark { width: 22pt; color: #9A7413; } .print-brand .mark .cut { fill: #fff; }
  .print-brand span { margin-inline-start: auto; font-size: 8.5pt; font-stretch: 100%; color: #545F69; }
  .spec-page .print-brand { display: none; }
  .order .qty-h, .order .c-qty, .qtable .rm, .qtable thead th:last-child { display: none; }
  .dims .units { display: none; }
  .dims, .spec-dims { break-before: auto; }
  .dims-body { grid-template-columns: 12rem 1fr; }
  .dl { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qtable .qty-h, .qtable .qty { text-align: end; }
}

/* ---- other scripts (2026-12-02: 14 languages). Archivo covers Latin only, so each script gets the platform's own
   UI font; condensed widths (font-stretch) simply do not apply to them. Arabic is laid out right to left via dir="rtl"
   and the logical properties used throughout this file. ---- */
:lang(ja) body { font-family: 'Archivo', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
:lang(ko) body { font-family: 'Archivo', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:lang(hi) body { font-family: 'Archivo', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; }
:lang(th) body { font-family: 'Archivo', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; }
:lang(ar) body { font-family: 'Archivo', 'Geeza Pro', 'Segoe UI', 'Noto Sans Arabic', sans-serif; }
:lang(bn) body { font-family: 'Archivo', 'Kohinoor Bangla', 'Bangla Sangam MN', 'Nirmala UI', 'Noto Sans Bengali', sans-serif; }
:lang(km) body { font-family: 'Archivo', 'Khmer Sangam MN', 'Khmer MN', 'Khmer UI', 'Noto Sans Khmer', sans-serif; }
:lang(ru) body { font-family: 'Archivo', system-ui, 'Segoe UI', 'Noto Sans', sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(hi) h1, :lang(hi) h2, :lang(th) h1, :lang(th) h2, :lang(ar) h1, :lang(ar) h2, :lang(bn) h1, :lang(bn) h2, :lang(km) h1, :lang(km) h2 { line-height: 1.3; }
:lang(hi) body, :lang(th) body, :lang(ar) body, :lang(bn) body, :lang(km) body { line-height: 1.75; }
[dir="rtl"] .crumbs li + li::before { content: '\\'; }
[dir="rtl"] .sku, [dir="rtl"] .grid .num, [dir="rtl"] .grid tbody th, [dir="rtl"] .dims-table td, [dir="rtl"] input[type="number"], [dir="rtl"] input[type="email"] { direction: ltr; unicode-bidi: isolate; }

/* language menu */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; height: 2.1rem; padding: 0 .6rem; border: 1px solid #46525F; border-radius: var(--r); font-size: .82rem; font-weight: 700; letter-spacing: .05em; line-height: 1; color: #fff; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { border-color: var(--gold); }
.langs summary svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.langs .globe { opacity: .85; }
.langs .chev { stroke-width: 1.6; opacity: .7; transition: transform .15s ease; }
.langs[open] summary { background: #fff; border-color: #fff; color: var(--ink); }
.langs[open] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .langs .chev { transition: none; } }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 40; list-style: none; margin: 0; padding: .35rem 0; min-width: 12rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 8px 24px rgba(24, 33, 43, .18); }
.langs ul { columns: 2; column-gap: 0; min-width: min(22rem, calc(100vw - 2rem)); }
.langs li { break-inside: avoid; }
.langs li a { display: block; padding: .4rem .9rem; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.langs li a:hover, .langs li a:focus-visible { background: var(--zinc); }
.langs li a[aria-current] { font-weight: 750; }
.nf-langs { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
@media print { .langs { display: none; } }
/* Phones and small tablets: brand + language on the first row, the links on a second row (scrolls sideways if a
   language's words don't fit, never pushes the page wider). */
@media (max-width: 52rem) {
  .top-in { flex-wrap: wrap; column-gap: .8rem; row-gap: 0; min-height: 0; padding-block: .55rem 0; }
  .top-end { display: contents; }
  .langs { order: 1; margin-inline-start: auto; }
  .nav { order: 2; flex: 1 0 100%; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; padding-block: .35rem .4rem; margin-top: .45rem; border-top: 1px solid #2C3744; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 30rem) {
  .nav { gap: 1rem; font-size: .88rem; padding-inline-end: 1.5rem; mask-image: linear-gradient(to left, transparent, #000 1.5rem); }
  [dir="rtl"] .nav { mask-image: linear-gradient(to right, transparent, #000 1.5rem); }
  .nav a[href$="/about/"] { display: none; } /* in the footer; keeps the row to one line in every language */
}
