/* ZQM Bearings Sitewide Header & Footer v1.0.0 (V8 8:0 Unanimous Final Lock) */
:root {
  --zqm-hf-navy: #0f1d30;
  --zqm-hf-steel: #162a44;
  --zqm-hf-gold: #d99b16;
  --zqm-hf-gold-bright: #ffbc28;
  --zqm-hf-hairline: #e2e8f0;
  --zqm-hf-surface: #f6f8fb;
  --zqm-hf-rad: 4px;
  --zqm-hf-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Scoped Reset Armor against Astra / Elementor / WooCommerce */
#masthead.zqm-hf-header,
#masthead.zqm-hf-header *,
#masthead.zqm-hf-header *::before,
#masthead.zqm-hf-header *::after,
#colophon.zqm-hf-footer,
#colophon.zqm-hf-footer *,
#colophon.zqm-hf-footer *::before,
#colophon.zqm-hf-footer *::after,
#zqm-hf-drawer,
#zqm-hf-drawer *,
#zqm-hf-drawer *::before,
#zqm-hf-drawer *::after {
  box-sizing: border-box;
}

#masthead.zqm-hf-header a,
#colophon.zqm-hf-footer a,
#zqm-hf-drawer a {
  text-decoration: none;
  color: inherit;
}

#masthead.zqm-hf-header :focus,
#colophon.zqm-hf-footer :focus,
#zqm-hf-drawer :focus,
#zqm-hf-btt:focus {
  outline: none !important;
}

#masthead.zqm-hf-header :focus-visible,
#colophon.zqm-hf-footer :focus-visible,
#zqm-hf-drawer :focus-visible,
#zqm-hf-btt:focus-visible {
  outline: 2px solid var(--zqm-hf-gold) !important;
  outline-offset: 2px;
  border-radius: 3px;
}

.zqm-hf-tnum { font-variant-numeric: tabular-nums; }
.zqm-hf-nw { white-space: nowrap; }

.zqm-hf-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-inline: 28px;
  width: 100%;
}

/* ===== HEADER ===== */
html body #masthead.zqm-hf-header {
  position: relative;
  z-index: 60;
  background: #ffffff !important;
  border-bottom: 1px solid var(--zqm-hf-hairline);
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Preserve flush 0px join on dark-hero Shop & Product Category Hubs */
body.tax-product_cat #masthead.zqm-hf-header,
body.post-type-archive-product #masthead.zqm-hf-header {
  border-bottom: 0 !important;
}

.zqm-hf-crown {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #0f1d30 0%, #0f1d30 86%, #ffbc28 86%, #ffbc28 100%);
}

/* Top Utility Rail (34px #F6F8FB) */
.zqm-hf-rail {
  background: var(--zqm-hf-surface);
  border-bottom: 1px solid var(--zqm-hf-hairline);
  color: #334155;
  font-size: 12px;
  line-height: 1.4;
}

.zqm-hf-rail-in {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.zqm-hf-rail-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1e293b;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.zqm-hf-rail-tick {
  width: 14px;
  height: 1px;
  background: var(--zqm-hf-gold);
  flex-shrink: 0;
}

.zqm-hf-rail-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.zqm-hf-rail-div {
  width: 1px;
  height: 12px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.zqm-hf-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

#masthead.zqm-hf-header .zqm-hf-lang a {
  padding: 2px 4px;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  transition: color 140ms ease;
}

#masthead.zqm-hf-header .zqm-hf-lang a.is-on {
  color: var(--zqm-hf-navy);
  font-weight: 800;
}

#masthead.zqm-hf-header .zqm-hf-lang a:hover {
  color: var(--zqm-hf-navy);
}

.zqm-hf-lang-sep {
  color: #cbd5e1;
  user-select: none;
}

/* Main Navigation Bar (90px Pure #FFFFFF · Tight-Cropped 88x67 Logo · H-1 Right-Aligned 5-Item Nav) */
.zqm-hf-mainbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.zqm-hf-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.zqm-hf-brand-img {
  width: 88px;
  height: 67px;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: transform 200ms var(--zqm-hf-ease);
}

.zqm-hf-brand:hover .zqm-hf-brand-img {
  transform: scale(1.02);
}

