/* ============================================================
   BLOG.CSS — Blog-specific layouts and components
   Dark theme · blurred gradient blooms · Geist headings / Inter body
   ============================================================ */

/* ── Blog Home ────────────────────────────────────────────── */

/* Hero — dark canvas + grid lines + blurred gradient bloom */
.blog-hero {
  position: relative;
  background: var(--c-bg);
  padding: 4rem 0 2rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Faint blueprint grid, fading at top & bottom (same as livepush.io hero) */
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  opacity: 0.6;
}

/* The "boom": big soft blurred colour blobs behind the headline */
.blog-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 120vw);
  height: 130%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 50% 28%, rgba(102, 215, 47, 0.24), transparent 68%),
    radial-gradient(ellipse 34% 30% at 24% 52%, rgba(87, 118, 255, 0.18), transparent 66%),
    radial-gradient(ellipse 32% 28% at 76% 56%, rgba(176, 122, 255, 0.14), transparent 66%),
    radial-gradient(ellipse 26% 20% at 58% 18%, rgba(255, 255, 255, 0.07), transparent 60%);
  filter: blur(64px) saturate(118%);
  opacity: 0.85;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-brand);
  background: rgba(102, 215, 47, 0.1);
  border: 1px solid rgba(102, 215, 47, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(6px);
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 1.1rem;
  text-wrap: balance;
}

.blog-hero-sub {
  font-size: 1.06rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

/* Pulsing live dot inside the eyebrow badge */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(102, 215, 47, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(102, 215, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 215, 47, 0); }
}

/* Gradient accent phrase in the headline */
.hero-accent {
  background: linear-gradient(92deg, #66d72f 0%, #8ae65a 45%, #5fe0ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Popular-topic chips under the search bar */
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.hero-quick-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-light);
  margin-right: 0.1rem;
}
.hero-chip {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  background: rgba(23, 26, 34, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hero-chip:hover {
  color: var(--c-brand);
  border-color: rgba(102, 215, 47, 0.45);
  background: rgba(102, 215, 47, 0.08);
  text-decoration: none;
}

/* ── Recent posts: 1 large + 2 small ─────────────────────── */
.recent-posts-section { padding: 0 0 1.5rem; }

.recent-posts-section > .section-heading { margin-bottom: 1.5rem; }

.recent-posts-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.recent-small-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

/* Small card in the stack: thumbnail left + text right */
.card-small {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--card-sheen), var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  flex: 1;
  text-decoration: none;
}
.card-small:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px var(--c-shadow);
  transform: translateY(-1px);
}
.card-small .card-img-placeholder {
  aspect-ratio: auto;
  height: 100%;
  min-height: 110px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.card-small .card-body {
  padding: 0.875rem 1rem;
  justify-content: center;
}
.card-small .card-title {
  font-size: 0.875rem;
  font-weight: 600;
  -webkit-line-clamp: 2;
}
.card-small .card-excerpt {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

/* Search bar — dark surface, green action */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(23, 26, 34, 0.85);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: rgba(102, 215, 47, 0.5); }

.search-bar-icon {
  width: 18px;
  height: 18px;
  margin-left: 1.15rem;
  color: var(--c-text-light);
  flex: 0 0 auto;
}
.search-bar .search-bar-icon + input { padding-left: 0.75rem; }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: transparent;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--c-text-light); }

.search-bar button {
  background: var(--c-brand);
  border: none;
  color: var(--c-cta-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.62rem 1.4rem;
  margin: 0.32rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--c-brand-hover); }

/* Category filter bar */
.category-bar {
  background: rgba(27, 30, 40, 0.85);
  border-bottom: 1px solid var(--c-border-light);
  padding: 0.875rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-text-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
}
.cat-filter-btn:hover {
  border-color: rgba(102, 215, 47, 0.5);
  color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}
.cat-filter-btn.active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-cta-ink);
  font-weight: 600;
}

