/* ============================================================
   KELPARO — content pages (guides, best-of lists, comparisons,
   industries, research). Builds on legal.css (.doc layout, tables,
   notes, cards). Tokens only: no new colours or fonts.
   ============================================================ */

.content-hero { padding-bottom: 34px; }
.content-hero .h1 { max-width: 22ch; margin: 18px 0 18px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.content-hero .lead { max-width: 700px; font-size: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink-2); font-weight: 500; }

.doc--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.doc--single .doc__body { max-width: none; }
.doc__meta a { color: inherit; text-decoration: none; }

.doc__body h2 { scroll-margin-top: 110px; }
.doc__body h2 + p strong:first-child { color: var(--ink); }
.doc__body hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.doc__body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.doc__body ol li::marker { color: var(--ink-3); font-family: var(--font-mono); font-size: .9em; }

/* the short answer, first thing under the hero: what an answer engine quotes */
.doc__body > p:first-of-type { font-size: 17.5px; line-height: 1.66; color: var(--ink); }

/* tables scroll sideways on a phone instead of squashing */
.tbl { overflow-x: auto; margin: 22px 0 28px; -webkit-overflow-scrolling: touch; }
.tbl .doc__table { margin: 0; }
.tbl .doc__table--wide { min-width: 620px; }
.doc__table td strong { color: var(--ink); }

/* notes come from Markdown blockquotes */
.doc__note { margin: 26px 0; }
.doc__note p { font-size: 14.5px; line-height: 1.65; }
.doc__note p:last-child { margin-bottom: 0; }

/* ranked entries on best-of lists: each H2 "1. Name" becomes a card edge */
.kind-best .doc__body h2 { padding-top: 26px; border-top: 1px solid var(--line); }
.kind-best .doc__body h2:first-of-type { border-top: 0; padding-top: 0; }

/* FAQ: H3 questions read as a list */
.doc__body h3 { color: var(--ink); }

/* author */
.byline { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; margin-top: 54px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.byline__mark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.byline b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.byline p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.6 !important; }

/* cards (hubs, related) */
.doc__card small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.related-wrap { max-width: 1180px; padding: 0 24px; }
.related { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 10px; }
.related h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
.related .doc__cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .related .doc__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .related .doc__cards { grid-template-columns: 1fr; } }
.doc--single .doc__cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .doc--single .doc__cards { grid-template-columns: 1fr; } }

/* stat strip written in Markdown as a single-row table with class .stats */
.doc__stats { margin: 8px 0 34px; }

.content-page .cta-band { text-align: center; }
@media (max-width: 640px) {
  .content-hero .h1 { font-size: 34px; }
  .doc { padding: 0 18px 30px; }
}
