:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #566a61;
  --soft: #8aa097;
  --paper: #fcf7f4;          /* logo cream — sampled from logo-papas-list.webp background */
  --surface: #ffffff;
  --line: #e6dccd;            /* warmer line tint to match cream */
  --sage: #4f8a6b;
  --sage-deep: #194d3a;
  --grass-soft: #dcefd3;
  --sky-pale: #eaf5fb;
  --sun-soft: #fff2cf;
  --coral-soft: #fde2dc;

  /* Category palette — for product library tiles, Papa's-List badges.
     All depths chosen to carry bold white text legibly. */
  --cat-food:  #4f8a6b;       /* sage (brand anchor) */
  --cat-skin:  #c97843;       /* deep peach */
  --cat-toy:   #c25745;       /* deep coral */
  --cat-kit:   #a37c2c;       /* warm gold */
  --cat-clean: #557593;       /* blue-grey */
  --cat-baby:  #80618c;       /* lavender */

  /* Article-type accents — eyebrow strips and section labels. */
  --accent-alert:     #d49230;   /* calm amber, not panic red */
  --accent-explainer: #194d3a;   /* sage-deep, brand default */
  --accent-share:     #3c8b96;   /* teal */

  --shadow-sm: 0 4px 14px rgba(58, 40, 18, 0.06);
  --shadow-md: 0 14px 36px rgba(58, 40, 18, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--sage-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sage); }

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

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 10px;
  font-weight: 700;
}

.section-eyebrow.eyebrow-alert     { color: var(--accent-alert); }
.section-eyebrow.eyebrow-explainer { color: var(--accent-explainer); }
.section-eyebrow.eyebrow-share     { color: var(--accent-share); }

h1, h2, h3 { color: var(--ink); margin: 0 0 14px; line-height: 1.25; }
h1 { font-size: clamp(28px, 6vw, 42px); }
h2 { font-size: clamp(22px, 4.4vw, 30px); }
h3 { font-size: 19px; }

p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  display: inline-block;
}

.nav-links { display: flex; gap: 18px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--sage-deep); }

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

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-deep);
  margin: 0 0 14px;
}

.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 620px; margin-bottom: 24px; }

.founder-note {
  background: var(--sun-soft);
  border-left: 4px solid var(--accent-alert);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 8px 0 28px;
  max-width: 620px;
}
.founder-note .founder-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-alert);
  font-weight: 700;
  margin: 0 0 10px;
}
.founder-note p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.founder-note p:last-child { margin-bottom: 0; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.evidence-grid h3.evidence-region {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--sage-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.evidence-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button.primary {
  background: var(--sage-deep);
  color: var(--surface);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.button.ghost:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.card.feature {
  border-left: 4px solid var(--sage);
  background: linear-gradient(180deg, var(--surface), var(--paper));
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grass-soft);
  color: var(--sage-deep);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 6px; }

/* ---------- Category grid ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.cat {
  background: var(--cat-food);  /* default; per-category classes override */
  border: none;
  border-radius: var(--radius-sm);
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.cat .emoji {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

/* Category colour modifiers */
.cat.cat-food  { background: var(--cat-food); }
.cat.cat-skin  { background: var(--cat-skin); }
.cat.cat-toy   { background: var(--cat-toy); }
.cat.cat-kit   { background: var(--cat-kit); }
.cat.cat-clean { background: var(--cat-clean); }
.cat.cat-baby  { background: var(--cat-baby); }

/* ---------- Papa's List ---------- */

.papa {
  background: var(--sun-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}
.papa h3 { margin-top: 0; }
.papa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.papa-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
}
.papa-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.papa-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.papa-item span { font-size: 12px; color: var(--muted); }

/* ---------- Thumbnail strip (shareables) ---------- */

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}
.thumb-strip a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.thumb-strip a:hover { transform: translateY(-2px); border-color: var(--sage); }
.thumb-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ---------- Forms ---------- */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 14px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--surface);
}
.form button {
  background: var(--sage-deep);
  color: var(--surface);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.form button:hover { background: var(--sage); }

.form-ok {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--grass-soft);
  color: var(--sage-deep);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-ok.show { display: block; }

/* ---------- Newsletter accent ---------- */

.newsletter {
  background: var(--sky-pale);
  border-radius: var(--radius);
  padding: 24px;
}
.newsletter .form { background: var(--surface); }

/* ---------- About Us band (on landing) ---------- */

.about-band {
  background: var(--surface);
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--line);
}

.about-band h2 {
  margin-bottom: 16px;
}

.about-band .about-copy {
  max-width: 680px;
}

.about-band .about-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 14px;
}

.about-band .about-copy p:last-of-type { margin-bottom: 22px; }

.about-band .about-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
}

.about-band .about-more:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0 0 6px; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 0 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.social-links a:hover { color: var(--sage-deep); }

.social-links svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Small helpers ---------- */

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
  border: none;
}

/* ============================================================
   Portal landing — v3 (Papa's List redesign 2026-05-21)
   ============================================================ */

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;          /* source watercolor: shows whole image, no crop */
  background-image: url('images/photos/index-hero-papas-list-watercolor.webp');
  background-size: cover;            /* aspect matches, so cover doesn't crop */
  background-position: center center;
  background-color: var(--paper);
  overflow: hidden;
}

/* Sky→grass fallback layered behind image — visible if hero.jpg is missing. */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #87ceeb 0%, #c2dff0 35%, #b8d97a 75%, #92b96a 100%);
  z-index: -1;
}

/* The wordmark is now baked into the watercolour — buttons sit on top */
/* of it as chip-style links in the lower-right area. */

/* Coming-soon card — used on /ask/ and /subscribe/ while their real flows
   aren't ready yet. A single calm panel saying what's coming, with IG/Threads
   CTAs for people who want to reach us in the meantime. */
