/* Generated by scripts/generate_food_pages.py - do not edit by hand. */
:root {
    --bg-main: #0b0f19;
    --bg-card: #131c2e;
    --bg-input: #1e293b;
    --header-bg: rgba(11, 15, 25, 0.85);
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --header-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.09);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.8;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[lang="en"] body, html[lang="nl"] body {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

/* Slim Header 2.0 (Height: 60px) */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.3));
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, top 0.25s ease, right 0.25s ease, bottom 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease, max-height 0.25s ease, visibility 0.25s ease;
    font-size: 0.95rem;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.lang-switcher-container {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 2px;
    gap: 2px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, top 0.2s ease, right 0.2s ease, bottom 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, max-height 0.2s ease, visibility 0.2s ease;
}

.lang-btn:hover { color: var(--text-main); }

.lang-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.nav-links-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s, top 0.2s, right 0.2s, bottom 0.2s, left 0.2s, width 0.2s, height 0.2s, max-height 0.2s, visibility 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active { color: var(--primary); }

/* Main Container */
.page-wrapper {
    max-width: 960px;
    margin: 30px auto 70px;
    padding: 0 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow);
}

.about-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.about-title {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.about-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    margin: 35px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-card strong {
    color: var(--primary);
    font-weight: 700;
}

/* Official Boodi App Banner */
.boodi-official-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 35px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.boodi-banner-content {
    flex: 2;
    min-width: 280px;
}

.boodi-tag-official {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.boodi-banner-content h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 8px;
}

.boodi-banner-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.boodi-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, top 0.25s ease, right 0.25s ease, bottom 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease, max-height 0.25s ease, visibility 0.25s ease;
}

.boodi-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Pillars List */
.pillars-list {
    list-style: none;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.pillar-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.pillar-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Support Contact Card */
.support-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.support-email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s, top 0.2s, right 0.2s, bottom 0.2s, left 0.2s, width 0.2s, height 0.2s, max-height 0.2s, visibility 0.2s;
}

.support-email-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.back-home-box {
    text-align: center;
    margin-top: 40px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, top 0.2s ease, right 0.2s ease, bottom 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, max-height 0.2s ease, visibility 0.2s ease;
}

.back-home-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding: 35px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

@media (max-width: 860px) {
    .about-card { padding: 25px 20px; }
    .about-title { font-size: 1.8rem; }
    .nav-links-bar { display: none; }
}

/* ===== Doctor profile ===== */
.doctor-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.doctor-avatar {
    width: 128px;
    height: 128px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 6px var(--primary-glow);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.doctor-hero-text { flex: 1; min-width: 220px; }
.doctor-hero-text .about-title { margin-bottom: 4px; }

.doctor-role {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
}

.method-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.method-list li {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-main);
    line-height: 1.7;
}

.doctor-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.doctor-article-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, top 0.2s ease, right 0.2s ease, bottom 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, max-height 0.2s ease, visibility 0.2s ease;
}

.doctor-article-link i { color: var(--primary); }

.doctor-article-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.medical-note {
    margin-top: 25px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

a.lang-btn { text-decoration: none; }
.food-page h1, .food-page h3, .food-page td, .boodi-card h2, .food-page strong { color: var(--text-main); }
.food-page { max-width: 980px; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle-btn .ico { width: 16px; height: 16px; }
.theme-toggle-btn .ti-moon, html[data-theme="light"] .theme-toggle-btn .ti-sun { display: none; }
html[data-theme="light"] .theme-toggle-btn .ti-moon { display: inline-block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* back to the food guide (js/food-serving.js returns to the same place in the list when the reader came from it) */
.fp-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 7px 14px 7px 12px;
    border-radius: 999px; border: 1px solid var(--primary-glow); background: var(--bg-input); color: var(--primary);
    font-size: 0.9rem; font-weight: 700; text-decoration: none; line-height: 1.3; }
.fp-back:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.fp-back:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
[dir="rtl"] .fp-back { padding: 7px 12px 7px 14px; }
[dir="rtl"] .fp-back .ico { transform: scaleX(-1); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
/* compact hero: thumbnail beside the name */
.fp-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.fp-hero img, .fp-hero .food-emoji { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--primary-glow); background: var(--bg-input); }
.fp-hero .food-emoji { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.fp-hero-text { min-width: 0; }
.fp-hero-text h1 { font-size: 1.9rem; font-weight: 900; line-height: 1.25; margin: 0 0 4px; overflow-wrap: anywhere; }
.fp-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--text-muted); font-weight: 600; font-size: 0.88rem; }
.group-chip {
    display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.76rem;
    font-weight: 700; color: var(--primary); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25);
}
/* quick answer (static, the medium portion) */
.quick-answer { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.3);
    border-inline-start: 4px solid var(--primary); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 14px; }
