/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f7f8;
  --surface: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #166534;
  --brand2: #15803d;
  --brand3: #dcfce7;
  --dark: #0f172a;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}

a {
  color: var(--brand2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  background: linear-gradient(90deg, #14532d, #166534);
  color: #ecfdf5;
  font-size: 14px;
}

.topbar .container {
  padding: 10px 22px;
}

/* ===== BARRA DE PROGRESSO DE LEITURA ===== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #166534, #22c55e);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22,101,52,0.35);
  z-index: 9000;
  transition: opacity 0.2s, transform 0.2s;
}

#back-to-top:hover {
  background: #15803d;
  transform: translateY(-2px);
}

#back-to-top.visible {
  display: flex;
}

/* ===== HEADER E LOGO ===== */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--brand);
  font-size: 22px;
}

.logo:hover {
  text-decoration: none;
  color: #15803d !important;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #166534, #22c55e);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: #1f2937;
  font-weight: 600;
}

nav ul li a:hover {
  color: #166534;
}

nav ul li a.active {
  color: #166534;
  border-bottom: 2px solid #166534;
  padding-bottom: 2px;
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.1), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(22, 163, 74, 0.1), transparent 25%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--brand3);
  color: var(--brand);
  border: 1px solid #bbf7d0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  margin: 14px 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', Arial, sans-serif;
}

.btn-primary {
  background: #166534;
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #15803d;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* ===== CARDS ===== */
.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.hero-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
}

.hero-point .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0fdf4;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 900;
}

/* ===== SEÇÕES ===== */
.section {
  padding: 30px 0;
}

.section-lg {
  padding: 60px 0;
}

.section-title {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 820px;
  margin: 0 0 24px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.card h3 a {
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--brand);
}

.band {
  background: linear-gradient(135deg, #14532d, #166534);
  color: #ecfdf5;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.band h2 {
  color: #fff;
}

.band p {
  color: #d1fae5;
}

.band a {
  color: #ecfdf5;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 54px;
  background: var(--dark);
  color: #e5e7eb;
  padding: 42px 0;
}

.footer h3 {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 30px;
}

.footer a {
  color: #dcfce7;
}

/* ===== REDES SOCIAIS NO RODAPÉ ===== */
.footer .footer-social,
.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 20px 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 18px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
}

.footer .footer-social a,
.footer-social a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  width: auto;
}

.footer .footer-social a:hover,
.footer-social a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer .footer-social img,
.footer-social img {
  display: inline-block;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ===== PÁGINAS ===== */
.page-header {
  padding: 34px 0 12px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--brand2);
}

.page-header h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.page-header p {
  color: var(--muted);
  max-width: 840px;
}

/* ===== BLOG ===== */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 18px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.post-card h2 a {
  color: #1f2937;
}

.post-card h2 a:hover {
  color: #166634;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 18px;
}

.widget h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1f2937;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
}

.widget ul li {
  color: var(--muted);
  margin-bottom: 6px;
}

.widget ul li a {
  color: #166534;
}

/* ===== ARTIGO ===== */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.article h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 12px 0 12px;
}

.article h2 {
  font-size: 28px;
  line-height: 1.12;
  margin: 32px 0 12px;
  color: #166534;
  border-bottom: 2px solid #dcfce7;
  padding-bottom: 6px;
}

.article h3 {
  font-size: 21px;
  line-height: 1.18;
  margin: 24px 0 8px;
}

.article p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.85;
}

.article ul,
.article ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

/* ===== IMAGENS (CONSOLIDADO — sem duplicatas) ===== */
.cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 18px 0 20px;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-image {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.content-image figcaption {
  font-size: 14px;
  color: #6b7280;
  padding: 10px 14px;
  background: #f8fafc;
}

.hero-visual img,
.page-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 14px 0 0;
}

.page-visual,
.hero-visual {
  overflow: hidden;
  width: 100%;
}

/* ===== ELEMENTOS COMUNS ===== */
.notice {
  background: #f0fdf4;
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 15.5px;
}

