/* ============================================================
   慧厂通 — 工业产品规格百科
   Design system: light theme, restrained palette, info-dense
   ============================================================ */

:root {
  /* Color — OKLCH, tinted neutrals toward primary hue (~195 teal) */
  --c-primary:        oklch(0.42 0.06 195);   /* deep industrial teal */
  --c-primary-hover:  oklch(0.36 0.07 195);
  --c-primary-soft:   oklch(0.96 0.015 195);
  --c-primary-line:   oklch(0.88 0.025 195);

  --c-accent:         oklch(0.68 0.18 50);    /* warm CTA orange */
  --c-accent-hover:   oklch(0.62 0.18 50);
  --c-accent-soft:    oklch(0.96 0.04 60);

  --c-bg:             oklch(0.995 0.003 195);
  --c-surface:        oklch(1 0 0);
  --c-surface-alt:    oklch(0.985 0.005 195);
  --c-surface-sunk:   oklch(0.97 0.006 200);

  --c-line:           oklch(0.92 0.008 200);
  --c-line-strong:    oklch(0.85 0.012 200);

  --c-text:           oklch(0.22 0.012 220);
  --c-text-mid:       oklch(0.42 0.012 220);
  --c-text-soft:      oklch(0.55 0.01 220);
  --c-text-faint:     oklch(0.7 0.008 220);

  --c-success:        oklch(0.62 0.13 155);
  --c-warning:        oklch(0.72 0.16 75);
  --c-danger:         oklch(0.58 0.19 25);

  --c-footer-bg:      oklch(0.22 0.012 220);
  --c-footer-text:    oklch(0.85 0.008 220);
  --c-footer-soft:    oklch(0.62 0.01 220);

  /* Type */
  --ff-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
             "Microsoft YaHei", "Source Han Sans CN", "Noto Sans SC",
             "Helvetica Neue", Arial, sans-serif;
  --ff-num:  "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
             "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   15px;
  --fs-lg:   clamp(16px, 0.95vw + 11px, 18px);
  --fs-xl:   clamp(18px, 1.1vw + 12px, 22px);
  --fs-2xl:  clamp(20px, 1.4vw + 13px, 26px);
  --fs-3xl:  clamp(24px, 2vw + 14px, 34px);
  --fs-4xl:  clamp(28px, 2.6vw + 16px, 42px);

  --lh-tight:  1.25;
  --lh-snug:   1.4;
  --lh-normal: 1.6;
  --lh-relaxed:1.75;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* Layout */
  --container: 1320px;
  --container-narrow: 920px;
  --container-wide: 1600px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-2: 0 2px 8px -2px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-3: 0 12px 32px -8px rgb(0 0 0 / 0.10), 0 2px 6px rgb(0 0 0 / 0.04);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 280ms;

  /* Header height */
  --h-header: 64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--c-primary); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ----- Container ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
body { overflow-x: hidden; }
.container--narrow { max-width: var(--container-narrow); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--h-header);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: saturate(1.1);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-text-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
.brand__group { display: flex; flex-direction: column; line-height: 1.1; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
}
.nav-primary a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-md);
  color: var(--c-text-mid);
  font-weight: var(--fw-medium);
}
.nav-primary a:hover { color: var(--c-text); }
.nav-primary a.is-active { color: var(--c-primary); }
.nav-primary a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--c-primary);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
}
.lang-switch a {
  padding: 0 12px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text-mid);
  letter-spacing: 0.06em;
  border-right: 1px solid var(--c-line);
}
.lang-switch a:last-child { border-right: 0; }
.lang-switch a.is-active { background: var(--c-primary); color: #fff; }
.lang-switch a:hover:not(.is-active) { color: var(--c-primary); background: var(--c-primary-soft); }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--c-surface-sunk);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  width: 240px;
  transition: border-color var(--t-fast) var(--ease-out);
}
.header-search:focus-within { border-color: var(--c-primary); background: var(--c-surface); }
.header-search input { flex: 1; border: 0; background: transparent; font-size: var(--fs-sm); outline: none; }
.header-search svg { width: 14px; height: 14px; color: var(--c-text-soft); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb__sep { color: var(--c-text-faint); font-size: 11px; }
.breadcrumb [aria-current="page"] { color: var(--c-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { border: 1px solid var(--c-line-strong); color: var(--c-text); background: var(--c-surface); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--lg { height: 44px; padding: 0 24px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.section-title h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 12px;
}
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--c-primary);
  border-radius: 1px;
}
.section-title .more {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.section-title .more:hover { color: var(--c-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 36px 0 20px;
  font-size: var(--fs-sm);
}
.site-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid oklch(0.32 0.012 220);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--c-footer-text); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: oklch(0.32 0.012 220);
  color: var(--c-footer-text);
  transition: background var(--t-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--c-primary); color: #fff; }
.footer-social svg { width: 13px; height: 13px; }
.site-footer__copy {
  padding-top: 16px;
  text-align: center;
  color: var(--c-footer-soft);
  font-size: var(--fs-xs);
}

/* ============================================================
   PRODUCT CATEGORY GRID (homepage)
   First-principles redesign:
   - Subcategories visible inline (no expand toggle, no layout shift)
   - Product count badge for trust signal
   - Whole card is one link (max click area)
   - 4 columns on desktop (denser, B2B-like, matches DirectIndustry)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  cursor: pointer;
  height: 100%;
  width: 100%;
  min-width: 0;
}
.cat-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px oklch(0.42 0.06 195 / 0.30);
}
.cat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.cat-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--c-text);
  min-width: 0;
}
.cat-card__title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.cat-card:hover .cat-card__icon { background: var(--c-primary); color: #fff; }
.cat-card__icon svg { width: 16px; height: 16px; }
.cat-card__count {
  font-family: var(--ff-num);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-soft);
  background: var(--c-surface-alt);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-card__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--c-text-soft);
  margin-top: 2px;
  min-height: 2.4em;
}
.cat-card__subs span {
  white-space: nowrap;
}
.cat-card__subs span::after {
  content: "·";
  margin: 0 6px;
  color: var(--c-text-faint);
}
.cat-card__subs span:last-child::after { content: ""; margin: 0; }
.cat-card__more {
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--fs-xs);
  color: var(--c-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  transition: gap var(--t-fast) var(--ease-out);
}
.cat-card:hover .cat-card__more { gap: 8px; }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS LIST (homepage feature + standard)
   ============================================================ */
.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--c-line);
}
.news-feature__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__body h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: var(--lh-snug);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.news-feature__body p {
  color: var(--c-text-mid);
  line-height: var(--lh-relaxed);
  margin-bottom: 16px;
}
.news-feature__meta {
  display: flex;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-bottom: 14px;
}
.news-feature__meta span { display: inline-flex; align-items: center; gap: 5px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-item { display: flex; flex-direction: column; gap: 12px; }
.news-item__media {
  aspect-ratio: 16 / 10;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.news-item:hover .news-item__media img { transform: scale(1.04); }
.news-item h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--c-text);
  line-height: var(--lh-snug);
}
.news-item:hover h4 { color: var(--c-primary); }
.news-item__date {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* News page (full list) */
.news-list-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
}
.news-list-row:first-of-type { padding-top: 0; }
.news-list-row__media {
  aspect-ratio: 16 / 10;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.news-list-row__media img { width: 100%; height: 100%; object-fit: cover; }
.news-list-row__body h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 8px;
  line-height: var(--lh-snug);
}
.news-list-row:hover h3 { color: var(--c-primary); }
.news-list-row__body p {
  color: var(--c-text-mid);
  line-height: var(--lh-normal);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-row__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* ============================================================
   ENCYCLOPEDIA LIST (sidebar + cards)
   ============================================================ */
.enc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 12px 0 60px;
  align-items: start;
}
.enc-sidebar {
  position: sticky;
  top: calc(var(--h-header) + 16px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-sizing: border-box;
}
.enc-sidebar__title {
  padding: 14px 18px;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: #fff;
  background: var(--c-primary);
  letter-spacing: 0.02em;
}
.enc-sidebar__group { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.enc-sidebar__group:last-of-type { border-bottom: 0; }
.enc-sidebar__letter {
  padding: 4px 18px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  letter-spacing: 0.1em;
}
.enc-sidebar__group a {
  display: block;
  padding: 7px 18px;
  font-size: var(--fs-sm);
  color: var(--c-text-mid);
  border-left: 2px solid transparent;
  transition: all var(--t-fast) var(--ease-out);
}
.enc-sidebar__group a:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-left-color: var(--c-primary);
}
.enc-sidebar__group a.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  font-weight: var(--fw-semi);
}
.enc-sidebar__cta {
  padding: 16px 18px;
  background: var(--c-surface-alt);
  font-size: var(--fs-sm);
}
.enc-sidebar__cta p { color: var(--c-text-mid); margin-bottom: 10px; }
.enc-sidebar__cta a { color: var(--c-accent); font-weight: var(--fw-semi); }

.enc-content { min-width: 0; }
.enc-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}
.enc-intro h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.enc-intro p {
  color: var(--c-text-mid);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-md);
}
.enc-intro__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-2);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-sunk);
  position: relative;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__name {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--c-text);
  line-height: var(--lh-snug);
}
.product-card:hover .product-card__name { color: var(--c-primary); }
.product-card__params {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
}
.product-card__params span {
  padding: 2px 6px;
  background: var(--c-surface-alt);
  border-radius: var(--radius-xs);
}
.product-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  min-height: calc(var(--fs-xs) * var(--lh-normal) * 2);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  align-items: center;
}
.pagination a, .pagination span {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: var(--c-text-mid);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--c-text-mid); color: var(--c-text); }
.pagination .is-current {
  background: var(--c-surface);
  border-color: var(--c-text);
  color: var(--c-text);
  font-weight: var(--fw-semi);
}
.pagination .pagination__ellipsis {
  border: none;
  background: none;
  color: var(--c-text-soft);
  min-width: 24px;
  padding: 0 4px;
}
.pagination__next, .pagination__prev {
  padding: 0 18px;
}

@media (max-width: 480px) {
  .pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
  }
  .pagination a,
  .pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
  }
  .pagination__next,
  .pagination__prev {
    flex: 1 1 100%;
  }
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 8px 0 60px;
  align-items: start;
}
.pd-gallery {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.pd-gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-sm);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.pd-gallery__main img { width: 70%; height: 70%; object-fit: contain; }
.pd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-text-mid);
  transition: all var(--t-fast) var(--ease-out);
}
.pd-gallery__nav:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pd-gallery__nav--prev { left: 16px; }
.pd-gallery__nav--next { right: 16px; }
.pd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.pd-gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--c-surface-sunk);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__thumb.is-active { border-color: var(--c-primary); border-width: 2px; }
.pd-gallery__alert {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--c-accent-soft);
  border: 1px solid oklch(0.85 0.08 60);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: oklch(0.45 0.13 50);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.pd-summary__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.pd-summary__sub {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
}
.pd-summary__sub strong { color: var(--c-text-mid); font-weight: var(--fw-medium); }

.pd-iconnect {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-primary-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-mid);
  margin-bottom: 14px;
}
.pd-iconnect strong { color: var(--c-primary); font-weight: var(--fw-bold); font-family: var(--ff-num); letter-spacing: -0.01em; }

.pd-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.pd-summary__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-mid);
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.pd-summary__list li { display: flex; gap: 8px; align-items: center; }
.pd-summary__list svg { color: var(--c-success); width: 14px; height: 14px; flex-shrink: 0; }

/* Spec table */
.pd-section { margin-top: 36px; }
.pd-section__head {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-primary);
  margin-bottom: 20px;
  display: inline-block;
  padding-right: 36px;
}
.pd-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.pd-spec-table { font-size: var(--fs-sm); }
.pd-spec-table tr { border-bottom: 1px solid var(--c-line); }
.pd-spec-table tr:last-child { border-bottom: 0; }
.pd-spec-table th {
  text-align: left;
  font-weight: var(--fw-medium);
  color: var(--c-text-soft);
  padding: 11px 12px 11px 0;
  width: 130px;
  vertical-align: top;
}
.pd-spec-table td {
  padding: 11px 0;
  color: var(--c-text);
  vertical-align: top;
  font-family: var(--ff-num);
  font-size: var(--fs-sm);
}
.pd-spec-table td.has-cn { font-family: var(--ff-sans); }

.pd-desc {
  color: var(--c-text-mid);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-sm);
}
.pd-desc h4 {
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  margin: 18px 0 8px;
}
.pd-desc h4:first-child { margin-top: 0; }
.pd-desc p { margin-bottom: 10px; }

/* Related products row */
.pd-related {
  margin-top: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.pd-related__head {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  margin-bottom: 16px;
  color: var(--c-text);
}
.pd-related__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}
.pd-related__card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast) var(--ease-out);
}
.pd-related__card:hover { border-color: var(--c-primary); }
.pd-related__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8px;
}
.pd-related__media img { width: 100%; height: 100%; object-fit: contain; }
.pd-related__name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-related__brand { font-size: 11px; color: var(--c-text-soft); }
.pd-related__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.pd-related__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-line-strong);
}
.pd-related__dots span.is-active { background: var(--c-primary); width: 18px; border-radius: 3px; }

/* Tag cloud / related search */
.pd-tags {
  margin-top: 20px;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.pd-tags__head {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--c-text);
  margin-bottom: 12px;
}
.pd-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-tags__list a {
  padding: 5px 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
  color: var(--c-text-mid);
  transition: all var(--t-fast) var(--ease-out);
}
.pd-tags__list a:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ============================================================
   ARTICLE / NEWS DETAIL
   ============================================================ */
.article {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 40px 56px;
  margin: 8px 0 60px;
}
.article__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  text-align: center;
  margin-bottom: 16px;
}
.article__meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}
.article__lead-image {
  aspect-ratio: 16 / 7;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.article__body {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--c-text);
  max-width: 72ch;
  margin: 0 auto;
}
.article__body p { margin-bottom: 18px; color: var(--c-text-mid); }
.article__body h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 28px 0 12px;
  color: var(--c-text);
  padding-left: 12px;
  border-left: 3px solid var(--c-primary);
}

