/* Blog — Rahatsell */

.blog-page .reveal,
.blog-page .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

.blog-page {
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(99, 56, 217, 0.08), transparent 60%),
    radial-gradient(900px 420px at 0% 20%, rgba(20, 184, 166, 0.07), transparent 55%),
    var(--paper);
  overflow-x: hidden;
}

.blog-main,
.blog-list-section,
.blog-layout,
.blog-main-col,
.blog-grid,
.blog-filters,
.blog-filters-track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.blog-main-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.blog-main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

/* Hero */
.blog-hero {
  position: relative;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.blog-hero--compact {
  padding: 2rem 0 1rem;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(99, 56, 217, 0.1), rgba(20, 184, 166, 0.08)),
    var(--surface);
  z-index: 0;
}

.blog-hero-bg::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 56, 217, 0.18), transparent 70%);
}

.blog-hero .container,
.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero-inner {
  max-width: 720px;
}

.blog-hero h1 {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.blog-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .blog-sidebar {
    display: none;
  }

  .blog-mobile-cta {
    display: block;
  }
}

@media (min-width: 961px) {
  .blog-mobile-cta {
    display: none;
  }
}

.blog-filters {
  margin-bottom: 1.35rem;
}

.blog-filters-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.blog-filters-track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  padding: 0.15rem 0 0.35rem;
}

.blog-filters-track::-webkit-scrollbar {
  display: none;
}

.blog-filters-track::before,
.blog-filters-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  width: 1.75rem;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.blog-filters-track::before {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}

.blog-filters-track::after {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}

.blog-filters-track.is-overflow.can-scroll-end::after {
  opacity: 1;
}

.blog-filters-track.is-overflow.scrolled::before {
  opacity: 1;
}

.blog-category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: max-content;
  min-width: 0;
}

.blog-list-section {
  padding: 1.5rem 0 4.5rem;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 229, 236, 0.95);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.blog-chip:hover {
  color: var(--ink);
  border-color: rgba(99, 56, 217, 0.28);
  background: rgba(99, 56, 217, 0.04);
}

.blog-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(99, 56, 217, 0.28);
}

.blog-chip.is-active:hover {
  color: #fff;
  background: var(--primary-2);
}

.blog-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(22, 24, 29, 0.06);
  color: inherit;
}

.blog-chip.is-active .blog-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (min-width: 768px) {
  .blog-filters-track {
    overflow: visible;
    padding-bottom: 0;
  }

  .blog-filters-track::before,
  .blog-filters-track::after {
    display: none;
  }

  .blog-category-chips {
    flex-wrap: wrap;
    width: auto;
    gap: 0.5rem;
  }
}

/* Featured card */
.blog-featured-card {
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 229, 236, 0.9);
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 24, 29, 0.07);
}

.blog-featured-link {
  display: block;
  color: inherit;
}

.blog-featured-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.blog-featured-body h2 {
  margin: 0.5rem 0 0.55rem;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
}

.blog-featured-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .blog-featured-link {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .blog-featured-media {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .blog-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.6rem;
  }
}

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.blog-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

/* Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.blog-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .blog-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-grid,
  .blog-grid--wide {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  border: 1px solid rgba(226, 229, 236, 0.95);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.04);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.blog-card:hover {
  box-shadow: 0 16px 36px rgba(22, 24, 29, 0.1);
  transform: translateY(-3px);
  border-color: rgba(99, 56, 217, 0.2);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 56, 217, 0.12), rgba(20, 184, 166, 0.12));
}

.blog-card-image img,
.blog-related-image img,
.blog-article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image img,
.blog-related-card:hover .blog-related-image img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h2,
.blog-card-body h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mobile-cta {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(99, 56, 217, 0.08), rgba(20, 184, 166, 0.08));
}

.blog-mobile-cta h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.blog-mobile-cta p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.blog-sidebar-card,
.blog-sidebar-cta {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.blog-sidebar-cta {
  margin-top: 1rem;
  background: linear-gradient(160deg, rgba(99, 56, 217, 0.1), rgba(20, 184, 166, 0.1));
}

.blog-sidebar h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.blog-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-cats li + li {
  margin-top: 0.2rem;
}

.blog-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.blog-sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(22, 24, 29, 0.06);
  color: var(--ink-soft);
}

.blog-sidebar-cats a.is-active .blog-sidebar-count {
  background: rgba(99, 56, 217, 0.14);
  color: var(--primary);
}

.blog-sidebar-cats a:hover,
.blog-sidebar-cats a.is-active {
  background: rgba(99, 56, 217, 0.08);
  color: var(--primary);
  font-weight: 650;
}

.blog-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-list li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.blog-sidebar-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.blog-sidebar-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.blog-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
}

/* Article detail */
.blog-article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  margin-bottom: 2rem;
}

