/* ===========================================================
   Mente & Bolso | folha de estilo compartilhada
   Paleta: azul-marinho (confiança) + dourado (valor) + verde-sálvia (saúde/crescimento)
   =========================================================== */

:root {
  --navy: #163a5f;
  --navy-dark: #0f2942;
  --gold: #d89b3c;
  --gold-dark: #b87f28;
  --sage: #6e9075;
  --cream: #faf6f0;
  --paper: #ffffff;
  --text: #2b2b2b;
  --text-soft: #5a5a5a;
  --border: #e8e1d6;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(22, 58, 95, 0.08);
  --card-blue: #3d47c9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
  font-family: "Lora", Georgia, serif;
  color: var(--navy-dark);
  line-height: 1.25;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ---------- Top Artigos ---------- */
.top-articles-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.top-articles-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-articles-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-dark);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.top-articles-label::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
}

.top-articles-list {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: thin;
}

.top-articles-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 190px;
}

.top-articles-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-articles-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.top-articles-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-articles-item:hover .top-articles-title { color: var(--gold-dark); }

@media (max-width: 720px) {
  .top-articles-label { border-right: none; padding-right: 0; }
  .top-articles-inner { flex-wrap: wrap; gap: 10px; }
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-lockup img { height: 36px; width: 36px; }

.logo-text {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.logo-text .amp { color: var(--gold-dark); }

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

nav.main-nav a {
  color: var(--navy-dark);
  font-weight: 500;
  font-size: 0.98rem;
}

nav.main-nav li.has-dropdown {
  position: relative;
}

nav.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 10px 0 0;
  padding: 8px;
  min-width: 230px;
  z-index: 200;
}

nav.main-nav li.has-dropdown:hover .dropdown,
nav.main-nav li.has-dropdown:focus-within .dropdown {
  display: block;
}

nav.main-nav .dropdown li { margin: 0; }

nav.main-nav .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

nav.main-nav .dropdown a:hover { background: var(--cream); color: var(--gold-dark); }

/* ---------- Página de índice de artigos ---------- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}

.category-chip {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.category-chip:hover { background: var(--navy); color: #fff; }

.category-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.category-section:first-of-type { border-top: none; }

.category-section h2 { margin-bottom: 4px; }
.category-section .category-desc { color: var(--text-soft); margin-bottom: 20px; }

.category-empty {
  color: var(--text-soft);
  font-style: italic;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0 64px;
}

.hero .container { max-width: 720px; }

.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: #dbe4ee;
  max-width: 560px;
}

.hero .badge {
  display: inline-block;
  background: rgba(216, 155, 60, 0.18);
  color: var(--gold);
  border: 1px solid rgba(216, 155, 60, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ---------- Content sections ---------- */
main { padding: 56px 0 80px; }

.page-header {
  padding: 56px 0 8px;
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p.subtitle { color: var(--text-soft); font-size: 1.05rem; }

section.block { margin-bottom: 40px; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.pillar .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 8px;
}

.author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-align: center;
  overflow: hidden;
}

.author-photo-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.credentials-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.credentials-list li { margin-bottom: 6px; }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
}

.btn:hover { background: var(--gold-dark); color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
}

form.contact-form { display: grid; gap: 16px; max-width: 540px; }

