/* =========================================================================
   inner.css — Zhongli Weiye inner-page component layer
   -------------------------------------------------------------------------
   Owner: homepage-designer (DESIGN.md §3 global vocabulary, inner-page pass).
   The engine primer (style.css) is deliberately neutral: chrome, layout
   primitives and generic buttons live there; THIS sheet carries the
   content-vocabulary components that generated inner pages and the
   hand-written top pages are authored with.

   Design source: templates/zho-dual-realm/skin.css §2 tokens (same brand
   system: dark #0E1B2A / paper #F7F8FA / accent #1E5AA8 / action #F0B429).
   Duplicated as local custom properties here because inner pages do not
   link skin.css (homepage-scoped by rule R14 in DESIGN.md).

   Scope: linked by inner/top pages only (build_top_pages._ensure_inner_css
   auto-injects; common.render_page links it for generated pages).
   Motion: transform/opacity only; no animation without reduced-motion off.
   ========================================================================= */

:root {
  /* DESIGN.md §2 global tokens, verbatim (single source of truth). The 2026-09
     W1 pass replaced the earlier drift values (ink #1B2430, ink-soft #46525F,
     paper #F7F8FA, line #D9DEE5) with the §2 values below. */
  --zho-dark: #0E1B2A;
  --zho-dark-2: #16283C;
  --zho-light: #F7F8FA;
  --zho-paper: #FFFFFF;
  --zho-ink: #101418;
  --zho-ink-soft: #33404D;
  --zho-muted: #5B6B7A;
  --zho-action: #F0B429;
  --zho-accent: #1E5AA8;
  --zho-accent-br: #7FB2E8;
  --zho-on-dark: #F2F5F8;
  --zho-on-dark-s: #B9C6D2;
  --zho-line: #E2E7EC;
  --zho-line-dark: rgba(255, 255, 255, 0.14);
  --zho-danger: #B4232A; /* DESIGN.md §1.1-a: error/required marks, light grounds only */
  --zho-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zho-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --zho-r: 10px;
  --zho-r-lg: 16px;
  --zho-shadow: 0 10px 30px rgba(14, 27, 42, 0.10);
}

/* ---- zlb-page-hero: inner page opening band ---------------------------- */
.zlb-page-hero {
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
  color: #F4F7FA;
  padding: var(--s-3, 48px) 0 var(--s-4, 64px);
}
.zlb-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.zlb-page-hero__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  /* Default: readable on LIGHT sections (product detail pages place this lead
     inside a light .zlb-section hero, so it must be dark text). */
  color: var(--ink-soft);
}
/* Inside the dark .zlb-page-hero band (category / blog / solutions pages) the
   lead sits on a dark gradient, so keep it light there. */
.zlb-page-hero .zlb-page-hero__lead {
  color: rgba(244, 247, 250, 0.82);
}

/* ---- zlb-eyebrow: small caps label with action rule -------------------- */
.zlb-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zho-action);
}
.zlb-page-hero .zlb-eyebrow { color: var(--zho-action); }
main .zlb-eyebrow { color: var(--zho-accent); }

/* ---- zlb-breadcrumb ----------------------------------------------------- */
.zlb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  list-style: none;
  margin: 14px auto;
  padding: 0;
  font-size: 13px;
  color: var(--zho-ink-soft);
}
.zlb-breadcrumb a { color: var(--zho-accent); text-decoration: none; }
.zlb-breadcrumb a:hover, .zlb-breadcrumb a:focus-visible { text-decoration: underline; }
.zlb-breadcrumb [aria-current="page"] { color: var(--zho-ink); font-weight: 600; }
.zlb-sep { color: var(--zho-line); user-select: none; }

/* ---- zlb-section / zlb-prose / zlb-bullets ------------------------------ */
.zlb-section { padding: 56px 0; }
.zlb-prose { color: var(--zho-ink); line-height: 1.7; }
.zlb-prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; }
.zlb-prose p { margin: 0 0 14px; color: var(--zho-ink-soft); }
/* Chrome externalized from build_products.py (removes inline style= tokens,
   lowers near-duplicate Jaccard across the catalogue). */