.coming-soon {
  max-width: 720px;
  margin: 48px auto 64px;
  padding: 40px 36px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.coming-soon .section-eyebrow {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.coming-soon h1 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--ink);
}
.coming-soon-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 20px;
}
.coming-soon-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}
.coming-soon-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.coming-soon-note {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 0;
}
@media (max-width: 600px) {
  .coming-soon { margin: 24px 12px 40px; padding: 28px 22px 24px; }
}

/* Intro band — sits directly below the watercolor hero. The painted hero
   carries the visual brand + tagline, but crawlers/screen-readers need a real
   <h1>, so it lives here in HTML. Calm, centered, plenty of breathing room. */
.hero-intro {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-intro-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 28px 40px;
  text-align: center;
}
.hero-intro h1 {
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-intro p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-intro-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 600px) {
  .hero-intro-wrap { padding: 32px 20px 28px; }
}

.hero-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(25, 77, 58, 0.18);
  transition: background 120ms ease, transform 120ms ease;
}
.hero-cta:hover { background: #fff; transform: translateY(-1px); }
.hero-cta.primary {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}
.hero-cta.primary:hover { background: #143d2d; }

.hero-buttons {
  position: absolute;
  right: clamp(24px, 6vw, 110px);
  bottom: clamp(48px, 9vh, 110px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  z-index: 3;
}

.hero-buttons .row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-btn {
  display: inline-block;
  padding: 18px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.hero-btn:hover {
  background: var(--sage-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hero-btn.primary {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
  padding: 20px 38px;
  font-size: 20px;
}

.hero-btn.primary:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(44px, 9vw, 72px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-weight: 800;
}

.hero-content .hero-tag {
  font-size: clamp(15px, 2.6vw, 18px);
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .button.primary {
  background: var(--sage-deep);
  color: #fff;
  padding: 14px 30px;
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-cta .button.primary:hover {
  background: var(--sage);
  color: #fff;
}

.hero-cta .button.ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
  padding: 14px 30px;
  font-size: 16px;
}

.hero-cta .button.ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  color: #fff;
}

/* ---------- CTA strip (3 tiles below hero) ---------- */

.cta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.cta-strip .tile {
  display: block;
  padding: 52px 28px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-strip .tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  color: #fff;
}

.cta-strip .tile .tile-icon {
  display: block;
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.cta-strip .tile .tile-label {
  display: block;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.cta-strip .tile .tile-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 8px;
}

.cta-strip .tile-alert     { background: var(--accent-alert); }
.cta-strip .tile-products  { background: var(--cat-food); }
.cta-strip .tile-chemicals { background: var(--accent-share); }

/* ---------- Trust band ---------- */

.trust-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
}

.trust-band p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.6;
}

.trust-band a {
  color: var(--sage-deep);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Coming-soon / 研究中 badge ---------- */

.coming-soon {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--line);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
}

/* ---------- Generic index-grid (products list, chemicals list) ---------- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 22px 0 32px;
}

.index-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.index-item:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.index-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.index-item .index-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.index-item.is-soon {
  background: var(--paper);
  cursor: default;
}

.index-item.is-soon:hover {
  border-color: var(--line);
  transform: none;
}

/* ---------- Coming-soon callout (used on /ask/) ---------- */

.callout-soon {
  background: var(--sun-soft);
  border-left: 4px solid var(--accent-alert);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0 26px;
}

.callout-soon strong { color: var(--ink); }
.callout-soon p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }

/* ============================================================
   Global nav band — chip row + ticker at top of every page
   (Added 2026-05-21 — supersedes per-page .site-header)
   ============================================================ */

.global-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

/* Nav grid: logo on the left (spans both rows so it gets vertical room),
   button bar + ticker stacked on the right. On the landing page there's no
   .nav-row, so row 1 is empty and the ticker sits in row 2 alongside the
   logo. The auto/1fr column split gives the logo just enough width while
   the right column grows to fill. */
.global-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
}

.global-nav .nav-brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.global-nav .nav-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.global-nav .ticker {
  grid-column: 2;
  grid-row: 2;
}

.global-nav .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  margin-right: 8px;
}

.global-nav .nav-brand .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6fb088, var(--sage-deep));
  display: inline-block;
  flex-shrink: 0;
}

.global-nav .nav-brand .brand-name {
  letter-spacing: -0.01em;
}

/* Brand logo in nav — sized to span the nav's vertical space. On inner pages
   the nav has 2 rows (button bar + ticker ≈ 100px), so the logo at 64px fits
   comfortably with breathing room. On landing the nav has just the ticker,
   so the logo's natural height extends the nav row slightly — that's fine. */
.global-nav .nav-brand .brand-logo {
  display: block;
  height: 64px;
  width: auto;
}
@media (max-width: 700px) {
  .global-nav .nav-brand .brand-logo { height: 48px; }
}

/* The 5 nav buttons grouped into a single rectangular bar that visually
   matches the ticker width below. Buttons share a tight container with
   subtle background; on the nav-row, .nav-buttons claims the remaining
   horizontal space after the logo. */
.global-nav .nav-row {
  align-items: center;
}
.global-nav .nav-buttons {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  padding: 4px;
  background: rgba(25, 77, 58, 0.06);
  border-radius: 999px;
  align-items: stretch;
}
.global-nav .nav-buttons .hero-btn {
  flex: 1 1 0;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  background: transparent;
  border: none;
  box-shadow: none;
  white-space: nowrap;
}
.global-nav .nav-buttons .hero-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}
.global-nav .nav-buttons .hero-btn.primary {
  background: var(--sage-deep);
  color: #fff;
}
.global-nav .nav-buttons .hero-btn.primary:hover {
  background: #143d2d;
  color: #fff;
}
.global-nav .nav-buttons .hero-btn .soon {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}
@media (max-width: 700px) {
  .global-nav .nav-buttons {
    flex-wrap: wrap;
    border-radius: 14px;
  }
  .global-nav .nav-buttons .hero-btn {
    flex: 1 1 40%;
    font-size: 12px;
  }
}