.zqm-hf-nav-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#masthead.zqm-hf-header ul.zqm-hf-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zqm-hf-nav-item {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zqm-hf-nav-head {
  display: inline-flex;
  align-items: center;
  position: relative;
}

#masthead.zqm-hf-header .zqm-hf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  letter-spacing: 0.02em;
  position: relative;
  white-space: nowrap;
  transition: color 200ms var(--zqm-hf-ease);
}

.zqm-hf-lang-en #masthead.zqm-hf-header .zqm-hf-nav-link,
#masthead.zqm-hf-header.is-en .zqm-hf-nav-link {
  letter-spacing: -0.005em;
}

.zqm-hf-nav-item:last-child .zqm-hf-nav-link {
  padding-right: 2px;
}

#masthead.zqm-hf-header .zqm-hf-nav-link:hover,
#masthead.zqm-hf-header .zqm-hf-nav-item.is-open > .zqm-hf-nav-link,
#masthead.zqm-hf-header .zqm-hf-nav-item.is-current > .zqm-hf-nav-link {
  color: var(--zqm-hf-navy);
}

.zqm-hf-nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1.5px;
  background: var(--zqm-hf-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--zqm-hf-ease);
}

.zqm-hf-nav-item:last-child .zqm-hf-nav-link::after {
  right: 2px;
}

.zqm-hf-nav-link:hover::after,
.zqm-hf-nav-item.is-open > .zqm-hf-nav-link::after,
.zqm-hf-nav-item.is-current > .zqm-hf-nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.zqm-hf-chev {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 220ms var(--zqm-hf-ease), color 200ms ease;
}

.zqm-hf-nav-item.is-open .zqm-hf-chev,
.zqm-hf-nav-link:hover .zqm-hf-chev {
  color: var(--zqm-hf-navy);
}

.zqm-hf-nav-item.is-open .zqm-hf-chev {
  transform: rotate(180deg);
}

/* Mobile / Tablet Right Controls */
.zqm-hf-mob-right {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.zqm-hf-mob-lang {
  display: none;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: var(--zqm-hf-rad);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

#masthead.zqm-hf-header .zqm-hf-mob-lang a {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 1px;
}

#masthead.zqm-hf-header .zqm-hf-mob-lang a.is-on {
  color: var(--zqm-hf-navy);
  font-weight: 800;
}

.zqm-hf-mob-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: var(--zqm-hf-rad);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--zqm-hf-navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.zqm-hf-mob-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--zqm-hf-navy);
}

/* ===== B-2 LOCKED (8:0 UNANIMOUS): 7 SOCIAL & CONTACT CHANNELS (ZERO GOLD BORDER · NEUTRAL WHITE ELEVATION + OFFICIAL BRAND COLORS + SCALE 1.12) ===== */
.zqm-hf-soc-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.zqm-hf-soc-bar--top { gap: 3px; }
.zqm-hf-soc-bar--ftr { gap: 6px; }