.zlb-breadcrumb-nav { margin-top: var(--s-3); }
.zlb-hero--padtop { padding-top: var(--s-3); }
.zlb-prose--820 { max-width: 820px; }
.zlb-inquiry--card { background: var(--bg-soft); border-radius: var(--r-lg); padding: var(--s-4); }
/* Hanging-marker list. The site-wide `ul { list-style: none; padding: 0 }`
   reset in style.css removes native markers, so the disc is drawn with
   ::before and hung into the container gutter (--s-2 = 16px, so -14px stays
   inside). Every list line then keeps the exact left edge of the h2 and
   paragraphs above it, instead of sitting 20px right with nothing marking why
   — which is what every .zlb-bullets list looked like before. */
.zlb-bullets { margin: 0 0 14px; padding-left: 0; color: var(--zho-ink-soft); }
.zlb-bullets li { position: relative; margin: 6px 0; }
.zlb-bullets li::before {
  content: "";
  position: absolute; left: -14px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--zho-accent, #1E5AA8);
}
.zlb-checklist { margin: 0 0 14px; padding-left: 22px; color: var(--zho-ink-soft); }
.zlb-checklist li { margin: 8px 0; }
.zlb-checklist li::marker { color: var(--zho-accent); }

/* ---- zlb-sep ------------------------------------------------------------ */
.zlb-sep { border: 0; border-top: 1px solid var(--zho-line); margin: 40px 0; }

/* ---- zlb-cta-strip: closing conversion band ----------------------------- */
.zlb-cta-strip {
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
  color: var(--zho-on-dark);
  padding: 56px 0;
  text-align: center;
}
.zlb-cta-strip h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); color: var(--zho-on-dark); }
.zlb-cta-strip p { margin: 0 0 20px; color: var(--zho-on-dark-s); }
.zlb-cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

/* ---- zlb-btn ------------------------------------------------------------- */
.zlb-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.zlb-btn:hover { transform: translateY(-1px); }
.zlb-btn--dark { background: var(--zho-action); color: #14202E; }
.zlb-btn--dark:hover { opacity: 0.92; }

/* ---- badge: evidence status chip (certifications) ------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(30, 90, 168, 0.12);
  color: var(--zho-accent);
}
.badge--none { background: rgba(27, 36, 48, 0.08); color: var(--zho-ink-soft); }
.badge--opt { background: rgba(240, 180, 41, 0.18); color: #7A5A0E; }

/* ---- case-grid: verifiable project references (about-us) ----------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ---- company: about-us composition --------------------------------------- */
.company { color: var(--zho-ink); }
.company__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: start;
}
.company__copy { color: var(--zho-ink-soft); line-height: 1.7; }
.company__facts { margin: 18px 0 0; padding: 0; list-style: none; }
.company__facts li { margin: 8px 0; }
.company__facts strong { color: var(--zho-ink); }
.company__snapshot {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--zho-line);
  border-top: 3px solid var(--zho-accent);
  border-radius: 8px;
  background: var(--zho-paper);
  display: grid;
  gap: 14px;
}
.company__snapshot dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zho-ink-soft);
}
.company__snapshot dd { margin: 2px 0 0; color: var(--zho-ink); }
.company__media img { width: 100%; height: auto; border-radius: 8px; }
.company__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ---- photo-slot: real-photograph figure ---------------------------------- */
.photo-slot { margin: 0; }
.photo-slot__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--zho-line);
}
.photo-slot figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--zho-ink-soft);
}

/* ---- card__media--type: typographic category card (no real photo) --------- */
.card__media--type {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
  border-radius: 8px;
}
.card__media-code {
  font-family: var(--zho-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--zho-action);
}

/* ---- video-wall / events (support) ---------------------------------------- */
.video-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.video-wall iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ---- Responsive degradation ------------------------------------------------ */
@media (max-width: 860px) {
  .company__grid { grid-template-columns: 1fr; }
  .zlb-section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zlb-btn { transition: none; }
  .zlb-btn:hover { transform: none; }
}