form.contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--paper);
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p, .legal li { color: var(--text-soft); }
.legal .updated { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #cdd7e1;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}

footer.site-footer a { color: #cdd7e1; }
footer.site-footer a:hover { color: var(--gold); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8fa0b3;
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  color: #fff;
  padding: 18px 24px;
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

#cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p { margin: 0; font-size: 0.88rem; color: #dbe4ee; flex: 1 1 420px; }
.cookie-actions { display: flex; gap: 10px; }

.btn-cookie-accept {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-cookie-reject {
  background: transparent;
  color: #cdd7e1;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ---------- Artigo (posts do blog) ---------- */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.article-header .container { max-width: 760px; }

.article-tag {
  display: inline-block;
  background: rgba(110, 144, 117, 0.12);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article-header h1 { font-size: 2.1rem; margin-bottom: 12px; }

.article-header p.deck {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.article-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.article-body figure { margin: 32px 0; }

.article-body figure img {
  border-radius: var(--radius);
  width: 100%;
}

.article-body figure.figure-portrait {
  max-width: 260px;
  margin: 24px auto;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 44px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p { margin-bottom: 18px; font-size: 1.03rem; }

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

.article-body li { margin-bottom: 8px; }

.article-body a { text-decoration: underline; }

/* bloco de entrevista intercalado no texto */
.interview-block {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.interview-block .interview-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.interview-block .interview-q {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.interview-block .interview-a {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.interview-block .interview-a.pending {
  color: var(--sage);
  font-style: italic;
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  margin: 40px 0;
  text-align: center;
}

.article-cta h3 { color: #fff; margin-top: 0; }
.article-cta p { color: #dbe4ee; }

.article-sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.article-sources li { margin-bottom: 6px; }

/* ---------- Layout de 3 colunas (páginas de artigo) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 220px;
  justify-content: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  align-items: start;
}

.article-layout .article-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.rail-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.rail-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-align: center;
}

.rail-block-ad {
  background: var(--cream);
  border-style: dashed;
  text-align: center;
}

.rail-ad-slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--border), var(--border) 8px, transparent 8px, transparent 16px);
}

.rail-block-product .rail-label { color: var(--gold-dark); text-align: left; }

.rail-product-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--navy-dark);
  font-weight: 600;
}

.rail-product-item:last-child { margin-bottom: 0; }
.rail-product-item span { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.78rem; margin-top: 2px; }

.rail-block-articles .rail-label { color: var(--sage); text-align: left; }

.rail-article-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--navy-dark);
  font-weight: 600;
  line-height: 1.35;
}

.rail-article-item:last-child { margin-bottom: 0; }

.rail-article-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
}

.rail-block-video .rail-label { color: #a83a4c; text-align: left; }

.rail-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.rail-video-title { font-size: 0.85rem; color: var(--navy-dark); font-weight: 600; }

.article-banner {
  max-width: 1240px;
  margin: 8px auto 40px;
  padding: 0 24px;
}

.article-banner .rail-block-ad { padding: 20px; }
.article-banner .rail-ad-slot { min-height: 110px; }

/* ---------- Cabeçalho de seção com link "ver todas" ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 { margin: 0; }

.section-head a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- Grade de temas (explore por assunto) ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.topic-card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.topic-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--navy-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.topic-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.45;
}

.topic-card .topic-arrow {
  position: absolute;
  top: 20px;
  right: 16px;
  color: var(--text-soft);
  font-size: 1rem;
}

/* ---------- Grade de últimas publicações (estilo revista) ---------- */
.mb-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.mb-post-card {
  display: block;
  text-decoration: none;
}

.mb-post-card img.mb-post-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.mb-post-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mb-post-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
}

.mb-post-brand .mb-post-brand-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.mb-post-brand .mb-post-pill {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mb-post-card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--card-blue);
  margin: 0 0 12px;
}

.mb-post-card:hover h3 { color: var(--gold-dark); }

.mb-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.mb-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mb-post-meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Compartilhar ---------- */
.article-meta { position: relative; flex-wrap: wrap; }

.share-wrap { position: relative; display: inline-flex; }

.share-wrap-top { margin-left: auto; }

.share-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--navy-dark);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-btn-icon svg { width: 16px; height: 16px; }

.share-btn-icon:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.share-menu {
  display: none;
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 190px;
  padding: 6px;
  z-index: 150;
}

.share-menu.show { display: block; }

.share-menu-top { top: calc(100% + 8px); right: 0; }
.share-menu-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }

.share-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-dark);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.share-menu-item:hover { background: var(--cream); color: var(--gold-dark); }

.article-share-cta {
  text-align: center;
  padding: 40px 24px;
  margin: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-share-cta h3 { margin-top: 0; margin-bottom: 12px; }

.article-share-cta p {
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 24px;
}

.share-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}

.share-btn-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

.share-btn-cta:hover { background: var(--navy-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px 24px;
  }
  .article-layout .article-body { order: 1; }
  .article-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    order: 2;
  }
  .article-rail .rail-block { min-width: 220px; }
}

@media (max-width: 720px) {
  nav.main-nav ul { gap: 16px; }
  nav.main-nav .dropdown { display: none !important; }
  .pillar-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 960px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .mb-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .mb-post-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* Correcao 2026-10-08: submenu Artigos nao fecha mais no vao entre o link e a lista + cabecalho sem estourar a tela no celular */
nav.main-nav .dropdown { margin-top: 0; top: calc(100% + 10px); }
nav.main-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@media (max-width: 640px) {
  .site-header .container { flex-wrap: wrap; row-gap: 10px; }
  nav.main-nav { width: 100%; }
  nav.main-nav ul { flex-wrap: wrap; gap: 6px 18px; }
  nav.main-nav li.has-dropdown .dropdown { display: none !important; }
}