.article__related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.article__related-head {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  margin-bottom: 16px;
}
.article__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-product {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  transition: border-color var(--t-fast) var(--ease-out);
}
.related-product:hover { border-color: var(--c-primary); }
.related-product__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8px;
}
.related-product__media img { width: 100%; height: 100%; object-fit: contain; }
.related-product__name {
  font-size: var(--fs-xs);
  color: var(--c-text);
  font-weight: var(--fw-medium);
}
.related-product:hover .related-product__name { color: var(--c-primary); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 24px 0 80px;
  align-items: center;
}
.about-layout__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-sunk);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-layout__media img { width: 100%; height: 100%; object-fit: cover; }
.about-layout h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--c-text);
}
.about-layout h2 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--c-primary);
  margin: 24px 0 8px;
  letter-spacing: 0.04em;
}
.about-layout p {
  color: var(--c-text-mid);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-md);
  margin-bottom: 12px;
}
.about-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.about-contact div { display: flex; gap: 10px; align-items: center; }
.about-contact strong { color: var(--c-text-soft); font-weight: var(--fw-medium); min-width: 60px; }
.about-social { display: flex; gap: 10px; margin-top: 8px; }
.about-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-text-mid);
  transition: all var(--t-fast) var(--ease-out);
}
.about-social a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.about-social svg { width: 14px; height: 14px; }
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  overflow: hidden;
}
.about-contact-grid > div {
  padding: 32px 28px;
  background: var(--c-surface, #fff);
  border-right: 1px solid var(--c-line);
}
.about-contact-grid > div:last-child { border-right: none; }

/* ============================================================
   SVG PLACEHOLDER (consistent gray-blue rectangle)
   ============================================================ */
.placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    oklch(0.82 0.04 220) 0%,
    oklch(0.74 0.07 220) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.placeholder::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: oklch(1 0 0 / 0.6);
  border-radius: 50%;
  top: 22%; right: 28%;
}
.placeholder::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, oklch(0.5 0.1 220 / 0.4));
  clip-path: polygon(0 80%, 25% 30%, 50% 60%, 75% 20%, 100% 50%, 100% 100%, 0 100%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-related__grid { grid-template-columns: repeat(4, 1fr); }
  .pd-related__grid > *:nth-child(5) { display: none; }
  .pd-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-content { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 880px) {
  .header-search { display: none; }
  .nav-primary { gap: 24px; }
  .nav-primary a { font-size: var(--fs-sm); }
  .enc-layout { grid-template-columns: 1fr; }
  .enc-sidebar { position: static; order: 2; max-height: none; overflow-y: visible; }
  .enc-content { order: 1; }
  .enc-intro { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 28px 24px; }
  .article__title { font-size: var(--fs-2xl); }
  .news-feature { grid-template-columns: 1fr; }
  .news-list-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-primary { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .pd-related__grid { grid-template-columns: repeat(3, 1fr); }
  .pd-related__grid > *:nth-child(n+4) { display: none; }
  .article { padding: 20px 16px; }
  .container { padding: 0 16px; }
  .breadcrumb { padding: 12px 0; font-size: var(--fs-xs); }
  .pd-gallery, .pd-summary, .pd-content, .pd-related, .article, .enc-intro { padding: 18px; }
  .pd-summary__title { font-size: var(--fs-xl); }
  .pd-spec-table th { width: 100px; font-size: var(--fs-xs); }
  .article__meta { flex-wrap: wrap; gap: 10px; }
  .article__related-grid { grid-template-columns: 1fr 1fr; }
  .related-product:last-child { display: none; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; justify-content: center; }
  .site-footer__main { justify-content: center; text-align: center; }
}

/* Extra-small phones (<400px) */
@media (max-width: 400px) {
  :root { --h-header: 56px; }
  .brand__mark { width: 30px; height: 30px; font-size: 14px; }
  .brand__name { font-size: var(--fs-lg); }
  .brand__tag { display: none; }
  .header-actions .lang-switch a { padding: 0 8px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .pd-gallery__thumbs { grid-template-columns: repeat(5, 1fr); }
  .pd-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait fine-tune */
@media (min-width: 561px) and (max-width: 880px) {
  .header-actions .lang-switch { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-summary { position: static; }
}

/* Wide desktop (>=1440px) — slightly wider container, looser rhythm */
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
  .pd-layout { grid-template-columns: 1fr 400px; gap: 40px; }
  .product-grid { gap: 24px; }
}

/* Ultra-wide (>=1920px) — cap container, scale neutral whitespace */
@media (min-width: 1920px) {
  .container { max-width: 1480px; padding: 0 32px; }
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .pd-related__grid { grid-template-columns: repeat(6, 1fr); }
  .news-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Spec table: horizontal scroll on tight viewports without overflow leak */
.pd-spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pd-spec-table-wrap::-webkit-scrollbar { height: 6px; }
.pd-spec-table-wrap::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 3px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Print */
@media print {
  .site-header, .site-footer, .pd-actions, .pd-related, .pagination, .header-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .placeholder { background: #eee !important; }
}

/* ============================================================
   COMMERCIAL-GRADE LAYER  (additive — does not modify earlier rules)
   Web fonts, hero, stats, manufacturer row, newsletter, reveal,
   image utilities, advanced motion, depth.
   ============================================================ */

/* Web fonts via @import — comments document why */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --ff-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
                "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --ff-body:    "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
                "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --grad-hero: radial-gradient(120% 80% at 100% 0%,
               oklch(0.72 0.14 195 / 0.18) 0%, transparent 55%),
               radial-gradient(80% 60% at 0% 100%,
               oklch(0.42 0.12 195 / 0.12) 0%, transparent 55%),
               linear-gradient(180deg, oklch(0.99 0.005 195) 0%, oklch(0.96 0.01 195) 100%);
  --grad-dark: linear-gradient(135deg, oklch(0.22 0.04 200) 0%, oklch(0.32 0.06 195) 60%, oklch(0.42 0.08 195) 100%);
}

body { font-family: var(--ff-body); }
.brand__name, .pd-summary__title, .article__title, h1, h2, h3, h4 {
  font-family: var(--ff-display);
  letter-spacing: -0.015em;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--c-line);
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.42 0.06 195 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.42 0.06 195 / 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -180px;
  background: radial-gradient(closest-side, oklch(0.72 0.14 195 / 0.35), transparent);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  animation: float 14s var(--ease-out) infinite alternate;
}
@keyframes float {
  to { transform: translate(-30px, 40px) scale(1.08); }
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-primary-line);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--c-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--c-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px oklch(0.62 0.13 155 / 0.2);
}
.hero h1 {
  font-size: clamp(32px, 4vw + 6px, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-primary), oklch(0.55 0.13 195));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(15px, 1vw + 8px, 18px);
  color: var(--c-text-mid);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero__search {
  display: flex;
  height: 56px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  box-shadow: 0 8px 24px -10px oklch(0.42 0.06 195 / 0.18);
  overflow: hidden;
  max-width: 560px;
  transition: box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.hero__search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 12px 32px -10px oklch(0.42 0.10 195 / 0.30);
}
.hero__search svg { width: 18px; height: 18px; color: var(--c-text-soft); margin: 0 14px; align-self: center; }
.hero__search input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: var(--fs-md); padding: 0 8px;
}
.hero__search button {
  margin: 6px;
  padding: 0 22px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: background var(--t-fast) var(--ease-out);
}
.hero__search button:hover { background: var(--c-primary-hover); }
.hero__hot {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.hero__hot a {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 4px 4px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-text-mid);
  transition: all var(--t-fast) var(--ease-out);
}
.hero__hot a:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

.hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px oklch(0.22 0.04 200 / 0.25),
              0 12px 24px -10px oklch(0.42 0.06 195 / 0.15);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--t-slow) var(--ease-out);
}
.hero__visual:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.22 0.04 200 / 0.45));
  pointer-events: none;
}
.hero__badges {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.hero__badge {
  background: oklch(1 0 0 / 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stats ribbon */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 24px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  position: relative;
  z-index: 2;
}
.stats__item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid var(--c-line);
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--ff-num);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats__num em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-primary), oklch(0.55 0.13 195));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stats__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Manufacturer logos row */
.mfr-row {
  padding: 36px 0 12px;
}
.mfr-row__head {
  text-align: center;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-text-soft);
  margin-bottom: 20px;
}
.mfr-row__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.mfr-row__list span {
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--c-text-faint);
  letter-spacing: 0.02em;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
  transition: all var(--t-base) var(--ease-out);
  filter: grayscale(1);
}
.mfr-row__list span:hover {
  color: var(--c-primary);
  border-color: var(--c-primary-line);
  background: var(--c-primary-soft);
  filter: grayscale(0);
  transform: translateY(-2px);
}

/* Featured product slabs */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}
.featured-grid > a {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: var(--c-surface-sunk);
}
.featured-grid > a:first-child { grid-row: span 2; }
.featured-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.featured-grid > a:hover img { transform: scale(1.06); }
.featured-grid > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.18 0.04 200 / 0.85));
}
.featured-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 18px 22px;
  z-index: 1;
  color: #fff;
}
.featured-grid__tag {
  display: inline-block;
  padding: 3px 10px;
  background: oklch(0.42 0.06 195 / 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.featured-grid h4 {
  font-size: var(--fs-lg);
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

/* Newsletter */
.newsletter {
  margin: 56px 0 0;
  padding: 48px;
  background: var(--grad-dark);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
}
.newsletter::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -80px; top: -120px;
  background: radial-gradient(closest-side, oklch(0.72 0.14 195 / 0.4), transparent);
  border-radius: 50%;
  filter: blur(40px);
}
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 100% 0%, black, transparent 70%);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}
.newsletter p {
  color: oklch(0.85 0.01 220);
  line-height: 1.6;
  font-size: var(--fs-md);
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter__form-row {
  display: flex;
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: 10px;
  padding: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0 14px;
  font-size: var(--fs-sm);
  outline: none;
}
.newsletter__form input::placeholder { color: oklch(0.78 0.01 220); }
.newsletter__form button {
  padding: 12px 22px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--t-fast) var(--ease-out);
}
.newsletter__form button:hover { background: var(--c-accent-hover); }
.newsletter__note {
  font-size: var(--fs-xs);
  color: oklch(0.7 0.01 220);
}

