/* =================================================================
   LIMIFY BLOG — typographic, editorial, no AI slop
   Inherits brand vars from styles.css; overrides for content density
   ================================================================= */

/* ---------- shell ---------- */
.blog-shell {
  background: #FBFBFD;
  color: var(--ink-1);
  min-height: 100vh;
  position: relative;
}
.blog-shell::before {
  /* very subtle paper texture; kept extremely light */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: multiply;
}
.blog-shell > * { position: relative; z-index: 1; }
.blog-shell > #nav-mount { z-index: 100; }

/* ---------- container ---------- */
.blog-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.blog-container--narrow {
  max-width: 760px;
}

/* ---------- header / hero ---------- */
.blog-hero {
  padding: 160px 0 64px;
  border-bottom: 1px solid rgba(15, 21, 48, 0.08);
}
.blog-crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-6);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}
.blog-crumb a { color: var(--ink-6); text-decoration: none; }
.blog-crumb a:hover { color: var(--brand); }
.blog-crumb span.sep { opacity: 0.5; }

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-1);
  margin-bottom: 28px;
  text-wrap: balance;
}
.blog-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-4);
  max-width: 60ch;
  text-wrap: pretty;
}

.blog-hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.blog-hero-meta a { color: var(--ink-5); text-decoration: none; }
.blog-hero-meta a:hover { color: var(--brand); }
.blog-hero-meta-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-bright);
  display: inline-block;
  box-shadow: 0 0 8px var(--brand-glow);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- featured post ---------- */
.blog-featured {
  padding: 72px 0 64px;
  border-bottom: 1px solid rgba(15, 21, 48, 0.08);
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  group: featured;
}
.blog-featured-cover {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1F46E0 0%, #142666 50%, #0A0E1C 100%);
}
.blog-featured-cover svg,
.blog-featured-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}
.blog-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink-1);
  margin-bottom: 20px;
  text-wrap: balance;
  transition: color 200ms;
}
.blog-featured-card:hover .blog-featured-title { color: var(--brand); }
.blog-featured-excerpt {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-4);
  margin-bottom: 28px;
  text-wrap: pretty;
}
.blog-featured-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-5);
}
.blog-featured-meta .dot { opacity: 0.4; }

/* ---------- list (cards row) ---------- */
.blog-list-section {
  padding: 80px 0 96px;
}
.blog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.blog-section-sub {
  font-size: 14px;
  color: var(--ink-5);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card-cover {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #1F46E0, #142666);
  margin-bottom: 20px;
}
.blog-card-cover svg,
.blog-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink-1);
  margin-bottom: 10px;
  text-wrap: balance;
  transition: color 200ms;
}
.blog-card:hover .blog-card-title { color: var(--brand); }
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-4);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.blog-card-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-6);
  display: flex;
  gap: 12px;
  align-items: center;
}
.blog-card-meta .dot { opacity: 0.45; }

@media (max-width: 980px) {
  .blog-featured-card { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 130px 0 48px; }
  .blog-list-section { padding: 56px 0 72px; }
}

/* ---------- categories filter pills ---------- */
.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.blog-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 21, 48, 0.04);
  border: 1px solid rgba(15, 21, 48, 0.08);
  color: var(--ink-4);
  text-decoration: none;
  transition: all 150ms;
}
.blog-cat:hover, .blog-cat.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* =================================================================
   ARTICLE PAGE
   ================================================================= */
.article-shell { padding: 0 0 0; }

.article-head {
  padding: 140px 0 56px;
  border-bottom: 1px solid rgba(15, 21, 48, 0.08);
}
.article-head .blog-container--narrow { padding-left: 32px; padding-right: 32px; }

.article-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink-1);
  margin-bottom: 28px;
  text-wrap: balance;
}
.article-deck {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-4);
  max-width: 60ch;
  text-wrap: pretty;
  margin-bottom: 40px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 21, 48, 0.08);
}
.article-byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1F46E0;
}
.article-byline-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-byline-text { display: flex; flex-direction: column; gap: 2px; }
.article-byline-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.005em;
}
.article-byline-name a { color: inherit; text-decoration: none; }
.article-byline-name a:hover { color: var(--brand); }
.article-byline-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-6);
}

