/* ==========================================================================
   Foodi-AI — design system
   One stylesheet for every page. No external fonts or icon CDNs (GDPR-safe,
   zero third-party requests).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand — sampled from the Foodi-AI mark */
  --green-900: #0b2e20;
  --green-800: #103f2c;
  --green-700: #14603f;
  --green-600: #1b7a4b;
  --green-500: #2e9e5b;
  --green-400: #45b65e;
  --green-100: #dff0e5;
  --green-050: #f0f7f2;

  --orange-600: #d9660c;
  --orange-500: #f5821f;
  --orange-100: #fdeedd;

  --red-500: #e8442a;
  --red-050: #fdeceA;

  /* Neutrals */
  --ink-900: #0f1a15;
  --ink-800: #1d2b24;
  --ink-700: #33423b;
  --ink-500: #5c6b63;
  --ink-400: #7c8a83;
  --line: #e0e8e3;
  --line-strong: #c8d5cd;
  --surface: #ffffff;
  --bg: #f7faf8;
  --bg-alt: #eef4f0;

  /* Semantic */
  --primary: var(--green-600);
  --primary-dark: var(--green-700);
  --accent: var(--orange-500);

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: Charter, "Bitstream Charter", "Iowan Old Style",
                  "Palatino Linotype", Palatino, Georgia, serif;

  /* Space scale */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius + elevation */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 21, .05), 0 1px 3px rgba(15, 26, 21, .06);
  --shadow-md: 0 4px 12px rgba(15, 26, 21, .06), 0 2px 4px rgba(15, 26, 21, .04);
  --shadow-lg: 0 18px 40px rgba(15, 26, 21, .10), 0 4px 12px rgba(15, 26, 21, .06);

  --header-h: 72px;
  --maxw: 1180px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchor links (e.g. "How it works") must stop below the sticky header, not under it. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-500); }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p  { text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--ink-500);
  line-height: 1.6;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: var(--s-3);
}
.eyebrow::after {
  content: ""; display: block; width: 38px; height: 3px;
  background: var(--orange-500); border-radius: 2px; margin-top: var(--s-2);
}
.eyebrow.is-centered { display: block; }
.eyebrow.is-centered::after { margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.section { padding-block: clamp(var(--s-7), 5vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-6), 4vw, var(--s-7)); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }

.section-head { max-width: 680px; margin-bottom: var(--s-6); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-3); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 2000;
  background: var(--green-700); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* --- Icons -------------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor;
        stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
        flex: none; }
.icon--lg { width: 28px; height: 28px; }
.sprite { display: none; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 650;
  font-size: .97rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--orange-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--green-050); border-color: var(--green-500); color: var(--green-700); }
.btn--onDark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--onDark:hover { background: #fff; color: var(--green-800); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--green-800);
}
.brand:hover .brand-name { color: var(--green-600); }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; align-items: center; gap: var(--s-5);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none; color: var(--ink-700); font-weight: 550;
  font-size: .95rem; padding: 6px 0; position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange-500); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover { color: var(--green-700); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--green-700); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.lang-switch { display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px; }
