/* ─── BLOG NORTSCALE (DESIGN SYSTEM EDITORIAL GEO/SEO) ─── */

.blog-page {
  background: var(--bg);
  color: var(--text);
}

/* Preview banner */
.blog-preview-banner {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: #02162a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
}
.blog-preview-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.blog-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.blog-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fbbf24;
}

/* Hub Hero (/blog, /blog/categoria/[slug], /blog/autor/[slug]) */
.blog-hero {
  padding: clamp(104px, 11dvh, 144px) 0 clamp(40px, 5dvh, 64px);
  background:
    radial-gradient(700px 320px at 85% 10%, rgba(0, 121, 255, 0.08), transparent 70%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}
.blog-hero-inner {
  max-width: 840px;
}
.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
}
.blog-hero h1 {
  margin: 0 0 18px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 650;
  color: var(--text);
}
.blog-hero-lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--muted);
}

/* Search + Category Filter Bar */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.blog-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 22, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.blog-pill:hover {
  border-color: var(--blue);
  color: var(--blue-2);
  background: #f3f8ff;
}
.blog-pill.is-active {
  background: #02162a;
  border-color: #02162a;
  color: #ffffff;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  width: 100%;
}
.blog-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 22, 42, 0.16);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.blog-search input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.blog-search button {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.blog-search button:hover {
  background: var(--blue-2);
}

/* Listing Section */
.blog-section {
  padding: clamp(44px, 5vw, 72px) 0;
}
.blog-section-soft {
  background: var(--bg-soft);
  border-top: 1px solid rgba(2, 22, 42, 0.06);
  border-bottom: 1px solid rgba(2, 22, 42, 0.06);
}

/* Featured Post Card */
.blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: 24px;
  background: #f6f9fd;
  border: 1px solid rgba(2, 22, 42, 0.08);
  margin-bottom: clamp(32px, 4vw, 52px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 121, 255, 0.28);
  box-shadow: 0 22px 48px rgba(2, 22, 42, 0.08);
}
.blog-featured-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8eef6;
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-body h2 {
  margin: 12px 0 12px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
.blog-featured-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Post Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(2, 22, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 121, 255, 0.3);
  box-shadow: 0 18px 40px rgba(2, 22, 42, 0.07);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eef3f9;
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(135deg, #02162a 0%, #093566 60%, #0079ff 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.blog-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 121, 255, 0.1);
  color: var(--blue-2);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}
.blog-card-title {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 19.5px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--blue-2);
}
.blog-card-excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(2, 22, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.blog-card-read {
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: none;
}

/* Empty State */
.blog-empty {
  padding: 56px 28px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px dashed rgba(2, 22, 42, 0.16);
  text-align: center;
}
.blog-empty h2 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 24px;
}
.blog-empty p {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: var(--muted);
}

/* Pagination */
.blog-pagination {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(2, 22, 42, 0.12);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.blog-pagination a:hover {
  border-color: var(--blue);
  color: var(--blue-2);
}
.blog-pagination .is-current {
  background: #02162a;
  border-color: #02162a;
  color: #ffffff;
}

/* ─── PÁGINA DO ARTIGO ─── */
.blog-article-header {
  padding: clamp(104px, 11dvh, 138px) 0 36px;
  background:
    radial-gradient(640px 280px at 85% 10%, rgba(0, 121, 255, 0.06), transparent 70%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}
.blog-article-header-inner {
  max-width: 900px;
}
.blog-article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--muted-2);
}
.blog-article-title {
  margin: 0 0 18px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.09;
  letter-spacing: -0.032em;
  font-weight: 680;
  color: var(--text);
}
.blog-article-subtitle {
  margin: 0 0 24px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.58;
  color: var(--muted);
  max-width: 66ch;
}
.blog-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(2, 22, 42, 0.08);
  font-size: 14px;
  color: var(--muted);
}
.blog-byline-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.blog-byline-author:hover {
  color: var(--blue-2);
}
.blog-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(2, 22, 42, 0.1);
}
.blog-byline-role {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted-2);
}

