/* ============================================================
   松風 SONGFENG — 布局与组件样式
   区块：Base / Layout / Typography / Buttons / Nav / Hero /
        Cards / Grade / Chain / Forms / Footer / Responsive
   ============================================================ */

/* ---------- Fonts ----------
   The home page loads Poppins from home.css; this sheet never declared it,
   so every inner page silently fell back to the system sans — the nav read
   as a different typeface from the home page's. Same files, same weights. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/Poppins-Bold.woff") format("woff"); }
/* Lora is the display serif the home page uses (home.css declares it there).
   Inner pages had no declaration at all, so --font-display fell through to
   Georgia and the two halves of the site never matched. Same two weights the
   home page loads, so no extra request beyond the two files already shipped. */
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url("../fonts/Lora-500.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/Lora-600.woff") format("woff"); }

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  /* 焦点环属于非文字对比度（WCAG 1.4.11），要求 3:1。原来的桃色 --highlight
     在浅底上只有 2.44:1，键盘用户几乎看不见；深桃色是 5.85:1（深色主题 9.28:1）。 */
  outline: 2px solid var(--highlight-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--peach-200);
  color: var(--text);
}

/* Skip link — kept in flow and pushed up out of view.
   The old `left: -9999px` variant looked harmless in LTR, but under
   dir="rtl" that negative offset lands on the *right* side and makes the
   document ~10,000px wide, so the Arabic pages opened on an empty area. */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-130%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - var(--gutter) * 2, var(--shell-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

/* transparent section: lets the fixed lightfall backdrop show through */
.section--clear {
  background: transparent;
}

.section--mint {
  background: var(--bg-tint);
}

.section__head {
  max-width: 68ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
/* 68ch is the right measure for running text, but it is narrower than a
   single line of the display serif — long headings broke in two for no
   reason. A wide head lets the heading use the full column while the lead
   paragraph keeps its readable measure. */
.section__head--wide {
  max-width: none;
}
.section__head--wide .lead {
  max-width: 62ch;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--peach {
  color: var(--highlight-ink);
}

.eyebrow--center {
  justify-content: center;
}

.muted {
  color: var(--text-muted);
}

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 60ch;
}

.stack-sm > * + * {
  margin-top: 0.65rem;
}
.stack > * + * {
  margin-top: 1rem;
}
.stack-lg > * + * {
  margin-top: 1.8rem;
}
/* 产品页的样品按钮跳到 #quote，固定导航会盖住区块顶部，给锚点留出导航的高度。 */
#quote,
#samples {
  scroll-margin-top: calc(var(--nav-space) + 1.2rem);
}

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

/* ---------- Typography ---------- */
.display {
  font-size: var(--step-5);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.h1 {
  font-size: var(--step-4);
}
.h2 {
  font-size: var(--step-3);
}
.h3 {
  font-size: var(--step-2);
}
.h4 {
  font-size: var(--step-1);
}

.hl {
  background: linear-gradient(transparent 62%, var(--peach-200) 62%);
  padding-inline: 0.1em;
}

[data-theme="dark"] .hl {
  background: linear-gradient(transparent 62%, rgba(233, 138, 92, 0.28) 62%);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.78rem;
  --btn-pad-x: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease-out), background-color 0.25s,
    border-color 0.25s, color 0.25s, box-shadow 0.3s;
  will-change: transform;
}

.btn--sm {
  --btn-pad-y: 0.52rem;
  --btn-pad-x: 1.05rem;
  font-size: var(--step--1);
}

.btn--lg {
  --btn-pad-y: 0.95rem;
  --btn-pad-x: 2rem;
  font-size: var(--step-1);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn--accent {
  color: var(--bg);
}
.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-mint);
}