/* ── Blog category subnav (prominent, sticky under navbar) ── */
.blog-subnav{background:transparent;border-bottom:1px solid var(--c-border-light);}
.blog-subnav-inner{display:flex;align-items:center;justify-content:center;gap:0.25rem;max-width:var(--max-w);margin:0 auto;padding:0.55rem 1.25rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.blog-subnav-inner::-webkit-scrollbar{display:none;}
.cat-pill{--accent:var(--c-brand);--accent-soft:var(--c-brand-soft);display:inline-flex;align-items:center;flex-shrink:0;font-family:var(--font-heading);font-size:0.98rem;font-weight:500;line-height:1;padding:0.55rem 0.2rem;margin:0 0.55rem;border:none;border-bottom:2px solid transparent;background:transparent;color:var(--c-text);white-space:nowrap;text-decoration:none;transition:color .15s,border-color .15s;}
.cat-pill:hover{color:var(--c-text);}
.cat-pill.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600;}

/* Blog main layout */
.blog-main { padding: 3rem 0 4rem; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* Section headings */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.section-heading a {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--c-brand);
}
.section-heading a:hover { color: var(--c-brand-hover); }

/* Blog sections spacing */
.blog-section { margin-bottom: 3rem; }

/* ── Article Cards ────────────────────────────────────────── */
.card {
  background: var(--card-sheen), var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px var(--c-shadow);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--c-surface-2);
  display: block;
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    radial-gradient(ellipse 70% 90% at 78% -10%, rgba(102, 215, 47, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 80% at 12% 110%, rgba(87, 118, 255, 0.12), transparent 58%),
    linear-gradient(135deg, #232734 0%, #2b303d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: rgba(247, 247, 243, 0.34);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-category { margin-bottom: 0.15rem; }

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
}
.card-title:hover { color: var(--c-brand); text-decoration: none; }
.card:hover .card-title { color: var(--c-brand); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--c-text-light);
  margin-top: auto;
  padding-top: 0.5rem;
}

.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Home "Latest Articles" grid: 2 per row max */
.cards-grid-noimg {
  grid-template-columns: repeat(2, 1fr);
}

/* Featured card (large) */
.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card-sheen), var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.card-featured:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 48px var(--c-shadow);
}
.card-featured:hover .card-title { color: var(--c-brand); }

.card-featured .card-img,
.card-featured .card-img-placeholder {
  aspect-ratio: auto;
  height: 100%;
  min-height: 200px;
}

.card-featured .card-body {
  padding: 1.75rem;
  justify-content: center;
}

.card-featured .card-title { font-size: 1.2rem; }

/* Compact list card (for troubleshooting) */
.card-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-border-light);
  text-decoration: none;
}
.card-compact:last-child { border-bottom: none; }
.card-compact:hover { text-decoration: none; }

.card-compact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.card-compact-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  display: block;
}
.card-compact:hover .card-compact-title { color: var(--c-brand); }

.card-compact-meta {
  font-size: 0.775rem;
  color: var(--c-text-light);
  margin-top: 0.2rem;
}

/* ── Blog Sidebar ─────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--card-sheen), var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-body);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--c-border-light);
}

/* Sidebar CTA — dark panel with green bloom */
.sidebar-cta {
  position: relative;
  background: var(--c-surface);
  border: 1px solid rgba(102, 215, 47, 0.22);
  color: var(--c-text);
  overflow: hidden;
  isolation: isolate;
}
.sidebar-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 40% at 82% 4%, rgba(102, 215, 47, 0.22), transparent 65%),
    radial-gradient(ellipse 42% 42% at 8% 100%, rgba(87, 118, 255, 0.12), transparent 62%);
  filter: blur(38px);
}

.sidebar-cta h3 {
  color: var(--c-brand);
  border-color: rgba(102, 215, 47, 0.18);
}
.sidebar-cta p { font-size: 0.875rem; color: var(--c-text-body); line-height: 1.55; margin-bottom: 1rem; }
.sidebar-cta .btn-primary { width: 100%; text-align: center; }

.category-list { display: flex; flex-direction: column; gap: 0.3rem; }

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--c-text-body);
  padding: 0.42rem 0.6rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.category-list a:hover { background: rgba(255, 255, 255, 0.05); color: var(--c-brand); }
.category-list a:hover span { color: var(--c-brand); }
.category-list span { font-size: 0.875rem; color: var(--c-text); transition: color 0.12s; }

