/* ==========================================================================
   SuppleScience / 實證補給 — shared stylesheet
   Order: tokens → base → layout → header → buttons → badges → home sections
          → article → reset tracker → footer → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7f3;
  --bg-2: #edf0ea;
  --surface: #ffffff;
  --line: #e0e5de;
  --line-2: #c9d1c9;

  --ink: #0d2626;
  --ink-2: #334949;
  --ink-3: #5e6f6e;
  --ink-4: #8a9796;

  --brand: #0b5d57;
  --brand-2: #08443f;
  --brand-tint: #e2efeb;

  --lime: #c9f06b;
  --coral: #ee6c4f;

  --dark: #0d2626;
  --dark-2: #153534;
  --on-dark: #eef3ef;
  --on-dark-2: #b6c5c0;
  --on-dark-3: #809691;
  --line-dark: #25413f;

  /* Evidence grades */
  --grade-a: #0d7550;  --grade-a-bg: #e1f2e8;
  --grade-b: #2c649d;  --grade-b-bg: #e3ecf6;
  --grade-c: #9a620c;  --grade-c-bg: #faefd8;
  --grade-d: #ae3831;  --grade-d-bg: #f8e3df;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 38, 38, 0.04), 0 12px 32px rgba(13, 38, 38, 0.06);

  --font: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* Bilingual: author both languages inline; the inactive one is hidden */
html[data-lang="zh"] body [lang="en"] { display: none !important; }
html[data-lang="en"] body [lang="zh-Hant"] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.band { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
.section-head .lede { max-width: 420px; color: var(--ink-3); font-size: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { color: var(--ink-3); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  min-width: 44px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; position: relative; width: 16px; height: 1.5px; margin: 0 auto; background: var(--ink); content: "";
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn .arrow { font-family: var(--mono); transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d8f68f; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Badges ---------- */
.grade {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.grade-a { background: var(--grade-a-bg); color: var(--grade-a); }
.grade-b { background: var(--grade-b-bg); color: var(--grade-b); }
.grade-c { background: var(--grade-c-bg); color: var(--grade-c); }
.grade-d { background: var(--grade-d-bg); color: var(--grade-d); }
.grade-inline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 3px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; vertical-align: 2px; white-space: nowrap;
}
.grade-inline .grade { width: 20px; height: 20px; flex-basis: 20px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,0.7); }
.grade-inline.grade-a { background: var(--grade-a-bg); color: var(--grade-a); }
.grade-inline.grade-b { background: var(--grade-b-bg); color: var(--grade-b); }
.grade-inline.grade-c { background: var(--grade-c-bg); color: var(--grade-c); }
.grade-inline.grade-d { background: var(--grade-d-bg); color: var(--grade-d); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
}
.chip-live { background: var(--brand-tint); color: var(--brand); }
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.chip-soon { background: var(--bg-2); color: var(--ink-3); }
.chip-draft { background: #fff3d6; color: #8a5a06; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(13, 38, 38, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; z-index: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.06em; height: 0.3em; z-index: -1;
  background: var(--lime); border-radius: 3px;
}
.hero-lede { max-width: 560px; margin-top: 24px; color: var(--ink-2); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 11px; font-weight: 700; }

/* Evidence snapshot card */
.snapshot { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.snapshot::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; z-index: -1;
  width: 60%; height: 60%; border-radius: var(--r-lg); background: var(--lime); opacity: .55;
}
.snapshot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.snapshot-title { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.snapshot-list { margin: 0; padding: 0; list-style: none; }
.snapshot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.snapshot-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.snapshot-row strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.snapshot-row span.for { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.snapshot-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-4); font-size: 12px; line-height: 1.55; }

/* ---------- Home: topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.topic-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg-2); color: var(--brand); }
.topic-icon svg { width: 24px; height: 24px; }
.topic-card h3 { font-size: 20px; font-weight: 700; }
.topic-card h3 small { display: block; margin-top: 3px; color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.topic-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.65; }
.topic-card .chip { margin-top: auto; align-self: flex-start; }
.topic-card.is-live { border-color: var(--brand); }

/* ---------- Home: featured guide ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.feature-art { position: relative; min-height: 360px; background: var(--dark); color: var(--on-dark); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.feature-art .big { font-family: var(--display); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 700; line-height: .95; letter-spacing: -0.05em; }
.feature-art .big span { color: var(--lime); }
.feature-art .caption { max-width: 300px; color: var(--on-dark-2); font-size: 13.5px; line-height: 1.6; }
.feature-art .bars { display: flex; align-items: end; gap: 10px; height: 110px; }
.feature-art .bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--dark-2); position: relative; }
.feature-art .bar b { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--on-dark-2); }
.feature-art .bar.hi { background: var(--lime); }
.feature-art .bar.hi b { color: var(--lime); }
.feature-art .bar-labels { display: flex; gap: 10px; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--on-dark-3); }
.feature-art .bar-labels span { flex: 1; text-align: center; }
.feature-body { padding: 38px; display: flex; flex-direction: column; gap: 16px; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.feature-body p { color: var(--ink-2); font-size: 15.5px; }
.feature-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
.feature-list li { display: flex; gap: 10px; }
.feature-list li::before { content: "→"; color: var(--brand); font-family: var(--mono); }
.feature-body .btn { margin-top: auto; align-self: flex-start; }
a.feature:hover .btn-primary { background: var(--brand); }

/* ---------- Home: method ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grade-card { padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.grade-card .grade { width: 42px; height: 42px; font-size: 18px; border-radius: 12px; }
.grade-card h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.grade-card p { margin-top: 8px; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-2); counter-reset: p; }
.principle { counter-increment: p; }
.principle::before { content: "0" counter(p); display: block; margin-bottom: 10px; color: var(--coral); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.principle h3 { font-size: 16px; font-weight: 700; }
.principle p { margin-top: 6px; color: var(--ink-3); font-size: 14px; line-height: 1.65; }

/* ---------- Home: reset band ---------- */
.reset-band { background: var(--dark); color: var(--on-dark); }
.reset-band .eyebrow { color: var(--lime); }
.reset-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.reset-band h2 { color: var(--on-dark); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
.reset-band p { margin-top: 18px; max-width: 520px; color: var(--on-dark-2); font-size: 16.5px; }
.reset-band .btn { margin-top: 30px; }
.reset-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-dark-2); font-size: 14px; }
.reset-steps li { display: inline-flex; gap: 8px; align-items: center; }
.reset-steps li b { color: var(--lime); font-family: var(--mono); font-weight: 500; }
.mini-map { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: var(--dark-2); }
.mini-map span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-dark); color: var(--on-dark-3); font-family: var(--mono); font-size: 12px; }
.mini-map span.on { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.mini-map span.now { border-color: var(--lime); color: var(--lime); }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid #efd9a6; border-radius: var(--r-lg); background: #fffaf0; }
.safety-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f6d88e; color: var(--ink); font-family: var(--mono); font-weight: 700; }
.safety h2 { font-size: 18px; font-weight: 700; }
.safety p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.safety p strong { color: var(--ink); }