.btn--solid-light {
  background: var(--surface-solid);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--solid-light:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step-0);
  color: var(--accent);
  position: relative;
  padding-bottom: 2px;
}
.link-arrow svg {
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Icon button ---------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.25s, color 0.25s;
}
.icon-btn:hover {
  background: var(--surface-mint);
  color: var(--accent);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Theme toggle ----------
   The icon shows the theme you would *switch to*: a moon while light is
   active, a sun while dark is. NB the old rule list hid the moon
   unconditionally AND hid the sun in light mode, which left the button
   completely empty on the cream background — hence the two explicit
   per-theme pairs below instead of "hide what isn't current". */
/* Matches the home page's plain icon button — no disc, no border. On the
   cream pill the bordered circle read as a second, competing container. */
.theme-toggle {
  position: relative;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}
.theme-toggle:hover {
  background: var(--surface-mint);
  border-color: transparent;
  color: var(--accent);
}
[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
/* Force the stroke so the glyph never washes out against the cream nav */
.theme-toggle svg {
  stroke-width: 1.9;
}

/* ---------- Nav ----------
   Matches the home page: a floating cream pill inset 16px from the top,
   not a full-width band. The wrapper only positions and centres; the pill
   itself is .nav__inner, so the background, border and blur move with the
   content instead of painting a strip across the window. */
.nav {
  position: fixed;
  inset-inline: 0;
  top: var(--nav-top);
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: min(100%, var(--shell));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(248, 245, 234, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
[data-theme="dark"] .nav__inner { background: rgba(26, 31, 20, 0.72); }
/* The home pill has no scroll state — it always looks the same — so the
   scrolled class that app.js still toggles is deliberately inert here. */
.nav.is-solid { background: none; box-shadow: none; }
[dir="rtl"] .nav__inner { padding: 8px 16px 8px 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__text i {
  /* Same metrics as the home page's .brand__en — it was set in the mono face
     at 9.6px, which made the lockup 19px narrower and pulled the whole nav
     row out of alignment with the home page. */
  font-family: "Poppins", var(--font-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: "Poppins", var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-muted);
  transition: color 0.25s, background-color 0.25s;
}
/* Matches the home page nav exactly: hover and the current page share one
   treatment — dark ink on a soft moss pill. */
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
  background: rgba(79, 107, 42, 0.1);
}
/* Same metrics as the home page's .btn--primary.button-sm, so the two
   navs' CTAs are the same size as well as the same colour. */
.nav__actions .btn {
  padding: 8px 16px;
  font-family: "Poppins", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  background: #2d4a1c;
  color: #f2eedc;
  box-shadow: none;
}
.nav__actions .btn:hover { background: #24391a; color: #f2eedc; box-shadow: none; }
[data-theme="dark"] .nav__actions .btn { background: #b9cc8f; color: #12160d; }
[data-theme="dark"] .nav__actions .btn:hover { background: #cde5b4; color: #12160d; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.burger {
  display: none;
}

/* 导航内的行动按钮：窄屏必须单行，否则中文会折成两行 */
.nav__actions .btn {
  white-space: nowrap;
  flex: none;
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-space) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}

/* All hero content sits above the hero backdrop */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--step-5);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.3em;
  background: var(--peach-200);
  border-radius: var(--radius-pill);
  z-index: -1;
  opacity: 0.85;
}
[data-theme="dark"] .hero__title em::after {
  background: rgba(233, 138, 92, 0.24);
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--accent);
}
.stat span {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  /* The fixed height existed so the square photo could resolve max-height:100%.
     The photo is gone — the six grade cards now size the column instead. */
  min-height: clamp(320px, 44vw, 520px);
}

/* ---------- Hero grade quick links ----------
   Six grade cards lifted out of the old "01 — Grade system" section. They sit
   in the hero's right column as a 3 × 2 grid: three columns is the widest that
   still fits the ~540px column without shrinking the labels below legibility. */
.hero__grades {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.9rem);
  width: 100%;
}
.hero-grade {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(0.5rem, 1vw, 0.75rem);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
    border-color 0.35s;
}
.hero-grade:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mint);
}
.hero-grade:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.hero-grade__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  /* the grade photos are transparent cut-outs, so no plate behind them —
     a white plate turned into a bright square on the dark theme */
  background: transparent;
}
.hero-grade__media .chip--bare {
  width: 100%;
  height: 100%;
}
.hero-grade__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-inline: 0.15rem;
}
.hero-grade__body b {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
.hero-grade__body i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .hero-grade__body b {
    font-size: var(--step--1);
  }
}

.hero__blob {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(
    62% 58% at 42% 36%,
    var(--matcha-200),
    var(--cream-100) 62%,
    var(--peach-100) 100%
  );
  filter: blur(6px);
  opacity: 0.85;
  z-index: -1;
}
[data-theme="dark"] .hero__blob {
  background: radial-gradient(
    62% 58% at 42% 36%,
    rgba(92, 133, 64, 0.45),
    rgba(21, 29, 22, 0.9) 64%,
    rgba(233, 138, 92, 0.18) 100%
  );
}

/* ---------- Marquee band ----------
   Reads as an editorial word-band rather than a ticker. A solid deep-green
   ribbon (the old semi-transparent panel picked up the backdrop and went
   grey/muddy), display-size serif in cream, no dividers, slow drift with
   both ends fading out. */
.marquee {
  padding-block: clamp(1.5rem, 2.6vw, 2.4rem);
  overflow: hidden;
  background: var(--ink-900);
  color: var(--cream-50);
}
[data-theme="dark"] .marquee {
  background: var(--bg-tint);
  color: var(--text);
  border-block: 1px solid var(--border);
}
.marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 5.5vw, 5.5rem);
  width: max-content;
  animation: marquee 64s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: inherit;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: clamp(3rem, 5.5vw, 5.5rem);
}
@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
/* The hinge's crease band paints itself with --bg, which is correct for a
   cream strip but washes a dark ribbon out to grey while the fold is live.
   Match the ribbon's own colour instead, with a faint cylinder highlight. */
.marquee[data-hinge="axis"]::before {
  background: var(--ink-900);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0) 82%,
    rgba(255, 255, 255, 0) 100%
  );
}
[data-theme="dark"] .marquee[data-hinge="axis"]::before {
  background: var(--bg-tint);
}

/* ---------- Series cards ---------- */
/* Home quick-selector card photo: sits right under the scene title and
   carries the visual that the grade chip used to. 16:9 keeps the six cards
   from growing taller than the row needs. */
.picker-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
}

.series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}
.series-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sc, var(--accent)), var(--peach-300));
  opacity: 0.8;
}
/* Only a card that actually links somewhere lifts on hover — the grade page
   renders these as plain <article>s, and a lift there would promise a click
   that does nothing. */
a.series-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mint);
}
.series-card__no {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-mega);
  color: var(--text-soft);
}
.series-card__art {
  height: 132px;
  display: grid;
  place-items: center;
}
.series-card__art svg {
  height: 100%;
  width: auto;
}
.series-card h3 {
  font-size: var(--step-1);
}
.series-card__tag {
  font-size: var(--step--1);
  color: var(--accent);
}
.series-card__desc {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.68;
}

.btn.is-on {
  background: var(--peach-200);
  border-color: var(--border-peach);
  color: var(--highlight-ink);
}
/* 产品页的 Get samples 按钮与导航 CTA 同为绿色，所以「已加入」不用全局的
   桃色高亮，改成同色系更深的绿，颜色不会跑出绿色家族。 */
