/*
Theme Name: CNC Panel
Description: Custom B2B inquiry theme for panel furniture machinery
Version: 0.2.0
Text Domain: cncpanel
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --steel: #eef1f4;
  --steel-2: #e2e7ec;
  --line: #d3d9df;
  --graphite: #1d2329;
  --text-2: #4a5560;
  --muted: #6f7a85;
  --blue: #1d4f9c;
  --blue-dark: #163d79;
  --mdf: #c8a174;
  --wa: #1fae55;
  --wrap: 1200px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--body); color: var(--graphite); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; color: var(--graphite); }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--steel { background: var(--steel); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--text-2); margin-top: 10px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-family: var(--head); font-size: 18px; font-weight: 600; letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer; line-height: 1.1; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn--outline:hover { background: var(--graphite); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #188f45; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Staging */
.staging-bar { background: #fff6e8; color: #7a4a12; font-size: 13px; text-align: center; padding: 5px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 70px; gap: 28px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--graphite); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.logo-mark { flex: none; display: block; }
.logo--footer { color: #fff; font-size: 24px; margin: 0 0 14px; }
.logo--footer:hover { color: #fff; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; padding: 8px 12px; color: var(--graphite); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 18px; }
.nav a:hover { color: var(--blue); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--blue); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 6px 0; flex-direction: column; }
.nav .sub-menu a { font-family: var(--body); font-weight: 500; font-size: 16px; padding: 9px 16px; }
.nav .sub-menu a:hover { background: var(--steel); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav a.header-cta { padding: 10px 18px; font-size: 17px; color: #fff; }
.nav a.header-cta:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; font: 600 15px var(--head); color: var(--graphite); cursor: pointer; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--steel-2); }
  .nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .header-cta { margin-top: 16px; }
}

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .sep { margin: 0 7px; color: var(--line); }

/* Home hero */
.hero { padding: 36px 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 19px; color: var(--text-2); margin-top: 20px; max-width: 46ch; }
.hero-figure { position: relative; padding-bottom: 46px; }
.hero-figure img { width: 100%; max-width: 720px; margin-left: auto; }
.dim { position: absolute; left: 12%; right: 6%; bottom: 18px; height: 14px; border-left: 1.5px solid var(--mdf); border-right: 1.5px solid var(--mdf); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--mdf); }
.dim span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 0 10px; font: 600 15px var(--head); color: #8a6a43; white-space: nowrap; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.hero-facts div { padding: 18px 20px 20px 0; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts b { display: block; font: 600 22px var(--head); }
.hero-facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Hero v2: copy left, photo bleeding to the right edge */
.hero { padding: 0; }
.hero-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch; min-height: min(640px, 78vh); }
.hero-copy { align-self: center; padding: 56px 48px 56px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.hero-copy h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 13ch; }
.hero-copy .lead { font-size: 19px; color: var(--text-2); margin-top: 20px; max-width: 44ch; }
.hero-photo { position: relative; margin: 0; background: var(--steel); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: rgba(255,255,255,.92); padding: 8px 14px; font-size: 13px; color: var(--text-2); border-top: 2px solid var(--mdf); }
.hero .hero-facts { margin-top: 0; border-top: 0; }
@media (max-width: 900px) {
  .hero-band { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px 24px 28px; }
  .hero-copy h1 { max-width: none; }
  .hero-photo img { aspect-ratio: 3 / 2; height: auto; }
  .hero-photo figcaption { position: static; border-top: 0; }
}

/* Hero 3D model (white studio background; photo is the fallback) */
.hero-3d { background: var(--white); overflow: hidden; }
.hero-3d img { position: absolute; inset: 0; object-fit: contain; object-position: center; padding: 6%; transition: opacity .4s; }
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero-3d canvas.is-dragging { cursor: grabbing; }
.hero-3d.is-3d img { opacity: 0; }
.hero-3d figcaption { z-index: 2; background: none; border-top: 0; color: var(--muted); padding: 0 0 14px 4px; pointer-events: none; }
@media (max-width: 900px) { .hero-3d { aspect-ratio: 4 / 3; } .hero-3d img { aspect-ratio: auto; height: 100%; } .hero-3d figcaption { position: absolute; } }