/* ---------- Article ---------- */
.article-hero { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--ink-3); font-size: 13.5px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.article-hero h1 { max-width: 860px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.16; }
.article-dek { max-width: 760px; margin-top: 20px; color: var(--ink-2); font-size: 18px; line-height: 1.75; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 26px; color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; }
.lang-notice { margin-top: 18px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--grade-b-bg); color: var(--grade-b); font-size: 14px; }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; padding: 56px 0 40px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-title { margin-bottom: 12px; color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line-2); }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); font-size: 14px; line-height: 1.45; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--brand); color: var(--brand); font-weight: 600; }

.prose { min-width: 0; overflow-wrap: break-word; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 64px; padding-top: 8px; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 700; scroll-margin-top: 90px; }
.prose h2 .num { display: block; margin-bottom: 8px; color: var(--coral); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; }
.prose h3 { margin-top: 32px; font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.9; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose sup a { font-family: var(--mono); font-size: 11px; text-decoration: none; padding: 0 2px; }

.keypoints { padding: 28px 30px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.keypoints h2 { margin: 0 0 14px; padding: 0; color: var(--lime); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.keypoints ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.keypoints li { display: flex; gap: 12px; color: var(--on-dark); font-size: 15.5px; line-height: 1.7; }
.keypoints li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: 10px; border-radius: 2px; background: var(--lime); }

.claim { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.claim .grade { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
.claim-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.claim p { margin-top: 2px; color: var(--ink); font-size: 15.5px; line-height: 1.7; }

.callout { padding: 20px 22px; border-radius: var(--r-md); background: var(--brand-tint); }
.callout.warn { background: var(--grade-d-bg); }
.callout-title { margin-bottom: 8px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.callout.warn .callout-title { color: var(--grade-d); }
.callout ul { margin: 0; }
.callout li, .callout p { font-size: 15px; line-height: 1.8; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.data-table th { background: var(--bg-2); color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-note { margin-top: 10px !important; color: var(--ink-4) !important; font-size: 13px !important; line-height: 1.6 !important; }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; margin: 0 !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 15.5px !important; line-height: 1.7 !important; }
.checklist li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px; border: 1.5px solid var(--line-2); border-radius: 5px; }

.refs { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.refs h2 { margin-top: 0; }
.refs ol { padding-left: 1.4em; }
.refs li { font-size: 14px !important; line-height: 1.7 !important; color: var(--ink-3) !important; scroll-margin-top: 90px; }
.refs li:target { background: #fff6c9; border-radius: 4px; }
.review-box { margin-top: 36px; padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.review-box strong { color: var(--ink); }

/* ---------- Reset tracker ---------- */
.reset-hero { padding: 56px 0 40px; }
.reset-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: end; }
.reset-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; line-height: 1.1; }
.reset-hero .intro { max-width: 580px; margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.privacy-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.privacy-note svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--brand); }

.progress-card { padding: 24px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.progress-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-label { color: var(--on-dark-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.progress-caption { margin-top: 4px; color: var(--on-dark); font-family: var(--mono); font-size: 14px; }
.status-pill { padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.progress-main { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.progress-ring { --progress: 0%; display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), var(--dark-2) 0); }
.progress-ring-inner { display: grid; place-items: center; align-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--dark); }
.progress-ring strong { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: -0.04em; }
.progress-ring span { margin-top: 4px; color: var(--on-dark-3); font-size: 11px; }
.progress-message strong { display: block; font-size: 16px; line-height: 1.4; }
.progress-message p { margin-top: 6px; color: var(--on-dark-2); font-size: 13.5px; line-height: 1.55; }

.workspace { padding: 12px 0 72px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.today-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 84px; }
.day-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.day-number { color: var(--brand); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.day-tag { padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; }
.today-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.25; }
.lesson { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.why-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--brand-tint); }
.why-box svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.mini-label { margin-bottom: 4px; color: var(--brand); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.why-box p:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

.block { margin-top: 34px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.block-head h3 { font-size: 17px; font-weight: 700; }
.microcopy { color: var(--ink-4); font-family: var(--mono); font-size: 12px; }
.action-lead { margin-bottom: 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.task-list { display: grid; gap: 10px; }
.task-item { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.task-item:hover { border-color: var(--line-2); background: var(--surface); }
.task-item input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.task-item span { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.task-item:has(input:checked) { border-color: #b5dcc6; background: var(--grade-a-bg); }
.task-item input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(13, 38, 38, 0.35); }

.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.field { display: grid; gap: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.input-unit { display: flex; align-items: center; min-height: 46px; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.input-unit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 93, 87, 0.14); }
.input-unit input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 6px 10px 12px; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 15px; }
.input-unit small { padding-right: 10px; color: var(--ink-4); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.form-note { min-height: 20px; color: var(--brand); font-size: 13px; }

.completion-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.complete-button:disabled { cursor: default; background: var(--grade-a-bg); color: var(--grade-a); }
.button-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 12px; }
.complete-button:disabled .button-check { background: var(--grade-a); color: #fff; }
.text-button { border: 0; padding: 8px 2px; background: transparent; color: var(--ink-3); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--brand); }
.text-button.danger:hover { color: var(--grade-d); }
.completion-row .text-button.danger { margin-left: auto; }

.map-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-head h2 { font-size: 17px; font-weight: 700; }
.map-caption { margin-top: 3px; color: var(--ink-3); font-size: 13px; }
.map-count { color: var(--brand); font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 20px; }
.day-button { display: grid; place-items: center; aspect-ratio: 1; min-width: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; font-weight: 500; transition: border-color .15s ease; }
.day-button:hover { border-color: var(--ink); color: var(--ink); }
.day-button.done { border-color: #b5dcc6; background: var(--grade-a-bg); color: var(--grade-a); }
.day-button.active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(13, 38, 38, 0.2); }
.day-button.done.active { background: var(--grade-a); border-color: var(--grade-a); }
.week-labels { display: grid; gap: 7px; margin-top: 7px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--ink-3); font-size: 12.5px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg); }
.legend-dot.active { border-color: var(--ink); background: var(--ink); }
.legend-dot.done { border-color: #b5dcc6; background: var(--grade-a-bg); }
.reflection-box { margin-top: 22px; padding: 18px; border-radius: var(--r-md); background: var(--bg-2); }
.reflection-box p:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

.draft-banner { padding: 10px 0; background: #fff3d6; color: #74500c; font-size: 13px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; }
.footer-grid p { margin-top: 14px; max-width: 420px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.footer-col h3 { margin-bottom: 12px; color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-4); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-grid, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .toc { display: none; }
}

@media (max-width: 960px) {
  .hero-grid, .reset-band-grid, .reset-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .snapshot { max-width: 560px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-art { min-height: 300px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { position: static; }
  .progress-card { max-width: 480px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 52px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head .lede { margin-top: 10px; }

  .header-inner { gap: 10px; min-height: 60px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-name { font-size: 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .header-actions .btn { display: none; }

  .hero { padding: 48px 0 64px; }
  .hero-lede { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .snapshot { padding: 20px; }
  .snapshot::after { right: -8px; bottom: -8px; }

  .topic-grid, .grade-grid, .principles { grid-template-columns: minmax(0, 1fr); }
  .topic-card { min-height: 0; }
  .feature-art, .feature-body { padding: 26px 22px; }
  .mini-map { gap: 6px; padding: 16px; }
  .mini-map span { border-radius: 7px; font-size: 11px; }
  .safety { grid-template-columns: minmax(0, 1fr); padding: 22px; }

  .article-hero { padding: 40px 0 32px; }
  .article-dek { font-size: 16.5px; }
  .article-layout { padding-top: 36px; }
  .prose p, .prose li { font-size: 16px; }
  .keypoints { padding: 22px 20px; }
  .claim { padding: 16px; gap: 12px; }

  .reset-hero { padding: 36px 0 28px; }
  .reset-hero h1 { font-size: 1.9rem; }
  .today-card { padding: 24px 18px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .completion-row .btn { flex: 1 1 100%; }
  .completion-row .text-button.danger { margin-left: 0; }
  .progress-ring { width: 100px; height: 100px; flex-basis: 100px; }
  .progress-ring-inner { width: 78px; height: 78px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Home: series link under featured guide ---------- */
.series-next { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; transition: border-color .15s ease; }
.series-next:hover { border-color: var(--ink); }
.series-label { flex: 0 0 auto; color: var(--brand); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
.series-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.series-next .arrow { font-family: var(--mono); color: var(--brand); transition: transform .15s ease; }
.series-next:hover .arrow { transform: translateX(3px); }
@media (max-width: 760px) {
  .series-next { flex-wrap: wrap; gap: 8px 12px; padding: 16px 18px; }
  .series-title { flex-basis: 100%; order: 3; }
  .series-next .arrow { display: none; }
}

/* ---------- Guides listing ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-chip .count { font-family: var(--mono); font-size: 12px; opacity: .7; }
.filter-chip .count:empty { display: none; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.guide-card[hidden] { display: none; }
a.guide-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card-top { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-card h2 { font-size: 19px; font-weight: 700; line-height: 1.4; }
.guide-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.7; }
.guide-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-4); font-family: var(--mono); font-size: 12px; }
.guide-card-foot .grades { display: inline-flex; gap: 4px; }
.guide-card-foot .grade { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; font-size: 12px; }
.guide-card.is-soon { background: transparent; border-style: dashed; }
.guide-card.is-soon h2 { color: var(--ink-3); }
.section-more { margin-top: 28px; text-align: center; }
@media (max-width: 1100px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .filter-chip { flex: 0 0 auto; }
}

/* ---------- Shared form bits for tools ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.input-unit select { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 8px 10px 12px; background: transparent; color: var(--ink); font-size: 15px; }
.input-unit.grow { flex: 1; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.7; resize: vertical; }
textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 93, 87, 0.14); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-3); font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: var(--grade-d); color: var(--grade-d); }
.side-title { font-size: 17px; font-weight: 700; }
.side-col { display: grid; gap: 16px; align-content: start; }
.tool-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tool-block h3 { font-size: 15px; font-weight: 700; }
.tool-block .btn { justify-self: start; }
.round-box { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--dark); color: var(--on-dark); display: grid; gap: 10px; }
.round-box[hidden] { display: none; }
.round-box .mini-label { color: var(--lime); }
.round-box p { color: var(--on-dark-2); font-size: 13.5px; line-height: 1.6; }
.round-box .btn { justify-self: start; }
.tool-card .topic-icon { margin-bottom: 2px; }
.tool-card .guide-card-foot { color: var(--brand); font-family: var(--font); font-size: 14px; font-weight: 600; }

/* ---------- Evidence lookup ---------- */
.lookup-search { display: flex; align-items: center; gap: 12px; max-width: 760px; min-height: 60px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.lookup-search svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--ink-3); }
.lookup-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.lookup-search:focus-within { box-shadow: 0 0 0 4px rgba(201, 240, 107, 0.6); }
.lookup-filters { display: grid; gap: 4px; margin: 18px 0 28px; }
.lookup-filters .filter-row { margin-bottom: 0; }
.grade-filter .filter-chip { padding-left: 6px; }
.grade-filter .grade { width: 28px; height: 28px; flex-basis: 28px; border-radius: 999px; font-size: 12px; }
.grade-filter .filter-chip[aria-pressed="true"] .grade { background: #fff; }
.lookup-results { display: grid; gap: 18px; }
.lookup-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 90px; }
.lookup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lookup-head h2 { font-size: 24px; font-weight: 700; }
.lookup-head h2 small { margin-left: 10px; color: var(--ink-4); font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.04em; }
.claim-list { margin: 0; padding: 0; list-style: none; }
.claim-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.claim-row .grade { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 17px; }
.claim-grade-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }
.grade-text-a { color: var(--grade-a); } .grade-text-b { color: var(--grade-b); } .grade-text-c { color: var(--grade-c); } .grade-text-d { color: var(--grade-d); }
.claim-title { margin-top: 2px; font-size: 16.5px; font-weight: 600; line-height: 1.55; }
.claim-note { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.claim-source { margin-top: 6px; color: var(--ink-4); font-family: var(--mono); font-size: 12px; }
.lookup-caution { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--grade-d-bg); color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.lookup-caution strong { color: var(--grade-d); }
.lookup-empty { padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); font-size: 15px; }
.lookup-empty a { color: var(--brand); }
.lookup-legend { margin-top: 28px; color: var(--ink-4); font-size: 13px; line-height: 1.7; }

/* ---------- Visit prep ---------- */
.prep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.prep-main { display: grid; gap: 16px; }
.prep-block { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.prep-block h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 13px; }
.question-group { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.question-group summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.question-group summary::-webkit-details-marker { display: none; }
.question-group summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); }
.question-group[open] summary::after { content: "−"; }
.question-group .task-list { padding: 0 12px 12px; }
.question-group .task-item { background: var(--surface); }
.question-group .task-item input:checked + span { text-decoration: none; color: var(--ink); }
.question-guide { display: inline-block; margin: 0 16px 14px; color: var(--brand); font-size: 13.5px; text-decoration: none; }
.question-guide:hover { text-decoration: underline; }
.add-row { display: flex; gap: 10px; margin-top: 14px; }
.custom-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.custom-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #b5dcc6; border-radius: var(--r-sm); background: var(--grade-a-bg); font-size: 15px; }
.med-list { display: grid; gap: 8px; margin-bottom: 12px; }
.med-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 120px 40px; gap: 8px; }
.med-row input, .med-row select { min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 15px; }
.med-row input:focus, .med-row select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 93, 87, 0.14); }
.prep-side { position: sticky; top: 88px; }
.prep-side .map-card { display: grid; gap: 12px; }
.prep-print { width: 100%; }
.side-tip { color: var(--ink-4); font-size: 12.5px; line-height: 1.6; }
.prep-side .text-button { justify-self: start; }

/* ---------- Protein calculator ---------- */
.calc { padding: 24px; border: 1.5px solid var(--ink); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 90px; }
.calc-title { margin-bottom: 14px !important; font-family: var(--mono); font-size: 12.5px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand) !important; }
.calc-form { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; }
.calc-result { margin-top: 16px; }
.calc-empty { color: var(--ink-4) !important; font-size: 14.5px !important; }
.calc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-stats > div { padding: 14px; border-radius: var(--r-md); background: var(--dark); color: var(--on-dark); display: grid; gap: 2px; }
.calc-label { color: var(--on-dark-2); font-size: 12.5px; }
.calc-stats strong { color: var(--lime); font-family: var(--display); font-size: 26px; line-height: 1.2; }
.calc-unit { color: var(--on-dark-2); font-size: 12.5px; }
.calc-example, .calc-note { margin-top: 12px !important; font-size: 13.5px !important; line-height: 1.7 !important; color: var(--ink-3) !important; }

/* ---------- Print ---------- */
.print-area { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body.has-print-area > *:not(.print-area) { display: none !important; }
  body.has-print-area .print-area { display: block !important; color: #000; font-size: 11pt; line-height: 1.5; }
  .print-area h1 { font-size: 18pt; margin: 0 0 4pt; }
  .print-area h2 { font-size: 12.5pt; margin: 14pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #000; }
  .print-area .print-head p { color: #333; }
  .print-area ol { margin: 0; padding-left: 1.4em; }
  .print-area li { margin: 3pt 0; }
  .print-area table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .print-area th, .print-area td { border: 1px solid #999; padding: 2.5pt 5pt; text-align: left; vertical-align: top; }
  .print-area th { background: #eee; }
  .print-area tr { break-inside: avoid; }
  .print-muted { color: #666; }
  .print-notes { white-space: pre-wrap; }
  .print-lines span { display: block; height: 20pt; border-bottom: 1px solid #999; }
  .print-foot { margin-top: 16pt; color: #555; font-size: 9pt; }
}

@media (max-width: 960px) {
  .prep-layout { grid-template-columns: minmax(0, 1fr); }
  .prep-side { position: static; }
}
@media (max-width: 760px) {
  .lookup-search { min-height: 54px; padding: 0 16px; }
  .lookup-search input { font-size: 16px; }
  .lookup-card { padding: 20px 18px; }
  .lookup-head h2 small { display: block; margin: 4px 0 0; }
  .calc { padding: 18px; }
  .calc-form { grid-template-columns: minmax(0, 1fr); }
  .calc-stats { grid-template-columns: minmax(0, 1fr); }
  .calc-stats > div { grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; }
  .med-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .med-row input:first-child { grid-column: 1 / -1; }
  .med-row input:nth-child(2) { grid-column: 1 / -1; }
  .med-row select { grid-column: 1; }
  .add-row { flex-wrap: wrap; }
  .add-row .input-unit { flex-basis: 100%; }
  .field-grid.two { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Home: tools row ---------- */
.tool-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-mini { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.tool-mini:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool-mini-kicker { color: var(--brand); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.tool-mini strong { font-size: 17px; }
.tool-mini > span:last-child { color: var(--ink-3); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .tool-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Weight companion ---------- */
.weight-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.weight-main { display: grid; gap: 16px; }
.weight-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.bmi-form { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.sex-field { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.sex-field legend { margin-bottom: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; float: left; width: 100%; }
.sex-field label { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-size: 15px; }
.sex-field label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.sex-field input { accent-color: var(--lime); }
#bmiResult { margin-top: 18px; }
.bmi-top { display: flex; flex-wrap: wrap; gap: 10px; }
.bmi-stat { display: grid; gap: 2px; min-width: 150px; padding: 14px 16px; border-radius: var(--r-md); }
.bmi-stat strong { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.bmi-band { font-weight: 700; font-size: 15px; }
.tone-a { background: var(--grade-a-bg); color: var(--grade-a); }
.tone-c { background: var(--grade-c-bg); color: var(--grade-c); }
.tone-d { background: var(--grade-d-bg); color: var(--grade-d); }
.bmi-stat .calc-label { color: inherit; opacity: .8; }
.bmi-scale { position: relative; display: flex; height: 12px; margin-top: 20px; border-radius: 999px; overflow: visible; }
.bmi-scale .seg { height: 100%; opacity: .9; }
.bmi-scale .seg:first-child { border-radius: 999px 0 0 999px; }
.bmi-scale .seg:nth-last-child(2) { border-radius: 0 999px 999px 0; }
.bmi-scale .seg.tone-a { background: #7cc9a1; } .bmi-scale .seg.tone-c { background: #f0c46b; } .bmi-scale .seg.tone-d { background: #e7907f; }
.bmi-marker { position: absolute; top: -6px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.bmi-ticks { position: relative; height: 20px; margin-top: 4px; color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; }
.bmi-ticks span { position: absolute; transform: translateX(-50%); }
.bmi-message { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.bmi-message a { color: var(--brand); font-weight: 600; }
#log .add-row { align-items: end; }
#log .add-row .field { flex: 1; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.chart-stat { color: var(--ink); font-size: 15px; font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.chart-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); padding: 8px; }
.chart-empty { padding: 60px 0; text-align: center; color: var(--ink-4); }
.weight-chart { display: block; width: 100%; height: auto; }
.weight-chart .grid { stroke: var(--line); stroke-width: 1; }
.weight-chart .axis-zero { stroke: var(--line-2); stroke-width: 1.5; }
.weight-chart .tick { fill: var(--ink-4); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.weight-chart .you-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.weight-chart .you-dot { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.weight-chart .ref-drug { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.weight-chart .ref-placebo { fill: #fff; stroke: var(--ink-4); stroke-width: 1.5; }
.weight-chart .ref-label { fill: var(--ink-2); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.chart-legend[hidden] { display: none; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 11px; height: 11px; }
.lg-you { border-radius: 50%; background: var(--ink); }
.lg-drug { background: var(--lime); border: 1.5px solid var(--ink); transform: rotate(45deg) scale(.85); }
.lg-placebo { border-radius: 50%; border: 1.5px solid var(--ink-4); background: #fff; }
.log-table-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.log-table-wrap summary { padding: 12px 16px; font-weight: 600; cursor: pointer; }
.log-table-wrap .count { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.log-list { margin: 0; padding: 0 12px 12px; list-style: none; display: grid; gap: 6px; }
.log-row { display: grid; grid-template-columns: 1fr auto auto 40px; gap: 14px; align-items: center; padding: 6px 4px 6px 12px; border-radius: var(--r-sm); background: var(--bg); font-family: var(--mono); font-size: 14px; }
.log-pct { color: var(--ink-3); min-width: 56px; text-align: right; }
.habit-auto { display: block; color: var(--ink-4); font-size: 12.5px; }
.coach-card { padding: 22px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.coach-kicker { margin-bottom: 12px; color: var(--lime); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }
.coach-msg { position: relative; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--dark-2); color: var(--on-dark); font-size: 14.5px; line-height: 1.7; }
.coach-msg + .coach-msg { margin-top: 10px; }
.coach-msg a { color: var(--lime); font-weight: 600; white-space: nowrap; }
.warn-card ul { margin: 10px 0 12px; padding-left: 1.2em; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.warn-card .side-title { color: var(--grade-d); }
.disclaimer { background: #fffaf0; border: 1px solid #efd9a6; }
.disclaimer p { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.disclaimer p + p { margin-top: 8px; }
.disclaimer a { color: var(--brand); }
@media (max-width: 960px) {
  .weight-layout { grid-template-columns: minmax(0, 1fr); }
  .weight-side { position: static; }
}
@media (max-width: 760px) {
  .bmi-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sex-field { grid-column: 1 / -1; }
  .bmi-stat { min-width: 0; flex: 1; }
  .log-row { grid-template-columns: 1fr auto 40px; }
  .log-pct { grid-column: 2; grid-row: 2; }
  .tool-row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1100px) { .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  #log .add-row .field { flex: 1 1 100%; }
  #log .add-row .btn { flex: 1 1 100%; }
}

/* ---------- Trial curves, legends, progress panel ---------- */
.weight-chart .ref-line-drug { fill: none; stroke: #8fb83a; stroke-width: 2.5; stroke-linejoin: round; }
.weight-chart .ref-line-drug.alt { stroke: #2c649d; stroke-dasharray: 6 4; }
.weight-chart .ref-line-drug.d5 { stroke: #c9e58a; }
.weight-chart .ref-line-drug.d10 { stroke: #a3cc4f; }
.weight-chart .ref-line-drug.d15 { stroke: #6f9a1f; }
.weight-chart .ref-line-mid { fill: none; stroke: #d19a2a; stroke-width: 2.5; }
.weight-chart .ref-line-placebo { fill: none; stroke: #9aa6a4; stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.weight-chart .ref-line-placebo.alt { stroke: #7f9dbd; }
.weight-chart .vline { stroke: var(--coral); stroke-width: 1; stroke-dasharray: 3 3; }
.weight-chart .vline-label { fill: var(--coral); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; }
.weight-chart .series-label { fill: var(--ink-3); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; }
.chart-legend { display: grid; gap: 6px; }
.chart-legend .lg { flex: 0 0 22px; width: 22px; height: 0; border-top: 3px solid; border-radius: 2px; }
.chart-legend .lg.you { width: 10px; flex-basis: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--ink); }
.chart-legend .lg.ref-line-drug { border-color: #8fb83a; }
.chart-legend .lg.ref-line-drug.alt { border-top-style: dashed; border-color: #2c649d; }
.chart-legend .lg.d5 { border-color: #c9e58a; } .chart-legend .lg.d10 { border-color: #a3cc4f; } .chart-legend .lg.d15 { border-color: #6f9a1f; }
.chart-legend .lg.ref-line-mid { border-color: #d19a2a; }
.chart-legend .lg.ref-line-placebo { border-top: 3px dotted #9aa6a4; }
.chart-legend .lg.ref-line-placebo.alt { border-top-color: #7f9dbd; }
#refNote { display: grid; gap: 4px; }
#refNote[hidden] { display: none; }
.ref-cite { color: var(--ink-4); font-size: 12px; }
.progress-panel { display: grid; gap: 10px; margin-top: 16px; }
.progress-panel:empty { display: none; }
.progress-box { padding: 16px 18px; border-radius: var(--r-md); background: var(--brand-tint); display: grid; gap: 8px; }
.progress-box.warn { background: #fff3d6; }
.progress-title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.progress-box p { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.milestones { display: flex; gap: 8px; }
.milestone { display: grid; place-items: center; min-width: 52px; height: 34px; padding: 0 10px; border: 1.5px dashed var(--line-2); border-radius: 999px; color: var(--ink-4); font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--surface); }
.milestone.on { border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink); }
.dose-form select { min-width: 0; }
.trial-legend { display: grid; gap: 6px; margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.trial-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.chart-card .chart-tabs { margin-bottom: 12px; }
.chart-card .chart-box { border: 0; padding: 0; background: transparent; }
.prose .chart-legend span { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.add-row { align-items: flex-end; }
.add-row > .btn { flex: 0 0 auto; min-height: 46px; }
.dose-form .field { flex: 1; }
#doseList .custom-item { padding: 8px 14px; font-family: var(--mono); font-size: 14px; }
.nav .nav-mobile-only { display: none; }
@media (max-width: 760px) { .nav.is-open .nav-mobile-only { display: block; } }

/* ---------- Site search (header) ---------- */
.site-search { position: relative; }
.search-field { display: flex; align-items: center; gap: 8px; width: 240px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, width .2s ease; }
.search-field:focus-within { width: 300px; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 240, 107, 0.55); }
.search-field svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--ink-3); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-4); font-family: var(--mono); font-size: 11px; }
.search-field:focus-within .search-kbd { display: none; }
.search-icon { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); place-items: center; }
.search-icon svg { width: 18px; height: 18px; }
.search-results { position: absolute; right: 0; top: calc(100% + 10px); width: 440px; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 20px 50px rgba(13, 38, 38, 0.16); z-index: 60; }
.search-results[hidden] { display: none; }
.search-hit { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-hit + .search-hit { margin-top: 2px; }
.search-hit:hover, .search-hit.is-active { background: var(--bg-2); }
.search-kicker { color: var(--brand); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-title { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.search-snippet { color: var(--ink-3); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-snippet mark { background: rgba(201, 240, 107, 0.7); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 12px; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.search-all { display: block; padding: 4px 12px 12px; color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 1100px) {
  .search-field { width: 180px; }
  .search-field:focus-within { width: 220px; }
}
@media (max-width: 760px) {
  .search-icon { display: grid; }
  .search-field, .search-kbd { display: none; }
  .site-search.is-open .search-field { display: flex; position: fixed; top: 68px; left: 12px; right: 12px; width: auto; height: 48px; box-shadow: var(--shadow); z-index: 61; }
  .site-search.is-open .search-field input { font-size: 16px; }
  .search-results { position: fixed; top: 124px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 140px); }
}

/* ---------- Nutrition calculator tabs ---------- */
.calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.calc-head .calc-title { margin: 0 !important; }
.calc-tabs { margin: 0; }
.calc-tabs .filter-chip { min-height: 36px; font-size: 14px; }
.calc-panel[hidden] { display: none; }
.calorie-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-field { grid-column: 1 / -1; display: grid; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.activity-field legend { margin-bottom: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.activity-field label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; font-size: 14.5px !important; line-height: 1.6; color: var(--ink-2); }
.activity-field label:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.activity-field input { margin-top: 5px; accent-color: var(--brand); }
.activity-field strong { margin-right: 8px; color: var(--ink); }
.calorie-form .toggle { grid-column: 1 / -1; }
.calc-stats.single { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.calc-stats.single > div { background: var(--brand); }
.calc-warn { margin-top: 12px !important; padding: 12px 14px; border-radius: var(--r-sm); background: #fff3d6; color: var(--ink-2) !important; font-size: 14px !important; line-height: 1.7 !important; }
@media (max-width: 760px) { .calorie-form { grid-template-columns: minmax(0, 1fr); } }
.calc-lead { color: var(--ink-2) !important; }
.calc-pointer { padding: 12px 16px; border-radius: var(--r-sm); background: var(--brand-tint); font-size: 15px !important; }
.toc li.toc-tool { counter-increment: none; margin-bottom: 6px; }
.toc li.toc-tool a { color: var(--brand); font-weight: 600; }
.toc li.toc-tool a::before { content: "工具"; padding: 1px 6px; border-radius: 5px; background: var(--lime); color: var(--ink); font-size: 10.5px; }
.calorie-form .cal-sex { grid-column: 1 / 2; }
.cal-sex label { min-height: 46px; }
.calc-stats > div.calc-missing { background: var(--bg-2); color: var(--ink-3); }
.calc-stats > div.calc-missing .calc-label, .calc-stats > div.calc-missing .calc-unit { color: var(--ink-3); }
.calc-stats.combined { margin-top: 10px; }
.calc-stats.combined > div { background: var(--lime); color: var(--ink); }
.calc-stats.combined .calc-label, .calc-stats.combined .calc-unit { color: var(--ink-2); }
.calc-stats.combined strong { color: var(--ink); }
.calc-stats .calc-label { font-size: 12px; }
.calorie-form .cal-sex { display: block; }
.calorie-form .cal-sex legend { float: none; width: auto; display: block; margin-bottom: 6px; }
.calorie-form .cal-sex label { display: inline-flex; margin-right: 6px; }

/* ---------- Footer: two link lanes ---------- */
.footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)); gap: 48px; }
.footer-col li.footer-all a { color: var(--brand); font-weight: 600; }
.footer-legal-links a { color: var(--ink-3); text-decoration: none; }
.footer-legal-links a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Privacy page & discreet footer link ---------- */
.privacy-layout { grid-template-columns: minmax(0, 760px); }
.legal-link { color: inherit; text-decoration: none; }
.legal-link:hover { color: var(--brand); text-decoration: underline; }
.legal-sep { margin: 0 4px; }
.privacy-layout { padding-left: 28px; padding-right: 28px; }
@media (max-width: 760px) { .privacy-layout { padding-left: 16px; padding-right: 16px; } }

/* ---------- Home hero: tools button (phones only) ---------- */
.hero-tools { display: none; }
.hero-tools svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 760px) {
  .hero-actions .hero-tools { display: inline-flex; white-space: normal; text-align: left; }
}
