:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647067;
  --line: #dce3dc;
  --paper: #ffffff;
  --wash: #f3f7f2;
  --accent: #146c43;
  --accent-soft: #def5e8;
  --warn: #8a5a00;
  --warn-soft: #fff1c7;
  --danger: #a02a2a;
  --danger-soft: #fde4e4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.page-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 600; }
.brand .brand-mark { color: inherit; font-size: 20px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 64px 0 30px; }
h1 { margin: 10px 0 8px; font-size: clamp(42px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.04em; }
h2 { margin: 0 0 18px; font-size: 22px; }
.summary { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 13px; }
.official-link { flex: none; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; }
.notice { display: grid; gap: 2px; margin-bottom: 18px; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; }
.card { margin: 18px 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 30px rgba(30, 48, 36, .045); }
.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.status-item { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.status-name { color: var(--muted); font-size: 13px; }
.badge { width: fit-content; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-yes { color: var(--accent); background: var(--accent-soft); }
.badge-partial { color: var(--warn); background: var(--warn-soft); }
.badge-no { color: var(--danger); background: var(--danger-soft); }
.badge-unknown { color: var(--muted); background: var(--wash); }
.environment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 24px 0 0; }
.environment div { border-top: 1px solid var(--line); padding-top: 12px; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 2px 0 0; }
.notes { margin: 22px 0 0; padding: 14px; border-radius: 10px; background: var(--wash); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split .card { margin: 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.evidence-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.evidence-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--wash); }
.evidence-card figcaption { padding: 12px; color: var(--muted); font-size: 13px; }
.history { margin: 0; padding: 0; list-style: none; }
.history-item { padding: 16px 0; border-top: 1px solid var(--line); }
.history-item:first-child { border-top: 0; padding-top: 0; }
.history-date { font-weight: 800; }
.history-item p, .muted, footer { color: var(--muted); }
footer { padding: 24px 0 0; font-size: 13px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.site-tagline { color: var(--muted); font-size: 13px; }
.home-hero { max-width: 760px; padding: 50px 0 42px; }
.home-hero h1 { max-width: 760px; margin-top: 8px; font-size: clamp(38px, 5vw, 56px); }
.home-hero > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.home-sidebar { display: grid; gap: 16px; position: sticky; top: 24px; }
.sidebar-block { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.sidebar-title { margin: 0 0 13px; font-size: 14px; font-weight: 800; }
.mode-grid { display: grid; gap: 8px; }
.mode-card { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); text-align: left; cursor: pointer; }
.mode-card strong { font-size: 14px; }
.mode-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.mode-card:hover { border-color: #9db7a7; transform: translateY(-1px); }
.mode-card:active { transform: translateY(0); }
.mode-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.catalog { min-width: 0; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.catalog-head h2 { margin: 0; font-size: 30px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font: inherit; font-size: 13px; cursor: pointer; }
.filter-chip:hover { border-color: #9db7a7; color: var(--ink); }
.filter-chip.active { border-color: var(--ink); color: white; background: var(--ink); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tool-card { display: grid; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.tool-card:hover { border-color: #adc2b3; box-shadow: 0 14px 32px rgba(30, 48, 36, .08); transform: translateY(-2px); }
.tool-card[hidden] { display: none; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.availability { color: var(--accent); font-weight: 800; }
.free-label { white-space: nowrap; }
.tool-card h2 { margin: 16px 0 4px; font-size: 24px; }
.tool-card h2 a { color: var(--ink); text-decoration: none; }
.tool-card h2 a:hover { color: var(--accent); }
.tool-card p { color: var(--muted); }
.tool-card .consumer-summary { margin: 0 0 12px; }
.tool-card .tasting-note { margin: 0 0 16px; padding: 11px 12px; border-radius: 9px; background: var(--wash); color: var(--ink); font-size: 14px; }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.tool-card-footer small { color: var(--muted); }
.tool-card-footer a { color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.empty-state { display: grid; justify-items: start; gap: 4px; padding: 28px; border: 1px dashed #b8c6bb; border-radius: 15px; background: var(--paper); }
.empty-state span { color: var(--muted); }
.empty-state button { margin-top: 10px; padding: 8px 14px; border: 0; border-radius: 8px; color: white; background: var(--ink); font: inherit; cursor: pointer; }
.trust-block p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.home-shell > footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.ad-slot[hidden] { display: none !important; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 1080px); padding-top: 18px; }
  .hero { display: grid; padding-top: 42px; }
  .official-link { width: 100%; text-align: center; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .environment, .split, .evidence-grid { grid-template-columns: 1fr; }
  .card { padding: 19px; border-radius: 12px; }
  .site-header { align-items: flex-start; }
  .site-tagline { display: none; }
  .home-hero { padding: 38px 0 30px; }
  .home-layout { display: flex; flex-direction: column; gap: 26px; }
  .home-sidebar { order: -1; position: static; width: 100%; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card { min-height: auto; }
  .catalog-head { align-items: stretch; display: grid; }
  .tool-card { padding: 19px; }
  .tool-card-footer { align-items: flex-start; flex-direction: column; }
  .home-shell > footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 460px) {
  .mode-grid { grid-template-columns: 1fr; }
}
