/* ============================================================
   CNC Rotary Table B2B Website — Shared Design System
   Used by: 4th Axis category page + HY170/HY200/HY250/HY320
   Design system approved in Phase 2-1:
     Primary blue  #12466f
     CTA orange    #d95d1e
   ============================================================ */

:root{
  --ink:#16202b;
  --steel:#4a5a6a;
  --mute:#7c8a99;
  --line:#dde4ea;
  --bg:#ffffff;
  --bg-soft:#f4f7f9;
  --bg-dark:#17222d;
  --brand:#123049;
  --brand-deep:#0a1a26;
  --accent:#b8934c;
  --accent-dark:#9a7a3c;
  --accent-ink:#0a1a26;
  --ok:#2f7d4f;
  --warn:#8a6d1f;
  --radius:4px;
  --maxw:1280px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.6;font-size:16px}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
ul{list-style:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
section[id]{scroll-margin-top:120px}

/* ---------- Shared blocks ---------- */
.section{padding:72px 0}
.section--soft{background:var(--bg-soft)}
.section--tight{padding:52px 0}
.eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.h1{font-size:38px;line-height:1.2;font-weight:800;letter-spacing:-.015em}
.h2{font-size:30px;line-height:1.25;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.h3{font-size:19px;font-weight:700;line-height:1.35}
.lead{color:var(--steel);font-size:17px;margin-top:12px;max-width:820px}
.section-head{margin-bottom:40px}
.section-head.center{text-align:center}
.section-head.center .lead{margin-left:auto;margin-right:auto}
.muted{color:var(--mute);font-size:13.5px}
.footnote{font-size:12.5px;color:var(--mute);margin-top:14px;line-height:1.6}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:15px;padding:13px 26px;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s;text-decoration:none!important;text-align:center}
.btn--primary{background:var(--accent);background-image:linear-gradient(180deg,#d2b06a,#b8934c 55%,#9d7c3e);color:var(--accent-ink);font-weight:700;letter-spacing:.01em;box-shadow:inset 0 1px 0 rgba(255,240,205,.35)}
.btn--primary:hover{background-image:linear-gradient(180deg,#dcbb76,#c49d54 55%,#a8863f)}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.btn--outline{background:transparent;color:var(--brand);border-color:var(--brand)}
.btn--outline:hover{background:var(--brand);color:#fff}
.btn--light{background:#fff;color:var(--brand)}
.btn--light:hover{background:#eef4f8}
.btn--sm{padding:9px 18px;font-size:14px}
.btn--block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- Placeholder container (no fabricated imagery) ---------- */
.ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:repeating-linear-gradient(45deg,#f2f5f8,#f2f5f8 10px,#eaf0f4 10px,#eaf0f4 20px);border:1.5px dashed #b9c6d1;color:var(--mute);text-align:center;padding:18px;border-radius:var(--radius)}
.ph svg{opacity:.5}
.ph span{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.ph small{font-size:11px;text-transform:none;letter-spacing:0;font-weight:400}
.ph--dark{background:repeating-linear-gradient(45deg,rgba(255,255,255,.05),rgba(255,255,255,.05) 10px,rgba(255,255,255,.1) 10px,rgba(255,255,255,.1) 20px);border-color:rgba(255,255,255,.35);color:#c3d4e2}
/* real product photo inside a former placeholder frame */
.ph--img{padding:0;background:#fff;border-style:solid;overflow:hidden}
.ph--img img{width:100%;height:100%;object-fit:contain;display:block}
.ph--img svg{display:none}

/* ---------- Header ---------- */
.topbar{background:var(--bg-dark);color:#aebccb;font-size:13px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:36px;gap:16px}
.topbar span{white-space:nowrap}
.topbar a{color:#dbe8f2;text-decoration:none}
.topbar a:hover{color:#fff;text-decoration:underline}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 3px rgba(22,32,43,.06)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:20px;position:relative}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;color:var(--ink);letter-spacing:.12em;white-space:nowrap}
.logo-mark{width:42px;height:42px;flex:none;display:block}
  .logo-mark svg{display:block;width:100%;height:100%}
.logo small{display:block;font-size:9.5px;font-weight:600;color:var(--mute);letter-spacing:.2em;text-transform:uppercase;margin-top:2px}
.nav{display:flex;align-items:center;gap:0;flex-wrap:nowrap}
.nav a{color:var(--ink);font-size:13.5px;font-weight:600;padding:8px 8px;border-radius:3px;white-space:nowrap}
.nav a:hover{color:var(--brand);background:var(--bg-soft);text-decoration:none}
.nav a.nav-cta{background:var(--accent);background-image:linear-gradient(180deg,#d2b06a,#b8934c 60%,#a07d3e);color:var(--accent-ink);margin-left:6px;padding:9px 16px;font-size:13.5px}
.nav a.nav-cta:hover{background:var(--accent-dark);color:var(--accent-ink)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:4px;padding:8px 10px;cursor:pointer}
@media (min-width:1560px){
  .nav a{font-size:14px;padding:8px 12px}
  .nav a.nav-cta{padding:9px 20px;font-size:14px;margin-left:10px}
  .nav-wrap{gap:32px}
}

/* ---------- Nav dropdown (Accessories anchors) ----------
   Generated by patch_nav_dropdown_anchors.py - edit it there and re-run.
   Below 1280px the hamburger menu is a column, so the panel renders as
   an indented accordion; from 1280px up it becomes a floating panel. */
.nav-item{position:relative;display:flex;flex-direction:column}
.nav-parent{display:flex;align-items:center;gap:5px}
.nav-caret{flex:none;opacity:.6;transition:transform .18s ease,opacity .18s ease}
.nav .nav-item.is-open>.nav-parent{color:var(--brand)}
.nav-item.is-open>.nav-parent .nav-caret{transform:rotate(180deg);opacity:1}
.nav .nav-panel{display:none;margin:2px 0 6px;padding:2px 0 2px 12px;border-left:2px solid var(--line)}
.nav .nav-item.is-open>.nav-panel{display:block}
.nav .nav-panel a{display:block;padding:8px 10px;font-size:13px;font-weight:600;color:var(--steel);border-radius:4px;white-space:nowrap}
.nav .nav-panel a:hover{color:var(--brand);background:var(--bg-soft)}
@media (min-width:1280px){
  .nav{align-self:stretch}
  .nav-item{align-self:stretch;justify-content:center}
  .nav .nav-parent{justify-content:flex-start}
  .nav .nav-panel{display:block;position:absolute;top:100%;left:50%;min-width:212px;margin:0;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 18px 36px rgba(22,32,43,.15);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-50%) translateY(-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s}
  .nav .nav-item.is-open>.nav-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
  .nav .nav-panel::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
}

/* ---------- Breadcrumb ---------- */
.crumb{background:var(--bg-soft);border-bottom:1px solid var(--line);font-size:13px}
.crumb .container{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;color:var(--mute)}
.crumb a{color:var(--steel)}
.crumb a:hover{color:var(--brand)}
.crumb .sep{color:#c2ccd6}
.crumb .cur{color:var(--ink);font-weight:600}

/* ---------- Page hero ---------- */
.phero{background:linear-gradient(160deg,var(--brand-deep) 0%,var(--brand) 60%,#173a52 100%);color:#fff;padding:56px 0 60px}
.phero .grid{display:grid;grid-template-columns:1.02fr .98fr;gap:52px;align-items:center}
.phero h1{font-size:34px;line-height:1.2;font-weight:800;letter-spacing:-.015em;margin-top:6px}
.phero .sub{font-size:17px;font-weight:600;color:#cfe2f2;margin-top:10px}
.phero p.intro{color:#c2d5e4;margin-top:16px;font-size:15.5px;max-width:560px}
.phero .btn-row{margin-top:28px}
.phero .ph{min-height:340px}
.badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:99px;padding:7px 16px;font-size:13px;font-weight:600;letter-spacing:.06em}
.badge::before{content:"";width:8px;height:8px;border-radius:50%;background:#c9a45c;box-shadow:0 0 0 3px rgba(201,164,92,.18)}

/* quick facts strip */
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:26px;border:1px solid rgba(255,255,255,.25);border-radius:var(--radius);overflow:hidden}
.facts div{padding:12px 16px;border-right:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05)}
.facts div:last-child{border-right:none}
.facts b{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#a9c2d5;font-weight:700}
.facts span{font-size:13.5px;color:#e3edf5}

/* ---------- Anchor sub-nav ---------- */
.subnav{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:66px;z-index:80}
.subnav .container{display:flex;gap:4px;overflow-x:auto;padding:0 24px}
.subnav a{font-size:13px;font-weight:600;color:var(--steel);padding:13px 12px;white-space:nowrap;border-bottom:2px solid transparent}
.subnav a:hover{color:var(--brand);border-bottom-color:var(--brand);text-decoration:none}

/* ---------- Category / product cards ---------- */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.prod-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
.prod-card:hover{border-color:#b9c6d1;box-shadow:0 8px 22px rgba(22,32,43,.08)}
.prod-card .ph{border-radius:0;border-left:none;border-right:none;border-top:none;min-height:200px}
.prod-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:9px;flex:1}
.prod-body .tag{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.prod-body h3{font-size:19px;font-weight:700}
.prod-body .desc{font-size:13.5px;color:var(--steel)}
.spec-note{font-size:12px;color:var(--mute);background:var(--bg-soft);border:1px solid var(--line);border-radius:3px;padding:7px 10px;font-weight:600}
.prod-actions{margin-top:auto;display:flex;gap:10px;padding-top:8px}
.prod-actions .btn{flex:1;padding:10px 12px;font-size:13.5px}

/* ---------- Tables ---------- */
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
table.data{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}
table.data th,table.data td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
table.data thead th{background:var(--bg-soft);font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--steel);font-weight:700;border-bottom:1px solid var(--line)}
table.data thead th a{color:var(--brand)}
table.data tbody th{font-weight:600;color:var(--ink);background:#fbfcfd;width:230px}
table.data tbody tr:last-child th,table.data tbody tr:last-child td{border-bottom:none}
table.data td .tbd{color:var(--mute);font-size:12.5px;font-weight:600;letter-spacing:.03em}
table.data .group-row th{background:#eef3f7;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--brand);font-weight:700}

/* ---------- Feature / info grids ---------- */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature{border:1px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff}
.feature .ic{width:38px;height:38px;border-radius:4px;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;color:var(--brand);margin-bottom:12px}
.feature h4,.feature h3{font-size:15.5px;font-weight:700;margin-bottom:6px}
.feature p{font-size:13.5px;color:var(--steel)}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px 16px;font-size:13.5px;font-weight:600;color:var(--steel)}
.chip a{color:var(--brand)}
.tbd-tag{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.04em;color:var(--warn);background:#fdf6e6;border:1px solid #f0e0b8;border-radius:3px;padding:2px 8px}

/* ---------- Dark technology band ---------- */
.tech{background:var(--bg-dark);color:#dbe5ee}
.tech .eyebrow{color:#f0a46f}
.tech .h2{color:#fff}
.tech .lead{color:#c6d5e2}
.tech .grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.tech-points{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}
.tech-point{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);border-radius:var(--radius);padding:16px 18px}
.tech-point h4,.tech-point h3{color:#fff;font-size:14.5px;margin-bottom:5px;font-weight:700}
.tech-point p{color:#c2d0dc;font-size:13px;line-height:1.6}
.tech .ph{min-height:320px}
.tech .btn-row{margin-top:30px}

/* ---------- Compatibility ---------- */
.compat{background:var(--bg-soft)}
.compat .grid{display:grid;grid-template-columns:1.08fr .92fr;gap:52px;align-items:center}
.compat-factors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.factor{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;font-size:14px;font-weight:600;color:var(--steel);display:flex;gap:10px;align-items:center}
.factor svg{flex:none;color:var(--brand)}
.compat-note{background:#fff;border-left:4px solid var(--brand);border-radius:var(--radius);box-shadow:0 4px 14px rgba(22,32,43,.06);padding:24px 26px}
.compat-note p{font-size:15px;color:var(--ink);font-weight:600}
.compat-note small{display:block;margin-top:8px;color:var(--mute);font-size:12.5px;font-weight:400}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gallery .ph{min-height:170px}

/* ---------- Applications list ---------- */
.app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.app-card{border:1px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:border-color .15s,box-shadow .15s}
.app-card:hover{border-color:var(--brand);box-shadow:0 6px 18px rgba(18,70,111,.10);text-decoration:none}
.app-card .ic{width:38px;height:38px;border-radius:4px;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;color:var(--brand)}
.app-card h3{font-size:15px;font-weight:700;color:var(--ink)}
.app-card .go{font-size:13px;font-weight:700;color:var(--brand);margin-top:auto}

/* ---------- Related products ---------- */
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rel-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;display:flex;flex-direction:column}
.rel-card .ph{min-height:150px;border-radius:0;border-left:none;border-right:none;border-top:none}
.rel-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:7px;flex:1}
.rel-body h3{font-size:16px;font-weight:700}
.rel-body p{font-size:13px;color:var(--mute)}
.rel-body .prod-actions{margin-top:14px}

/* ---------- Steps ---------- */
.steps{counter-reset:s;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:20px;position:relative}
.step::before{counter-increment:s;content:counter(s);display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;font-weight:800;margin-bottom:12px}
.step h4,.step h3{font-size:15px;font-weight:700;margin-bottom:6px}
.step p{font-size:13.5px;color:var(--steel)}

/* ---------- Request a quote ---------- */
.rq{background:linear-gradient(150deg,var(--brand-deep),var(--brand));color:#fff}
.rq .h2{color:#fff}
.rq .grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.rq .lead{color:#b9cfdf}
.rq-channels{margin-top:28px;display:flex;flex-direction:column;gap:14px}
.channel{display:flex;align-items:center;gap:14px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius);padding:14px 18px;background:rgba(255,255,255,.05);color:#fff}
.channel:hover{text-decoration:none;background:rgba(255,255,255,.1)}
.channel .ic{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:none}
.channel b{display:block;font-size:14.5px}
.channel small{color:#a9c2d5;font-size:12.5px}
.rq-form{background:#fff;border-radius:6px;padding:30px;color:var(--ink);box-shadow:0 12px 34px rgba(0,0,0,.22)}
.rq-form h3{font-size:18px;font-weight:700;margin-bottom:4px}
.rq-form>p{font-size:13px;color:var(--mute);margin-bottom:18px}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.f-field{display:flex;flex-direction:column;gap:5px}
.f-field.full{grid-column:1/-1}
.f-field label{font-size:12.5px;font-weight:700;color:var(--steel)}
.f-field input,.f-field textarea,.f-field select{font-family:var(--font);font-size:14px;padding:11px 12px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.f-field input:focus,.f-field textarea:focus{outline:2px solid rgba(18,70,111,.25);border-color:var(--brand)}
.f-field textarea{min-height:96px;resize:vertical}
.f-note{font-size:11.5px;color:var(--mute);margin-top:12px}
.rq-form .btn--primary{margin-top:16px}

/* ---------- CTA band ---------- */
.cta-band{background:var(--brand);color:#fff;padding:44px 0}
.cta-band .container{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap}
.cta-band h3{font-size:22px;font-weight:700}
.cta-band p{color:#c3d5e4;font-size:14.5px;margin-top:6px}

/* ---------- Footer ---------- */
footer{background:var(--bg-dark);color:#9fb4c5;font-size:14px}
footer .logo-mark svg,.ad-mark svg{box-shadow:0 0 0 1px rgba(201,164,92,.30);border-radius:10px}

.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1fr;gap:36px;padding:56px 0 40px}
.foot-brand .logo{color:#fff;margin-bottom:14px}
.foot-brand p{font-size:13px;line-height:1.65;color:#8ba0b2;max-width:280px}
.foot-col h4,.foot-col h3{color:#fff;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:16px}
.foot-col ul li{margin:9px 0}
.foot-col a{color:#9fb4c5}
.foot-col a:hover{color:#fff}
.foot-contact li{display:flex;gap:9px;align-items:flex-start;margin:10px 0}
.foot-contact span[data-config="address"]{white-space:pre-line}
.foot-contact svg{flex:none;margin-top:3px;color:#6e8699}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;font-size:12.5px;color:#74899b}

/* ---------- Floating mobile actions ---------- */
.float-actions{position:fixed;right:12px;bottom:12px;z-index:90;display:none;flex-direction:column;gap:8px;padding-bottom:env(safe-area-inset-bottom)}
.float-actions a{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.24)}
.float-rq{background:var(--accent)}
.float-wa{background:#25a35a}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .nav a{padding:8px 7px;font-size:13px}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .app-grid{grid-template-columns:repeat(3,1fr)}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
}
/* The 13 top-level nav items need ~1280px to fit on one line. Below that the
   header overflowed horizontally (scrollWidth 1183 at a 1024px viewport), so the
   hamburger menu now covers the whole 961-1279px band as well. */
@media (max-width:1279px){
  /* max-height + overflow-y: 13 top-level items plus the 5-link Accessories
     accordion can be taller than a phone screen, which left the last items
     unreachable. The panel now scrolls inside itself instead. */
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:10px 22px 26px;box-shadow:0 12px 24px rgba(22,32,43,.12);max-height:calc(100vh - 66px);overflow-y:auto;overscroll-behavior:contain}
  .nav.open{display:flex}
  /* Compact rows: 12px of vertical padding keeps every link at ~45px
     (still a comfortable tap target) while the 13-item menu no longer
     runs past the fold on a 390x844 phone. */
  .nav a{padding:12px 8px;border-bottom:1px solid var(--bg-soft);font-size:15px}
  .nav .nav-item+.nav-item{margin-top:2px}
  .nav .nav-panel{margin:2px 0 8px;padding:2px 0 2px 12px}
  .nav .nav-panel a{padding:9px 10px;font-size:13.5px}
  .nav a.nav-cta{margin:12px 0 2px;text-align:center;padding:12px 16px}
  .nav-toggle{display:inline-flex}
}
@media (max-width:960px){
  .subnav{top:66px}
  .phero .grid,.tech .grid,.compat .grid,.rq .grid,.grid-2{grid-template-columns:1fr;gap:34px}
  .phero h1{font-size:28px}
  .h1{font-size:30px}
  .h2{font-size:26px}
  .related-grid,.grid-3{grid-template-columns:1fr 1fr}
  .facts{grid-template-columns:1fr 1fr}
  .facts div:nth-child(2){border-right:none}
  .facts div:nth-child(1),.facts div:nth-child(2){border-bottom:1px solid rgba(255,255,255,.18)}
  /* minmax(0,1fr) rather than a bare 1fr: 1fr carries an auto minimum, so the two
     link columns refused to shrink below their longest link and pushed the page
     22px wide at a 320px viewport. Rendering is identical whenever space allows. */
  .foot-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:40px 0 30px}
  .float-actions{display:flex}
  .topbar .hide-sm{display:none}
}
@media (max-width:640px){
  .section{padding:52px 0}
  /* Utility strip: the manufacturer line + email address need ~409px side by side,
     so on phones the nowrap row pushed past the viewport and forced a horizontal
     page scroll (documentElement.scrollWidth 389 at a 320-390px viewport).
     flex-wrap only wraps when the space is genuinely insufficient, so tablet and
     desktop rendering is unchanged. white-space:normal + overflow-wrap keep a
     longer real email address from breaking the layout once it is configured. */
  .topbar .container{flex-wrap:wrap;gap:4px 14px}
  .topbar span{white-space:normal;overflow-wrap:anywhere}
  /* Match the homepage's phone treatment for these two shared grids. Without it
     they stayed two-up on the inner pages while the homepage went single-column,
     and the 14px factor cards pushed the page 23px wide at a 320px viewport. */
  .tech-points,.compat-factors{grid-template-columns:1fr}
  .grid-4,.grid-3,.related-grid,.feature-grid,.app-grid,.steps,.gallery{grid-template-columns:1fr}
  .app-grid{grid-template-columns:1fr 1fr}
  .prod-actions{flex-direction:column}
  .f-grid{grid-template-columns:1fr}
  .rq-form{padding:22px}
  .hero-compact{padding:44px 0 48px}
  .phero h1{font-size:25px}
  .cta-band .container{flex-direction:column;align-items:flex-start}
}

/* ============================================================
   MOBILE COMPACT LAYOUT — phones (< 768px)
   Purpose: cut the total scroll length of every page on a phone.
     · product cards  -> two-up, 150px image band, trimmed copy
     · page heroes    -> ~215px media, title capped at 23px
     · inner sections -> reduced padding, shorter placeholder bands
   Many declarations carry !important deliberately, for two reasons:
     1) the card frames carry inline aspect-ratio / min-height, and
     2) each page ships its own <style> block that is parsed AFTER
        this file, so a normal rule here would lose the cascade.
   ============================================================ */
@media (max-width:767px){
  /* ---------- global rhythm ---------- */
  .container{padding:0 16px!important}
  .section{padding:38px 0!important}
  .section--tight{padding:28px 0!important}
  .section-head{margin-bottom:22px!important}
  .h1{font-size:23px!important;line-height:1.25!important}
  .h2{font-size:21px!important;line-height:1.3!important}
  .h3{font-size:16.5px!important}
  .lead{font-size:14.5px!important;margin-top:8px!important}

  /* ---------- page hero: keep the first screen short ---------- */
  .phero{padding:26px 0 30px!important}
  .phero .grid{gap:20px!important}
  .phero h1{font-size:23px!important;letter-spacing:-.01em!important}
  .phero .sub{font-size:14.5px!important;margin-top:7px!important}
  .phero p.intro{font-size:13.5px!important;margin-top:9px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .phero .btn-row{margin-top:16px!important;gap:10px!important}
  .phero .badge{font-size:11px!important;padding:5px 12px!important}
  /* The hero media frame is 340-380px tall, and some pages set an inline
     min-height on it — cap it to a 200-250px band on phones. */
  .phero .ph{height:215px!important;min-height:0!important;max-height:215px!important}
  .phero .ph img,.phero .ph--img img{width:100%!important;height:100%!important;object-fit:contain!important}
  .phero .facts{margin-top:14px!important}
  .facts div{padding:9px 12px!important}
  .facts b{font-size:10px!important}
  .facts span{font-size:12px!important}

  /* accessories / factory / blog / applications / technical-guide heroes */
  .acc-hero{padding:26px 0 30px!important}
  .acc-hero .grid{gap:20px!important}
  .acc-hero h1{font-size:23px!important;margin:12px 0 8px!important}
  .acc-hero-sub{font-size:13.5px!important}
  .acc-hero-note{font-size:13px!important;margin-bottom:16px!important}
  .acc-hero-media{height:215px!important;min-height:0!important;max-height:215px!important}

  .ft-hero{padding:32px 0 36px!important}
  .ft-hero h1{font-size:23px!important;margin-top:12px!important}
  .ft-hero .sub{font-size:14px!important;margin-top:10px!important}
  .ft-hero .btn-row{margin-top:18px!important}

  .bl-hero{padding:26px 0 30px!important}
  .bl-hero h1{font-size:23px!important;margin-top:12px!important}
  .bl-hero .sub{font-size:14px!important;margin-top:9px!important}
  .bl-facts{grid-template-columns:1fr 1fr!important;margin-top:16px!important;max-width:none!important;gap:10px!important}
  .bl-fact{padding:10px!important}
  .bl-fact b{font-size:18px!important}
  .bl-art-hero{padding:22px 0 26px!important}
  .bl-art-hero h1{font-size:21px!important;margin-top:10px!important}

  .ap-hero{padding:28px 0 32px!important}
  .ap-hero h1{font-size:23px!important;margin-top:12px!important;max-width:none!important}
  .ap-hero .sub{font-size:14px!important;margin-top:9px!important;max-width:none!important}

  .tg-hero{padding:26px 0 30px!important}
  .tg-hero h1{font-size:23px!important;margin-top:12px!important}
  .tg-hero .sub{font-size:14px!important;margin-top:9px!important}

  /* ---------- product cards: two-up, 150px image, trimmed copy ---------- */
  .prod-grid,.grid-4,.grid-3,.related-grid,.g5{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .prod-card .ph,.rel-card .ph{height:150px!important;min-height:0!important;max-height:150px!important;aspect-ratio:auto!important}
  .ch-types .prod-card .ph{height:150px!important;min-height:0!important}
  /* cover (not contain) so a 150px-tall phone frame is filled edge to edge
     instead of leaving white bars; products are centred in every source
     photo, so the slight side crop keeps the subject intact. */
  .prod-card .ph img,.rel-card .ph img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
  .prod-body{padding:11px 12px 13px!important;gap:5px!important}
  .prod-body .tag{display:none!important}
  .prod-body h3{font-size:13.5px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .prod-body h3 small{display:none!important}
  .prod-body .desc{font-size:12px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .spec-note{display:none!important}
  .prod-actions{flex-direction:column!important;gap:6px!important;padding-top:6px!important}
  .prod-actions .btn{width:100%!important;padding:8px 10px!important;font-size:12.5px!important}
  /* Drop the secondary "Request a Quote" only when the card still holds
     another action, so quote-only cards (tailstocks) keep their only CTA. */
  .prod-actions .btn--outline~a[href*="request-a-quote"]{display:none!important}

  /* ---------- applications ---------- */
  .ap-layout{padding:24px 0 40px!important}
  .ap-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .ap-sec{padding:20px 15px!important}
  .ap-sec+.ap-sec{margin-top:18px!important}
  .ap-sec .sec-head{margin-bottom:14px!important;padding-bottom:10px!important}
  .ap-sec .sec-head h2{font-size:17px!important}
  .ap-card .ph{aspect-ratio:auto!important;height:104px!important}
  .ap-card .bd{padding:11px 11px 12px!important}
  .ap-card .cat{font-size:10px!important}
  .ap-card h3{font-size:13.5px!important;margin:4px 0 6px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .ap-card p{font-size:11.5px!important;line-height:1.5!important;margin-bottom:8px!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .ap-card .more{font-size:12px!important}
  .ap-cat a{padding:12px 16px!important;font-size:13.5px!important}

  /* ---------- blog: card rows become a swipeable snap rail ---------- */
  .bl-sec{padding:32px 0!important}
  .bl-sec-head{margin-bottom:18px!important}
  .bl-sec-head h2{font-size:20px!important}
  .bl-sec-head .ic{width:40px!important;height:40px!important}
  .bl-catnav .container{padding:12px 16px!important;gap:8px!important}
  .bl-grid,.bl-rel-grid{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:78%!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;-webkit-overflow-scrolling:touch;padding:2px 2px 12px!important}
  .bl-card{scroll-snap-align:start!important;padding:16px 15px 15px!important}
  .bl-card h3{font-size:15px!important;margin-bottom:8px!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .bl-card .sum{font-size:12.5px!important;line-height:1.55!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .bl-card .foot{margin-top:12px!important}
  .bl-cta{margin-top:30px!important;padding:26px 18px!important}
  .bl-cta h2{font-size:20px!important}
  .bl-cta p{font-size:14px!important}

  /* ---------- accessories: rows were photo-heavy ---------- */
  .acc-block{padding:26px 0!important}
  .acc-row,.acc-row.wide{padding:16px 0!important;gap:12px!important}
  .acc-photo{max-width:100%!important}
  .acc-photo img{max-height:150px!important;object-fit:contain!important;background:#fff}
  .acc-row p{font-size:13.5px!important;line-height:1.6!important}
  .acc-feat b{font-size:14px!important}
  .acc-feat p{font-size:13px!important}
  .acc-duo{gap:10px!important}
  .acc-hero-note{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}

  /* ---------- inquiry form: single column, tighter inputs ---------- */
  .f-grid{grid-template-columns:1fr!important;gap:10px!important}
  .f-field{gap:4px!important}
  .f-field label{font-size:12px!important}
  /* 16px keeps iOS from zooming the page when a field takes focus */
  .f-field input,.f-field textarea,.f-field select{font-size:16px!important;padding:9px 10px!important;border-radius:3px!important}
  .f-field textarea{min-height:78px!important}
  .rq-form-card{padding:16px 14px!important}
  .rq-form-card h3{font-size:17px!important}
  .rq-form-card>p.sub{margin-bottom:14px!important;font-size:12.5px!important}
  .rq-form-card .btn--primary{margin-top:12px!important}
  .rq-form{padding:16px!important}

  /* ---------- long-form reading: tighter rhythm ---------- */
  .bl-sec{padding:26px 0!important}
  .bl-art-hero{padding:20px 0 22px!important}
  .bl-body h2{font-size:18px!important;margin:22px 0 8px!important}
  .bl-body h3{font-size:15.5px!important;margin:18px 0 6px!important}
  .bl-body p{font-size:14px!important;line-height:1.58!important;margin:0 0 9px!important}
  .bl-body li{font-size:14px!important;line-height:1.55!important;margin-bottom:5px!important}
  .bl-body ul,.bl-body ol{margin:0 0 10px!important;padding-left:20px!important}
  .bl-note{padding:12px 13px!important;margin-bottom:18px!important;font-size:12.5px!important;line-height:1.5!important}
  .bl-body table{font-size:12.5px!important}
  .bl-body th,.bl-body td{padding:7px 8px!important}
  .tg-grid{grid-template-columns:1fr!important;gap:12px!important;margin-top:18px!important}
  .tg-card{padding:16px 15px 15px!important}
  .tg-card .ic{width:38px!important;height:38px!important;margin-bottom:10px!important}
  .tg-card h3{font-size:15.5px!important}
  .tg-card p{font-size:12.5px!important;line-height:1.55!important;margin-bottom:10px!important}
  .tg-item{padding:12px 14px!important;gap:10px!important}
  .tg-item h3{font-size:14.5px!important;margin-bottom:5px!important}
  .tg-item p{font-size:12.5px!important;line-height:1.55!important}
  .tg-note{padding:12px 13px!important;font-size:12.5px!important;line-height:1.5!important}

  /* ---------- long placeholder bands inside inner sections ---------- */
  .gallery .ph,.factory-grid .ph,.tech .ph{min-height:120px!important}
  .feature{padding:16px!important}
  .step{padding:16px!important}
  .steps{gap:12px!important}
}


/* ===== DEPLOY PATCH (build_deploy.py) ===== */
/* 顶部信息条里的邮箱链接被通用 a 规则染成品牌深蓝，与深色背景几乎同色 */
.topbar .container a{color:#dbe8f2}
.topbar .container a:hover{color:#fff}
