/* ═══════════════════════════════════════════════════════════════
   Kantong Aplikasi — Premium Blog Article Design System 2026
   Applies to all blog articles (current + future) via [slug].astro
   ═══════════════════════════════════════════════════════════════ */

:root {
  --article-max-width: 56rem; /* ~896px */
  --article-font-size: 1.125rem; /* 18px */
  --article-font-size-lg: 1.25rem; /* 20px */
  --article-line-height: 1.85;
  --article-heading-color: rgb(17 24 39);
  --article-body-color: rgb(55 65 81);
  --article-accent: rgb(79 70 229);
  --article-accent-light: rgb(99 102 241);
  --article-muted: rgb(107 114 128);
  --article-border: rgb(229 231 235);
  --article-code-bg: rgb(15 23 42);
  --article-toc-width: 15rem;
}

.dark {
  --article-heading-color: rgb(249 250 251);
  --article-body-color: rgb(209 213 219);
  --article-muted: rgb(156 163 175);
  --article-border: rgb(55 65 81);
}

/* ── Page shell ── */
.blog-article-page {
  --tw-gradient-from: rgb(249 250 251);
  --tw-gradient-to: rgb(255 255 255);
}

.dark .blog-article-page {
  --tw-gradient-from: rgb(3 7 18);
  --tw-gradient-to: rgb(17 24 39);
}

.blog-article-shell {
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* ── Hero ── */
.blog-hero {
  position: relative;
  width: 100%;
  height: clamp(18rem, 42vw, 32rem);
  overflow: hidden;
  background: rgb(17 24 39);
}

.blog-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(17 24 39 / 0.15) 0%,
    rgb(17 24 39 / 0.55) 45%,
    rgb(17 24 39 / 0.92) 100%
  );
}

.blog-hero__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
  max-width: 82rem;
  margin-inline: auto;
}

.blog-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgb(209 213 219);
  margin-bottom: 1rem;
}

.blog-hero__breadcrumb a {
  color: rgb(199 210 254);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-hero__breadcrumb a:hover {
  color: white;
}

.blog-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.blog-hero__category:hover {
  background: rgb(255 255 255 / 0.2);
}

/* ── Article card (overlaps hero) ── */
.blog-article-card {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 3rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid var(--article-border);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.05),
    0 20px 50px -12px rgb(0 0 0 / 0.12);
  overflow: hidden;
}

.dark .blog-article-card {
  background: rgb(17 24 39);
  border-color: rgb(55 65 81);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.3),
    0 20px 50px -12px rgb(0 0 0 / 0.5);
}

@media (min-width: 640px) {
  .blog-article-card {
    margin-top: -5rem;
    border-radius: 1.75rem;
  }
}

/* ── Article meta badges ── */
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--article-border);
  margin-bottom: 1.5rem;
}

.blog-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--article-muted);
  background: rgb(243 244 246);
  border: 1px solid rgb(229 231 235);
  white-space: nowrap;
}

.dark .blog-meta-badge {
  background: rgb(31 41 55);
  border-color: rgb(55 65 81);
  color: rgb(156 163 175);
}

.blog-meta-badge--accent {
  color: rgb(67 56 202);
  background: rgb(238 242 255);
  border-color: rgb(199 210 254);
}

.dark .blog-meta-badge--accent {
  color: rgb(165 180 252);
  background: rgb(49 46 129 / 0.35);
  border-color: rgb(67 56 202 / 0.4);
}

.blog-meta-badge--success {
  color: rgb(4 120 87);
  background: rgb(236 253 245);
  border-color: rgb(167 243 208);
}

.dark .blog-meta-badge--success {
  color: rgb(110 231 183);
  background: rgb(6 78 59 / 0.3);
  border-color: rgb(16 185 129 / 0.3);
}

.blog-meta-badge--ai {
  color: rgb(126 34 206);
  background: rgb(250 245 255);
  border-color: rgb(233 213 255);
}

.dark .blog-meta-badge--ai {
  color: rgb(216 180 254);
  background: rgb(88 28 135 / 0.25);
  border-color: rgb(147 51 234 / 0.35);
}