/* Model wall (home) */
.model-wall { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--graphite); }
.mw-item { padding: 18px 16px 22px; text-decoration: none; color: var(--graphite); border-right: 1px solid var(--line); }
.mw-item:first-child { padding-left: 0; }
.mw-item:last-child { border-right: 0; padding-right: 0; }
.mw-img img, .mw-img .ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); }
.mw-item h3 { font-size: 20px; margin-top: 8px; }
.mw-item:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.mw-tool { font-weight: 600; font-size: 14px; margin-top: 6px; }
.mw-best { font-size: 14px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 1000px) { .model-wall { grid-template-columns: repeat(3, 1fr); } .mw-item { border-bottom: 1px solid var(--line); } .mw-item:nth-child(3n) { border-right: 0; } .mw-item:nth-child(3n+1) { padding-left: 0; } }
@media (max-width: 600px) { .model-wall { grid-template-columns: 1fr 1fr; } .mw-item, .mw-item:nth-child(3n), .mw-item:nth-child(3n+1) { border-right: 1px solid var(--line); padding: 14px 12px 18px; } .mw-item:nth-child(2n) { border-right: 0; } .mw-item:nth-child(2n+1) { padding-left: 0; } }

/* Close-ups (photos cropped to the right to keep the subject, square) */
.closeups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.closeups figure { margin: 0; }
.closeups img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right center; }
.closeups figcaption { font-size: 15px; color: var(--text-2); margin-top: 12px; }
.closeups strong { display: block; font: 600 20px var(--head); color: var(--graphite); margin-bottom: 4px; }
@media (max-width: 900px) { .closeups { grid-template-columns: 1fr 1fr; } }

/* Model list (catalogue rows) */
.models { border-top: 2px solid var(--graphite); }
.model { display: grid; grid-template-columns: 150px 1.5fr 1fr 1fr 1.4fr auto; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--graphite); text-decoration: none; }
.model:hover { background: var(--steel); }
.model img, .model .ph { width: 150px; aspect-ratio: 1; object-fit: contain; background: var(--white); }
.model h3 { font-size: 21px; }
.model .k { display: none; font-size: 13px; color: var(--muted); }
.model .v { font-weight: 600; font-size: 15px; }
.model .best { font-size: 15px; color: var(--text-2); }
.model .go { font: 600 16px var(--head); color: var(--blue); white-space: nowrap; }
.models-head { display: grid; grid-template-columns: 150px 1.5fr 1fr 1fr 1.4fr auto; gap: 24px; padding: 10px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .models-head { display: none; }
  .model .k { display: inline; margin-right: 6px; }
  .model { grid-template-columns: 96px 1fr; gap: 6px 16px; align-items: start; }
  .model img, .model .ph { width: 96px; grid-row: span 5; }
  .model .go { justify-self: start; }
}

/* Feature split (photo + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { background: var(--white); }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split--flip > :first-child { order: 0; } }

/* Process (real sequence) */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--graphite); counter-reset: step; }
.process li { counter-increment: step; padding: 18px 20px 0 0; }
.process li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.process li::before { content: counter(step); display: block; font: 700 34px var(--head); color: var(--mdf); line-height: 1; margin-bottom: 10px; }
.process strong { display: block; font: 600 20px var(--head); margin-bottom: 4px; }
.process span { font-size: 15px; color: var(--text-2); }
.split .process { grid-template-columns: 1fr 1fr; }
.split .process li:nth-child(3) { padding-left: 0; border-left: 0; }
.split .process li { padding-bottom: 18px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } .process li:nth-child(3) { padding-left: 0; border-left: 0; } .process li { padding-bottom: 20px; } }