/* Section heading variant for richer pages */
.sec-heading {
  text-align: center;
  margin-bottom: 36px;
}
.sec-heading__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sec-heading h2 {
  font-size: clamp(24px, 2vw + 8px, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.sec-heading p {
  font-size: var(--fs-md);
  color: var(--c-text-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* Real image utilities — replace .placeholder by adding actual <img> */
.media-cover { width: 100%; height: 100%; object-fit: cover; }
.media-contain { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
img[loading="lazy"] { background: var(--c-surface-sunk); }

/* Refined product card image treatment */
.product-card__media img,
.news-item__media img,
.news-list-row__media img,
.news-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Logo as SVG mark replacement */
.brand__mark--svg {
  width: 38px; height: 38px;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 10px -3px oklch(0.42 0.06 195 / 0.4);
}
.brand__mark--svg svg { width: 100%; height: 100%; display: block; }

/* Footer upgrade — multi-column with deeper info architecture */
.site-footer { padding: 56px 0 24px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid oklch(0.32 0.012 220);
}
.site-footer__col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.site-footer__col a { color: var(--c-footer-text); }
.site-footer__col a:hover { color: #fff; }
.site-footer__about p {
  color: var(--c-footer-text);
  line-height: 1.7;
  font-size: var(--fs-sm);
  margin-top: 14px;
  margin-bottom: 18px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand .brand__tag { color: var(--c-footer-soft); }
.site-footer__bottom {
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 14px;
  font-size: var(--fs-xs);
  color: var(--c-footer-soft);
}
.site-footer__bottom > .site-footer__copy { grid-column: 1; grid-row: 1; }
.site-footer__bottom > .footer-lang { grid-column: 2; grid-row: 1; justify-self: end; }
.site-footer__bottom > .site-footer__legal { grid-column: 1 / -1; grid-row: 2; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__legal a { color: var(--c-footer-soft); }
.site-footer__legal a:hover { color: #fff; }

/* ---------- SCROLL REVEAL ----------
   IMPORTANT: default state is VISIBLE for SEO crawlers and no-JS users.
   JS adds .js to <html> on load, only then we hide-then-reveal.
   This way crawlers always see content; users see the animation. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 0.40s; }

/* ---------- HEADER REFINEMENTS ---------- */
.site-header { transition: box-shadow var(--t-base) var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 4px 16px -8px oklch(0.42 0.06 195 / 0.15); }

/* Refined breadcrumb pill */
.breadcrumb {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  margin: 16px 0 4px;
}

/* Card hover lift — universal */
.product-card, .news-item, .news-list-row, .related-product, .pd-related__card,
.cat-card {
  will-change: transform;
}
.product-card:hover, .news-item:hover, .pd-related__card:hover {
  transform: translateY(-3px);
}
.product-card, .news-item, .pd-related__card {
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}

/* Trust signals strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 18px 0;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 14px; height: 14px; color: var(--c-success); }

/* Quick category pill row */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cat-pills a {
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--c-text-mid);
  background: var(--c-surface);
  transition: all var(--t-fast) var(--ease-out);
}
.cat-pills a:hover, .cat-pills a.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* Responsive overrides for new components */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { transform: none; max-width: 600px; margin: 0 auto; }
  .featured-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .featured-grid > a { aspect-ratio: 4 / 3; }
  .featured-grid > a:first-child { grid-row: span 1; grid-column: span 2; aspect-ratio: 16 / 7; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item { padding: 16px 8px; border-bottom: 1px solid var(--c-line); }
  .stats__item:nth-last-child(-n+2) { border-bottom: 0; }
  .mfr-row__list { grid-template-columns: repeat(3, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid > a:first-child { grid-column: span 1; }
  .mfr-row__list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 48px; }
  .stats { padding: 12px 0; }
}

/* ============================================================
   EDITORIAL OVERRIDE LAYER  (final, intentional overrides)
   Pivot to "Industrial Almanac" feel:
   - Warm paper background (no longer cold white)
   - Ink text, not gray-blue
   - Restrained accents — teal as structural line, copper as editorial highlight
   - Asymmetric editorial layout, hairlines instead of cards
   - No marketing chrome (stats ribbon / trust strip / mfr "trusted by" all retired)
   ============================================================ */

:root {
  /* Editorial palette overrides */
  --c-bg:           oklch(0.985 0.008 78);    /* warm paper */
  --c-surface:      oklch(0.995 0.005 78);
  --c-surface-alt:  oklch(0.97 0.012 78);
  --c-surface-sunk: oklch(0.95 0.014 78);

  --c-text:         oklch(0.18 0.008 80);     /* ink */
  --c-text-mid:     oklch(0.36 0.008 80);
  --c-text-soft:    oklch(0.5 0.008 80);
  --c-text-faint:   oklch(0.66 0.008 80);

  --c-line:         oklch(0.88 0.012 78);
  --c-line-strong:  oklch(0.78 0.012 78);

  /* keep teal but tune to ink-water vibe */
  --c-primary:        oklch(0.36 0.05 195);
  --c-primary-hover:  oklch(0.30 0.06 195);
  --c-primary-soft:   oklch(0.96 0.012 90);

  /* secondary editorial accent — industrial copper */
  --c-copper:         oklch(0.52 0.13 42);
  --c-copper-soft:    oklch(0.96 0.025 60);

  /* footer keeps ink+paper logic */
  --c-footer-bg:    oklch(0.16 0.005 80);
}

/* Body baseline — bigger leading, tabular numerals */
body {
  background: var(--c-bg);
  font-feature-settings: "ss01", "cv11";
}
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Hide marketing chrome we no longer want */
.stats, .trust, .mfr-row, .newsletter { display: none !important; }

/* HEADER — quieter, hairline only */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header.is-scrolled { box-shadow: none; border-bottom-color: var(--c-line-strong); }
.brand__name { font-weight: 800; letter-spacing: -0.02em; }
.brand__tag { font-size: 9px; color: var(--c-text-faint); }

/* Editorial nav — uppercase small caps */
.nav-primary a {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav-primary a.is-active { color: var(--c-text); }
.nav-primary a.is-active::after { background: var(--c-text); height: 1.5px; }

/* HERO — editorial cover */
.hero {
  background: var(--c-bg);
  padding: clamp(40px, 5vw, 80px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--c-line);
}
.hero::before, .hero::after { display: none; } /* no gradient blobs */
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

/* Editorial dateline */
.dateline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.dateline__num { color: var(--c-copper); font-family: var(--ff-num); font-variant-numeric: tabular-nums; }
.dateline__sep { width: 4px; height: 4px; background: var(--c-line-strong); border-radius: 50%; }

/* Hide eyebrow pill — replaced by dateline */
.hero__eyebrow { display: none; }

/* Hero headline — heavier, tighter, ink */
.hero h1 {
  font-size: clamp(36px, 4.5vw + 8px, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--c-text);
  margin-bottom: 28px;
}
.hero h1 em {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--c-copper);
  font-style: italic;
  font-weight: 800;
  font-family: "Newsreader", "Source Han Serif SC", "Source Serif Pro", Georgia, serif;
  letter-spacing: -0.01em;
}

/* Lead paragraph — wider tracking */
.hero__lead {
  font-size: clamp(15px, 0.6vw + 13px, 18px);
  color: var(--c-text-mid);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero__lead strong { color: var(--c-text); font-weight: 600; }

/* Search — closed full-border editorial box (no more open-edge empty space) */
.hero__search {
  height: 56px;
  border-radius: 0;
  border: 1.5px solid var(--c-text);
  box-shadow: none;
  background: var(--c-surface);
  max-width: 560px;
  padding: 0;
  align-items: stretch;
}
.hero__search:focus-within {
  border-color: var(--c-copper);
  box-shadow: 0 0 0 3px oklch(0.52 0.13 42 / 0.12);
}
.hero__search svg {
  width: 20px; height: 20px;
  color: var(--c-text);
  margin: 0 0 0 18px;
  align-self: center;
  flex-shrink: 0;
}
.hero__search input {
  flex: 1;
  font-size: var(--fs-md);
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 14px;
  min-width: 0;
}
.hero__search input::placeholder { color: var(--c-text-soft); }
.hero__search button {
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: 0;
  margin: 0;
  padding: 0 28px;
  height: auto;
  align-self: stretch;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.hero__search button:hover { background: var(--c-copper); }

/* Hot search — minimal */
.hero__hot { font-size: 11px; letter-spacing: 0.04em; color: var(--c-text-soft); margin-top: 18px; }
.hero__hot a {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line-strong);
  border-radius: 0;
  padding: 2px 0;
  margin: 0 14px 4px 0;
  color: var(--c-text-mid);
}
.hero__hot a:hover { background: transparent; color: var(--c-copper); border-color: var(--c-copper); }

/* Hero visual — full bleed photo, no card chrome, no rotation */
.hero__visual {
  border-radius: 0;
  box-shadow: none;
  transform: none;
  aspect-ratio: 4 / 5;
  position: relative;
}
.hero__visual:hover { transform: none; }
.hero__visual img { filter: contrast(1.05) saturate(0.92); }
.hero__visual::after {
  background: linear-gradient(180deg, transparent 60%, oklch(0.16 0.005 80 / 0.3));
}
.hero__badges { display: none; }

/* Caption under hero image */
.hero__caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 18px 22px;
  color: var(--c-bg);
  z-index: 1;
}
.hero__caption-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  color: oklch(0.95 0.02 60);
}
.hero__caption-title {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* SECTION HEADING — editorial chapter break */
.sec-heading { text-align: left; }
.sec-heading__eyebrow {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--c-copper);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-heading__eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-copper);
  vertical-align: middle;
}
.sec-heading h2 {
  font-size: clamp(26px, 2.2vw + 10px, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
  line-height: 1.1;
}
.sec-heading p {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: var(--fs-md);
  color: var(--c-text-mid);
  line-height: 1.7;
}

.section-title {
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 10px;
}
.section-title h2 {
  padding-left: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-title h2::before { display: none; }
.section-title .more {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-text);
}
.section-title .more:hover { color: var(--c-copper); }

/* CATEGORY CARDS — paper feel, hairline, no shadow on hover */
.cat-card {
  background: var(--c-surface);
  border-radius: 0;
  border: 1px solid var(--c-line);
}
.cat-card:hover {
  border-color: var(--c-text);
  transform: none;
  box-shadow: none;
  background: var(--c-surface-alt);
}
.cat-card__icon {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 0;
}
.cat-card:hover .cat-card__icon {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.cat-card__count {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text-mid);
  border-radius: 0;
  font-weight: 700;
}
.cat-card__more { color: var(--c-copper); }

/* FEATURED — asymmetric editorial gallery (no AI grid) */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: minmax(280px, 1fr) minmax(220px, 0.85fr);
  gap: 4px;
  height: auto;
  border: 1px solid var(--c-line);
  background: var(--c-line);
  padding: 0;
}
.featured-grid > a {
  border-radius: 0;
  background: var(--c-surface);
}
.featured-grid > a:first-child { grid-row: span 2; }
.featured-grid > a:nth-child(4) { grid-column: span 1; }
.featured-grid > a:hover img { transform: scale(1.03); filter: contrast(1.05); }
.featured-grid img { filter: contrast(1.02) saturate(0.95); }
.featured-grid > a::after {
  background: linear-gradient(180deg, transparent 45%, oklch(0.16 0.005 80 / 0.92));
}
.featured-grid__tag {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: oklch(0.85 0.04 60);
}
.featured-grid h4 {
  font-size: clamp(15px, 1vw + 6px, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* PRODUCT CARD — paper, no card chrome bling */
.product-card {
  border-radius: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.product-card:hover {
  border-color: var(--c-text);
  transform: none;
  box-shadow: 0 1px 0 var(--c-text);
}
.product-card__media { background: var(--c-surface-sunk); }
.product-card__name { font-weight: 700; letter-spacing: -0.01em; }
.product-card__params span {
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: 2px 7px;
  font-family: var(--ff-num);
  font-variant-numeric: tabular-nums;
  color: var(--c-text-mid);
}

/* NEWS — editorial article list with rule lines */
.news-feature {
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 36px;
  gap: 40px;
}
.news-feature__media { border-radius: 0; aspect-ratio: 5/3; }
.news-feature__body h3 {
  font-size: clamp(22px, 1.6vw + 10px, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.news-feature__meta { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.news-feature .btn--ghost {
  border: 0;
  border-bottom: 1px solid var(--c-text);
  border-radius: 0;
  padding: 0 0 4px;
  height: auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--c-text);
}
.news-feature .btn--ghost:hover { color: var(--c-copper); border-color: var(--c-copper); background: transparent; }

.news-grid { gap: 32px 24px; }
.news-item__media { border-radius: 0; aspect-ratio: 5/3; }
.news-item h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.news-item__date {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}

.news-list-row { padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.news-list-row__media { border-radius: 0; aspect-ratio: 5/3; }
.news-list-row__body h3 {
  font-size: clamp(18px, 0.6vw + 14px, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* PAGINATION — quieter */
.pagination a, .pagination span {
  border-radius: 0;
  border-color: var(--c-line);
}
/* ENCYCLOPEDIA SIDEBAR */
.enc-sidebar {
  border-radius: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.enc-sidebar__title {
  background: var(--c-text);
  color: var(--c-bg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
}
.enc-sidebar__letter { color: var(--c-copper); }
.enc-sidebar__group a:hover {
  background: var(--c-surface-alt);
  color: var(--c-copper);
  border-left-color: var(--c-copper);
}
.enc-sidebar__group a.is-active {
  background: var(--c-surface-alt);
  color: var(--c-copper);
  border-left-color: var(--c-copper);
}
.enc-intro {
  border-radius: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.enc-intro h1 {
  font-size: clamp(28px, 2vw + 12px, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.enc-intro p::first-letter {
  font-family: "Newsreader", "Source Han Serif SC", Georgia, serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 4px 8px 0 0;
  color: var(--c-copper);
  font-weight: 700;
}

/* PRODUCT DETAIL */
.pd-gallery, .pd-summary, .pd-content, .pd-related, .pd-tags {
  border-radius: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: none;
}
.pd-gallery__main { border-radius: 0; }
.pd-summary__title {
  font-size: clamp(22px, 1.6vw + 10px, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.pd-iconnect { border-radius: 0; background: var(--c-copper-soft); border-color: oklch(0.85 0.07 60); color: var(--c-text); }
.pd-iconnect strong { color: var(--c-copper); }

.btn { border-radius: 0; letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase; font-size: 11px; }
.btn--lg { letter-spacing: 0.06em; }
.btn--primary { background: var(--c-text); color: var(--c-bg); }
.btn--primary:hover { background: var(--c-copper); color: var(--c-bg); }
.btn--accent { background: var(--c-copper); color: var(--c-bg); }
.btn--accent:hover { background: oklch(0.45 0.13 42); color: var(--c-bg); }
.btn--ghost { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn--ghost:hover { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

.pd-section__head {
  border-bottom-color: var(--c-text);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.pd-spec-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-soft);
}
.pd-spec-table td { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.pd-tags__list a { border-radius: 0; }
.pd-tags__list a:hover { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }

/* ARTICLE — magazine treatment */
.article {
  border-radius: 0;
  border: 0;
  border-top: 4px solid var(--c-text);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  padding: clamp(36px, 4vw, 64px) clamp(24px, 4vw, 64px);
}
.article__title {
  font-size: clamp(28px, 3vw + 12px, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.article__meta { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.article__lead-image { border-radius: 0; }
.article__body p:first-of-type::first-letter {
  font-family: "Newsreader", "Source Han Serif SC", Georgia, serif;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 6px 10px -4px 0;
  color: var(--c-copper);
  font-weight: 700;
}
.article__body h3 {
  border-left: 0;
  padding-left: 0;
  border-top: 1px solid var(--c-text);
  padding-top: 22px;
  margin-top: 36px;
  font-size: clamp(18px, 0.8vw + 12px, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ABOUT */
.about-layout h1 {
  font-size: clamp(32px, 2.6vw + 12px, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.about-layout h2 { color: var(--c-copper); font-weight: 700; }

/* BREADCRUMB */
.breadcrumb {
  background: transparent;
  border: 0;
  padding: 16px 0 4px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* FOOTER — quieter */
.site-footer { padding: 56px 0 24px; }
.site-footer__cols { gap: 56px; }
.site-footer__col h4 {
  letter-spacing: 0.18em;
  font-size: 10px;
  color: oklch(0.7 0.005 80);
}
.footer-social a { background: oklch(0.24 0.005 80); }
.footer-social a:hover { background: var(--c-copper); }

/* REAL IMAGE GLOBAL — replace placeholders, set treatments */
.placeholder {
  background: var(--c-surface-sunk);
}
.placeholder::before, .placeholder::after { display: none; }
img { filter: contrast(1.02); }

/* Large viewport: hero spans 2 cols differently */
@media (min-width: 1200px) {
  .hero h1 { max-width: 14ch; }
}

/* Mobile editorial */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 5/4; max-width: 100%; }
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured-grid > a { aspect-ratio: 4/3; }
  .featured-grid > a:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16/9; }
  .featured-grid > a:nth-child(4) { grid-column: span 1; }
}

/* Reduced motion respected (already in core, restate explicitly) */
.js .reveal { transform: translateY(12px); }
.js .reveal-stagger > * { transform: translateY(8px); }

/* ============================================================
   MOBILE NAV TOGGLE & RESPONSIVE HEADER
   Build script adds <button class="nav-toggle"> + data-nav attrs.
   Below 880px: hide nav-primary, show toggle, search-bar drops.
   ============================================================ */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.nav-toggle:hover { background: var(--c-surface-alt); }
.nav-toggle svg { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  .nav-primary {
    display: flex;
    position: absolute;
    top: var(--h-header);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    border-top: 1px solid var(--c-line);
    padding: 0;
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    transition: transform var(--t-base) var(--ease-out),
                opacity var(--t-base) var(--ease-out),
                visibility var(--t-base) var(--ease-out);
    z-index: 49;
    box-shadow: 0 12px 24px -16px oklch(0.18 0.008 80 / 0.15);
  }
  .nav-primary a {
    height: 56px;
    padding: 0 24px;
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-md);
    width: 100%;
  }
  .nav-primary a:last-child { border-bottom: 0; }
  .nav-primary a.is-active::after { display: none; }
  .nav-primary a.is-active {
    background: var(--c-surface-alt);
    color: var(--c-copper);
    border-left: 3px solid var(--c-copper);
    padding-left: 21px;
  }
  .site-header[data-menu="open"] .nav-primary {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  .site-header[data-menu="open"] .nav-toggle {
    background: var(--c-text);
    color: var(--c-bg);
    border-color: var(--c-text);
  }
}

/* Footer language picker — pure inline-link style (100% browser compat) */
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--c-footer-soft);
}
.footer-lang__icon { color: var(--c-footer-soft); flex-shrink: 0; }
.footer-lang__link {
  color: var(--c-footer-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.footer-lang__link:hover { color: #fff; }
.footer-lang__link.is-active { color: #fff; font-weight: 600; }
.footer-lang__sep { color: oklch(0.4 0.005 220); user-select: none; }

@media (max-width: 640px) {
  :root { --h-header: 56px; }
  .brand__tag { display: none; }
  .brand__name { font-size: var(--fs-md); }
  .lang-switch a { padding: 0 8px; font-size: 11px; }
  .nav-toggle { width: 36px; height: 36px; }
  .container { padding: 0 16px; }
  /* Hero: single column, smaller margins */
  .hero { padding: 32px 0 40px; }
  .hero__inner { gap: 28px; }
  .hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .hero__lead { font-size: var(--fs-sm); }
  .hero__search { height: 48px; max-width: 100%; }
  .hero__search input { font-size: var(--fs-sm); }
  .hero__search button { padding: 0 18px; font-size: 11px; }
  .hero__visual { aspect-ratio: 4/5; }
  .dateline {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
  }
  /* Footer: single column, full bleed */
  .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { grid-template-columns: 1fr; row-gap: 10px; }
  .site-footer__bottom > .site-footer__copy { grid-row: 1; }
  .site-footer__bottom > .footer-lang { grid-column: 1; grid-row: 2; justify-self: start; }
  .site-footer__bottom > .site-footer__legal { grid-row: 3; }
  .site-footer__legal { flex-wrap: wrap; gap: 8px 14px; }
}

/* ============================================================
 * QA Responsive Fixes (A0-0 / A1-0)
 * Touch targets >=44px on small viewports + table overflow
 * ============================================================ */
@media (max-width: 640px) {
  /* Primary nav links */
  .nav-primary a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
  }
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  .lang-switch a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
  }

  /* Category / encyclopedia cards (already large but enforce min) */
  .cat-card,
  .cat-bigcat,
  .enc-bigcat,
  .enc-leaf {
    min-height: 44px;
  }

  /* A-Z index columns */
  .az-index__col a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  /* Footer link clusters */
  .footer-links a,
  .site-footer__col a,
  .site-footer__legal a,
  .footer-lang a,
  .footer-lang__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }

  /* Breadcrumb */
  .breadcrumb a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
  }

  /* Buttons */
  .btn,
  .btn--ghost,
  .btn--primary,
  .btn--accent {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* About team links */
  .about-team__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }

  /* Related cats list */
  .related-cats__list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
  }

  /* Disclosure summaries */
  .pd-faq__item summary,
  .enc-guide summary,
  details summary {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Cards already large; enforce floor */
  .product-card,
  .news-item,
  .related-product {
    min-height: 44px;
  }

  /* Form controls */
  input,
  select,
  button,
  textarea {
    min-height: 44px;
  }
}

/* Spec / power tables: horizontal scroll on small screens */
@media (max-width: 768px) {
  .pd-content,
  .powerpage__chapter {
    overflow-x: hidden;
  }
  .pd-spec-table-wrap,
  .powerpage__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .pd-spec-table,
  .powerpage__table {
    min-width: 480px;
    font-size: 12px;
  }
  .pd-spec-table th,
  .pd-spec-table td {
    padding: 8px 10px 8px 0;
  }
}

/* A-Z index hairline tap comfort on phones */
@media (max-width: 480px) {
  .az-index__col {
    line-height: 1.7;
  }
  .az-index__col a {
    padding: 6px 0;
  }
}

/* v=20260429j */

/* Defensive: hide nav-primary when menu closed */
@media (max-width: 1024px) {
  .site-header[data-menu="closed"] .nav-primary,
  .site-header:not([data-menu]) .nav-primary {
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* ============================================================
   FIXED BOTTOM ASK BAR — Perplexity-style follow-up input
   Used on encyclopedia, news, article, product pages.
   ============================================================ */
.ask-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: 10px 0;
  box-shadow: 0 -2px 12px oklch(0.18 0.008 80 / 0.06);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
}
.ask-bar.is-visible { transform: translateY(0); }
.ask-bar__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ask-bar__label {
  font-size: var(--fs-sm, 13px);
  font-weight: var(--fw-semi, 600);
  color: var(--c-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.ask-bar__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: var(--fs-base, 14px);
  font-family: inherit;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-bg, #faf8f1);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.15s;
}
.ask-bar__input:focus { border-color: var(--c-primary, #0e5560); }
.ask-bar__input::placeholder { color: var(--c-text-light, #a9a7a4); }
.ask-bar__btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--c-primary, #0e5560);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ask-bar__btn:hover { background: var(--c-primary-hover, #084752); }
.ask-bar__btn svg { width: 18px; height: 18px; }

.ask-bar__response {
  display: none;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 10px 20px 0;
}
.ask-bar__response.is-active {
  display: block;
}
.ask-bar__response-text {
  font-size: var(--fs-sm, 13px);
  line-height: 1.6;
  color: var(--c-text-mid, #5b5957);
  max-height: 200px;
  overflow-y: auto;
}
.ask-bar__response-text p { margin: 0 0 6px; }
.ask-bar__response-text p:last-child { margin-bottom: 0; }
.ask-bar__response-text ul { margin: 4px 0 8px 18px; padding: 0; }
.ask-bar__response-text li { margin-bottom: 2px; }
.ask-bar__response-text strong { color: var(--c-text, #2c2a28); font-weight: 600; }
.ask-bar__response-text code { background: rgba(0,0,0,.05); padding: 1px 4px; border-radius: 3px; font-size: 12px; }
.ask-bar__response-text .ask-ref { font-size: 10px; color: var(--c-primary, #0e5560); vertical-align: super; margin: 0 1px; }
.ask-bar__close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-light, #a9a7a4);
  font-size: 18px;
  line-height: 1;
}

body.has-ask-bar { padding-bottom: 62px; }

.ask-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 8px 20px 0;
}
.ask-bar__pill {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface-alt, #f5f3ea);
  color: var(--c-text-mid);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.ask-bar__pill:hover {
  border-color: var(--c-primary, #0e5560);
  background: var(--c-primary-soft, #f3f6f0);
  color: var(--c-primary);
}

.ask-bar__progress {
  display: none;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 8px 20px 0;
  font-size: 12px;
  color: var(--c-text-soft);
}
.ask-bar__progress.is-active { display: flex; align-items: center; gap: 8px; }
.ask-bar__progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: ask-pulse 1s infinite;
}
@keyframes ask-pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

.ask-bar__sources {
  display: none;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 6px 20px 0;
  font-size: 11px;
  color: var(--c-text-soft);
}
.ask-bar__sources.is-active { display: block; }
.ask-bar__sources a {
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ask-bar__sources a:hover { border-bottom-color: var(--c-primary); }

@media (max-width: 560px) {
  .ask-bar__label { display: none; }
  .ask-bar__inner { padding: 0 12px; }
  .ask-bar__pills { padding: 6px 12px 0; flex-wrap: wrap; }
  .ask-bar__pill { font-size: 11px; padding: 4px 10px; }
}

/* ============================================================
   POWERPAGE — Encyclopedia sub-page (pressure-sensor etc.)
   Moved from inline <style> to shared stylesheet.
   ============================================================ */
.powerpage {
  margin: 32px 0;
  border-top: 1px solid oklch(0.88 0.025 195 / 0.18);
  border-bottom: 1px solid oklch(0.88 0.025 195 / 0.18);
  padding: 32px 0;
  background: rgba(255,253,247,.4);
  display: grid;
  grid-template-columns: 1fr 220px;
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
}
.powerpage__lede {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-mid);
  max-width: 68ch;
  margin: 0 0 24px;
  grid-column: 1 / -1;
}
.powerpage__toc {
  grid-column: 2;
  grid-row: 2 / 100;
  position: sticky;
  top: 96px;
  align-self: start;
  width: auto;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  font-size: 13px;
  line-height: 1.6;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.powerpage__toc.is-hidden {
  opacity: 0;
  transform: translateX(20px);
  visibility: hidden;
  pointer-events: none;
}
.powerpage__chapter,
.powerpage__faq,
.featured-mfr,
.related-cats,
.enc-rfq { grid-column: 1; }
.powerpage__faq,
.featured-mfr,
.related-cats,
.enc-rfq { grid-column: 1 / -1; }
.powerpage__toc h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 700;
}
.powerpage__toc ol { margin: 0; padding: 0 0 0 20px; font-variant-numeric: tabular-nums; }
.powerpage__toc li { margin: 0 0 6px; }
.powerpage__toc a {
  color: var(--c-text-mid);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -10px;
  display: inline-block;
  transition: color .15s, border-color .15s, font-weight .15s;
}
.powerpage__toc a:hover { color: var(--c-primary); }
.powerpage__toc a.is-active {
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  font-weight: 600;
}
.powerpage__chapter { margin: 0 0 36px; clear: none; }
.powerpage__chapter h2 {
  font-size: var(--fs-xl);
  line-height: 1.3;
  color: var(--c-primary);
  font-weight: 700;
  margin: 0 0 6px;
  scroll-margin-top: 80px;
  padding-top: 8px;
  border-top: 1px solid oklch(0.88 0.025 195 / 0.12);
}
.powerpage__eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.powerpage__chapter p { font-size: 14.5px; line-height: 1.78; color: var(--c-text); margin: 0 0 14px; }
.powerpage__chapter ul,
.powerpage__chapter ol { font-size: 14.5px; line-height: 1.78; color: var(--c-text); margin: 0 0 14px; padding-left: 22px; }
.powerpage__chapter li { margin-bottom: 6px; }
.powerpage__chapter figure { margin: 18px 0; border: 1px solid var(--c-line); background: var(--c-surface); padding: 8px; }
.powerpage__chapter figure img { width: 100%; height: auto; display: block; filter: contrast(1.02) saturate(.92); }
.powerpage__chapter figcaption { font-size: 12.5px; color: var(--c-text-soft); padding: 8px 4px 4px; border-top: 1px solid var(--c-line); margin-top: 8px; font-style: italic; }
.powerpage__table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.powerpage__table th,
.powerpage__table td { border-bottom: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.powerpage__table th { background: var(--c-surface-alt); font-weight: 700; color: var(--c-primary); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.powerpage__table tr:hover td { background: oklch(0.96 0.04 60 / 0.3); }
.powerpage__faq { margin: 24px 0 0; }
.powerpage__faq h2 { font-size: var(--fs-xl); color: var(--c-primary); font-weight: 700; margin: 0 0 16px; border-top: 1px solid var(--c-line); padding-top: 24px; }
.powerpage__faq details { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.powerpage__faq details[open] { background: rgba(255,253,247,.6); }
.powerpage__faq summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  padding: 4px 32px 4px 0;
  position: relative;
  transition: color .15s;
}
.powerpage__faq summary:hover { color: var(--c-primary-hover, #084752); }
.powerpage__faq summary::-webkit-details-marker { display: none; }
.powerpage__faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--c-text-soft);
  border-bottom: 1.5px solid var(--c-text-soft);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease, border-color .15s;
}
.powerpage__faq summary:hover::after { border-color: var(--c-primary); }
.powerpage__faq details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
  border-color: var(--c-primary);
}
.powerpage__faq details p { font-size: 14px; line-height: 1.75; color: var(--c-text-mid); margin: 10px 0 4px; max-width: 68ch; }

.featured-mfr { margin: 32px auto; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.featured-mfr h2 { font-size: 18px; color: var(--c-primary); font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.featured-mfr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.featured-mfr__card { display: block; padding: 14px 16px; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: inherit; transition: border-color .15s; }
.featured-mfr__card:hover { border-color: var(--c-accent); }
.featured-mfr__name { font-size: 15px; font-weight: 700; color: var(--c-primary); margin: 0 0 4px; }
.featured-mfr__meta { font-size: 12px; color: var(--c-text-soft); font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.featured-mfr__pitch { font-size: 13px; color: var(--c-text-mid); line-height: 1.55; margin: 0; }
.badge--featured { display: inline-block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); border: 1px solid oklch(0.68 0.18 50 / 0.5); padding: 2px 6px; font-weight: 700; background: oklch(0.68 0.18 50 / 0.06); }

.related-cats { margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--c-line); }
.related-cats h2 { font-size: 15px; color: var(--c-primary); font-weight: 700; margin: 0 0 10px; letter-spacing: .04em; }
.related-cats__list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-cats__list a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--c-line); color: var(--c-primary); text-decoration: none; background: var(--c-surface); transition: background .15s; }
.related-cats__list a:hover { background: var(--c-primary-soft); border-color: var(--c-primary); }

.leading-mfr { margin: 0 0 28px; padding: 18px 0; border-top: 2px solid var(--c-line-strong); border-bottom: 1px solid var(--c-line); }
.leading-mfr__head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.leading-mfr__head h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); font-weight: 700; margin: 0; }
.leading-mfr__head .leading-mfr__sub { font-size: 13px; color: var(--c-text-soft); margin: 0; }
.leading-mfr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.leading-mfr__card { display: block; padding: 14px 16px; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.leading-mfr__card:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.leading-mfr__name { font-size: 15px; font-weight: 700; color: var(--c-primary); margin: 0 0 4px; }
.leading-mfr__meta { font-size: 12px; color: var(--c-text-soft); font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.leading-mfr__pitch { font-size: 13px; color: var(--c-text-mid); line-height: 1.55; margin: 0; }

.enc-rfq { margin: 36px 0; padding: 22px 26px; background: linear-gradient(0deg, oklch(0.96 0.04 60 / 0.3), oklch(0.96 0.04 60 / 0.1)); border: 1px solid oklch(0.68 0.18 50 / 0.35); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.enc-rfq__body { flex: 1 1 320px; min-width: 240px; }
.enc-rfq__title { font-size: 17px; font-weight: 700; color: var(--c-primary); margin: 0 0 4px; letter-spacing: -0.01em; }
.enc-rfq__lead { font-size: 13.5px; color: var(--c-text-mid); margin: 0; line-height: 1.6; }
.enc-rfq__steps { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--c-text-soft); }
.enc-rfq__steps li { font-variant-numeric: tabular-nums; }
.enc-rfq__cta { flex: 0 0 auto; background: var(--c-accent); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 22px; text-decoration: none; border: 1px solid var(--c-accent); transition: background .15s; }
.enc-rfq__cta:hover { background: oklch(0.58 0.18 50); }

.enc-sidebar__mfr { margin-top: 24px; padding: 18px 16px 0; border-top: 1px solid var(--c-line); overflow: hidden; }
.enc-sidebar__mfr h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); font-weight: 700; margin: 0 0 10px; }
.enc-sidebar__mfr-search { width: 100%; padding: 8px 10px; border: 1px solid var(--c-line); background: #fff; font-size: 12px; margin-bottom: 10px; font-family: inherit; box-sizing: border-box; }
.enc-sidebar__mfr-list { display: flex; flex-direction: column; gap: 0; font-size: 12.5px; line-height: 1.6; max-height: 320px; overflow-y: auto; overflow-x: hidden; }
.enc-sidebar__mfr-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--c-text-mid); overflow: hidden; }
.enc-sidebar__mfr-row input { accent-color: var(--c-primary); }
.enc-sidebar__mfr-letter { font-size: 10px; color: var(--c-primary); font-weight: 700; letter-spacing: .08em; margin-top: 8px; border-bottom: 1px solid var(--c-line); padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.enc-sidebar__mfr-count { margin-left: auto; color: var(--c-text-faint); font-variant-numeric: tabular-nums; font-size: 11px; }

.enc-leaf-seo { margin: 48px 0 12px; padding: 24px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-size: 13.5px; color: var(--c-text-soft); line-height: 1.78; }
.enc-leaf-seo strong { color: var(--c-primary); font-weight: 600; }

/* --- Leaf page intro (encyclopedia sub-pages) --- */
.leaf-intro { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; margin: 24px 0 32px; }
.leaf-intro__media img { width: 100%; height: auto; display: block; border: 1px solid var(--c-line); }
.leaf-intro h1 { font-size: 34px; line-height: 1.15; color: var(--c-primary); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.leaf-intro p { font-size: 15px; line-height: 1.75; color: var(--c-text-mid); margin: 0 0 12px; max-width: 64ch; }

.leaf-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.leaf-table th,
.leaf-table td { border-bottom: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.leaf-table th { background: var(--c-surface-alt); font-weight: 700; color: var(--c-primary); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* --- Leaf "coming soon" placeholder pages --- */
.leaf-soon { padding: 60px 0 80px; }
.leaf-soon__head { margin-bottom: 32px; }
.leaf-soon__head h1 { font-size: clamp(28px, 2.4vw + 12px, 44px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; }
.leaf-soon__head p { max-width: 64ch; color: var(--c-text-mid); font-size: var(--fs-md); line-height: 1.75; margin: 0; }
.leaf-soon__banner { margin: 36px 0; padding: 28px 32px; border: 1px solid var(--c-accent); background: oklch(0.96 0.025 60); border-left: 4px solid var(--c-accent); }
.leaf-soon__banner h2 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin: 0 0 10px; }
.leaf-soon__banner p { font-size: var(--fs-md); color: var(--c-text); margin: 0 0 12px; line-height: 1.7; }
.leaf-soon__banner a { display: inline-block; padding: 10px 18px; background: var(--c-text); color: var(--c-bg); text-decoration: none; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.leaf-soon__banner a:hover { background: var(--c-accent); }
.leaf-soon__seo { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.75; }

.enc-intro { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 20px; margin-bottom: 8px; }
.enc-intro__media img { width: 100%; height: auto; display: block; }
.enc-intro h1 { font-size: clamp(24px, 2vw + 12px, 36px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 12px; }
.enc-intro p { font-size: 14.5px; line-height: 1.75; color: var(--c-text-mid); }

@media (max-width: 1200px) {
  .powerpage { grid-template-columns: 1fr; }
  .powerpage__toc { grid-column: 1; grid-row: auto; position: static; width: auto; margin: 0 0 24px; order: 0; }
  .powerpage__chapter,
  .powerpage__faq,
  .featured-mfr,
  .related-cats,
  .enc-rfq { grid-column: 1; }
}
@media (max-width: 1024px) {
  .enc-intro { grid-template-columns: 1fr; }
  .leaf-intro { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .powerpage__chapter h2 { font-size: 19px; }
  .enc-intro { grid-template-columns: 1fr; }
  .enc-intro__media { max-width: 360px; }
  .leaf-intro { grid-template-columns: 1fr; }
}

/* ============================================================
   HOMEPAGE — SF Hero, Featured Manufacturers, RFQ Banner,
   Alphabetical Index, Industry Resources
   (migrated from index.html / en/index.html inline <style>)
   ============================================================ */

/* === SF Hero (SpecForge search-first hero) === */
.sf-hero {
  padding: 80px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.sf-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.sf-hero__brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin: 0 0 20px;
}
.sf-hero__title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}
.sf-hero__search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto 24px;
  border: 2px solid var(--c-primary);
  border-radius: 0;
  background: var(--c-surface);
  transition: border-color .2s, box-shadow .2s;
}
.sf-hero__search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px oklch(0.36 0.05 195 / 0.1);
}
.sf-hero__search-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--c-text-faint);
  pointer-events: none;
}
.sf-hero__search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 16px 16px 44px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  min-height: 54px;
}
.sf-hero__search input::placeholder {
  color: var(--c-text-faint);
  font-size: 14px;
}
.sf-hero__submit {
  flex-shrink: 0;
  padding: 0 24px;
  min-height: 54px;
  border: none;
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.sf-hero__submit:hover { background: var(--c-primary-hover); }
.sf-hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sf-hero__actions .btn {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.sf-hero__actions .btn--primary {
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
}
.sf-hero__actions .btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-text);
}
.sf-hero__actions .btn--ghost:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.sf-hero__examples {
  font-size: 13px;
  color: var(--c-text-mid);
  line-height: 1.8;
}
.sf-hero__examples-label {
  font-weight: 600;
  color: var(--c-text);
  margin-right: 4px;
}
.sf-hero__examples a {
  color: var(--c-text-mid);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-line);
  transition: color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.sf-hero__examples a:hover {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
.sf-hero__dot {
  margin: 0 6px;
  color: var(--c-text-faint);
}

/* === Homepage Featured Manufacturers === */
.sf-hero ~ .featured-mfr { padding: 56px 24px 24px; }
.sf-hero ~ .featured-mfr .featured-mfr__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.featured-mfr__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-copper);
  border: 1px solid var(--c-copper);
  padding: 3px 8px;
  line-height: 1;
}
.featured-mfr__logo {
  width: 48px;
  height: 48px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.featured-mfr__specialty {
  font-size: 13px;
  color: var(--c-text-mid);
  margin: 0 0 12px;
}
.featured-mfr__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
}

/* === RFQ Banner === */
.rfq-banner {
  background: var(--c-copper);
  padding: 48px 24px;
  text-align: center;
}
.rfq-banner__inner {
  max-width: 680px;
  margin: 0 auto;
}
.rfq-banner__text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.4;
}
.rfq-banner__cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  min-height: 48px;
  background: #fff;
  color: var(--c-copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background .15s, color .15s;
}
.rfq-banner__cta:hover {
  background: var(--c-primary);
  color: #fff;
}

/* === Alphabetical Index === */
.az-index { padding: 56px 24px 24px; }
.az-index__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
  margin-top: 28px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.az-index__col h3 {
  font-family: var(--ff-num);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--c-copper);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 700;
}
.az-index__col h3 span { color: var(--c-text-faint); margin: 0 4px; font-weight: 400; }
.az-index__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.az-index__col li { margin: 0; }
.az-index__col a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  color: var(--c-text-mid);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color .15s, border-color .15s;
}
.az-index__col a span {
  font-family: var(--ff-num);
  font-size: 10px;
  color: var(--c-text-faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.az-index__col a:hover {
  color: var(--c-text);
  border-bottom-color: var(--c-copper);
}
.az-index__col a:hover span { color: var(--c-copper); }

/* === Industry Resources === */
.industry-resources { padding: 24px 24px 60px; }
.industry-resources__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.industry-resources__col {
  padding: 0 28px;
  border-right: 1px solid var(--c-line);
}
.industry-resources__col:first-child { padding-left: 0; }
.industry-resources__col:last-child { border-right: 0; padding-right: 0; }
.industry-resources__col h3 {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 600;
}
.industry-resources__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.9;
}
.industry-resources__col a {
  color: var(--c-text-mid);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.industry-resources__col a:hover {
  color: var(--c-text);
  border-bottom-color: var(--c-accent);
}

/* ============================================================
   ARTICLE PAGE — TOC, Author card, Share, RFQ, Progress bar
   (migrated from article.html / en/article.html inline <style>)
   ============================================================ */

/* Reading progress bar */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--c-copper);
  width: 0; z-index: 100;
  transition: width 0.1s linear;
}

/* Editorial tag */
.article__editorial-tag {
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-copper);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}
.article__editorial-tag-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--c-copper);
  margin: 8px auto 0;
}

/* "What you'll learn" preview */
.article__preview {
  max-width: 62ch;
  margin: 24px auto 28px;
  padding: 20px 24px;
  background: var(--c-primary-soft);
  border-left: 3px solid var(--c-copper);
  border-radius: 4px;
}
.article__preview-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.article__preview ul {
  margin: 0; padding: 0 0 0 18px;
  color: var(--c-text-mid);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.article__preview li { margin-bottom: 4px; }

/* Author card */
.article__author { margin: 40px auto 24px; max-width: 62ch; }
.author-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-bg);
}
.author-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  flex: 0 0 64px;
}
.author-card__name {
  font-size: var(--fs-md); font-weight: 700;
  color: var(--c-text); margin-bottom: 4px;
}
.author-card__bio {
  font-size: var(--fs-sm); color: var(--c-text-mid);
  line-height: 1.6; margin-bottom: 8px;
}
.author-card__social { display: flex; gap: 10px; }
.author-card__social a {
  width: 28px; height: 28px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-soft);
  transition: all 0.15s;
}
.author-card__social a:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* Floating TOC (desktop right) */
.article-toc {
  position: fixed;
  top: 100px;
  right: 24px;
  width: 220px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 16px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: var(--fs-xs);
  z-index: 30;
  display: none;
}
.article-toc__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-copper);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}
.article-toc ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc;
}
.article-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--c-copper);
  font-weight: 700;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.article-toc a {
  color: var(--c-text-mid);
  text-decoration: none;
}
.article-toc a:hover,
.article-toc a.is-active {
  color: var(--c-primary);
}

/* Mobile TOC collapsed dropdown */
.article-toc-mobile {
  display: block;
  margin: 16px auto 24px;
  max-width: 62ch;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  overflow: hidden;
}
.article-toc-mobile summary {
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  background: var(--c-primary-soft);
  list-style: none;
}
.article-toc-mobile summary::-webkit-details-marker { display: none; }
.article-toc-mobile summary::after {
  content: " \25BC";
  color: var(--c-copper);
  font-size: var(--fs-xs);
}
.article-toc-mobile[open] summary::after { content: " \25B2"; }
.article-toc-mobile ol {
  margin: 0; padding: 12px 16px 12px 36px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  list-style: decimal-leading-zero;
}
.article-toc-mobile a { color: var(--c-text-mid); }
.article-toc-mobile a:hover { color: var(--c-primary); }

/* Sticky RFQ button — mobile top bar */
.rfq-sticky-mobile {
  position: sticky;
  top: 0;
  z-index: 90;
  display: block;
  background: var(--c-copper);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rfq-sticky-mobile:hover { color: #fff; background: oklch(0.45 0.13 42); }
.rfq-sticky-mobile .rfq-arrow { display: inline-block; margin-left: 6px; }

/* Sticky RFQ — desktop floating bottom-right */
.rfq-sticky-desktop {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 95;
  display: none;
  align-items: center; gap: 8px;
  background: var(--c-copper);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 20px oklch(0.52 0.13 42 / 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rfq-sticky-desktop:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px oklch(0.52 0.13 42 / 0.45);
}

/* Floating share strip (desktop left) */
.share-strip {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.share-strip a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.share-strip a:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateX(2px);
}

/* Inline share row (mobile/tablet, end of article) */
.share-row {
  display: flex; gap: 12px; justify-content: center;
  margin: 28px auto;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  max-width: 62ch;
}
.share-row__label {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  align-self: center;
  margin-right: 4px;
}
.share-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  color: var(--c-text-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.share-row a:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* Manufacturer contact anchor block */
.article__contact-mfr {
  max-width: 62ch;
  margin: 32px auto;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-surface) 100%);
  border: 1px solid var(--c-primary-line, var(--c-line));
  border-left: 4px solid var(--c-copper);
  border-radius: 6px;
  text-align: center;
}
.article__contact-mfr h3 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
  color: var(--c-text);
}
.article__contact-mfr p {
  margin: 0 0 16px;
  color: var(--c-text-mid);
  font-size: var(--fs-sm);
}
.article__contact-mfr .btn-rfq {
  display: inline-block;
  background: var(--c-copper);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.article__contact-mfr .btn-rfq:hover { color: #fff; background: oklch(0.45 0.13 42); }

/* H3 anchor offset for sticky header */
.article__body h3[id] {
  scroll-margin-top: 90px;
}

/* ============================================================
   ABOUT PAGE — sections, story, timeline, team, partners, press,
   careers, contact grid
   (migrated from about.html / en/about.html inline <style>)
   ============================================================ */
.about-section { padding: 64px 0; border-top: 1px solid var(--c-line); }
.about-section__head { margin-bottom: 36px; }
.about-section__eyebrow { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.about-section__title { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.about-section__lead { max-width: 64ch; color: var(--c-text-mid); font-size: var(--fs-md); line-height: 1.75; margin-top: 14px; }

/* Story — editorial 2-col layout */
.about-story__layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 48px; align-items: start; }
.about-story__body p { max-width: 62ch; font-size: var(--fs-md); line-height: 1.85; margin: 0 0 20px; color: var(--c-text); }
.about-story__body p strong { color: var(--c-text); font-weight: 700; }
.about-story__body em { color: var(--c-copper); font-style: normal; border-bottom: 1px solid var(--c-copper); padding-bottom: 1px; }
.about-story__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.about-story__quote { padding: 24px 0; border-top: 2px solid var(--c-text); border-bottom: 1px solid var(--c-line); }
.about-story__quote::before { content: "\201C"; font-family: "Newsreader","Source Han Serif SC",Georgia,serif; font-size: 48px; line-height: 0.4; color: var(--c-copper); display: block; margin-bottom: 8px; }
.about-story__quote-text { font-size: var(--fs-xl); line-height: 1.5; font-weight: 600; letter-spacing: -0.015em; color: var(--c-text); margin: 0 0 12px; }
.about-story__quote-cite { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--c-text-soft); text-transform: uppercase; }
.about-story__facts { padding: 20px 0; border-top: 1px solid var(--c-line); display: none; }
.about-story__facts h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin: 0 0 16px; }
.about-story__facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.about-story__facts dt { font-size: var(--fs-xs); color: var(--c-text-soft); letter-spacing: 0.04em; margin: 0; }
.about-story__facts dd { margin: 2px 0 0; font-family: var(--ff-num); font-variant-numeric: tabular-nums; font-size: var(--fs-md); font-weight: 700; color: var(--c-text); letter-spacing: -0.01em; }
.about-story__facts dd small { font-family: var(--ff-sans); font-size: var(--fs-xs); font-weight: 400; color: var(--c-text-mid); margin-left: 4px; letter-spacing: 0; }
.about-story__photo { aspect-ratio: 4/3; overflow: hidden; background: var(--c-surface-sunk); }
.about-story__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.04) saturate(0.94); }
.about-story__photo-caption { font-size: 11px; color: var(--c-text-soft); margin-top: 8px; letter-spacing: 0.04em; }

/* Timeline */
.about-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.about-timeline__item { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--c-line); align-items: start; }
.about-timeline__date { font-size: var(--fs-sm); font-weight: 700; color: var(--c-copper); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-transform: uppercase; }
.about-timeline__body h3 { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.about-timeline__body p { font-size: var(--fs-sm); line-height: 1.7; color: var(--c-text-mid); margin: 0; max-width: 60ch; }

/* Team */
.about-team__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.about-team__person { padding: 28px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); transition: background 0.2s var(--ease-out); }
.about-team__person:hover { background: var(--c-surface-alt); }
.about-team__photo { width: 96px; height: 96px; border-radius: 0; overflow: hidden; margin-bottom: 18px; background: var(--c-surface-sunk); }
.about-team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-team__name { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.about-team__name small { display: block; font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--c-text-mid); text-transform: uppercase; margin-top: 3px; }
.about-team__role { font-size: var(--fs-sm); color: var(--c-copper); font-weight: 700; letter-spacing: 0.02em; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.about-team__bio { font-size: var(--fs-sm); line-height: 1.65; color: var(--c-text-mid); margin: 0 0 14px; }
.about-team__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text); text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px solid var(--c-text); padding-bottom: 2px; }
.about-team__link:hover { color: var(--c-copper); border-color: var(--c-copper); }
.about-team__link svg { width: 14px; height: 14px; }

/* Partners */
.about-partners__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.about-partners__cell { padding: 28px 18px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); text-align: center; display: flex; align-items: center; justify-content: center; min-height: 100px; transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out); }
.about-partners__cell:hover { transform: translateY(-2px); background: var(--c-surface-alt); }
.about-partners__name { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text); }
.about-partners__note { margin-top: 18px; font-size: var(--fs-xs); color: var(--c-text-mid); letter-spacing: 0.04em; }

/* Press */
.about-press__list { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.about-press__item { padding: 24px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); display: flex; flex-direction: column; }
.about-press__media { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.about-press__date { font-size: var(--fs-xs); color: var(--c-text-mid); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.about-press__headline { font-size: var(--fs-md); font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; margin: 8px 0 14px; color: var(--c-text); }
.about-press__link { margin-top: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text); text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; }
.about-press__link:hover { color: var(--c-copper); }

/* Careers */
.about-careers__lede { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; margin: 0 0 32px; align-items: start; }
.about-careers__intro { max-width: 64ch; font-size: var(--fs-md); line-height: 1.8; color: var(--c-text); margin: 0 0 16px; }
.about-careers__intro:last-child { margin-bottom: 0; }
.about-careers__sidecard { border: 1px solid var(--c-line); background: var(--c-surface-sunk); padding: 24px 22px; }
.about-careers__sidecard-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin-bottom: 14px; }
.about-careers__sidecard-title { font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.35; }
.about-careers__sidecard-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text-mid); }
.about-careers__sidecard-list li { padding-left: 14px; position: relative; }
.about-careers__sidecard-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1.5px; background: var(--c-copper); }
.about-careers__roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.about-careers__role { padding: 24px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); display: flex; flex-direction: column; }
.about-careers__role-tag { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin-bottom: 10px; }
.about-careers__role-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.about-careers__role-desc { font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.65; margin: 0 0 16px; }
.about-careers__role-apply { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; border-bottom: 1px solid var(--c-text); padding-bottom: 2px; align-self: flex-start; }
.about-careers__role-apply:hover { color: var(--c-copper); border-color: var(--c-copper); }

/* Contact grid (about page) */
.about-contact-grid__eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-copper); font-weight: 700; margin-bottom: 14px; }
.about-contact-grid__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 16px; }
.about-contact-grid__desc { color: var(--c-text-mid); line-height: 1.7; font-size: var(--fs-sm); margin-bottom: 18px; }

/* ============================================================
   PRODUCT PAGE — FAQ accordion, iConnect
   (migrated from product.html / en/product.html inline <style>)
   ============================================================ */
.pd-faq { margin-top: 36px; background: var(--c-surface); border: 1px solid var(--c-line); padding: 28px; }
.pd-faq__list { margin-top: 18px; display: flex; flex-direction: column; gap: 0; }
.pd-faq__item { border-bottom: 1px solid var(--c-line); padding: 16px 0; }
.pd-faq__item:first-child { padding-top: 0; }
.pd-faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.pd-faq__item summary {
  cursor: pointer; list-style: none; font-size: var(--fs-md); font-weight: 600;
  color: var(--c-text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  letter-spacing: -0.01em;
}
.pd-faq__item summary::-webkit-details-marker { display: none; }
.pd-faq__item summary::after {
  content: "+"; color: var(--c-copper); font-size: 20px; font-weight: 400; transition: transform 0.2s var(--ease-out);
}
.pd-faq__item[open] summary::after { transform: rotate(45deg); }
.pd-faq__item summary:hover { color: var(--c-copper); }
.pd-faq__answer {
  margin-top: 12px; color: var(--c-text-mid); line-height: 1.75; font-size: var(--fs-sm);
  max-width: 72ch;
}

/* iConnect manufacturer-direct strip (new version) */
.pd-iconnect__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-primary); color: #fff; flex: 0 0 auto;
}
.pd-iconnect__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--c-primary);
  font-family: var(--ff-num);
}
.pd-iconnect__text { color: var(--c-text-mid); font-size: var(--fs-sm); flex: 1 1 200px; }

/* ============================================================
   NEWS PAGE — sidebar layout, filters, trending, newsletter
   (migrated from news.html / en/news.html inline <style>)
   ============================================================ */
.news-head { padding: 28px 0 18px; border-bottom: 1px solid var(--c-line); margin-bottom: 24px; }
.news-head h1 {
  font-family: var(--ff-display, var(--ff-sans));
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.news-head__lead {
  color: var(--c-text-mid);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}

.filter-pills {
  display: flex;
  gap: 8px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}
.filter-pills__btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-text-mid);
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1.4;
}
.filter-pills__btn:hover {
  color: var(--c-copper);
  border-color: var(--c-copper);
}
.filter-pills__btn.is-active {
  background: var(--c-copper);
  border-color: var(--c-copper);
  color: #fff;
}
.filter-pills__count {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  opacity: .75;
  font-size: 12px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.news-main { min-width: 0; }

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-sidebar__block { padding-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.news-sidebar__block:last-child { border-bottom: 0; padding-bottom: 0; }

.news-sidebar__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0 0 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-sidebar__title-mark { color: var(--c-copper); font-size: 14px; letter-spacing: 0; }

.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: trending;
}
.trending-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--c-line);
  align-items: start;
}
.trending-list li:first-child { border-top: 0; padding-top: 0; }
.trending-list__num {
  font-family: var(--ff-num);
  font-size: 18px;
  color: var(--c-copper);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  font-weight: 500;
}
.trending-list a {
  display: block;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.trending-list a:hover { color: var(--c-copper); }
.trending-list__views {
  font-size: 11px;
  color: var(--c-text-faint);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trending-tags a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text-mid);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.trending-tags a:hover {
  color: var(--c-copper);
  border-color: var(--c-copper);
}

.editor-pick { display: flex; flex-direction: column; gap: 14px; }
.editor-pick__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.editor-pick__thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--c-surface-sunk);
}
.editor-pick__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-pick__title {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0;
  font-weight: 500;
}
.editor-pick__date {
  font-size: 11px;
  color: var(--c-text-mid);
  margin-top: 4px;
}
.editor-pick__item:hover .editor-pick__title { color: var(--c-copper); }

.newsletter-card {
  background: var(--c-surface-alt);
  padding: 18px;
  border: 1px solid var(--c-line);
}
.newsletter-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-mid);
}
.newsletter-form {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--c-text);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-copper);
}
.newsletter-form button {
  appearance: none;
  background: var(--c-copper);
  color: #fff;
  border: 1px solid var(--c-copper);
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--c-text); border-color: var(--c-text); }
.newsletter-card__note {
  font-size: 11px;
  color: var(--c-text-faint);
  letter-spacing: 0.04em;
}

