/* Homoeoclinics — blog and comparison pages.
 *
 * Depends on industry.css (tokens, .blueprint/.corner, .table, .btn) and
 * landing.css (header, footer, .eyebrow, .t-* tints). This file adds only
 * what a long-form text page needs and nothing the landing page already has.
 * Same charter as the rest of website/: plain CSS, no build step.
 *
 * These pages are ENGLISH-ONLY by decision (see website/README.md): no
 * data-hi attributes, no language toggle. The text-size control and the
 * scroll-progress bar still work — landing.js null-guards everything else.
 */

/* ── article shell ─────────────────────────────────────────────────────── */

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 0;
}

.crumbs {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-bottom: 40px;
}
.crumbs a { color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.crumbs a:hover { color: var(--color-accent); }
.crumbs .crumbs__sep { padding: 0 6px; opacity: 0.5; }

.article__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.article__standfirst {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  margin: 26px 0 0;
  max-width: 56ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.article__meta {
  margin: 22px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.article__rule {
  height: 1px; border: 0; background: var(--color-divider);
  margin: 44px 0 0;
}

/* ── prose ─────────────────────────────────────────────────────────────── */

.prose { margin-top: 40px; }
.prose p, .prose li {
  font-size: 16.5px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  margin: 52px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--color-divider);
}
.prose h3 {
  font-size: 21px;
  margin: 36px 0 12px;
}
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* Quotes: the source's words, set apart but not dressed up. */
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--color-accent-400);
}
.prose blockquote p {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.prose blockquote footer {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* ── tables ────────────────────────────────────────────────────────────── */

/* Wide tables scroll inside their own container; the page never scrolls
   sideways. */
.tablewrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--color-divider);
}
.tablewrap .table { min-width: 640px; font-size: 14px; }
.tablewrap .table th { white-space: nowrap; }
.tablewrap .table td { vertical-align: top; line-height: 1.5; }
.tablewrap--compare .table { min-width: 560px; }

/* A source citation inside a table cell. */
.src {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.src a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.src a:hover { color: var(--color-accent); }

/* "Not published" / unverified cells — honest, visibly quieter. */
.cell-na { color: color-mix(in srgb, var(--color-text) 50%, transparent); font-style: italic; }

/* ── furniture ─────────────────────────────────────────────────────────── */

/* End-of-article pointer back to the product — one restrained strip,
   reusing the landing page's note-strip look. */
.article__cta { margin: 56px 0 0; }
.article__cta .note-strip { margin-top: 0; }
.article__cta .btn { margin-top: 4px; }

/* Sources list. */
.prose .sources { font-size: 13.5px; }
.prose .sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* Correction/disclaimer strip on comparison pages. */
.corrections {
  margin: 44px 0 0;
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* ── listing pages (blog index, compare hub) ───────────────────────────── */

.listing {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 32px 0;
}
.listing__title {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}
.listing__lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 56ch;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

.entry-list { margin-top: 56px; display: flex; flex-direction: column; }
.entry {
  display: block;
  padding: 30px 4px 32px;
  border-top: 1px solid var(--color-divider);
  color: inherit;
}
.entry:hover { background: color-mix(in srgb, var(--color-text) 3%, transparent); }
.entry:hover .entry__title { color: var(--color-accent-700); }
.entry__kicker {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.entry__title { font-size: 27.5px; line-height: 1.1; margin: 10px 0 0; }
.entry__summary {
  margin: 12px 0 0; max-width: 68ch;
  font-size: 15px; line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.entry__meta {
  margin-top: 12px; font-size: 12.5px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

/* Active nav link on these pages. */
.nav-links a[aria-current="page"] { color: var(--color-accent-700); }

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .article, .listing { padding: 36px 20px 0; }
  .crumbs { margin-bottom: 28px; }
  .article__title { font-size: 34px; }
  .article__standfirst { font-size: 16.5px; }
  .prose p, .prose li { font-size: 15.5px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }
  .prose blockquote p { font-size: 18px; }
  .entry__title { font-size: 22px; }
  .listing__title { font-size: 36px; }
}