/* Question links */
.questions { list-style: none; border-top: 1px solid var(--line); }
.questions a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--graphite); }
.questions a:hover h3 { color: var(--blue); }
.questions p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.questions .tag { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Page hero */
.page-hero { padding: 26px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .lead { font-size: 19px; color: var(--text-2); max-width: 64ch; margin-top: 14px; }
.page-hero--img .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .page-hero--img .wrap { grid-template-columns: 1fr; } }

/* Product page */
.product-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 24px 0 56px; align-items: start; }
.product-photo { border: 1px solid var(--line); background: var(--white); }
.product-cat { font-size: 15px; color: var(--muted); text-decoration: none; }
.product-cat:hover { color: var(--blue); }
.product-hero h1 { font-size: clamp(32px, 3.8vw, 46px); margin-top: 6px; }
.product-hero .lead { color: var(--text-2); font-size: 18px; margin-top: 14px; }
.keyspecs { margin-top: 24px; border-top: 2px solid var(--graphite); }
.keyspecs div { display: grid; grid-template-columns: 40% 60%; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.keyspecs dt { color: var(--muted); }
.keyspecs dd { font-weight: 600; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; gap: 24px; } }

/* Placeholder (no photo yet) */
.ph { aspect-ratio: 4 / 3; background: var(--steel); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }

/* Grid of tiles (hubs) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0; border-top: 2px solid var(--graphite); }
.tile { display: block; padding: 20px 20px 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--graphite); }
.tile img { background: var(--white); aspect-ratio: 4 / 3; object-fit: contain; width: 100%; margin-bottom: 14px; }
.tile p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.tile:hover h3 { color: var(--blue); }

/* Prose */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted); }
.prose .tbc { background: #fff6e8; border-left: 3px solid #e2a457; color: #7a4a12; padding: 10px 14px; font-size: 14px; }
.prose small { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
thead th { text-align: left; font: 600 16px var(--head); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--graphite); }
td, tbody th { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { font-weight: 500; color: var(--muted); width: 30%; }

/* TOC */
.toc { border-left: 3px solid var(--mdf); padding: 4px 0 4px 18px; font-size: 16px; }
.toc strong { font-family: var(--head); font-size: 18px; }
.toc ol { padding-left: 1.2em; margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; border-top: 2px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 40px 18px 0; font: 600 20px var(--head); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 70ch; }

/* Quote form */
.quote-sec { background: var(--steel); padding: 72px 0; }
.quote { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; }
.quote-intro p { color: var(--text-2); margin-top: 14px; }
.quote-intro dl { margin-top: 24px; border-top: 1px solid var(--line); }
.quote-intro dl div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.quote-intro dt { font-weight: 600; }
.quote-intro dd { color: var(--text-2); }
.quote-form { background: var(--white); padding: 32px; border-top: 3px solid var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #b9c2cb; border-radius: 3px; background: var(--white); color: var(--graphite); font: 16px var(--body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-error { background: #fdecec; color: #8c1d1d; border-left: 3px solid #c43d3d; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }
@media (max-width: 900px) {
  .quote { grid-template-columns: 1fr; gap: 28px; }
  .quote-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Guides */
.post-meta { font-size: 14px; color: var(--muted); }
.byline { margin-top: 18px; font-size: 15px; color: var(--text-2); }

/* Thanks / 404 */
.thanks { padding: 96px 0; max-width: 640px; }
.thanks p { color: var(--text-2); margin-top: 14px; }

/* Footer */
.site-footer { background: var(--graphite); color: #aab4be; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 7px; }
.site-footer a { color: #aab4be; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #333c45; margin-top: 40px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ───────── Product page v2 ───────── */
.product-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-bottom: 48px; }
.gallery-main { border: 1px solid var(--line); background: var(--white); aspect-ratio: 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; }
.fit-contain { object-fit: contain; }
.fit-cover { object-fit: cover; object-position: right center; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); background: var(--white); aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.gallery-thumbs button.is-active { border: 2px solid var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; }
.product-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 46ch; }

.subnav { position: sticky; top: 70px; z-index: 40; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; }
.subnav a { padding: 13px 0; font: 600 17px var(--head); color: var(--text-2); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
[id] { scroll-margin-top: 130px; }

.overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.overview .prose h2:first-child { margin-top: 0; }
.fit { border-top: 2px solid var(--graphite); }
.fit > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fit h3 { font-size: 20px; margin-bottom: 10px; }
.fit ul { list-style: none; }
.fit li { position: relative; padding-left: 26px; font-size: 16px; color: var(--text-2); }
.fit li + li { margin-top: 8px; }
.fit li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.fit-yes li::before { content: "✓"; color: #1f8a4c; }
.fit-no li::before { content: "→"; color: var(--muted); }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: 32px; } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.feature { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; background: var(--white); }
.feature img { width: 200px; aspect-ratio: 1; object-fit: cover; object-position: right center; }
.feature > div { padding: 18px 20px 18px 0; }
.feature p { color: var(--text-2); font-size: 16px; margin-top: 6px; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature { grid-template-columns: 110px 1fr; gap: 14px; } .feature img { width: 110px; } .feature > div { padding: 10px 12px 10px 0; } }

.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.spec-group h3 { font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--graphite); }
.spec-group dl div { display: grid; grid-template-columns: 42% 58%; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-group dt { color: var(--muted); }
.spec-group dd { font-weight: 500; }
@media (max-width: 800px) { .spec-groups { grid-template-columns: 1fr; } }
.tbc { background: #fff6e8; border-left: 3px solid #e2a457; color: #7a4a12; padding: 10px 14px; font-size: 14px; }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.option { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.option h3 { font-size: 19px; }
.option p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) { .options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }

.siblings tr.is-current td { background: var(--steel); }
.siblings td:first-child { padding-left: 12px; }
.siblings thead th:first-child { padding-left: 12px; }
.siblings .here { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--blue); border: 1px solid var(--blue); padding: 1px 6px; border-radius: 2px; }

.faq-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.faq-wrap .faq { max-width: none; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* ───────── Category page v2 ───────── */
.page-hero--photo { padding: 0; border-bottom: 0; }
.page-hero--photo .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 20px; padding-bottom: 8px; }
.page-hero--photo figure { margin: 0; }
.page-hero--photo figure { max-width: 440px; justify-self: end; width: 100%; }
.page-hero--photo figure img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right center; }
@media (max-width: 900px) { .page-hero--photo .wrap { grid-template-columns: 1fr; gap: 24px; } }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--graphite); }
.pick { padding: 22px 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pick:first-child { padding-left: 0; }
.pick:last-child { border-right: 0; padding-right: 0; }
.pick-size { font: 700 26px var(--head); }
.pick-who { color: var(--text-2); font-size: 15px; margin-top: 4px; min-height: 3.2em; }
.pick-model { display: block; margin-top: 12px; text-decoration: none; color: var(--graphite); }
.pick-model img, .pick-model .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.pick-model span { display: block; font: 600 20px var(--head); color: var(--blue); margin-top: 4px; }
.pick-model:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pick-why { font-size: 15px; color: var(--text-2); margin-top: 6px; }
@media (max-width: 800px) { .picks { grid-template-columns: 1fr; } .pick, .pick:first-child, .pick:last-child { padding: 20px 0; border-right: 0; } .pick-who { min-height: 0; } }

.section--steel .model { background: transparent; }
.section--steel .model:hover { background: var(--white); }
.section--steel .model img { background: transparent; mix-blend-mode: multiply; }

.steps-photo { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: sp; }
.steps-photo li { counter-increment: sp; }
.steps-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right center; }
.steps-photo h3 { margin-top: 12px; }
.steps-photo h3::before { content: counter(sp) ". "; color: var(--mdf); }
.steps-photo p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) { .steps-photo { grid-template-columns: 1fr 1fr; } }

.prose-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose-split .prose > h2:first-child { margin-top: 0; }
.prose-aside { margin: 0; position: sticky; top: 96px; }
.prose-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: right center; }
.prose-aside figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .prose-split { grid-template-columns: 1fr; } .prose-aside { position: static; } .prose-aside img { aspect-ratio: 3 / 2; } }