/* =========================================================================
   Phase 3 additions (content-engineer) — components emitted by the page
   generators (build_categories / build_products / build_landings / build_blog)
   that had no rule in this sheet yet. Same token system as above.
   ========================================================================= */

/* ---- section variants ---------------------------------------------------- */
.zlb-section--soft { background: var(--zho-light); }
.zlb-section__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.zlb-section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--zho-ink);
  letter-spacing: -0.01em;
}
.zlb-section__intro { margin: 0; color: var(--zho-ink-soft); }

/* ---- zlb-product-grid / zlb-card ---------------------------------------- */
.zlb-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
/* Hub "browse by type" card row — reuses the product-grid layout; a slightly
   tighter gap separates the child-category cards from the product grid below. */
.zlb-subcat-grid {
  gap: 18px;
}
.zlb-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.zlb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 27, 42, 0.10);
}
.zlb-card__media { margin: 0; }
.zlb-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.zlb-card__media--type {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
}
.zlb-card__code {
  font-family: var(--zho-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--zho-action);
}
.zlb-card__title {
  margin: 14px 16px 6px;
  font-size: 17px;
  color: var(--zho-ink);
}
.zlb-card__desc {
  margin: 0 16px 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--zho-ink-soft);
}
.zlb-card__link {
  margin: 0 16px 16px;
  margin-top: auto;          /* keep the CTA pinned to the card bottom */
  font-size: 14px;
  font-weight: 700;
  color: var(--zho-accent);
}

/* Brand-logo card media (real OEM logos) — light plate, logo contained */
.zlb-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  padding: 18px;
  min-height: 0;          /* G-fix: stop the logo img's intrinsic height (auto min-size) from defeating the 4/3 ratio; keeps logo plates at 206px like photo cards */
}
.zlb-card__media--logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}

/* Responsive on-page video block */
.zlb-video {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--zho-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.zlb-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

/* ---- zlb-split: text + media hero band (product pages) ------------------- */
.zlb-split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 36px;
  align-items: center;
}
.zlb-split__media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--zho-line);
}
.zlb-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.zlb-product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--zho-line);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.zlb-product-gallery img:hover {
  border-color: #b45309;
}
/* Active thumbnail (mirrors the current main image) — toggled by script.js */
.zlb-product-gallery img.is-active {
  border: 2px solid #b45309;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, .18);
}
/* Main image is clickable to open the lightbox */
.zlb-split__media > img {
  cursor: zoom-in;
}

/* ---- zlb-chip / zlb-spec-facts: key-fact chips --------------------------- */
.zlb-spec-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zlb-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--zho-line);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--zho-ink);
}

/* ---- zlb-spec-table ------------------------------------------------------ */
.zlb-spec-table-wrap { overflow-x: auto; }
.zlb-spec-table {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--zho-line);
}
.zlb-spec-table th,
.zlb-spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--zho-line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.zlb-spec-table th {
  width: 38%;
  font-weight: 700;
  color: var(--zho-ink);
  background: var(--zho-light);
}
.zlb-spec-table td { color: var(--zho-ink-soft); }
.zlb-spec-table tr:last-child th,
.zlb-spec-table tr:last-child td { border-bottom: 0; }
.zlb-spec-table--multi { max-width: 100%; }
.zlb-spec-table--multi thead th { border-bottom: 2px solid var(--zho-accent); }

/* ---- zlb-faq -------------------------------------------------------------- */
.zlb-faq { max-width: 760px; margin: 0 auto; }
.zlb-faq__item {
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  background: #FFFFFF;
  margin: 10px 0;
  overflow: hidden;
}
.zlb-faq__item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--zho-ink);
  list-style-position: inside;
}
.zlb-faq__item summary::marker { color: var(--zho-accent); }
.zlb-faq__item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--zho-ink-soft);
  line-height: 1.65;
}