/* Cover Figure */
.blog-cover-wrap {
  margin: 34px 0 0;
}
.blog-cover-figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f2f4f7;
  border: 1px solid rgba(2, 22, 42, 0.08);
  box-shadow: 0 20px 50px rgba(2, 22, 42, 0.08);
}
.blog-cover-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}
.blog-cover-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted-2);
  background: #f8fafc;
  border-top: 1px solid rgba(2, 22, 42, 0.06);
}

/* 2-Column Article + Sticky Sidebar */
.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(56px, 6vw, 88px);
}
.blog-article-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Sticky Sidebar (TOC + Contextual CTA) */
.blog-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-toc {
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(2, 22, 42, 0.08);
}
.blog-toc-title {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-toc-list li.level-3 {
  padding-left: 14px;
}
.blog-toc-list a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}
.blog-toc-list a:hover {
  color: var(--blue-2);
}

.blog-sidebar-cta {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(155deg, #02162a 0%, #07284a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-sidebar-cta-eyebrow {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7cc0ff;
  margin-bottom: 8px;
}
.blog-sidebar-cta h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 19px;
  line-height: 1.25;
  color: #ffffff;
}
.blog-sidebar-cta p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.blog-sidebar-cta .blog-btn-light {
  width: 100%;
  justify-content: center;
}
.blog-ai-md-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 22, 42, 0.1);
  background: #ffffff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}
.blog-ai-md-link:hover {
  border-color: var(--blue);
  color: var(--blue-2);
}

/* ─── OS 11 BLOCOS MODULARES ─── */

/* 1. TL;DR / Resumo Direto (GEO) */
.blog-block-tldr {
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: 20px;
  background: linear-gradient(180deg, #f3f8ff 0%, #f8fbff 100%);
  border: 1px solid rgba(0, 121, 255, 0.22);
  border-left: 4px solid var(--blue);
}
.blog-tldr-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 8px;
}
.blog-block-tldr h2 {
  margin: 0 0 12px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  scroll-margin-top: 104px;
}
.blog-tldr-answer {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 450;
}
.blog-tldr-list {
  margin: 16px 0 0;
  padding: 16px 0 0 20px;
  border-top: 1px solid rgba(0, 121, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* 2. Rich Text Editorial (Prose) */
.blog-prose {
  font-size: 17px;
  line-height: 1.74;
  color: #1e293b;
}
.blog-prose h2,
.blog-section-heading {
  margin: 0 0 14px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--text);
  scroll-margin-top: 104px;
}
.blog-prose h3 {
  margin: 26px 0 10px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.28;
  font-weight: 650;
  color: var(--text);
  scroll-margin-top: 104px;
}
.blog-prose p {
  margin: 0 0 16px;
}
.blog-prose p:last-child {
  margin-bottom: 0;
}
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.blog-prose li {
  margin-bottom: 8px;
}
.blog-prose a {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.blog-prose a:hover {
  color: var(--blue-3);
}
.blog-prose blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: italic;
}
.blog-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2f7;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 3. Image / Gallery Block */
.blog-block-images {
  display: grid;
  gap: 18px;
}
.blog-block-images.layout-sideBySide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog-block-images.layout-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.blog-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(2, 22, 42, 0.08);
  background: #f8fafc;
}
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-figure figcaption {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 4. Comparison Table Block */
.blog-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(2, 22, 42, 0.1);
  background: #ffffff;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: left;
}
.blog-table th,
.blog-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(2, 22, 42, 0.07);
  vertical-align: top;
}
.blog-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text);
}
.blog-table th.is-highlighted {
  background: #e6f2ff;
  color: var(--blue-3);
}
.blog-table td.is-highlighted {
  background: #f7fbff;
  font-weight: 500;
  color: var(--text);
}
.blog-table tbody tr:last-child td {
  border-bottom: 0;
}
.blog-table-footnote {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}

/* 5. Callout / KPIs / Quote Block */
.blog-callout {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(2, 22, 42, 0.1);
  background: var(--bg-soft);
}
.blog-callout.variant-tip {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.25);
}
.blog-callout.variant-warning {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.28);
}
.blog-callout.variant-quote {
  background: #f6f9fd;
  border-left: 4px solid var(--blue);
}
.blog-callout-title {
  margin: 0 0 8px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}
