/* =========================================================
   Torqtron — design system
   Ink black (logo) + machined aluminium + one signal yellow.
   Chamfered corners echo the faceted logo mark.
   ========================================================= */
:root {
  --ink: #000;
  --ink-2: #16191c;
  --paper: #fff;
  --alu: #f1f3f4;
  --alu-2: #e3e6e9;
  --line: #cdd2d7;
  --steel: #5a646e;
  --signal: #f9a800;
  --signal-2: #ffbf2e;
  --ok: #1e7b4a;
  --danger: #b42318;

  --f-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  --cut: 10px;
  --cut-sm: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.35);
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 56px); }
body { margin: 0; font: 400 16px/1.6 var(--f-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
.num, td.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); padding: 8px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 32px; height: 32px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 62ch; }
.fineprint { font-size: .85rem; color: var(--steel); }
.opt { font-weight: 400; color: var(--steel); font-size: .85em; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
  font: 600 .98rem/1 var(--f-head); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b3036; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-2); }
.btn-line { background: var(--ink); color: var(--ink); position: relative; isolation: isolate; }
.btn-line::before { content: ""; position: absolute; inset: 1.5px; background: var(--paper); z-index: -1;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px)); transition: background .18s; }
.btn-line:hover::before { background: var(--alu); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; --cut: 7px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }

/* ---------- Notice bar + header ---------- */
.notice-bar { background: var(--ink); color: #d9dde1; font-size: .85rem; }
.notice-bar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.notice-bar p { margin: 0; }
.notice-bar a { color: var(--signal); font-weight: 600; }
.notice-contact a { display: inline-flex; gap: 6px; align-items: center; color: #fff; text-decoration: none; font-weight: 500; }
.notice-contact .ic { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }   /* solid: backdrop-filter made pages flicker while scrolling */
.header-row { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .brand-word { height: 20px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; }
.main-nav > ul > li > a { display: flex; align-items: center; height: var(--hdr); padding: 0 12px; text-decoration: none; font: 500 .95rem var(--f-head); position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav a.is-active::after, .has-mega:focus-within > a::after { transform: scaleX(1); }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.3);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-grid { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gut) 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mega-item { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px; text-decoration: none; background: var(--alu);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: background .15s; }
.mega-item:hover { background: var(--alu-2); }
.mega-art { grid-row: span 2; width: 72px; height: 72px; }
.mega-name { font: 600 1rem var(--f-head); align-self: end; }
.mega-meta { font-size: .8rem; color: var(--steel); }
.mega-foot { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut) 20px; display: flex; gap: 28px; font-size: .9rem; }
.mega-foot a { font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.header-search { display: flex; align-items: center; background: var(--alu); height: 40px; padding-left: 12px;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm)); }
.header-search input { border: 0; background: none; width: 170px; outline: none; font-size: .9rem; }
.header-search button { border: 0; background: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.cart-link .ic { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 3px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; background: var(--signal); font: 700 .72rem/20px var(--f-head); text-align: center; }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; place-items: center; cursor: pointer; }

.crumbs { padding-top: 16px; font-size: .85rem; color: var(--steel); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.alert { padding: 12px 16px; margin: 16px 0 0; border-left: 4px solid; background: var(--alu); }
.alert-ok { border-color: var(--ok); }
.alert-err { border-color: var(--danger); background: #fdf1f0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: 24px 64px; }
.section-alu { background: var(--alu); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--steel); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head.row h2 { margin: 0; }
.h-sec { margin-bottom: 28px; }
.page-head { padding-block: 28px 8px; }
.page-head p { color: var(--steel); max-width: 70ch; }
.narrow { max-width: 820px; }

/* ---------- Gear art ---------- */
.gear-art { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.gear-art .ga-body { fill: var(--alu-2); stroke: var(--ink); stroke-width: 1.4; }
.gear-art .ga-part { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.gear-art .ga-back { fill: var(--alu-2); stroke: var(--steel); stroke-width: 1; }
.gear-art .ga-spur { fill: var(--paper); }
.gear-art .ga-input { fill: var(--signal); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.gear-art .ga-hole { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.gear-art .ga-hub { fill: var(--alu-2); stroke: var(--ink); stroke-width: 1.2; }
.gear-art .ga-pin { fill: var(--ink); }
.gear-art .ga-carrier { fill: var(--alu); stroke: var(--ink); stroke-width: 1.2; }
.gear-art .ga-key, .gear-art .ga-mark { fill: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--alu) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
/* Drafting-style gear train behind the hero (includes/gear-art.php hero_backdrop) */
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-backdrop .hb-gear { fill: rgba(255,255,255,.5); fill-rule: evenodd; stroke: rgba(90,100,110,.26); stroke-width: 1.5; }
.hero-backdrop .hb-quiet { opacity: .5; }

.hero-backdrop .hb-pitch { fill: none; stroke: rgba(90,100,110,.28); stroke-width: 1; stroke-dasharray: 18 5 3 5; }
.hero-backdrop .hb-centre { stroke: rgba(90,100,110,.4); stroke-width: 1; }
.hero-backdrop .hb-torque { fill: none; stroke: rgba(90,100,110,.45); stroke-width: 2; }
.hero-backdrop .hb-torque-head { fill: rgba(90,100,110,.45); }
.hero-backdrop .hb-label { font: 700 28px var(--f-head); fill: rgba(90,100,110,.5); text-anchor: middle; }
@media (max-width: 900px) { .hero-backdrop { opacity: .45; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero-copy h1 { max-width: 13ch; }
.hero-proof { list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.hero-proof li { display: flex; gap: 10px; align-items: center; }
.hero-proof .ic { color: var(--steel); }

.hero-stage { background: var(--paper); border: 1px solid var(--ink); position: relative;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); box-shadow: var(--shadow); }
.stage-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.stage-tabs button { border: 0; background: var(--paper); padding: 14px 6px; cursor: pointer; font: 600 .92rem var(--f-head); position: relative; transition: background .15s; }
.stage-tabs button + button { border-left: 1px solid var(--line); }
.stage-tabs button:hover { background: var(--alu); }
.stage-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.stage-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--signal); }
.stage-panel { display: grid; grid-template-columns: 1fr; }
.stage-panel[hidden] { display: none; }
.stage-art { position: relative; padding: 24px 24px 8px; }
.stage-art .gear-art { max-width: 400px; margin: 0 auto; }
.stage-ratio { position: absolute; right: 18px; top: 16px; font: 700 1.25rem var(--f-head); background: var(--signal); padding: 4px 10px; font-variant-numeric: tabular-nums; }
.stage-readout { padding: 12px 24px 22px; border-top: 1px dashed var(--line); }
.stage-caption { font-size: .88rem; color: var(--steel); margin-bottom: 12px; }
.stage-readout dl { display: flex; gap: 28px; margin-bottom: 12px; }
.stage-readout dt { font-size: .78rem; color: var(--steel); }
.stage-readout dd { font: 600 1rem var(--f-head); }

/* ---------- Comparison ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { min-width: 860px; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.compare thead a { text-decoration: none; display: block; }
.compare thead a:hover span { text-decoration: underline; }
.compare-art { width: 88px; height: 88px; margin-bottom: 10px; }
.compare thead span { font: 600 1.05rem var(--f-head); }
.compare tbody th { font: 600 .9rem var(--f-head); color: var(--steel); width: 150px; }
.compare tbody tr:hover td { background: var(--alu); }

/* ---------- Finder ---------- */
.finder-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); padding: 28px; border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.finder-out { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.finder-out span { background: var(--ink); color: #c9ced3; padding: 14px 16px; font-size: .85rem; }
.finder-out strong { display: block; font: 700 1.9rem/1.1 var(--f-head); color: var(--signal); font-variant-numeric: tabular-nums; }
.finder .btn { grid-column: 1 / -1; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field label, legend { font: 600 .88rem var(--f-head); }
.field input, .field select, .field textarea, .qty-input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 0; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; padding-right: 36px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(249,168,0,.35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; }
.input-unit { display: flex; }
.input-unit input { flex: 1; min-width: 0; }
.input-unit span { display: grid; place-items: center; padding: 0 12px; background: var(--alu); border: 1px solid var(--line); border-left: 0; font-size: .85rem; color: var(--steel); white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input, .choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--steel); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--alu); box-shadow: inset 4px 0 0 var(--signal); }
.choice strong { display: block; font: 600 .95rem var(--f-head); }
.choice small { color: var(--steel); font-size: .82rem; }

.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 1.5px dashed var(--steel); background: var(--alu); cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: #fff7e3; border-color: var(--signal); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--steel); font-size: .8rem; }
.file-list { list-style: none; display: grid; gap: 6px; margin-top: 8px; font-size: .88rem; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--alu); }
.file-list li.is-bad { background: #fdf1f0; color: var(--danger); }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.p-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color .2s var(--ease); }
.p-card:hover { border-color: var(--ink); }
.p-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--alu); display: grid; place-items: center; overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: contain; }
.p-card-media .gear-art { width: 64%; transition: transform .6s var(--ease); }
@media (hover: hover) { .p-card:hover .p-card-media .gear-art { transform: rotate(8deg); } }
.tag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--paper); font: 600 .72rem var(--f-head); padding: 4px 8px; }
.p-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.p-card-cat { display: flex; gap: 12px; font-size: .8rem; color: var(--steel); margin: 0; }
.p-card-cat span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--signal); margin-right: 12px; vertical-align: middle; }
.p-card-title { font-size: 1.08rem; margin: 0; }
.p-card-title a { text-decoration: none; }
.p-card-title a::after { content: ""; position: absolute; inset: 0; }
.p-card-title a:hover { text-decoration: underline; }
.p-card-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--alu-2); border-bottom: 1px solid var(--alu-2); }
.p-card-specs div { padding: 8px 0; }
.p-card-specs div + div { padding-left: 10px; border-left: 1px solid var(--alu-2); }
.p-card-specs dt { font-size: .7rem; color: var(--steel); }
.p-card-specs dd { font: 600 .86rem var(--f-head); font-variant-numeric: tabular-nums; }
.p-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.price { margin: 0; font: 700 1.1rem var(--f-head); font-variant-numeric: tabular-nums; }
.price small { font: 400 .75rem var(--f-body); color: var(--steel); }
.price-from { font: 400 .78rem var(--f-body); color: var(--steel); }
.stock { font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.is-in { color: var(--ok); }
.stock.is-out { color: var(--steel); }

/* ---------- Category / listing ---------- */
.cat-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 28px 36px; }
.cat-head-art { margin: 0; background: var(--alu); padding: 28px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.cat-head-art .gear-art { max-width: 320px; margin: 0 auto; }
.cat-head-art figcaption { font-size: .82rem; color: var(--steel); margin-top: 14px; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; max-width: 620px; }
.facts div { background: var(--paper); padding: 12px 14px; }
.facts dt { font-size: .75rem; color: var(--steel); }
.facts dd { font: 600 .95rem var(--f-head); }
.ratio-strip { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-block: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ratio-strip > span { font: 600 .85rem var(--f-head); color: var(--steel); }
.ratio-strip ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.ratio-strip a { display: block; padding: 5px 10px; background: var(--alu); text-decoration: none; font: 600 .85rem var(--f-head); font-variant-numeric: tabular-nums; transition: background .15s; }
.ratio-strip a:hover { background: var(--signal); }
.seg-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 8px 24px; }   /* margin-block: keep .wrap's auto side margins */
.seg-chip span { display: grid; line-height: 1.25; }
.seg-chip small { font: 400 .78rem var(--f-body); color: var(--steel); }
.seg-chip:hover small, .seg-chip[aria-current] small { color: #c9ced3; }
.seg-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--alu); text-decoration: none; font: 600 .9rem var(--f-head); transition: background .15s; }
.seg-chip:hover, .seg-chip[aria-current] { background: var(--ink); color: var(--paper); }
.seg-chip .gear-art { width: 26px; }