/* Chip overrides for the global nav — smaller + less puffy than hero chips */
.global-nav .hero-btn {
  padding: 10px 18px;
  font-size: 14px;
  background: var(--surface);
  color: var(--sage-deep);
  border-color: var(--line);
  box-shadow: none;
  letter-spacing: 0.02em;
}

.global-nav .hero-btn:hover {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.global-nav .hero-btn.primary {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
  padding: 11px 20px;
  font-size: 15px;
}

.global-nav .hero-btn.primary:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.global-nav .hero-btn .soon {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.global-nav .hero-btn:hover .soon {
  color: rgba(255, 255, 255, 0.78);
}

/* Ticker inside global-nav: no longer absolute, sits in document flow.
   Extends slightly past the 20px inner padding so the dark band kisses the
   inner-wrap edges. */
@media (max-width: 700px) {
  .global-nav .nav-inner { padding: 10px 16px 10px; }
  .global-nav .ticker { height: 40px; }
}

/* ============================================================
   Language switcher — column 3 of .nav-inner, spans both rows
   (Added 2026-05-23 for bilingual 繁 / EN navigation.)
   ============================================================ */
.global-nav .lang-switch {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
/* On the 404 page there's no ticker and no nav-row — the switcher's row 2
   doesn't exist, so let it ride alongside the brand in row 1 instead. */
.global-nav:not(:has(.ticker)):not(:has(.nav-row)) .lang-switch {
  grid-row: 1;
}
.global-nav .lang-switch .lang-link {
  color: var(--sage-deep);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  transition: color 120ms ease, background 120ms ease;
}
.global-nav .lang-switch .lang-link:hover,
.global-nav .lang-switch .lang-link:focus-visible {
  background: rgba(25, 77, 58, 0.08);
}
.global-nav .lang-switch .lang-link:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}
.global-nav .lang-switch .lang-current {
  color: var(--sage-deep);
  font-weight: 800;
  padding: 6px 8px;
}
.global-nav .lang-switch .lang-sep {
  color: var(--line);
  font-weight: 400;
}
@media (max-width: 700px) {
  .global-nav .lang-switch { font-size: 13px; gap: 4px; }
  .global-nav .lang-switch .lang-link,
  .global-nav .lang-switch .lang-current { padding: 4px 6px; }
}

/* ============================================================
   News ticker — Bloomberg-style scrolling marquee
   (Added 2026-05-21. Pure CSS, no JS.)
   ============================================================ */

.ticker {
  position: relative;        /* in-flow now (was absolute when nav was 1 row) */
  display: flex;
  align-items: stretch;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  overflow: hidden;
  border-radius: 999px;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--sage-deep);
  color: #fff;
  padding: 0 22px;
  display: flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 18px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-track a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-track a:hover { text-decoration: underline; }

.ticker-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
}

.ticker-tag.tag-alert     { background: var(--accent-alert); }
.ticker-tag.tag-explainer { background: var(--accent-explainer); }

.ticker-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .ticker { height: 44px; font-size: 14px; }
  .ticker-label { padding: 0 14px; font-size: 11px; letter-spacing: 0.16em; }
  .ticker-tag { font-size: 10px; padding: 3px 8px; }
  .ticker-track { gap: 30px; animation-duration: 45s; }
}

/* Hero needs to keep its full bleed under the ticker — content already sits at flex-end, so no top padding needed. */

/* ---------- Headline strip (unused on landing as of 2026-05-21; retained for /alerts/ reuse) ---------- */

.headline-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 40px;
}

.headline-strip .headline-header {
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.headline-strip .headline-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin: 0;
}

.headline-strip .headline-seeall {
  font-size: 13px;
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.headline-strip .headline-seeall:hover { text-decoration: underline; }

.headlines {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
}

.headlines li { border-top: 1px solid var(--line); }
.headlines li:last-child { border-bottom: 1px solid var(--line); }

.headlines a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
}

.headlines a:hover .headline-title { color: var(--sage-deep); }

.headlines .headline-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}

.headlines .headline-meta .tag-alert     { color: var(--accent-alert);     font-weight: 700; }
.headlines .headline-meta .tag-explainer { color: var(--accent-explainer); font-weight: 700; }

.headlines .headline-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  transition: color 0.15s ease;
}

@media (max-width: 560px) {
  .headlines .headline-title { font-size: 16px; }
}

/* ---------- Article summary page (TL;DR + read-detailed button) ---------- */

.article-summary {
  max-width: var(--max-prose, 720px);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.summary-box {
  background: var(--sun-soft);
  border-left: 4px solid var(--accent-alert);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 20px 0 28px;
}

.summary-box.explainer { border-left-color: var(--accent-explainer); background: #eef5ee; }

.summary-box .summary-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-alert);
  margin: 0 0 10px;
}

.summary-box.explainer .summary-label { color: var(--accent-explainer); }

.summary-box p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 10px;
}

.summary-box p:last-child { margin-bottom: 0; }

.summary-context {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 32px;
}

.read-more-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  margin: 8px 0 24px;
}

.read-more-cta .button.primary {
  padding: 16px 32px;
  font-size: 16px;
  display: inline-block;
}

.read-more-cta .read-more-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Inner-page components — alerts / products / about
   (Added 2026-05-21 to reach production-ready mockup parity)
   ============================================================ */

/* ---------- Inner page layout wrap ---------- */

.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* Eyebrow doubles as the page H1 on section-index pages — the previous
   separate H1 (e.g. "新聞概覽") just duplicated this in Chinese and was
   removed. Visual styling unchanged; just promoted semantically. */
.page-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin: 0 0 14px;
  display: block;
}
h1.page-eyebrow {
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.3;
}