.lang-switch a {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-500);
}
.lang-switch a:hover { background: var(--green-050); color: var(--green-700); }
.lang-switch a[aria-current="true"] { background: var(--green-600); color: #fff; }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 8px; cursor: pointer; color: var(--ink-800);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1000px 420px at 8% -8%, var(--green-100), transparent 62%),
    radial-gradient(760px 360px at 98% 6%, var(--orange-100), transparent 58%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(var(--s-7), 5vw, var(--s-9));
}
.hero-grid {
  display: grid; gap: clamp(var(--s-6), 4vw, var(--s-8));
  grid-template-columns: 1.08fr .92fr; align-items: center;
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { margin-bottom: var(--s-5); max-width: 36em; }
.hero-media img {
  width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1; object-fit: cover;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  list-style: none; padding-left: 0;
}
.trust-row li {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--ink-500); font-weight: 550;
}
.trust-row .icon { color: var(--green-500); }

/* Compact hero for interior pages */
.hero--page { padding-block: clamp(var(--s-6), 4vw, var(--s-8)); }
.hero--page .hero-grid { grid-template-columns: 1fr; max-width: 760px; }

/* --- Breadcrumbs -------------------------------------------------------- */
.breadcrumb { padding-block: var(--s-3); font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--ink-400); }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-600); text-decoration: underline; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--green-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .96rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--green-050); color: var(--green-600);
  border: 1px solid var(--green-100);
}
.card-icon--accent { background: var(--orange-100); color: var(--orange-600); border-color: #f7ddc2; }

/* Numbered steps */
.step { counter-increment: step; }
.step .card-icon {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.step .card-icon::before { content: counter(step); }
.steps { counter-reset: step; }

/* --- Badges / chips ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; letter-spacing: .03em;
  background: var(--green-050); color: var(--green-700);
  border: 1px solid var(--green-100);
}
.badge--accent { background: var(--orange-100); color: var(--orange-600); border-color: #f7ddc2; }
.badge--neutral { background: var(--bg-alt); color: var(--ink-500); border-color: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: .78rem; font-weight: 600; color: var(--ink-500);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px 10px;
}

.meta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: .85rem; color: var(--ink-400);
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* --- Disclosure / callouts --------------------------------------------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-500);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  display: flex; gap: var(--s-4); align-items: flex-start;
}
.callout .icon { color: var(--green-600); margin-top: 3px; }
.callout p { font-size: .95rem; margin: 0; }
.callout p + p { margin-top: var(--s-2); }
.callout strong { color: var(--ink-900); }
.callout--accent { border-left-color: var(--orange-500); background: #fffdf9; }
.callout--accent .icon { color: var(--orange-600); }
.callout--medical { border-left-color: var(--red-500); background: #fffbfa; }
.callout--medical .icon { color: var(--red-500); }

/* Inline affiliate note repeated near link groups */
.aff-note {
  font-size: .82rem; color: var(--ink-400);
  display: flex; align-items: center; gap: 7px;
  margin-top: var(--s-2);
}
.aff-note .icon { width: 1em; height: 1em; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th, table.data td { padding: 13px var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--green-050); color: var(--green-800);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg); }

/* --- FAQ (details/summary) --------------------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.faq details[open] { border-color: var(--green-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 var(--s-5) var(--s-5); }
.faq .faq-body p + p { margin-top: var(--s-3); }

/* --- Definition block (AI-search friendly answer box) ------------------- */
.answer-box {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.answer-box p { font-size: 1.02rem; color: var(--ink-800); }
.answer-box p + p { margin-top: var(--s-3); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(69,182,94,.22), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(245,130,31,.20), transparent 60%),
    var(--green-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(var(--s-6), 4vw, var(--s-8));
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6ddd0; max-width: 56ch; margin: var(--s-3) auto var(--s-5); }
.cta-band .btn-row { justify-content: center; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--green-900); color: #b9cfc3;
  padding-block: var(--s-8) var(--s-5); margin-top: var(--s-8);
}
.site-footer a { color: #d6e6dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
.footer-grid h3 {
  color: #fff; font-size: .82rem; font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-4);
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.footer-brand span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-about { font-size: .93rem; max-width: 34ch; }
.social-row { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: background .2s;
}
.social-row a:hover { background: var(--green-600); }
.recognized img { background: #000; border-radius: var(--r-sm); padding: 8px; width: 150px; }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: #94b0a2;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; padding: 0; }

/* --- Cookie consent ----------------------------------------------------- */
.consent {
  position: fixed; inset: auto var(--s-4) var(--s-4) var(--s-4); z-index: 1100;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s-5);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.consent p { font-size: .9rem; margin-bottom: var(--s-4); }
.consent .btn-row { gap: var(--s-2); }

/* --- Prose (legal + article pages) -------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { display: grid; gap: var(--s-2); }
.prose li { padding-left: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--green-050); }
.prose .meta { font-size: .88rem; color: var(--ink-400); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s-6); }
.prose blockquote {
  border-left: 3px solid var(--green-500); padding-left: var(--s-4);
  color: var(--ink-500); font-style: italic;
}
.prose code {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
}
.toc h2 { font-size: .82rem !important; font-family: var(--font-sans); text-transform: uppercase;
          letter-spacing: .1em; color: var(--ink-400); margin: 0 0 var(--s-3) !important; }
.toc ol { display: grid; gap: 7px; font-size: .93rem; margin: 0; }

/* --- Article / recipe cards -------------------------------------------- */
.article-card { position: relative; }
.article-card h3 a { text-decoration: none; color: inherit; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card h3 a:hover { color: var(--green-700); }
.article-card .source { font-size: .82rem; color: var(--ink-400); }

.recipe-figures {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2);
  padding: var(--s-4) 0; margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.recipe-figures > div { display: grid; gap: 2px; min-width: 0; }
.recipe-figures dt {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-400); font-weight: 700;
}
.recipe-figures dd {
  margin: 0; font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; color: var(--green-700); white-space: nowrap;
}

/* --- Partner card (marketplace) ---------------------------------------- */
.partner-card { position: relative; }
.partner-card .partner-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3);
}
.partner-card .why {
  font-size: .9rem; background: var(--bg); border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line);
}
.partner-card .why strong { color: var(--green-700); }
.partner-card .card-foot { margin-top: auto; padding-top: var(--s-3); }

/* --- Team cards (About) ------------------------------------------------- */
.team-card { align-items: center; text-align: center; }
.team-photo {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 3px solid var(--green-100); background: var(--green-050);
}
.team-photo--initials {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--green-700); letter-spacing: .02em;
}
.team-role { color: var(--green-700); font-weight: 650; font-size: .93rem !important; }
.team-card .card-foot { margin-top: auto; padding-top: var(--s-2); }
.team-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 650; text-decoration: none; color: var(--ink-700);
}
.team-link:hover { border-color: var(--green-500); background: var(--green-050); color: var(--green-700); }

