/* ==========================================================================
   Jingyuan Industrial Separation — separator.jingyuan.hk
   Design system per project spec §4: teal brand #19B9B0, white/light-gray
   surfaces, dark-slate technical text, industrial yellow as minor accent.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-brand: #19B9B0;
  --color-brand-dark: #108C87;
  --color-brand-light: #E8F7F5;

  --color-accent: #F2C500;
  --color-accent-dark: #C9A400;

  --color-text: #263238;
  --color-text-secondary: #65727A;

  --color-background: #F5F7F7;
  --color-surface: #FFFFFF;
  --color-border: #DCE4E4;

  --color-success: #21865B;
  --color-error: #C0392B;

  --container-width: 1200px;
  --section-spacing: 80px;
  --card-radius: 10px;
  --button-radius: 6px;

  --nav-height: 68px;

  --font-sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(38, 50, 56, 0.04), 0 4px 16px rgba(38, 50, 56, 0.06);
  --shadow-nav: 0 1px 0 var(--color-border);
}

/* ---------- Fonts (self-hosted, no third-party dependency) ---------- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; color: var(--color-text); }
h1 { font-size: 44px; letter-spacing: -0.01em; }
h2 { font-size: 32px; letter-spacing: -0.005em; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }

strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-spacing); }
.section--tight { padding-block: 48px; }
.section--alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-brand-dark); color: #fff; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 var(--button-radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }

/* ---------- Site navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
}
.site-nav__inner {
  height: var(--nav-height);
  display: flex; align-items: center; gap: 32px;
}
.site-nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.site-nav__brand img { height: 48px; width: auto; }
.site-nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0; margin-left: auto;
}
.site-nav__links a {
  display: block; padding: 8px 13px; border-radius: var(--button-radius);
  color: var(--color-text); font-size: 15px; font-weight: 500;
  white-space: nowrap;
}
.site-nav__links a:hover { background: var(--color-brand-light); color: var(--color-brand-dark); text-decoration: none; }
.site-nav__links a[aria-current="page"] { color: var(--color-brand-dark); background: var(--color-brand-light); }
.site-nav__cta { flex-shrink: 0; }
/* Wide screens show the CTA, so the duplicate Contact list item is dropped
   there. Below the burger breakpoint the CTA is hidden and the item returns,
   keeping /contact/ reachable from the header on every viewport. */
@media (min-width: 1281px) {
  .site-nav__contact { display: none; }
}
.site-nav__burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--color-border);
  border-radius: var(--button-radius); background: var(--color-surface);
  cursor: pointer; padding: 10px 9px;
}
.site-nav__burger span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; }
.site-nav__burger span + span { margin-top: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--button-radius);
  font-size: 16px; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.btn--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.btn--secondary { background: var(--color-surface); border-color: var(--color-brand); color: var(--color-brand-dark); }
.btn--secondary:hover { background: var(--color-brand-light); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }
.btn--small { padding: 9px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14px; color: var(--color-text-secondary); padding-block: 20px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-border); }
.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-brand-dark); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-block: 64px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-brand-dark); margin-bottom: 16px;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--color-accent); border-radius: 2px; }
.hero h1 { font-size: 52px; margin-bottom: 12px; }
.hero__subtitle { font-size: 21px; font-weight: 500; color: var(--color-text); margin-bottom: 18px; }
.hero__text { font-size: 17px; color: var(--color-text-secondary); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.hero__meta div { font-size: 14px; color: var(--color-text-secondary); }
.hero__meta strong { display: block; font-size: 19px; color: var(--color-text); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--card-radius);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  background: var(--color-brand-light);
}

/* ---------- Hero product carousel ----------
   Four supplied JY-N95 product views stacked in one grid cell. View 1 is
   active in the static HTML, so the hero still renders without JS. Arrows,
   dots and the counter are real DOM controls driven by main.js (external
   script only — the site CSP allows no inline handlers). */