/* ── Title & excerpt ── */
.blog-article-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--article-heading-color);
  margin-bottom: 1rem;
}

.blog-article-excerpt {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--article-muted);
  border-left: 4px solid var(--article-accent);
  padding-left: 1.25rem;
  margin-bottom: 0;
}

/* ── Layout grid: TOC + content ── */
.blog-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 1200px) {
  .blog-article-grid {
    grid-template-columns: var(--article-toc-width) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }
}

.blog-article-main {
  min-width: 0;
  max-width: var(--article-max-width);
}

@media (min-width: 1200px) {
  .blog-article-main {
    max-width: none;
  }
}

/* ── Table of Contents ── */
.blog-toc-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .blog-toc-sidebar {
    display: block;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.blog-toc-mobile {
  display: block;
  margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
  .blog-toc-mobile {
    display: none;
  }
}

.blog-toc-panel {
  border-radius: 1rem;
  border: 1px solid var(--article-border);
  background: rgb(249 250 251 / 0.8);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.dark .blog-toc-panel {
  background: rgb(31 41 55 / 0.6);
  border-color: rgb(55 65 81);
}

.blog-toc-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--article-heading-color);
  cursor: pointer;
  user-select: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

@media (min-width: 1200px) {
  .blog-toc-panel__header {
    cursor: default;
    padding-bottom: 0.5rem;
  }
}

.blog-toc-panel__chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--article-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.blog-toc-panel.is-open .blog-toc-panel__chevron {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .blog-toc-panel__chevron {
    display: none;
  }
}

.blog-toc-panel__body {
  display: none;
  padding: 0 1rem 1rem;
}

.blog-toc-panel.is-open .blog-toc-panel__body {
  display: block;
}

@media (min-width: 1200px) {
  .blog-toc-panel__body {
    display: block;
  }
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-toc-list a {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--article-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.blog-toc-list a:hover {
  color: var(--article-accent);
  background: rgb(238 242 255 / 0.6);
}

.dark .blog-toc-list a:hover {
  background: rgb(49 46 129 / 0.25);
}

.blog-toc-list a.is-active {
  color: var(--article-accent);
  font-weight: 600;
  border-left-color: var(--article-accent);
  background: rgb(238 242 255 / 0.8);
}

.dark .blog-toc-list a.is-active {
  background: rgb(49 46 129 / 0.35);
}

.blog-toc-list .blog-toc-l3 {
  padding-left: 0.875rem;
}

.blog-toc-list .blog-toc-l4 {
  padding-left: 1.5rem;
}

/* Hide inline auto-TOC (replaced by sidebar/mobile TOC) */
.blog-article-prose .blog-auto-toc {
  display: none !important;
}

/* ── Reading progress ── */
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
  box-shadow: 0 0 8px rgb(99 102 241 / 0.5);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Prose / typography ── */
.blog-article-prose {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
  letter-spacing: 0.01em;
  color: var(--article-body-color);
}

@media (min-width: 1024px) {
  .blog-article-prose {
    font-size: var(--article-font-size-lg);
    line-height: 1.9;
  }
}

.blog-article-prose :is(h1, h2, h3, h4, h5, h6) {
  color: var(--article-heading-color);
  font-weight: 700;
  scroll-margin-top: 5.5rem;
}

/* Hide duplicate H1 inside content (page title is the canonical H1) */
.blog-article-prose article > h1:first-child,
.blog-article-prose > h1:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-article-prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--article-border);
}

.blog-article-prose h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--article-accent);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.dark .blog-article-prose h3 {
  color: rgb(165 180 252);
}

.blog-article-prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-article-prose p {
  margin-bottom: 1.5rem;
}