.blog-callout-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.blog-callout.variant-quote .blog-callout-body {
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}
.blog-callout-attribution {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-2);
}
.blog-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.blog-metric-card {
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(2, 22, 42, 0.08);
}
.blog-metric-value {
  display: block;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-2);
  line-height: 1.1;
}
.blog-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.blog-metric-detail {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 6. Steps / HowTo Block */
.blog-steps-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-step-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(2, 22, 42, 0.09);
}
.blog-step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 121, 255, 0.12);
  color: var(--blue-2);
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-step-body h3 {
  margin: 0 0 6px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 18px;
  font-weight: 650;
}
.blog-step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}
.blog-step-tip {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--text);
}

/* 7. FAQ Block (Native <details>) */
.blog-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.blog-faq-item {
  border-radius: 16px;
  border: 1px solid rgba(2, 22, 42, 0.1);
  background: #ffffff;
  overflow: hidden;
}
.blog-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 17px;
  font-weight: 620;
  color: var(--text);
}
.blog-faq-item summary::-webkit-details-marker {
  display: none;
}
.blog-faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
}
.blog-faq-item[open] summary::after {
  content: "−";
}
.blog-faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.66;
}

/* 8. Contextual CTA Block */
.blog-cta {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-cta.theme-dark {
  background: linear-gradient(135deg, #02162a 0%, #092c54 100%);
  color: #ffffff;
}
.blog-cta.theme-blue {
  background: linear-gradient(135deg, #0079ff 0%, #064a9e 100%);
  color: #ffffff;
}
.blog-cta.theme-soft {
  background: #f3f8ff;
  border: 1px solid rgba(0, 121, 255, 0.22);
  color: var(--text);
}
.blog-cta-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.blog-cta h3 {
  margin: 0;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.2;
}
.blog-cta p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.88;
  max-width: 58ch;
}
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.blog-btn-light,
.blog-btn-outline,
.blog-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.blog-btn-light {
  background: #ffffff;
  color: #02162a;
}
.blog-btn-light:hover {
  background: #eaf3ff;
}
.blog-btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.blog-btn-primary:hover {
  background: var(--blue-2);
}
.blog-btn-outline {
  border: 1px solid currentColor;
  color: inherit;
  opacity: 0.92;
}
.blog-btn-outline:hover {
  opacity: 1;
}

/* 9. Video Block */
.blog-video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #02162a;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(2, 22, 42, 0.12);
}
.blog-video-frame iframe,
.blog-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 10. Code / Technical Spec Block */
.blog-code-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(2, 22, 42, 0.14);
  background: #0b1623;
  color: #e2e8f0;
}
.blog-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
}
.blog-code-wrap pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
}
.blog-code-explanation {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* 11. Related Links / Cluster Cards */
.blog-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.blog-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(2, 22, 42, 0.1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-link-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 22, 42, 0.06);
}
.blog-link-card-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-2);
}
.blog-link-card strong {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 16.5px;
  color: var(--text);
}
.blog-link-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Citations, Tags & Author E-E-A-T Card */
.blog-citations {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(2, 22, 42, 0.08);
}
.blog-citations h2 {
  margin: 0 0 12px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 18px;
}
.blog-citations ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.blog-citations a {
  color: var(--blue-2);
}
.blog-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tag-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(2, 22, 42, 0.09);
  font-size: 12.5px;
  color: var(--muted);
}
.blog-author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: #f8fafd;
  border: 1px solid rgba(2, 22, 42, 0.09);
}
.blog-author-box-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-author-box h3 {
  margin: 0 0 4px;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 19px;
}
.blog-author-box h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-author-box h3 a:hover {
  color: var(--blue-2);
}
.blog-author-box-role {
  display: block;
  font-size: 13.5px;
  color: var(--blue-2);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-author-box p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.blog-author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.blog-author-social a {
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1040px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-sidebar {
    position: static;
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-block-images.layout-sideBySide {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-author-box {
    flex-direction: column;
  }
  .blog-step-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