/* ── Article Page ─────────────────────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb-sep { color: var(--c-text-light); }

/* Article header — subtle bloom behind the title */
.article-header {
  position: relative;
  padding: 3rem 0 0;
  isolation: isolate;
}
.article-header::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110vw);
  height: 480px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 36% at 34% 42%, rgba(102, 215, 47, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 34% at 70% 52%, rgba(87, 118, 255, 0.1), transparent 62%);
  filter: blur(58px);
}

/* Two-column hero: image in line with the title */
.article-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
  padding-top: 0.5rem;
}
.article-header-media { grid-column: 1; grid-row: 1; min-width: 0; }
.article-header-text  { grid-column: 2; grid-row: 1; min-width: 0; }

.article-categories { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--c-text);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.article-summary {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}

.article-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.article-meta-icon { font-size: 1rem; filter: grayscale(1); opacity: 0.75; }
.article-meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b1e25;
  flex: 0 0 auto;
  border: 1px solid var(--c-border-light);
}

/* Hero image */
.article-hero-img {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 5/3;
  object-fit: cover;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  margin: 0;
  display: block;
}

.article-hero-placeholder {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 5/3;
  background:
    radial-gradient(ellipse 60% 90% at 80% -10%, rgba(102, 215, 47, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 110%, rgba(87, 118, 255, 0.14), transparent 58%),
    linear-gradient(135deg, #232734 0%, #2b303d 100%);
  border: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: rgba(247, 247, 243, 0.34);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}

/* Share strip */
.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.25rem;
  padding: 1.25rem 0 0.25rem;
  /* border-top: 1px solid var(--c-border-light); */
}
.article-share-label {
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.share-btn:hover {
  border-color: rgba(102, 215, 47, 0.5);
  color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}
.share-btn .share-ico { display: block; flex: 0 0 auto; }


/* Article body layout — 2 columns */
.article-body-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

/* Bottom email CTA — dark panel + bloom */
.article-email-cta {
  position: relative;
  background: #16181f;
  border-top: 1px solid var(--c-border-light);
  padding: 4.5rem 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.article-email-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  opacity: 0.5;
}
.article-email-cta::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 110vw);
  height: 140%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 42% at 50% 30%, rgba(102, 215, 47, 0.18), transparent 66%),
    radial-gradient(ellipse 34% 36% at 20% 68%, rgba(87, 118, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 30% 32% at 80% 66%, rgba(176, 122, 255, 0.1), transparent 62%);
  filter: blur(58px);
  opacity: 0.9;
}
.article-email-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.article-email-cta p {
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.article-email-cta p + p { margin-top: -0.75rem; }
.email-cta-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(23, 26, 34, 0.9);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s;
}
.email-cta-form:focus-within { border-color: rgba(102, 215, 47, 0.5); }
.email-cta-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: transparent;
  min-width: 0;
}
.email-cta-form input::placeholder { color: var(--c-text-light); }
.email-cta-form button {
  background: var(--c-brand);
  border: none;
  color: var(--c-cta-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.62rem 1.5rem;
  margin: 0.32rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.email-cta-form button:hover { background: var(--c-brand-hover); }
.email-cta-fine {
  font-size: 0.75rem;
  color: var(--c-text-light);
  margin-top: 0.85rem;
}

/* TOC */
.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  /* viewport minus sticky offset (nav-h + 16px) minus a 24px bottom gap,
     so the box never runs off the bottom edge of the screen */
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.95rem;
  padding-right: 0.4rem;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.article-toc::-webkit-scrollbar { width: 5px; }
.article-toc::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.article-toc::-webkit-scrollbar-thumb:hover { background: var(--c-text-light); }

.toc-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-light);
  margin-bottom: 0.85rem;
}

.toc-list { list-style: none; }

.toc-list a {
  display: block;
  padding: 0.35rem 0.7rem;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  border-left: 2px solid var(--c-border-light);
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 0.15rem;
  transition: color 0.12s, border-color 0.12s;
}
.toc-list a:hover { color: var(--c-brand); border-color: var(--c-brand); }
.toc-list a.active { color: var(--c-brand); border-color: var(--c-brand); font-weight: 600; }