.blog-article-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blog-article-hero-media img {
  min-height: 100%;
}

.blog-article-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 28, 0.15) 0%, rgba(16, 18, 28, 0.72) 70%, rgba(16, 18, 28, 0.88) 100%);
}

.blog-article-hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
  max-width: 860px;
}

.blog-article-hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.blog-article-hero .blog-card-category {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.blog-article-excerpt {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 1rem 0 0;
  max-width: 48rem;
  line-height: 1.8;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.blog-breadcrumb a {
  color: inherit;
}

.blog-breadcrumb--light,
.blog-breadcrumb--light a {
  color: rgba(255, 255, 255, 0.82);
}

.blog-article-body {
  padding-bottom: 3rem;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.blog-article-layout--solo {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

/* TOC — sticky on desktop */
.blog-toc {
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  align-self: start;
  z-index: 5;
  max-height: calc(100vh - var(--header-h) - 1.5rem);
}

.blog-toc-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.05);
  backdrop-filter: blur(10px);
  max-height: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-toc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: default;
  user-select: none;
}

.blog-toc-summary::-webkit-details-marker {
  display: none;
}

.blog-toc-chevron {
  display: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.blog-toc-panel[open] .blog-toc-chevron {
  transform: rotate(225deg);
}

.blog-toc-nav {
  padding: 0 0.65rem 0.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(100vh - var(--header-h) - 5.5rem);
}

.blog-toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-toc-nav li {
  margin-bottom: 0.15rem;
}

.blog-toc-nav a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  border-right: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.blog-toc-nav a:hover {
  color: var(--primary);
  background: rgba(99, 56, 217, 0.06);
}

.blog-toc-nav a.is-active {
  color: var(--primary);
  font-weight: 650;
  background: rgba(99, 56, 217, 0.08);
  border-right-color: var(--primary);
}

.blog-toc-level-3 a { padding-right: 1.1rem; }
.blog-toc-level-4 a { padding-right: 1.6rem; }

@media (max-width: 900px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-toc {
    position: static;
    max-height: none;
    order: -1;
  }

  .blog-toc-panel {
    max-height: none;
    border-radius: 12px;
  }

  .blog-toc-summary {
    cursor: pointer;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .blog-toc-chevron {
    display: block;
  }

  .blog-toc-nav {
    max-height: min(42vh, 280px);
    padding-bottom: 0.65rem;
    border-top: 1px solid var(--line);
  }

  .blog-article-hero {
    min-height: 0;
    margin-bottom: 1rem;
  }

  .blog-article-hero-content {
    padding: 1.75rem 0 1.35rem;
  }

  .blog-article-hero h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.75rem);
    margin: 0.55rem 0 0.65rem;
  }

  .blog-article-excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-article-meta {
    gap: 0.65rem;
    font-size: 0.82rem;
  }

  .prose {
    padding: 1.1rem 0.95rem 1.25rem;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.85;
    box-shadow: none;
  }

  .prose h2 {
    font-size: 1.18rem;
    margin-top: 1.45rem;
  }

  .prose h3 {
    font-size: 1.05rem;
  }

  .blog-faq-item {
    padding: 0.75rem 0.85rem;
  }

  .blog-cta-box {
    margin: 1.5rem 0;
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }

  .blog-cta-box h2 {
    font-size: 1.15rem;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .blog-related-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    border-radius: 12px;
  }

  .blog-related-image {
    aspect-ratio: 1;
    height: 100%;
    min-height: 96px;
  }

  .blog-related-card .blog-card-category {
    margin: 0.7rem 0.75rem 0;
    font-size: 0.72rem;
  }

  .blog-related-card h3 {
    margin: 0.35rem 0.75rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ── Mobile polish ── */
@media (max-width: 720px) {
  .blog-page .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .blog-hero {
    padding: 1.15rem 0 0.85rem;
  }

  .blog-hero--compact {
    padding: 1rem 0 0.6rem;
  }

  .blog-hero h1 {
    margin: 0.45rem 0 0.5rem;
    font-size: clamp(1.28rem, 6.2vw, 1.55rem);
    line-height: 1.35;
  }

  .blog-hero p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .blog-list-section {
    padding: 0.85rem 0 2.5rem;
  }

  .blog-filters {
    margin-bottom: 1.05rem;
  }

  .blog-filters-label {
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
  }

  .blog-filters-track {
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .blog-category-chips {
    gap: 0.4rem;
  }

  .blog-chip {
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
  }

  .blog-chip-count {
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0.66rem;
  }

  .blog-featured-card {
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .blog-featured-body {
    padding: 1rem 1.05rem 1.1rem;
  }

  .blog-featured-body h2 {
    font-size: 1.05rem;
  }

  .blog-featured-body p {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-section-head {
    margin-bottom: 0.75rem;
  }

  .blog-section-head h2 {
    font-size: 1.05rem;
  }

  .blog-grid,
  .blog-grid--wide {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .blog-card {
    border-radius: 14px;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card-body {
    padding: 0.9rem 1rem 1rem;
  }

  .blog-card-body h2,
  .blog-card-body h3 {
    font-size: 0.98rem;
  }

  .blog-card-excerpt {
    font-size: 0.86rem;
  }

  .blog-card-meta {
    padding-top: 0.65rem;
    font-size: 0.76rem;
  }

  .blog-mobile-cta {
    margin-top: 1.25rem;
    padding: 1rem;
  }

  /* Article detail */
  .blog-article-hero {
    margin-bottom: 0.85rem;
  }

  .blog-breadcrumb--light {
    display: none;
  }

  .blog-article-hero-content {
    padding: 2.4rem 0 1.2rem;
  }

  .blog-article-body {
    padding-bottom: 1.75rem;
  }

  .prose {
    border: 0;
    background: transparent;
    padding: 0.25rem 0 0.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .blog-faq > h2,
  .blog-related > h2 {
    font-size: 1.1rem;
  }
}

.prose {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(226, 229, 236, 0.9);
  border-radius: 18px;
  padding: 1.6rem 1.7rem 1.8rem;
  box-shadow: 0 10px 30px rgba(22, 24, 29, 0.04);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.18rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-right: 1.25rem; }
.prose a { font-weight: 600; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-right: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}
.prose img {
  border-radius: 14px;
  margin: 1rem 0;
  max-width: 100%;
  height: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
}
.prose th {
  background: var(--surface);
}

.blog-faq {
  margin: 2.5rem 0 1.5rem;
}

.blog-faq > h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.blog-faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 24, 29, 0.03);
}

.blog-faq-item summary {
  cursor: pointer;
  font-weight: 650;
}

.blog-faq-item p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.blog-cta-box {
  margin: 2.5rem 0;
  padding: 2.2rem 1.5rem;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--primary), #4f2bb8 45%, var(--accent));
  color: #fff;
  box-shadow: 0 18px 40px rgba(99, 56, 217, 0.28);
}

.blog-cta-box h2 { margin: 0 0 0.5rem; color: #fff; }
.blog-cta-box p { margin: 0 0 1.25rem; opacity: 0.94; }
.blog-cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.blog-related {
  margin: 2.5rem 0 3.5rem;
}

.blog-related > h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.blog-related-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 24, 29, 0.08);
}

.blog-related-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.blog-related-card .blog-card-category,
.blog-related-card h3 {
  margin: 0.75rem 1rem 0;
}

.blog-related-card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.45;
}
