/* Meals.Chat content pages · ingredient readouts, the index and articles,
   layered on landing-base.css + the brand stylesheet. */
:root { --measure: 720px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Article column */
.article { padding: var(--space-4) 0 var(--space-8); }
.article__inner { max-width: var(--measure); min-width: 0; }
.article--wide .article__inner { max-width: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.crumbs li {
  color: var(--muted); font-family: var(--font-label); font-size: var(--label);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.crumbs li + li::before { content: "/"; margin: 0 8px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.article__title { font-size: min(var(--display-2), 11vw); line-height: 1.08; letter-spacing: -0.015em; }
[data-brand="signal"] .article__title { font-weight: 600; font-variation-settings: "wdth" 112; }
.article__lede { margin-top: var(--space-4); color: var(--text-soft); font-size: var(--body-l); line-height: 1.5; }
.article__lede p { margin: 0 0 var(--space-3); }
.article__lede p:last-child { margin-bottom: 0; }

/* Running text (blog posts, FAQ answers) */
.article h2 { margin: var(--space-7) 0 var(--space-3); font-size: var(--h3); line-height: 1.15; }
.article h3 { margin: var(--space-5) 0 var(--space-2); font-size: 1.125rem; line-height: 1.25; }
[data-brand="signal"] .article h2, [data-brand="signal"] .article h3 { font-variation-settings: "wdth" 108; }
.prose p, .faq p { margin: 0 0 var(--space-4); line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 var(--space-4); padding-left: 1.25em; line-height: 1.6; }
.prose li { margin-bottom: var(--space-2); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 600; }
.prose img {
  width: 100%; max-width: 440px; height: auto; margin: var(--space-5) 0;
  border-radius: var(--radius-thumb); background: var(--plate);
}
.prose img.full-width { max-width: 100%; }
.prose > :first-child { margin-top: var(--space-5); }

/* Readout tables */
.readout-note { margin-top: var(--space-4); color: var(--muted); font-size: var(--small); }
.readout-section h2 { margin-bottom: var(--space-3); }
.readout-wrap { overflow-x: auto; margin: 0; }
.readout {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
}
.readout thead th {
  padding: 6px 0 8px 12px; border-bottom: 1px solid var(--rule); color: var(--muted);
  font-family: var(--font-label); font-size: var(--label); font-weight: 500;
  letter-spacing: 0.08em; text-align: right; text-transform: uppercase; white-space: nowrap;
}
.readout thead th .unit { margin-left: 3px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.readout tbody th, .readout td { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--rule); }
.readout tbody th {
  padding-left: 0; color: var(--text); font-family: var(--font-text); font-size: var(--body);
  font-weight: 600; text-align: left;
}
.readout thead th:first-child { padding-left: 0; text-align: left; }
.readout td {
  color: var(--text-soft); font-family: var(--font-label); font-size: 0.9375rem;
  text-align: right; white-space: nowrap;
}
.readout td.kcal { color: var(--text); font-weight: 600; }

/* FAQ + related */
.faq h3 { max-width: 40ch; }
.related { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rule); }
.related h2 { margin-top: 0; }
.related ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-4); padding: 0; list-style: none;
}
.related li a, .index-group__list a { display: inline-block; padding: 4px 0; color: var(--text); text-decoration: none; }
.related li a:hover, .index-group__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Ingredient index */
.letters {
  display: flex; flex-wrap: wrap; gap: 2px 4px; margin: var(--space-5) 0 var(--space-4);
  font-family: var(--font-label); font-size: var(--small);
}
.letters a { min-width: 34px; padding: 8px 4px; font-size: var(--body); color: var(--muted); text-align: center; text-decoration: none; }
.letters a:hover { color: var(--text); }
.index-group {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-4) 0; border-top: 1px solid var(--rule);
}
.article .index-group__letter { margin: 0; color: var(--muted); font-family: var(--font-label); font-size: 1rem; font-weight: 500; line-height: 1.8; }
.index-group__list { margin: 0; padding: 0; columns: 2; column-gap: var(--space-5); list-style: none; }
.index-group__list li { break-inside: avoid; }

/* Closing section: promise + one button + the demo */
.final--content .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.final__copy { min-width: 0; }
.final__copy .section__title b { color: var(--accent); font-weight: inherit; }
.final__actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); margin-top: var(--space-5); }
.final__actions .link { align-self: flex-start; }
.final__trust { margin-top: var(--space-4); color: var(--muted); font-size: var(--small); }
.final--content .ticket, .final--content .photo-demo {
  grid-area: auto; order: 2; width: 100%; max-width: 480px; height: auto; min-height: 0;
  margin: 0; border-radius: var(--radius-panel);
}
.final--content .photo-demo { aspect-ratio: 4 / 3; border: 1px solid var(--rule); }
.final--content .photo-demo picture, .final--content .photo-demo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.final--content .ticket__body { padding-bottom: var(--space-4); }

@media (max-width: 819px) {
  .readout thead th { padding-left: 8px; font-size: 10px; letter-spacing: 0.06em; }
  .readout thead th .unit { display: none; }
  .readout tbody th { font-size: 0.9375rem; white-space: nowrap; }
  .readout td { padding-left: 8px; font-size: 0.875rem; }
}
@media (min-width: 820px) {
  .article { padding-top: var(--space-5); }
  .index-group { grid-template-columns: 56px minmax(0, 1fr); }
  .index-group__list { columns: 3; }
  .related ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .final--content .container { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: var(--space-8); }
  .final__actions { flex-direction: row; align-items: center; }
  .final__actions .button { width: auto; }
  .final__copy { grid-column: 1; grid-row: 1; }
  .final--content .ticket, .final--content .photo-demo {
    grid-column: 2; grid-row: 1; max-width: 360px; height: auto; justify-self: end; align-self: center;
  }
}
