/* ═══════════════════════════════════════════════════════════
   Dried Delight: product pages and the blog.
   Loaded after styles.css, which holds the colours, type, buttons, nav and
   footer. This file only lays out the article-like pages.
   ═══════════════════════════════════════════════════════════ */

.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(80px, 10vw, 130px); }
.page a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page a:not([class]):hover { text-decoration-thickness: 2px; }

.breadcrumbs { font-size: 15px; color: var(--ink-3); margin-bottom: clamp(28px, 4vw, 48px); }
.breadcrumbs a:not([class]) { color: var(--ink-2); }
.section-label { font-size: 16px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }

.page h1 { font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.page h2 { font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; margin: clamp(56px, 7vw, 88px) 0 20px; }
.page h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
/* The old pages set one word of each heading in italics; here a heading is one voice */
.page h1 em, .page h2 em { font-style: normal; }
.lead { margin-top: 20px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }

/* ─────────── Product page ─────────── */
.product-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: center; }
.product-hero-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 80px -44px rgba(var(--shadow), .6); }
.product-hero-img img { width: 100%; height: auto; }
.soon-badge { position: absolute; z-index: 1; left: 16px; top: 16px; padding: 8px 16px; border-radius: 999px; background: var(--sun); color: var(--on-colour); font-size: 15px; font-weight: 800; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge { padding: 7px 15px; border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; }
.price-note { font-size: 16px; font-weight: 700; color: var(--ink-3); }
.cta-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-dark, .btn-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 800; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-dark:active, .btn-ghost:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.benefits li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--line); font-weight: 600; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 1.72em; width: 14px; height: 3px; border-radius: 2px; background: var(--orange); }

.faq-item { padding: 20px 0 22px; border-top: 1px solid var(--line); max-width: 46rem; }
.faq-item p { margin-top: 6px; color: var(--ink-2); }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: grid; align-content: start; gap: 8px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius-md); background: var(--surface); transition: transform .5s var(--ease), background-color .3s var(--ease); }
.related-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.rc-label { font-size: 14px; font-weight: 800; color: var(--accent); }
.related-card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.cta-band {
  margin-top: clamp(64px, 8vw, 110px); padding: clamp(28px, 4.4vw, 60px); border-radius: var(--radius-lg);
  background: var(--pine); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.page .cta-band h2 { margin: 0 0 8px; }
.cta-band p { color: #cfd0bd; max-width: 32rem; }
.cta-band .btn-dark { background: var(--on-dark); color: var(--on-colour); }
.cta-band .btn-dark:hover { background: var(--cream); }
.cta-band :focus-visible { outline-color: var(--on-dark); }

/* ─────────── Tables ─────────── */
.table-scroll { overflow-x: auto; margin: 8px 0; }
table.compare, table.nutrition { width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
table.nutrition { max-width: 34rem; }
table.compare th, table.compare td, table.nutrition th, table.nutrition td { padding: 13px 14px 13px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.compare tr:first-child th { font-size: 15px; font-weight: 800; border-bottom: 2px solid var(--ink); }
table.compare td:first-child { color: var(--ink-2); font-weight: 600; }
table.compare td:nth-child(2) { font-weight: 800; }
table.compare td:nth-child(3) { color: var(--ink-3); }
table.nutrition caption { text-align: left; caption-side: top; padding-bottom: 8px; font-size: 15px; font-weight: 800; color: var(--ink-3); }
table.nutrition td:last-child { text-align: right; font-weight: 800; padding-right: 0; }
table.nutrition .sub td:first-child { padding-left: 22px; color: var(--ink-3); }

/* ─────────── Article ─────────── */
.article-body { max-width: 46rem; }
.article-meta { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.article-body > p { margin-top: 18px; font-size: 1.09rem; line-height: 1.7; color: var(--ink-2); }
.article-body > p.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); margin-top: 28px; }
.article-body > p.section-label { margin-top: 0; font-size: 16px; color: var(--accent); }
.article-body > p.article-meta { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.article-body strong { color: var(--ink); font-weight: 800; }
.article-body ul, .article-body ol { margin-top: 18px; padding-left: 1.3em; display: grid; gap: 10px; font-size: 1.09rem; line-height: 1.65; color: var(--ink-2); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li::marker { color: var(--orange); font-weight: 800; }
.article-body h3 { margin-top: 32px; }

@media (max-width: 860px) {
  .product-hero, .related, .benefits { grid-template-columns: minmax(0, 1fr); }
  .product-hero-img { max-width: 520px; }
}

/* A flavour without a pouch picture yet: its colour and its name */
.flavour-hero { aspect-ratio: 4 / 5; background: var(--c); color: var(--on-colour); display: grid; align-content: end; padding: clamp(24px, 4vw, 48px); }
.flavour-hero p { font-weight: 900; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.05em; }
.flavour-hero span { margin-top: 12px; font-size: 18px; font-weight: 800; }
@media (max-width: 860px) { .flavour-hero { aspect-ratio: 4 / 3; } }
