/* ================================================================
   JieCoin (j-binance.com) — Indigo Theme Stylesheet
   Brand: #4f46e5 (indigo), border #c7d2fe, bg #f8fafc
   Radius: 12px, Font: Inter + system
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #4338ca;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: #1e293b;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.btn--primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #4f46e5;
  border-color: #4f46e5;
}

.btn--outline:hover {
  background: #4f46e5;
  color: #fff;
}

.btn--white {
  background: #fff;
  color: #4f46e5;
  border-color: #fff;
}

.btn--white:hover {
  background: #eef2ff;
  border-color: #eef2ff;
  color: #4338ca;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  padding: 7px 16px;
  font-size: 0.8125rem;
  border-radius: 10px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn--full {
  width: 100%;
}

/* ── Header (Single-line, transparent on home) ─────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  height: 64px;
}

.site-header.scrolled,
body:not(.is-home) .site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom-color: #e2e8f0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.site-logo__text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.is-home .site-header:not(.scrolled) .site-logo__text {
  color: #fff;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  padding: 6px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: #4f46e5;
  background: #eef2ff;
}

.nav-link--active {
  color: #4f46e5;
  font-weight: 600;
}

.is-home .site-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.is-home .site-header:not(.scrolled) .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.is-home .site-header:not(.scrolled) .nav-link--active {
  color: #fff;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #4f46e5;
}

.is-home .site-header:not(.scrolled) .lang-select {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.is-home .site-header:not(.scrolled) .lang-select option {
  color: #1e293b;
  background: #fff;
}

.is-home .site-header:not(.scrolled) .header-cta {
  background: #fff;
  color: #4f46e5;
  border-color: #fff;
}

.is-home .site-header:not(.scrolled) .header-cta:hover {
  background: #eef2ff;
  border-color: #eef2ff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.is-home .site-header:not(.scrolled) .nav-toggle__bar {
  background: #fff;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__search {
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search__icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.hero-search__input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  color: #1e293b;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hero-search__input::placeholder {
  color: #94a3b8;
}

.hero-search__input:focus {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.hero__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Feature Cards ─────────────────────────────────────────────── */
.home-features {
  padding: 60px 0 40px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  display: block;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
  border-color: #a5b4fc;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ── Section Heads ─────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.section-head__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4f46e5;
}

.section-head__link:hover {
  color: #4338ca;
}

/* ── Home Posts Layout (2/3 + 1/3 sidebar) ─────────────────────── */
.home-posts {
  padding: 40px 0 60px;
}

.home-posts__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.home-posts__more {
  text-align: center;
  margin-top: 28px;
}

/* Home sidebar */
.home-posts__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-sidebar-section {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 24px;
}

.home-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.home-sidebar__cats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-sidebar__cats li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #475569;
  transition: all 0.2s;
  text-decoration: none;
}

.home-sidebar__cats li a:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.home-sidebar__cat-icon {
  display: flex;
  align-items: center;
  color: #4f46e5;
  flex-shrink: 0;
}

.home-sidebar-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 12px;
  padding: 28px 24px;
  color: #fff;
}

.home-sidebar-cta h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.home-sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.6;
}

.home-sidebar-cta .btn--primary {
  background: #fff;
  color: #4f46e5;
  border-color: #fff;
}

.home-sidebar-cta .btn--primary:hover {
  background: #eef2ff;
  border-color: #eef2ff;
}

/* ── Post Card Grid ────────────────────────────────────────────── */
.post-grid {
  display: grid;
  gap: 20px;
}

.post-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.post-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  border-color: #a5b4fc;
  transform: translateY(-2px);
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.post-card__title a {
  color: #1e293b;
  text-decoration: none;
}

.post-card__title a:hover {
  color: #4f46e5;
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: auto;
}

.post-card__read-time {
  color: #94a3b8;
}

/* ── Tag Pills ─────────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #eef2ff;
  color: #4f46e5;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #c7d2fe;
}

.tag-pill:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.tag-pill--sm {
  padding: 2px 10px;
  font-size: 0.75rem;
}

/* ── Tags Page Grid ────────────────────────────────────────────── */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.tag-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  transform: translateY(-3px);
}

.tag-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
}