.zqm-hf-soc-tile {
  position: relative;
  flex-shrink: 0;
  border-radius: var(--zqm-hf-rad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155 !important;
  transition: background-color 220ms var(--zqm-hf-ease), border-color 220ms var(--zqm-hf-ease), box-shadow 220ms var(--zqm-hf-ease), transform 220ms var(--zqm-hf-ease), color 220ms var(--zqm-hf-ease);
}

.zqm-hf-soc-bar--top .zqm-hf-soc-tile {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
}

.zqm-hf-soc-bar--ftr .zqm-hf-soc-tile {
  width: 34px;
  height: 34px;
  background: #f6f8fb;
  border: 1px solid #dce3ec;
}

.zqm-hf-soc-tile[data-ch="mail"] { --zqm-ch-c: #0f1d30; }
.zqm-hf-soc-tile[data-ch="wa"]   { --zqm-ch-c: #25d366; }
.zqm-hf-soc-tile[data-ch="li"]   { --zqm-ch-c: #0a66c2; }
.zqm-hf-soc-tile[data-ch="fb"]   { --zqm-ch-c: #1877f2; }
.zqm-hf-soc-tile[data-ch="ig"]   { --zqm-ch-c: #e1306c; }
.zqm-hf-soc-tile[data-ch="x"]    { --zqm-ch-c: #0f1419; }
.zqm-hf-soc-tile[data-ch="yt"]   { --zqm-ch-c: #ff0000; }

.zqm-hf-soc-svg {
  display: block;
  flex-shrink: 0;
  transition: transform 240ms var(--zqm-hf-ease), color 200ms var(--zqm-hf-ease), opacity 220ms var(--zqm-hf-ease);
}

.zqm-hf-soc-svg .ig-mono { transition: opacity 220ms var(--zqm-hf-ease); }
.zqm-hf-soc-svg .ig-grad { opacity: 0; transition: opacity 220ms var(--zqm-hf-ease); }
.zqm-hf-soc-svg .mail-flap { transition: stroke 220ms var(--zqm-hf-ease); }

.zqm-hf-soc-tile:hover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: var(--zqm-ch-c) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(15, 29, 48, 0.10);
}

.zqm-hf-soc-bar--top .zqm-hf-soc-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 29, 48, 0.08);
}

.zqm-hf-soc-tile:hover .zqm-hf-soc-svg { transform: scale(1.12); }
.zqm-hf-soc-tile[data-ch="ig"]:hover .ig-mono { opacity: 0; }
.zqm-hf-soc-tile[data-ch="ig"]:hover .ig-grad { opacity: 1; }
.zqm-hf-soc-tile[data-ch="mail"]:hover .mail-flap { stroke: var(--zqm-hf-gold); }

/* ===== MEGA-MENUS (4px CNC CHAMFER + V6-A 1.15px FINE GOLD PERIMETER TRACE) ===== */
.zqm-hf-mega {
  position: absolute;
  top: calc(100% + 1px);
  left: auto;
  right: 0;
  transform: translate(0, 6px);
  background: #ffffff;
  border: 1px solid #d5dee8;
  border-radius: var(--zqm-hf-rad);
  box-shadow: 0 20px 48px rgba(15, 29, 48, 0.11);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--zqm-hf-ease), transform 220ms var(--zqm-hf-ease), visibility 180ms;
  z-index: 80;
  overflow: hidden;
}

.zqm-hf-nav-item.is-open .zqm-hf-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0);
}

#zqm-nav-products .zqm-hf-mega   { right: -168px; }
#zqm-nav-industries .zqm-hf-mega { right: -84px; }
#zqm-nav-about .zqm-hf-mega      { left: 0; right: auto; }

.zqm-hf-mega--products {
  width: 924px;
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: 1.84fr 1fr;
}

.zqm-hf-mega--industries {
  width: 620px;
  max-width: calc(100vw - 32px);
  padding: 20px 22px 18px;
}

.zqm-hf-mega--about {
  width: 394px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px;
}

.zqm-hf-mega-left {
  padding: 20px 22px 18px;
  background: #ffffff;
}

.zqm-hf-mega-right {
  padding: 20px 20px 18px;
  background: #f8fafc;
  border-left: 1px solid var(--zqm-hf-hairline);
  display: flex;
  flex-direction: column;
}

.zqm-hf-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.3;
}

.zqm-hf-kicker::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--zqm-hf-gold);
  border-radius: 1px;
  flex-shrink: 0;
}

.zqm-hf-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zqm-hf-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zqm-hf-eng-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 44px;
}

#masthead.zqm-hf-header .zqm-hf-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: var(--zqm-hf-rad);
  color: #1e293b;
  transition: background-color 180ms var(--zqm-hf-ease), border-color 180ms var(--zqm-hf-ease), box-shadow 180ms var(--zqm-hf-ease), color 180ms var(--zqm-hf-ease);
}

#masthead.zqm-hf-header .zqm-hf-card--cat {
  padding: 9px 12px;
  min-height: 52px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

#masthead.zqm-hf-header .zqm-hf-card--about {
  padding: 12px 14px;
  align-items: flex-start;
}

#masthead.zqm-hf-header .zqm-hf-card--eng {
  padding: 16px 16px;
  align-items: flex-start;
  gap: 13px;
  flex: 1;
}

#masthead.zqm-hf-header .zqm-hf-card:hover {
  background: #f6f9fd;
  border-color: #cbd9e9;
  color: var(--zqm-hf-navy);
  box-shadow: 0 4px 14px rgba(15, 29, 48, 0.045);
}