.pdp__actions .btn.is-on {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
[data-theme="dark"] .pdp__actions .btn.is-on {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}
[data-theme="dark"] .btn.is-on {
  background: rgba(233, 138, 92, 0.18);
  color: var(--highlight-ink);
}

/* ---------- Feature list ---------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* Editorial card in the contact column — it is a story, not a control, so it
   must not lift on hover the way the interactive cards do. Padding and radius
   match .form-card exactly so the two eyebrows sit on the same baseline. */
.feature--story {
  gap: 0.9rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
}
/* As an inline-flex, .eyebrow picks up the half-leading of the line box it
   sits in — so in the block-level .form-card its label landed ~10px lower
   than the same label in the flex-column story card. Making both block-level
   removes the leading and puts the two labels on one baseline. */
.form-card > .eyebrow,
.feature--story > .eyebrow {
  display: flex;
  align-items: center;
}
.feature--story:hover {
  transform: none;
  box-shadow: none;
}
#samples {
  display: flex;
  flex-direction: column;
}

/* On wide screens the story card grows to end level with the enquiry form and
   the painting takes the remaining height (a vertical crop suits a Song scroll
   painting). Below 1280px the columns are too narrow for that — the crop would
   become a strip — so the card keeps its natural landscape image instead. */
@media (min-width: 1280px) {
  #samples {
    align-self: stretch;
  }
  #samples > .feature--story {
    flex: 1;
    min-height: 0;
  }
  .feature--story .story-fig {
    flex: 1;
    min-height: 220px;
    display: flex;
  }
  .feature--story .story-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }
  /* The rail keeps its height and the frame absorbs whatever the caption
     leaves, so the card still ends level with the form without a strip of
     empty padding under the picture. */
  .feature--story > .timeline {
    flex: 1;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }
  .timeline__stage {
    grid-template-rows: 1fr auto;
    min-height: 0;
  }
  /* Scoped to .feature--story so it outranks the base rule further down the
     file, which would otherwise keep the image at its natural ratio. */
  .feature--story .timeline__stage img {
    height: 100%;
    object-fit: cover;
  }
}
.feature__lede {
  font-size: var(--step--1);
  line-height: 1.8;
  color: var(--text-muted);
}
/* ---------- Matcha timeline (contact column) ----------
   Five eras on a hairline rail, one large frame below. Five images stacked
   vertically would run far past the form beside them, and five thumbnails in
   a row would be too small to read, so the rail switches the frame instead. */
.timeline {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.6rem;
}
.timeline__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline__rail::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 5px;
  height: 1px;
  background: var(--border-strong);
}
.timeline__node {
  position: relative;
  display: grid;
  gap: 0.15rem;
  justify-items: start;
  padding: 1.15rem 0 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: start;
  cursor: pointer;
  color: var(--text-muted);
}
.timeline__dot {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.timeline__node b {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}
.timeline__node span:last-child {
  font-size: var(--step--2);
  color: var(--text-soft);
}
.timeline__node:hover b {
  color: var(--text);
}
.timeline__node[aria-selected="true"] .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.18);
}
.timeline__node[aria-selected="true"] b {
  color: var(--accent);
}
.timeline__stage {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.timeline__stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 12px);
  background: var(--bg-tint);
}
.timeline__stage figcaption {
  display: grid;
  gap: 0.15rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-muted);
}
.timeline__stage figcaption b {
  font-weight: 600;
  color: var(--text);
}
.feature h3 {
  font-size: var(--step-1);
}
.feature p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Grade section ---------- */
.grade-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.2rem;
  /* same reason as .grade-visual — the tab row is UI, not copy */
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
.grade-nav button {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}
.grade-nav button:hover {
  border-color: var(--border-mint);
  color: var(--accent);
}
.grade-nav button.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .grade-nav button.is-on {
  color: var(--bg);
}