.toc-list li.toc-h3 a { padding-left: 1.3rem; font-size: 0.9rem; }

/* Article content */
.article-content { min-width: 0; }

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.022em;
  line-height: 1.3;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 2.25rem 0 0.85rem;
  letter-spacing: -0.015em;
  line-height: 1.4;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.article-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.75rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1.9rem;
  color: var(--c-text-body);
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 1.1rem 0 1.9rem 1.6rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content ::marker { color: var(--c-text-light); }

.article-content li {
  color: var(--c-text-body);
  line-height: 1.8;
  margin-bottom: 0.6rem;
  font-size: 1.125rem;
}

.article-content a { color: var(--c-brand); }
.article-content a:hover { color: var(--c-brand-hover); text-decoration: underline; }

/* Buttons inside article content keep their own ink (beat .article-content a) */
.article-content a.btn-primary,
.article-content a.btn-primary:hover { color: var(--c-cta-ink); text-decoration: none; }
.article-content a.btn-outline { color: var(--c-text); }
.article-content a.btn-outline:hover { color: #fff; text-decoration: none; }

.article-content strong { font-weight: 600; color: var(--c-text); }

.article-content blockquote {
  border-left: 3px solid var(--c-brand);
  background: rgba(102, 215, 47, 0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--c-text-body);
}
.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content img {
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-light);
  margin: 1.25rem 0;
  box-shadow: 0 12px 32px var(--c-shadow);
}

.article-content figure { margin: 1.5rem 0; }
.article-content figcaption {
  font-size: 0.825rem;
  color: var(--c-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--c-border-light);
  margin: 2rem 0;
}

/* Code blocks */
.article-content pre {
  background: #16181f;
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid var(--c-border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-light);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: #a8e88a;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #dbe2ec;
  font-size: 0.875rem;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-light);
  background: rgba(23, 26, 34, 0.55);
}

.article-content thead th {
  font-family: var(--font-heading);
  background: var(--c-surface-2);
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}

.article-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-text-body);
  vertical-align: top;
}

.article-content tr:last-child td { border-bottom: none; }
.article-content tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* Callout boxes */
.callout {
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: 0.25rem; font-size: 0.925rem; }