.carousel { position: relative; }
.carousel__viewport {
  position: relative; overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: #10151B;
}
.carousel__track { display: grid; list-style: none; margin: 0; padding: 0; }
.carousel__slide {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease;
}
.carousel__slide.is-active {
  position: relative; z-index: 1;
  opacity: 1; visibility: visible; pointer-events: auto;
}
/* Neutralise the single-image hero rule above for stacked slides. Scoped to
   .carousel rather than .hero__media so the product page can reuse it too. */
.carousel .carousel__slide img {
  display: block; width: 100%; height: auto;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.carousel__arrow {
  position: absolute; top: 50%; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-top: -21px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 50%;
  background: rgba(16, 21, 27, .62); color: #FFFFFF;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.carousel__arrow:hover {
  background: rgba(16, 140, 135, .9); border-color: rgba(255, 255, 255, .7);
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }
.carousel__dots {
  position: absolute; left: 50%; bottom: 14px; z-index: 3;
  transform: translateX(-50%);
  display: flex; gap: 8px; margin: 0; padding: 7px 12px;
  border-radius: 999px; background: rgba(16, 21, 27, .58);
}
.carousel__dot {
  width: 9px; height: 9px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dot:hover { background: rgba(255, 255, 255, .65); }
.carousel__dot.is-active {
  background: var(--color-brand); border-color: var(--color-brand);
  transform: scale(1.25);
}
.carousel__counter {
  position: absolute; right: 16px; bottom: 18px; z-index: 3;
  margin: 0; padding: 4px 9px; border-radius: 4px;
  background: rgba(16, 21, 27, .58); color: #FFFFFF;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
/* Product page: the carousel sits in the narrow right column of
   .inquiry-layout — allow that grid item to shrink on small screens. */
.product-media { min-width: 0; }

/* ---------- Section headings ---------- */
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-brand-dark); margin-bottom: 10px;
}
.section-head p { color: var(--color-text-secondary); margin-bottom: 0; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Grid items default to min-width:auto; aspect-ratio boxes then refuse to
   shrink below their ratio-derived min-content width (mobile overflow). */
.grid > * { min-width: 0; }

/* ---------- Key advantages (8-point numbered list) ---------- */
.kadv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kadv {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 18px 20px;
}
.kadv__num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.kadv__body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.kadv__body p { margin: 0; font-size: 15px; color: var(--color-text-secondary); }

/* ---------- Supplied photos (auto-swap from assets/img/) ---------- */
.photo-frame img {
  width: 100%; height: auto; display: block;
  border-radius: var(--card-radius); border: 1px solid var(--color-border);
  background: var(--color-brand-light); box-shadow: var(--shadow-card);
}
.photo-frame.figure { margin: 28px 0 0; }
.photo-frame.figure figcaption {
  font-size: 13px; color: var(--color-text-secondary); margin-top: 10px;
}

/* Article summary infographics are 3:4 portrait. At the full 780 px prose width
   they would run past 1000 px tall and push the article off the screen, so they
   are capped and centred. Nothing is cropped — the artwork keeps its ratio. */
.photo-frame.figure.article-figure { max-width: 620px; margin: 36px auto 4px; }

/* Cover crop for the article cards on /technical-resources/. The artwork is 3:4;
   a 4:3 window taken from the top shows the branded headline band, so the card
   reads as a document preview. The uncropped image is on the article page. */
.photo-frame--cover {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--card-radius);
}
.photo-frame--cover img { height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Supplied process-flow diagram (How It Works) ---------- */
/* The artwork is 1200x800; below 900px its labels become unreadable, so the
   figure scrolls horizontally on small screens instead of shrinking away. */
.photo-frame.figure.flow-figure { margin-top: 0; }
.flow-figure .flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-figure .flow-scroll img { min-width: 900px; }
.flow-hint { display: none; margin: 12px 0 0; font-size: 13px; color: var(--color-text-secondary); }
/* The site-wide Quick Inquiry button is fixed at the bottom right. Keep the
   caption clear of it on wide screens; on small screens the shorter hint and
   the wrapped caption stay above the button. */
@media (min-width: 769px) {
  .flow-figure figcaption { max-width: calc(100% - 180px); }
}
@media (max-width: 768px) {
  .flow-hint { display: block; }
}

/* ---------- Process flow (industry pages) ---------- */
.pflow {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: repeat(5, 1fr);
  counter-reset: pflow;
}
.pflow__step {
  position: relative; padding: 26px 22px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: 0;
}
.pflow__step:first-child { border-radius: var(--card-radius) 0 0 var(--card-radius); }
.pflow__step:last-child {
  border-right: 1px solid var(--color-border);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.pflow__step::after {
  content: ""; position: absolute; top: 50%; right: -9px; z-index: 2;
  width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.pflow__step:last-child::after { display: none; }
.pflow__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-brand-light); color: var(--color-brand-dark);
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.pflow__step h3 { font-size: 16px; margin: 0 0 6px; }
.pflow__step p { font-size: 14px; color: var(--color-text-secondary); margin: 0; }

/* Wide tables scroll on mid-size screens instead of crushing their columns */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .spec-table--matrix { min-width: 1120px; }
.table-scroll .spec-table--compare { min-width: 640px; }

/* Compact lists inside cards (challenge cards, selection steps) */
.card-list { margin: 0; padding-left: 20px; }
.card-list li { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 8px; }
.card-list li:last-child { margin-bottom: 0; }
.app-inline-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Industry hero meta chips */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-chips span {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* ---------- Equipment selection form ---------- */
.sel-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.sel-form .field--full { grid-column: 1 / -1; }
.sel-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sel-form .req { color: var(--color-error); }
.sel-result {
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-brand);
  border-radius: var(--card-radius); background: var(--color-surface);
  padding: 20px 22px; margin-top: 24px;
}
.sel-result[data-class="outside"] { border-left-color: var(--color-error); }
.sel-result[data-class="review"] { border-left-color: var(--color-accent-dark); }
.sel-result h3 { margin-top: 0; }
.sel-result ul { margin: 8px 0 0; padding-left: 22px; }
.sel-result li { font-size: 15px; color: var(--color-text-secondary); }
.upload-box {
  border: 1px dashed var(--color-border); border-radius: var(--card-radius);
  padding: 16px 18px; background: var(--color-background);
}
.upload-box p { font-size: 13.5px; color: var(--color-text-secondary); margin: 6px 0 0; }
.upload-list { font-size: 13.5px; color: var(--color-text-secondary); margin: 8px 0 0; padding-left: 20px; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--color-text-secondary); font-size: 15.5px; margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--color-brand-light); color: var(--color-brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.card__icon svg { width: 24px; height: 24px; }
/* 1:1 picture that replaces the icon chip on the four-function cards. The
   intrinsic ratio is declared so the row does not shift while images load. */
.card__media {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; margin-bottom: 18px;
  border: 1px solid var(--color-border);
  background: var(--color-brand-light);
}
.card__note { margin-top: 14px; font-size: 13.5px; color: var(--color-text-secondary); }
.card--link:hover { border-color: var(--color-brand); }

/* Application cards */
.app-card { position: relative; }
.app-card__link { color: inherit; }
.app-card__link:hover { text-decoration: none; }
.app-card__link:hover h3 { color: var(--color-brand-dark); }
.app-card__more {
  margin-top: auto; padding-top: 16px;
  font-size: 15px; font-weight: 600; color: var(--color-brand-dark);
}
.app-card__more::after { content: " →"; }

/* ---------- Spec cards / tables ---------- */
.spec-group { margin-bottom: 28px; }
.spec-group__title {
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-brand-dark); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.spec-group__title::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }

.spec-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--card-radius);
  overflow: hidden; font-size: 16px;
}
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
/* Only two-column spec tables get a 42% row header. Applying this to every
   <th> used to squeeze the six-column matrix headers to ~100 px each. */