/* ---- zlb-inquiry / zlb-form ------------------------------------------------ */
.zlb-inquiry { margin-top: 8px; }
.zlb-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.zlb-form__msg { min-height: 1.4em; color: var(--zho-accent); }
.zlb-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--zho-ink);
  margin-bottom: 4px;
}
.zlb-form input,
.zlb-form select,
.zlb-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zho-line);
  border-radius: 6px;
  font: inherit;
  color: var(--zho-ink);
  background: #FFFFFF;
}
.zlb-btn--primary { background: var(--zho-action); color: var(--zho-ink); }
.zlb-btn--primary:hover { opacity: 0.92; }
.zlb-btn--block { display: block; width: 100%; text-align: center; }

/* ---- zlb-related ----------------------------------------------------------- */
.zlb-related { margin-top: 8px; }

/* ---- responsive degradation ------------------------------------------------- */
@media (max-width: 860px) {
  .zlb-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  a.zlb-card, a.zlb-card:hover { transition: none; transform: none; }
}

/* ---- .post: blog list card (blog.html) ----------------------------------- */
.post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--zho-line);
  border-radius: 10px;
  background: var(--zho-paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post:hover { border-color: var(--zho-accent); transform: translateY(-2px); }
.post__body { display: flex; flex-direction: column; gap: 8px; }
.post__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zho-accent);
  background: rgba(30, 90, 168, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}
.post__title { margin: 0; font-size: 19px; line-height: 1.35; color: var(--zho-ink); }
.post__excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--zho-ink-soft); }
.post__meta { margin-top: auto; font-size: 13px; color: var(--zho-ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .post:hover { transform: none; }
}

/* =========================================================================
   W1 inner-page chrome reskin (2026-09, homepage-designer)
   -------------------------------------------------------------------------
   Brand-aligns the inner-page chrome (header / nav / footer / buttons) with
   the homepage design system (zho-dual-realm). Inner pages get a SOLID dark
   nav bar — the homepage's transparent glass overlay is hero-specific and
   is NOT imitated here (inner pages have no full-bleed hero underneath).

   SCOPE CONTRACT: index.html never links this sheet (build_top_pages skips
   the custom home axis via HOME_CUSTOM; templates/zho-dual-realm/home.py
   emits no inner.css link), so unscoped overrides below restyle inner pages
   only and cannot leak into body.zho-home. Do not move these rules into
   style.css or skin.css.

   All values are DESIGN.md §2 tokens — no new colours introduced.
   ========================================================================= */

/* ---- Focus discipline (DESIGN §8: light-context ring accent blue, dark
        contexts re-scope to action yellow) ---- */
:focus-visible { outline-color: var(--zho-accent); }
.skip-link:focus {
  background: var(--zho-action);
  color: var(--zho-ink);
}

/* ---- Header: solid brand-navy bar ---- */
.site-header {
  background: var(--zho-dark);
  border-bottom: 1px solid var(--zho-line-dark);
}
.site-header[data-elevate="true"] {
  border-color: var(--zho-line-dark);
  box-shadow: 0 6px 18px rgba(14, 27, 42, 0.35);
}
.site-header .brand,
.site-header .brand:hover { color: var(--zho-on-dark); }
.site-header .nav__list > li > a,
.site-header .nav__has-menu > a { color: var(--zho-on-dark-s); }
.site-header .nav__list > li > a:hover,
.site-header .nav__has-menu > a:hover {
  color: var(--zho-on-dark);
  background: var(--zho-dark-2);
}
.site-header .lang-badge { border-color: var(--zho-line-dark); color: var(--zho-on-dark-s); }
.site-header .nav-toggle { border-color: var(--zho-line-dark); }
.site-header .nav-toggle span { background: var(--zho-on-dark); }
.site-header .nav-toggle:focus-visible {
  outline: 3px solid var(--zho-action);
  outline-offset: 2px;
}
/* WhatsApp ghost button on the dark bar: the engine base is dark --ink, which
   would render dark-on-dark (the same defect family as the historical
   white-on-white WhatsApp button). Lighten within the header scope only. */
.site-header .btn--ghost {
  color: var(--zho-on-dark);
  border-color: var(--zho-line-dark);
}
.site-header .btn--ghost:hover,
.site-header .btn--ghost:focus-visible {
  background: var(--zho-dark-2);
  color: var(--zho-on-dark);
}
/* Desktop dropdown panel follows the dark chrome (mobile reverts below). */
.nav__submenu {
  background: var(--zho-dark-2);
  border-color: var(--zho-line-dark);
  box-shadow: 0 14px 34px rgba(10, 18, 28, 0.45);
}
.nav__submenu a { color: var(--zho-on-dark-s); }
.nav__submenu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--zho-on-dark);
  text-decoration: none;
}

