:root {
  --bg: #fffaf0;
  --bg-alt: #f6efe0;
  --surface: #ffffff;
  --ink: #26241f;
  --ink-soft: #4a463d;
  --green: #1f5c4d;
  --green-dark: #164538;
  --green-tint: #e4efe8;
  --sun: #f2a03d;
  --sun-tint: #fdeccb;
  --clay: #9a3a24;
  --line: #e0d6c0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.08), 0 8px 24px rgba(60, 45, 20, 0.08);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.ts-1 { font-size: 125%; }
html.ts-2 { font-size: 137.5%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 4px solid #1a56db; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
code { background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
strong { font-weight: 700; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: 0.8rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 3px solid var(--sun); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--green-dark); }
.brand-tag { font-size: 0.82rem; color: var(--ink-soft); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 0.65rem 1rem; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--ink); border-radius: 10px; font-size: 1.05rem; }
.main-nav a:hover { background: var(--green-tint); color: var(--green-dark); }
.main-nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0.7rem 1.6rem; font: 700 1.05rem/1.2 var(--sans); color: #fff; background: var(--green); border: 3px solid var(--green); border-radius: 12px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 0; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff1d6 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; font-size: 0.85rem; color: var(--clay); margin-bottom: 0.7rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); line-height: 1.6; max-width: 38rem; }
.hero-art { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.hero-art img { display: block; width: 100%; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 600; font-size: 0.98rem; }
.hero-points li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.hero-points li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sun); display: inline-block; }

.page-hero { background: var(--green-tint); border-bottom: 1px solid var(--line); padding-block: clamp(1.8rem, 4vw, 3rem); }
.page-hero-plain { background: linear-gradient(180deg, #fff1d6, var(--bg)); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lede { margin-bottom: 0; }

/* Sections */
.section { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
.text-link { font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.15s ease; }
.card:hover { transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 1200 / 630; background: var(--bg-alt); }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.3rem; margin-bottom: 0.45em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green-dark); text-decoration: underline; }
.card-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0.9em; }
.meta { color: var(--ink-soft); font-size: 0.92rem; margin: auto 0 0; }
.chip { margin: 0 0 0.7rem; }
.chip a { display: inline-block; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--chip, var(--green)); background: var(--chip-bg, var(--green-tint)); padding: 0.25rem 0.8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--chip, var(--green)) 30%, transparent); }
.chip a:hover { text-decoration: underline; }
.card-lead { grid-column: 1 / -1; flex-direction: row; }
.card-lead .card-img { flex: 1.2; aspect-ratio: auto; min-height: 16rem; }
.card-lead .card-body { flex: 1; justify-content: center; padding: 2rem; }
.card-lead .card-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.cat-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
@media (min-width: 62rem) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .cat-grid > .cat-tile { grid-column: span 2; }
  .cat-grid > .cat-tile:nth-child(n+4) { grid-column: span 3; }
}
.cat-tile { display: block; padding: 1.4rem; border-radius: var(--radius); background: var(--tint); border: 2px solid color-mix(in srgb, var(--col) 35%, transparent); text-decoration: none; color: var(--ink); }
.cat-tile:hover { border-color: var(--col); color: var(--ink); }
.cat-tile h3 { color: var(--col); margin-bottom: 0.3em; }
.cat-tile p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.cat-tile .count { display: block; margin-top: 0.8rem; font-weight: 700; font-size: 0.92rem; color: var(--col); }

.promise { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.promise-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.promise-item h3 { color: var(--green-dark); }
.promise-item p { margin: 0; color: var(--ink-soft); }
.promise-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sun-tint); color: var(--clay); font-weight: 800; margin-bottom: 0.9rem; font-family: var(--serif); font-size: 1.2rem; }

.cta-band { background: var(--green); color: #fff; border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #e6f2ec; max-width: 36rem; }
.cta-band .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--sun-tint); border-color: var(--sun-tint); }