.callout-note { background: var(--c-note-bg); border: 1px solid rgba(91, 158, 255, 0.22); border-left: 3px solid var(--c-note-border); }
.callout-note .callout-body { color: #b9d2ff; }
.callout-note .callout-body strong { color: #d3e2ff; }

.callout-warn { background: var(--c-warn-bg); border: 1px solid rgba(255, 180, 84, 0.22); border-left: 3px solid var(--c-warn-border); }
.callout-warn .callout-body { color: #ffd9a8; }
.callout-warn .callout-body strong { color: #ffe6c4; }

.callout-tip { background: var(--c-brand-soft); border: 1px solid rgba(102, 215, 47, 0.24); border-left: 3px solid var(--c-brand); }
.callout-tip .callout-body { color: #c0eda6; }
.callout-tip .callout-body strong { color: #d7f5c4; }

/* Pros/Cons blocks */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pros-block, .cons-block {
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.pros-block {
  background: rgba(102, 215, 47, 0.07);
  border: 1px solid rgba(102, 215, 47, 0.24);
}
.cons-block {
  background: rgba(255, 107, 107, 0.07);
  border: 1px solid rgba(255, 107, 107, 0.24);
}
.pros-block h4 { color: #8ae65a; margin-bottom: 0.6rem; }
.cons-block h4 { color: #ff9494; margin-bottom: 0.6rem; }

.pros-block ul, .cons-block ul {
  margin: 0;
  list-style: none;
}
.pros-block li { color: #b7e99c; padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; }
.pros-block li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: #8ae65a; }
.cons-block li { color: #f3b3b3; padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; }
.cons-block li::before { content: '✗'; position: absolute; left: 0; font-weight: 700; color: #ff9494; }

/* Article sidebar (right column) */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-cta-card {
  position: relative;
  background: var(--card-sheen), var(--c-surface);
  border: 1px solid rgba(102, 215, 47, 0.22);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  color: var(--c-text);
  overflow: hidden;
  isolation: isolate;
}
.sidebar-cta-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 40% at 84% 0%, rgba(102, 215, 47, 0.2), transparent 65%),
    radial-gradient(ellipse 40% 42% at 6% 100%, rgba(87, 118, 255, 0.1), transparent 62%);
  filter: blur(38px);
}

.sidebar-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.sidebar-cta-card p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.sidebar-cta-card .btn-primary { width: 100%; text-align: center; font-size: 0.875rem; }

.sidebar-cta-card .badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border: 1px solid var(--c-brand-border);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FAQ section */
.faq-section { margin: 2.5rem 0; }

.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.faq-item {
  position: relative;
  margin: 0 0 10px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.faq-item:last-child { margin-bottom: 0; }

.faq-item.open {
  margin-bottom: 12px;
  padding: 0 24px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.028)),
    radial-gradient(circle at 100% 0%, rgba(102, 215, 47, 0.12), transparent 30%),
    rgba(15, 18, 24, 0.78);
  border-color: rgba(102, 215, 47, 0.22);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

/* Glowing green accent bar on the open item (same as livepush.io FAQ) */
.faq-item.open::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(139, 243, 84, 0.12), var(--c-brand), rgba(139, 243, 84, 0.1));
  box-shadow: 0 0 18px rgba(102, 215, 47, 0.28);
}

.faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 64px;
  padding: 18px 42px 18px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--c-text);
  background: transparent;
  user-select: none;
  transition: color 160ms ease;
}

.faq-item.open .faq-question {
  color: #ffffff;
  padding-top: 20px;
  padding-bottom: 14px;
  font-weight: 700;
}

/* Chevron indicator */
.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(247, 247, 243, 0.68);
  border-bottom: 2px solid rgba(247, 247, 243, 0.68);
  transform: translateY(-62%) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}
.faq-item.open .faq-question::after {
  border-color: var(--c-text);
  transform: translateY(-22%) rotate(225deg);
}

/* Legacy plus icon (if present in older markup) */
.faq-icon { display: none; }

.faq-answer {
  display: none;
  max-width: 760px;
  padding: 0 42px 24px 0;
  font-size: 1rem;
  color: #d9dee6;
  line-height: 1.68;
}
.faq-item.open .faq-answer { display: block; }

/* Related articles */
.related-articles { margin: 2.5rem auto; }

.related-articles h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--c-text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}

/* Header row: title left, "See all" link right */
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}
.related-head h2 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.related-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-brand);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s;
}
.related-see-all:hover { color: var(--c-brand-hover); }
.related-see-all .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.related-see-all:hover .arrow { transform: translateX(3px); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── Category Page ────────────────────────────────────────── */

.category-header {
  position: relative;
  background: var(--c-bg);
  padding: 3.5rem 0 3rem;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-light);
  overflow: hidden;
  isolation: isolate;
}
.category-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  opacity: 0.55;
}
.category-header::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -8%;
  width: min(760px, 90vw);
  height: 200%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 30% 50%, rgba(102, 215, 47, 0.16), transparent 66%),
    radial-gradient(ellipse 36% 34% at 68% 60%, rgba(87, 118, 255, 0.12), transparent 62%);
  filter: blur(58px);
}

.category-header-inner { max-width: 700px; }

.category-header .pill { margin-bottom: 0.75rem; }

.category-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.category-header p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.category-main { padding: 2.5rem 0 4rem; }

.category-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Search Page ──────────────────────────────────────────── */

.search-header {
  position: relative;
  background: var(--c-bg);
  padding: 2.5rem 0;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-light);
  overflow: hidden;
  isolation: isolate;
}
.search-header::after {
  content: "";
  position: absolute;
  top: -80%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110vw);
  height: 240%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 36% at 40% 50%, rgba(102, 215, 47, 0.14), transparent 66%),
    radial-gradient(ellipse 36% 32% at 72% 56%, rgba(87, 118, 255, 0.11), transparent 62%);
  filter: blur(56px);
}

.search-header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.search-bar-large {
  display: flex;
  background: rgba(23, 26, 34, 0.85);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
  max-width: 640px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s;
}
.search-bar-large:focus-within { border-color: rgba(102, 215, 47, 0.5); }