/* Mobile (<=900px): the engine opens the nav as a WHITE fixed panel — the
   dark-bar link colours above would be white-on-white there. Restore engine
   ink inside the panel (same proven pattern as skin.css's <=900px block). */
@media (max-width: 900px) {
  .site-header .nav__list > li > a,
  .site-header .nav__has-menu > a { color: var(--ink); background: none; }
  .site-header .nav__list > li > a:hover,
  .site-header .nav__has-menu > a:hover { color: var(--ink); background: var(--bg-soft); }
  .nav__submenu { background: #fff; border-color: var(--line); box-shadow: none; }
  .nav__submenu a { color: var(--ink-soft); }
  .nav__submenu a:hover { background: var(--bg-soft); color: var(--ink); }
}

/* ---- Footer: brand navy instead of the engine's near-black ---- */
.site-footer {
  background: var(--zho-dark);
  color: var(--zho-on-dark);
}
.site-footer a { color: var(--zho-on-dark); }
.site-footer__brand p { color: var(--zho-on-dark-s); }
.site-footer__col h3 { color: var(--zho-on-dark); }
.site-footer__col a { color: var(--zho-on-dark-s); }
.site-footer__col a:hover { color: var(--zho-on-dark); text-decoration: underline; }
.site-footer__bar { border-top: 1px solid var(--zho-line-dark); }
.site-footer__bar p { color: var(--zho-on-dark-s); }

/* W5a: the footer Products list is collapsed to the leading categories plus a
   single view-all row (emitted by common.build_footer_products as
   .site-footer__viewall). Bright-blue accent keeps the row scannable on the
   navy footer (#7FB2E8 on #0E1B2A = 7.4:1, DESIGN.md §8). */
.site-footer__viewall a { color: var(--zho-accent-br); font-weight: 700; }
.site-footer__viewall a:hover { color: var(--zho-on-dark); }

/* ---- Engine .btn system restated on brand tokens ----
   The engine ships --brand as a neutral placeholder gray, so inner-page
   primary CTAs ("Send Inquiry") rendered gray. Per DESIGN §2/§3 the single
   action colour is brand yellow (#F0B429 with #101418 text = 9.6:1). */
.btn { background: var(--zho-accent); color: #FFFFFF; }
.btn--primary { background: var(--zho-action); color: var(--zho-ink); }
.btn--dark { background: var(--zho-dark); color: var(--zho-on-dark); }
.btn--outline { background: transparent; color: var(--zho-accent); border: 1px solid var(--zho-accent); }
.btn--outline:hover { background: var(--zho-accent); color: #FFFFFF; }
/* Quick-contact fab: same action-colour treatment (white icon on the old
   placeholder gray was below AA on small glyphs). */
.qc__fab { background: var(--zho-action); color: var(--zho-ink); }

/* ---- Legacy-bridge: scaffold classes that W2 will upgrade to zlb-* ---------
   These keep today's markup visually on-brand so the reskin is not blocked
   on the W2 markup wave. When W2 swaps page-hero -> zlb-page-hero etc., the
   upgraded classes carry the SAME visual language, so the swap is seamless
   and these bridge rules can then be retired. */

/* .page-hero -> dark opening band (same language as .zlb-page-hero) */
.page-hero {
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
  color: var(--zho-on-dark);
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--zho-line-dark);
}
.page-hero h1 { color: var(--zho-on-dark); }
.page-hero__lead { color: var(--zho-on-dark-s); font-size: var(--fs-md); }
.page-hero .eyebrow { color: var(--zho-action); }
/* .eyebrow on light sections: accent blue (engine placeholder was gray) */
.eyebrow { color: var(--zho-accent); }

/* .cta-strip -> dark closing band (same language as .zlb-cta-strip) */
.cta-strip {
  background: linear-gradient(135deg, var(--zho-dark) 0%, var(--zho-dark-2) 100%);
  color: var(--zho-on-dark);
}
.cta-strip h2 { color: var(--zho-on-dark); }
.cta-strip .btn { background: var(--zho-action); color: var(--zho-ink); }
.cta-strip .btn--outline,
.cta-strip .btn--ghost {
  background: transparent;
  color: var(--zho-on-dark);
  border-color: var(--zho-line-dark);
}
.cta-strip .btn--outline:hover,
.cta-strip .btn--ghost:hover {
  background: var(--zho-dark-2);
  color: var(--zho-on-dark);
}

/* .breadcrumb links take the brand accent (parity with .zlb-breadcrumb) */
.breadcrumb a { color: var(--zho-accent); }
.breadcrumb a:hover { color: var(--zho-ink); }

/* .feature icons and generic chips take the brand accent */
.feature__icon { color: var(--zho-accent); }
.chip { color: var(--zho-ink-soft); }

/* Blog pagination (build_blog.pagination_nav) — defined ahead of use so the
   CSS-coverage gate stays green the day a second blog page builds. */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 48px 0;
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--zho-line);
  border-radius: var(--zho-r);
  background: #FFFFFF;
  color: var(--zho-accent);
  font-weight: 700;
  text-decoration: none;
}
.pagination__link:hover { border-color: var(--zho-accent); text-decoration: none; }
.pagination__link--disabled { color: var(--zho-ink-soft); opacity: 0.6; pointer-events: none; }
.pagination__status { font-size: var(--fs-sm); color: var(--zho-ink-soft); }