.grade-panel {
  display: grid;
  /* left card a little narrower than before: the photo band + radar read
     better as a portrait card, and the spec table gets the extra room */
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.grade-panel[hidden] {
  display: none;
}

/* ---------- Grade panel · left column ----------
   Before: a bare floating powder photo, then a separate white radar card
   underneath — two unrelated objects with different edges. Now they are one
   card: a tinted photo band on top, a hairline, then the flavour radar. */
.grade-visual {
  display: grid;
  gap: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* Decorative panels: keep a stray text caret out. With caret browsing on
     (F7) a click anywhere drops a blinking bar into the artwork, which reads
     as a rendering bug. Nothing here is meant to be selected. */
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
.grade-visual .chip {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 1.8vw, 1.4rem) 1rem;
  background: radial-gradient(
    76% 76% at 50% 46%,
    rgba(182, 211, 153, 0.34),
    rgba(182, 211, 153, 0.08) 58%,
    transparent 74%
  );
}
[data-theme="dark"] .grade-visual .chip {
  background: radial-gradient(
    76% 76% at 50% 46%,
    rgba(149, 190, 117, 0.22),
    rgba(149, 190, 117, 0.05) 58%,
    transparent 74%
  );
}
/* the powder is a transparent cut-out now, so it can sit straight on the tint */
.grade-visual .chip > .slot {
  width: min(100%, 300px);
  filter: drop-shadow(0 18px 30px rgba(40, 65, 30, 0.22));
}
.grade-visual .chip__disc {
  width: min(100%, 300px);
}
.chip {
  text-align: center;
}
.chip__disc {
  width: clamp(180px, 26vw, 250px);
  aspect-ratio: 1;
  filter: drop-shadow(0 16px 34px rgba(40, 65, 30, 0.2));
}
.chip__disc svg {
  width: 100%;
  height: 100%;
}
/* The full-size grade chip replaces .chip__disc with a slot (see
   MT.gradeChip). Give the slot the SAME square box, otherwise a photo —
   which has no intrinsic aspect-ratio to inherit — collapses the disc and
   the row of grade cards ends up 7px shorter than its neighbours. */
.chip > .slot {
  width: clamp(180px, 26vw, 250px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 16px 34px rgba(40, 65, 30, 0.2));
}
/* grade detail panel only: the "3A · 1000 mesh" row under the photo repeats the
   big grade heading in the copy column, so drop it there.
   Home page grade cards keep their label. */
.grade-panel .chip__meta {
  display: none;
}

/* inside a grade detail panel: one card — tinted photo band on top, flavour
   radar below. Both rows stretch to the card width so the divider and the
   tint run edge to edge; only the artwork inside is capped. */
.grade-panel .grade-visual {
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0;
}
.grade-panel .chip > .slot,
.grade-panel .chip__disc {
  width: min(100%, 264px);
}
.grade-panel .grade-chart {
  width: 100%;
}
.chip > .slot .slot__stage {
  width: 100%;
  height: 100%;
}
.chip__meta {
  margin-top: 0.8rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}
.chip__meta b {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--accent);
}
.chip__meta span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Part of the .grade-visual card now — keep only the divider and padding. */
.grade-chart {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem clamp(1rem, 2vw, 1.4rem) 1.1rem;
  border-top: 1px solid var(--border);
}
.grade-chart__label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-soft);
}
.grade-chart .radar {
  width: min(100%, 258px);
}
.radar {
  width: 100%;
  height: auto;
  color: var(--text);
}

.grade-info h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4rem;
}
.grade-info__mesh {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--highlight-ink);
  margin-bottom: 1rem;
}
.grade-info__story {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.62rem 0.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-family: var(--font-mono);
  color: var(--text);
}
.spec-table th {
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  width: 32%;
}

/* 等级总览表 */
.grade-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}
.grade-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.grade-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  text-align: left;
  padding: 0.9rem 0.85rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.grade-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.grade-table tbody tr {
  transition: background-color 0.3s;
}
.grade-table tbody tr:hover {
  background: var(--surface-mint);
}
.grade-table tbody tr:last-child td {
  border-bottom: 0;
}
.grade-table__g {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--accent);
  white-space: nowrap;
}
.grade-table__mesh {
  font-family: var(--font-mono);
  white-space: nowrap;
}
/* Bare chip — just the round visual, used in the comparison table and the
   picker cards. Sizing moved here from the retired .grade-table__disc so the
   slot (and any uploaded photo inside it) is what actually gets sized. */
.chip--bare {
  width: 54px;
  height: 54px;
  flex: none;
  position: relative;
}
.chip--bare .slot,
.chip--bare .slot__stage {
  width: 100%;
  height: 100%;
}
.grade-table__media {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ---------- Chain ---------- */
.chain {
  position: relative;
}
/* .chain__track / .chain__item below lost their only consumer when the
   value-chain card grid became the plant photo tour. .chain__no and
   .chain__metric are still used (contact steps, pinned stages). */
.chain__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.chain__item {
  position: relative;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}
.chain__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mint);
}
.chain__no {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-mega);
  color: var(--highlight-ink);
}
.chain__item h3 {
  font-size: var(--step-1);
  margin-block: 0.4rem 0.2rem;
}
.chain__item p {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.chain__metric {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.chain__metric b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--accent);
}
.chain__metric span {
  font-size: var(--step--2);
  color: var(--text-muted);
}

/* The plant tour block moved to index.html (before the grade system); its
   styles now live in home.css as .fac. */
/* The two section heads left on this page used to disagree — the stage block
   was centred at --step-3 while the certification block sat left at a smaller
   size. One shared rule drives both now. ~37px is the size at which the longest
   heading still holds one line at 1440 down to ~960; balance keeps the
   two-line fallback even instead of orphaning a word.
   (The third block, the plant tour, moved to index.html.) */
#stages h2.h2,
#certs h2.h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem);
  text-wrap: balance;
}

