/* Static model, brand and comparison pages (tools/build-seo.mjs), plus the "popular comparisons" block that
   tools/build-dist.mjs adds to the finder pages. Loaded after style-v2.css and style-v3.css: same tokens,
   header and footer; only what those pages need on top. No JavaScript on these pages. */

/* ---------- header nav ---------- */
.seo-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.seo-nav a { color: var(--night-muted); font: 600 14px/1.2 var(--text); text-decoration: none; padding: 8px 0; }
.seo-nav a:hover, .seo-nav a:focus-visible { color: var(--night-ink); text-decoration: underline; }
@media (max-width: 640px) {
  body.seo .top-in { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .seo-nav { justify-content: flex-start; gap: 0 14px; }
  .seo-nav a { font-size: 13px; padding: 6px 0; }
}

/* ---------- page body ---------- */
.seo-main { padding-top: 20px; padding-bottom: 48px; max-width: 980px; }
.seo-main h1 { font: 850 clamp(34px, 6vw, 60px)/.98 var(--display); margin: 8px 0 14px; letter-spacing: -.005em; overflow-wrap: anywhere; }
.seo-main h2 { font: 800 clamp(24px, 3.4vw, 32px)/1.05 var(--display); margin: 34px 0 12px; }
.seo-main h3 { font: 700 18px/1.3 var(--text); margin: 22px 0 8px; }
.seo-main a { color: var(--accent-text); text-underline-offset: 2px; }
.seo-main .seo-lead { color: var(--ink-2); max-width: 760px; font-size: 18px; margin: 0 0 18px; }
.seo-cta { margin: 18px 0 8px; }
.seo-main a.cta { color: var(--accent-ink); font-size: 15px; padding: 14px 20px; max-width: 100%; white-space: normal; line-height: 1.2; }
.seo-note { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* spec tables */
.spec-wrap { overflow-x: auto; margin: 18px 0; }
.spec { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec tbody th { font-weight: 600; color: var(--muted); width: 38%; }
.spec thead th { font: 800 17px/1.15 var(--display); background: var(--panel-2); }
.spec.vs tbody th { width: 30%; }
.spec td.best { background: var(--good-soft); color: var(--good); font-weight: 700; }
.gen h3 { margin-top: 18px; }
@media (max-width: 560px) {
  .spec { font-size: 14px; }
  .spec th, .spec td { padding: 8px 10px; }
  .spec.vs thead th { font-size: 15px; }
}

/* lists */
.seo-main ul.plus, .seo-main ul.minus, .seo-main ul.check, .seo-main ul.verdict {
  margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; line-height: 1.45;
}
.seo-main ul.plus li, .seo-main ul.minus li, .seo-main ul.check li, .seo-main ul.verdict li { padding-left: 28px; position: relative; }
.seo-main ul.plus li::before, .seo-main ul.minus li::before, .seo-main ul.check li::before, .seo-main ul.verdict li::before {
  position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 4px;
  display: grid; place-items: center; font: 800 12px/1 var(--text);
}
.seo-main ul.verdict li::before { content: "\2192"; color: var(--accent-ink); background: var(--accent); }
.seo-cols h2 { font-size: 24px; }

.seo-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 24px; }
.seo-links li { line-height: 1.35; }
.seo-links a { font-weight: 600; }
.seo-links small { display: block; color: var(--muted); font-size: 13px; }
.seo-links .nolink { color: var(--muted); }
.seo-links.brands { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

.faq p { margin: 0 0 6px; max-width: 760px; }

/* ---------- block on the finder pages ---------- */
.seo-home { padding-top: 32px; padding-bottom: 40px; }
.seo-home h2 { font: 800 clamp(24px, 3.4vw, 32px)/1.05 var(--display); margin: 0 0 14px; }
.seo-home a { color: var(--accent-text); }
.seo-home p { margin: 16px 0 0; font-weight: 600; }
.seo-more { margin: 10px 0 0; color: var(--muted, inherit); font-size: 14px; }
.seo-aka { margin: 6px 0 0; color: var(--muted, inherit); font-size: 14px; }

/* the header scrolls away here: on a phone the wrapped nav would cover a third of the screen */
body.seo .top { position: static; }