/* =========================================================================
   W1 §3 component completion — zlb-* vocabulary gaps filled so the W2
   markup wave has a complete, styled component for every DESIGN.md §3 entry.
   ========================================================================= */

/* ---- zlb-cta-btn (§3 action button: primary / quiet / on-dark) ---- */
.zlb-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--zho-r);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.zlb-cta-btn:hover { transform: translateY(-1px); text-decoration: none; }
.zlb-cta-btn:focus-visible { outline: 3px solid var(--zho-accent); outline-offset: 2px; }
.zlb-page-hero .zlb-cta-btn:focus-visible,
.zlb-cta-strip .zlb-cta-btn:focus-visible { outline-color: var(--zho-action); }
.zlb-cta-btn--primary { background: var(--zho-action); color: var(--zho-ink); }
.zlb-cta-btn--primary:hover { background: var(--zho-action); color: var(--zho-ink); }
.zlb-cta-btn--quiet { background: transparent; color: var(--zho-accent); border: 1px solid var(--zho-accent); }
.zlb-cta-btn--quiet:hover { background: var(--zho-accent); color: #FFFFFF; }
.zlb-cta-btn--on-dark { background: transparent; color: var(--zho-on-dark); border: 1px solid var(--zho-line-dark); }
.zlb-cta-btn--on-dark:hover { background: var(--zho-dark-2); color: var(--zho-on-dark); }
.zlb-cta-btn__arrow { transition: transform 0.2s ease; }
.zlb-cta-btn:hover .zlb-cta-btn__arrow { transform: translateX(3px); }

/* ---- zlb-numlabel (§3 mono ledger label, e.g. F-01 / P-04) ---- */
.zlb-numlabel {
  font-family: var(--zho-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--zho-ink-soft);
}
.zlb-numlabel--plus::before { content: "+ "; color: var(--zho-action); font-weight: 700; }
.zlb-numlabel--on-dark { color: var(--zho-on-dark-s); }

/* ---- zlb-chipset (§3 fact-chip row; light + on-dark variants) ---- */
.zlb-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.zlb-chipset .zlb-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--zho-line);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--zho-ink);
}
.zlb-chipset--on-dark .zlb-chip {
  background: transparent;
  border-color: var(--zho-line-dark);
  color: var(--zho-on-dark-s);
}