.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px 32px; padding-top: 24px; }
.filters { grid-row: span 3; display: grid; gap: 16px; align-content: start; position: sticky; top: calc(var(--hdr) + 16px); padding: 20px; background: var(--alu); }
.filters .field input, .filters .field select { min-height: 42px; }
.filters-actions { display: flex; align-items: center; gap: 16px; }
.js .filters-actions .btn { display: none; }
.listing-count { margin: 0; font: 600 .9rem var(--f-head); color: var(--steel); }
.listing .p-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); transition: opacity .15s; }
.listing.is-loading .p-grid { opacity: .45; }
.empty { padding: 32px; background: var(--alu); border-left: 4px solid var(--signal); }
.empty[hidden] { display: none; }
.pager { display: flex; gap: 6px; margin-top: 24px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; background: var(--alu); text-decoration: none; font: 600 .9rem var(--f-head); }
.pager a[aria-current] { background: var(--ink); color: var(--paper); }

/* ---------- Custom band ---------- */
.custom-band { background: var(--ink); color: #d7dbdf; position: relative; overflow: hidden; }
.custom-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid rgba(249,168,0,.08); transform: rotate(45deg); pointer-events: none; }
.custom-band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); padding-block: clamp(56px, 8vw, 88px); align-items: center; }
.custom-band h2 { color: var(--paper); max-width: 16ch; }
.custom-band p { max-width: 52ch; margin-bottom: 28px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1px; background: #2a2f34; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 18px 20px; background: var(--ink); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 700 1.6rem var(--f-head); color: var(--signal); }
.steps strong { color: var(--paper); font: 600 1.05rem var(--f-head); }
.steps span { font-size: .9rem; }
.steps-light { background: var(--line); margin-top: 24px; }
.steps-light li { background: var(--paper); }
.steps-light strong { color: var(--ink); }
.steps-light span { color: var(--steel); }
.steps-light li::before { color: var(--ink); -webkit-text-stroke: 0; }

/* ---------- Applications + posts ---------- */
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app-list-lg { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.app-item { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--paper); text-decoration: none; transition: background .15s; position: relative; }
.app-item:hover { background: var(--alu); }
.app-item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--signal); transform: scaleY(0); transform-origin: top; transition: transform .2s var(--ease); }
.app-item:hover::after { transform: scaleY(1); }
.app-item h3, .app-item h2 { margin: 0; font-size: 1.15rem; }
.app-item p { color: var(--steel); font-size: .92rem; margin: 0; }
.app-industry { font: 600 .8rem var(--f-head); color: var(--steel); margin: 0; }
.app-rec { margin-top: auto; padding-top: 8px; font-size: .82rem; font-weight: 600; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); position: relative; transition: border-color .2s; }
.post-card:hover { border-color: var(--ink); }
.post-card-media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--alu); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .gear-art { width: 44%; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-body h3, .post-card-body h2 { font-size: 1.12rem; margin: 6px 0 8px; }
.post-card-body h3 a, .post-card-body h2 a { text-decoration: none; }
.post-card-body h3 a::after, .post-card-body h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card-body p { color: var(--steel); font-size: .92rem; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--steel); }
.post-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--line); margin-right: 14px; vertical-align: middle; }
.post-head { padding-block: 28px 32px; max-width: 900px; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-cover { margin-block: 0 32px; }
.post-cover img { width: 100%; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); padding-bottom: 64px; }
.article-layout .prose:only-child { grid-column: 2; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; font-size: .9rem; border-left: 2px solid var(--ink); padding-left: 16px; }
.toc-title { font: 600 .85rem var(--f-head); color: var(--steel); }
.toc ol { list-style: none; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--steel); }
.toc a:hover, .toc a.is-current { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

.prose { font-size: 1.04rem; line-height: 1.72; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--signal); }
.prose ol li::marker { font: 600 .95em var(--f-head); }
.prose a { font-weight: 500; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.prose table { margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--signal); color: var(--steel); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font: 600 1.05rem/1.35 var(--f-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--steel); padding-right: 44px; }

/* ---------- Every order ---------- */
.every-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; }
.every-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.every-list li { background: var(--paper); padding: 22px; display: grid; gap: 6px; }
.every-list strong { font: 600 1.05rem var(--f-head); }
.every-list strong::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--signal); margin-right: 10px; clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px); }
.every-list span { color: var(--steel); font-size: .92rem; }

/* ---------- Product detail ---------- */
.pd-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 20px 48px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--hdr) + 16px); }
.pd-main { margin: 0; aspect-ratio: 1; background: var(--alu); display: grid; place-items: center; position: relative;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(90,100,110,.07) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(90,100,110,.07) 31px 32px); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-main .gear-art { width: 72%; }
.pd-thumbs { list-style: none; display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { border: 1px solid var(--line); background: var(--alu); padding: 0; width: 76px; height: 76px; cursor: pointer; }
.pd-thumbs button[aria-current] { border: 2px solid var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-kicker { display: flex; gap: 14px; font-size: .85rem; color: var(--steel); margin-bottom: 8px; }
.pd-kicker a { font-weight: 600; color: var(--ink); }
.pd-buy h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.pd-short { color: var(--steel); }
.pd-keys { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); margin: 20px 0 24px; }
.pd-keys div { padding: 12px 14px; }
.pd-keys div + div { border-left: 1px solid var(--line); }
.pd-keys dt { font-size: .72rem; color: var(--steel); }
.pd-keys dd { font: 700 1.35rem/1.2 var(--f-head); font-variant-numeric: tabular-nums; }
.pd-keys small { font: 500 .75rem var(--f-body); color: var(--steel); margin-left: 3px; }
.buy-form { display: grid; gap: 14px; }
.ratio-pick legend { font-size: .95rem; margin-bottom: 10px; }
.ratio-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ratio-opt { position: relative; cursor: pointer; }
.ratio-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ratio-opt span { display: block; min-width: 62px; text-align: center; padding: 9px 10px; border: 1px solid var(--line); font: 600 .95rem var(--f-head); font-variant-numeric: tabular-nums; transition: border-color .12s, background .12s; }
.ratio-opt:hover span { border-color: var(--ink); }
.ratio-opt.is-mto span { color: var(--steel); background-image: linear-gradient(135deg, transparent 0 calc(100% - 9px), var(--line) calc(100% - 9px)); }
.ratio-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); }
.ratio-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.ratio-hint { font-size: .8rem; color: var(--steel); margin: 8px 0 0; }
.pd-price p { margin: 0; }
.price-big { font: 700 2rem var(--f-head); font-variant-numeric: tabular-nums; }
.price-tax { color: var(--steel); font-size: .9rem; }
.price-incl { font-size: .9rem; color: var(--steel); }
.pd-stock { margin: 0; font-weight: 600; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.pd-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd-stock.is-in { color: var(--ok); }
.pd-stock.is-out { color: var(--steel); }
.pd-sku { font-size: .8rem; color: var(--steel); display: flex; gap: 16px; margin: 0; }
.pd-custom { border: 1px solid var(--line); background: var(--alu); }
.pd-custom summary { cursor: pointer; padding: 12px 16px; font: 600 .95rem var(--f-head); list-style: none; display: flex; justify-content: space-between; }
.pd-custom summary::-webkit-details-marker { display: none; }
.pd-custom summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.pd-custom[open] summary::after { content: "−"; }
.pd-custom summary span { font: 400 .85rem var(--f-body); color: var(--steel); margin-right: auto; margin-left: 8px; }
.pd-custom-body { padding: 0 16px 16px; display: grid; gap: 4px; }
.pd-custom-body .field { margin-top: 8px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: flex; border: 1px solid var(--ink); height: 48px; }
.qty button { width: 42px; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--alu); }
.qty input { width: 52px; border: 0; text-align: center; font: 600 1rem var(--f-head); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pd-quick-files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .9rem; }
.pd-quick-files a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