.category-list, .archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-list li, .archive-list li {
  border-top: 1px dashed var(--c-line);
}
.category-list li:first-child, .archive-list li:first-child { border-top: 0; }
.category-list a, .archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
}
.category-list a:hover, .archive-list a:hover { color: var(--c-copper); }
.category-list a span, .archive-list a span {
  color: var(--c-text-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.archive-list__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-copper);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.archive-list__more:hover { text-decoration: underline; }

/* ============================================================
   ENCYCLOPEDIA INDEX PAGE — mega-category landing
   (migrated from encyclopedia.html inline <style>)
   ============================================================ */
.enc-index { padding: 36px 0 60px; }
.enc-index__head { margin-bottom: 28px; }
.enc-index__head h1 { font-size: clamp(28px, 2.4vw + 12px, 44px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 12px; color: var(--c-text); }
.enc-index__head .lede { font-size: var(--fs-md); color: var(--c-text-mid); line-height: 1.7; max-width: 70ch; }
.enc-stats { display: flex; flex-wrap: wrap; gap: 32px; padding: 18px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); margin: 24px 0 36px; font-variant-numeric: tabular-nums; }
.enc-stats__item { font-size: var(--fs-sm); color: var(--c-text-soft); display: flex; flex-direction: column; gap: 2px; }
.enc-stats__num { font-size: 22px; font-weight: 800; color: var(--c-text); letter-spacing: -0.01em; }

/* Big category cards: 5 cols */
.enc-bigcats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.enc-bigcat {
  display: block;
  padding: 22px 18px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.enc-bigcat:hover {
  border-color: var(--c-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px oklch(0.18 0.008 80 / 0.18);
}
.enc-bigcat__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.enc-bigcat__icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--c-line); color: var(--c-text); background: transparent; transition: all .2s var(--ease-out); }
.enc-bigcat:hover .enc-bigcat__icon { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.enc-bigcat__icon svg { width: 18px; height: 18px; }
.enc-bigcat__count { font-family: var(--ff-num); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--c-text-soft); border: 1px solid var(--c-line); padding: 3px 8px; font-weight: 700; }
.enc-bigcat__name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--c-text); margin: 0 0 8px; }
.enc-bigcat__subs { font-size: 12px; color: var(--c-text-soft); line-height: 1.7; min-height: 3.4em; }
.enc-bigcat__subs span:not(:last-child)::after { content: " \00B7 "; color: var(--c-text-faint); }
.enc-bigcat__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-copper); transition: gap .15s var(--ease-out); }
.enc-bigcat:hover .enc-bigcat__more { gap: 8px; }