.tag-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.tag-card__count {
  font-size: 0.8125rem;
  color: #64748b;
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.home-faq {
  padding: 60px 0;
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: #4f46e5;
  background: #eef2ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.faq-card__q {
  flex: 1;
}

.faq-card__arrow {
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.2s;
}

.faq-card:hover .faq-card__arrow {
  color: #4f46e5;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* placeholder for old faq-answer p */
.faq-answer-placeholder {
  margin: 0;
}

/* ── Bottom CTA ────────────────────────────────────────────────── */
.home-cta {
  padding: 60px 0;
}

.home-cta__box {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta__box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.home-cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.home-cta__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Page Wrapper (common) ─────────────────────────────────────── */
.page-wrapper {
  padding: 100px 0 60px;
  min-height: 60vh;
}

.page-header {
  margin-bottom: 36px;
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-header__meta {
  font-size: 0.9375rem;
  color: #64748b;
}

/* ── Tag Page Header ───────────────────────────────────────────── */
.tag-page-header {
  margin-bottom: 32px;
}

.tag-page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tag-page-header__count {
  font-size: 0.9375rem;
  color: #64748b;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 0 20px;
  font-size: 0.8125rem;
  color: #64748b;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #4f46e5;
}

.breadcrumb__sep {
  color: #cbd5e1;
  margin: 0 4px;
}

.breadcrumb__current {
  color: #1e293b;
  font-weight: 500;
}

/* ── Post Page (with sidebar) ──────────────────────────────────── */
.post-page {
  padding: 84px 0 60px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* Post article */
.post-article {
  min-width: 0;
}

.post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.post-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.post-header__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #1e293b;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
}

.post-header__meta svg {
  vertical-align: -2px;
}

.post-header__sep {
  color: #cbd5e1;
}

.post-header__desc {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.7;
  padding: 16px 20px;
  background: #eef2ff;
  border-radius: 12px;
  border-left: 4px solid #4f46e5;
}

/* Post body */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.post-body h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2ff;
  color: #1e293b;
}

.post-body h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1e293b;
}

.post-body h4 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.post-body p {
  margin-bottom: 16px;
}

.post-body ul,
.post-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: #4338ca;
}

.post-body img {
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-style: italic;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body code {
  font-family: 'SFMono-Regular', 'Consolas', 'Monaco', monospace;
  font-size: 0.875em;
}

.post-body :not(pre) > code {
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9375rem;
}

.post-body th,
.post-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.post-body th {
  background: #eef2ff;
  font-weight: 600;
  color: #1e293b;
}

.post-body tr:hover td {
  background: #f8fafc;
}

.post-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}

.post-body .heading-anchor {
  color: #c7d2fe;
  text-decoration: none;
  margin-left: 8px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-body h2:hover .heading-anchor,
.post-body h3:hover .heading-anchor {
  opacity: 1;
}

/* Post inline CTA */
.post-inline-cta {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.post-inline-cta__content {
  flex: 1;
  min-width: 200px;
}

.post-inline-cta__content strong {
  display: block;
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.post-inline-cta__content p {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0;
}

.post-inline-cta__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Related posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.related-posts__title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.related-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.related-card__tags {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.related-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__date {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* ── Post Sidebar ──────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.sidebar-cta__icon {
  margin-bottom: 12px;
}

.sidebar-cta__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.sidebar-cta__desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta__dl {
  margin-top: 8px;
}

.sidebar-related {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 24px;
}

.sidebar-section__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2ff;
}

.sidebar-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-related__list li {
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-related__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related__list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  margin-bottom: 4px;
}

.sidebar-related__list a:hover {
  color: #4f46e5;
}

.sidebar-related__list time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sidebar-tags {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 24px;
}

.sidebar-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #eef2ff;
  color: #4f46e5;
  text-decoration: none;
  border: 1px solid #c7d2fe;
  transition: all 0.2s;
}

.sidebar-tag:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: #1e1b4b;
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-logo:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-lang a {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.footer-lang a:hover,
.footer-lang a.active {
  color: #fff;
}

.footer-row-2 {
  padding-top: 16px;
}

.footer-risk {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-risk strong {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
}

/* ── Mobile Nav ────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav__item:hover,
.mobile-nav__item--active {
  color: #4f46e5;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 800;
  color: #c7d2fe;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: #64748b;
  margin-bottom: 28px;
}

/* ── Download Page ─────────────────────────────────────────────── */
.dl-page {
  padding-top: 20px;
}

.dl-page-header {
  margin-bottom: 32px;
}

.dl-page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.dl-page-header__desc {
  font-size: 1.0625rem;
  color: #64748b;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.dl-box {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 28px;
}

.dl-box__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dl-box__icon {
  font-size: 2rem;
}

.dl-box__platform {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.dl-box__sub {
  font-size: 0.8125rem;
  color: #64748b;
}

.dl-box__desc {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 20px;
}

.dl-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dl-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dl-step div {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
  padding-top: 2px;
}

.dl-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.dl-cta__content strong {
  font-size: 1rem;
  color: #1e293b;
}

.dl-cta__content p {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 4px 0 0;
}

/* ── About Page ────────────────────────────────────────────────── */
.about-page {
  padding-top: 20px;
}

.about-header {
  margin-bottom: 36px;
}

.about-header h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.about-header__desc {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-stat {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.about-stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat__label {
  font-size: 0.875rem;
  color: #64748b;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.about-card {
  text-align: center;
  padding: 20px 12px;
  background: #eef2ff;
  border-radius: 12px;
}

.about-card__icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #4f46e5;
}

.about-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-principle {
  padding: 24px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.about-principle strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.about-principle p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.lang-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.lang-card {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: #fff;
  color: #475569;
  border: 1px solid #c7d2fe;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-card:hover,
.lang-card.active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.about-notice {
  padding: 24px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  border-left: 4px solid #4f46e5;
  margin-bottom: 28px;
}

.about-notice strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.about-notice p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.about-notice p:last-child {
  margin-bottom: 0;
}

.about-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Disclaimer Page ───────────────────────────────────────────── */
.disclaimer-page {
  padding-top: 20px;
}

.disclaimer-page h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.disclaimer-content {
  max-width: 780px;
}

.disclaimer-content p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.disclaimer-content h2 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #1e293b;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.0625rem;
  color: #94a3b8;
}

/* ── Responsive: Tablet (<=1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .tags-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-posts__layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  .post-layout {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }

  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: Tablet small (<=860px) ────────────────────────── */
@media (max-width: 860px) {
  .home-posts__layout {
    grid-template-columns: 1fr;
  }

  .home-posts__sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sidebar-cta {
    grid-column: 1 / -1;
  }
}

/* ── Responsive: Mobile (<=768px) ──────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header mobile */
  .site-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 20px;
    gap: 2px;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    margin: 0;
  }

  .site-nav.open {
    right: 0;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .nav-overlay.open {
    display: block;
  }

  /* Mobile bottom nav */
  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__btns .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Features */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  /* Post grid */
  .post-grid--3col,
  .post-grid--2col {
    grid-template-columns: 1fr;
  }

  /* Tags */
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tag-card {
    padding: 24px 16px;
  }

  /* Post page */
  .post-page {
    padding: 80px 0 40px;
  }

  .post-header__title {
    font-size: 1.5rem;
  }

  .post-sidebar {
    grid-template-columns: 1fr;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .post-inline-cta {
    flex-direction: column;
    text-align: center;
  }

  .post-inline-cta__buttons {
    width: 100%;
    flex-direction: column;
  }

  .post-inline-cta__buttons .btn {
    width: 100%;
  }

  /* Download page */
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-cta {
    flex-direction: column;
    text-align: center;
  }

  /* About page */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    gap: 10px;
  }

  /* Home sidebar on mobile */
  .home-posts__sidebar {
    grid-template-columns: 1fr;
  }

  /* Page wrapper */
  .page-wrapper {
    padding: 84px 0 40px;
  }

  /* Section head */
  .section-head {
    margin-bottom: 20px;
  }

  .section-head__title {
    font-size: 1.25rem;
  }

  /* Body padding for bottom nav */
  body {
    padding-bottom: 64px;
  }

  .site-footer {
    margin-bottom: 56px;
  }
}

/* ── Responsive: Small mobile (<=480px) ────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 110px 0 50px;
  }

  .hero__title {
    font-size: 1.625rem;
  }

  .hero-search__input {
    padding: 12px 16px 12px 44px;
    font-size: 0.9375rem;
  }

  .home-cta__box {
    padding: 40px 24px;
  }

  .home-cta__title {
    font-size: 1.375rem;
  }

  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tag-card {
    padding: 20px 12px;
  }

  .tag-card__icon {
    width: 44px;
    height: 44px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-stat {
    padding: 20px 12px;
  }

  .about-stat__num {
    font-size: 1.5rem;
  }

  .post-card {
    padding: 20px 16px;
  }

  .post-body {
    font-size: 0.9375rem;
  }

  .post-body h2 {
    font-size: 1.25rem;
  }

  .post-body h3 {
    font-size: 1.125rem;
  }

  .post-body pre {
    padding: 16px;
    font-size: 0.8125rem;
    border-radius: 8px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .faq-answer p {
    padding: 0 16px 14px;
    font-size: 0.875rem;
  }

  .error-page__code {
    font-size: 4rem;
  }

  .dl-box {
    padding: 20px;
  }
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .nav-overlay,
  .hero__btns,
  .hero__search,
  .post-inline-cta,
  .post-sidebar,
  .home-cta,
  .home-features,
  .home-faq {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .container {
    max-width: 100%;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-page {
    padding-top: 20px;
  }
}

/* ── Accessibility & Focus ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: #4f46e5;
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for interactive elements */
.post-card,
.feature-card,
.tag-card,
.related-card,
.sidebar-tag,
.tag-pill,
.lang-card {
  transition: all 0.25s ease;
}

/* ── Selection ─────────────────────────────────────────────────── */
::selection {
  background: #c7d2fe;
  color: #1e1b4b;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5b4fc;
}

/* ── Utility Classes ───────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-muted {
  color: #64748b;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ── Large screen (>=1280px) ───────────────────────────────────── */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero {
    padding: 160px 0 100px;
  }
}

/* ── Dark mode (prefers-color-scheme) ──────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Only apply if user has explicit dark mode system pref
     This section is kept minimal - expand as needed */
}

/* ── Post body special elements ────────────────────────────────── */
.post-body .info-box {
  padding: 16px 20px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  margin: 20px 0;
}

.post-body .warning-box {
  padding: 16px 20px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  margin: 20px 0;
  color: #92400e;
}

.post-body .tip-box {
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  margin: 20px 0;
  color: #065f46;
}

/* Step list in post body */
.post-body .step-list {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.post-body .step-list li {
  counter-increment: step-counter;
  padding-left: 40px;
  position: relative;
  margin-bottom: 16px;
}

.post-body .step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loading skeleton (for JS-enhanced pages) ──────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOC (Table of Contents) styling ───────────────────────────── */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.toc h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
}

.toc a:hover {
  color: #4f46e5;
}

.toc ul ul {
  padding-left: 16px;
  margin-top: 4px;
}

/* ── Category chips (horizontal scroll on home) ────────────────── */
.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.category-chip:hover {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #4f46e5;
}

.category-chip__icon {
  display: flex;
  align-items: center;
  color: #4f46e5;
}

.category-chip__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
}

.category-chip:hover .category-chip__name {
  color: #4f46e5;
}

/* ── End of Stylesheet ─────────────────────────────────────────── */
/* Pagination */
.pagination { margin-top: 48px; }
.pagination__inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination__btn { display: inline-flex; align-items: center; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text); border: 1px solid var(--border, #e2e8f0); border-radius: 8px; transition: all .25s; text-decoration: none; }
.pagination__btn:hover:not(.pagination__btn--disabled) { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.pagination__btn--disabled { opacity: .4; cursor: not-allowed; }
.pagination__pages { display: flex; gap: 4px; }
.pagination__page { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 14px; border-radius: 8px; color: var(--text); transition: all .25s; text-decoration: none; }
.pagination__page:hover { background: rgba(37,99,235,.08); color: var(--primary, #2563eb); }
.pagination__page--current { background: var(--primary, #2563eb); color: #fff; font-weight: 600; }
@media (max-width: 768px) { .pagination__pages { display: none; } }