/* ---------- Certs ---------- */
.cert--detail {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}
.cert--detail dl { display: grid; gap: .75rem; margin: 0; }
.cert--detail dl > div { display: grid; gap: .25rem; padding-block-end: .65rem; border-block-end: 1px solid var(--border); }
.cert--detail dt { font-weight: 600; }
.cert--detail dd { margin: 0; overflow-wrap: anywhere; }
.cert--detail__links { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Applications ---------- */
/* 图在上、名在下的八宫格。四列等宽：auto-fill 的 180px 下限在大屏会挤成六列，
   最后两张单独掉到第三行，看着像没收尾；固定四列才是两行整。 */
.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.app {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.app:hover {
  border-color: var(--border-peach);
  box-shadow: 0 12px 28px -18px rgba(60, 45, 30, 0.45);
}
/* aspect-ratio 撑出图片区高度，图还没加载完时版式也不会跳。
   底色用 bg-alt 而不是写死米色：深色主题下写死的浅色会闪一块白板。 */
.app__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.app__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.app:hover .app__media img {
  transform: scale(1.04);
}
/* 深色底上这八张亮调照片会有点晃眼，压一档亮度，也和暗色卡面更贴。 */
[data-theme="dark"] .app__media img {
  filter: brightness(0.92);
}
.app__body {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.85rem 0.95rem 1rem;
}
.app svg {
  width: 17px;
  height: 17px;
  color: var(--highlight-ink);
  flex: none;
  margin-top: 0.22em;
}
/* 图占了视觉重心，名字退成说明文字：卡片宽度只有 270 上下，用正文号
   （--step-0）会把 "Pharmaceutical ingredients & additives" 挤成四行。 */
.app b {
  font-weight: 500;
  font-size: var(--step--1);
  line-height: 1.45;
  letter-spacing: 0.002em;
  /* min-width:0 只保证 flex 能收缩，长词组仍要允许断行，否则窄屏会把卡片顶出屏幕 */
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* 窄屏改成左图右文的横排：整宽的三比二大图会把一屏塞满，八张要划很久。 */
@media (max-width: 640px) {
  .apps {
    /* 1fr 等于 minmax(auto, 1fr)，下限是卡片的最小内容宽度，窄屏会被文字顶出
       屏幕；minmax(0, 1fr) 才允许轨道真正收缩到容器宽度。 */
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
  .app {
    flex-direction: row;
    align-items: stretch;
  }
  .app__media {
    flex: none;
    width: 44%;
    aspect-ratio: auto;
    min-height: 88px;
  }
  .app__body {
    flex: 1;
    align-items: center;
    padding: 0.62rem 0.8rem;
  }
  /* 横排时右侧留白多，字号可以回到正文号，不必再挤在说明号上。 */
  .app b {
    font-size: var(--step-0);
  }
}

/* ---------- Process flow ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.flow li {
  padding: 0.34rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--surface-mint);
  border: 1px solid var(--border-mint);
  font-size: var(--step--1);
  color: var(--accent);
}
.flow li + li::before {
  content: "→";
  margin-right: 0.55rem;
  color: var(--text-soft);
}

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}
.pdp__media {
  position: sticky;
  top: calc(var(--nav-space) + 1.5rem);
  padding: 2rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.pdp__media svg {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.pdp__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface-mint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.pdp__points {
  display: grid;
  gap: 0.6rem;
  margin-block: 1.5rem;
}
.pdp__points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--step-0);
}
.pdp__points svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
  margin-top: 0.28rem;
}
.pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block: 1.6rem;
}

.meta-list {
  display: grid;
  gap: 0.15rem;
}
.meta-list div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--step--1);
}
.meta-list dt {
  color: var(--text-muted);
}
.meta-list dd {
  margin: 0;
  font-family: var(--font-mono);
}

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--step-0);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea {
  min-height: 108px;
  resize: vertical;
}
/* Honeypot for the enquiry form — invisible to people, irresistible to bots.
   Kept in the layout (not display:none) so form-filling scripts still see it. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 1rem;
}
/* Note sitting between the last field and the submit button — the terms of
   the sample offer, read at the moment of deciding. Kept as a soft mint
   block rather than another bordered box so it does not compete with the
   button directly below it. */
.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.45;
}
.form-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
[dir="rtl"] .form-hint { text-align: right; }

.form-note {
  font-size: var(--step--2);
  color: var(--text-soft);
  margin-top: 0.8rem;
}

/* Failure path. The relay that turns a submission into an email is a third
   party, and a visitor's network may not reach it at all (it times out from
   mainland China). When that happens the enquiry must not evaporate, so the
   form reveals this panel with everything already typed into a mailto: link.
   Muted rather than alarming — the visitor has done nothing wrong. */
.form-fallback {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
}
.form-fallback[hidden] { display: none; }
.form-fallback__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}
.form-fallback__text {
  margin: 0;
  font-size: var(--step--2);
  line-height: 1.55;
  color: var(--text-muted);
}
.form-fallback .btn { margin-top: 0.85rem; }
/* Two secondary exits sitting under the primary mailto button. They share the
   row evenly and drop their top margin, because the row itself already carries
   the gap from the button above it. */
.form-fallback__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.form-fallback__row .btn {
  margin-top: 0;
  flex: 1 1 10rem;
}
.form-fallback__addr {
  margin: 0.6rem 0 0;
  font-size: var(--step--2);
  color: var(--text-soft);
  word-break: break-all;
}
.form-fallback__addr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* WhatsApp fallback under the submit button — same weight as the form's
   own actions, separated by a hairline "or" so it reads as an alternative
   channel rather than a second primary CTA. */
.form-or {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-block: 1.1rem 0.9rem;
  color: var(--text-soft);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-or::before,
.form-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-wa {
  gap: 0.6rem;
}
.form-wa svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #25d366;
}

/* ---------- Accordion ----------
   等级页的问答模块已删除，.acc__* 暂时没有使用者。留着这段样式是为了以后
   若再加折叠列表可以直接复用；若确认不再需要，整段可删。 */
.acc__item {
  border-bottom: 1px solid var(--border);
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  text-align: left;
  font-size: var(--step-0);
  font-family: var(--font-display);
  color: var(--text);
}
.acc__btn::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease-out);
  flex: none;
}
.acc__item.is-open .acc__btn::after {
  transform: rotate(45deg);
}
.acc__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease-out);
}
.acc__panel > div {
  padding-bottom: 1.1rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}
/* `.empty { display: grid }` is an author rule, so it beat the UA sheet's
   `[hidden] { display: none }` and the "nothing in this series" block showed
   up under every full catalogue. */