.pd-tabs { position: sticky; top: var(--hdr); z-index: 30; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-tabs ul { display: flex; list-style: none; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs a { display: block; padding: 14px 14px; white-space: nowrap; text-decoration: none; font: 600 .92rem var(--f-head); color: var(--steel); border-bottom: 3px solid transparent; }
.pd-tabs a:hover { color: var(--ink); }
.pd-tabs a.is-current { color: var(--ink); border-color: var(--signal); }
.pd-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pd-highlights { background: var(--ink); color: #d7dbdf; padding: 28px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.pd-highlights h3 { color: var(--paper); }
.pd-highlights ul { list-style: none; display: grid; gap: 12px; }
.pd-highlights li { display: flex; gap: 10px; }
.pd-highlights .ic { color: var(--signal); margin-top: 2px; }
.spec-groups { columns: 2 380px; column-gap: 32px; }
.spec-table { break-inside: avoid; margin-bottom: 28px; font-size: .94rem; }
.spec-table caption { text-align: left; font: 600 1rem var(--f-head); padding: 0 0 8px; border-bottom: 2px solid var(--ink); }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--alu-2); text-align: left; vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--steel); width: 55%; padding-right: 12px; }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.unit { color: var(--steel); font-weight: 400; }
.data-table { font-size: .92rem; min-width: 760px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { font: 600 .82rem var(--f-head); color: var(--steel); border-bottom: 2px solid var(--ink); }
.data-table tbody th { font-family: var(--f-head); }
.data-table tbody tr:hover { background: var(--alu); }
.data-table tbody tr.is-selected { background: #fff7e3; }
.file-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.file-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); }
.file-card strong { display: block; font: 600 .95rem var(--f-head); }
.file-card span { font-size: .8rem; color: var(--steel); }
.mount-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.mount-dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--alu-2); }
.mount-dl dt { color: var(--steel); }
.mount-custom { background: var(--alu); padding: 24px; border-left: 4px solid var(--signal); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--paper); transform: translateY(100%); transition: transform .25s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.buy-bar.is-visible { transform: none; }
.buy-bar[hidden] { display: block; visibility: hidden; }
.buy-bar.is-visible[hidden] { visibility: visible; }
.buy-bar-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.buy-bar-row > div:first-child { flex: 1; font-family: var(--f-head); }
.buy-bar-price { font: 700 1.15rem var(--f-head); }
.buy-bar-price small { font: 400 .75rem var(--f-body); color: #aab1b8; }
.buy-bar .btn-ink { background: var(--signal); color: var(--ink); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-table { font-size: .95rem; }
.cart-table th { text-align: left; font: 600 .82rem var(--f-head); color: var(--steel); padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-thumb { width: 72px; height: 72px; flex: none; background: var(--alu); display: grid; place-items: center; padding: 6px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item a { font: 600 1rem var(--f-head); text-decoration: none; }
.cart-meta { display: block; font-size: .8rem; color: var(--steel); }
.cart-note { display: block; font-size: .8rem; background: #fff7e3; padding: 3px 8px; margin-top: 4px; }
.qty-input { width: 76px; min-height: 40px; text-align: center; }
.cart-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.summary { position: sticky; top: calc(var(--hdr) + 16px); background: var(--alu); padding: 24px; }
.summary h2 { font-size: 1.3rem; }
.summary .btn { margin-top: 16px; }
.summary-lines { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.totals { display: grid; gap: 8px; font-size: .93rem; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dd { font-variant-numeric: tabular-nums; }
.totals-grand { border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 4px; font: 700 1.2rem var(--f-head); }
.pay-box { max-width: 560px; margin: 0 auto; border: 1px solid var(--ink); padding: 32px; background: var(--paper); }
.pay-badge { display: inline-block; background: var(--signal); font: 700 .8rem var(--f-head); padding: 4px 10px; margin-bottom: 12px; }
.confirm-head { text-align: center; padding-block: 40px 16px; }
.confirm-mark { width: 72px; height: 72px; margin: 0 auto 16px; background: var(--ok); color: #fff; display: grid; place-items: center;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.confirm-mark .ic { width: 38px; height: 38px; stroke-width: 2.4; }

/* ---------- Custom solutions page ---------- */
.stack-art { background: var(--paper); border: 1px solid var(--line); }
.stack-svg { width: 100%; }
.stack-svg .s-motor { fill: #2b3036; }
.stack-svg .s-flange { fill: var(--signal); stroke: var(--ink); stroke-width: 1.2; }
.stack-svg .s-coupling { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.stack-svg .s-gear { fill: var(--alu-2); stroke: var(--ink); stroke-width: 1.2; }
.stack-svg .s-shaft { fill: var(--line); stroke: var(--ink); stroke-width: 1.2; }
.stack-svg .s-axis { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.stack-svg .s-dim line { stroke: var(--ink); stroke-width: 1; }
.stack-svg .s-dim text { font: 600 13px var(--f-head); text-anchor: middle; fill: var(--ink); }
.stack-svg .s-label { font: 600 14px var(--f-head); text-anchor: middle; fill: var(--paper); dominant-baseline: middle; }
.stack-svg text.s-label:last-of-type { fill: var(--ink); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--paper); padding: 24px; }
.svc h3 { font-size: 1.08rem; }
.svc p { color: var(--steel); font-size: .92rem; margin: 0; }
.request-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.request-layout > div:first-child { position: sticky; top: calc(var(--hdr) + 24px); }

/* ---------- Search / contact ---------- */
.search-big { display: flex; gap: 8px; max-width: 640px; margin-top: 16px; }
.search-big input { flex: 1; min-height: 52px; padding: 0 16px; border: 1px solid var(--ink); font-size: 1.05rem; }
.contact-big { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.contact-big a { display: inline-flex; gap: 12px; align-items: center; font: 600 1.15rem var(--f-head); text-decoration: none; }
.contact-big .ic { width: 24px; height: 24px; color: var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab1b8; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.footer-brand img { width: 96px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-col h2 { font-size: .95rem; color: var(--paper); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--signal); }
.contact-list a { display: inline-flex; gap: 8px; align-items: center; }
.contact-list .ic { width: 16px; height: 16px; }
.site-footer address { font-style: normal; margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid #2a2f34; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; display: flex; gap: 16px; align-items: center;
  background: var(--ink); color: var(--paper); padding: 14px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--signal); max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: var(--danger); }
.toast a { color: var(--signal); font-weight: 600; white-space: nowrap; }
body.has-buy-bar .toast { bottom: 84px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-search input { width: 120px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --hdr: 60px; }
  .nav-toggle { display: grid; }
  .header-search { display: none; }
  .main-nav { position: fixed; inset: calc(var(--hdr) + 1px) 0 0; background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: transform .25s var(--ease); z-index: 45; }
  .main-nav.is-open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 8px var(--gut) 40px; }
  .main-nav > ul > li > a { height: 56px; border-bottom: 1px solid var(--alu-2); font-size: 1.1rem; padding: 0; }
  .main-nav > ul > li > a::after { display: none; }
  .mega { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; }
  .mega-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .mega-foot { padding: 0 0 12px; flex-direction: column; gap: 10px; }
  .header-row { gap: 12px; }
  .brand .brand-word { height: 17px; }
  .hero-grid, .cat-head, .finder-grid, .custom-band-grid, .pd-top, .pd-overview, .mount-grid, .cart-layout, .request-layout, .every-grid, .faq-wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .pd-gallery, .request-layout > div:first-child { position: static; }
  .pd-main { max-height: 72vw; aspect-ratio: auto; height: 72vw; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .filters-actions { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .prose:only-child { grid-column: 1; }
  .toc { position: static; }
  .summary { position: static; }
  .notice-bar .notice-contact { display: none; }
}
@media (max-width: 620px) {
  .pd-keys { grid-template-columns: 1fr 1fr; }
  .pd-keys div:nth-child(3) { border-left: 0; }
  .pd-keys div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .finder, .grid-2, .choice-grid, .every-list, .svc-grid, .facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stage-tabs button { font-size: .8rem; }
  .p-card-specs dd { font-size: .8rem; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .mount-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .buy-row .btn-signal { flex: 1; }
  .file-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .notice-bar, .site-footer, .buy-bar, .pd-tabs, .buy-form, .custom-band { display: none !important; }
}

/* ---------- Chamfer edge lines for bordered, clipped boxes ---------- */
.hero-stage, .finder, .form-card, .p-card, .file-card { position: relative; }
.hero-stage { --cb: 20px; --bc: var(--ink); }
.finder { --cb: 16px; --bc: var(--line); }
.form-card { --cb: 18px; --bc: var(--line); }
.p-card { --cb: var(--cut); --bc: var(--line); }
.p-card:hover { --bc: var(--ink); }
.hero-stage::before, .hero-stage::after, .finder::before, .finder::after, .form-card::before, .form-card::after, .p-card::before, .p-card::after {
  content: ""; position: absolute; width: calc(var(--cb) * 1.4142); height: 1px; background: var(--bc); pointer-events: none; z-index: 3; transform: rotate(-45deg); }
.hero-stage::before, .finder::before, .form-card::before, .p-card::before { left: 0; top: var(--cb); transform-origin: 0 0; }
.hero-stage::after, .finder::after, .form-card::after, .p-card::after { right: 0; bottom: var(--cb); transform-origin: 100% 0; }
.hero-stage::after, .hero-stage::before { height: 1.5px; }

/* ---------- Refinements ---------- */
.cat-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.ratio-strip { border: 0; padding-block: 4px 0; }
.p-card-specs dd { white-space: nowrap; font-size: .82rem; }
.p-card-specs div + div { padding-left: 8px; }
.p-card-specs { grid-template-columns: auto auto auto; justify-content: space-between; }
.price { white-space: nowrap; font-size: 1.05rem; }
.pd-keys dd { white-space: nowrap; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.pd .section + .section { padding-top: 0; }
.pd-overview.section { padding-bottom: clamp(48px, 7vw, 80px); }
.header-tools { margin-left: auto; }
.buy-bar-row > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 620px) {
  .buy-bar-row { gap: 10px; }
  .buy-bar-row > div:first-child { font-size: .85rem; }
  .buy-bar-row > div:first-child span { display: block; color: #aab1b8; }
  .buy-bar-price { font-size: 1rem; }
}
.order-table { min-width: 0; }
.order-table th, .order-table td { white-space: normal; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table small { color: var(--steel); }
.order-table tfoot th { text-align: right; font: 600 .9rem var(--f-head); color: var(--steel); border-bottom: 0; }
.order-table tfoot td { border-bottom: 0; }
.order-table tfoot .totals-grand th, .order-table tfoot .totals-grand td { color: var(--ink); font-size: 1.15rem; border-top: 2px solid var(--ink); }
.order-table td:nth-child(2) { white-space: nowrap; }

/* ---------- Ratio explorer ---------- */
.cat-head-link { margin: 18px 0 0; }
.explorer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.explorer-stage { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(90,100,110,.07) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(90,100,110,.07) 31px 32px); }
.explorer-stage .gear-art { max-width: 460px; margin: 0 auto; }
.explorer-stage .stage-ratio:empty { display: none; }
.ex-play { position: absolute; left: 16px; bottom: 16px; }
.explorer-panel { background: var(--paper); padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); display: grid; gap: 18px; }
.ex-controls { display: grid; gap: 16px; }
.ex-control label { display: flex; justify-content: space-between; align-items: baseline; font: 600 .9rem var(--f-head); margin-bottom: 6px; }
.ex-control output { font: 700 1.25rem var(--f-head); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.ex-control input[type=range] { width: 100%; appearance: none; height: 28px; background: transparent; cursor: pointer; }
.ex-control input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); }
.ex-control input[type=range]::-moz-range-track { height: 4px; background: var(--ink); }
.ex-control input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--signal); border: 2px solid var(--ink);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.ex-control input[type=range]::-moz-range-thumb { width: 18px; height: 18px; background: var(--signal); border: 2px solid var(--ink); border-radius: 0; }
.ex-formula { margin: 0; padding: 14px 16px; background: var(--ink); color: #d7dbdf; font: 500 1rem/1.5 var(--f-head); font-variant-numeric: tabular-nums; }
.ex-formula b { color: var(--signal); font-size: 1.2rem; }
.ex-formula sub { font-size: .7em; }
.ex-motor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-in { display: grid; gap: 6px; font: 600 .85rem var(--f-head); }
.ex-in input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); font: 500 1rem var(--f-body); }
.ex-read { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.ex-read div { padding: 10px 12px; }
.ex-read div + div { border-left: 1px solid var(--line); }
.ex-read dt { font-size: .72rem; color: var(--steel); }
.ex-read dd { font: 700 1.1rem var(--f-head); font-variant-numeric: tabular-nums; }
.ex-read div:last-child dd { font-size: .92rem; font-weight: 600; }
.ex-facts { display: grid; gap: 0; font-size: .9rem; }
.ex-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--alu-2); }
.ex-facts dt { color: var(--steel); }
.ex-facts dd { font-weight: 600; text-align: right; }
.ex-note { margin: 0; font-size: .9rem; color: var(--steel); }
.ex-std { margin: 0; }
@media (max-width: 920px) { .explorer-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ex-read { grid-template-columns: 1fr 1fr; } .ex-read div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Article data blocks ---------- */
.prose .takeaways { background: var(--alu); border-left: 4px solid var(--signal); padding: 18px 22px 8px; margin: 0 0 2em; }
.prose .takeaways-title { font: 600 1rem var(--f-head); margin-bottom: .5em; }
.prose .takeaways ul { margin-bottom: .8em; }
.prose .table-scroll { margin: 1.5em 0; }
.prose .table-scroll table { margin: 0; min-width: 520px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.prose table caption { caption-side: top; text-align: left; font: 600 .9rem var(--f-head); color: var(--steel); padding-bottom: 8px; }
.prose thead th { background: var(--ink); color: var(--paper); font: 600 .82rem var(--f-head); border-color: var(--ink); }
.prose tbody tr:nth-child(even) td { background: #fafbfb; }
.prose tbody th { background: var(--alu); font-weight: 600; }
.prose .formula { margin: 1.2em 0; padding: 16px 20px; background: var(--ink); color: #e6e9ec; font: 500 1.02rem/1.9 var(--f-head); white-space: pre-line; font-variant-numeric: tabular-nums; }
.prose .formula sub, .prose .formula sup { font-size: .7em; }
.prose ol.refs { font-size: .9rem; color: var(--steel); }
.prose ol.refs li { margin-bottom: .35em; }
.prose .faq-inline { margin-top: .5em; }
.prose .faq-inline summary { font-size: 1rem; }
.author-box { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-top: 2.5em; padding: 20px; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; }
.author-box p { margin: 0 0 .5em; color: var(--steel); }
.author-box .author-name { font: 600 1rem var(--f-head); color: var(--ink); }
.stage-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.ex-subtitle { color: var(--ink) !important; }
.ex-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 20px; }
.ex-tabs button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: var(--paper); cursor: pointer; font: 600 .95rem var(--f-head); text-align: left; position: relative; transition: background .15s; }
.ex-tabs button:hover { background: var(--alu); }
.ex-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.ex-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--signal); }
.ex-tab-art { width: 40px; height: 40px; flex: none; }
@media (max-width: 760px) { .ex-tabs { grid-template-columns: 1fr 1fr; } .ex-tab-art { width: 30px; height: 30px; } .ex-tabs button { font-size: .85rem; padding: 10px; } }

/* ---------- Home: search, shop by type, simulator links (2026-09) ---------- */
.hero-search { display: flex; max-width: 560px; margin: 24px 0 0; background: var(--paper); border: 1px solid var(--ink); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 52px; outline: none; background: none; font-size: 1rem; }
.hero-search .btn { min-height: 52px; clip-path: none; }
.hero-search:focus-within { box-shadow: 0 0 0 2px var(--signal); }
.hero-copy .btn-row { margin: 16px 0 28px; }
.stage-sim { position: absolute; left: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ink); color: var(--paper); font: 600 .8rem var(--f-head); text-decoration: none; }
.stage-sim::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.stage-sim:hover { background: #2b3036; }
.stage-readout dd small { font: 400 .72rem var(--f-body); color: var(--steel); }
.stage-links { align-items: center; }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.type-card:hover { border-color: var(--ink); }
.type-card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--alu); overflow: hidden; }
.type-card-media img { width: 100%; height: 100%; object-fit: contain; }
.type-card-media .gear-art { width: 60%; }
.type-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.type-card-name { font: 600 1.2rem var(--f-head); }
.type-card:hover .type-card-name { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.type-card-use { font-size: .88rem; color: var(--steel); }
.type-card-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 .82rem var(--f-head); font-variant-numeric: tabular-nums; }
.type-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--alu-2); }
.type-card-count { font-size: .8rem; color: var(--steel); white-space: nowrap; }

.sim-band { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.sim-band h2 { margin-bottom: .3em; }
.sim-band p { color: var(--steel); max-width: 60ch; margin: 0; }
.sim-band .btn-row { margin: 0; }
.sim-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sim-family { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 24px); }
.sim-family-art { width: 140px; }
.sim-family .formula { padding: 12px 16px; background: var(--ink); color: #e6e9ec; font: 500 .98rem/1.6 var(--f-head); font-variant-numeric: tabular-nums; }
.sim-family .formula sub { font-size: .7em; }
.sim-facts { display: grid; gap: 6px; margin: 12px 0 0; font-size: .9rem; }
.sim-facts div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.sim-facts dt { color: var(--steel); }
.sim-family .btn-row { margin: 18px 0 0; }

/* ---------- Engineering hub ---------- */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.chip { padding: 7px 14px; background: var(--alu); text-decoration: none; font: 600 .88rem var(--f-head); transition: background .15s; }
.chip:hover { background: var(--alu-2); }
.chip[aria-current] { background: var(--ink); color: var(--paper); }
.chip-sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.post-kind { font-weight: 600; color: var(--ink); }
.author-box .author-title { display: block; font: 400 .85rem var(--f-body); color: var(--steel); }

/* ---------- Company identifiers ---------- */
.footer-legal p { margin: 0; }
.footer-legal p + p { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; color: #9aa3ab; font-variant-numeric: tabular-nums; }
.company-ids { display: grid; gap: 4px; margin: 16px 0; font-size: .92rem; }
.company-ids div { display: grid; grid-template-columns: 60px 1fr; gap: 12px; }
.company-ids dt { color: var(--steel); }
.company-ids dd { font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sim-families { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .type-grid { grid-template-columns: 1fr; }
  .sim-family { grid-template-columns: 1fr; }
  .sim-family-art { width: 110px; }
  .hero-search .btn { padding: 0 14px; }
  .chip-sep { display: none; }
}

/* ---------- Engineering studio blocks (includes/blocks.php) ---------- */
.prose .b-size-s { font-size: .88em; }
.prose .b-size-l { font-size: 1.2em; line-height: 1.55; }
.prose .b-size-xl { font-size: 1.5em; line-height: 1.35; }
.prose h2.b-size-l, .prose h3.b-size-l { font-size: 2rem; }
.prose h2.b-size-xl, .prose h3.b-size-xl { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose .b-align-center { text-align: center; }
.prose .b-align-right { text-align: right; }
.prose .b-muted { color: var(--steel); }
.prose .b-space-none { margin-bottom: 0; }
.prose .b-space-l { margin-bottom: 2.4em; }
.prose mark { background: #ffe7a8; color: inherit; padding: 0 .15em; }
.prose code { font: .92em ui-monospace, Consolas, monospace; background: var(--alu); padding: .1em .35em; }
.prose .b-code { background: var(--ink-2); color: #e6e9ec; padding: 16px 20px; overflow-x: auto; margin: 1.5em 0; }
.prose .b-code code { background: none; padding: 0; font-size: .88rem; line-height: 1.6; }
.prose .b-quote { font: 500 1.2rem/1.5 var(--f-head); color: var(--ink); }
.prose .b-quote p { margin: 0; }
.prose .b-quote cite { display: block; margin-top: 8px; font: normal 400 .9rem var(--f-body); color: var(--steel); }
.prose .b-callout { margin: 1.5em 0; padding: 16px 20px 6px; border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.prose .b-callout-warning { border-left-color: var(--danger); background: #fdf6f5; }
.prose .b-callout-title { font: 600 1rem var(--f-head); margin-bottom: .4em; }
.prose .b-check { list-style: none; padding-left: 0; }
.prose .b-check li { padding-left: 28px; position: relative; }
.prose .b-check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.prose .b-image, .prose .b-video { margin: 1.8em 0; }
.prose .b-image img { margin: 0; width: 100%; background: var(--alu); }
.prose .b-image figcaption, .prose .b-video figcaption, .prose .b-gallery figcaption, .prose .b-gallery-caption { font-size: .86rem; color: var(--steel); margin-top: 8px; }
.prose .b-w-small { max-width: 360px; }
.prose .b-w-small.b-align-center { margin-inline: auto; }
@media (min-width: 1300px) { .prose .b-w-wide { margin-right: -110px; } }
.prose .b-video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.prose .b-video-frame iframe, .prose .b-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .b-gallery { display: grid; gap: 10px; margin: 1.8em 0 .5em; }
.prose .b-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.prose .b-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.prose .b-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.prose .b-gallery figure { margin: 0; }
.prose .b-gallery img { margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--alu); }
.prose .b-button { margin: 1.5em 0; }
.prose .b-button .btn { text-decoration: none; font-weight: 600; }
.prose .b-divider { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .b-spacer-s { height: 16px; } .prose .b-spacer-m { height: 40px; } .prose .b-spacer-l { height: 80px; }
.prose .b-section { margin: 2em 0; padding: clamp(20px, 3vw, 36px); }
.prose .b-section > :last-child { margin-bottom: 0; }
.prose .b-section > h2:first-child { margin-top: 0; }
.prose .b-bg-alu { background: var(--alu); }
.prose .b-bg-ink { background: var(--ink); color: #d7dbdf; }
.prose .b-bg-ink h2, .prose .b-bg-ink h3, .prose .b-bg-ink h4, .prose .b-bg-ink strong, .prose .b-bg-ink b { color: var(--paper); }
.prose .b-bg-ink a:not(.btn) { color: var(--paper); }
.prose .b-bg-ink .btn-line { background: var(--paper); }
.prose .b-bg-line { border: 1px solid var(--line); }
.prose .b-bg-signal { border-left: 6px solid var(--signal); background: var(--alu); }
.prose .b-cols { display: grid; gap: clamp(16px, 3vw, 32px); margin: 1.5em 0; }
.prose .b-cols-1-1 { grid-template-columns: 1fr 1fr; }
.prose .b-cols-2-1 { grid-template-columns: 2fr 1fr; }
.prose .b-cols-1-2 { grid-template-columns: 1fr 2fr; }
.prose .b-cols-1-1-1 { grid-template-columns: repeat(3, 1fr); }
.prose .b-col > :first-child { margin-top: 0; }
.prose .b-col > :last-child { margin-bottom: 0; }
.prose .b-products { margin: 2em 0; }
.prose .b-products-title { font: 600 1.1rem var(--f-head); margin-bottom: 12px; }
.prose .b-products .p-card-title a { font-weight: 600; }
@media (max-width: 720px) {
  .prose .b-cols, .prose .b-gallery-3, .prose .b-gallery-4 { grid-template-columns: 1fr 1fr; }
  .prose .b-cols-1-1, .prose .b-cols-2-1, .prose .b-cols-1-2, .prose .b-cols-1-1-1 { grid-template-columns: 1fr; }
}

/* ---------- Custom coupling page (includes/coupling-art.php) ---------- */
.c-svg { width: 100%; height: auto; display: block; }
.c-svg .c-motor { fill: #2b3036; }
.c-svg .c-fin { stroke: #3d444b; stroke-width: 2; }
.c-svg .c-gear, .c-svg .c-link { fill: var(--alu-2); stroke: var(--ink); stroke-width: 1.2; }
.c-svg .c-gear-mark { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 4 3; }
.c-svg .c-bearing { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.c-svg .c-shaft { fill: #b9c0c6; stroke: var(--ink); stroke-width: 1.2; }
.c-svg .c-key { fill: var(--ink); }
.c-svg .c-coupling rect[data-role="coupling"] { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }
.c-svg .c-bore { fill: rgba(0,0,0,.14); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 3; }
.c-svg .c-slit { stroke: var(--ink); stroke-width: 1; }
.c-svg .c-break { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.c-svg .c-axis { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.c-svg .c-dim line { stroke: var(--ink); stroke-width: 1; }
.c-svg .c-dim text { font: 600 14px var(--f-head); text-anchor: middle; fill: var(--ink); }
.c-svg .c-in { font: 600 15px var(--f-head); text-anchor: middle; dominant-baseline: middle; fill: var(--paper); }
.c-svg .c-in-dark { fill: var(--ink); }
.c-svg .c-pilot { fill: #3d444b; stroke: #6b747c; }
.c-svg .c-pcd { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-dasharray: 6 4; }
.c-svg .c-hole { fill: var(--paper); stroke: var(--ink); }
.c-svg .c-letter { font: 700 18px var(--f-head); fill: var(--ink); text-anchor: middle; }
.c-svg .c-cap { font: 600 14px var(--f-head); fill: var(--steel); text-anchor: middle; }
.coupling-hero { padding: 20px; }
.coupling-hero figcaption { margin-top: 8px; }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.conn-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); padding: 20px 22px 22px; scroll-margin-top: calc(var(--hdr) + 24px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.conn-card:target { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--signal); }
.conn-card .c-svg { background: var(--alu); margin-bottom: 8px; }
.conn-card h3 { margin: 0; font-size: 1.2rem; }
.conn-problem { margin: 0; }
.conn-make { margin: 0 0 8px; color: var(--steel); font-size: .92rem; }
.conn-make strong { color: var(--ink); }
.conn-card .btn { align-self: flex-start; margin-top: auto; }
.mismatch { font-size: .95rem; }
.mismatch th { text-align: left; background: var(--ink); color: var(--paper); font: 600 .85rem var(--f-head); padding: 10px 14px; }
.mismatch td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.mismatch td:first-child { font-variant-numeric: tabular-nums; color: var(--steel); }
.mismatch tr:hover td { background: var(--alu); }
.measure-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.measure-list { display: grid; gap: 8px; margin-top: 16px; }
.measure-list div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.measure-list dt { display: grid; place-items: center; width: 28px; height: 28px; background: var(--signal); font: 700 .95rem var(--f-head); }
.measure-art { margin: 0; background: var(--paper); padding: 16px; border: 1px solid var(--line); }
.coupling-live { margin: 20px 0 0; background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.coupling-live figcaption { font-size: .88rem; color: var(--steel); margin-top: 6px; }
.conn-sizes { margin-top: 12px; }
@media (max-width: 900px) { .conn-grid, .measure-grid { grid-template-columns: 1fr; } }
.pay-details { white-space: pre-wrap; font: 500 .95rem/1.7 var(--f-body); background: var(--alu); padding: 14px 18px; margin: 0 0 16px; }

/* ---------- Live search suggestions ---------- */
.suggest { position: absolute; z-index: 90; max-height: min(70vh, 520px); overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); padding: 6px 0; }
.suggest[hidden] { display: none; }
.sg-head { margin: 8px 14px 4px; font: 600 .75rem var(--f-head); color: var(--steel); }
.sg-item { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 8px 14px; text-decoration: none; color: var(--ink); }
.sg-product { grid-template-columns: 52px minmax(0, 1fr) auto; }
.sg-item:hover, .sg-item[aria-selected="true"] { background: var(--alu); box-shadow: inset 3px 0 0 var(--signal); }
.sg-img { width: 52px; height: 40px; background: var(--alu); display: grid; place-items: center; overflow: hidden; }
.sg-img img { width: 100%; height: 100%; object-fit: contain; }
.sg-text { display: grid; min-width: 0; }
.sg-text strong { font: 600 .92rem/1.3 var(--f-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-text small { font-size: .78rem; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-price { display: grid; text-align: right; font: 600 .82rem var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-price small { font: 400 .72rem var(--f-body); color: var(--steel); }
.sg-price small.is-in { color: var(--ok); }
.sg-all { border-top: 1px solid var(--alu-2); margin-top: 6px; }
.sg-all strong { font-size: .85rem; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sg-empty { margin: 8px 14px; font-size: .88rem; color: var(--steel); }
.header-search input { transition: width .2s var(--ease); }
.header-search:focus-within input { width: 220px; }
.nav-search { display: none; }
@media (max-width: 920px) {
  .nav-search { display: flex; margin: 12px var(--gut) 0; background: var(--alu); height: 48px; padding-left: 14px; }
  .nav-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; }
  .nav-search button { border: 0; background: none; width: 48px; display: grid; place-items: center; cursor: pointer; }
  .suggest { z-index: 95; }
  .sg-product { grid-template-columns: 44px minmax(0, 1fr); }
  .sg-price { grid-column: 2; text-align: left; display: flex; gap: 8px; }
}