/* ---- zlb-rulebar (§3 ledger rule under section titles) ---- */
.zlb-rulebar {
  width: 64px;
  height: 2px;
  border: 0;
  margin: 10px 0 24px;
  background: var(--zho-dark);
}
.zlb-rulebar--on-dark { background: var(--zho-action); }
.zlb-section__head .zlb-rulebar { margin-left: auto; margin-right: auto; }

/* ---- zlb-askbar (§3 quick-contact strip: copy + single CTA + contact) ---- */
.zlb-askbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--zho-line);
  border-left: 4px solid var(--zho-action);
  border-radius: var(--zho-r);
  background: #FFFFFF;
}
.zlb-askbar__text { margin: 0; color: var(--zho-ink-soft); }
.zlb-askbar__contact {
  font-family: var(--zho-mono);
  font-size: 0.9rem;
  color: var(--zho-ink);
}
.zlb-askbar--on-dark {
  background: var(--zho-dark-2);
  border-color: var(--zho-line-dark);
}
.zlb-askbar--on-dark .zlb-askbar__text { color: var(--zho-on-dark-s); }
.zlb-askbar--on-dark .zlb-askbar__contact { color: var(--zho-on-dark); }

/* ---- zlb-docrow (§3 mono archive row: certificates / downloads) ---- */
.zlb-docrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--zho-mono);
  font-size: 0.9rem;
  color: var(--zho-ink);
}
.zlb-docrow + .zlb-docrow { margin-top: 8px; }
.zlb-docrow__id { color: var(--zho-accent); font-weight: 700; letter-spacing: 0.04em; }
.zlb-docrow__action {
  margin-left: auto;
  color: var(--zho-accent);
  font-weight: 700;
  text-decoration: none;
}
.zlb-docrow__action:hover,
.zlb-docrow__action:focus-visible { text-decoration: underline; }

/* ---- zlb-reveal (§5 entrance hook, html.js-gated; inner pages may reuse) ---- */
.zlb-reveal { opacity: 1; transform: none; }
.js .zlb-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .zlb-reveal.is-in { opacity: 1; transform: none; }

/* ---- W1 responsive / motion degradation ---- */
@media (max-width: 640px) {
  .zlb-cta-strip__inner,
  .zlb-askbar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .zlb-cta-btn,
  .zlb-cta-btn:hover,
  .zlb-cta-btn__arrow,
  .zlb-cta-btn:hover .zlb-cta-btn__arrow { transition: none; transform: none; }
  .js .zlb-reveal { opacity: 1; transform: none; transition: none; }
  .pagination__link { transition: none; }
}

/* =========================================================================
   W4a legacy-bridge completion (2026-09, homepage-designer)
   -------------------------------------------------------------------------
   contact-us.html / support.html carry the legacy content vocabulary
   (.faq__item / .field / .flow / .download / .contact-card ...) which the
   engine primer styles NEUTRALLY (placeholder --brand gray, off-brand reds).
   build_top_pages will force-link inner.css on ALL top pages; when it does,
   the rules below restate every legacy class on the DESIGN.md §2 token
   system so the pages are fully on-brand on first paint.

   Visual language is identical to the sibling zlb-* components, so the W2
   markup swap (faq__item -> zlb-faq__item etc.) stays seamless and these
   bridge rules retire cleanly. Scope guard: inner pages only — index.html
   never links this sheet (see W1 scope contract above).

   Warning ink: no danger token exists in DESIGN.md §2, so error/required
   marks use the badge--opt amber-dark #7A5A0E already shipped in this sheet
   (6.4:1 on light grounds, action-derived). Flagged for a --zho-danger
   ruling in the W4a report — single-point change if adjudicated.
   ========================================================================= */