.article-cover {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 32px;
  margin-top: 56px;
}
.article-cover-inner {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1F46E0, #142666);
  position: relative;
}
.article-cover-inner svg, .article-cover-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- article body ---------- */
.article-body {
  max-width: 720px;
  margin: 72px auto 0;
  padding: 0 32px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
}
.article-body > * + * { margin-top: 1.5em; }
.article-body p {
  text-wrap: pretty;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-1);
  margin-top: 2.2em !important;
  margin-bottom: 0.6em;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin-top: 1.8em !important;
  margin-bottom: 0.4em;
}
.article-body strong { color: var(--ink-1); font-weight: 600; }
.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body ul, .article-body ol {
  padding-left: 1.6em;
}
.article-body li {
  margin-top: 0.5em;
}
.article-body li::marker { color: var(--brand); }
.article-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 24px;
  margin-left: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink-1);
  font-style: normal;
}
.article-body blockquote p { margin: 0; }
.article-body hr {
  border: none;
  height: 1px;
  background: rgba(15, 21, 48, 0.1);
  margin: 3em 0;
}
.article-body figure {
  margin: 2em 0;
}
.article-body figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.article-body figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-6);
  margin-top: 12px;
  text-align: center;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(15, 21, 48, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-1);
}

/* ---------- inline CTA ---------- */
.article-cta {
  margin: 48px 0 !important;
  padding: 32px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F2F4F9 100%);
  border: 1px solid rgba(31, 70, 224, 0.18);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  position: relative;
}
.article-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.article-cta-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  line-height: 1.25;
  margin-bottom: 10px;
  margin-top: 0 !important;
}
.article-cta-body {
  font-size: 15px !important;
  line-height: 1.55;
  color: var(--ink-4);
  margin-bottom: 18px !important;
  margin-top: 0 !important;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(180deg, #4A6FF5, #1F46E0);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 22px -8px rgba(31,70,224,0.5);
  transition: transform 150ms;
}
.article-cta-btn:hover { transform: translateY(-1px); }
.article-cta-btn::after { content: "→"; }

/* ---------- TL;DR / pull-out ---------- */
.article-tldr {
  margin: 0 0 2.4em;
  padding: 24px 28px;
  background: #F2F4F9;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.article-tldr-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ---------- FAQ (per-article, GEO/AEO) ---------- */
.article-faq {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 32px;
}
.article-faq-head {
  margin-bottom: 28px;
}
.article-faq-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
  font-weight: 600;
}
.article-faq-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(15, 21, 48, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
.article-faq-item[open] {
  border-color: rgba(31, 70, 224, 0.20);
  box-shadow: 0 1px 2px rgba(15, 21, 48, 0.04), 0 12px 32px -16px rgba(31, 70, 224, 0.20);
}
.article-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.005em;
  user-select: none;
}
.article-faq-q::-webkit-details-marker { display: none; }
.article-faq-q::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 70, 224, 0.08);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  transition: transform 200ms;
}
.article-faq-item[open] .article-faq-q::after {
  transform: rotate(45deg);
}
.article-faq-a {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-4);
}
.article-faq-a p { margin-bottom: 12px; }
.article-faq-a p:last-child { margin-bottom: 0; }

/* ---------- foot: author bio + share ---------- */
.article-foot {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 48px 32px 0;
  border-top: 1px solid rgba(15, 21, 48, 0.08);
}
.article-author-bio {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.article-author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #1F46E0;
}
.article-author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-author-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.article-author-name a { color: inherit; text-decoration: none; }
.article-author-name a:hover { color: var(--brand); }
.article-author-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 12px;
}
.article-author-bio p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-4);
}
.article-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,21,48,0.10);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 180ms, border-color 180ms, color 180ms, transform 180ms;
}
.article-author-link:hover {
  background: rgba(31,70,224,0.04);
  border-color: rgba(31,70,224,0.18);
  color: var(--brand);
  transform: translateY(-1px);
}
.article-author-link svg { display: block; }