.empty[hidden] {
  display: none;
}
.line__remove {
  font-size: var(--step--2);
  color: var(--text-soft);
  text-decoration: underline;
}
.line__remove:hover {
  color: var(--highlight-ink);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 160;
  transform: translate(-50%, 1.5rem);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--cream-50);
  font-size: var(--step--1);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.42s var(--ease-out);
}
[data-theme="dark"] .toast {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: transparent; /* let the fixed lightfall backdrop show through */
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, rgba(92, 133, 64, 0.3), rgba(21, 29, 22, 0.8) 55%, rgba(233, 138, 92, 0.2));
}
.cta-band h2 {
  font-size: var(--step-3);
  margin-bottom: 0.8rem;
}
.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  /* semi-transparent so the fixed lightfall backdrop shows through */
  background: color-mix(in srgb, var(--bg-alt) 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer__brand p {
  margin-top: 1rem;
  max-width: 38ch;
  line-height: 1.75;
}
/* Contact lines under the brand blurb — same block the home page footer
   carries, so the email, WhatsApp and address appear on every page. */
.footer__contact {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--text-muted);
}
.footer__contact a {
  color: var(--text-muted);
  transition: color 0.25s;
}
.footer__contact a:hover {
  color: var(--accent);
}
.footer h4 {
  font-size: var(--step-0);
  margin-bottom: 0.9rem;
  color: var(--text);
}
.footer ul {
  display: grid;
  gap: 0.5rem;
}
/* Keeps a plain-text item (the product names) at the same weight and colour
   as the links beside it — they are labels now, not destinations. */
.footer ul li {
  color: var(--text-muted);
}
.footer ul a {
  color: var(--text-muted);
  transition: color 0.25s, padding-left 0.25s;
}
.footer ul a:hover {
  color: var(--accent);
  padding-left: 3px;
}
/* ---------- Page head ---------- */
.page-head {
  padding-top: calc(var(--nav-space) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-head__inner {
  max-width: 72ch;
}
/* two-column head — copy left, photo/visual right, so the headline doesn't
   float in a sea of whitespace on wide screens */
.page-head__inner--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .page-head__inner--split {
    grid-template-columns: 1fr;
  }
}
.page-head h1 {
  font-size: var(--step-4);
  line-height: 1.12;
  margin-bottom: 1rem;
}
/* Contact page: the headline used to be one 62-character sentence, which ran
   to four lines at 59px and pushed the enquiry form to the fold (head was
   676px tall). Shorter headline + smaller display size + tighter bottom
   padding brings the form into the first screen. Scoped with a modifier so
   the Grades / Value Chain heads keep their size. */
.page-head--contact {
  padding-top: calc(var(--nav-space) + clamp(1.3rem, 3vw, 2.4rem));
  padding-bottom: clamp(1.4rem, 2.4vw, 2.2rem);
}
.page-head--contact .page-head__inner {
  max-width: 860px;
}
.page-head--contact h1 {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  margin-bottom: 0.85rem;
}
.page-head p {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 62ch;
}

/* Grade page: the lead paragraph sits in the right-hand column where the six
   grade discs used to be, so the headline is not stranded beside an empty
   half-screen. It rises into place just after the heading.
   Scoped as `p.…` so it outranks the generic `.page-head p` rule; font-size
   is deliberately left to that rule (step-1 reads as a lead). */
.page-head p.page-head__aside {
  margin: 0;
  max-width: 46ch;
  line-height: 1.75;
  color: var(--text-muted);
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid var(--border-mint);
}
/* motion.css sets the .reveal transition shorthand after this file, which
   resets transition-delay — match .reveal explicitly to keep the 140ms beat
   so the paragraph rises just after the heading instead of with it. */
.page-head__aside.reveal {
  transition-delay: 140ms;
}
@media (max-width: 900px) {
  .page-head p.page-head__aside {
    max-width: none;
    padding-left: 1rem;
  }
}

/* ---------- 全站光线幕布 ----------
   着色器的浅色主题分支会把颜色归一化到满饱和（chroma/max(chroma)
   后 pow 1.35），所以「看得见但不艳俗」必须靠 TUNE 里的
   glow / density / opacity 来调 —— 不能事后用 CSS 把整层压没，
   那样等于特效失效（用户反馈「背景特效没有」就是踩了这个坑）。
   深色主题保持原样，那里光幕本来就是主角。 */
[data-theme="light"] .lightfall-backdrop {
  background: var(--bg);
}

/* ---------- Stage（钉住叙事） ----------
   stage__pin 是 height:100vh 的 sticky 层。两条硬约束：
   1) 插画 SVG 必须显式封高，否则会把整行顶出视口；
   2) 步骤列的总高必须 < 视口高，否则 align-items:center 会把
      顶部（含插画）顶到视口之外 —— 所以步骤在钉住态下是紧凑排版。 */
.stage__pin > .shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
}
.stage-art {
  display: grid;
  place-items: center;
  min-height: 0;
}
.stage-art svg {
  width: auto;
  height: clamp(170px, 24vh, 260px);
  max-width: 100%;
  filter: drop-shadow(0 18px 38px rgba(40, 65, 30, 0.16));
}

