/* =====================================================================
   blog.css — Blog List + Article Detail pages
   - Inherits design tokens from main.css (--ink-*, --orange*, --shadow-*)
   - List page: hero, filter chips, featured, grid, pagination, newsletter
   - Detail page: cover, meta, prose, toc, author, related
   ===================================================================== */

/* ====== Blog Hero (list page) ====== */
.blog-hero {
  background: linear-gradient(180deg, var(--ink-50) 0%, white 100%);
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--ink-100);
}

.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-500); margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
}
.breadcrumbs a { color: var(--ink-500); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--ink-900); }
.breadcrumbs span[aria-current] { color: var(--ink-900); font-weight: 500; }
.breadcrumbs span[aria-hidden] { color: var(--ink-300); }

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}

.blog-hero-title {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-900);
  margin: 16px 0 24px;
}
.blog-hero-title em { font-style: normal; color: var(--orange-2); }

.blog-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 580px;
  margin-bottom: 32px;
}

.blog-hero-meta {
  display: flex; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
}
.blog-hero-meta span { font-size: 13px; color: var(--ink-500); font-family: 'JetBrains Mono', monospace; }
.blog-hero-meta strong { color: var(--ink-900); font-weight: 600; margin-right: 4px; font-size: 14px; }

.blog-hero-side { position: sticky; top: 100px; }
.bhs-card {
  background: var(--ink-900);
  color: white;
  padding: 28px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.bhs-card::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  pointer-events: none;
}
.bhs-eyebrow {
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  color: var(--orange); letter-spacing: 0.5px; margin-bottom: 14px;
  position: relative;
}
.bhs-card h3 {
  font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 12px;
  color: white; position: relative;
}
.bhs-card p {
  font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.6;
  margin-bottom: 18px; position: relative;
}
.bhs-list { list-style: none; padding: 0; margin: 0; position: relative; }
.bhs-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.bhs-list li span[aria-hidden] {
  color: var(--orange); font-weight: 600; flex-shrink: 0; margin-top: 1px;
}

/* ====== Filter Strip ====== */
.blog-filter {
  background: white;
  border-bottom: 1px solid var(--ink-100);
  padding: 20px 0;
  position: sticky; top: 60px; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.filter-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-500);
}
.chip:hover { border-color: var(--ink-400); color: var(--ink-900); }
.chip--active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: white;
}
.chip--active span { color: rgba(255,255,255,0.6); }

.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--ink-200);
  background: white;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  font-family: inherit;
}
.sort-select:focus {
  outline: none;
  border-color: var(--ink-900);
}

/* ====== Featured Article ====== */
.blog-featured { padding: 48px 0; background: white; }
.feat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-900);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 380px;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
}
.feat-cover {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 32px;
  min-height: 380px;
}
.feat-cover-tag {
  position: absolute; top: 24px; left: 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}
.feat-cover-stat {
  text-align: left;
}
.fcs-num {
  font-size: 96px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fcs-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  margin-top: 8px;
}

.feat-body {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.feat-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.feat-cat {
  background: var(--orange);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.feat-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.feat-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.feat-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.feat-point strong {
  display: block; font-size: 12px; color: white; font-weight: 600;
  margin-bottom: 2px;
}
.feat-point span {
  font-size: 11px; color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
}
.feat-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.feat-author { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.feat-arrow {
  color: var(--orange);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.2s;
}
.feat-card:hover .feat-arrow { transform: translateX(4px); }

/* ====== Blog Grid (3-col) ====== */
.blog-grid-wrap {
  padding: 32px 0 80px;
  background: white;
}
.blog-grid-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-200);
}
.bgh-title { font-size: 24px; font-weight: 700; color: var(--ink-900); }
.bgh-sub {
  font-size: 13px; color: var(--ink-500);
  font-family: 'JetBrains Mono', monospace;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}
.bc-link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}

