.article-page {
  background: linear-gradient(180deg, #090909, #111);
  color: var(--text);
}

.article-shell {
  width: min(100% - 28px, 920px);
  margin: 0 auto;
}

.article-hero {
  padding: 38px 0 24px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--accent);
}

.article-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-title {
  margin: 0.3em 0;
  font-size: clamp(2rem, 10vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.article-deck {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.article-toc {
  position: static;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
}

.article-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.article-toc a:hover {
  color: var(--accent);
}

.article-content {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.article-content p,
.article-content li {
  color: #d5d5d9;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2 {
  margin: 42px 0 16px;
  font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1.3;
}

.article-content h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.22rem, 5vw, 1.45rem);
  line-height: 1.4;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content img,
.article-hero-image img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.article-hero-image {
  width: 100%;
  max-width: 760px;
  margin: 24px auto 32px;
  overflow: hidden;
  border-radius: 14px;
}

.article-content img:not(.no-crop),
.article-hero-image img:not(.no-crop) {
  max-height: 520px;
  object-fit: cover;
}

.article-divider {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.author-box,
.faq-box,
.related-box {
  margin: 32px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.author-box p,
.faq-box p,
.related-box p {
  color: var(--muted);
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 0;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  width: calc(100% - 28px);
  max-width: 440px;
  padding: 14px 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

body {
  padding-bottom: 84px;
}

@media (min-width: 641px) {
  .article-shell {
    width: min(100% - 40px, 920px);
  }

  .article-hero {
    padding: 52px 0 30px;
  }

  .article-content p,
  .article-content li {
    font-size: 1.12rem;
  }

  .author-box,
  .faq-box,
  .related-box {
    padding: 24px;
  }
}

@media (min-width: 901px) {
  .article-hero {
    padding: 64px 0 34px;
  }

  .article-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 36px;
  }

  .article-toc {
    position: sticky;
    top: 92px;
  }

  .article-content p,
  .article-content li {
    font-size: 1.15rem;
    line-height: 1.9;
  }

  .sticky-cta {
    width: auto;
    max-width: none;
    bottom: 18px;
    padding: 14px 22px;
  }

  body {
    padding-bottom: 0;
  }

.cta-image {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 20px;
  padding: 0;
  overflow: hidden;
}

.cta-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .cta-image {
    width: calc(100vw - 28px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}
}
.cta-image {
    width: min(100% - 28px, 720px);
    margin: 32px auto;
    overflow: hidden;
    border-radius: 14px;
}

.cta-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}