/* Styling for the static, crawlable SEO pages (questions, models, comparisons, hubs).
   Relies on the design tokens (:root vars) + topbar/footer/button classes from styles.css,
   which is linked first. Only adds what the generated content pages need. */

.page { max-width: var(--readw); margin: 0 auto; padding: clamp(20px, 4vw, 48px); flex: 1 0 auto; width: 100%; }
.page-wide { max-width: var(--wide); }

/* topbar links (static pages use <a> where the app uses <button>) */
.topbar a.wordmark, .topbar a.navlink { text-decoration: none; }
.site-footer a { color: var(--muted); }

/* breadcrumb */
.crumbs { font-size: .8rem; color: var(--muted); margin: 0 0 22px; letter-spacing: .01em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-soft); }

/* headings + prose */
.page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 18px; }
.page h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 40px 0 14px; }
.page h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 28px 0 10px; }
.page p { color: var(--ink-soft); margin: 0 0 16px; }
.page a { color: var(--ink); text-underline-offset: 2px; }
/* the generic ".page a" above out-specifies .btn-primary/.btn-text, so without this it would paint
   ink text on the dark primary button (black-on-black, invisible). Restore each variant's colour. */
.page a.btn-primary { color: var(--bg); }
.page a.btn-text { color: var(--muted); }

/* answer-first lead + the headline stat (the GEO "quotable" passage) */
.lead { font-size: 1.18rem; line-height: 1.5; color: var(--ink); margin: 0 0 24px; }
.lead strong { font-weight: 600; }
.statline { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 26px;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

/* data tables */
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: .95rem; }
.data-table caption { text-align: left; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.data-table tbody tr:hover { background: var(--card); }
.data-table td.model-cell { font-weight: 500; white-space: nowrap; }
.data-table td.model-cell a { text-decoration: none; }
.data-table td.model-cell a:hover { text-decoration: underline; }

/* answer chips */
.ans { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); letter-spacing: .02em; white-space: nowrap; }
.ans-yes { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.ans-no  { color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.conf { color: var(--muted); font-size: .82rem; }
.rationale { color: var(--ink-soft); font-style: italic; }

/* link lists / hubs */
.link-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 22px; }
.link-grid li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.link-grid a { text-decoration: none; }
.link-grid a:hover { text-decoration: underline; }
.link-grid .sub { color: var(--muted); font-size: .82rem; display: block; }
.section-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; }

/* call to action into the quiz */
.cta { border: 1px solid var(--line-strong); background: var(--card); border-radius: 8px;
  padding: 24px 26px; margin: 36px 0; text-align: center; }
.cta h2 { margin: 0 0 8px; font-size: 1.35rem; }
.cta p { margin: 0 0 16px; }

/* meta footer line ("data as of …") */
.page-meta { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }
.page-meta a { color: var(--muted); }

/* model summary card */
.model-card { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 18px 20px; margin: 0 0 26px; }
.model-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.model-card dt { color: var(--muted); }
.model-card dd { margin: 0; }

/* interactive compare widget (compare.js) */
.cmp-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 20px; }
.cmp-select { font: inherit; font-size: 1.02rem; font-weight: 500; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 14px; cursor: pointer; max-width: 100%; }
.cmp-select:hover { border-color: var(--ink-soft); }
.cmp-vs { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.15rem; }

.cmp-table-el { table-layout: fixed; }
.cmp-table-el th.cmp-dilemma, .cmp-table-el td.cmp-dilemma { width: 50%; }
.cmp-table-el th:not(.cmp-dilemma) { width: 25%; }
.cmp-table-el td.cmp-dilemma a { color: var(--ink-soft); text-decoration: none; }
.cmp-table-el td.cmp-dilemma a:hover { color: var(--ink); text-decoration: underline; }
/* long choice labels must wrap (and look like a rounded box, not a stretched pill) instead of
   overflowing the fixed-width cell into the next column */
.cmp-table-el .ans { white-space: normal; }
.cmp-table-el .ans:not(.ans-yes):not(.ans-no) { border-radius: 9px; line-height: 1.32; }

.cmp-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 2px 0 16px; font-size: .92rem; }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.cmp-sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.cmp-sw.dashed { background: transparent; border: 2px dashed var(--muted); }

.cmp-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.cmp-chart { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 18px; }
.cmp-chart-title { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin: 0 0 4px; }
.cmp-chart-body .chart-radar { max-width: 430px; margin: 0 auto; display: block; height: auto; }
.cmp-chart-body .chart-field { max-width: 360px; margin: 0 auto; display: block; }
.cmp-types { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.cmp-type-cell { text-align: center; }
.cmp-type-name { margin-bottom: 6px; }

@media (max-width: 560px) {
  .data-table { font-size: .88rem; }
  .data-table th, .data-table td { padding: 8px 7px; }
  .link-grid { grid-template-columns: 1fr; }
  .cmp-table-el th.cmp-dilemma, .cmp-table-el td.cmp-dilemma { width: 48%; }
}