.bc-cover {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.bc-cover-ic {
  background: rgba(255,255,255,0.92);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* card cover color variants — all B2B-trust, deep saturated */
.bc-c2 { background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%); }
.bc-c3 { background: linear-gradient(135deg, #065F46 0%, #059669 100%); }
.bc-c4 { background: linear-gradient(135deg, #B45309 0%, #D97706 100%); }
.bc-c5 { background: linear-gradient(135deg, #3730A3 0%, #4F46E5 100%); }
.bc-c6 { background: linear-gradient(135deg, #155E75 0%, #0891B2 100%); }
.bc-c7 { background: linear-gradient(135deg, #6B21A8 0%, #9333EA 100%); }
.bc-c8 { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.bc-c9 { background: linear-gradient(135deg, #BE185D 0%, #DB2777 100%); }

.bc-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.bc-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-500);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
}
.bc-cat {
  background: var(--ink-50);
  color: var(--ink-700);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.bc-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.blog-card:hover .bc-title { color: var(--orange-2); }
.bc-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-500);
  margin-bottom: 16px;
  flex: 1;
}
.bc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  font-size: 11px;
  color: var(--ink-500);
  font-family: 'JetBrains Mono', monospace;
}
.bc-arrow { color: var(--orange); font-size: 14px; transition: transform 0.2s; }
.blog-card:hover .bc-arrow { transform: translateX(4px); }

/* ====== Pagination ====== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 56px;
  flex-wrap: wrap;
}
.page-btn, .page-num {
  background: white;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.page-num { padding: 10px 14px; min-width: 42px; }
.page-btn:hover:not(:disabled), .page-num:hover { border-color: var(--ink-900); color: var(--ink-900); }
.page-btn:disabled, .page-btn--disabled { opacity: 0.4; cursor: not-allowed; }
.page-num--active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: white;
}
.page-dots {
  color: var(--ink-400);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 0 4px;
}

/* ====== Newsletter strip ====== */
.news-strip {
  padding: 64px 0;
  background: var(--ink-50);
  border-top: 1px solid var(--ink-100);
}
.news-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.news-inner h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.news-inner h2 em { font-style: normal; color: var(--orange-2); }
.news-inner p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.55;
}
.news-form {
  display: flex; gap: 8px;
  background: white;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
}
.news-form input {
  flex: 1; padding: 12px 16px;
  border: none; outline: none;
  font-size: 14px; color: var(--ink-900);
  font-family: inherit; background: transparent;
}
.news-form input::placeholder { color: var(--ink-400); }
.news-form .btn-primary { padding: 12px 20px; white-space: nowrap; }

/* =====================================================================
   ARTICLE DETAIL PAGE — /blog/article.html
   ===================================================================== */

.article-cover {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.article-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.article-cover-tag {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.95);
  color: var(--ink-900);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.article-header {
  padding: 56px 0 40px;
  background: white;
  border-bottom: 1px solid var(--ink-100);
}
.article-header h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-900);
  max-width: 900px;
  margin: 16px 0 20px;
}
.article-meta-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-500);
  font-family: 'JetBrains Mono', monospace;
  padding: 16px 0; margin-top: 16px;
  border-top: 1px solid var(--ink-200);
}
.article-meta-bar .am-author {
  display: flex; gap: 10px; align-items: center;
  font-family: inherit; color: var(--ink-700); font-weight: 500;
}
.article-meta-bar .am-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-900); color: white;
  display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  font-family: inherit;
}
.article-meta-bar .am-dot { color: var(--ink-300); }

/* ====== Article Body Layout ====== */
.article-body-wrap {
  padding: 64px 0;
  background: white;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 720px 1fr;
  gap: 48px;
}

/* ====== TOC (left rail) ====== */
.toc-rail {
  position: sticky;
  top: 120px;
  align-self: start;
  font-size: 13px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-200);
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
  margin: 6px 0;
  border-left: 2px solid var(--ink-200);
  padding-left: 12px;
  transition: border-color 0.2s;
}
.toc-list li.is-active {
  border-left-color: var(--orange);
}
.toc-list a {
  color: var(--ink-500);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  display: block;
  transition: color 0.2s;
}
.toc-list li.is-active a { color: var(--ink-900); font-weight: 500; }
.toc-list a:hover { color: var(--ink-900); }
.toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 12.5px;
}

/* ====== Prose (center column) ====== */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
}
.prose .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-200);
  font-weight: 400;
}
.prose h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink-900);
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
  scroll-margin-top: 120px;
}
.prose h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-900);
  margin: 32px 0 12px;
  scroll-margin-top: 120px;
}
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.prose li { margin-bottom: 8px; }
.prose a {
  color: var(--orange-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange); }