/* --- Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.muted { color: var(--ink-400); }
.small { font-size: .88rem; }

/* --- Insights (research library) ---------------------------------------- */
.insights-scope { max-width: 40em; margin: var(--s-3) 0 0; color: var(--ink-500); }

/* Filter chips: shown only when JavaScript is available (hidden attribute removed by site.js) */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.filter-chips[hidden] { display: none; }
.filter-chips button {
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.3;
  color: var(--ink-500); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 7px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chips button:hover { background: var(--green-050); border-color: var(--green-500); color: var(--green-700); }
.filter-chips button[aria-pressed="true"] {
  background: var(--green-600); border-color: var(--green-600); color: #fff;
}

.insight-group[hidden] { display: none; }
.insight-group + .insight-group { margin-top: var(--s-8); }
.insight-group .section-head { margin-bottom: var(--s-5); }
.insight-group .section-head p { margin-top: var(--s-1); }

/* Never let a card force horizontal scroll on narrow screens */
.insights-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.insights-grid .card:hover { transform: none; }
.article-card h3 { font-size: 1.12rem; line-height: 1.3; }
.article-card .card-meta { color: var(--ink-500); font-weight: 600; }
.article-card .card-meta .sep { color: var(--line-strong); margin-inline: 2px; }

.evidence { display: grid; gap: 2px; }
.evidence-label {
  font-size: .72rem !important; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-700);
}
.article-card .citation { color: var(--ink-500); font-size: .8rem; line-height: 1.5; }
.article-card .citation .evidence-label { display: block; }
.article-card .card-foot { margin-top: auto; padding-top: var(--s-3); font-size: .88rem; }
.article-card .card-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 560px) {
  .filter-chips button { padding: 7px 12px; font-size: .84rem; }
  .insight-group + .insight-group { margin-top: var(--s-7); }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Text first on narrow screens: the headline is the LCP element and should
     paint before a large decorative image. */
  .hero-media { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .site-nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    display: none; padding-bottom: var(--s-4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 13px 2px; }
  .site-nav a::after { display: none; }
  .header-bar { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: var(--s-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .consent { inset: auto var(--s-3) var(--s-3) var(--s-3); padding: var(--s-4); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .lang-switch a { padding: 3px 8px; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .consent, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