.toc {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 16px;
  margin: 18px 0 22px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.author-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
}

.author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #166534, #22c55e);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.author-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-inline {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  padding: 18px;
  border-radius: 18px;
  margin: 26px 0;
}

.cta-inline a {
  color: #166534;
  font-weight: 700;
}

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

.related a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-weight: 700;
  color: var(--text);
}

.tag {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-right: 8px;
  margin-bottom: 8px;
}

.search-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.simple-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

/* ===== ACESSIBILIDADE ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #111827;
  color: #fff;
  z-index: 999;
  border-radius: 12px;
}

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

/* ===== DISCLOSURE ===== */
.trust-disclosure {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
}

.trust-disclosure p {
  margin: 0;
}

.trust-disclosure a {
  color: #166534;
}

/* ===== MISC ===== */
.text-muted {
  color: #6b7280;
  font-size: 14px;
}

.site-note,
.trust-box,
.legal-list,
.editorial-list {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.site-note p,
.trust-box p {
  margin: 0 0 10px;
}

.site-note p:last-child,
.trust-box p:last-child {
  margin-bottom: 0;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.meta-label {
  min-width: 140px;
  font-weight: 800;
  color: var(--text);
}

/* ===== BADGE DE CATEGORIA ===== */
.badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 6px 8px 0;
}

/* ===== POST-CONTENT (posts padronizados) ===== */
.post-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.post-content h1 { font-size: 42px; line-height: 1.08; margin: 0 0 14px; }
.post-content h2 { font-size: 28px; line-height: 1.12; margin: 32px 0 12px; color: #166534; border-bottom: 2px solid #dcfce7; padding-bottom: 6px; }
.post-content h3 { font-size: 21px; line-height: 1.2; margin: 24px 0 8px; }
.post-content p  { margin: 0 0 18px; font-size: 17px; line-height: 1.85; }
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 18px; }
.post-content li { margin-bottom: 8px; font-size: 17px; line-height: 1.75; }

.post-content .author-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
  margin-top: 32px;
}

/* ===== BANNER DE COOKIES ===== */
.cookie-banner,
cookie-banner,
#cookie-banner,
[class*="cookie-consent"] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0;
  border: none;
  background: transparent;
}

.cookie-banner-content,
.cookies-banner__inner,
[class*="cookie-banner"] > div:first-child {
  max-width: 1100px;
  margin: 0 auto;
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-text,
.cookies-banner__inner p {
  margin: 0;
  max-width: 760px;
  font-size: 0.9rem;
  color: #e2e8f0 !important;
  line-height: 1.5;
}

.cookie-banner-text a,
.cookie-link,
.cookies-banner__inner a {
  color: #bbf7d0 !important;
  text-decoration: underline;
}

.cookie-banner-buttons,
.cookies-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn,
.cookies-banner .btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-primary,
.cookie-btn-accept,
.cookies-banner .btn-primary,
.cookie-banner-buttons button:first-child {
  background: #166534 !important;
  color: #ffffff !important;
  border: 2px solid #14532d !important;
}

.cookie-btn-primary:hover,
.cookie-btn-accept:hover,
.cookies-banner .btn-primary:hover {
  background: #15803d !important;
  transform: translateY(-1px);
}

.cookie-btn-secondary,
.cookie-btn-reject,
.cookies-banner .btn-secondary,
.cookie-banner-buttons button:last-child {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border: 2px solid #475569 !important;
}

.cookie-btn-secondary:hover,
.cookie-btn-reject:hover {
  background: #475569 !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1000px) {
  .hero-grid,
  .article-wrap,
  .blog-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .grid-3,
  .grid-2,
  .related {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    width: 100%;
    height: 200px;
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .article h1 {
    font-size: 30px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  nav ul {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .topbar {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cookie-banner-content,
  .cookies-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px;
    border-radius: 14px;
  }

  .cookie-banner-buttons,
  .cookies-banner__actions {
    width: 100%;
  }

  .cookie-btn,
  .cookies-banner .btn {
    flex: 1;
    text-align: center;
  }

  .post-content { padding: 18px; }
  .post-content h1 { font-size: 28px; }
  .post-content h2 { font-size: 22px; }

  .nav {
    position: relative;
  }

  #back-to-top {
    bottom: 18px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* Imagens de cabeçalho de página no mobile */
  .page-visual img,
  .hero-visual img {
    aspect-ratio: 16/7;
    max-height: 180px;
    border-radius: 10px;
    margin: 10px 0 0;
  }

  .page-visual p.text-muted {
    font-size: 13px;
    margin-top: 6px;
  }

  /* Imagens dentro de artigos/posts */
  .article img,
  .content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Redes sociais no mobile — garantia de linha horizontal */
  .footer .footer-social,
  .footer-social {
    flex-direction: row !important;
    gap: 20px;
    justify-content: center;
    padding: 16px 16px 6px;
  }
}

/* ===== MENU MOBILE ABERTO ===== */
.nav-open nav ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  z-index: 50;
}

.nav-open nav ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}

.nav-open nav ul li a:hover {
  background: #f0fdf4;
  color: var(--brand);
  text-decoration: none;
}

/* ===== LEITURAS RECOMENDADAS ===== */
.related-section {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 2px solid var(--brand3);
}

.related-section__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #166534, #22c55e);
  border-radius: 4px;
  flex-shrink: 0;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--text);
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(22,101,52,0.12);
  transform: translateY(-3px);
  text-decoration: none;
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.related-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1;
}