.quick-answer h2 { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; color: var(--primary); margin: 0 0 4px; }
.about-card .quick-answer p { margin: 0; font-size: 0.95rem; line-height: 1.75; color: var(--text-main); }
/* macro card: portion pills, energy ring, 2x2 macros, GI / GL */
.fp { --c-carb: #38bdf8; --c-prot: #a78bfa; --c-fat: #fb7185; --c-fib: #34d399; }
html[data-theme="light"] .fp { --c-carb: #0284c7; --c-prot: #7c3aed; --c-fat: #e11d48; --c-fib: #059669; }
.macro-card { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; margin-bottom: 16px; }
.servings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px;
    padding: 4px 2px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-card);
    text-align: center; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.pill-name { white-space: nowrap; font-size: 0.74rem; font-weight: 800; color: var(--text-main); }
.pill small { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pill input:checked + span { background: var(--primary); border-color: var(--primary); }
.pill input:checked + span .pill-name, .pill input:checked + span small { color: #ffffff; }
html[data-theme="dark"] .pill input:checked + span { background: #047857; border-color: #047857; }
.pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.macro-body { display: flex; align-items: center; gap: 14px; }
.donut { position: relative; width: 116px; height: 116px; flex-shrink: 0; margin: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
html[dir="rtl"] .donut svg { transform: rotate(-90deg) scaleY(-1); }   /* clockwise from the top in RTL too */
.donut circle { fill: none; stroke-width: 5.2; }
.donut .track { stroke: var(--border-color); }
.donut .seg-c { stroke: var(--c-carb); } .donut .seg-p { stroke: var(--c-prot); } .donut .seg-f { stroke: var(--c-fat); }
.donut figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut figcaption b { font-size: 1.55rem; font-weight: 900; color: var(--text-main); font-variant-numeric: tabular-nums; }
.donut figcaption span { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.macro-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; flex: 1; min-width: 0; }
.macro-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 6px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-c { background: var(--c-carb); } .dot-p { background: var(--c-prot); } .dot-f { background: var(--c-fat); } .dot-fib { background: var(--c-fib); }
.m-name { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-val { grid-column: 2; font-size: 1.05rem; font-weight: 900; color: var(--text-main); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-pct { grid-column: 2; white-space: nowrap; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.about-card .macro-note { margin: 8px 0 0; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.gi-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gi-box { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label label" "num badge" "sub sub";
    align-items: center; column-gap: 8px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 8px 10px; }
.gi-label { grid-area: label; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.gi-num { grid-area: num; font-size: 1.45rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; min-width: 2.4ch; }
.gi-num.low { color: #10b981; } .gi-num.medium { color: #f39c12; } .gi-num.high { color: #e74c3c; } .gi-num.muted { color: var(--text-muted); }
html[data-theme="dark"] .gi-num.low { color: #6ee7b7; } html[data-theme="dark"] .gi-num.medium { color: #fcd34d; }
html[data-theme="dark"] .gi-num.high { color: #fca5a5; }
.gi-box .badge { grid-area: badge; justify-self: start; margin: 0; max-width: 100%; text-align: center; }
.gi-sub { grid-area: sub; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); }
/* introduction: two lines until "read more" (the class is set by js/food-serving.js) */
.lead-fold { margin-bottom: 6px; }
.about-card .lead-fold .lead { margin: 0; font-size: 0.95rem; }
.lead-fold.clamped .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { background: none; border: 0; padding: 4px 0; color: var(--primary); font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer; }
.reviewed { font-size: 0.85rem; color: var(--text-muted); margin: 12px 0 0; }
.reviewed a { color: var(--primary); text-decoration: none; font-weight: 700; }
.badge {
    display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem;
    font-weight: 700; border: 1px solid transparent;
}
.badge.low { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.45); color: #10b981; }
.badge.medium { background: rgba(243, 156, 18, 0.12); border-color: rgba(243, 156, 18, 0.45); color: #f39c12; }
.badge.high { background: rgba(231, 76, 60, 0.12); border-color: rgba(231, 76, 60, 0.45); color: #e74c3c; }
.badge.neutral { background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.45); color: var(--text-muted); }
/* tips and FAQ: accordions, the first one open */
.acc-list { display: grid; gap: 8px; margin: 8px 0 22px; }
.acc { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.acc.tip { border-inline-start: 4px solid var(--primary); }
.acc.tip.warn { border-inline-start-color: #f39c12; }
.acc summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 800; color: var(--text-main);
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-inline-start: auto; padding-inline-start: 8px; font-weight: 900; color: var(--primary); font-size: 1.1rem; }
.acc[open] summary::after { content: "\2212"; }
.acc summary h3 { font-size: inherit; font-weight: inherit; margin: 0; }
.acc.tip summary .ico { color: var(--primary); } .acc.tip.warn summary .ico { color: #f39c12; }
.about-card .acc p { margin: 0; padding: 0 14px 12px; color: var(--text-muted); }
.section-title .ico { width: 0.95em; height: 0.95em; }
.boodi-btn .ico { width: 18px; height: 18px; }
.nutrition-table td b { font-weight: 700; font-variant-numeric: tabular-nums; }
.nutrition-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 0.95rem; }
.nutrition-table th, .nutrition-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-color); text-align: start; }
.nutrition-table th { color: var(--primary); font-weight: 800; background: rgba(16, 185, 129, 0.06); }
.nutrition-table td:not(:first-child) { font-weight: 700; }
.table-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 26px; }
.alt-list { list-style: none; display: grid; gap: 10px; margin: 10px 0 26px; padding: 0; }
.alt-list a {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-main); text-decoration: none; font-weight: 700;
}
.alt-list a:hover { border-color: var(--primary); color: var(--primary); }
.alt-list span { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.read-also a { overflow-wrap: anywhere; }      /* long names such as (L-Selenomethionine) on 320 px */
.boodi-card {
    display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 22px 24px; border-radius: var(--radius-md); margin-bottom: 26px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.boodi-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.boodi-card p { color: var(--text-muted); margin: 0; }
.boodi-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 30px; background: var(--primary);
    color: #ffffff; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.boodi-btn:hover { background: var(--primary-hover); }
.source-strip {
    background: var(--bg-input); border: 1px solid rgba(16, 185, 129, 0.35); border-inline-start: 4px solid var(--primary);
    border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; color: var(--text-muted); font-size: 0.85rem;
    font-weight: 600; overflow-wrap: anywhere;
}
.source-strip a { color: var(--primary); font-weight: 800; text-decoration: none; white-space: nowrap; }
.references {
    background: var(--bg-input); border: 1px solid rgba(16, 185, 129, 0.35); border-inline-start: 4px solid var(--primary);
    border-radius: 14px; padding: 4px 18px 14px; margin: 18px 0 10px;
}
.references .section-title { margin-top: 12px; }
.ref-list { margin: 0; padding-inline-start: 22px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; overflow-wrap: anywhere; }
.ref-list li { margin-bottom: 8px; }
.ref-list a, .ref-method a { color: var(--primary); font-weight: 700; text-decoration: none; }
.ref-method { margin: 4px 0 0; font-size: 0.85rem; font-weight: 800; }
.disclaimer-box {
    margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(226, 232, 240, 0.22); color: #e2e8f0; font-size: 0.85rem; text-align: center;
}
html[data-theme="light"] .disclaimer-box { background: #f1f5f9; border-color: rgba(15, 23, 42, 0.12); color: #334155; }
@media (min-width: 761px) {
    .donut { width: 150px; height: 150px; }
    .macro-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .food-page.page-wrapper { margin: 12px auto 50px; padding: 0 10px; }
    .food-page .about-card { padding: 16px 14px; }
    .food-page .section-title { font-size: 1.15rem; margin: 22px 0 10px; }
    .fp-hero img, .fp-hero .food-emoji { width: 72px; height: 72px; border-radius: 16px; }
    .fp-hero .food-emoji { font-size: 2rem; }
    .fp-hero-text h1 { font-size: 1.45rem; }
    .fp-hero-text h1.long { font-size: 1.2rem; }
    .donut { width: 104px; height: 104px; }
    .macro-body { gap: 10px; }
}
@media (max-width: 360px) {
    .donut { width: 92px; height: 92px; }
    .donut figcaption b { font-size: 1.3rem; }
    .pill-name { font-size: 0.68rem; }
}