.page-h1 {
  font-size: clamp(32px, 5.5vw, 44px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* (Removed: .page-brand strip + .hero-intro-logo. Logo now lives in the
   nav left column for both landing and inner pages — see .global-nav
   .nav-brand above.) */

.page-lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 620px;
  line-height: 1.6;
}

/* ---------- Alerts page ---------- */

.alert-latest-strip {
  background: var(--sun-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-alert);
  padding: 12px 18px;
  margin: 0 0 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.alert-latest-strip .latest-label {
  font-weight: 700;
  color: var(--accent-alert);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.alert-latest-strip a {
  color: var(--ink);
  text-decoration: none;
}

.alert-latest-strip a:hover { color: var(--sage-deep); }

.alert-latest-strip .latest-sep { color: var(--line); }

.alert-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.alert-hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.alert-hero-card .hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, var(--sun-soft), #f4dca0) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Hero photo gradient for explainer-style stories (sage/grass) — mirrors the
   pattern on the secondary row where ``.alert-style`` swaps to alert orange. */
.alert-hero-card .hero-photo.explainer-style {
  background: linear-gradient(135deg, var(--grass-soft), #b8d97a) center / cover no-repeat;
}

.alert-hero-card .hero-photo img,
.alert-secondary-card .sec-photo img,
.product-card .pc-photo img,
.about-photo-placeholder img,
.compact-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alert-hero-card .hero-photo::after,
.alert-secondary-card .sec-photo::after,
.product-card .pc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.alert-hero-card .hero-photo .photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-alert);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
}

.alert-hero-card .hero-photo .photo-emoji {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 180px;
  opacity: 0.18;
  line-height: 1;
}

.alert-hero-card .hero-body {
  padding: 24px 26px 26px;
}

.alert-hero-card .hero-date {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.alert-hero-card .hero-title {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 0 0 12px;
  line-height: 1.3;
}

.alert-hero-card .hero-summary {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.7;
}

.alert-hero-card .parent-callout {
  background: var(--sun-soft);
  border-left: 3px solid var(--accent-alert);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}

.alert-hero-card .parent-callout strong {
  color: var(--accent-alert);
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.alert-hero-card .read-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--sage-deep);
  text-decoration: none;
}

.alert-hero-card .read-link:hover { text-decoration: underline; }

/* Sidebar */

.alert-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.sidebar-card .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card .check-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.sidebar-card .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-card .source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card .source-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.sidebar-card .source-list li:last-child { border-bottom: none; }

.sidebar-card .source-list .src-name {
  color: var(--ink);
  font-weight: 600;
}

.sidebar-card .source-list .src-desc {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-card .more-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
}

.sidebar-card .more-link:hover { text-decoration: underline; }

/* "More alerts" sidebar list — thumbnail + title + date rows */

.more-alerts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more-alerts-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.more-alerts-list li:last-child { border-bottom: none; }

.more-alerts-list .ma-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sun-soft), #f4dca0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.7;
}

.more-alerts-list .ma-thumb.explainer {
  background: linear-gradient(135deg, var(--grass-soft), #b8d97a);
}

.more-alerts-list .ma-body a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 2px;
}

.more-alerts-list .ma-body a:hover { color: var(--sage-deep); }

.more-alerts-list .ma-body .ma-sub {
  font-size: 11px;
  color: var(--muted);
}

.more-alerts-list .ma-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Row 2: secondary article cards */

.alert-secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.alert-secondary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.alert-secondary-card .sec-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--grass-soft), #b8d97a) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.alert-secondary-card .sec-photo.alert-style {
  background: linear-gradient(135deg, var(--sun-soft), #f4dca0);
}

.alert-secondary-card .sec-photo .photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-explainer);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
}

.alert-secondary-card .sec-photo.alert-style .photo-badge { background: var(--accent-alert); }

/* Hero badge — defaults to alert orange (see rule above), this swaps it to sage
   for explainer-type hero stories so the eyebrow chip in the photo matches the
   article's 解讀新聞 tag colour. */
.alert-hero-card .hero-photo .photo-badge.tag-explainer { background: var(--accent-explainer); }

.alert-secondary-card .sec-photo .photo-emoji {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 100px;
  opacity: 0.2;
  line-height: 1;
}

.alert-secondary-card .sec-body { padding: 22px 24px 24px; }

.alert-secondary-card .sec-date {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.alert-secondary-card .sec-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.alert-secondary-card .sec-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.alert-secondary-card .sec-read {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-deep);
  text-decoration: none;
}

.alert-secondary-card .sec-read:hover { text-decoration: underline; }

/* Tablet alerts — drop secondary row from 3 to 2 columns before it gets cramped. */
@media (max-width: 1100px) {
  .alert-secondary-row { grid-template-columns: 1fr 1fr; }
}

/* Mobile alerts */
@media (max-width: 900px) {
  .alert-grid { grid-template-columns: 1fr; }
  .alert-secondary-row { grid-template-columns: 1fr; }
}

/* ---------- Briefs card (alerts-page sidebar) ----------
   Lives inside the right sidebar as a sibling to 來源 / 爸媽今日可以做.
   Compact list of single-incident alerts that link out to the original
   news source. Visually quieter than the editorial cards on the left. */
.briefs-card .briefs-sub {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.briefs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brief-item + .brief-item {
  border-top: 1px solid var(--line);
}
.brief-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}
.brief-link:hover .brief-headline { text-decoration: underline; }
.brief-tag {
  align-self: flex-start;
  display: inline-block;
  background: var(--accent-alert);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 2px;
}
.brief-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.brief-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .alert-hero-card .hero-photo .photo-emoji { font-size: 120px; }
  .alert-hero-card .hero-body { padding: 18px 18px 20px; }
  .more-alerts-list .ma-thumb { width: 48px; height: 48px; font-size: 20px; }
}

/* ---------- Products page ---------- */

.product-search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 18px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}

.product-search .search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.product-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.product-search input::placeholder { color: var(--muted); }

.product-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 28px;
}

/* Category filter bar — pure CSS + vanilla JS, Cloudflare-safe */

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 4px;
}

