.article-page {
  background: #fafafa;
  padding-top: 5rem;
}

/* ── Breadcrumb ── */

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #71717a;
  margin-bottom: 1.25rem;
}

.article-breadcrumb a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
  color: #3b82f6;
}

.article-breadcrumb__sep {
  color: #d4d4d8;
}

/* ── Hero ── */

.article-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
}

.article-hero__container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .article-hero__container {
    padding: 0 2rem;
  }
}

.article-hero__eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #3b82f6;
}

.article-hero__title {
  margin-top: 0.625rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #09090b;
}

.article-hero__summary {
  margin-top: 0.875rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: #71717a;
  line-height: 1.65;
}

/* ── Meta pills ── */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.article-meta__pill {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #52525b;
  background: #fafafa;
}

.article-meta__pill--evidence {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

/* ── Layout: TOC + content ── */

.article-layout {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .article-layout {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 14rem 1fr;
    gap: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }
}

.article-layout__content {
  min-width: 0;
}

/* ── TOC ── */

.article-toc {
  display: none;
}

@media (min-width: 1024px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

.article-toc__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc__item {
  margin-bottom: 0.375rem;
}

.article-toc__item--nested {
  padding-left: 0.875rem;
}

.article-toc__link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #71717a;
  text-decoration: none;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.625rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.article-toc__link:hover,
.article-toc__link--active {
  color: #3b82f6;
  border-left-color: #3b82f6;
}

/* Mobile TOC */

.article-toc-mobile {
  display: block;
  margin-bottom: 1.5rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .article-toc-mobile {
    display: none;
  }
}

.article-toc-mobile__summary {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
}

.article-toc-mobile__list {
  list-style: none;
  padding: 0 1rem 0.875rem;
  margin: 0;
}

.article-toc-mobile__link {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  color: #3b82f6;
  text-decoration: none;
}

/* ── Takeaways ── */

.article-takeaways {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.04);
}

.article-takeaways__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.article-takeaways__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3f3f46;
}

.article-takeaways__list li {
  margin-bottom: 0.375rem;
}

/* ── Body typography ── */

.article-body {
  max-width: 42rem;
  padding: 0 0 2rem;
  color: #18181b;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.5rem 0 0.875rem;
  color: #09090b;
  scroll-margin-top: 6rem;
}

.article-body h2 {
  font-size: 1.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f4f4f5;
}

.article-body h3 {
  font-size: 1.125rem;
}

.article-body p {
  margin: 1rem 0;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin: 0.5rem 0;
}

.article-body strong {
  font-weight: 600;
}

.article-body a {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #3b82f6;
  border-radius: 0 10px 10px 0;
  background: #f4f4f5;
  color: #52525b;
  font-style: italic;
}

/* ── Sources ── */

.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e4e4e7;
}

.article-sources__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #09090b;
  margin-bottom: 1rem;
}

.article-sources__list {
  margin: 0;
  padding-left: 1.25rem;
}

.article-sources__item {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-sources__link {
  color: #3b82f6;
  text-decoration: none;
}

.article-sources__link:hover {
  text-decoration: underline;
}

.article-sources__citation {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
}

/* ── Related & Continue ── */

.article-related,
.article-continue {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e4e4e7;
}

.article-related__title,
.article-continue__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #09090b;
  margin-bottom: 1rem;
}

.article-related__grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-related__card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-related__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3b82f6;
}

.article-related__card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #09090b;
}

.article-related__card-summary {
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.5;
}

.article-continue__card {
  max-width: 24rem;
}

/* Continue Learning card */

.continue-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--page-border, #e4e4e7);
  border-radius: 14px;
  background: var(--page-bg-alt, #fff);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.continue-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.continue-card__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.continue-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.continue-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--page-text-strong, #09090b);
}

.continue-card__summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--page-text-muted, #71717a);
}

.continue-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--page-text-muted, #a1a1aa);
}

.continue-card__meta-item {
  display: inline-flex;
  align-items: center;
}

.continue-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3b82f6;
  transition: gap 0.2s ease;
}

.continue-card:hover .continue-card__action {
  gap: 0.5rem;
}