.spec-table tbody th { font-weight: 500; color: var(--color-text-secondary); }
.spec-table--pairs tbody th { width: 42%; }
.spec-table td { font-weight: 500; }
.spec-table tbody tr:nth-child(even) { background: rgba(245, 247, 247, 0.6); }
.spec-table .flag {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  color: #8a6d00; background: #fdf3c8; border: 1px solid #f0df9a; border-radius: 99px;
  vertical-align: middle; white-space: nowrap;
}
/* ---------- Multi-column matrices ---------- */
/* Column widths come from <colgroup>; a fixed layout keeps every column at a
   readable line length regardless of the longest phrase in a single cell. */
.spec-table--matrix, .spec-table--compare { table-layout: fixed; font-size: 15px; }
.spec-table--matrix th, .spec-table--matrix td,
.spec-table--compare th, .spec-table--compare td {
  padding: 14px 16px; line-height: 1.55;
  hyphens: none; overflow-wrap: break-word; word-break: normal;
}
.spec-table--matrix thead th, .spec-table--compare thead th {
  width: auto; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--color-text); background: var(--color-brand-light);
  border-bottom: 1px solid #c4e6e2;
}
.spec-table--matrix tbody th, .spec-table--compare tbody th {
  width: auto; font-weight: 600; color: var(--color-text);
}
.spec-table--matrix tbody td, .spec-table--compare tbody td {
  font-weight: 400; color: var(--color-text);
}
.nowrap { white-space: nowrap; }