.cat-filter .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-filter .cat-pill:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.cat-filter .cat-pill .count {
  font-size: 12px;
  font-weight: 600;
  background: var(--paper);
  color: var(--muted);
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cat-filter .cat-pill.is-active {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}

.cat-filter .cat-pill.is-active .count {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 540px) {
  .cat-filter { gap: 6px; padding: 2px; }
  .cat-filter .cat-pill { padding: 8px 14px; font-size: 13px; }
  .cat-filter .cat-pill .count { padding: 1px 6px; }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.stat-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-card .stat-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 0 0 14px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card .stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-card .stat-pills .stat-pill {
  background: var(--grass-soft);
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.stat-card .next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.stat-card .next-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  line-height: 1.6;
}

.stat-card .next-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--sage);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 36px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card .pc-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.product-card .pc-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--grass-soft), #b8d97a) center / cover no-repeat;
  overflow: hidden;
}

.product-card.pc-food .pc-photo  { background: linear-gradient(135deg, #d9eecf, #92b96a); }
.product-card.pc-skin .pc-photo  { background: linear-gradient(135deg, #fde2cc, #e8a978); }
.product-card.pc-kit  .pc-photo  { background: linear-gradient(135deg, #f5e3b8, #c79f4a); }

.product-card .pc-emoji {
  position: absolute;
  right: -8px;
  bottom: -10px;
  font-size: 130px;
  opacity: 0.22;
  line-height: 1;
}

.product-card .pc-name-overlay {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.product-card .pc-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card .pc-titles strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 2px;
}

.product-card .pc-titles .pc-en {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-card .pc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.product-card .pc-row .pc-label {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.product-card .pc-row .pc-val {
  color: var(--ink);
}

.product-card .pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
  font-size: 12px;
}

.product-card .pc-footer .pc-date { color: var(--muted); }

.product-card .pc-footer .pc-related {
  background: var(--sun-soft);
  color: var(--accent-alert);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.product-card .pc-footer .pc-related:hover { background: var(--accent-alert); color: #fff; }

.product-card .pc-arrow {
  font-size: 16px;
  color: var(--sage);
}

/* Mobile products */
@media (max-width: 900px) {
  .product-stats { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .stat-card .stat-big { font-size: 28px; }
  .product-card .pc-emoji { font-size: 90px; }
}

/* ---------- Values strip (bottom of products page) ---------- */

.values-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 24px 0 0;
}

.values-strip .value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.values-strip .value-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grass-soft);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
}

.values-strip .value-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}

.values-strip .value-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .values-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .values-strip { grid-template-columns: 1fr; }
}

/* ---------- About page ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 0 0 48px;
}

.about-hero .ah-left h1 {
  font-size: clamp(36px, 5.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.about-hero .ah-left p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 14px;
  color: var(--ink);
}

.about-hero .ah-signature {
  font-style: italic;
  color: var(--muted);
  margin-top: 18px;
  font-size: 15px;
}

.about-hero .ah-right {
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: url('images/photos/about-family-reading-photo.webp');
  background-size: cover;
  background-position: center;
  background-color: var(--grass-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.about-photo-placeholder::after {
  content: "";
  inset: 0;
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.compact-photo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.compact-photo-hero .compact-copy {
  min-width: 0;
}

.compact-photo-hero .compact-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--grass-soft);
}

.compact-photo-hero + * {
  margin-top: 28px;
}

.article-hero-image {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 780px) {
  .compact-photo-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.paper-note {
  position: absolute;
  top: 24px;
  right: -20px;
  width: 60%;
  background: #fef5d8;
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
  font-family: "Kaiti SC", "STKaiti", "PingFang TC", serif;
}

.paper-note::before {
  content: "📎";
  position: absolute;
  top: -16px;
  right: 20px;
  font-size: 26px;
  filter: grayscale(1);
  opacity: 0.7;
}

.paper-note h4 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.paper-note p {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.65;
}

.paper-note p:last-child { margin-bottom: 0; }

/* 3-value columns (About) */

.value-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 40px;
}

.value-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.value-column .vc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grass-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 0 14px;
}

.value-column h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.value-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-column ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.value-column ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--sage);
  font-weight: 700;
}

.value-column.is-restraint ul li::before {
  content: "×";
  color: var(--accent-alert);
}

/* Source row (About) */

.source-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 36px;
}

.source-section h3 {
  text-align: center;
  font-size: 16px;
  margin: 0 0 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.source-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.source-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink);
}