/* ───────── Long-form pages: prose + sidebar ───────── */
.doc { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 320px); justify-content: space-between; gap: 56px; align-items: start; }
.doc .prose > :first-child { margin-top: 0; }
.doc .prose .toc { display: none; }
.doc-aside { position: sticky; top: 96px; display: grid; gap: 28px; }
.doc-aside h2 { font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--graphite); margin-bottom: 10px; }
.doc-img img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right center; background: var(--white); }
.doc-toc ol, .doc-related ul { list-style: none; font-size: 15px; }
.doc-toc li + li, .doc-related li + li { margin-top: 7px; }
.doc-toc a, .doc-related a { color: var(--text-2); text-decoration: none; }
.doc-toc a:hover, .doc-related a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-cta { background: var(--steel); padding: 20px; }
.doc-cta h2 { border: 0; padding: 0; margin: 0; font-size: 20px; }
.doc-cta p { font-size: 15px; color: var(--text-2); margin: 6px 0 14px; }
.doc-cta .btn { width: 100%; }
@media (max-width: 1000px) { .doc { grid-template-columns: 1fr; gap: 32px; } .doc-aside { position: static; } .doc-img, .doc-toc { display: none; } .doc .prose .toc { display: block; } }

/* ───────── Hub pages (machines, solutions, guides) ───────── */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 2px solid var(--graphite); counter-reset: fl; }
.flow li { counter-increment: fl; border-right: 1px solid var(--line); }
.flow li:last-child { border-right: 0; }
.flow a { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; padding: 14px 20px 14px 0; text-decoration: none; color: var(--text-2); font-size: 15px; height: 100%; }
.flow li + li a { padding-left: 20px; }
.flow img { width: 130px; aspect-ratio: 4 / 3; object-fit: contain; }
.flow b { display: block; font: 600 22px var(--head); color: var(--graphite); }
.flow b::before { content: counter(fl) ". "; color: var(--mdf); }
.flow a:hover b { color: var(--blue); }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr; } .flow li { border-right: 0; border-bottom: 1px solid var(--line); } .flow li + li a { padding-left: 0; } }

.split-img img { width: 100%; }
.section--steel .split-img img { mix-blend-mode: multiply; }
.split-text { margin-top: 14px; color: var(--text-2); }
.mini-specs { margin-top: 22px; border-top: 1px solid var(--line); }
.mini-specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-specs dt { color: var(--muted); }
.process--2 { grid-template-columns: 1fr 1fr; margin-top: 26px; }
.process--2 li:nth-child(3) { padding-left: 0; border-left: 0; }
.process--2 li { padding-bottom: 18px; }

.tiles--2 { grid-template-columns: 1fr 1fr; gap: 0 48px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
.section--steel .tile img { background: transparent; mix-blend-mode: multiply; }
@media (max-width: 800px) { .tiles--2, .tiles--3 { grid-template-columns: 1fr; } }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; }
.two-lists h3 { padding-bottom: 10px; border-bottom: 2px solid var(--graphite); }
.two-lists ul { list-style: none; }
.two-lists li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 800px) { .two-lists { grid-template-columns: 1fr; gap: 32px; } }