.search-bar-large input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: transparent;
  min-width: 0;
}
.search-bar-large input::placeholder { color: var(--c-text-light); }

.search-bar-large button {
  background: var(--c-brand);
  border: none;
  color: var(--c-cta-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.62rem 1.5rem;
  margin: 0.32rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-bar-large button:hover { background: var(--c-brand-hover); }

.search-main { padding: 2.5rem 0 4rem; }

.search-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-count {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}
.search-count strong { color: var(--c-text); }

.search-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.search-sort label { color: var(--c-text-muted); }
.search-sort select {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.6rem;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}

/* Search result card */
.search-result {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-border-light);
  text-decoration: none;
}
.search-result:hover { text-decoration: none; }

.search-result-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background:
    radial-gradient(ellipse 70% 90% at 80% -10%, rgba(102, 215, 47, 0.14), transparent 60%),
    linear-gradient(135deg, #232734, #2b303d);
  border: 1px solid var(--c-border-light);
  object-fit: cover;
  display: block;
}

.search-result-body { flex: 1; }

.search-result-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
  display: block;
}
.search-result:hover .search-result-title { color: var(--c-brand); }

.search-result-excerpt {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.77rem;
  color: var(--c-text-light);
}

/* Search highlight */
.search-result mark {
  background: rgba(102, 215, 47, 0.25);
  color: var(--c-text);
  border-radius: 3px;
  padding: 0 2px;
}

/* No results */
.no-results {
  padding: 3rem 0;
  text-align: center;
  color: var(--c-text-muted);
}
.no-results h2 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--c-text); }
.no-results p { margin-bottom: 1.5rem; }

/* Popular searches */
.popular-searches { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

/* ── 404 Page ─────────────────────────────────────────────── */
.error-page {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  overflow: hidden;
  isolation: isolate;
}
.error-page::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 100vw);
  height: 70%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 40% at 50% 40%, rgba(102, 215, 47, 0.13), transparent 66%),
    radial-gradient(ellipse 36% 34% at 28% 66%, rgba(87, 118, 255, 0.1), transparent 62%),
    radial-gradient(ellipse 32% 30% at 74% 62%, rgba(176, 122, 255, 0.09), transparent 62%);
  filter: blur(58px);
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(247, 247, 243, 0.3), rgba(247, 247, 243, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--c-text);
}

.error-page p {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
}
.page-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--c-text-muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
}
.page-btn:hover { border-color: rgba(102, 215, 47, 0.5); color: var(--c-brand); }
.page-btn.active { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-cta-ink); }

/* ── Inline CTA block (mid-article) ──────────────────────── */
.inline-cta {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.inline-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(ellipse 34% 60% at 96% 0%, rgba(102, 215, 47, 0.14), transparent 62%);
  filter: blur(46px);
}
/* Broadcast-glyph icon tile (injected, no markup change) */
.inline-cta::after {
  content: "";
  order: -1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2366d72f%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4.9%2019.1C1%2015.2%201%208.8%204.9%204.9%22%2F%3E%3Cpath%20d%3D%22M7.8%2016.2c-2.3-2.3-2.3-6.1%200-8.5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M16.2%207.8c2.3%202.3%202.3%206.1%200%208.5%22%2F%3E%3Cpath%20d%3D%22M19.1%204.9C23%208.8%2023%2015.2%2019.1%2019.1%22%2F%3E%3C%2Fsvg%3E") center / 22px 22px no-repeat,
    rgba(102, 215, 47, 0.1);
  border: 1px solid rgba(102, 215, 47, 0.22);
}
.inline-cta:hover { border-color: rgba(102, 215, 47, 0.32); }

.inline-cta-text { flex: 1; min-width: 0; }
.inline-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 0.2rem;
}
.inline-cta-text p { font-size: 0.875rem; color: var(--c-text-muted); margin: 0; line-height: 1.45; }

