@font-face {
  font-family: "Jakarta";
  src: url("/static/font.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #121a24;
  --muted: #5d6673;
  --line: #e4e2dc;
  --ink: #0f2a1d;          /* dark panels */
  --ink-text: #f4f1ea;
  --ink-muted: #a7b1bf;
  --accent: #15803d;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 8px 24px -8px rgb(16 24 40 / .10);
  --shadow-lift: 0 2px 4px rgb(16 24 40 / .06), 0 18px 40px -12px rgb(16 24 40 / .22);
  color-scheme: light;
}
/* Dark theme: follows the device unless the visitor picked one (data-theme on <html>). */
:root[data-theme="dark"] {
  --bg: #0c1117;
  --surface: #141b24;
  --text: #e9edf2;
  --muted: #97a2b1;
  --line: #243040;
  --ink: #16301f;
  --accent: #4ade80;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-lift: 0 18px 40px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1117;
    --surface: #141b24;
    --text: #e9edf2;
    --muted: #97a2b1;
    --line: #243040;
    --ink: #16301f;
    --accent: #4ade80;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-lift: 0 18px 40px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* Category colour comes from an inline --c; --cs is a soft tint of it. */
[style*="--c"] { --cs: color-mix(in srgb, var(--c) 13%, transparent); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.65 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-spacing: .06em;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--surface); }
.top .right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--muted); background: transparent; border: 1.5px solid var(--line); border-radius: 12px;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the moon in light mode, the sun in dark mode. */
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 720px) { .top nav { display: none; } }

main { padding-top: 8px; padding-bottom: 64px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 1.45rem; margin: 40px 0 14px; }

