/* ==========================================================================
   Article Heaven — article.css
   Review pages, category archives, tables, TOC, verification ledger
   ========================================================================== */

.article-head { max-width: var(--article-w); }
.article-head .summary-line { font-size: 1.12rem; color: var(--ink-soft); margin: 8px 0 14px; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--ink-faint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 14px 0;
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 5px; }
.byline .status-dot--demo { background: var(--warn); }

.article-body { max-width: var(--article-w); font-size: 1.02rem; }
.article-body h2 { margin-top: 1.9em; scroll-margin-top: 90px; }
.article-body h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.article-body figure { margin: 1.4em 0; }
.article-body figure img {
  background: linear-gradient(160deg, var(--primary-tint), #fff 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4/3; object-fit: contain;
}
.article-body figcaption { text-align: center; font-size: .8rem; color: var(--ink-faint); margin-top: 8px; }

/* Quick verdict ----------------------------------------------------------- */
.verdict {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0;
}
.verdict h2 { margin-top: 0; font-size: 1.2rem; }

/* Summary box with dotted leaders (signature element) --------------------- */
.specbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin: 1.6em 0; overflow: hidden;
}
.specbox__head {
  background: var(--primary-dark); color: #fff; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.specbox__head h2 { color: #fff; margin: 0; font-size: 1.15rem; }
.specbox__body { padding: 16px 20px; }
.leaders { margin: 0; }
.leaders > div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: .93rem; }
.leaders > div + div { border-top: 0; }
.leaders dt { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.leaders dd { margin: 0; text-align: right; margin-left: auto; max-width: 60%; }
.leaders .lead {
  flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 24px;
}
.specbox__cta { padding: 0 20px 20px; }
.specbox__cta .btn { width: 100%; }
.specbox__cta .small { text-align: center; margin: 8px 0 0; }

/* Verification ledger ------------------------------------------------------ */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
.ledger__col { border-radius: var(--radius); padding: 16px 18px; border: 1px solid; }
.ledger__col h2, .ledger__col h3 { margin-top: 0; font-size: 1rem; font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.ledger__col ul { margin: 0; padding-left: 1.15em; font-size: .92rem; display: grid; gap: 7px; }
.ledger--verified { background: var(--ok-tint); border-color: #C9E0D0; }
.ledger--verified h2, .ledger--verified h3 { color: var(--ok); }
.ledger--unverified { background: var(--warn-tint); border-color: #EAD9AE; }
.ledger--unverified h2, .ledger--unverified h3 { color: var(--warn); }

/* Table of contents -------------------------------------------------------- */
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 1.6em 0;
}
.toc__toggle {
  display: none; width: 100%; text-align: left; background: none; border: 0;
  font-weight: 700; font-size: .95rem; padding: 2px 0; color: var(--ink);
}
.toc h2 { font-size: .85rem; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 30px; font-size: .9rem; }
.toc ol ol { columns: 1; padding-left: 1em; margin-top: 4px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover, .toc a.is-active { color: var(--primary-dark); text-decoration: underline; }

/* Content tables ----------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
table.data caption { text-align: left; font-weight: 700; padding: 12px 14px 0; font-family: var(--serif); font-size: 1.02rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.data thead th { background: var(--paper); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
table.data tbody tr:last-child td { border-bottom: 0; }
.ev { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ev--strong { background: var(--ok-tint); color: var(--ok); }
.ev--moderate { background: #E8F0E2; color: #4A6B1E; }
.ev--limited { background: var(--warn-tint); color: var(--warn); }
.ev--mixed { background: #EFEAF6; color: #5B4A8A; }
.ev--insufficient { background: var(--bad-tint); color: var(--bad); }
.ev--not-evaluated { background: #EEEEEA; color: var(--ink-faint); }

/* Pros & cons -------------------------------------------------------------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
.proscons__col { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--card); }
.proscons__col h3 { margin-top: 0; }
.proscons__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.proscons__col li { padding-left: 26px; position: relative; }
.proscons--pros li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.proscons--cons li::before { content: "✕"; position: absolute; left: 2px; color: var(--bad); font-weight: 700; }

/* CTA block ---------------------------------------------------------------- */
.ctablock {
  background: linear-gradient(150deg, #FFF9F2, var(--cta-tint)); border: 1px solid #EBD3B7;
  border-radius: var(--radius-lg); padding: 20px; text-align: center; margin: 1.6em 0;
}
.ctablock p.small { margin: 10px 0 0; color: #6B4213; }

/* FAQ ----------------------------------------------------------------------- */
.faq { margin: 1.2em 0; display: grid; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: 0; padding: 14px 16px; font-weight: 700; font-size: .97rem; color: var(--ink);
}
.faq__q::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; flex: 0 0 auto; }
.faq__q[aria-expanded="true"]::after { content: "–"; }
.faq__a { padding: 0 16px 14px; font-size: .94rem; color: var(--ink-soft); }
.faq__a[hidden] { display: none; }

/* References ---------------------------------------------------------------- */
.refs { font-size: .87rem; }
.refs ol { display: grid; gap: 9px; }
.refs .accessed { color: var(--ink-faint); }

/* Author box ----------------------------------------------------------------- */
.authorbox {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin: 1.6em 0;
}
.authorbox img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--primary-tint); object-fit: cover; background: var(--primary-tint); }
.authorbox h2, .authorbox h3 { margin: 0 0 2px; font-size: 1.05rem; }
.authorbox .role { color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.authorbox p { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }

/* Prev / next ----------------------------------------------------------------- */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.8em 0; }
.prevnext a {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink); display: block;
}
.prevnext a:hover { border-color: var(--primary); }
.prevnext .dir { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 4px; }
.prevnext .prevnext--next { text-align: right; }

/* Rating control (truthful page feedback) ------------------------------------- */
.pagefeedback { text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 1.6em 0; }
.pagefeedback button { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; margin: 0 5px; font-weight: 600; }
.pagefeedback button:hover { border-color: var(--primary); color: var(--primary-dark); }
.pagefeedback [data-feedback-thanks] { color: var(--ok); font-weight: 600; }

/* Category pages --------------------------------------------------------------- */
.cat-hero { padding: 8px 0 6px; max-width: 840px; }
.cat-hero p.lede { font-size: 1.08rem; color: var(--ink-soft); }
.cat-featured { margin: 10px 0 6px; }

/* Ingredient / guide prose ------------------------------------------------------ */
.prose { max-width: var(--article-w); }
.prose h2 { margin-top: 1.8em; }

/* Print helper class (used by print.css) ---------------------------------------- */
.no-print-placeholder { display: contents; }