.zqm-hf-mega-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#masthead.zqm-hf-header .zqm-hf-mega-foot a {
  font-size: 13px;
  font-weight: 700;
  color: #0f4c81;
  position: relative;
  padding-bottom: 2px;
  line-height: 1.4;
}

.zqm-hf-mega-foot a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--zqm-hf-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--zqm-hf-ease);
}

#masthead.zqm-hf-header .zqm-hf-mega-foot a:hover {
  color: var(--zqm-hf-navy);
}

.zqm-hf-mega-foot a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.zqm-hf-ic,
.zqm-hf-eng-ic {
  position: relative;
  flex-shrink: 0;
  border-radius: var(--zqm-hf-rad);
  background: #f4f7fa;
  border: 1px solid var(--zqm-hf-hairline);
  color: var(--zqm-hf-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms var(--zqm-hf-ease), border-color 200ms var(--zqm-hf-ease), box-shadow 200ms var(--zqm-hf-ease);
}

.zqm-hf-ic { width: 34px; height: 34px; }
.zqm-hf-eng-ic { width: 38px; height: 38px; }

.zqm-hf-ico-svg {
  display: block;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.zqm-hf-ico-svg .ic-ring { stroke: var(--zqm-hf-steel); transition: stroke 200ms var(--zqm-hf-ease); }
.zqm-hf-ico-svg .ic-core { stroke: var(--zqm-hf-steel); fill: transparent; transition: stroke 200ms var(--zqm-hf-ease); }

.zqm-hf-trace {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.zqm-hf-trace rect {
  fill: none;
  stroke: var(--zqm-hf-gold);
  stroke-width: 1.15;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: stroke-dashoffset 320ms var(--zqm-hf-ease), opacity 140ms ease;
}

.zqm-hf-card:hover .zqm-hf-ic,
.zqm-hf-card:hover .zqm-hf-eng-ic {
  background: #ffffff;
  border-color: rgba(217, 155, 22, 0.22);
  box-shadow: 0 2px 6px rgba(15, 29, 48, 0.045);
}

.zqm-hf-card:hover .zqm-hf-trace rect {
  stroke-dashoffset: 0;
  opacity: 1;
}

.zqm-hf-card:hover .zqm-hf-ico-svg .ic-ring,
.zqm-hf-card:hover .zqm-hf-ico-svg .ic-core {
  stroke: var(--zqm-hf-navy);
}

.zqm-hf-cat-lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zqm-hf-eng-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.zqm-hf-eng-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zqm-hf-eng-head strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--zqm-hf-navy);
  line-height: 1.3;
}

.zqm-hf-about-ttl {
  font-size: 14px;
  font-weight: 800;
  color: var(--zqm-hf-navy);
  line-height: 1.35;
}

.zqm-hf-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  background: #eef4fb;
  border: 1px solid #cbd9ea;
  color: var(--zqm-hf-steel);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  transition: all 180ms var(--zqm-hf-ease);
}

.zqm-hf-card--eng:hover .zqm-hf-badge {
  background: #fffbf0;
  border-color: var(--zqm-hf-gold);
  color: var(--zqm-hf-navy);
}

.zqm-hf-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  font-weight: 400;
}

/* ===== FOOTER (LOCKED V8 BORDERLESS 4-COLUMN · PURE #FFFFFF · 3.8% CAD WATERMARK) ===== */
html body #colophon.zqm-hf-footer {
  position: relative;
  background: #ffffff !important;
  color: #334155 !important;
  border-top: 1px solid #d5dee8 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  width: 100%;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.zqm-hf-watermark {
  position: absolute;
  right: -40px;
  bottom: 18px;
  width: 344px;
  height: 344px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 76% 78%, #000 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.20) 74%, transparent 94%);
  mask-image: radial-gradient(circle at 76% 78%, #000 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.20) 74%, transparent 94%);
}

