/* Discovery (SEO) pages, built by _build/build_discovery.py (22/10/26).
   Builds on css/home.css (.hp sections, buttons, splits, FAQ); only what those
   pages add is here, scoped to .dp. */
.dp-hero { padding: 56px 0 72px; }
.dp-hero__media img { max-height: 520px; width: auto; margin: 0 auto; border-radius: 20px; box-shadow: 0 18px 40px rgba(18, 26, 45, .12); }
.dp .hp-note { margin-top: 10px; }

/* Lists and steps */
.dp-list { margin: 0 0 14px; padding-left: 20px; color: var(--body); font-size: 17px; line-height: 1.7; }
.dp-steps { margin: 0 0 14px; padding-left: 22px; color: var(--body); font-size: 17px; line-height: 1.6; }
.dp-steps li { margin-bottom: 10px; }
.dp-steps strong, .dp-list strong { color: var(--ink); }

/* Comparison table */
.dp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dp-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
.dp-table th, .dp-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--body); line-height: 1.5; }
.dp-table thead th { background: var(--mint); color: var(--navy); font-weight: 700; }
.dp-table tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.dp-table tr:last-child th, .dp-table tr:last-child td { border-bottom: 0; }
.dp-checked { margin-top: 14px; }

/* Hidden allergen names */
.dp-names { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-names li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--ink); }
.dp-callout { background: #FFF8E1; border: 1px solid #F3DFA2; border-radius: 14px; padding: 14px 18px; }
.dp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dp-cards a { display: block; height: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; transition: transform .15s ease; }
.dp-cards a:hover { transform: translateY(-2px); }
.dp-cards strong { display: block; color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.dp-cards span { display: block; color: var(--body); font-weight: 400; font-size: 15px; line-height: 1.5; }

/* Breadcrumbs and byline (every guide) */
.dp-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--body); }
.dp-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--body); }
.dp-crumbs a { font-weight: 500; }
.dp-byline { font-size: 14px; color: var(--body); margin: -4px 0 16px; }

/* Sources (guides that cite them) */
.dp-sources { padding: 40px 0 0; }
.dp-sources ul { margin: 0 0 10px; padding-left: 20px; color: var(--body); font-size: 16px; line-height: 1.7; }

/* Ingredient Guides hub (/guides). Sections are anchor targets, clear of the sticky nav. */
.gd .hp-sec[id] { scroll-margin-top: 80px; }
.gd-jump { font-size: 15px; margin-top: 18px; }
.gd-group__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.gd-cards { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gd-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.gd-card a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 26, 45, .08); }
.gd-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.gd-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gd-card__img--screen img { object-fit: contain; padding: 14px 0 0; }
.gd-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hp .gd-card__title { font-size: 19px; line-height: 1.3; color: var(--navy); margin: 0 0 8px; }
.gd-card__desc { display: block; color: var(--body); font-weight: 400; font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.gd-card__more { margin-top: auto; font-size: 15px; }
/* A topic with one guide: one wide card, image beside the text, so the section doesn't look unfinished */
.gd-cards--one { grid-template-columns: 1fr; }
.gd-card--wide a { flex-direction: row; }
.gd-card--wide .gd-card__img { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
.gd-card--wide .gd-card__body { justify-content: center; padding: 28px 30px; }
.gd-meet li { margin-bottom: 8px; }
.gd-note { padding-top: 40px; }

/* Related pages */
.dp-related { padding: 48px 0; }
.dp-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }

@media (max-width: 900px) {
  .dp-hero { padding: 32px 0 48px; }
  .dp-cards { grid-template-columns: 1fr; }
  .gd-group__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .gd-cards { grid-template-columns: 1fr; }
  .gd-card--wide a { flex-direction: column; }
  .gd-card--wide .gd-card__img { aspect-ratio: 16 / 10; min-height: 0; }
  .gd-card--wide .gd-card__body { padding: 20px 22px 22px; }
}