/* Button — a touch more presence than default, restrained glow */
.inline-cta .btn-primary {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 0.62rem 1.35rem;
  box-shadow: 0 8px 20px -8px rgba(102, 215, 47, 0.35);
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.inline-cta:hover .btn-primary { box-shadow: 0 12px 26px -10px rgba(102, 215, 47, 0.5); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-body-layout {
    grid-template-columns: 190px 1fr;
    gap: 2rem;
  }

  .blog-layout {
    grid-template-columns: 1fr 260px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-posts-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 860px) {
  /* Stack the hero: title first, image below — like the original single column */
  .article-header-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .article-header-text  { grid-column: 1; grid-row: 1; }
  .article-header-media { grid-column: 1; grid-row: 2; }
  .article-hero-img,
  .article-hero-placeholder { aspect-ratio: 16/8; }
}

@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .article-body-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
    max-height: none;
    overflow: visible;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .article-toc details summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); }

  .card-featured {
    grid-template-columns: 1fr;
  }
  .card-featured .card-img,
  .card-featured .card-img-placeholder { min-height: 180px; }

  .cards-grid,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-layout,
  .search-layout {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .inline-cta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .inline-cta .btn-primary { width: 100%; }

  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
  .card-small {
    grid-template-columns: 90px 1fr;
  }

  .email-cta-form {
    flex-direction: column;
    border-radius: var(--r-lg);
    gap: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .email-cta-form input {
    background: rgba(23, 26, 34, 0.9);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    width: 100%;
  }
  .email-cta-form button {
    margin: 0;
    width: 100%;
  }

  .article-share { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 3rem 0 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .recent-posts-section { padding: 0 0 1rem; }
}

/* Reduced motion: kill the blur animations' cost */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Card hover: underline only the post title, never the rest of the card */
.card:hover,
.card-featured:hover,
.card-small:hover,
.card-compact:hover { text-decoration: none; }
.card:hover .card-title,
.card-featured:hover .card-title,
.card-small:hover .card-title { text-decoration: underline; }
.card-compact:hover .card-compact-title { text-decoration: underline; }

/* card-img small fill */
.card-small .card-img{aspect-ratio:auto;height:100%;min-height:110px;}


/* ── Split hero: left text / right featured card ─────────── */
.blog-hero-split { text-align: left; }
.blog-hero-split .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.blog-hero-split h1 { margin: 0 0 1.1rem; }
.blog-hero-split .blog-hero-sub { margin: 0 0 2rem; }
.blog-hero-split .search-bar { margin: 0; max-width: 520px; }
.blog-hero-split .hero-quick { justify-content: flex-start; }
/* Nudge the bloom toward the featured card */
.blog-hero-split::after { left: 62%; }

.hero-right { position: relative; }
.hero-right::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 55% 45%, rgba(102, 215, 47, 0.16), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
}
.hero-feature-card {
  display: block;
  background: var(--card-sheen), var(--c-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 215, 47, 0.35);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55);
  text-decoration: none;
}
.hero-feature-media { position: relative; }
.hero-feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.hero-feature-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
  background: rgba(17, 19, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  backdrop-filter: blur(8px);
}
.hero-feature-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--c-border-light);
}
.hero-feature-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .blog-hero-split { text-align: center; }
  .blog-hero-split .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .blog-hero-split h1 { margin: 0 auto 1.1rem; }
  .blog-hero-split .blog-hero-sub { margin: 0 auto 2rem; }
  .blog-hero-split .search-bar { margin: 0 auto; }
  .blog-hero-split .hero-quick { justify-content: center; }
  .blog-hero-split::after { left: 50%; }
  .hero-right { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ── Pagination (Latest Articles listing) ─────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.1rem;
}
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-body);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination a.page-link:hover {
  border-color: rgba(102, 215, 47, 0.5);
  color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}
.pagination .page-link.is-current {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-cta-ink);
  font-weight: 600;
}
.pagination .page-arrow.is-disabled {
  opacity: 0.35;
}
.pagination .page-ellipsis {
  color: var(--c-text-muted);
  padding: 0 0.15rem;
  user-select: none;
}
@media (max-width: 480px) {
  .pagination { gap: 0.35rem; }
  .pagination .page-link { min-width: 2.25rem; height: 2.25rem; font-size: 0.85rem; }
}