/* 钉住态下的紧凑步骤：编号+名称一行，指标同行，描述限一行 */
.stage__pin .stage-step {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.7rem;
  padding: 0.5rem 0 0.5rem 0.9rem;
}
.stage__pin .stage-step .chain__no {
  grid-row: 1;
}
.stage__pin .stage-step h3 {
  grid-row: 1;
  font-size: var(--step-0);
  margin: 0;
}
.stage__pin .stage-step p {
  grid-column: 2 / -1;
  grid-row: 2;
  margin-top: 0.1rem;
  font-size: var(--step--1);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stage__pin .stage-step .chain__metric {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 0;
  justify-self: end;
  white-space: nowrap;
}
.stage__pin .stage-step .chain__metric b {
  font-size: var(--step-0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid,
  .pdp,
  .grade-panel {
    grid-template-columns: 1fr;
  }
  /* Was `order: -1` so the big photo led on tablets. With six grade cards in
     that slot it filled the whole first screen and pushed the headline below
     the fold, so the copy leads and the cards follow. */
  .hero__visual {
    order: 0;
    min-height: 0;
    margin-top: clamp(1.8rem, 4vw, 2.6rem);
  }
  .hero__grades {
    max-width: 620px;
    margin-inline: auto;
  }
  .pdp__media {
    position: static;
    max-width: 340px;
    margin-inline: auto;
  }
  .chain__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  .burger {
    display: inline-grid;
  }
  .brand {
    margin-right: auto;
  }
  /* Breakpoint is 960, not 900: that is where home.css collapses its nav, and
     both navs carry the same four links, the language button, the theme button
     and a CTA. Any value other than 960 left a band (901–960) where the home
     page showed a burger and an inner page still showed links plus a CTA — the
     same browser window, two different navs. */
  .nav__actions .btn {
    display: none;
  }
  .mobile-menu {
    position: fixed;
    inset: var(--nav-space) 0 auto 0;
    z-index: 99;
    display: grid;
    gap: 0.2rem;
    padding: 1rem var(--gutter) 1.4rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.42s var(--ease-out);
  }
  .mobile-menu.is-open {
    transform: none;
  }
  .mobile-menu a {
    padding: 0.8rem 0.4rem;
    font-size: var(--step-1);
    font-family: var(--font-display);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu__cta {
    margin-top: 0.8rem;
    border-bottom: 0 !important;
    color: var(--accent);
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 24px;
    --radius-xl: 32px;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
  }
  /* 窄屏恢复常规阅读顺序：先标题后配图 */
  .hero__visual {
    order: 0;
    margin-top: 2rem;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .chain__track,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track {
    animation: none;
  }
}

/* ============================================================
   Image slots — backend-driven artwork regions
   Markup from MT.slot(): .slot > .slot__stage
   (images are set on the admin page; no front-end control)
   ============================================================ */
/* Artwork, chips and the ticker strip are decoration: with caret browsing on
   (F7) a click drops a blinking text caret straight into the picture, which
   looks like a rendering fault. Neither selection nor a caret belongs here. */
.slot,
.chip,
.stage-art,
.marquee {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  /* The container centres its children (place-items:center), which sets
     align-self:center on the item — its height then falls back to content
     and the SVG grows to its intrinsic 240:300 ratio, blowing straight
     through a 132px-tall box. Stretch overrides that so height:100%
     resolves against the container again. */
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
  overflow: hidden;
}

/* The stage is transparent to layout so existing rules that size the
   container (height:132px, svg height:180px, …) keep working. */
.slot__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  /* min-height:auto on a flex item lets content push it taller than the
     container; 0 removes that floor so the artwork is clamped instead. */
  min-height: 0;
  overflow: hidden;
}

/* An SVG has an intrinsic aspect ratio and a replaced element uses its
   natural size — both escape a percentage height that has nothing
   definite to resolve against. object-fit does the fitting, min-*:0 lets
   the box actually shrink. */
.slot__stage > svg,
.slot__stage > img {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  object-fit: contain;
}

.slot__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: slot-in 0.45s var(--ease-out);
}
@keyframes slot-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}
[data-theme="dark"] .slot__img {
  filter: brightness(0.9) contrast(1.03);
}

/* When a photo is in place, let it breathe instead of hugging height */
.slot.is-photo .slot__stage {
  padding: 0.4rem;
}

/* Slots are filled from assets/js/slots-images.js. A key that has no photo
   falls back to the drawn SVG, and a photo that fails to load is swapped
   back to that SVG in place — so neither case can leave a hole. */

/* ============================================================
   Slot sizing — move the old "… svg { height: X }" rules onto the
   slot itself.

   Why: the SVG now lives one level deeper (.slot > .slot__stage > svg).
   A bare `height:100%` on the SVG resolves against a stage whose height
   depends on the SVG, so the pair grows to the SVG's intrinsic 240:300
   ratio and overflows the card. Sizing the slot from the outside keeps
   every position's original visual spec intact while the artwork is
   clamped to fit inside it.
   ============================================================ */
.series-card__art .slot { height: 100%; }
.series-card__art .slot__stage { height: 100%; }


/* The PDP photo card is ~470px wide but the artwork was capped at 300px,
   leaving a wide empty margin inside the card. Let it fill the card and
   keep a square frame so the product shot is the hero of the column. */
.pdp__media .slot {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.pdp__media .slot__stage { height: 100%; }

.stage-art .slot {
  height: clamp(170px, 24vh, 260px);
  width: auto;
  max-width: 100%;
}
/* 桌面端：钉住内容整体上移（原本垂直居中，上方空一大片），
   同时把左侧图放大成方形 —— 原来卡片是 547×216 的横条，
   图只有 216，两侧全是空白色块。 */
@media (min-width: 901px) {
  #craft-stage .stage__pin {
    /* 底部留白把内容整体往上顶约 90px，比纯垂直居中高，又不至于贴顶 */
    padding-bottom: clamp(6rem, 20vh, 12rem);
  }
  .stage-art .slot {
    width: clamp(280px, 46vh, 440px);
    height: clamp(280px, 46vh, 440px);
    justify-self: center;
  }
  /* 右侧字号放大后 "Premium Tea Workshop" 会折行，给步骤列多分一点宽度 */
  #craft-stage .grid--2 {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
/* 字号放大只在宽屏生效：1024 一带列宽不够，放大反而会让步骤标题折行 */
@media (min-width: 1100px) {
  .stage__pin .stage-step h3 {
    font-size: var(--step-1);
  }
  .stage__pin .stage-step p {
    font-size: var(--step-0);
    line-height: 1.45;
  }
  .stage__pin .stage-step .chain__metric b {
    font-size: var(--step-1);
  }
}
/* 标题块原来 615px 宽，主标题和副标题各自被折成两行。现在统一交给
   上面那组 #stages/#certs 规则（左对齐、同一字号），这里只保留
   与钉住内容之间的间距。 */
#stages .section__head {
  max-width: none;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
/* 钉住层本身就是 100vh，滚到末尾松手时它下面还压着一整份 --section-y 的下
   留白，等于小半屏纯空白。去掉这段下留白，改由下一段（认证）收窄上留白来
   控制间距。 */
#stages {
  padding-bottom: 0;
}
#certs {
  padding-top: clamp(2rem, 4vw, 4rem);
}
/* 钉住区的内部偏移已经在上面用 padding-bottom 调过；标题块与内容的间距
   属于 sticky 布局的固有留白，不再额外加负边距去压，避免和标题重叠。 */