.spec-legend {
  margin-top: 16px; font-size: 14px; color: var(--color-text-secondary);
}
.spec-legend p { margin-bottom: 4px; }

/* Spec summary cards (homepage) */
.spec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spec-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 26px;
}
.spec-card h3 { font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-brand-dark); margin-bottom: 16px; }
.spec-card dl { margin: 0; }
.spec-card dt { font-size: 13.5px; color: var(--color-text-secondary); margin-top: 12px; }
.spec-card dt:first-child { margin-top: 0; }
.spec-card dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.spec-card dd .unit { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); }
.spec-card dd .flag { margin-left: 6px; }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 14px;
  background: var(--color-brand-light);
  border: 1px solid #c4e6e2; border-left: 4px solid var(--color-brand);
  border-radius: var(--card-radius);
  padding: 16px 20px; font-size: 15px; color: var(--color-text);
  margin: 20px 0;
}
.notice--warning { background: #fdf6dd; border-color: #f0df9a; border-left-color: var(--color-accent); }
.notice__icon { flex-shrink: 0; color: var(--color-brand-dark); font-weight: 700; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-brand-light); border-block: 1px solid #c4e6e2; }
.cta-band__inner {
  display: flex; align-items: center; gap: 40px;
  padding-block: 56px;
}
.cta-band h2 { font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: var(--color-text-secondary); margin-bottom: 0; max-width: 62ch; }
.cta-band__actions { margin-left: auto; flex-shrink: 0; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--color-text-secondary); margin: 0; }

/* ---------- Prose (articles) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 27px; margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 32px; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 24px 0; padding: 14px 22px;
  border-left: 4px solid var(--color-brand);
  background: var(--color-surface);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  color: var(--color-text-secondary);
}
.prose .formula {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 20px 24px; margin: 24px 0;
  font-size: 19px; text-align: center;
}
.prose .formula .vars {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  margin-top: 14px; font-size: 14.5px; text-align: left; color: var(--color-text-secondary);
}
.prose .formula .vars dt { font-weight: 600; color: var(--color-text); }

/* Standalone prompt inside article prose: one short paragraph offering a
   faster path before the checklist starts. Lighter than .prose blockquote,
   which stays reserved for quoted material. */
