/* Article pages under /shared/compare/. Deliberately a separate stylesheet
   from the landing page's styles.css: these pages are long-form reading, they
   share none of the hero/shader machinery, and keeping them apart means an
   article can never regress the home page's layout. Tokens are copied from
   styles.css :root so the two stay visually the same product — flat surfaces,
   warm neutrals, one accent, no gradients. */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f7f6f1;
  --ink: #1a1811;
  --ink-2: #3b382f;
  --muted: #6d685c;
  --faint: #9a9488;
  --line: #ebe7de;
  --line-2: #e0dbd0;
  --accent: #f97316;
  --accent-ink: #d35e07;
  --accent-soft: #fff1e5;
  --accent-line: #fcdcbd;
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  --measure: 43rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.is-doc {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------- chrome ---------- */

.doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.doc-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.doc-nav__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.doc-nav__links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9375rem;
}

.doc-nav__links a {
  color: var(--muted);
  text-decoration: none;
}

.doc-nav__links a:hover {
  color: var(--accent-ink);
}

/* ---------- article ---------- */

.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) 4rem;
}

.doc__body {
  max-width: var(--measure);
  margin: 0 auto;
}

.doc__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
}

.doc__eyebrow a {
  color: var(--muted);
  text-decoration: none;
}

.doc__eyebrow a::before {
  content: "← ";
}

.doc__eyebrow a:hover {
  color: var(--accent-ink);
}

.doc__body h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 640;
}

.doc__standfirst {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.doc__meta {
  margin: 0 0 2.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc__body h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 640;
  scroll-margin-top: 1.5rem;
}

.doc__body h3 {
  margin: 1.85rem 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.doc__body p {
  margin: 0 0 1.1rem;
}

.doc__body a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.doc__body li {
  margin-bottom: 0.45rem;
}

.doc__body strong {
  font-weight: 650;
}

.doc__body code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.875em;
}

/* A pulled-out definition sentence. These exist so an answer engine has one
   self-contained claim to lift, rather than reassembling it from context. */
.doc__body .doc-key {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--r-1);
  background: var(--accent-soft);
  font-size: 1.0625rem;
  color: var(--ink);
}

/* ---------- table of contents ---------- */

.doc-toc {
  margin: 0 0 2.5rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}

.doc-toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
}

.doc-toc li {
  margin-bottom: 0.3rem;
}

.doc-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* ---------- comparison tables ---------- */

.doc-table {
  margin: 1.5rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc-table th,
.doc-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-table thead th {
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink);
}

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.doc-table tbody th {
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- faq ---------- */

.doc-faq dl {
  margin: 0;
}

.doc-faq dt {
  margin: 1.5rem 0 0.4rem;
  font-weight: 650;
}

.doc-faq dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- cta ---------- */

.doc-cta {
  margin: 3rem 0 2rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface);
}

.doc-cta h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.doc-cta p {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
}

.doc-cta p:last-child {
  margin-bottom: 0;
}

.doc-cta__action {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.doc-cta__action:hover {
  background: var(--accent-ink);
}

.doc__disclosure {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------- index ---------- */

.doc-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.doc-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.doc-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.doc-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.doc-list a:hover h2 {
  color: var(--accent-ink);
}

.doc-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9688rem;
}

.doc-list__meta {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- footer ---------- */

.doc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-footer p {
  margin: 0;
}

.doc-footer nav {
  display: flex;
  gap: 1.15rem;
}

.doc-footer a {
  color: var(--muted);
  text-decoration: none;
}

.doc-footer a:hover {
  color: var(--accent-ink);
}