/* ---- .breadcrumb: full parity with .zlb-breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  list-style: none;
  margin: 14px auto;
  padding: 0;
  font-size: 13px;
  color: var(--zho-ink-soft);
}
.breadcrumb a { color: var(--zho-accent); text-decoration: none; }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--zho-ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--zho-ink); font-weight: 600; }
.breadcrumb .sep { color: var(--zho-line); }

/* ---- .eyebrow: full typography parity with .zlb-eyebrow ----
   (colour already restated above: accent on light, action inside .page-hero) */
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- .faq / .faq__item: .zlb-faq language, same selectors merged ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  background: var(--zho-paper);
  margin: 0 0 10px;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--zho-accent-br); }
.faq__item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--zho-ink);
  list-style-position: inside;
}
.faq__item summary::marker { color: var(--zho-accent); }
.faq__item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--zho-ink-soft);
  line-height: 1.65;
}

/* ---- .contact-grid / .contact-card / .inquiry: .zlb-card family ---- */
.contact-grid { gap: 20px; }
.contact-card {
  padding: 22px;
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  background: var(--zho-paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  border-color: var(--zho-accent);
  box-shadow: var(--zho-shadow);
}
.contact-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--zho-ink); }
.contact-card p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--zho-ink-soft); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--zho-accent); font-weight: 700; }
.contact-card a:hover { text-decoration: underline; }
.inquiry {
  background: var(--zho-paper);
  border: 1px solid var(--zho-line);
  border-radius: var(--zho-r-lg);
  padding: 24px;
}
/* NOTE: contact-us.html carries an inline style on .inquiry that wins over
   this restatement. W5a ruling: the hand-written page has no generator, so
   the style attribute is stripped at source by Shen Mofeng (task 5 in
   data/w5-impl-list.md); after that strip this rule takes over fully. */

/* ---- .form / .field: lightweight tokenized restatement ----
   (2026-09 ruling revision: form classes may be restated on existing tokens
   this wave; do NOT build a zlb-form__* component system yet.) */
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--zho-ink);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zho-line);
  border-radius: 6px;
  font: inherit;
  color: var(--zho-ink);
  background: var(--zho-paper);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--zho-accent);
  outline-offset: 1px;
  border-color: var(--zho-accent);
}
.field__error {
  display: block;
  min-height: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zho-danger);
  margin-top: 2px;
}
.req { color: var(--zho-danger); }
.form__msg { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--zho-accent); }
/* Consent row guard: restate the engine's exemptions that the broader
   .field input/label rules above would out-prioritize (same specificity,
   later sheet). Checkbox stays auto-width, label stays regular weight. */
.consent label { font-weight: 400; margin: 0; }
.consent input[type="checkbox"] { width: auto; margin-top: 3px; }

/* ---- .bullets: accent markers (parity with .zlb-bullets) ---- */
.bullets li { color: var(--zho-ink-soft); }
.bullets li::before { background: var(--zho-accent); }

/* ---- .flow: ledger step badges (dark disc + action numeral, mono) ---- */
.flow__num {
  background: var(--zho-dark);
  color: var(--zho-action);
  font-family: var(--zho-mono);
  font-size: 15px;
  font-weight: 700;
}
.flow__body h3 { margin: 0 0 4px; font-size: 17px; color: var(--zho-ink); }
.flow__body p { margin: 0; color: var(--zho-ink-soft); line-height: 1.6; }

/* ---- .download / .downloads: row list, .zlb-docrow family ---- */
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--zho-line);
  border-radius: 8px;
  background: var(--zho-paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.download:hover { border-color: var(--zho-accent); }
.download__name { margin-right: auto; font-weight: 700; color: var(--zho-ink); }

/* ---- .cta-strip: secondary line colour on the dark band ---- */
.cta-strip p { margin: 0; color: var(--zho-on-dark-s); }

/* ---- W4a responsive / motion degradation ---- */
@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
  .contact-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .download { transition: none; }
}