.zqm-hf-watermark .ring-main { fill: none; stroke: rgba(15, 29, 48, 0.038); stroke-width: 1.45; }
.zqm-hf-watermark .ring-axis { fill: none; stroke: rgba(15, 29, 48, 0.024); stroke-width: 1.0; stroke-dasharray: 4 4; }
.zqm-hf-watermark .cad-datum { fill: none; stroke: rgba(15, 29, 48, 0.026); stroke-width: 0.85; stroke-dasharray: 10 3 2 3; }

.zqm-hf-fmain {
  position: relative;
  z-index: 1;
  padding: 50px 0 42px;
}

.zqm-hf-fgrid {
  display: grid;
  grid-template-columns: 1.24fr 2.00fr 0.74fr 1.02fr;
  gap: 40px;
  align-items: start;
}

.zqm-hf-fbrand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.zqm-hf-flogo {
  width: 76px;
  height: 58px;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

#colophon.zqm-hf-footer p.zqm-hf-fblurb {
  margin: 0 0 18px !important;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
  font-weight: 400;
}

.zqm-hf-fcol {
  margin: 0;
  padding: 0;
  border: 0;
}

.zqm-hf-fcol summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.zqm-hf-fcol summary::-webkit-details-marker { display: none; }

.zqm-hf-fhd {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--zqm-hf-navy);
  padding: 0 0 10px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--zqm-hf-hairline);
}

.zqm-hf-fhd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 24px;
  height: 2px;
  background: var(--zqm-hf-gold);
}

.zqm-hf-fchev {
  display: none;
  color: #475569;
}

.zqm-hf-fprod-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

#colophon.zqm-hf-footer ul.zqm-hf-ful {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#colophon.zqm-hf-footer ul.zqm-hf-ful li {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  list-style: none;
}

#colophon.zqm-hf-footer .zqm-hf-flnk {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 200ms var(--zqm-hf-ease);
}

.zqm-hf-fprod-all {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

#colophon.zqm-hf-footer .zqm-hf-fprod-all .zqm-hf-flnk {
  font-size: 13px;
  font-weight: 700;
  color: #0f4c81;
}

/* F-H3 Locked 1px Pure-Solid Brand-Gold Directional Caliper Line */
.zqm-hf-flnk::after,
.zqm-hf-clnk::after,
.zqm-hf-copylinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--zqm-hf-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--zqm-hf-ease);
}

#colophon.zqm-hf-footer .zqm-hf-flnk:hover,
#colophon.zqm-hf-footer .zqm-hf-crow--primary:hover .zqm-hf-clnk,
#colophon.zqm-hf-footer .zqm-hf-copylinks a:hover {
  color: var(--zqm-hf-navy);
}

.zqm-hf-flnk:hover::after,
.zqm-hf-crow--primary:hover .zqm-hf-clnk::after,
.zqm-hf-copylinks a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.zqm-hf-fcol4 { min-width: 0; }

.zqm-hf-cbody {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
}

.zqm-hf-crow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.zqm-hf-crow .zqm-hf-cic {
  margin-top: 3px;
  color: var(--zqm-hf-steel);
  flex-shrink: 0;
  display: inline-flex;
  transition: color 200ms var(--zqm-hf-ease);
}

.zqm-hf-crow--primary:hover .zqm-hf-cic { color: var(--zqm-hf-gold); }

#colophon.zqm-hf-footer .zqm-hf-clnk {
  position: relative;
  display: inline-block;
  color: var(--zqm-hf-navy);
  font-weight: 600;
  transition: color 200ms var(--zqm-hf-ease);
}

.zqm-hf-hubs { font-weight: 600; color: #334155; font-size: 13px; }
.zqm-hf-addr { font-size: 13px; color: #475569; text-wrap: pretty; }

/* Bottom Compliance Bar */
.zqm-hf-fbottom {
  position: relative;
  z-index: 1;
  padding: 16px 0 18px;
  background: #f4f7fa;
  border-top: 1px solid #d5dee8;
  color: #475569;
}

.zqm-hf-fbottom-in {
  padding-right: 68px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zqm-hf-iso {
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.zqm-hf-copyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
}

.zqm-hf-copylinks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#colophon.zqm-hf-footer .zqm-hf-copylinks a {
  position: relative;
  color: #475569;
  font-weight: 600;
  transition: color 160ms ease;
}

/* Single Crisp Floating Brand-Gold Back-to-Top Button */
#zqm-hf-btt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--zqm-hf-rad);
  background: #ffbc28;
  color: var(--zqm-hf-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 29, 48, 0.16);
  cursor: pointer;
  z-index: 88;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms var(--zqm-hf-ease), transform 200ms var(--zqm-hf-ease), visibility 200ms, background-color 160ms;
}

#zqm-hf-btt.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#zqm-hf-btt:hover {
  transform: translateY(-2px);
  background: #f3b11b;
  color: var(--zqm-hf-navy);
}