.source-tile .src-abbr {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grass-soft);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.source-tile .src-abbr.cc   { background: #e8edf3; color: #557593; }
.source-tile .src-abbr.cfs  { background: #d9eecf; color: var(--sage-deep); }
.source-tile .src-abbr.fda  { background: #ddebf7; color: #1f3f7e; }
.source-tile .src-abbr.efsa { background: #def1e0; color: #006937; }
.source-tile .src-abbr.sg   { background: #ffe6cc; color: #b8631c; }
.source-tile .src-abbr.cr   { background: #ffe4dc; color: #b03b2f; }

.source-tile strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.source-tile span { color: var(--muted); font-size: 11px; }

/* About CTAs */

.about-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 32px;
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.about-cta.primary {
  background: var(--sage-deep);
  color: #fff;
}

.about-cta.primary:hover { background: var(--sage); }

.about-cta.secondary {
  background: var(--sun-soft);
  color: var(--ink);
  border-color: rgba(212, 146, 48, 0.3);
}

.about-cta.secondary:hover { background: #fde6b8; }

.about-cta .cta-icon {
  font-size: 28px;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.about-cta .cta-text { flex: 1; }
.about-cta .cta-text strong { display: block; font-size: 17px; margin-bottom: 4px; }
.about-cta .cta-text span { font-size: 13px; opacity: 0.85; }

.about-cta .cta-arrow { font-size: 20px; }

/* Mobile about */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 24px; }
  .paper-note { position: static; width: 100%; transform: none; margin-top: -12px; }
  .paper-note::before { display: none; }
  .value-columns { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: repeat(3, 1fr); }
  .about-ctas { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .source-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile breakpoint ---------- */

@media (max-width: 700px) {
  /* Mobile: watercolour banner at top (full width, natural aspect), buttons stack below it. */
  /* padding-top reserves space for the image; buttons live in the flow inside the padded box. */
  .hero-image {
    min-height: 0;
    aspect-ratio: auto;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #cfe5f5;
    padding: 56.25vw 0 28px;  /* 56.25vw = image height at 16:9-ish (936/1664) */
  }
  .hero-buttons {
    position: static;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 480px;
    align-items: stretch;
  }
  .hero-buttons .row { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .hero-btn { font-size: 16px; padding: 15px 24px; }
  .hero-btn.primary { padding: 17px 30px; font-size: 18px; }

  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip .tile { padding: 36px 22px; }
}

/* ============================================================
   MOBILE-FIRST CHROME REBUILD (Phase 1 — 2026-05-23)
   --------------------------------------------------------------
   New baseline: every page's global nav, hero, and ticker treats
   mobile as the default. Desktop chrome is restored at ≥720px.
   Hamburger drawer (CSS-only, checkbox hack), alerts CTA replaces
   the marquee on mobile, hero CTAs pruned to 2 primary.
   ============================================================ */

/* ---- Hamburger toggle (hidden checkbox + visible label) ---- */
.global-nav .nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  /* Keep focusable via the label */
}
.global-nav .nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
  flex-shrink: 0;
  z-index: 120;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.global-nav .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sage-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.global-nav .nav-toggle:hover { background: rgba(25, 77, 58, 0.08); }
.global-nav .nav-toggle-checkbox:focus-visible + .nav-toggle {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}
/* Animate to X when drawer is open */
.global-nav .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.global-nav .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.global-nav .nav-toggle-checkbox:checked + .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile drawer (slides in from the right) ---- */
.global-nav .nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(85vw, 340px);
  background: var(--paper);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 100;
  padding: 80px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.global-nav .nav-drawer a {
  display: block;
  padding: 16px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
  border-radius: 10px;
  line-height: 1.3;
  transition: background 0.15s ease;
  min-height: 44px;
}
.global-nav .nav-drawer a:hover,
.global-nav .nav-drawer a:focus-visible {
  background: rgba(25, 77, 58, 0.08);
}
.global-nav .nav-drawer a .soon {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.global-nav .nav-drawer hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0 12px;
}
.global-nav .nav-drawer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.global-nav .nav-drawer-lang .lang-current {
  color: var(--sage-deep);
  font-weight: 800;
  padding: 4px 6px;
}
.global-nav .nav-drawer-lang .lang-link {
  color: var(--sage-deep);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 600;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.global-nav .nav-drawer-lang .lang-link:hover,
.global-nav .nav-drawer-lang .lang-link:focus-visible {
  background: rgba(25, 77, 58, 0.08);
}
.global-nav .nav-drawer-lang .lang-sep {
  color: var(--line);
  font-weight: 400;
}

/* Drawer open state */
.global-nav .nav-toggle-checkbox:checked ~ .nav-drawer {
  transform: translateX(0);
}
/* Lock body scroll while drawer is open (best-effort via CSS) */
.global-nav .nav-toggle-checkbox:checked ~ .nav-drawer::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  pointer-events: none;
}

/* ---- Mobile alerts CTA (replaces ticker) ---- */
.alerts-cta-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sage-deep);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  letter-spacing: 0.01em;
}
.alerts-cta-mobile:hover,
.alerts-cta-mobile:focus-visible {
  background: #143d2d;
}
.alerts-cta-mobile .alerts-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.alerts-cta-mobile .alerts-text {
  flex: 1;
}
.alerts-cta-mobile .alerts-arrow {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ---- Mobile: reset the nav grid to a single flex row ----
   Order: [☰ hamburger]  [logo]                  (drawer is fixed-position, not in flow)
   Then below the bar: [alerts-cta-mobile]
   On desktop we restore the original grid behaviour. */
@media (max-width: 719px) {
  .global-nav .nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }
  .global-nav .nav-toggle {
    order: 1;
  }
  .global-nav .nav-brand {
    order: 2;
    flex: 1;
    grid-column: auto;
    grid-row: auto;
    margin-right: 0;
  }
  .global-nav .nav-brand .brand-logo {
    height: 44px;
  }
  /* Hide the desktop-only chrome on mobile */
  .global-nav .nav-row,
  .global-nav .ticker {
    display: none !important;
  }
  /* Keep the language switcher visible in the top bar, next to the logo */
  .global-nav .nav-inner > .lang-switch {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    flex-shrink: 0;
  }
  /* The drawer no longer needs its own copy of the lang switcher */
  .global-nav .nav-drawer hr,
  .global-nav .nav-drawer-lang {
    display: none;
  }
  /* Show the mobile-only CTA full-width below the top bar */
  .global-nav .alerts-cta-mobile {
    order: 4;
    flex: 1 1 100%;
    margin-top: 4px;
  }

  /* Hero image: keep watercolor, smaller stage on mobile */
  .hero-image {
    aspect-ratio: 4 / 3;
    background-position: center top;
  }

  /* Hero intro: tighter padding, only 2 primary CTAs visible */
  .hero-intro-wrap {
    padding: 28px 18px 24px;
  }
  .hero-intro-cta-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-intro-cta-row .hero-cta {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
  }
  .hero-intro-cta-row .hero-cta:nth-child(n+3) {
    display: none;
  }

  /* Trust band: smaller print, comfortable padding */
  .trust-band p {
    font-size: 13px;
    line-height: 1.55;
    padding: 14px 16px;
  }
}

/* ---- Desktop / tablet: hide mobile-only chrome ---- */
@media (min-width: 720px) {
  .global-nav .nav-toggle,
  .global-nav .nav-drawer,
  .global-nav .alerts-cta-mobile {
    display: none !important;
  }
}

/* ============================================================
   MOBILE-FIRST 404 (Phase 6 — 2026-05-23)
   --------------------------------------------------------------
   404 carries an inline <style> block that wins over external CSS
   by source order, so these overrides use a body-prefix selector
   to beat the per-page inline rules at equal class specificity.
   ============================================================ */

@media (max-width: 719px) {
  body .nf-wrap {
    margin: 36px auto 56px;
    padding: 0 16px;
  }
  body .nf-wrap .nf-code {
    font-size: 48px;
    margin: 0 0 10px;
  }
  body .nf-wrap h1 {
    margin: 0 0 12px;
  }
  body .nf-wrap p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
  }
  body .nf-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body .nf-cta-row .hero-cta {
    width: 100%;
    text-align: center;
    min-height: 48px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE-FIRST ABOUT / ASK / SUBSCRIBE (Phase 5 — 2026-05-23)
   --------------------------------------------------------------
   The existing @media (max-width:900px) rules already stack the
   about-hero, value-columns, source-row (to 3-col), about-ctas.
   The existing @media (max-width:540px) makes source-row 2-col.
   This layer tightens typography, padding, icon sizing, and
   tap targets for narrow phone widths.
   ============================================================ */

@media (max-width: 719px) {
  /* About hero — bigger margin breathing on mobile, scale H1 down */
  .about-hero {
    gap: 22px;
    margin: 0 0 32px;
  }
  .about-hero .ah-left h1 {
    font-size: clamp(28px, 8vw, 36px);
    margin: 0 0 16px;
  }
  .about-hero .ah-left p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 12px;
  }
  .about-hero .ah-signature {
    font-size: 14px;
    margin-top: 14px;
  }

  /* Paper note (inline on mobile per existing 900px rule) */
  .paper-note {
    padding: 16px 18px;
  }
  .paper-note h4 { font-size: 16px; margin: 0 0 10px; }
  .paper-note p { font-size: 13px; line-height: 1.6; }

  /* Value columns — tighter cards on mobile */
  .value-columns {
    gap: 12px;
    margin: 0 0 28px;
  }
  .value-column {
    padding: 20px 20px;
  }
  .value-column .vc-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin: 0 0 12px;
  }
  .value-column h3 { font-size: 16px; margin: 0 0 10px; }
  .value-column ul li { font-size: 13.5px; line-height: 1.55; padding: 5px 0 5px 20px; }

  /* Source section — tighter padding, smaller tiles */
  .source-section {
    padding: 20px 18px;
    margin: 0 0 28px;
  }
  .source-section h3 {
    font-size: 14px;
    margin: 0 0 16px;
  }
  .source-row {
    gap: 12px;
  }
  .source-tile {
    padding: 14px 8px;
    gap: 6px;
    font-size: 11px;
  }
  .source-tile .src-abbr {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
  .source-tile strong { font-size: 12px; }
  .source-tile span { font-size: 10px; line-height: 1.35; }

  /* About CTAs — full-width tappable cards */
  .about-ctas {
    gap: 12px;
    margin: 0 0 24px;
  }
  .about-cta {
    padding: 18px 18px;
    gap: 14px;
    min-height: 64px;
  }
  .about-cta .cta-icon { font-size: 24px; width: 36px; }
  .about-cta .cta-text strong { font-size: 16px; margin-bottom: 2px; }
  .about-cta .cta-text span { font-size: 12.5px; line-height: 1.45; }
  .about-cta .cta-arrow { font-size: 18px; }

  /* Ask / Subscribe — coming-soon callout already has 600px rule.
     Add a touch more on the hero CTAs inside. */
  .coming-soon { padding: 24px 20px 22px; }
  .coming-soon h1 { font-size: clamp(22px, 6vw, 26px); margin: 0 0 12px; }
  .coming-soon-lead { font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
  .coming-soon-sub { font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
  .coming-soon-cta-row { gap: 10px; }
  .coming-soon-cta-row .hero-cta {
    width: 100%;
    text-align: center;
    padding: 13px 18px;
    font-size: 15px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .coming-soon-note { font-size: 13px; }
}

/* ============================================================
   MOBILE-FIRST SECTION INDEXES (Phase 4 — 2026-05-23)
   --------------------------------------------------------------
   Tightens alerts/, products/, chemicals/ index pages at mobile
   widths. The existing desktop-first @media (max-width:900px)
   rules already collapse grids to 1-col; this layer handles the
   remaining tap-targets, padding, font scaling, photo sizing.
   ============================================================ */

@media (max-width: 719px) {
  /* Generic page wrap (inner pages all use this container) */
  .page-wrap {
    padding: 24px 16px 48px;
  }

  /* Page eyebrow already uses clamp() — fine.
     Lead paragraph tighter for narrow widths. */
  .page-lead {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
  }

  /* ---- Alerts page ---- */
  .alert-latest-strip {
    padding: 10px 14px;
    gap: 12px;
    font-size: 13px;
    margin: 0 0 20px;
  }
  .alert-latest-strip .latest-label { gap: 4px; }
  .alert-latest-strip .latest-sep { display: none; }
  .alert-latest-strip a {
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
  }

  .alert-grid { gap: 20px; }
  .alert-hero-card .hero-photo { aspect-ratio: 16 / 10; }
  .alert-hero-card .hero-photo .photo-emoji { font-size: 100px; }
  .alert-hero-card .hero-photo .photo-badge {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 5px 10px;
  }
  .alert-hero-card .hero-body { padding: 18px 18px 20px; }
  .alert-hero-card .hero-title {
    font-size: 19px;
    margin: 0 0 10px;
  }
  .alert-hero-card .hero-summary {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
  }
  .alert-hero-card .parent-callout {
    padding: 12px 14px;
    font-size: 13px;
  }
  .alert-hero-card .read-link {
    display: inline-block;
    padding: 8px 0;
    min-height: 36px;
  }

  /* Secondary cards */
  .alert-secondary-row { gap: 16px; }
  .alert-secondary-card .sec-body { padding: 18px 18px 20px; }
  .alert-secondary-card .sec-title {
    font-size: 17px;
    line-height: 1.35;
  }
  .alert-secondary-card .sec-summary {
    font-size: 14px;
    line-height: 1.6;
  }
  .alert-secondary-card .sec-read {
    display: inline-block;
    padding: 6px 0;
    min-height: 36px;
  }

  /* Sidebar (alerts page) and briefs card — touch-friendly list items */
  .alert-sidebar { gap: 14px; }
  .briefs-card .briefs-sub { font-size: 12px; margin-bottom: 8px; }
  .brief-link {
    padding: 14px 0;
    min-height: 56px;
    gap: 6px;
  }
  .brief-headline {
    font-size: 14.5px;
    line-height: 1.4;
  }
  .brief-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* ---- Products page ---- */
  .product-search {
    padding: 4px 6px 4px 14px;
    margin: 0 0 20px;
  }
  .product-search input {
    padding: 11px 0;
    font-size: 14px;
    min-height: 44px;
  }

  .product-stats { gap: 12px; margin: 0 0 22px; }
  .stat-card { padding: 18px 18px; }
  .stat-card h3 { font-size: 13px; margin: 0 0 10px; }
  .stat-card .stat-big { font-size: 28px; margin: 0 0 12px; }
  .stat-card .stat-pills { gap: 4px; }
  .stat-card .stat-pills .stat-pill {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 36px;
  }
  .next-list { padding-left: 18px; }
  .next-list li { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }

  .product-grid { gap: 16px; margin: 0 0 28px; }
  .product-card .pc-photo { aspect-ratio: 16 / 11; }
  .product-card .pc-emoji { font-size: 80px; }
  .product-card .pc-name-overlay {
    font-size: 16px;
    bottom: 12px;
    left: 14px;
  }
  .product-card .pc-body { padding: 16px 18px 14px; gap: 8px; }
  .product-card .pc-titles strong { font-size: 16px; }
  .product-card .pc-titles .pc-en { font-size: 12px; }
  .product-card .pc-row { font-size: 12.5px; gap: 6px 10px; }
  .product-card .pc-footer { font-size: 11.5px; padding-top: 10px; }

  /* ---- Chemicals page (uses .index-grid which auto-fills already) ---- */
  .index-grid { gap: 10px; margin: 18px 0 24px; }
  .index-item { padding: 14px 16px; min-height: 60px; }
  .compact-photo-hero {
    gap: 16px;
    padding: 18px;
    margin: 0 0 24px;
  }
  .compact-copy h2 { font-size: 19px; }
  .compact-copy p { font-size: 14px; line-height: 1.6; }
}

/* ============================================================
   MOBILE-FIRST PRODUCT DETAIL (Phase 2 — 2026-05-23)
   --------------------------------------------------------------
   Tightens product page chrome at mobile widths: article padding,
   eyebrow line, hero image margins, writeup section spacing,
   citation tap targets via pseudo-element, sources box, CTA.
   ============================================================ */

@media (max-width: 719px) {
  .article {
    padding: 20px 16px 56px;
  }

  /* Back link — comfortable tap target */
  .article-back {
    display: inline-flex;
    min-height: 36px;
    padding: 6px 4px 6px 0;
    margin-bottom: 18px;
    font-size: 14px;
    align-items: center;
  }

  /* Eyebrow: wrap-friendly on narrow widths, date drops to its own line */
  .article-eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 8px;
    padding-left: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .article-eyebrow .dot { display: none; }
  .article-eyebrow .date {
    flex-basis: 100%;
    letter-spacing: 0;
    margin-top: 2px;
  }

  /* Hero image — no negative pull-up on mobile (the eyebrow gap is already tight) */
  .article-hero-image {
    margin: 4px 0 22px;
    border-radius: 12px;
  }

  /* Intro paragraph */
  .article > .muted {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Writeup bullets — override inline page styles via higher-specificity selector */
  .article .writeup-section {
    margin-bottom: 28px;
  }
  .article .writeup-section h2 {
    font-size: 19px;
    margin: 32px 0 12px;
  }
  .article .writeup-section li {
    padding: 14px 14px 14px 16px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* Citation refs ([1], [2] superscripts) — invisible expanded tap target */
  .cite-ref {
    position: relative;
    padding: 0 2px;
  }
  .cite-ref::after {
    content: "";
    position: absolute;
    inset: -16px -8px;
    /* Expands hit area to ~32px wide × 44px tall without visual change */
  }
  /* Stack consecutive citation refs with a tiny gap so adjacent hit
     zones don't completely overlap into one giant tap target */
  .cite-ref + .cite-ref,
  sup + sup {
    margin-left: 4px;
  }

  /* Sources box: less side padding, larger touch-friendly link area */
  .sources {
    padding: 18px 16px;
    margin: 28px 0 0;
  }
  .sources h2 { font-size: 16px; margin-bottom: 6px; }
  .article .sources-list {
    padding-left: 0;
  }
  .article .sources-list li {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.55;
  }
  .article .sources-list li a {
    display: inline-block;
    padding: 4px 0;
    word-break: break-all;
    min-height: 32px;
  }
  .article .sources-list .cite-num {
    min-width: 32px;
    padding: 2px 4px 2px 0;
  }

  /* Article-style ul/ol inside content area get a touch more padding */
  .article ul, .article ol { padding-left: 20px; }

  /* Bottom CTA — full-width buttons stacked */
  .article-cta {
    margin-top: 32px;
    padding: 22px 18px;
  }
  .article-cta h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .article-cta .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .article-cta .button {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Stat strip: force single column at the narrowest end */
  .stat-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