.related-card__cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand3);
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.related-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}

.related-card__meta::before {
  content: '⏱ ';
}

@media (max-width: 760px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-card {
    flex-direction: row;
    align-items: center;
  }

  .related-card img {
    width: 100px;
    height: 80px;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
    border-radius: 0;
  }

  .related-card__body {
    padding: 10px 12px;
    gap: 4px;
  }

  .related-card__title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

/* ===== BOOK WIDGET ===== */
.book-widget { margin-top: 4px; }
.book-widget__header { margin-bottom: 12px; }
.book-widget__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.book-widget__card { display: flex; gap: 14px; align-items: flex-start; }
.book-widget__cover-link { flex-shrink: 0; }
.book-widget__cover { width: 90px; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(15,23,42,0.10); display: block; transition: transform 0.2s ease; }
.book-widget__cover:hover { transform: scale(1.04); }
.book-widget__info { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.book-widget__badge { display: inline-block; font-size: 11px; font-weight: 700; background: #f0fdf4; color: var(--brand); border: 1px solid #bbf7d0; padding: 2px 8px; border-radius: 999px; align-self: flex-start; }
.book-widget__title { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--text); display: block; }
.book-widget__author { font-size: 12px; color: var(--muted); font-style: italic; }
.book-widget__desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 4px 0 6px; }
.book-widget__btn { display: inline-flex; align-items: center; gap: 4px; background: #f97316; color: #fff; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; text-decoration: none; transition: background 0.2s ease; align-self: flex-start; }
.book-widget__btn:hover { background: #ea6c0a; text-decoration: none; color: #fff; }
.book-widget__disclosure { font-size: 10px; color: #9ca3af; line-height: 1.4; margin: 6px 0 0; font-style: italic; }

/* =============================================================
   ADSENSE — CHAVE DE ATIVAÇÃO
   STATUS ATUAL: DESATIVADO (aguardando aprovação do AdSense)
   Para ATIVAR: apague as 5 linhas de propriedade dentro de cada
   bloco abaixo (display, margin, padding, height, overflow)
   ============================================================= */
.ad-slot,
.ad-slot--article-top,
.ad-slot--article-mid,
.ad-slot--article-bottom {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.ad-slot--sidebar {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* Sidebar AdSense — classe direta (compatível com todos os browsers) */
.sidebar-ad-hidden {
  display: none !important;
}