/* ---------- related / next reads ---------- */
.article-related {
  padding: 96px 0 120px;
  background: #F2F4F9;
  border-top: 1px solid rgba(15, 21, 48, 0.08);
  margin-top: 96px;
}

/* =================================================================
   AUTHOR PAGE
   ================================================================= */
.author-hero {
  padding: 160px 0 72px;
  border-bottom: 1px solid rgba(15, 21, 48, 0.08);
}
.author-hero-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}
.author-portrait {
  width: 220px; height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #1F46E0;
}
.author-portrait img {
  width: 100%; height: 100%; object-fit: cover;
}
.author-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink-1);
  margin-bottom: 16px;
}
.author-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}
.author-bio {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 56ch;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .author-hero-card { grid-template-columns: 1fr; gap: 28px; }
  .author-portrait { width: 140px; height: 140px; }
  .article-byline-avatar { width: 40px; height: 40px; }
  .article-author-bio { grid-template-columns: 56px 1fr; }
  .article-author-avatar { width: 56px; height: 56px; }
  .blog-cats { gap: 6px; }
}

/* =================================================================
   ARTICLE LAYOUT WITH SIDEBAR — TOC "NESSE POST"
   ================================================================= */
.article-layout {
  max-width: 1180px;
  margin: 72px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.article-layout .article-body {
  margin: 0;
  padding: 0;
  max-width: 720px;
}
.article-toc {
  position: sticky;
  top: 110px;
  align-self: start;
}
.article-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-6);
  margin-bottom: 20px;
}
.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-5);
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: background 150ms, color 150ms;
}
.article-toc-link:hover {
  color: var(--ink-1);
  background: rgba(15, 21, 48, 0.04);
}
.article-toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-6);
  letter-spacing: 0.04em;
  padding-top: 1px;
}
.article-toc-link.is-active {
  background: rgba(31, 70, 224, 0.08);
  color: var(--brand);
}
.article-toc-link.is-active .article-toc-num {
  color: var(--brand);
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding: 0 32px; }
  .article-toc { position: static; display: none; }
}

/* "Em breve" state for unpublished cards */
.blog-card.is-coming-soon {
  cursor: default;
  opacity: 0.55;
}
.blog-card.is-coming-soon:hover {
  transform: none;
  border-color: var(--ink-8);
  box-shadow: none;
}
.blog-card-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-6);
  padding: 4px 10px;
  border: 1px solid var(--ink-8);
  border-radius: 999px;
}

/* =================================================================
   COVER ART (SVG generative — typographic, no slop)
   ================================================================= */