.blog-article-prose a {
  color: var(--article-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.blog-article-prose a:hover {
  color: rgb(67 56 202);
}

.dark .blog-article-prose a:hover {
  color: rgb(165 180 252);
}

.blog-article-prose strong {
  color: var(--article-heading-color);
  font-weight: 700;
}

.blog-article-prose ul,
.blog-article-prose ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}

.blog-article-prose li {
  margin-bottom: 0.625rem;
  line-height: var(--article-line-height);
}

.blog-article-prose ul li::marker {
  color: var(--article-accent);
  font-weight: 700;
}

.blog-article-prose ol li::marker {
  color: var(--article-accent);
  font-weight: 600;
}

/* Blockquote — premium */
.blog-article-prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--article-accent);
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(135deg, rgb(238 242 255 / 0.7), rgb(245 243 255 / 0.5));
  color: rgb(55 65 81);
  font-size: 1.0625em;
  font-weight: 500;
  line-height: 1.75;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.dark .blog-article-prose blockquote {
  background: linear-gradient(135deg, rgb(49 46 129 / 0.25), rgb(88 28 135 / 0.15));
  color: rgb(209 213 219);
}

.blog-article-prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Callout components */
.blog-callout,
.blog-article-prose .blog-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 3.75rem;
  border-radius: 1rem;
  border: 1px solid var(--article-border);
  position: relative;
  font-size: 1em;
  line-height: 1.75;
}

.blog-callout::before,
.blog-article-prose .blog-callout::before {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

.blog-callout-tip,
.blog-article-prose .blog-callout-tip {
  background: rgb(236 253 245);
  border-color: rgb(167 243 208);
}

.blog-callout-tip::before { content: '💡'; }

.blog-callout-insight,
.blog-article-prose .blog-callout-insight {
  background: rgb(238 242 255);
  border-color: rgb(199 210 254);
}

.blog-callout-insight::before { content: '✨'; }

.blog-callout-best,
.blog-article-prose .blog-callout-best {
  background: rgb(239 246 255);
  border-color: rgb(191 219 254);
}

.blog-callout-best::before { content: '✅'; }

.blog-callout-warning,
.blog-article-prose .blog-callout-warning {
  background: rgb(255 251 235);
  border-color: rgb(253 230 138);
}

.blog-callout-warning::before { content: '⚠️'; }

.blog-callout-pro,
.blog-article-prose .blog-callout-pro {
  background: rgb(250 245 255);
  border-color: rgb(233 213 255);
}

.blog-callout-pro::before { content: '🚀'; }

.dark .blog-callout-tip { background: rgb(6 78 59 / 0.2); border-color: rgb(16 185 129 / 0.3); }
.dark .blog-callout-insight { background: rgb(49 46 129 / 0.25); border-color: rgb(67 56 202 / 0.35); }
.dark .blog-callout-best { background: rgb(30 58 138 / 0.2); border-color: rgb(59 130 246 / 0.3); }
.dark .blog-callout-warning { background: rgb(120 53 15 / 0.2); border-color: rgb(245 158 11 / 0.3); }
.dark .blog-callout-pro { background: rgb(88 28 135 / 0.2); border-color: rgb(168 85 247 / 0.3); }

.blog-callout__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
  color: var(--article-accent);
}

/* Inline code */
.blog-article-prose :not(pre) > code {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.875em;
  padding: 0.15em 0.45em;
  border-radius: 0.375rem;
  background: rgb(238 242 255);
  color: rgb(67 56 202);
  border: 1px solid rgb(199 210 254);
}

.dark .blog-article-prose :not(pre) > code {
  background: rgb(49 46 129 / 0.35);
  color: rgb(165 180 252);
  border-color: rgb(67 56 202 / 0.4);
}

/* Code blocks */
.blog-article-prose pre {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--article-code-bg);
  border: 1px solid rgb(51 65 85);
  overflow-x: auto;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.4);
}

.blog-article-prose pre code {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgb(226 232 240);
  background: transparent;
  border: none;
  padding: 0;
}

.blog-code-copy {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(203 213 225);
  background: rgb(51 65 85 / 0.8);
  border: 1px solid rgb(71 85 105);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.blog-code-copy:hover {
  background: rgb(71 85 105);
  color: white;
}

.blog-code-copy.is-copied {
  color: rgb(110 231 183);
  border-color: rgb(16 185 129);
}

/* Images & tables */
.blog-article-prose img {
  border-radius: 1rem;
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.15);
  border: 1px solid var(--article-border);
}

.blog-article-prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9375em;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--article-border);
}

