:root {
  --paper: #f7f3ea;
  --paper-2: #efe8d8;
  --ink: #1d261d;
  --ink-2: #4a544a;
  --green: #2e5a39;
  --green-2: #dfe9dc;
  --straw: #b9790f;
  --straw-2: #f4e3bf;
  --straw-text: #8a5a0b;
  --red: #8f3626;
  --line: #d9cfba;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 72rem;
  --text: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p, ul, ol, table { margin: 0 0 1.1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.8rem; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.text { max-width: var(--text); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font: 600 1.25rem var(--serif); color: var(--ink); text-decoration: none; }
.logo svg { width: 1.9rem; height: 1.9rem; }
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 0.4rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 3.2rem 0 1.4rem; }
.eyebrow { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--straw-text); margin-bottom: 0.9rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; }

/* Planner */
.planner { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2.2rem; padding: 1.2rem 0 2.5rem; align-items: start; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } }
.controls { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: 1rem; }
@media (max-width: 860px) { .controls { position: static; } }
.field { margin-bottom: 1.15rem; border: 0; padding: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; padding: 0; }
.hint { display: block; font-size: 0.82rem; color: var(--ink-2); font-weight: 400; margin-top: 0.15rem; }
.count { display: flex; align-items: center; gap: 0.5rem; }
.count button { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 600 1.25rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.count button:hover { background: var(--paper-2); }
.count input { width: 5rem; height: 2.6rem; text-align: center; font: 600 1.25rem var(--sans); border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.4rem, 1fr)); gap: 0.35rem; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 0.5rem 0.4rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.88rem; background: var(--paper); cursor: pointer; }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; outline: 2px solid var(--green); outline-offset: 1px; }
@media (forced-colors: active) { .seg input:checked + span { outline: 3px solid Highlight; } }
.seg input:focus-visible + span { outline: 3px solid var(--straw); outline-offset: 2px; }

.results { min-width: 0; }
.headline { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; margin-bottom: 1rem; }
.big { font: 600 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1 var(--serif); }
.big small { font: 500 1rem var(--sans); color: var(--ink-2); margin-left: 0.35rem; }
.plan-figure { margin: 0 0 1.4rem; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.plan-figure svg { display: block; width: auto; max-width: 100%; max-height: 21rem; margin: 0 auto; }
.plan-figure figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.6rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0 0 1.2rem; }
.specs div { padding: 0.85rem 0.2rem 0.85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.82rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.specs dd { margin: 0.15rem 0 0; font: 600 1.25rem var(--serif); }
.specs dd span { display: block; font: 400 0.85rem var(--sans); color: var(--ink-2); }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1rem; border-radius: 8px; border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); }
.btn:hover { filter: brightness(1.08); }
.note { font-size: 0.9rem; color: var(--ink-2); border-left: 3px solid var(--straw); padding: 0.2rem 0 0.2rem 0.9rem; margin: 1.2rem 0; }

/* Sections and editorial lists */
.band { padding: 3rem 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--paper-2); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 1rem; } }
.guide-list { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guide-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.2rem 0.6rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.guide-list li::before { counter-increment: g; content: counter(g, decimal-leading-zero); font: 600 0.85rem var(--mono); color: var(--straw-text); padding-top: 0.25rem; }
.guide-list a { font: 600 1.12rem var(--serif); text-decoration: none; color: var(--ink); }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { grid-column: 2; margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.chips a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; text-decoration: none; background: #fffdf8; }
.chips a:hover, .chips a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

/* Articles */
.article { padding: 2.4rem 0 3rem; }
.crumbs { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-2); }
.meta { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 1.6rem; }
.answer { font-size: 1.15rem; background: var(--green-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.6rem; }
.answer strong { font-family: var(--serif); }
.table-wrap { overflow-x: auto; margin: 0 0 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
sup.cite a { text-decoration: none; font-size: 0.75em; }
.sources { font-size: 0.9rem; }
.sources li { margin-bottom: 0.5rem; }
.sources q { color: var(--ink-2); }
.cta-box { margin: 2rem 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box p { margin: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--ink-2); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }
.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media print {
  .site-head, .site-foot, .controls, .actions, .band, .crumbs, .cta-box { display: none !important; }
  body { background: #fff; }
  .planner { display: block; }
}

/* Food verdicts */
.verdict { margin: 0 0 1.4rem; }
.verdict span, .tag { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; border: 1px solid; }
.v-yes { background: #dfe9dc; color: #234a2d; border-color: #9fbf9f; }
.v-limit { background: #f4e3bf; color: #6b4708; border-color: #d9b46a; }
.v-no { background: #f3d9d3; color: #7a2a1c; border-color: #d39b8e; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.search { width: 100%; max-width: 26rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); margin-bottom: 1rem; }