/* Prose callouts */
.callout {
  padding: 24px 28px;
  border-radius: 12px;
  margin: 32px 0;
  display: flex; gap: 16px;
  align-items: flex-start;
}
.callout-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.callout-body { flex: 1; }
.callout-body strong {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}
.callout-body p { font-size: 14.5px; line-height: 1.6; margin: 0; }

.callout-info {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
}
.callout-info .callout-icon { background: #2563EB; color: white; }
.callout-info .callout-body strong { color: #1E40AF; }

.callout-warn {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}
.callout-warn .callout-icon { background: var(--orange); color: white; }
.callout-warn .callout-body strong { color: #C2410C; }

.callout-tip {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.callout-tip .callout-icon { background: #059669; color: white; }
.callout-tip .callout-body strong { color: #047857; }

/* Prose data table */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.prose table th, .prose table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-200);
}
.prose table th {
  background: var(--ink-50);
  color: var(--ink-700);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.prose table tbody tr:hover { background: var(--ink-50); }
.prose table strong { color: var(--ink-900); font-weight: 600; }

/* Prose inline code */
.prose code {
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-700);
}

/* Article CTA block (inline) */
.article-cta {
  margin: 48px 0;
  background: var(--ink-900);
  color: white;
  padding: 32px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 280px; height: 280px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
}
.article-cta h3 {
  font-size: 22px;
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.015em;
}
.article-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}
.article-cta .ctas { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }

/* Author box (bottom of article) */
.author-box {
  margin: 56px 0 0;
  padding: 28px;
  background: var(--ink-50);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink-900);
  color: white;
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 600;
}
.author-info h4 {
  font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px;
}
.author-info .role {
  font-size: 12px; color: var(--ink-500);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 6px;
}
.author-info p {
  font-size: 13.5px; line-height: 1.55; color: var(--ink-600); margin: 0;
}
.author-social {
  display: flex; gap: 8px;
}
.author-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.author-social a:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* Share bar */
.share-bar {
  margin: 32px 0;
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.share-bar h4 {
  font-size: 13px; color: var(--ink-700);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px;
  font-weight: 500;
}
.share-btns { display: flex; gap: 8px; }
.share-btns a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.share-btns a:hover { background: var(--ink-900); color: white; border-color: var(--ink-900); }

/* ====== Related Articles ====== */
.related-section {
  background: var(--ink-50);
  padding: 64px 0;
  border-top: 1px solid var(--ink-200);
}
.related-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px;
}
.related-head h2 {
  font-size: 24px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.015em;
}
.related-head a {
  font-size: 13px; color: var(--ink-700); text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
}
.related-head a:hover { color: var(--orange-2); }

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

/* =====================================================================
   RESPONSIVE — Blog pages
   ===================================================================== */
@media (max-width: 1024px) {
  .blog-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-hero-side { position: static; }
  .blog-hero-title { font-size: 40px; }
  .feat-card { grid-template-columns: 1fr; min-height: auto; }
  .feat-cover { min-height: 240px; }
  .feat-body { padding: 32px; }
  .feat-title { font-size: 26px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr 720px; }
  .toc-rail { display: none; }
  .news-inner { grid-template-columns: 1fr; gap: 24px; }
  .article-header h1 { font-size: 36px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-hero { padding: 32px 0 40px; }
  .blog-hero-title { font-size: 30px; }
  .blog-hero-sub { font-size: 15px; }
  .blog-hero-meta { gap: 20px; flex-wrap: wrap; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .feat-body { padding: 24px; }
  .feat-title { font-size: 22px; }
  .feat-points { grid-template-columns: 1fr; gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .pagination { gap: 8px; }
  .page-num { padding: 8px 12px; min-width: 38px; }
  .article-cover { height: 280px; }
  .article-header { padding: 40px 0 28px; }
  .article-header h1 { font-size: 28px; }
  .article-meta-bar { gap: 8px; font-size: 12px; }
  .article-body-wrap { padding: 40px 0; }
  .article-layout { grid-template-columns: 1fr; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 17px; }
  .callout { padding: 18px 20px; flex-direction: column; gap: 10px; }
  .article-cta { padding: 24px; }
  .article-cta h3 { font-size: 18px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-social { justify-content: center; }
  .related-grid { grid-template-columns: 1fr; }
  .news-strip { padding: 48px 0; }
  .news-inner h2 { font-size: 22px; }
  .news-form { flex-direction: column; }
  .news-form .btn-primary { width: 100%; }
  .blog-filter { position: static; }
}