/* Breadcrumbs */
.breadcrumbs { padding-block: 1rem 0; font-size: 0.95rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.4rem; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* Article */
.article-head { padding-block: 1.2rem 1.5rem; }
.article-head h1 { margin: 0.4rem 0 0.5em; max-width: 22ch; max-width: 26ch; }
.article-head .byline { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.article-hero { margin: 0 auto 2rem; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; background: var(--bg-alt); }
.article-hero img { display: block; width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 17rem; gap: clamp(2rem, 5vw, 4rem); justify-content: center; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1.6rem; padding: 0.8rem 1rem; background: var(--bg-alt); border-radius: 12px; border: 1px solid var(--line); }
.toolbar-label { font-weight: 700; margin-right: 0.3rem; }
.toolbar button { min-height: 48px; min-width: 48px; padding: 0.4rem 0.9rem; font: 700 1rem var(--sans); background: #fff; color: var(--green-dark); border: 2px solid var(--green); border-radius: 10px; cursor: pointer; }
.toolbar button:hover { background: var(--green-tint); }
.toolbar [aria-pressed="true"] { background: var(--green); color: #fff; }

.prose { font-size: 1.1rem; line-height: 1.8; }
.prose h2 { margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.8em; color: var(--green-dark); scroll-margin-top: 6rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li::marker { color: var(--clay); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 1.1rem 1.3rem; background: var(--sun-tint); border-left: 6px solid var(--sun); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; }
.wrap-narrow > .prose { padding-bottom: 3.5rem; }

.takeaways { background: var(--green-tint); border: 2px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: var(--radius); padding: 1.3rem 1.5rem 0.5rem; margin: 0 0 2rem; }
.takeaways h2 { font-size: 1.3rem; margin: 0 0 0.6em; padding: 0; }
.safety-box { background: #fff7f4; border: 2px solid #e5b2a5; border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2.2rem 0; font-size: 1.02rem; }
.safety-box h2 { font-size: 1.2rem; margin: 0 0 0.4em; padding: 0; color: var(--clay); }
.safety-box p:last-child { margin-bottom: 0; }
.callout { border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 0 0 1.8rem; border: 2px solid; }
.callout p:last-child { margin-bottom: 0; }
.callout-info { background: var(--green-tint); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.callout-warn { background: #fff0ec; border-color: #d98f7e; }
.sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid var(--line); font-size: 1rem; }
.sources h2 { font-size: 1.3rem; margin-top: 0; }
.sources li { margin-bottom: 0.5em; }
.disclaimer-line { font-size: 0.95rem; color: var(--ink-soft); background: var(--bg-alt); padding: 1rem 1.2rem; border-radius: 12px; margin-top: 1.6rem; }

.toc { position: sticky; top: 7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; font-size: 1.05rem; }
.toc h2 { font-size: 1.05rem; margin: 0 0 0.6em; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 0.55em; line-height: 1.35; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.related { padding-block: clamp(2rem, 5vw, 3.5rem); background: var(--bg-alt); margin-top: 1rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 2.5rem 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 2.5rem 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)) left center / 0.9rem 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)) right center / 0.9rem 100% no-repeat scroll, #fff; }
.table-hint { display: none; margin: 1.5rem 0 -1.1rem; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; line-height: 1.5; min-width: 38rem; }
caption { text-align: left; font-weight: 700; padding: 0.9rem 1rem; background: var(--bg-alt); }
th, td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--green-tint); }

/* Category list pages */
.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.filter li { margin: 0; }
.filter a { display: inline-block; padding: 0.6rem 1.1rem; min-height: 48px; border-radius: 999px; border: 2px solid var(--green); text-decoration: none; font-weight: 700; color: var(--green-dark); background: #fff; }
.filter a:hover { background: var(--green-tint); }
.filter a[aria-current="page"] { background: var(--green); color: #fff; }

.sitemap-list { columns: 2 18rem; column-gap: 3rem; }

/* Footer */
.site-footer { background: #1b2a25; color: #e9efec; margin-top: 0; padding-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun-tint); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); padding-bottom: 2rem; }
.footer-brand p { color: #cfdcd6; max-width: 22rem; margin-top: 0.8rem; font-size: 0.98rem; }
.brand-footer .brand-name { color: #fff; font-size: 1.3rem; }
.footer-h { font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sun); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.98rem; }
.site-footer li a { display: inline-block; padding-block: 0.15rem; }
.privacy-choices { display: inline-flex !important; align-items: center; gap: 0.5rem; }
.footer-legal { border-top: 1px solid #3b4d46; padding-block: 1.5rem 2rem; font-size: 0.9rem; color: #cfdcd6; }
.footer-legal p { margin-bottom: 0.7rem; max-width: 62rem; }

/* Consent banner */
.consent { position: fixed; inset: auto 0 0 0; z-index: 90; background: #fff; border-top: 4px solid var(--green); box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18); padding-block: 1rem; }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.consent p { margin: 0; flex: 1 1 28rem; font-size: 0.98rem; line-height: 1.55; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.consent .btn { min-height: 48px; padding-inline: 1.3rem; }

.status-pill { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 12px; line-height: 1.35; background: #fff; border: 2px solid var(--green); font-weight: 700; }

.btn[data-consent][aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green-dark); box-shadow: 0 0 0 3px var(--green-tint); }
.btn[data-consent][aria-pressed="true"]::before { content: "\2713"; }
.btn[data-consent][aria-pressed="false"] { background: transparent; color: var(--green-dark); }
.choice-saved { margin: 1rem 0 0; padding: 0.7rem 1rem; border-radius: 10px; background: var(--green-tint); font-weight: 700; }
.choice-saved[hidden] { display: none; }

@media (max-width: 62rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 50rem) {
  .site-header { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .card-lead { flex-direction: column; }
  .card-lead .card-img { min-height: 0; aspect-ratio: 1200 / 630; }
  .card-lead .card-body { padding: 1.3rem; }
  .header-inner { justify-content: center; }
  .main-nav ul { justify-content: center; }
}
@media (max-width: 34rem) {
  .consent { padding-block: 0.7rem; }
  .consent p { font-size: 0.95rem; line-height: 1.45; }
  .consent-more { display: none; }
  .consent-inner { gap: 0.7rem; }
  .consent-actions { width: 100%; flex-wrap: nowrap; }
  .consent .btn { width: auto; min-height: 48px; padding-inline: 0.8rem; }
  .table-hint { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .consent-actions .btn { flex: 1 1 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-soft: #26241f; --line: #8a7f68; }
}

@media print {
  :root { --bg: #fff; }
  html, html.ts-1, html.ts-2 { font-size: 100%; }
  body { font-size: 12pt; line-height: 1.55; background: #fff; }
  .site-header, .site-footer, .consent, .toolbar, .toc, .related, .skip-link, .breadcrumbs, .article-hero { display: none !important; }
  .article-layout { display: block; }
  .takeaways, .safety-box, .disclaimer-line { border: 1px solid #999; background: #fff; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  .print-note { display: block !important; }
}
.print-note { display: none; font-size: 0.9rem; margin-bottom: 1rem; }