/* ===== MOBILE / TABLET SLIDE-IN DRAWER ===== */
#zqm-hf-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 48, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms;
  z-index: 9998;
}

#zqm-hf-mask.is-open {
  opacity: 1;
  visibility: visible;
}

#zqm-hf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(336px, 88vw);
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(15, 29, 48, 0.22);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 220ms var(--zqm-hf-ease), visibility 220ms;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.admin-bar #zqm-hf-drawer {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #zqm-hf-drawer {
    top: 46px;
  }
}

#zqm-hf-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.zqm-hf-dhd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--zqm-hf-hairline);
  flex-shrink: 0;
}

.zqm-hf-dbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--zqm-hf-navy);
}

.zqm-hf-dclose {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: var(--zqm-hf-rad);
  background: #ffffff;
  color: var(--zqm-hf-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zqm-hf-dbody {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  -webkit-overflow-scrolling: touch;
}

.zqm-hf-dacc {
  border-bottom: 1px solid #eef2f6;
}

.zqm-hf-dacc summary {
  list-style: none;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--zqm-hf-navy);
  cursor: pointer;
}

.zqm-hf-dacc summary::-webkit-details-marker { display: none; }
.zqm-hf-dacc[open] > summary svg { transform: rotate(180deg); }
.zqm-hf-dacc > summary svg { transition: transform 180ms ease; color: #64748b; }

.zqm-hf-dsub {
  display: flex;
  flex-direction: column;
  padding: 0 0 10px 8px;
  gap: 5px;
}

#zqm-hf-drawer .zqm-hf-dsub a {
  font-size: 13.5px;
  color: #334155;
  padding: 4px 0;
  line-height: 1.45;
}

#zqm-hf-drawer .zqm-hf-dsub a.is-all {
  font-weight: 700;
  color: #0f4c81;
  margin-top: 3px;
}

.zqm-hf-dtools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

#zqm-hf-drawer .zqm-hf-dtools a {
  text-align: center;
  padding: 10px 8px;
  background: #f4f7fa;
  border: 1px solid #dce3ec;
  border-radius: var(--zqm-hf-rad);
  font-size: 13px;
  font-weight: 700;
  color: var(--zqm-hf-navy);
}

#zqm-hf-drawer .zqm-hf-dlink {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid #eef2f6;
  font-size: 15px;
  font-weight: 700;
  color: var(--zqm-hf-navy);
}

.zqm-hf-dfoot {
  background: #f4f7fa;
  border-top: 1px solid #dce3ec;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.zqm-hf-ddirect {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#zqm-hf-drawer .zqm-hf-ddirect a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: var(--zqm-hf-rad);
  font-size: 13px;
  font-weight: 600;
  color: var(--zqm-hf-navy);
}

.zqm-hf-ddirect a svg {
  color: var(--zqm-hf-steel);
  flex-shrink: 0;
}

.zqm-hf-dsoc {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: nowrap;
}