/* Featured leaves grid: trending sub-categories */
.enc-trending { margin: 60px 0 40px; }
.enc-trending h2 { font-size: clamp(20px, 1.5vw + 8px, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--c-text); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.enc-trending h2 .more { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text); text-decoration: none; }
.enc-trending h2 .more:hover { color: var(--c-copper); }
.enc-trending__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.enc-leaf { display: block; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.enc-leaf:hover { border-color: var(--c-text); transform: translateY(-1px); }
.enc-leaf__name { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); margin: 0 0 4px; }
.enc-leaf__count { font-size: 11px; color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.enc-leaf__meta { font-size: 11px; color: var(--c-copper); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px; }

/* Bottom area: buying guides accordion + sidebar */
.enc-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin: 60px 0 0; align-items: start; }
.enc-guides h2 { font-size: clamp(20px, 1.5vw + 8px, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--c-text); }
.enc-guide { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.enc-guide:first-of-type { padding-top: 0; }
.enc-guide summary { cursor: pointer; list-style: none; font-size: var(--fs-md); font-weight: 700; color: var(--c-text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.enc-guide summary::-webkit-details-marker { display: none; }
.enc-guide summary::after { content: "+"; color: var(--c-copper); font-size: 20px; font-weight: 400; transition: transform .2s; }
.enc-guide[open] summary::after { transform: rotate(45deg); }
.enc-guide__body { font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.7; max-width: 70ch; margin: 12px 0 4px; }
.enc-guide__body p { margin: 0 0 8px; }
.enc-guide__body a { color: var(--c-copper); border-bottom: 1px solid currentColor; }
.enc-guide__more { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-copper); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.enc-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.enc-side__block { background: var(--c-surface); border: 1px solid var(--c-line); padding: 18px 20px; }
.enc-side__title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-copper); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.enc-side__list { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.enc-side__list a { color: var(--c-text); text-decoration: none; line-height: 1.5; display: flex; justify-content: space-between; gap: 12px; }
.enc-side__list a:hover { color: var(--c-copper); }
.enc-side__list a span { color: var(--c-text-soft); font-variant-numeric: tabular-nums; font-size: 11px; flex-shrink: 0; }
.enc-side__cta { font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.6; margin: 0 0 12px; }
.enc-side__btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; background: var(--c-text); color: var(--c-bg); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background .15s; }
.enc-side__btn:hover { background: var(--c-copper); }

/* SEO footer paragraph (encyclopedia) */
.enc-seo { margin: 60px 0 0; padding: 24px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-mid); line-height: 1.75; max-width: 100%; }
.enc-seo strong { color: var(--c-text); font-weight: 600; }

/* ============================================================
   RESPONSIVE — page-specific (migrated from inline styles)
   ============================================================ */

/* SF Hero responsive */
@media (max-width: 560px) {
  .sf-hero { padding: 56px 16px 40px; }
  .sf-hero__search input { font-size: 14px; padding: 14px 14px 14px 40px; min-height: 48px; }
  .sf-hero__submit { padding: 0 16px; min-height: 48px; }
  .sf-hero__actions { gap: 8px; }
  .sf-hero__actions .btn { padding: 10px 14px; font-size: 10px; }
  .sf-hero__examples { font-size: 12px; }
  .brand { min-height: 44px; }
  .sf-hero__examples a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }
}
@media (max-width: 400px) {
  .sf-hero { padding: 48px 12px 32px; }
  .sf-hero__title { font-size: 28px; }
  .sf-hero__search { border-width: 1.5px; }
  .sf-hero__search input { padding: 12px 10px 12px 36px; font-size: 13px; min-height: 44px; }
  .sf-hero__submit { padding: 0 12px; min-height: 44px; font-size: 10px; }
  .sf-hero__actions .btn { padding: 8px 10px; font-size: 9px; }
  .sf-hero__examples { font-size: 11px; }
  .sf-hero__dot { margin: 0 3px; }
}