.stage-art .slot__stage { height: 100%; }
.stage-art .slot__stage > svg,
.stage-art .slot__img {
  filter: drop-shadow(0 18px 38px rgba(40, 65, 30, 0.16));
}

/* ============================================================
   Responsive refinements
   ============================================================ */

/* Grade selector pills on phones: wrapping turned the six grade chips into
   several stacked rows, so scroll them sideways instead. */
@media (max-width: 760px) {
  .grade-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    padding-right: 0.6rem;
  }
  .grade-nav::-webkit-scrollbar {
    display: none;
  }
  .grade-nav button {
    flex: none;
    white-space: nowrap;
  }
}

/* Value-chain page head: photo card on the right, same card language as the
   product/hero media (radius-lg, hairline, soft shadow). */
.page-head__photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.page-head__photo-media {
  display: block;
  width: 100%;
}
.page-head__photo-media .slot,
.page-head__photo-media .slot__stage {
  width: 100%;
}
.page-head__photo-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-head__photo figcaption {
  padding: 0.85rem 1.15rem 0.95rem;
  border-top: 1px solid var(--border);
}
.page-head__photo figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.01em;
}
.page-head__photo figcaption span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--step--2);
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .page-head__photo {
    margin-top: 0.5rem;
  }
}

/* Display headings: 86px type on a 1.06 line-height let the descenders of
   one line (the "g" in "Everything") sit right on the ascenders of the next.
   Nudge the two oversized display styles apart; body h1/h2 keep 1.22. */
.hero__title,
.display {
  line-height: 1.12;
}

/* ---------- Language menu (inner pages chrome) ----------
   Same watercolour dropdown as the home page, rebuilt on this
   stylesheet's tokens so both pages look and behave identically. */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding-inline: 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: "Poppins", var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: color 0.25s, background-color 0.25s;
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] { color: var(--text); background: rgba(79, 107, 42, 0.1); }
.lang__btn svg { width: 18px; height: 18px; flex: none; }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 184px;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.lang__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--text);
  transition: background-color 0.2s;
}
.lang__menu a:hover { background: var(--bg-tint); }
.lang__menu a[aria-current="true"] { color: var(--accent); }
.lang__menu a[aria-current="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
/* Same breakpoint as home.css: at 960 the language button sheds its label and
   becomes the globe alone. It used to hold out until 720 here, so on a 768–960
   window the inner pages kept "简体中文" in the nav while the home page had
   already dropped it — 20px of text that the four links and the CTA had to
   share a row with. */
@media (max-width: 960px) {
  .lang__btn { width: 40px; padding: 0; justify-content: center; }
  .lang__btn [data-lang-current] { display: none; }
}

/* ---------- RTL ----------
   The inner pages are fully translated, so <html dir="rtl"> is set for
   Arabic. These are the few physical properties in this sheet that have
   to be mirrored; everything else already uses flex/grid or logical
   spacing. */
[dir="rtl"] .chain__no,
[dir="rtl"] .stage-step,
[dir="rtl"] .flow li,
[dir="rtl"] .pdp__points li { text-align: right; }
[dir="rtl"] .link-arrow svg,
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .grade-table th,
[dir="rtl"] .grade-table td { text-align: right; }
[dir="rtl"] .spec-table th { text-align: right; }
/* Values like "1 kg / 5 kg" or "GB/T 31644" are LTR runs inside an RTL
   paragraph, so bidi would otherwise reorder them ("kg / 5 kg 1").
   `plaintext` lets each cell pick its direction from its first strong
   character instead. */
[dir="rtl"] :is(.spec-table td, .meta-list dd, .grade-info__mesh, .chain__metric b, .stat b) {
  unicode-bidi: plaintext;
}
[dir="rtl"] :is(h1, h2, h3, .lead, p) { letter-spacing: 0; }

/* ---------- Brand logo (watercolour pine emblem + 松風) ---------- */
.brand__logo { height: 44px; width: auto; display: block; }
.brand__text .brand__word { height: 23px; width: auto; display: block; margin-bottom: 3px; }
.logo-d { display: none !important; }
[data-theme="dark"] .logo-l { display: none !important; }
[data-theme="dark"] .logo-d { display: block !important; }
