/* /patient-guide/food/food.css
   Only the parts that ucss.css and kcc-2027.css do not already have.
   Uses the tokens from kcc-2027.css. Load it after kcc-2027.css. */

/* Nepali: headings and UI text need a Devanagari font (Lora and Sora have none) */
[lang="ne"] h1, [lang="ne"] h2, [lang="ne"] h3,
[lang="ne"] .fd-faq summary, [lang="ne"] .fd-table th,
[lang="ne"] .kcc-btn, [lang="ne"] .kcc-anchor-link, [lang="ne"] .fd-plate div,
[lang="ne"] .fd-note strong, [lang="ne"] .fd-alert strong {
  font-family: var(--font-devanagari);
}
[lang="ne"] h1, [lang="ne"] h2, [lang="ne"] h3 { line-height: 1.45; }

/* Breadcrumb */
.fd-crumb { padding: 1rem 0; font: 600 .8rem var(--font-ui); color: var(--color-text-muted); }
.fd-crumb a { color: var(--kcc-navy); text-decoration: none; }
.fd-crumb a:hover { text-decoration: underline; }
.fd-crumb [aria-current] { color: var(--color-text-sub); }

/* Sections */
.fd-sec { scroll-margin-top: 7.5rem; }
.fd-sec h2 { margin-bottom: 1rem; }
.fd-sec p { color: var(--color-text-sub); margin-bottom: 1rem; max-width: 68ch; }
.fd-sec p:last-child { margin-bottom: 0; }
.fd-sec h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.fd-card-p { font-size: .95rem; color: var(--color-text-sub); margin-bottom: .75rem; }
.fd-split { align-items: center; }

/* Photos: fixed ratio so nothing jumps while loading */
.fd-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); background: var(--color-surface-2); }
.fd-photo--wide { aspect-ratio: 16 / 7; margin-bottom: 2rem; }

/* Lists */
.fd-list { list-style: none; display: grid; gap: .6rem; margin: 0 0 1rem; }
.fd-list li { position: relative; padding-left: 1.4rem; color: var(--color-text-sub); }
.fd-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem;
  border-radius: 50%; background: var(--kcc-magenta); }

/* Notes and alerts */
.fd-note, .fd-alert { border-radius: var(--radius-md); padding: 1.1rem 1.3rem; margin: 1.5rem 0; color: var(--color-text); }
.fd-note { background: var(--page-light); border-left: 4px solid var(--kcc-navy); }
.fd-alert { background: var(--kcc-magenta-pale); border-left: 4px solid var(--kcc-magenta); }
.fd-note strong, .fd-alert strong { display: block; margin-bottom: .25rem; font-family: var(--font-ui); color: var(--kcc-navy); }
.fd-note p, .fd-alert p { margin-bottom: .5rem; color: var(--color-text); }
.fd-note p:last-child, .fd-alert p:last-child { margin-bottom: 0; }

/* The plate: pure CSS, no image */
.fd-plate { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: min(100%, 300px);
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--color-white);
  box-shadow: var(--shadow-lg); margin-inline: auto; }
.fd-plate div { display: flex; align-items: center; justify-content: center; text-align: center; padding: .75rem;
  font: 700 .9rem/1.35 var(--font-ui); color: var(--color-text); }
.fd-plate__veg { grid-row: 1 / 3; background: #dff1e4; }
.fd-plate__grain { background: #fff0cf; }
.fd-plate__prot { background: var(--kcc-magenta-pale); }

/* Tables */
.fd-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.fd-table { width: 100%; border-collapse: collapse; }
.fd-table th, .fd-table td { padding: .9rem 1.1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--color-border); font-size: .95rem; }
.fd-table thead th { background: var(--kcc-navy); color: var(--color-white); font: 700 .85rem var(--font-ui); }
.fd-table tbody th { width: 30%; color: var(--kcc-navy); font-weight: 700; }
.fd-table tbody td { color: var(--color-text-sub); }
.fd-table tbody tr:last-child th, .fd-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .fd-table th, .fd-table td { padding: .75rem .8rem; } }

/* FAQ: native details, no JavaScript */
.fd-faq details { border-bottom: 1px solid var(--color-border); }
.fd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font: 600 1.05rem/1.5 var(--font-ui); color: var(--kcc-navy); }
.fd-faq summary::-webkit-details-marker { display: none; }
.fd-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--kcc-magenta); }
.fd-faq details[open] summary::after { content: "\2212"; }
.fd-faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--color-text-sub); max-width: 68ch; }

/* Related links */
a.kcc-card.fd-link { display: block; text-decoration: none; color: inherit; }
.fd-link strong { display: block; color: var(--kcc-navy); font-family: var(--font-ui); margin-bottom: .25rem; }
[lang="ne"] .fd-link strong { font-family: var(--font-devanagari); }
.fd-link span { font-size: .92rem; color: var(--color-text-sub); }

.fd-meta { font-size: .85rem; color: var(--color-text-muted); max-width: 70ch; }

/* Small helpers (replace inline styles) */
.fd-crumb--hero { padding-top: 0; }
.fd-crumb--hero a, .fd-crumb--hero [aria-current] { color: rgba(255,255,255,.85); }
.fd-hero-ne { margin-top: 1.25rem; font-size: .95rem; }
.fd-hero-ne a { color: var(--color-white); }
.fd-mt { margin-top: 2rem; }
.fd-mt-sm { margin-top: 1rem; }
.fd-h-mb { margin-bottom: 1.5rem; }
.fd-list--tight { margin-top: .5rem; }