/* Nutrition (/nutrition and /nutrition/<slug>).
 *
 * Built on the landing-page pattern (landing.css: .landing, .landing-crumb,
 * .landing-intro, .landing-grid, .landing-more). This file adds the
 * nutrient-specific pieces: the mark, the hero, the nutrient cards and the
 * food cards. Tokens come from style.css.
 */

/* The nutrient mark: a large typographic identifier, not an image. Fixed size
   so a vitamin (with its "Vitamin" eyebrow) and a mineral (symbol only) render
   the same box. */
.nutrition-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    width: 116px;
    height: 96px;
    border-radius: 16px;
    background: var(--primary-tint);
    color: var(--primary-700);
    white-space: nowrap;
}
.nutrition-mark-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.85;
}
.nutrition-mark-symbol { font-size: 2.1rem; font-weight: 800; line-height: 1; }

/* Small variant, used inside a nutrient card. Fixed square, same for both. */
.nutrition-mark-sm { width: 52px; height: 52px; border-radius: 12px; gap: 1px; }
.nutrition-mark-sm .nutrition-mark-eyebrow { font-size: 0.58rem; letter-spacing: 0.06em; }
.nutrition-mark-sm .nutrition-mark-symbol { font-size: 1.3rem; }

/* Detail hero: mark beside the name and aliases. */
.nutrition-hero { display: flex; align-items: center; gap: 20px; margin: 4px 0 14px; }
.nutrition-hero h1 { margin: 0; }
.nutrition-aliases { color: var(--text-muted); font-size: 0.95rem; margin: 4px 0 0; }

/* Index sections (Vitamins / Minerals). */
.nutrition-section { margin-top: 32px; }
.nutrition-section > h2 { font-size: 1.15rem; color: var(--text-heading); margin: 0 0 14px; }

/* Nutrient card (index). */
.nutrient-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.nutrient-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-tint-strong); }
.nutrient-card-body { min-width: 0; }
.nutrient-card-name { display: block; font-weight: 600; color: var(--text-heading); }
.nutrient-card-aliases { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* Food card (detail): links to /?i=<ingredient>. */
.food-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 600;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.food-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-tint-strong); }
.food-card::after { content: "\2192"; color: var(--primary-600); font-weight: 700; }
.food-card-plain { background: var(--bg-subtle); color: var(--text-muted); font-weight: 500; }
.food-card-plain::after { content: ""; }
.food-card-alias { color: var(--text-muted); font-weight: 500; }

/* Muted note under the index intro (e.g. the medical disclaimer). */
.nutrition-note { color: var(--text-muted); font-size: 0.9rem; margin: -8px 0 0; }

/* Solubility label on a vitamin page. */
.nutrition-solubility { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