.blog-article-prose th,
.blog-article-prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--article-border);
  text-align: left;
}

.blog-article-prose th {
  background: rgb(249 250 251);
  font-weight: 600;
  color: var(--article-heading-color);
}

.dark .blog-article-prose th {
  background: rgb(31 41 55);
}

.blog-article-prose hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--article-border);
}

/* Internal links box */
.blog-article-prose .blog-internal-links {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgb(238 242 255 / 0.5);
  border: 1px solid rgb(199 210 254);
}

.dark .blog-article-prose .blog-internal-links {
  background: rgb(49 46 129 / 0.2);
  border-color: rgb(67 56 202 / 0.35);
}

/* ── Author card ── */
.blog-author-card {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--article-border);
  background: linear-gradient(135deg, rgb(249 250 251), rgb(255 255 255));
}

.dark .blog-author-card {
  background: linear-gradient(135deg, rgb(31 41 55), rgb(17 24 39));
  border-color: rgb(55 65 81);
}

/* ── FAQ premium ── */
.blog-faq-premium .blog-faq-item summary::-webkit-details-marker {
  display: none;
}

.blog-faq-premium .blog-faq-item[open] summary {
  border-bottom: 1px solid var(--article-border);
}

.blog-faq-premium .blog-faq-answer {
  animation: blog-faq-open 0.3s ease;
}

@keyframes blog-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Recommendations ── */
.blog-rec-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid var(--article-border);
  background: white;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.dark .blog-rec-card {
  background: rgb(31 41 55);
  border-color: rgb(55 65 81);
}

.blog-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgb(79 70 229 / 0.25);
}

.blog-rec-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-rec-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-rec-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.blog-rec-badge--bestseller {
  color: rgb(180 83 9);
  background: rgb(254 243 199);
}

.blog-rec-badge--new {
  color: rgb(4 120 87);
  background: rgb(209 250 229);
}

.blog-rec-badge--featured {
  color: rgb(67 56 202);
  background: rgb(224 231 255);
}

/* ── Related articles ── */
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Bottom CTA ── */
.blog-bottom-cta {
  margin: 4rem 0 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgb(79 70 229), rgb(124 58 237), rgb(147 51 234));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgb(255 255 255 / 0.1), transparent 50%);
  pointer-events: none;
}

.blog-bottom-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.blog-bottom-cta p {
  font-size: 1.0625rem;
  color: rgb(224 231 255);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-inline: auto;
  position: relative;
}

.blog-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
}

.blog-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-bottom-cta__btn--primary {
  background: white;
  color: rgb(79 70 229);
}

.blog-bottom-cta__btn--primary:hover {
  background: rgb(238 242 255);
  transform: translateY(-1px);
}

.blog-bottom-cta__btn--secondary {
  background: rgb(255 255 255 / 0.15);
  color: white;
  border: 1px solid rgb(255 255 255 / 0.3);
}

.blog-bottom-cta__btn--secondary:hover {
  background: rgb(255 255 255 / 0.25);
}

/* Inline article CTA (from enrich.ts) — upgraded */
.blog-article-prose .blog-article-cta {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgb(79 70 229), rgb(124 58 237));
  color: white;
  border: none;
}

.blog-article-prose .blog-article-cta h2 {
  color: white;
  border: none;
  font-size: 1.375rem;
  margin-top: 0;
  padding-bottom: 0;
}

.blog-article-prose .blog-article-cta p {
  color: rgb(224 231 255);
}

.blog-article-prose .blog-article-cta a {
  color: white;
}

.blog-article-prose .blog-cta-btn {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.blog-article-prose .blog-cta-primary {
  background: white;
  color: rgb(79 70 229);
}

.blog-article-prose .blog-cta-secondary {
  background: rgb(255 255 255 / 0.15);
  color: white;
  border: 1px solid rgb(255 255 255 / 0.25);
}

/* ── Share section ── */
.blog-article-share {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--article-border);
}

/* Smooth scroll */
html:has(.blog-article-page) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.blog-article-page) {
    scroll-behavior: auto;
  }
  .blog-reading-progress {
    transition: none;
  }
}