/* Homepage featured mfr responsive */
@media (max-width: 960px) {
  .sf-hero ~ .featured-mfr .featured-mfr__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sf-hero ~ .featured-mfr .featured-mfr__grid { grid-template-columns: 1fr; }
  .sf-hero ~ .featured-mfr { padding: 40px 16px 16px; }
}

/* RFQ Banner responsive */
@media (max-width: 560px) {
  .rfq-banner { padding: 36px 16px; }
  .rfq-banner__text { font-size: 17px; }
}

/* AZ Index responsive */
@media (max-width: 1024px) {
  .az-index__grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
}
@media (max-width: 768px) {
  .az-index__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding-top: 20px; }
  .az-index__col a { font-size: 12.5px; padding: 3px 0; }
  .az-index__col a span { font-size: 9.5px; }
}
@media (max-width: 400px) {
  .az-index__grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .az-index { padding: 40px 16px 16px; }
}

/* Industry resources responsive */
@media (max-width: 880px) {
  .industry-resources__cols { grid-template-columns: 1fr; }
  .industry-resources__col {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }
  .industry-resources__col:last-child { border-bottom: 0; }
}

/* Article page responsive */
@media (min-width: 1024px) {
  .article-toc { display: block; }
  .article-toc-mobile { display: none; }
  .share-strip { display: flex; }
  .share-row { display: none; }
}
@media (min-width: 640px) {
  .rfq-sticky-mobile { display: none; }
  .rfq-sticky-desktop { display: inline-flex; }
}

/* News page responsive */
@media (min-width: 1024px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .news-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .news-sidebar::-webkit-scrollbar { width: 4px; }
  .news-sidebar::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 2px; }
}
@media (min-width: 1440px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
}
@media (max-width: 640px) {
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills__btn { flex: 0 0 auto; }
  .news-head h1 { font-size: 26px; }
  .news-layout { gap: 40px; }
}

/* Product FAQ responsive */
@media (max-width: 560px) { .pd-faq { padding: 18px; } .pd-faq__item summary { font-size: var(--fs-sm); } }