.cov {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cov-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* =================================================================
   MOBILE RESPONSIVE — blog (até 720px e 480px)
   Apenas mobile; não toca no desktop.
   ================================================================= */

@media (max-width: 720px) {
  /* Blog index — header/hero */
  .blog-hero { padding: 100px 0 32px; }
  .blog-hero h1 { font-size: clamp(34px, 8vw, 48px); line-height: 1.05; }
  .blog-hero .lead { font-size: 15.5px; }

  .blog-cats {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .blog-cats::-webkit-scrollbar { display: none; }
  .blog-cat {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 12px;
  }

  /* Featured card on mobile */
  .blog-featured { padding: 24px 0 16px; }
  .blog-featured-card {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 16px;
  }
  .blog-featured-cover { aspect-ratio: 16 / 10; }
  .blog-featured-content { padding: 28px 24px 32px; }
  .blog-featured-title { font-size: clamp(22px, 5.5vw, 28px); line-height: 1.15; }
  .blog-featured-excerpt { font-size: 14.5px; }
  .blog-featured-meta { font-size: 12px; gap: 8px; flex-wrap: wrap; }

  /* Blog grid (already 1-col at 640) — refinements */
  .blog-list-section { padding: 32px 0 64px; }
  .blog-section-title { font-size: 22px; }
  .blog-section-sub { font-size: 12px; }
  .blog-grid { gap: 28px; }
  .blog-card-cover { border-radius: 12px; }
  .blog-card-title { font-size: 18px; line-height: 1.25; }
  .blog-card-excerpt { font-size: 14px; line-height: 1.5; }
  .blog-card-meta { font-size: 11.5px; }

  /* Article head */
  .article-head { padding: 96px 0 32px; }
  .article-head .blog-container--narrow { padding-left: 24px; padding-right: 24px; }
  .article-title { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.08; }
  .article-deck { font-size: 16px; line-height: 1.5; }
  .article-byline { gap: 12px; padding-top: 24px; }
  .article-byline-name { font-size: 14px; }
  .article-byline-meta { font-size: 12px; }

  /* Article cover */
  .article-cover { padding: 0 16px; margin-bottom: 24px; }
  .article-cover-inner { border-radius: 16px; }

  /* Article body — already 1-col at 1000, refine typography */
  .article-layout {
    margin-top: 24px;
    padding: 0 22px;
    gap: 24px;
    max-width: 100%;
  }
  .article-layout .article-body {
    max-width: 100%;
  }
  .article-toc {
    position: static;
    background: rgba(15, 21, 48, 0.03);
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(15, 21, 48, 0.06);
  }
  .article-toc-label { font-size: 10.5px; margin-bottom: 12px; }
  .article-toc-list { gap: 2px; }
  .article-toc-link { padding: 8px 10px; font-size: 13px; gap: 8px; }
  .article-toc-num { font-size: 10.5px; }

  .article-body {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .article-body p,
  .article-body li {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-2);
  }
  .article-body p { margin-bottom: 18px; }
  .article-body h2 {
    font-size: clamp(22px, 5.5vw, 28px);
    margin: 40px 0 14px;
    line-height: 1.2;
    text-wrap: balance;
  }
  .article-body h3 {
    font-size: 19px;
    margin: 28px 0 10px;
    line-height: 1.25;
  }
  .article-body ul,
  .article-body ol {
    padding-left: 22px;
    margin-bottom: 20px;
  }
  .article-body li { margin-bottom: 8px; }
  .article-body a {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .article-body img,
  .article-body video,
  .article-body iframe,
  .article-body table {
    max-width: 100%;
    height: auto;
  }
  .article-body pre,
  .article-body code {
    overflow-x: auto;
    max-width: 100%;
  }
  .article-body hr {
    margin: 36px 0;
  }

  /* Article TLDR */
  .article-tldr {
    padding: 20px 22px;
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* FAQ inside article */
  .article-faq { margin-top: 48px; padding: 0 24px; }
  .article-faq-title { font-size: 24px; }
  .article-faq-q { padding: 18px 20px; font-size: 15.5px; gap: 12px; }
  .article-faq-a { padding: 0 20px 20px; font-size: 14.5px; }

  /* Article foot (author bio) */
  .article-foot {
    margin-top: 56px;
    padding: 32px 24px 0;
  }
  .article-author-bio {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .article-author-avatar {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto;
  }

  /* Related articles */
  .article-related { padding: 56px 0 64px; margin-top: 56px; }
  .article-related .blog-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Container utility */
  .blog-container { padding: 0 20px; }
  .blog-container--narrow { padding: 0 24px; max-width: 100%; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 88px 0 24px; }
  .blog-featured-content { padding: 24px 20px 28px; }
  .article-head { padding: 88px 0 24px; }
  .article-head .blog-container--narrow { padding-left: 20px; padding-right: 20px; }
  .article-cover { padding: 0 12px; }
  .article-layout { padding: 0 20px; }
  .article-faq { padding: 0 20px; }
  .article-foot { padding: 28px 20px 0; }

  html, body { overflow-x: hidden; }
}