.feature-title { font-size: clamp(28px, 3.2vw, 40px); margin-top: 6px; }
.feature-title a { color: var(--graphite); text-decoration: none; }
.feature-title a:hover { color: var(--blue); }
.library { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.library-intro { color: var(--text-2); margin: 8px 0 20px; }
.section--steel .questions a:hover h3 { color: var(--blue); }
@media (max-width: 800px) { .library { grid-template-columns: 1fr; gap: 40px; } }
.ask-topic { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ask-topic p { color: var(--text-2); margin-top: 8px; max-width: 60ch; }

.spec-note { color: var(--muted); font-size: 15px; margin: -12px 0 24px; max-width: 70ch; }

/* ───────── Line planner ───────── */
.planner { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
.planner-in { border-top: 2px solid var(--graphite); padding-top: 20px; position: sticky; top: 96px; }
.planner-in h2 { font-size: 24px; margin-bottom: 18px; }
.pfield { border: 0; margin-bottom: 22px; }
.pfield > label, .pfield legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.prange { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: center; }
.prange input[type="range"] { width: 100%; accent-color: var(--blue); height: 28px; }
.prange input[type="number"], .pfield select { width: 100%; padding: 10px 12px; border: 1px solid #b9c2cb; border-radius: 3px; font: 600 17px var(--body); color: var(--graphite); background: var(--white); }
.phelp { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pseg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b9c2cb; border-radius: 3px; overflow: hidden; }
.pseg label { position: relative; text-align: center; cursor: pointer; }
.pseg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pseg span { display: block; padding: 10px; font-weight: 600; font-size: 15px; }
.pseg input:checked + span { background: var(--blue); color: #fff; }
.pseg input:focus-visible + span { outline: 3px solid var(--graphite); outline-offset: -3px; }
.pcheck { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.pcheck input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }

.planner-out { background: var(--steel); padding: 32px 36px 36px; }
.pout-label { font-size: 15px; color: var(--muted); }
.pout-big { font: 700 clamp(34px, 4.4vw, 52px) var(--head); line-height: 1.05; margin-top: 2px; }
.pout-big span { color: var(--blue); font-variant-numeric: tabular-nums; }
.planner-out h3 { font-size: 20px; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--graphite); }
.pbar { padding: 10px 0; }
.pbar-head { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; }
.pbar-head span:last-child { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbar-head em { font-style: normal; font-size: 12px; color: var(--blue); border: 1px solid var(--blue); padding: 1px 6px; border-radius: 2px; margin-left: 6px; background: var(--white); }
.pbar-track { height: 10px; background: var(--white); margin-top: 6px; }
.pbar-fill { height: 100%; background: #8fa3b8; transition: width .25s; }
.pbar.is-pick .pbar-fill { background: var(--blue); }
.pbar.is-over .pbar-fill { background: #c9a98a; }
.pbar-foot { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .pbar-fill { transition: none; } }
.pline { list-style: none; }
.pline li { display: grid; grid-template-columns: 96px 1fr; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pstation { grid-row: span 2; font: 600 17px var(--head); color: var(--muted); }
.pline strong { font: 600 20px var(--head); }
.pline li > span:last-child { font-size: 15px; color: var(--text-2); }
.pops { margin-top: 16px; }
.passume { margin-top: 26px; font-size: 14px; color: var(--text-2); }
.passume summary { cursor: pointer; font-weight: 600; color: var(--graphite); }
.passume p { margin-top: 10px; max-width: 70ch; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; gap: 28px; } .planner-in { position: static; } .planner-out { padding: 24px 20px 28px; } .pline li { grid-template-columns: 1fr; } .pstation { grid-row: auto; } }

/* Model wall, 4 across (used when a category has more than five models) */
.model-wall--4 { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.model-wall--4 .mw-item, .model-wall--4 .mw-item:first-child, .model-wall--4 .mw-item:last-child { border-right: 0; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.section--steel .mw-img img { background: transparent; mix-blend-mode: multiply; }
@media (max-width: 1000px) { .model-wall--4 { grid-template-columns: 1fr 1fr; } }
.page-hero--photo figure.is-contain { max-width: 560px; }
.page-hero--photo figure.is-contain img { aspect-ratio: 4 / 3; object-fit: contain; }
.spec-group--wide { grid-column: 1 / -1; }
.station-list { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.station-list li { counter-increment: st; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.station-list li::before { content: counter(st); display: inline-block; width: 26px; color: #8a6a43; font: 600 16px var(--head); }

/* Home: edge banding block */
.section--ruled { border-top: 1px solid var(--line); }
.link-rows { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.link-rows a { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--muted); }
.link-rows strong { font: 600 19px var(--head); color: var(--graphite); }
.link-rows a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .link-rows a { grid-template-columns: 1fr; gap: 2px; } }