/* About page responsive */
@media (max-width: 1024px) {
  .about-story__layout { grid-template-columns: 1fr; gap: 36px; }
  .about-story__aside { position: static; }
  .about-careers__lede { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 1199px) {
  .about-team__grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 899px) {
  .about-section { padding: 48px 0; }
  .about-timeline__item { grid-template-columns: 110px 1fr; gap: 20px; }
  .about-team__grid { grid-template-columns: repeat(2,1fr); }
  .about-partners__grid { grid-template-columns: repeat(4,1fr); }
  .about-press__list { grid-template-columns: repeat(2,1fr); }
  .about-careers__roles { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: repeat(2,1fr); }
  .about-contact-grid > div:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .about-timeline__item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .about-timeline__date { font-size: var(--fs-xs); }
  .about-team__grid { grid-template-columns: 1fr; }
  .about-partners__grid { grid-template-columns: repeat(3,1fr); }
  .about-press__list { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .about-contact-grid > div:nth-child(3) { grid-column: auto; }
  .about-section__title { font-size: var(--fs-2xl); }
}
@media (max-width: 480px) {
  .about-partners__grid { grid-template-columns: repeat(2,1fr); max-width: 100%; overflow-x: hidden; }
  .about-partners__cell { padding: 18px 10px; }
  .about-section { padding: 36px 0; }
}
@media (max-width: 400px) {
  .about-careers__lede { grid-template-columns: 1fr; }
  .about-team__grid { grid-template-columns: 1fr; }
}

/* Encyclopedia index responsive */
@media (max-width: 1024px) {
  .enc-bigcats { grid-template-columns: repeat(3, 1fr); }
  .enc-trending__grid { grid-template-columns: repeat(3, 1fr); }
  .enc-bottom { grid-template-columns: 1fr; }
  .enc-side { position: static; }
}
@media (max-width: 768px) {
  .enc-bigcats { grid-template-columns: repeat(2, 1fr); }
  .enc-trending__grid { grid-template-columns: repeat(2, 1fr); }
  .enc-stats { gap: 18px; }
  .enc-stats__num { font-size: 18px; }
}
@media (max-width: 480px) {
  .enc-bigcats { grid-template-columns: 1fr; }
  .enc-trending__grid { grid-template-columns: 1fr; }
}

/* En/index.html AZ index variant (simpler columns) */
@media (max-width: 960px) {
  .az-index__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .az-index__grid { grid-template-columns: 1fr; }
}

/* ── Ask Page (full conversation UI) ── */
.pg-ask { background: var(--c-bg, #faf8f5); }
.ask-layout {
  display: flex;
  height: calc(100vh - 64px);
  position: relative;
}
.ask-history {
  width: 260px;
  flex-shrink: 0;
  background: var(--c-surface-alt, #f3eee5);
  border-right: 1px solid var(--c-line, #e4e0db);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ask-history__header {
  padding: 14px 12px;
  border-bottom: 1px solid var(--c-line, #e4e0db);
}
.ask-history__new {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--c-primary, #0e5560);
  border: 1px solid var(--c-primary, #0e5560);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.ask-history__new:hover { background: var(--c-primary-hover, #084752); }
.ask-history__new svg { flex-shrink: 0; }
.ask-history__list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
}
.ask-history__empty {
  color: var(--c-text-faint, #a9a7a4);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}
.ask-history__item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 2px;
}
.ask-history__item:hover { background: rgba(14, 85, 96, .06); }
.ask-history__item--active { background: rgba(14, 85, 96, .1); }
.ask-history__item-title {
  display: block;
  font-size: 13px;
  color: var(--c-text, #2c2a28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-weight: 500;
}
.ask-history__item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.ask-history__item-date {
  font-size: 11px;
  color: var(--c-text-faint, #a9a7a4);
}
.ask-history__item-del {
  background: none;
  border: none;
  color: var(--c-text-faint, #a9a7a4);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.ask-history__item:hover .ask-history__item-del { opacity: 1; }
.ask-history__item-del:hover { color: #c2632c; }
/* Floating toggle: mobile-only (PC uses inline collapse button in header) */
.ask-history__toggle {
  position: fixed;
  top: 84px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-primary, #0e5560);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  z-index: 100;
}
.ask-history__toggle:hover { background: var(--c-primary-hover, #084752); }
@media (max-width: 768px) {
  .ask-history__toggle { display: flex; }
}

/* Inline collapse button (PC) */
.ask-history__header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ask-history__header .ask-history__new { flex: 1 1 auto; }
.ask-history__collapse {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--c-text-soft, #6b6968);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ask-history__collapse:hover { color: var(--c-primary, #0e5560); background: rgba(14, 85, 96, .06); }
@media (max-width: 768px) { .ask-history__collapse { display: none; } }

/* Inline expand hamburger — sits at the top-left of the main area
   when the sidebar is collapsed (LibreChat / Claude pattern). */
.ask-history-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--c-text-soft, #6b6968);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.ask-history-expand:hover {
  background: rgba(14, 85, 96, .06);
  color: var(--c-primary, #0e5560);
  border-color: rgba(14, 85, 96, .12);
}
@media (max-width: 768px) { .ask-history-expand { display: none !important; } }

/* PC-side collapsed state (mobile uses --open instead) */
@media (min-width: 769px) {
  .ask-history--collapsed {
    width: 0;
    min-width: 0;
    border-right: 0;
    overflow: hidden;
  }
  .ask-layout--collapsed .ask-history-expand { display: flex; }
}

/* Bot message action bar */
.ask-msg__actions {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(14, 85, 96, .08);
}
.ask-msg__action {
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--c-text-light, #888);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.ask-msg__action:hover {
  background: rgba(14, 85, 96, .06);
  color: var(--c-primary, #0e5560);
}
.ask-msg__action--active {
  color: var(--c-primary, #0e5560);
  background: rgba(14, 85, 96, .12);
  font-weight: 600;
}
.ask-msg__action--active svg {
  fill: var(--c-primary, #0e5560);
  stroke: var(--c-primary, #0e5560);
}
.ask-msg__action svg { display: block; }

/* Toast for transient feedback (copy / share / feedback) */
.sf-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-primary, #0e5560);
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(8, 24, 28, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 4000;
}
.sf-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scrollbar — match paper aesthetic (subtle teal on transparent track) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 85, 96, .18) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(14, 85, 96, .18);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 85, 96, .35);
  background-clip: content-box;
  border: 2px solid transparent;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* Language switcher in header (zh ↔ en) */
.header-lang {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
}
.header-lang:hover { background: rgba(14, 85, 96, .06); }

@media (max-width: 560px) {
  .header-lang { display: none; }
}

/* Ask UI polish: tighter spacing + softer AI bubble */
.ask-msg { margin-bottom: 24px; }
.ask-msg--bot .ask-msg__body {
  background: rgba(14, 85, 96, .03);
  border: 1px solid rgba(14, 85, 96, .08);
  border-radius: 12px;
  padding: 14px 18px;
}
.ask-msg--user .ask-msg__bubble {
  border-radius: 14px;
  padding: 10px 16px;
}
.ask-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
.ask-page__thread {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 16px;
}

.ask-page__welcome {
  text-align: center;
  padding: 80px 0 40px;
}
.ask-page__welcome-icon { margin-bottom: 20px; }
.ask-page__welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text, #2c2a28);
  margin: 0 0 8px;
}
.ask-page__welcome-desc {
  font-size: 14px;
  color: var(--c-text-mid, #5b5957);
  margin: 0 0 32px;
}
.ask-page__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ask-page__suggestion {
  background: #fff;
  border: 1px solid var(--c-rule, #e4e0db);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--c-text-mid, #5b5957);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ask-page__suggestion:hover {
  border-color: var(--c-primary, #0e5560);
  color: var(--c-primary, #0e5560);
}

.ask-msg { margin-bottom: 26px; }
.ask-msg--user { display: flex; justify-content: flex-end; }
.ask-msg--user .ask-msg__bubble {
  background: var(--c-primary, #0e5560);
  color: #fff;
  border-radius: 10px 10px 3px 10px;
  padding: 10px 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
}
.ask-msg--user .ask-msg__bubble p { margin: 0; }

.ask-msg--bot { display: flex; gap: 12px; align-items: flex-start; }
.ask-msg__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2px;
}
.ask-msg__body { flex: 1; min-width: 0; }
.ask-msg__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-light, #a9a7a4);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ask-msg__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 10px;
  padding: 4px 9px;
  border: 1px solid var(--c-rule, #e4e0db);
  border-radius: 999px;
  background: #f5f3ea;
  color: var(--c-text-mid, #5b5957);
  font-size: 12px;
  line-height: 1.2;
}
.ask-msg__status--ok {
  border-color: rgba(14,85,96,.22);
  background: rgba(14,85,96,.07);
  color: var(--c-primary, #0e5560);
}
.ask-msg__status--empty {
  border-color: rgba(194,99,44,.24);
  background: rgba(194,99,44,.08);
  color: #7d4425;
}
.ask-msg__content {
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-text, #2c2a28);
}
.ask-msg__content p { margin: 0 0 11px; }
.ask-msg__content p:last-child { margin-bottom: 0; }
.ask-msg__content h2,
.ask-msg__content h3,
.ask-msg__content h4 {
  margin: 18px 0 8px;
  color: var(--c-text, #2c2a28);
  line-height: 1.25;
  letter-spacing: 0;
}
.ask-msg__content h2 {
  font-size: 18px;
  font-weight: 780;
  padding-top: 12px;
  border-top: 1px solid var(--c-rule, #e4e0db);
}
.ask-msg__content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ask-msg__content h3 { font-size: 16px; font-weight: 720; }
.ask-msg__content h4 { font-size: 14px; font-weight: 700; }
.ask-msg__content ul,
.ask-msg__content ol { margin: 7px 0 12px 20px; padding: 0; }
.ask-msg__content li { margin-bottom: 5px; }
.ask-msg__content strong { font-weight: 600; }
.ask-msg__content code {
  background: rgba(0,0,0,.05);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13px;
}
.ask-msg__content .ask-ref {
  font-size: 10px;
  color: var(--c-primary, #0e5560);
  vertical-align: super;
  margin: 0 1px;
}
.ask-md-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0 16px;
  border: 1px solid var(--c-rule, #e4e0db);
  border-radius: 8px;
  background: #fcfcf6;
}
.ask-md-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.ask-md-table th,
.ask-md-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--c-rule, #e4e0db);
  text-align: left;
  vertical-align: top;
}
.ask-md-table th {
  background: #f0eee5;
  color: var(--c-text, #2c2a28);
  font-weight: 700;
}
.ask-md-table tr:last-child td { border-bottom: 0; }
.ask-msg__error { color: #c53030; }

.ask-msg__dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}
.ask-msg__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-text-light, #a9a7a4);
  animation: askDot 1.2s ease-in-out infinite;
}
.ask-msg__dots span:nth-child(2) { animation-delay: .15s; }
.ask-msg__dots span:nth-child(3) { animation-delay: .3s; }
@keyframes askDot {
  0%, 80%, 100% { opacity: .3; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

.ask-msg__sources {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,.025);
  border-radius: 8px;
  font-size: 12px;
  color: var(--c-text-mid, #5b5957);
}
.ask-msg__sources h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-light, #a9a7a4);
  margin: 0 0 6px;
}
.ask-msg__sources span { display: block; margin-bottom: 2px; }
.ask-msg__source-link {
  display: block;
  margin-bottom: 3px;
  color: var(--c-primary, #0e5560);
  text-decoration: none;
  transition: color .15s;
}
.ask-msg__source-link:hover { color: var(--c-primary-hover, #084752); text-decoration: underline; }

.ask-page__input-wrap {
  padding: 12px 0 20px;
  border-top: 1px solid var(--c-rule, #e4e0db);
}
.ask-page__input-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-rule, #e4e0db);
  border-radius: 16px;
  padding: 14px 18px 46px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.ask-page__input-box:focus-within {
  border-color: var(--c-primary, #0e5560);
  box-shadow: 0 2px 12px rgba(14,85,96,.1);
}
.ask-page__input {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  background: transparent;
  color: var(--c-text, #2c2a28);
  font-family: inherit;
  min-height: 24px;
  max-height: 120px;
}
.ask-page__input::placeholder { color: var(--c-text-light, #a9a7a4); }
.ask-page__send {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--c-primary, #0e5560);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ask-page__send:hover { background: var(--c-primary-hover, #084752); }
.ask-page__send:disabled { opacity: .4; cursor: not-allowed; }
.ask-page__disclaimer {
  font-size: 11px;
  color: var(--c-text-light, #a9a7a4);
  text-align: center;
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  .ask-history {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .ask-history--open { transform: translateX(0); }
  .ask-history__toggle { display: flex; }
}
@media (max-width: 560px) {
  .ask-layout {
    height: calc(100dvh - 56px);
    min-height: 0;
  }
  .ask-page { padding: 0 12px; }
  .ask-page__thread {
    padding: 18px 0 8px;
    overscroll-behavior: contain;
  }
  .ask-page__welcome { padding: 40px 0 24px; }
  .ask-page__welcome-title { font-size: 20px; }
  .ask-page__suggestion { font-size: 12px; padding: 6px 12px; }
  .ask-msg { margin-bottom: 18px; }
  .ask-msg--user .ask-msg__bubble {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 10px 10px 3px 10px;
  }
  .ask-msg--bot {
    display: block;
  }
  .ask-msg__avatar {
    display: none;
  }
  .ask-msg--bot .ask-msg__body {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
  }
  .ask-msg__label {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .ask-msg__content {
    max-width: none;
    font-size: 14px;
    line-height: 1.68;
  }
  .ask-msg__content p { margin-bottom: 9px; }
  .ask-msg__content h2 {
    font-size: 16px;
    margin-top: 14px;
    padding-top: 10px;
  }
  .ask-msg__content h3 { font-size: 15px; }
  .ask-msg__content ul,
  .ask-msg__content ol {
    margin-left: 18px;
  }
  .ask-msg__actions {
    margin-top: 10px;
    padding-top: 8px;
  }
  .ask-msg__action {
    min-height: 36px;
    padding: 5px 8px;
  }
  .ask-md-table {
    min-width: 440px;
    font-size: 12px;
  }
  .ask-page__input-wrap {
    margin: 0 -12px;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
    background: color-mix(in oklch, var(--c-bg, #faf8f5) 92%, transparent);
    backdrop-filter: blur(10px);
  }
  .ask-page__input-box {
    min-height: 54px;
    padding: 13px 52px 13px 15px;
    border-radius: 13px;
    box-shadow: 0 8px 26px rgba(14, 85, 96, .09);
  }
  .ask-page__input {
    max-height: 88px;
    font-size: 14px;
  }
  .ask-page__send {
    top: 50%;
    right: 10px;
    bottom: auto;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
  }
  .ask-page__disclaimer {
    display: none;
  }
  .ask-history__toggle {
    top: 66px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fcfcf6;
    color: var(--c-primary, #0e5560);
    border: 1px solid rgba(14, 85, 96, .16);
    box-shadow: 0 8px 20px rgba(14, 85, 96, .12);
  }
  .ask-history { top: 56px; width: 240px; }
}

/* Mobile table repair: keep spec-heavy pages readable instead of clipped. */
@media (max-width: 768px) {
  .pd-spec-table,
  .powerpage__table,
  .leaf-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }

  .pd-spec-table th,
  .pd-spec-table td,
  .powerpage__table th,
  .powerpage__table td,
  .leaf-table th,
  .leaf-table td {
    padding: 8px 7px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .pd-spec-table th {
    width: 34%;
  }
}

@media (max-width: 400px) {
  .powerpage__table,
  .leaf-table {
    font-size: 11px;
  }

  .powerpage__table th,
  .powerpage__table td,
  .leaf-table th,
  .leaf-table td {
    padding: 7px 5px;
  }

  .about-partners__grid {
    grid-template-columns: 1fr;
  }
}

/* v=20260508b */

.header-account-wrap {
  position: relative;
  display: inline-block;
}

.header-account {
  border: 1px solid rgba(14, 85, 96, .18);
  background: #fff;
  color: var(--c-primary);
  border-radius: 6px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account:hover {
  border-color: rgba(14, 85, 96, .35);
  background: rgba(14, 85, 96, .05);
}

.sf-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(14, 85, 96, .18);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(8, 24, 28, .12);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  z-index: 1500;
}

.sf-account-menu li {
  list-style: none;
  margin: 0;
}

.sf-account-menu__item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sf-account-menu__item:hover,
.sf-account-menu__item:focus {
  background: rgba(14, 85, 96, .06);
  outline: none;
}

.sf-account-menu__item--danger {
  color: var(--c-copper, #c2632c);
  border-top: 1px solid transparent;
}

.sf-account-menu__divider {
  height: 1px;
  background: rgba(14, 85, 96, .12);
  margin: 4px 0;
}

.sf-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 24, 28, .48);
}

.sf-auth-dialog {
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid rgba(14, 85, 96, .12);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(8, 24, 28, .22);
  padding: 24px;
}

.sf-auth-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sf-auth-dialog__head h2 {
  margin: 0;
  color: var(--c-primary);
  font-size: 20px;
  line-height: 1.2;
}

.sf-auth-close {
  border: 0;
  background: transparent;
  color: var(--c-text-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sf-auth-message {
  display: none;
  margin-bottom: 14px;
  border: 1px solid rgba(194, 99, 44, .28);
  border-radius: 6px;
  background: rgba(194, 99, 44, .08);
  color: #8a3d16;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.sf-auth-message.is-visible {
  display: block;
}

.sf-auth-dialog label {
  display: block;
  color: var(--c-text-mid);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sf-auth-dialog input {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

.sf-auth-submit,
.sf-auth-switch {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.sf-auth-submit {
  border: 0;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
}

.sf-auth-submit:disabled {
  opacity: .62;
  cursor: wait;
}

.sf-auth-switch {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .header-account {
    min-width: 36px;
    padding: 0 6px;
    max-width: 70px;
    font-size: 12px;
  }
}

/* ============================================================
   EDITORIAL OVERRIDE — Category hubs + leaf related links
   (consumed by scripts/gen_category_pages.py; last-wins layer)
   ============================================================ */
.hub { padding: 8px 0 64px; }
.hub__head { padding: 18px 0 28px; border-bottom: 1px solid var(--c-line); margin-bottom: 36px; }
.hub__head h1 { font-size: clamp(28px, 2.4vw + 12px, 44px); font-weight: 800; letter-spacing: -0.025em; margin: 12px 0 14px; }
.hub__head .lede { max-width: 64ch; color: var(--c-text-mid); font-size: var(--fs-md); line-height: 1.75; margin: 0; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 40px; }
.hub-family { min-width: 0; padding-top: 18px; border-top: 2px solid var(--c-text); }
.hub-family h2 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin: 0 0 14px; }
.hub-leaves { list-style: none; margin: 0; padding: 0; }
.hub-leaves li { border-bottom: 1px solid var(--c-line); }
.hub-leaves li:last-child { border-bottom: 0; }
.hub-leaves a { display: block; padding: 9px 0; color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); line-height: 1.5; transition: color .15s, padding-left .15s; }
.hub-leaves a:hover { color: var(--c-primary); padding-left: 6px; }
.leaf-soon__related { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.leaf-soon__related h2 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-mid); font-weight: 700; margin: 0 0 14px; }
.leaf-soon__related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.leaf-soon__related a { display: inline-block; padding: 7px 14px; border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); transition: border-color .15s, color .15s; }
.leaf-soon__related a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ============================================================
   EDITORIAL OVERRIDE — Language dropdown (.lang-dd)
   Globe pill button → English / 中文 menu. Injected by nav.js
   into header + footer on every page. English is the default.
   ============================================================ */
.lang-dd { position: relative; display: inline-flex; }
.lang-dd__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--c-line); border-radius: 999px; background: transparent; color: var(--c-text); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; }
.lang-dd__btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.lang-dd__globe { flex-shrink: 0; }
.lang-dd__car { flex-shrink: 0; transition: transform .15s; }
.lang-dd[data-open="1"] .lang-dd__car { transform: rotate(180deg); }
.lang-dd__menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 8px 26px rgba(20,30,35,.12); padding: 6px; display: none; z-index: 60; }
.lang-dd[data-open="1"] .lang-dd__menu { display: block; }
.lang-dd--up .lang-dd__menu { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
.lang-dd__opt { display: block; padding: 9px 14px; border-radius: 7px; color: var(--c-text); text-decoration: none; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.lang-dd__opt:hover { background: var(--c-primary-soft); }
.lang-dd__opt.is-active { color: var(--c-primary); font-weight: 700; }
/* footer is dark — adapt the button (menu stays a light floating card) */
.site-footer .lang-dd__btn { color: var(--c-footer-text); border-color: rgba(255,255,255,.22); }
.site-footer .lang-dd__btn:hover { color: #fff; border-color: rgba(255,255,255,.55); }
/* On narrow screens the header row can't fit the pill — hide it there;
   the footer dropdown stays available at every width (matches reference). */
@media (max-width: 880px) {
  .header-actions .lang-dd { display: none; }
}

/* ============================================================
   EDITORIAL OVERRIDE — Floating "list your company" CTA
   Theme-coloured vertical side tab, injected by nav.js on every
   public page. Right edge, vertically centered, restrained.
   ============================================================ */
.listing-wrap {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 56; display: flex; align-items: center;
}
.listing-fab {
  display: flex; align-items: center; gap: 9px; writing-mode: vertical-rl;
  padding: 18px 10px; background: var(--c-primary); color: #fff;
  border: 0; cursor: pointer; font: inherit; font-size: 13px;
  font-weight: 700; letter-spacing: .05em; border-radius: 9px 0 0 9px;
  box-shadow: -4px 0 18px rgba(20, 30, 35, .20);
  transition: background .16s; flex-shrink: 0;
}
.listing-fab:hover { background: var(--c-accent); }
.listing-fab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.listing-fab svg { writing-mode: horizontal-tb; flex-shrink: 0; }
.listing-panel {
  width: 320px; max-width: calc(100vw - 44px); max-height: 86vh;
  overflow-y: auto; background: var(--c-bg);
  border: 1px solid var(--c-line); border-right: 0;
  border-radius: 12px 0 0 12px; box-shadow: -10px 0 34px rgba(20,30,35,.20);
  padding: 20px; margin-right: -2px;
  display: none;
}
.listing-wrap[data-open="1"] .listing-panel { display: block; }
.listing-wrap[data-open="1"] .listing-fab { background: var(--c-accent); }
.listing-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.listing-panel__head strong { font-size: 16px; color: var(--c-text); letter-spacing: -.01em; }
.listing-panel__x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--c-text-mid); cursor: pointer; padding: 0 4px; }
.listing-panel__x:hover { color: var(--c-primary); }
.listing-panel__sub { margin: 0 0 14px; font-size: 12.5px; color: var(--c-text-mid); line-height: 1.55; }
.listing-form { display: flex; flex-direction: column; gap: 9px; }
.listing-form input, .listing-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--c-line); border-radius: 7px;
  font: inherit; font-size: 13px; color: var(--c-text);
  background: #fff; resize: vertical;
}
.listing-form input:focus, .listing-form textarea:focus {
  outline: 0; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.listing-form__submit {
  margin-top: 4px; padding: 11px 14px; border: 0; border-radius: 7px;
  background: var(--c-primary); color: #fff; font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.listing-form__submit:hover { background: var(--c-accent); }
.listing-form__submit:disabled { opacity: .6; cursor: wait; }
.listing-form__msg { font-size: 12.5px; padding: 9px 11px; border-radius: 6px; line-height: 1.5; }
.listing-form__msg.is-ok { background: oklch(0.95 0.05 150); color: oklch(0.4 0.1 150); }
.listing-form__msg.is-err { background: oklch(0.95 0.05 25); color: oklch(0.45 0.16 25); }
@media (max-width: 560px) {
  .listing-fab { padding: 13px 8px; font-size: 12px; gap: 7px; }
  .listing-panel { width: 290px; padding: 16px; }
}

/* ============================================================
   EDITORIAL OVERRIDE — Ask AI page, ChatGPT-style refinement
   (last-wins; restyles existing .ask-* markup, no JS/markup change)
   ============================================================ */
.pg-ask { background: #ffffff; }
.pg-ask .listing-wrap { display: none; }            /* no floating CTA over chat */
.ask-layout {
  display: flex; gap: 0; max-width: none; margin: 0;
  height: calc(100dvh - 72px); overflow: hidden;
}
/* ---- Sidebar ---- */
.ask-history {
  width: 268px; flex: 0 0 268px; background: #f7f6f3;
  border-right: 1px solid var(--c-line); display: flex;
  flex-direction: column; padding: 10px; gap: 6px; height: 100%;
}
.ask-history__header { display: flex; gap: 6px; padding: 4px 4px 8px; border: 0; }
.ask-history__new {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border: 1px solid var(--c-line);
  border-radius: 10px; background: #fff; color: var(--c-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ask-history__new:hover { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary); }
.ask-history__collapse, .ask-history-expand {
  border: 1px solid var(--c-line); background: #fff; border-radius: 9px;
  color: var(--c-text-mid); cursor: pointer; width: 38px;
  display: flex; align-items: center; justify-content: center;
}
.ask-history__collapse:hover, .ask-history-expand:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
/* The expand button is the SINGLE reopen control. Hidden while the
   sidebar is open (this is why a redundant ☰ showed in Image #2 —
   the rule above forced it visible). Pinned to the right edge since
   the sidebar now lives on the right. */
.ask-history-expand {
  position: absolute; top: 14px; left: 14px; right: auto;
  width: 36px; height: 36px; z-index: 6; display: none;
}
.ask-layout--collapsed .ask-history-expand { display: flex; }
/* Desktop collapse. Descendant selector outranks the `.ask-history`
   override above, so width:0 actually takes effect — this is why
   collapse "点了没反应" before. */
@media (min-width: 769px) {
  .ask-layout--collapsed .ask-history {
    width: 0; min-width: 0; flex-basis: 0;
    border: 0; padding: 0; overflow: hidden;
  }
}
.ask-history__list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.ask-history__empty { color: var(--c-text-mid); font-size: 13px; padding: 16px 8px; text-align: center; }
.ask-history__item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 9px; cursor: pointer; position: relative;
  transition: background .12s;
}
.ask-history__item:hover { background: rgba(20,30,35,.05); }
.ask-history__item--active { background: rgba(14,85,96,.10); }
.ask-history__item-title {
  flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ask-history__item-meta { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ask-history__item-date { display: none; }          /* ChatGPT: title only */
.ask-history__item-del {
  opacity: 0; border: 0; background: transparent; cursor: pointer;
  color: var(--c-text-mid); padding: 3px; border-radius: 6px;
  font-size: 14px; line-height: 1; transition: opacity .12s, color .12s;
}
.ask-history__item:hover .ask-history__item-del { opacity: 1; }
.ask-history__item-del:hover { color: var(--c-accent); background: rgba(194,99,44,.12); }
/* ---- Main thread (centered reading column) ---- */
/* Cancel the base layer's max-width:920px + margin:auto so the scroll
   container spans the full width and its scrollbar sits flush at the
   window's right edge — exactly like ChatGPT (user-reported: scrollbar
   was floating 126px from the edge). Message text stays centered via
   .ask-msg / .ask-page__input-box max-width below. */
.ask-page { flex: 1 1 auto; display: flex; flex-direction: column; height: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; background: #fff; }
/* Block scroll container (NOT flex): a flex thread made
   .ask-msg{margin:0 auto} shrink-wrap each message so user/bot lost
   their shared column. The welcome centers itself instead (below). */
.ask-page__thread { flex: 1 1 auto; overflow-y: auto; padding: 28px 20px 24px; scroll-behavior: smooth; }
.ask-msg { max-width: 760px; margin: 0 auto 26px; display: flex; }
.ask-msg--user { justify-content: flex-end; }
.ask-msg--user .ask-msg__bubble {
  /* ChatGPT-style: bubble hugs its text and right-aligns, instead of
     stretching into a wide grey slab (user-flagged Image #5 vs #6). */
  width: fit-content;
  max-width: 72%;
  margin-left: auto;
  background: #f4f3f0; color: var(--c-text);
  padding: 10px 18px; border-radius: 18px;
  font-size: 15px; line-height: 1.6;
}
.ask-msg--user .ask-msg__bubble p { margin: 0; }
.ask-msg--bot { display: flex; gap: 14px; align-items: flex-start; }
.ask-msg__avatar { flex: 0 0 30px; }
.ask-msg__avatar svg { width: 30px; height: 30px; border-radius: 9px; display: block; }
.ask-msg__body { flex: 1 1 auto; min-width: 0; }
.ask-msg__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-mid); }
.ask-msg__content { font-size: 15px; line-height: 1.72; color: var(--c-text); margin-top: 6px; }
.ask-msg__content p { margin: 0 0 12px; }
.ask-msg__content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13.5px; }
.ask-msg__content th, .ask-msg__content td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; }
.ask-msg__content th { background: #f7f6f3; font-weight: 700; }
.ask-msg__content ul, .ask-msg__content ol { margin: 8px 0 12px; padding-left: 22px; }
.ask-msg__content li { margin: 4px 0; }
.ask-msg__content hr, .ask-md-hr { border: 0; border-top: 1px solid var(--c-line); margin: 18px 0; }
.ask-msg__content blockquote {
  margin: 12px 0; padding: 4px 0 4px 16px;
  border-left: 3px solid var(--c-line);
  color: var(--c-text-mid);
}
.ask-msg__dots span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--c-text-mid); opacity: .35; animation: askdot 1.2s infinite; }
.ask-msg__dots span:nth-child(2) { animation-delay: .2s; } .ask-msg__dots span:nth-child(3) { animation-delay: .4s; }
@keyframes askdot { 0%,60%,100%{opacity:.25;transform:translateY(0)} 30%{opacity:.9;transform:translateY(-3px)} }
/* Always visible (user: don't hide behind hover). */
.ask-msg__actions { display: flex; gap: 4px; margin-top: 12px; opacity: 1; }
.ask-msg__action {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border: 0; background: transparent; color: var(--c-text-mid);
  font: inherit; font-size: 12px; border-radius: 7px; cursor: pointer;
  transition: background .12s, color .12s;
}
.ask-msg__action:hover { background: rgba(20,30,35,.06); color: var(--c-primary); }
/* ---- Welcome / empty ---- */
/* Self-centering: fills the scroll viewport and centers its own
   content, so no big top void — without flexing the thread. */
.ask-page__welcome {
  max-width: 640px; margin: 0 auto; text-align: center;
  min-height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ask-page__welcome-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 8px; }
.ask-page__welcome-desc { color: var(--c-text-mid); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.ask-page__suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-page__suggestion {
  text-align: left; padding: 14px 16px; border: 1px solid var(--c-line);
  border-radius: 12px; background: #fff; color: var(--c-text);
  font: inherit; font-size: 13.5px; line-height: 1.45; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.ask-page__suggestion:hover { background: var(--c-primary-soft); border-color: var(--c-primary); }
/* ---- Input (centered, pinned) ---- */
.ask-page__input-wrap { flex: 0 0 auto; padding: 10px 20px 16px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%); }
.ask-page__input-box {
  max-width: 760px; margin: 0 auto; display: flex; align-items: flex-end;
  gap: 8px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 24px; padding: 8px 8px 8px 18px;
  box-shadow: 0 2px 14px rgba(20,30,35,.07);
  transition: border-color .15s, box-shadow .15s;
}
.ask-page__input-box:focus-within { border-color: var(--c-primary); box-shadow: 0 2px 18px rgba(14,85,96,.14); }
.ask-page__input {
  flex: 1 1 auto; border: 0; outline: 0; resize: none; font: inherit;
  font-size: 15px; line-height: 1.5; max-height: 180px; padding: 9px 0;
  background: transparent; color: var(--c-text);
}
.ask-page__send {
  flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--c-primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .15s;
}
.ask-page__send:hover { background: var(--c-accent); }
.ask-page__send:disabled { opacity: .45; cursor: not-allowed; }
.ask-page__disclaimer { max-width: 760px; margin: 8px auto 0; text-align: center; font-size: 11.5px; color: var(--c-text-mid); }
.ask-msg__status-wrap:not(:empty) { margin: 6px 0; }
.ask-msg__sources-wrap:not(:empty) { margin-top: 14px; }
/* ChatGPT/Claude-clean answer: the base layer wraps the bot reply in
   a grey bordered card and the sources in a second nested grey box —
   that is the "改的这样丑了" the user flagged. Strip both: borderless
   text + a sources block separated only by a hairline. */
.ask-msg--bot .ask-msg__body { background: transparent; border: 0; border-radius: 0; padding: 0; }
.ask-msg__sources {
  margin-top: 18px; padding: 14px 0 0; background: transparent;
  border: 0; border-top: 1px solid var(--c-line); border-radius: 0;
  font-size: 13px; color: var(--c-text-mid);
}
.ask-msg__sources h4 {
  color: var(--c-text-mid); margin: 0 0 8px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.ask-msg__source-link, .ask-msg__sources span { color: var(--c-primary); margin-bottom: 5px; }
.ask-msg__source-link:hover { text-decoration: underline; }
/* ---- Responsive: sidebar becomes off-canvas ---- */
@media (max-width: 768px) {
  .ask-history {
    position: fixed; left: 0; right: auto; top: 0; bottom: 0; z-index: 70;
    transform: translateX(-100%); transition: transform .22s;
    width: 280px; flex-basis: 280px; box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .ask-history.ask-history--open { transform: translateX(0); }
  /* Expand is the only drawer opener now (floating circle deleted).
     !important defeats the base layer's mobile display:none!important. */
  .ask-history-expand { display: flex !important; }
  .ask-layout { height: calc(100dvh - 60px); }
  .ask-msg, .ask-page__input-box, .ask-page__disclaimer { max-width: 100%; }
  .ask-page__suggestions { grid-template-columns: 1fr; }
}