/* Home hero */
.hero {
  position: relative; overflow: hidden;
  margin: 20px 0 8px; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px; color: #f7f4ec;
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(34 197 94 / .38), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgb(234 179 8 / .28), transparent 60%),
    linear-gradient(135deg, #0b2016, #123322);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #bbf7d0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; margin: 0 0 16px; letter-spacing: -.045em; line-height: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #4ade80, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: #c9d2de; max-width: 620px; margin: 0 0 28px; }
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #a7b1bf; z-index: 1; }
.search input::placeholder { color: #a7b1bf; }
.search input:focus { background: rgb(255 255 255 / .14); border-color: transparent; }
input::placeholder { color: var(--muted); opacity: 1; }
.search input {
  width: 100%; min-height: 60px; padding: 0 20px 0 52px; border: 0; border-radius: 16px;
  font: inherit; font-size: 1.08rem; color: #f7f4ec; caret-color: #4ade80; color-scheme: dark;
  background: rgb(255 255 255 / .1); border: 1.5px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { color: #e4eaf2; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .14); }
.chips a:hover { background: rgb(255 255 255 / .18); }

.group h2 { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.noresult { text-align: center; color: var(--muted); padding: 40px 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--c); }
.card .txt { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.card strong { display: block; font-size: 1.04rem; margin: 2px 0 4px; }
.card .txt > span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cs); color: var(--c); }
.ico svg { width: 24px; height: 24px; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 56px; }
.why div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why h3 { margin: 0 0 6px; font-size: 1.08rem; }
.why p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Calculator page header */
.calc-head { padding: 28px 0 22px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.calc-title { display: flex; align-items: center; gap: 16px; }
.calc-title .ico { width: 58px; height: 58px; border-radius: 18px; }
.calc-title .ico svg { width: 30px; height: 30px; }
.calc-title h1 { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.calc-head h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 800; margin: 0; letter-spacing: -.04em; }
.calc-head .lead { color: var(--muted); font-size: 1.1rem; margin: 12px 0 0; }

/* Calculator */
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow);
  border-top: 4px solid var(--c);
}
/* Single-section calculators: inputs left, result right. */
@media (min-width: 880px) {
  .tool:not(:has(h2.sub)):has(> .result) { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .tool:not(:has(h2.sub)) > .result { margin-top: 0; position: sticky; top: 84px; }
  .tool:not(:has(h2.sub)) .fields { grid-template-columns: 1fr 1fr; }
}
.tool h2.sub { font-size: 1.1rem; margin: 32px 0 14px; }
.tool h2.sub:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-content: start; align-items: end; }
.fields > label, .field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; }
/* Label text and its hint ("optioneel") share one line; the field goes below. */
.fields > label:not(.check) { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 6px; align-items: baseline; align-content: end; }
.fields > label:not(.check) > :is(.in, input, select, textarea) { grid-column: 1 / -1; }
.fields > label:not(.check) > small { justify-self: start; }
.field.wide, .fields > label[data-show] { grid-column: 1 / -1; }
.flabel { display: block; }
.fields small { font-weight: 500; color: var(--muted); }
.fields label.check { flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: 52px; font-weight: 600; cursor: pointer; }

input, select {
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text); background: var(--bg);
  caret-color: var(--c, var(--accent));
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 40%, var(--line)); }
input:focus, select:focus { outline: none; border-color: var(--c, var(--accent)); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
textarea {
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical;
  caret-color: var(--c, var(--accent)); font-variant-numeric: tabular-nums;
}
textarea:focus { outline: none; border-color: var(--c, var(--accent)); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
.fields > label.wide-label { grid-column: 1 / -1; }
.note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.today-week { grid-column: 1 / -1; margin: 0 0 18px; font-size: 1.15rem; }
.today-week strong { color: var(--c); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--c); }
input[type=date] { font-variant-numeric: tabular-nums; }

/* Input with unit */
.in { position: relative; display: block; }
.in::after {
  content: attr(data-unit); position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: .95rem; pointer-events: none;
}
.in[data-unit="€"]::after { right: auto; left: 14px; }
.in[data-unit="€"] input { padding-left: 34px; }
.in:not([data-unit="€"]) input { padding-right: 76px; }

/* Segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; }
.seg label { flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .93rem; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface); color: var(--c); box-shadow: 0 1px 3px rgb(16 24 40 / .14); }
.seg input:focus-visible + span { outline: 2px solid var(--c); }

/* Result panel */
.result-legacy {
  margin-top: 20px; padding: 24px; border-radius: 20px; color: var(--ink-text);
  background:
    radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    var(--ink);
}
.result dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 20px; }
.result .main { order: -1; grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.result dt { font-size: .82rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.result dd { margin: 4px 0 0; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.result .main dd { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { opacity: .4; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } .card { transition: none; } }
.result output { display: inline-block; }

.table-wrap { margin-top: 18px; overflow-x: auto; }
.table-wrap summary { cursor: pointer; font-weight: 700; color: #fff; }
.table-wrap table { color: var(--ink-text); }
.table-wrap th { color: var(--ink-muted); }
.table-wrap th, .table-wrap td { border-color: rgb(255 255 255 / .12); }

/* Percentages: sentence rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 4px; }
.row:last-child { border-bottom: 0; padding-bottom: 4px; }
.row label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.row input { width: 110px; text-align: center; }
.row output { font-weight: 800; font-size: 1.35rem; color: var(--c); font-variant-numeric: tabular-nums; padding: 6px 14px; background: var(--cs); border-radius: 12px; }

/* BMI scale */
.scale { position: relative; height: 12px; margin: 22px 0 6px; }
.scale span { position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(90deg, #60a5fa 0 14%, #22c55e 14% 40%, #f59e0b 40% 60%, #ef4444 60% 100%); }
.scale i { position: absolute; top: -6px; width: 6px; height: 24px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); transition: left .3s ease; }

.share { display: flex; justify-content: flex-end; margin-top: 12px; }
.share button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 700; font-size: .93rem; color: var(--c); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.share button:hover { border-color: var(--c); background: var(--cs); }
.share button svg { width: 18px; height: 18px; }

/* Article */
.prose { max-width: 720px; margin-top: 16px; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 14px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-variant-numeric: tabular-nums; }
.prose table { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; }
.related { margin-top: 56px; }

/* Back to top */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); transition: opacity .2s, transform .2s, border-color .15s;
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 22px; height: 22px; }
.to-top[hidden] { display: grid !important; opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Footer */
.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 40px 0 28px; }
.bottom a { color: var(--muted); text-decoration: none; }
.bottom a:hover { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 24px; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2 180px; }
.foot-links li { margin: 0 0 6px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* ===== Gezond.xyz components ===== */
.search .results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lift); max-height: 380px; overflow-y: auto;
}
.search .results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search .results a:hover, .search .results a[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.search .results small { color: var(--muted); white-space: nowrap; }
.search .results .empty { padding: 10px 12px; color: var(--muted); }
.search.light input { background: var(--surface); color: var(--text); border: 1.5px solid var(--line); color-scheme: normal; }
.search.light svg { color: var(--muted); }
.search.light input::placeholder { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--c, var(--accent));
  transition: transform .18s, box-shadow .18s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile strong { font-size: 1.02rem; }
.tile span { color: var(--muted); font-size: .88rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill .vs { color: var(--muted); font-weight: 500; }

/* Food page */
.food-head { padding: 26px 0 18px; }
.food-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.food-head .lead { color: var(--muted); font-size: 1.08rem; margin: 10px 0 0; max-width: 720px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--c); background: var(--cs); }
.claims { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.claim { padding: 4px 10px; border-radius: 8px; font-size: .84rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.claim.src { background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--accent)); }
.portion-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.portion-bar .seg { flex: 1 1 320px; }
.portion-bar .grams { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.portion-bar .grams input { width: 110px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fact { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.fact dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fact dd { margin: 4px 0 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact dd small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.fact.big { background: var(--ink); color: #f4f1ea; border-color: transparent; }
.fact.big dt { color: #a7c4b0; }
.fact.big dd small { color: #a7c4b0; }
.energy { margin-top: 20px; }
.energy .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.energy .bar span { display: block; height: 100%; }
.energy ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.energy li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--dot); vertical-align: -1px; }

.ntable { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.ntable th, .ntable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.ntable th:first-child, .ntable td:first-child { text-align: left; }
.ntable thead th { background: var(--surface); }
.ntable td.sub { padding-left: 26px; color: var(--muted); }
.ntable td.unknown { color: var(--muted); font-style: italic; }
.ntable tr.section td { background: var(--bg); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.ntable .ri { color: var(--muted); font-size: .88rem; }
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.source { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Lists */
.flist { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.flist th, .flist td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.flist th:first-child, .flist td:first-child { text-align: left; }
.flist th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.flist th button { all: unset; cursor: pointer; }
.flist th button::after { content: " ↕"; opacity: .4; }
.flist td a { font-weight: 600; color: var(--text); text-decoration: none; }
.flist td a:hover { color: var(--accent); }
.flist .rank { color: var(--muted); width: 2.5em; }
.flist tr:last-child td { border-bottom: 0; }

/* Compare */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.vs-head a { display: block; padding: 16px; border-radius: 16px; text-align: center; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); }
.vs-head a:hover { border-color: var(--accent); }
.vs-head .or { font-weight: 800; color: var(--muted); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vs-row .label { text-align: center; font-weight: 600; font-size: .9rem; }
.vs-row .a, .vs-row .b { display: flex; align-items: center; gap: 8px; }
.vs-row .a { flex-direction: row-reverse; text-align: right; }
.vs-row .track { flex: 1; height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; display: flex; }
.vs-row .a .track { justify-content: flex-end; }
.vs-row .fill { height: 100%; border-radius: 5px; background: var(--c, var(--accent)); }
.vs-row .val { min-width: 64px; font-weight: 700; font-size: .92rem; }
.vs-row .val.unknown { color: var(--muted); font-weight: 500; font-style: italic; }
.vs-row.section { grid-template-columns: 1fr; border: 0; padding-top: 18px; font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; color: var(--muted); text-align: center; }
.picker { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: end; }
.picker label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; }
.picker .or { padding-bottom: 14px; font-weight: 800; color: var(--muted); }
.picker button { min-height: 52px; padding: 0 20px; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 12px; cursor: pointer; }
@media (max-width: 640px) {
  .picker { grid-template-columns: 1fr; }
  .picker .or { padding: 0; text-align: center; }
  .vs-row { grid-template-columns: 1fr 1fr; }
  .vs-row .label { grid-column: 1 / -1; order: -1; padding-top: 4px; }
  .vs-row .val { min-width: 54px; }
}
.summary { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.summary ul { margin: 6px 0 0; padding-left: 20px; }
.summary p { margin: 0; }
.facts-for { margin: 0 0 10px; font-weight: 700; color: var(--muted); font-size: .9rem; }
/* Compare: fixed colours for the two sides */
.vs-row .a, .vs-head .side-a { --c: #16a34a; }
.vs-row .b, .vs-head .side-b { --c: #2563eb; }
:root[data-theme="dark"] .vs-row .a, :root[data-theme="dark"] .vs-head .side-a { --c: #4ade80; }
:root[data-theme="dark"] .vs-row .b, :root[data-theme="dark"] .vs-head .side-b { --c: #60a5fa; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vs-row .a, :root:not([data-theme="light"]) .vs-head .side-a { --c: #4ade80; }
  :root:not([data-theme="light"]) .vs-row .b, :root:not([data-theme="light"]) .vs-head .side-b { --c: #60a5fa; }
}
.vs-head .side-a, .vs-head .side-b { border-top: 4px solid var(--c); }
/* Long Dutch compounds (chocoladehagelslag, zilvervliesrijst) must wrap on phones. */
.food-head h1, .vs-head a, .pill, .tile strong, .flist td a { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.vs-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vs-head a { font-size: 1rem; padding: 12px; } }
.pill { max-width: 100%; }