.prose .note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 16px 20px; margin: 0 0 1.5em; font-size: 16px;
}
.article-meta { font-size: 14.5px; color: var(--color-text-secondary); margin-bottom: 32px; }
.article-meta time, .article-meta a { white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 0 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  font-size: 22px; font-weight: 400; color: var(--color-brand-dark);
  width: 24px; text-align: center;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > div { padding-bottom: 18px; margin: 0; color: var(--color-text-secondary); font-size: 15.5px; }

/* ---------- FAQ hub (/faq/) ---------- */
.faq-intro { max-width: 860px; font-size: 17px; margin-bottom: 24px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.faq-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-surface); font-size: 14.5px; font-weight: 600;
  color: var(--color-text); text-decoration: none;
}
.faq-nav a:hover, .faq-nav a:focus-visible {
  border-color: var(--color-brand); color: var(--color-brand-dark);
}
.faq-nav a span { color: var(--color-text-secondary); font-weight: 500; }
.faq-group { scroll-margin-top: calc(var(--nav-height) + 24px); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 26px; margin-bottom: 6px; }
.faq-group > p { margin-bottom: 20px; }
.faq details > div p { margin: 0 0 12px; }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-links { font-size: 14px; }
.faq-links a { color: var(--color-brand-dark); font-weight: 600; }
.faq-more { margin-top: 28px; }

/* ---------- Inquiry form ---------- */
.inquiry-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.inquiry-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 14.5px; font-weight: 600; }
.form-field label .req { color: var(--color-error); margin-left: 2px; }
.form-field label .opt { color: var(--color-text-secondary); font-weight: 400; margin-left: 4px; font-size: 13px; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 15.5px; color: var(--color-text);
  padding: 11px 14px; width: 100%;
  border: 1.5px solid var(--color-border); border-radius: var(--button-radius);
  background: var(--color-surface);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-brand); outline: none;
  box-shadow: 0 0 0 3px rgba(25, 185, 176, 0.18);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field .field-error { font-size: 13px; color: var(--color-error); display: none; }
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea { border-color: var(--color-error); }
.form-field.is-invalid .field-error { display: block; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--button-radius);
  font-size: 15px;
}
.form-status.is-visible { display: block; }
.form-status--error { background: #fbe9e7; border: 1px solid #f0c4bd; color: #8f2d20; }
.form-note { margin-top: 16px; font-size: 13.5px; color: var(--color-text-secondary); }
.form-aside h3 { font-size: 19px; }
.form-aside p, .form-aside li { font-size: 15px; color: var(--color-text-secondary); }
.form-aside ul { padding-left: 20px; }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-brand-light); color: var(--color-brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item dt { font-size: 13.5px; color: var(--color-text-secondary); }
.contact-item dd { margin: 0; font-size: 16px; font-weight: 500; }
.contact-item dd a { color: var(--color-text); }
.contact-item dd a:hover { color: var(--color-brand-dark); }

/* ---------- Image placeholder (documented, per project spec) ---------- */
.img-placeholder {
  border: 2px dashed #b9d9d6; border-radius: var(--card-radius);
  background:
    repeating-linear-gradient(45deg, rgba(25, 185, 176, 0.045) 0 14px, transparent 14px 28px),
    var(--color-brand-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px; gap: 10px;
  color: var(--color-brand-dark);
}
.img-placeholder__icon { width: 40px; height: 40px; opacity: 0.75; }
.img-placeholder__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.img-placeholder__desc { font-size: 14px; color: var(--color-text-secondary); max-width: 46ch; line-height: 1.55; }
.img-placeholder__spec { font-size: 12.5px; color: var(--color-text-secondary); opacity: 0.85; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder--tall { aspect-ratio: 4 / 3; }

figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--color-text-secondary); margin-top: 10px; }

/* ---------- Video facade (click-to-load, no third-party script until play) ---------- */
.video-facade {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  background: #0f1a1d; cursor: pointer;
}
.video-facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-facade__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(15, 26, 29, 0.28); border: 0; width: 100%; height: 100%;
  color: #fff; font: inherit; cursor: pointer;
}
.video-facade__btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-brand); border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.video-facade__play:hover .video-facade__btn { transform: scale(1.07); background: var(--color-brand-dark); }
.video-facade__btn svg { width: 26px; height: 26px; margin-left: 3px; fill: #fff; }
.video-facade__caption { font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); padding-inline: 16px; }
/* Click-to-play REPLACES the .video-facade element with a standalone
   iframe/video, so a descendant selector never matches. Style the inserted
   node itself; otherwise the browser falls back to its 300x150 default. */
