:root {
  --paper: var(--eggshell);
  --line: rgba(107, 79, 59, 0.16);
  --clay: var(--robin-orange);
  --clay-dark: #c74527;
  --ink: var(--twig);
  --muted: var(--nest-brown);
  --peach: var(--robin-orange-soft);
  --moss-light: rgba(140, 168, 130, 0.18);
}

.article-page {
  background: var(--paper);
}

.article-page h1,
.articles-page h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-hero,
.articles-hero {
  padding: 96px max(24px, calc((100vw - 1120px) / 2)) 72px;
  background:
    radial-gradient(circle at 86% 20%, rgba(143, 194, 212, 0.35), transparent 30%),
    radial-gradient(circle at 72% 90%, rgba(248, 204, 192, 0.5), transparent 34%),
    var(--paper);
}

.article-hero-inner,
.articles-hero-inner {
  max-width: 960px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--clay-dark); }

.article-dek,
.articles-dek {
  max-width: 780px;
  margin-bottom: 28px;
  color: #4a3c30;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-shell {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: clamp(48px, 8vw, 96px);
  grid-template-columns: minmax(0, 760px) minmax(210px, 1fr);
  padding: 72px 24px 110px;
}

.article-body {
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.75;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #4a3c30;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body a:not(.btn) {
  color: var(--clay-dark);
  text-decoration: underline;
  text-decoration-color: rgba(232, 92, 61, 0.35);
  text-underline-offset: 3px;
}

.article-body a:not(.btn):hover {
  text-decoration-color: currentColor;
}

.quick-answer,
.verdict,
.disclosure,
.article-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.quick-answer,
.verdict {
  border-left: 5px solid var(--clay);
}

.quick-answer strong,
.verdict strong,
.disclosure strong,
.article-note strong {
  color: var(--ink);
}

.quick-answer p:last-child,
.verdict p:last-child,
.disclosure p:last-child,
.article-note p:last-child {
  margin-bottom: 0;
}

.disclosure {
  margin: 34px 0;
  background: var(--peach);
  font-size: 0.94rem;
}

.article-note {
  background: var(--moss-light);
}

.table-wrap {
  overflow-x: auto;
  margin: 30px 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f7f0e6;
  color: var(--ink);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
}

.article-sidebar-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.article-sidebar-card h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.article-sidebar-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-sidebar-card li + li {
  margin-top: 10px;
}

.article-sidebar-card a { color: var(--muted); text-decoration: none; }
.article-sidebar-card a:hover { color: var(--clay-dark); }

.article-cta {
  margin-top: 64px;
  border-radius: 14px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--ink);
  color: #fff;
}

.article-cta h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.article-cta .app-store-badge {
  margin-top: 8px;
}

.articles-section {
  padding: 80px max(24px, calc((100vw - 1120px) / 2)) 110px;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover {
  border-color: rgba(232, 92, 61, 0.5);
  box-shadow: 0 20px 44px rgba(46, 41, 38, 0.1);
  transform: translateY(-3px);
}

.guide-card .card-eyebrow {
  margin-bottom: 12px;
  color: var(--clay-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.guide-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.guide-card .card-link {
  margin-top: auto;
  color: var(--clay-dark);
  font-weight: 700;
}

.related-articles {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.related-links a:hover {
  border-color: var(--clay);
}

@media (max-width: 900px) {
  .article-shell,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .guide-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .article-hero,
  .articles-hero {
    padding-top: 72px;
    padding-bottom: 52px;
  }

  .article-shell {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    margin-top: 44px;
  }

  .quick-answer,
  .verdict,
  .disclosure,
  .article-note {
    padding: 20px;
  }

  .articles-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}
