/* Curat blog — original blog UI (apps/web blogs routes source).
   Semantic classes only (blog-*); no framework utilities. Plain CSS mirror
   of the original listing (pale slate page, tall top offset, near-full-width
   container, filter bar, three-column wide-aspect cards) and article (hero,
   share rail, prose, sticky TOC) visuals.
   Shared header/footer come from catalog.css via page_shell. */

.blog-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- listing ---------- */

.blog-listing { background: #f8fafc; min-height: 100vh; padding-top: 7rem; }
.blog-listing-inner { max-width: 95%; margin: 0 auto; padding: 0 1rem 4rem; }
.blog-listing-head { padding-bottom: 1.5rem; }
.blog-listing-title {
  font-size: 1.875rem; font-weight: 700; color: #0f172a; margin: 0;
}
.blog-listing-sub { color: #475569; margin: 0.5rem 0 0; }

.blog-filterbar {
  display: flex; flex-direction: column; gap: 1rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 5px;
  padding: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  margin-bottom: 2rem;
}
.blog-filter-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.blog-filter-tab {
  padding: 0.5rem 1rem; border: 0; border-radius: 5px; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; background: #f1f5f9; color: #64748b;
  transition: background 0.15s, color 0.15s;
}
.blog-filter-tab:hover { background: #e2e8f0; color: #0f172a; }
.blog-filter-tab[aria-pressed="true"] {
  background: #0f172a; color: #fff; box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}
.blog-search { position: relative; width: 100%; }
.blog-search-input {
  width: 100%; padding: 0.625rem 1rem 0.625rem 2.5rem; font-size: 0.875rem;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; color: #0f172a;
}
.blog-search-input::placeholder { color: #94a3b8; }
.blog-search-input:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.blog-search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; display: flex;
}
.blog-search-icon svg { width: 1rem; height: 1rem; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 5px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.blog-card-link:hover .blog-card {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1); border-color: #cbd5e1;
}
.blog-card-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.blog-card-img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
  transition: opacity 0.5s, transform 0.5s;
}
.blog-card-link:hover .blog-card-img { opacity: 1; transform: scale(1.05); }
.blog-card-badgewrap { position: absolute; top: 0.75rem; left: 0.75rem; }
.blog-card-badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
  border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; background: rgba(255, 255, 255, 0.9); color: #334155;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: #64748b; margin-bottom: 0.75rem;
}
.blog-card-dot::before { content: "•"; }
.blog-card-title {
  font-size: 1.125rem; font-weight: 700; color: #0f172a; margin: 0 0 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color 0.2s;
}
.blog-card-link:hover .blog-card-title { color: #2563eb; }
.blog-card-excerpt {
  font-size: 0.875rem; color: #475569; margin: 0 0 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-more {
  display: flex; align-items: center; gap: 0.5rem; margin-top: auto;
  font-size: 0.875rem; font-weight: 600; color: #2563eb;
}
.blog-card-more svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.blog-card-link:hover .blog-card-more svg { transform: translateX(4px); }

.blog-empty {
  text-align: center; padding: 6rem 1.5rem; background: #fff;
  border: 1px dashed #e2e8f0; border-radius: 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); margin-bottom: 2rem;
}
.blog-empty-icon {
  width: 5rem; height: 5rem; background: #f1f5f9; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 1.5rem;
}
.blog-empty-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 0.75rem; }
.blog-empty-sub { color: #475569; max-width: 28rem; margin: 0 auto 1.5rem; }
.blog-empty-btn {
  padding: 0.75rem 1.5rem; background: #0f172a; color: #fff; font-weight: 500;
  border: 0; border-radius: 5px; cursor: pointer; transition: background 0.2s;
}
.blog-empty-btn:hover { background: #1e293b; }

/* ---------- listing newsletter (original light visual) ---------- */

.blog-newsletter { background: #fff; border-top: 1px solid #e2e8f0; padding: 4rem 1rem; }
.blog-newsletter-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.blog-newsletter-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; background: #eff6ff; border: 1px solid #dbeafe;
  border-radius: 5px; color: #2563eb; margin-bottom: 1.5rem;
}
.blog-newsletter-icon svg { width: 2rem; height: 2rem; }
.blog-newsletter-title {
  font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 1rem;
}
.blog-newsletter-sub { color: #475569; max-width: 32rem; margin: 0 auto 2rem; }
.blog-newsletter-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 28rem; margin: 0 auto;
}
.blog-newsletter-input {
  flex: 1; padding: 0.875rem 1.25rem; border-radius: 5px; color: #0f172a;
  border: 1px solid #e2e8f0; background: #f8fafc;
}
.blog-newsletter-input::placeholder { color: #94a3b8; }
.blog-newsletter-input:focus {
  outline: none; border-color: #3b82f6; background: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.blog-newsletter-btn {
  padding: 0.875rem 2rem; border: 0; border-radius: 5px; cursor: pointer;
  background: #2563eb; color: #fff; font-weight: 700;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.25);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.blog-newsletter-btn:hover {
  background: #3b82f6; transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.4);
}
.blog-newsletter-status {
  font-size: 0.875rem; color: #475569; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 5px;
  padding: 0.75rem 1rem; max-width: 28rem; margin: 0 auto;
}
.blog-newsletter-input:disabled { opacity: 0.7; cursor: not-allowed; }
.blog-newsletter-btn:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.15);
}
.blog-newsletter-fine { font-size: 0.75rem; color: #64748b; margin: 1rem 0 0; }
.blog-newsletter-fine a { color: #475569; text-decoration: underline; }
.blog-newsletter-fine a:hover { color: #0f172a; }

/* ---------- article ---------- */

.blog-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 6px;
  background: rgba(241, 245, 249, 0.5); z-index: 100;
}
.blog-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(to right, #2563eb, #4f46e5, #7c3aed);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  transition: width 0.15s ease-out;
}
.blog-article { min-height: 100vh; background: #fff; }

.blog-hero {
  position: relative; overflow: hidden; background: rgba(248, 250, 252, 0.5);
  padding: 8rem 0 3rem;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
  background-size: 14px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}
.blog-hero-orbs {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 100%; overflow: hidden; pointer-events: none;
}
.blog-hero-orbs span {
  position: absolute; top: -30%; width: 50%; height: 50%;
  border-radius: 50%; filter: blur(120px); mix-blend-mode: multiply;
}
.blog-hero-orbs span:first-child { left: -10%; background: rgba(219, 234, 254, 0.4); }
.blog-hero-orbs span:last-child { right: -10%; background: rgba(224, 231, 255, 0.4); }

.blog-hero-inner { position: relative; z-index: 10; max-width: 90rem; margin: 0 auto; padding: 0 1rem; }
.blog-hero-copy { text-align: left; max-width: 42rem; }
.blog-back { display: flex; justify-content: flex-start; margin-bottom: 2rem; }
.blog-back-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: #64748b;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 9999px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  text-decoration: none; transition: all 0.3s;
}
.blog-back-link:hover { color: #0f172a; background: #fff; }
.blog-back-link svg { width: 1rem; height: 1rem; transition: transform 0.3s; }
.blog-back-link:hover svg { transform: translateX(-2px); }

.blog-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem;
}
.blog-hero-cat {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.blog-hero-metaitem { display: inline-flex; align-items: center; gap: 0.375rem; }
.blog-hero-ico { display: inline-flex; }
.blog-hero-ico svg { width: 1rem; height: 1rem; }
.blog-hero-dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: #cbd5e1; }

.blog-hero-title {
  font-family: "Outfit", sans-serif; font-weight: 700; color: #0f172a;
  letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance;
  font-size: 2.25rem; margin: 0 0 2rem;
}
.blog-byline { display: flex; align-items: center; gap: 0.75rem; }
.blog-byline-avatar {
  width: 3rem; height: 3rem; border-radius: 50%; background: #f1f5f9;
  border: 2px solid #fff; box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.blog-byline-avatar svg { width: 1.5rem; height: 1.5rem; }
.blog-byline-name { font-size: 0.875rem; font-weight: 700; color: #0f172a; margin: 0; }
.blog-byline-role { font-size: 0.75rem; color: #64748b; margin: 0; }

.blog-hero-media { margin-top: 3rem; }
.blog-hero-figure {
  position: relative; border-radius: 8px; overflow: hidden; background: #f1f5f9;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.05); aspect-ratio: 16 / 9; margin: 0;
}
.blog-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}
.blog-hero-img { width: 100%; height: 100%; object-fit: cover; }

.blog-reading { position: relative; z-index: 20; max-width: 90rem; margin: 0 auto; padding: 0 1rem 6rem; }
.blog-reading-card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); padding: 4rem 1rem 3rem;
}

.blog-rail { display: none; }
.blog-rail-sticky {
  position: sticky; top: 8rem; display: flex; flex-direction: column;
  gap: 1rem; align-items: stretch; transition: opacity 0.3s;
}
.blog-rail-title {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: #f8fafc; padding: 0.25rem 0.5rem; border-radius: 6px; margin-bottom: 0.5rem;
}
.blog-share-btn {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 9999px;
  background: #fff; color: #64748b; border: 1px solid #f1f5f9;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.blog-share-btn:hover { color: #0f172a; background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08); }
.blog-share-ico { display: inline-flex; padding: 0.5rem; border-radius: 50%; background: #f1f5f9; }
.blog-share-ico svg { width: 1rem; height: 1rem; }
.blog-share-label { display: none; }
.blog-rail-sep { height: 1px; background: #f1f5f9; margin: 0.5rem 0; }

.blog-post { min-width: 0; }

.blog-prose { font-size: 1.125rem; color: #475569; line-height: 1.8; margin-bottom: 5rem; overflow-wrap: break-word; }
.blog-prose h2 {
  font-family: "Outfit", sans-serif; font-weight: 700; color: #0f172a;
  letter-spacing: -0.025em; line-height: 1.25; font-size: 1.75rem;
  margin: 2.5rem 0 1rem; scroll-margin-top: 8rem;
}
.blog-prose h3 {
  font-family: "Outfit", sans-serif; font-weight: 700; color: #0f172a;
  letter-spacing: -0.025em; font-size: 1.375rem;
  margin: 2rem 0 0.75rem; scroll-margin-top: 8rem;
}
.blog-prose h4 {
  font-family: "Outfit", sans-serif; font-weight: 700; color: #0f172a;
  font-size: 1.125rem; margin: 1.5rem 0 0.5rem; scroll-margin-top: 8rem;
}
.blog-prose p { margin: 0 0 1.25rem; }
.blog-prose strong { color: #0f172a; }
.blog-prose a { color: #2563eb; font-weight: 600; text-decoration: none; }
.blog-prose a:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 2px; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.blog-prose li { margin: 0.5rem 0; }
.blog-prose img {
  border-radius: 1.5rem; box-shadow: 0 20px 25px rgba(15, 23, 42, 0.1);
  margin: 2.5rem 0; max-width: 100%; height: auto;
}
.blog-prose blockquote {
  border-left: 4px solid #2563eb; background: rgba(239, 246, 255, 0.5);
  padding: 0.5rem 1.5rem; border-radius: 0 8px 8px 0; margin: 2rem 0; color: #334155;
}
.blog-prose blockquote p { margin: 0.75rem 0; }
.blog-prose pre {
  background: #0f172a; color: #f1f5f9; border-radius: 8px; padding: 1.25rem;
  overflow: auto; font-size: 0.875rem; box-shadow: 0 10px 15px rgba(15, 23, 42, 0.2);
}
.blog-prose pre code { background: none; padding: 0; color: inherit; }
.blog-prose :not(pre) > code {
  font-family: "Roboto Mono", monospace; font-size: 0.875em;
  background: #f1f5f9; padding: 0.125rem 0.375rem; border-radius: 4px;
}
.blog-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2.5rem 0; }

.blog-share-mobile {
  display: flex; justify-content: center; gap: 1rem;
  padding: 2rem 0; margin-bottom: 3rem;
  border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}
.blog-share-dot {
  padding: 0.75rem; background: #f8fafc; border: 0; border-radius: 50%;
  color: #64748b; cursor: pointer; display: inline-flex;
}
.blog-share-dot:hover { color: #0f172a; background: #e2e8f0; }
.blog-share-dot svg { width: 1.25rem; height: 1.25rem; }
.blog-copy-status { font-size: 0.75rem; color: #64748b; margin: 0.5rem 0 0; }
.blog-copy-status-center { text-align: center; margin-bottom: 1rem; }

.blog-authorbio {
  position: relative; overflow: hidden; background: #f8fafc;
  border-radius: 1.5rem; padding: 2rem; margin-bottom: 4rem;
  display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center;
}
.blog-authorbio::before {
  content: ""; position: absolute; top: 0; right: 0; width: 16rem; height: 16rem;
  background: rgba(219, 234, 254, 0.3); border-radius: 50%;
  filter: blur(48px); transform: translate(50%, -50%);
}
.blog-authorbio-avatar {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 6rem; height: 6rem; border-radius: 50%; background: #fff;
  border: 4px solid #fff; box-shadow: 0 10px 15px rgba(15, 23, 42, 0.1);
  display: flex; align-items: center; justify-content: center; color: #cbd5e1;
}
.blog-authorbio-avatar svg { width: 2.5rem; height: 2.5rem; }
.blog-authorbio-copy { position: relative; z-index: 1; flex: 1; }
.blog-authorbio-name {
  font-family: "Outfit", sans-serif; font-size: 1.25rem; font-weight: 700;
  color: #0f172a; margin: 0 0 0.5rem;
}
.blog-authorbio-text { color: #475569; line-height: 1.7; margin: 0 0 1.5rem; }
.blog-authorbio-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 700; color: #2563eb; text-decoration: none;
}
.blog-authorbio-link:hover { color: #1d4ed8; }
.blog-authorbio-link svg { width: 1rem; height: 1rem; }

/* ---------- article newsletter (original dark visual) ---------- */

.blog-subscribe {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(79, 70, 229, 0.2)), #0f172a;
  color: #fff; box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}
.blog-subscribe::after {
  content: ""; position: absolute; top: -5rem; right: -5rem;
  width: 16rem; height: 16rem; background: rgba(59, 130, 246, 0.2);
  border-radius: 50%; filter: blur(48px);
}
.blog-subscribe-inner { position: relative; z-index: 1; padding: 2rem; text-align: center; }
.blog-subscribe-title {
  font-family: "Outfit", sans-serif; font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem;
}
.blog-subscribe-sub { color: #cbd5e1; max-width: 32rem; margin: 0 auto 2rem; }
.blog-subscribe-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 32rem; margin: 0 auto;
}
.blog-subscribe-input {
  flex: 1; padding: 0.875rem 1.25rem; border-radius: 6px; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-subscribe-input::placeholder { color: #94a3b8; }
.blog-subscribe-input:focus {
  outline: none; border-color: #3b82f6; background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.blog-subscribe-btn {
  padding: 0.875rem 2rem; border: 0; border-radius: 6px; cursor: pointer;
  background: #2563eb; color: #fff; font-weight: 700;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2); transition: background 0.2s;
}
.blog-subscribe-btn:hover { background: #3b82f6; }
.blog-subscribe-input:disabled { opacity: 0.7; cursor: not-allowed; }
.blog-subscribe-btn:disabled {
  opacity: 0.6; cursor: not-allowed;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.1);
}
.blog-subscribe-status {
  font-size: 0.875rem; color: #e2e8f0; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px;
  padding: 0.75rem 1rem; max-width: 32rem; margin: 0 auto;
}

/* ---------- TOC rail ---------- */

.blog-toc { display: none; }
.blog-toc-sticky { position: sticky; top: 8rem; padding-left: 1rem; }
.blog-toc-title {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.5rem;
  font-size: 0.75rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.blog-toc-pulse { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #3b82f6; animation: blog-pulse 2s infinite; }
@keyframes blog-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.blog-toc-list {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.blog-toc-list::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: #e2e8f0;
}
.blog-toc-list li { position: relative; padding-left: 1.5rem; margin: 0; }
.blog-toc-list li[data-active="true"]::before {
  content: ""; position: absolute; left: -1.5px; top: 0.375rem;
  width: 4px; height: 1.25rem; background: #2563eb; border-radius: 9999px;
}
.blog-toc-link {
  display: block; padding: 0.25rem 0; font-size: 0.875rem;
  color: #64748b; text-decoration: none; transition: color 0.2s, transform 0.2s;
}
.blog-toc-link:hover { color: #0f172a; transform: translateX(4px); }
.blog-toc-link[data-active="true"] { color: #2563eb; font-weight: 600; transform: translateX(4px); }
.blog-toc-none { font-size: 0.75rem; color: #94a3b8; font-style: italic; margin: 0; }

/* ---------- related ---------- */

.blog-related { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 6rem 0; }
.blog-related-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.blog-related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.blog-related-title { font-family: "Outfit", sans-serif; font-size: 1.875rem; font-weight: 700; color: #0f172a; margin: 0; }
.blog-related-all {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: #2563eb; text-decoration: none;
}
.blog-related-all:hover { color: #1d4ed8; }
.blog-related-all svg { width: 1rem; height: 1rem; }
.blog-related .blog-card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); border-color: #f1f5f9; }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .blog-listing-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-listing-title { font-size: 2.25rem; }
  .blog-filterbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .blog-search { width: 18rem; flex-shrink: 0; }
  .blog-newsletter { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-newsletter-title { font-size: 1.875rem; }
  .blog-newsletter-form { flex-direction: row; }
  .blog-hero-inner { padding: 0 1.5rem; }
  .blog-reading { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-reading-card { padding-left: 2rem; padding-right: 2rem; border-radius: 2.5rem; padding-top: 5rem; }
  .blog-authorbio { flex-direction: row; text-align: left; align-items: flex-start; padding: 3rem; }
  .blog-subscribe-inner { padding: 3rem; }
  .blog-subscribe-title { font-size: 1.875rem; }
  .blog-subscribe-form { flex-direction: row; }
  .blog-prose { font-size: 1.25rem; }
  .blog-prose h2 { font-size: 1.875rem; }
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .blog-listing-inner { padding-left: 2rem; padding-right: 2rem; }
  .blog-newsletter { padding-left: 2rem; padding-right: 2rem; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-hero { padding: 10rem 0 6rem; }
  .blog-hero-inner {
    padding: 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 3rem; align-items: center;
  }
  .blog-hero-title { font-size: 3.75rem; }
  .blog-hero-media { margin-top: 0; }
  .blog-reading { padding-left: 2rem; padding-right: 2rem; }
  .blog-reading-card {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 2rem; padding-left: 3rem; padding-right: 3rem;
  }
  .blog-rail { display: block; grid-column: span 1; }
  .blog-post { grid-column: span 8; }
  .blog-toc { display: block; grid-column: span 3; }
  .blog-share-mobile { display: none; }
}

@media (min-width: 1280px) {
  .blog-hero-inner { gap: 5rem; }
  .blog-reading-card { gap: 3rem; }
  .blog-rail { grid-column: span 2; }
  .blog-post { grid-column: span 7; }
  .blog-share-label { display: inline; }
  .blog-related-inner { padding: 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card-img, .blog-card-more svg, .blog-progress-fill,
  .blog-back-link, .blog-toc-link { transition: none; }
  .blog-toc-pulse { animation: none; }
}