.video-block > .video-player {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border); border-radius: var(--card-radius);
  box-shadow: var(--shadow-card); background: #0f1a1d;
  object-fit: contain;
}
.video-note { font-size: 14px; color: var(--color-text-secondary); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #22333a; color: #c9d6da; margin-top: auto; }
.site-footer a { color: #c9d6da; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-block: 56px 44px;
}
.site-footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { font-size: 14px; line-height: 1.7; color: #a9bcc1; max-width: 34ch; }
.site-footer h3 { font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { font-size: 14.5px; }
.site-footer__contact { font-size: 14.5px; display: grid; gap: 10px; }
.site-footer__contact a { display: block; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 13.5px; color: #93a8ad;
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }

/* ---------- Page wrapper ---------- */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.page-main { flex: 1; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding-block: 56px 60px; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { font-size: 42px; }
.page-hero__lead { font-size: 18px; color: var(--color-text-secondary); margin-top: 14px; margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--color-brand-dark); color: #fff; }
.trust-strip__inner { display: flex; flex-wrap: wrap; gap: 18px 48px; padding-block: 26px; }
.trust-strip div { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.trust-strip strong { display: block; font-size: 17px; color: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-secondary { color: var(--color-text-secondary); }
.small { font-size: 14px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Navigation collapses to burger below this width ----------
   Measured nav min-content width: brand 146 + links 738 + CTA 158 +
   Logo at 48px height is ~206px wide (4.3:1 aspect), ~60px wider than the
   previous 34px logo. 2 gaps x 32 + wider logo = needs ~1215px viewport
   before padding. Below that the inline nav overflows, so switch to burger. */
@media (max-width: 1280px) {
  .site-nav__inner { height: 60px; gap: 16px; }
  .site-nav__burger { display: block; }
  .site-nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 16px; box-shadow: var(--shadow-card);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { padding: 12px 14px; font-size: 16px; }
  .site-nav__cta { display: none; }
  .site-nav__brand img { height: 40px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-spacing: 64px; }
  h1 { font-size: 38px; }
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .spec-cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .inquiry-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 33px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .hero__media { order: 2; }
  .carousel__arrow { width: 36px; height: 36px; margin-top: -18px; }
  .carousel__arrow svg { width: 18px; height: 18px; }
  .carousel__arrow--prev { left: 10px; }
  .carousel__arrow--next { right: 10px; }
  .carousel__dots { bottom: 10px; gap: 7px; padding: 6px 10px; }
  .carousel__counter { right: 10px; bottom: 12px; font-size: 11px; }
  .page-hero { padding-block: 36px 40px; }
  .page-hero h1 { font-size: 29px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .kadv-list { grid-template-columns: 1fr; gap: 12px; }
  .kadv { padding: 14px 16px; }
  /* Process flow stacks vertically with downward connectors */
  .pflow { grid-template-columns: 1fr; }
  .pflow__step {
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
    border-radius: 0;
  }
  .pflow__step:first-child { border-radius: var(--card-radius) var(--card-radius) 0 0; }
  .pflow__step:last-child {
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
  }
  .pflow__step::after {
    top: auto; bottom: -9px; right: 50%; transform: translateX(50%) rotate(135deg);
  }
  .sel-form { grid-template-columns: 1fr; }
  /* Single-column: let placeholder height follow content instead of a 16/9
     ratio that is shorter than the label + description block. */
  .img-placeholder--wide { aspect-ratio: auto; min-height: 200px; }
  .steps { grid-template-columns: 1fr; }
  .spec-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 44px; }
  .cta-band__actions { margin-left: 0; }

  /* Spec tables stack — no horizontal overflow */
  .spec-table th, .spec-table td { display: block; width: auto; padding: 0; border: 0; }
  /* Desktop 42% row header must not survive the stacked layout. */
  .spec-table--pairs tbody th { width: auto; }
  .spec-table thead { display: none; }
  .spec-table tbody tr {
    display: grid; grid-template-columns: 1fr; gap: 2px;
    padding: 14px 16px; border-bottom: 1px solid var(--color-border);
  }
  .spec-table tbody tr:last-child { border-bottom: 0; }
  .spec-table tbody tr:nth-child(even) { background: rgba(232, 247, 245, 0.5); }
  .spec-table th { font-size: 13.5px; }
  .spec-table td { font-size: 16px; }
  .spec-table .flag { margin-left: 0; }

  /* Multi-column tables become labelled cards, so no column name is lost
     when the real <thead> is hidden. data-label is emitted by the generator. */
  .table-scroll { overflow-x: visible; }
  .table-scroll .spec-table--matrix,
  .table-scroll .spec-table--compare { min-width: 0; }
  /* Leave the table formatting context entirely. Otherwise the browser wraps
     block-level <tr> in anonymous table cells that shrink to their content. */
  .spec-table--matrix, .spec-table--compare,
  .spec-table--matrix tbody, .spec-table--compare tbody { display: block; }
  .spec-table--matrix colgroup, .spec-table--compare colgroup { display: none; }
  .spec-table--matrix, .spec-table--compare { table-layout: auto; }
  .spec-table--matrix tbody tr, .spec-table--compare tbody tr {
    display: block; gap: 0; padding: 14px 16px;
  }
  .spec-table--matrix tbody th, .spec-table--compare tbody th {
    display: block; width: auto; padding: 0 0 9px; margin-bottom: 8px;
    font-size: 15px; font-weight: 600; color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }
  .spec-table--matrix tbody td, .spec-table--compare tbody td {
    display: grid; grid-template-columns: 44% 1fr; gap: 12px;
    padding: 5px 0; font-size: 14.5px; line-height: 1.5;
  }
  .spec-table--matrix tbody td::before, .spec-table--compare tbody td::before {
    content: attr(data-label); color: var(--color-text-secondary);
    font-size: 13px; font-weight: 500; min-width: 0;
  }
  .spec-table--matrix .cell-value, .spec-table--compare .cell-value {
    min-width: 0; overflow-wrap: break-word;
  }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 32px; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__bottom nav { margin-left: 0; }
}

@media (max-width: 390px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn { width: 100%; }
  .card { padding: 22px; }
  .inquiry-form { padding: 22px; }
  .trust-strip__inner { gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, .site-footer, .cta-band, .video-facade { display: none; }
}

/* ==========================================================================
   Quick Inquiry floating widget
   Ported from fuel-site (float-consult.js + .fc-* styles), re-themed to the
   separator.jingyuan.hk palette (brand teal, --color-* tokens).
   ========================================================================== */
.fc-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  display: flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--color-brand); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  box-shadow: 0 10px 28px rgba(16, 140, 135, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.fc-btn:hover {
  transform: translateY(-2px);
  background: var(--color-brand-dark);
  box-shadow: 0 14px 34px rgba(16, 140, 135, 0.45);
}
.fc-btn:focus-visible { outline: 3px solid rgba(242, 197, 0, 0.9); outline-offset: 3px; }
.fc-btn svg { width: 20px; height: 20px; fill: #fff; flex: none; }

/* ---------- WhatsApp floating button (site-wide) ----------
   Stacked above .fc-btn: 22px + 54px height + 12px gap = bottom 88px.
   Kept as a real <a> in the HTML (not JS-injected like .fc-btn) so it works
   with scripts blocked and needs no CSP hash. */
.wa-fab {
  position: fixed; right: 22px; bottom: 88px; z-index: 8999;
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 20px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.wa-fab:hover {
  transform: translateY(-2px);
  background: #1ebe5a;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.42);
}
.wa-fab:focus-visible { outline: 3px solid rgba(242, 197, 0, 0.9); outline-offset: 3px; }
.wa-fab svg { width: 22px; height: 22px; fill: #fff; flex: none; }

.fc-overlay {
  position: fixed; inset: 0; z-index: 9001;
  background: rgba(16, 32, 40, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.fc-overlay.open { opacity: 1; pointer-events: auto; }

.fc-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 9002;
  width: 360px; max-width: calc(100vw - 28px); max-height: calc(100vh - 130px);
  overflow-y: auto; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(16, 32, 40, 0.28);
  opacity: 0; transform: translateY(14px) scale(0.97); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.fc-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.fc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--color-border);
  font-size: 16px; font-weight: 700; color: var(--color-text);
}
.fc-x {
  width: 32px; height: 32px; border: 0; border-radius: 6px;
  background: transparent; color: var(--color-text-secondary);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.fc-x:hover { background: var(--color-background); color: var(--color-text); }

.fc-body { padding: 16px 18px 18px; }
.fc-lede {
  margin: 0 0 14px; font-size: 13px; line-height: 1.55;
  color: var(--color-text-secondary);
}
.fc-l {
  display: block; margin: 0 0 12px;
  font-size: 12px; font-weight: 600; color: var(--color-text-secondary);
}
.fc-l input, .fc-l textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: #FBFDFD; color: var(--color-text);
  font-family: var(--font-sans); font-size: 13.5px;
}
.fc-l textarea { resize: vertical; min-height: 78px; }
.fc-l input:focus, .fc-l textarea:focus {
  outline: none; border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(25, 185, 176, 0.16);
}
.fc-opt { font-weight: 400; }
.fc-hp {
  position: absolute; left: -6000px; top: -6000px;
  width: 1px; height: 1px; opacity: 0;
}
.fc-send {
  width: 100%; padding: 12px; border: 0; border-radius: 8px;
  background: var(--color-brand); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.fc-send:hover { background: var(--color-brand-dark); }
.fc-send:disabled { background: var(--color-text-secondary); cursor: default; }
.fc-status {
  margin-top: 12px; padding: 11px 13px; border-radius: 8px;
  font-size: 13px; line-height: 1.55;
}
.fc-status.ok { background: #E8F7F5; border: 1px solid #9FD8D2; color: #10615D; }
.fc-status.err { background: #FBEDEB; border: 1px solid #EAB9B2; color: #8F2D20; }
.fc-status a { color: inherit; font-weight: 600; }
.fc-note {
  margin: 10px 0 0; font-size: 11.5px; line-height: 1.5;
  color: var(--color-text-secondary);
}
.fc-note a { color: var(--color-brand-dark); }

/* Fallback actions inside the page inquiry form (worker unreachable) */
.form-fallback { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.form-fallback__btn {
  display: inline-block; padding: 9px 14px;
  border: 1px solid var(--color-brand); border-radius: 6px;
  background: transparent; color: var(--color-brand-dark);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.form-fallback__btn:hover { background: var(--color-brand-light); }
.form-fallback__btn:first-child { background: var(--color-brand); color: #fff; }
.form-fallback__btn:first-child:hover { background: var(--color-brand-dark); }

@media (max-width: 640px) {
  .fc-btn { right: 14px; bottom: 14px; height: 48px; padding: 0 17px; font-size: 13px; }
  .fc-panel { right: 14px; left: 14px; width: auto; bottom: 76px; }
  .wa-fab {
    right: 14px; bottom: 72px;
    width: 48px; height: 48px; padding: 0; justify-content: center;
  }
  /* Icon-only on phones: a 131px-wide pill plus the Quick Inquiry pill would
     cover a third of a 390px viewport. The <a> keeps its aria-label, so the
     accessible name is unchanged. */
  .wa-fab span { display: none; }
}

@media print {
  .fc-btn, .fc-panel, .fc-overlay, .wa-fab { display: none !important; }
}