.zqm-hf-dsoc .zqm-hf-soc-tile {
  flex: 1;
  height: 34px;
  width: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

/* ===== RESPONSIVE: LAPTOP 1024px–1180px ===== */
@media (max-width: 1180px) {
  .zqm-hf-wrap { padding-inline: 22px; }
  .zqm-hf-fbottom-in { padding-right: 68px; }
  #masthead.zqm-hf-header ul.zqm-hf-nav { gap: 4px; }
  #masthead.zqm-hf-header .zqm-hf-nav-link { padding: 12px 11px; }
  #zqm-nav-products .zqm-hf-mega { width: min(880px, calc(100vw - 44px)); right: -120px; }
  .zqm-hf-fgrid { gap: 28px; }
}

/* ===== RESPONSIVE: TABLET 641px–1023px (900px) ===== */
@media (max-width: 1023px) {
  .zqm-hf-rail-left { display: none; }
  .zqm-hf-nav-wrap { display: none; }
  .zqm-hf-mob-right { display: flex; }
  .zqm-hf-mainbar { height: 76px; }
  .zqm-hf-brand-img { width: 72px; height: 55px; }
  .zqm-hf-fgrid { grid-template-columns: 1fr 1.55fr; gap: 34px 36px; }
}

/* ===== RESPONSIVE: MOBILE <= 640px (390px) ===== */
@media (max-width: 640px) {
  .zqm-hf-wrap { padding-inline: 16px; }
  .zqm-hf-rail { display: none; }
  .zqm-hf-mob-lang { display: inline-flex; }
  .zqm-hf-mainbar { height: 66px; }
  .zqm-hf-brand-img { width: 64px; height: 49px; }

  .zqm-hf-fmain { padding: 28px 0 22px; }
  .zqm-hf-fgrid { grid-template-columns: 1fr; gap: 0; }
  .zqm-hf-fbrand-col {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--zqm-hf-hairline);
    margin-bottom: 4px;
  }
  .zqm-hf-flogo { width: 64px; height: 49px; }
  .zqm-hf-soc-bar--ftr { gap: 7px; }
  .zqm-hf-soc-bar--ftr .zqm-hf-soc-tile { width: 36px; height: 36px; }

  .zqm-hf-fcol { border-bottom: 1px solid var(--zqm-hf-hairline); }
  .zqm-hf-fcol summary {
    cursor: pointer;
    pointer-events: auto;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .zqm-hf-fhd::after { display: none; }
  .zqm-hf-fchev { display: inline-flex; transition: transform 160ms ease; }
  .zqm-hf-fcol[open] .zqm-hf-fchev { transform: rotate(180deg); }
  .zqm-hf-fprod-wrap,
  .zqm-hf-fcol > ul.zqm-hf-ful { padding-bottom: 16px; }

  #colophon.zqm-hf-footer.is-en .zqm-hf-fprod-dual { grid-template-columns: 1fr; gap: 10px; }
  #colophon.zqm-hf-footer.is-zh .zqm-hf-fprod-dual { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .zqm-hf-fcol4 { padding-top: 18px; }
  .zqm-hf-fcol4 .zqm-hf-fhd { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
  .zqm-hf-fcol4 .zqm-hf-fhd::after { display: none; }
  .zqm-hf-watermark { width: 224px; height: 224px; right: -44px; bottom: 52px; }
  .zqm-hf-fbottom-in { padding-right: 68px; padding-bottom: 8px; }
  #zqm-hf-btt { right: 16px; bottom: 16px; }
}

/* Reduced Motion & Print Safety */
@media (prefers-reduced-motion: reduce) {
  .zqm-hf-trace rect,
  .zqm-hf-soc-svg,
  .zqm-hf-soc-tile,
  .zqm-hf-flnk::after,
  .zqm-hf-nav-link::after,
  #zqm-hf-btt,
  #zqm-hf-drawer {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  #masthead.zqm-hf-header,
  #colophon.zqm-hf-footer,
  #zqm-hf-btt,
  #zqm-hf-drawer,
  #zqm-hf-mask {
    display: none !important;
  }
}
/* Astra Button Override Armor v1.0.1 */
#masthead.zqm-hf-header .zqm-hf-mob-btn, #zqm-hf-drawer .zqm-hf-dclose { padding: 0 !important; margin: 0 !important; border: 1px solid #cbd5e1 !important; border-radius: 4px !important; background: #ffffff !important; color: #0f1d30 !important; box-shadow: none !important; line-height: 1 !important; }
#masthead.zqm-hf-header .zqm-hf-mob-btn:hover, #zqm-hf-drawer .zqm-hf-dclose:hover { background: #f8fafc !important; border-color: #94a3b8 !important; color: #0f1d30 !important; }
#zqm-hf-btt { padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 4px !important; background: #ffbc28 !important; color: #0f1d30 !important; }
#zqm-hf-btt:hover { background: #f3b11b !important; color: #0f1d30 !important; }
