/* ═══ BLOG EDITORIAL, PREVIA (18/11/2026) ═══
   Formato tirado da referencia que o dono mandou (blog da Graneto), na
   identidade da D'avila: Poppins nos titulos, Inter no texto corrido (le
   melhor em bloco longo e o site ja carrega), grafite #141618 e o verde da
   marca. OFICIAL desde 18/11/2026 (previa aprovada pelo dono).
   Carrega em /blog, /blog/pagina/N e em todo artigo (views/blog-editorial.js). */

body.ed {
  --ed-tinta: #141618;
  --ed-texto: #2f3236;
  --ed-suave: #6b6f74;
  --ed-linha: #e4e5e7;
  --ed-col: 60rem;            /* 960px: dono pediu mais largura (18/11, "esta muito espremido") */
  --ed-fundo: #fafaf8;
}

/* ── Barra de leitura (topo da tela) ─────────────────────────────── */
body.ed .ed-progresso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
body.ed .ed-progresso span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #067a55, var(--mint, #00e19e));
}

/* ═══ ARTIGO ═══ */
body.ed .ed-col { max-width: var(--ed-col); margin-left: auto; margin-right: auto; }

body.ed .ed-topo { background: var(--ed-fundo); padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 3.5vw, 40px); }
body.ed .ed-trilha { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 0.9rem; color: var(--ed-suave); }
body.ed .ed-trilha a { color: #067a55; }
body.ed .ed-trilha a:hover { text-decoration: underline; }
body.ed .ed-assunto {
  margin: clamp(28px, 4vw, 44px) 0 0; display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; font-weight: 600; color: #067a55;
}
body.ed .ed-assunto::before { content: ""; width: 22px; height: 2px; background: var(--mint, #00e19e); }
body.ed .ed-topo h1 {
  color: var(--ed-tinta); text-align: left; max-width: none;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.03em;
  margin: 14px 0 18px;
}
body.ed .ed-meta { color: var(--ed-suave); font-size: 0.95rem; margin: 0; }
body.ed .ed-meta a { color: #067a55; text-decoration: underline; text-underline-offset: 3px; }

body.ed article.ed-artigo { background: var(--ed-fundo); padding-top: 0; padding-bottom: 0; }
body.ed .prose.ed-corpo {
  max-width: none; margin: 0;
  font-family: "Inter", system-ui, sans-serif; font-size: 1.1875rem; line-height: 1.85; color: var(--ed-texto);
  padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--ed-linha);
}
body.ed .ed-corpo p, body.ed .ed-corpo li, body.ed .ed-corpo td { color: var(--ed-texto); }
body.ed .ed-corpo > p:first-of-type { font-size: 1.22rem; line-height: 1.75; color: #1f2124; }
body.ed .ed-corpo strong { color: var(--ed-tinta); }
body.ed .ed-corpo a { color: #067a55; }
body.ed .ed-corpo h2 {
  font-family: "Poppins", system-ui, sans-serif; color: var(--ed-tinta); text-align: left;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.25; letter-spacing: -0.02em;
  margin-top: 2.1em; margin-bottom: 0.15em; scroll-margin-top: 96px;
}
body.ed .ed-corpo h3 { font-family: "Poppins", system-ui, sans-serif; color: var(--ed-tinta); text-align: left; }

/* Sumario: sem caixa, entre duas linhas, numerado 01 02 em duas colunas */
body.ed .ed-corpo .sumario {
  background: none; border: 0; border-left: 0; border-radius: 0; box-shadow: none;
  padding: 22px 0 18px; margin: 0 0 1.6em;
  border-bottom: 1px solid var(--ed-linha);
}
body.ed .ed-corpo .sumario-tit {
  font-family: "Poppins", system-ui, sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: none; color: var(--ed-suave); margin: 0 0 12px;
}
body.ed .ed-corpo .sumario ol {
  list-style: none; counter-reset: ed-sum; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px;
}
body.ed .ed-corpo .sumario li {
  counter-increment: ed-sum; display: flex; gap: 10px; margin: 0;
  font-family: "Inter", system-ui, sans-serif; font-size: 0.98rem; line-height: 1.45;
}
body.ed .ed-corpo .sumario li::before {
  content: counter(ed-sum, decimal-leading-zero);
  font-size: 0.78rem; font-weight: 600; color: #067a55; padding-top: 0.2em; flex: none;
}
body.ed .ed-corpo .sumario a { color: var(--ed-tinta); border: 0; background: none; }
body.ed .ed-corpo .sumario a:hover { color: #067a55; }

/* Bloco de conversa no fim do texto */
body.ed .ed-cta {
  margin-top: clamp(40px, 5vw, 56px); background: var(--ed-tinta); color: #c9ccce;
  border-radius: var(--r-bloco, 18px); padding: clamp(26px, 3.6vw, 36px);
}
body.ed .ed-cta p { margin: 0; font-size: 1rem; line-height: 1.7; color: #c9ccce; }
body.ed .ed-cta p b { color: #fff; }
body.ed .ed-cta-acoes { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
body.ed .ed-cta-srv { color: #fff; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); }
body.ed .ed-cta-srv:hover { color: var(--mint, #00e19e); text-decoration-color: currentColor; }

/* Publicado em + compartilhar */
body.ed .ed-pub {
  margin-top: clamp(36px, 4.5vw, 48px); padding-top: 20px; border-top: 1px solid var(--ed-linha);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.95rem;
}
body.ed .ed-pub p { margin: 0; color: var(--ed-suave); }
body.ed .ed-pub a { color: var(--ed-tinta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.ed .ed-pub a:hover { color: #067a55; }

/* Continue lendo: tres cards so' de texto */
body.ed .ed-continue { background: var(--ed-fundo); padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
body.ed .ed-continue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
body.ed .ed-continue-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); color: var(--ed-tinta); margin: 0; text-align: left; }
body.ed .ed-continue-head a { display: inline-flex; align-items: center; gap: 6px; color: #067a55; font-weight: 600; white-space: nowrap; }
body.ed .ed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.ed .ed-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: #fff; border: 1px solid var(--ed-linha); border-radius: var(--r-bloco, 18px);
  transition: border-color 0.2s;
}
body.ed .ed-card:hover { border-color: #067a55; }
body.ed .ed-card-t { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ed-tinta); }
body.ed .ed-card-r { font-family: "Inter", system-ui, sans-serif; font-size: 0.92rem; line-height: 1.6; color: var(--ed-suave); }

/* Rotulos pequenos (assunto do card e da lista) */
body.ed .ed-kicker, body.ed .ed-rotulo {
  margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: #067a55;
}

/* ═══ LISTA DO BLOG ═══ */
/* Topo da lista alinhado a esquerda, como na referencia (o tema centralizava) */
body.ed .cs-centro.hero-esq .hero-grid { justify-items: start; text-align: left; }
body.ed .bl-hero .hero-copy { text-align: left; margin-left: 0; margin-right: auto; max-width: 820px; }
body.ed .bl-hero .ecv-crumb { justify-content: flex-start; }
body.ed .bl-hero h1 { text-align: left; margin-left: 0; }
body.ed .bl-hero .lead { text-align: left; margin-left: 0; max-width: 60ch; }

body.ed .ed-blog { background: var(--ed-fundo); padding-top: clamp(36px, 4.5vw, 56px); }
body.ed .ed-assuntos { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; border-bottom: 2px solid var(--ed-tinta); }
body.ed .ed-assuntos a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px;
  border: 1px solid #d5d7da; border-radius: 999px; background: #fff;
  font-size: 0.95rem; color: var(--ed-tinta); transition: border-color 0.2s, color 0.2s;
}
body.ed .ed-assuntos a span { font-size: 0.8rem; color: var(--ed-suave); }
body.ed .ed-assuntos a:hover { border-color: #067a55; color: #067a55; }
body.ed .ed-assuntos a[aria-current="page"] { background: var(--ed-tinta); border-color: var(--ed-tinta); color: #fff; }
body.ed .ed-assuntos a[aria-current="page"] span { color: #b9bcbe; }

/* Hub do tema: apresentacao na coluna de leitura e titulo de cada grupo */
body.ed .ed-apresenta { max-width: var(--ed-col); padding: clamp(28px, 3.5vw, 40px) 0 clamp(8px, 1vw, 12px); }
body.ed .ed-apresenta p { font-family: "Inter", system-ui, sans-serif; font-size: 1.12rem; line-height: 1.8; color: var(--ed-texto); margin: 0 0 1em; }
body.ed .ed-grupo-t {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ed-tinta);
  text-align: left; margin: clamp(36px, 4.5vw, 52px) 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--ed-tinta);
}

body.ed .ed-destaque {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--ed-linha);
}
body.ed .ed-destaque h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em;
  margin: 12px 0 16px; text-align: left;
}
body.ed .ed-destaque h2 a { color: var(--ed-tinta); }
body.ed .ed-destaque h2 a:hover { color: #067a55; }
body.ed .ed-resumo { font-family: "Inter", system-ui, sans-serif; color: var(--ed-texto); font-size: 1.02rem; line-height: 1.65; margin: 0 0 14px; }
body.ed .ed-destaque .ed-resumo { font-size: 1.12rem; }
body.ed .ed-indice {
  align-self: start; background: #fff; border: 1px solid var(--ed-linha); border-radius: var(--r-bloco, 18px);
  padding: 24px 26px;
}
body.ed .ed-indice ol { margin: 12px 0 18px; padding-left: 1.2em; }
body.ed .ed-indice li { font-family: "Inter", system-ui, sans-serif; font-size: 0.97rem; line-height: 1.5; color: var(--ed-texto); margin-bottom: 8px; }
body.ed .ed-indice li::marker { color: #067a55; font-weight: 600; }
body.ed .ed-ler { display: inline-flex; align-items: center; gap: 6px; color: #067a55; font-weight: 600; }

body.ed .ed-lista-t {
  /* rotulo de secao para quem le com leitor de tela; na vista, discreto */
  font-size: 0.95rem; font-weight: 600; color: var(--ed-suave); text-align: left;
  margin: clamp(28px, 3.5vw, 40px) 0 0; letter-spacing: 0;
}
body.ed .ed-lista { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 56px); }
body.ed .ed-item { padding: 26px 0 30px; border-bottom: 1px solid var(--ed-linha); }
body.ed .ed-item h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; margin: 8px 0 10px; text-align: left; }
body.ed .ed-item h3 a { color: var(--ed-tinta); }
body.ed .ed-item h3 a:hover { color: #067a55; }
body.ed .ed-item .ed-meta { font-size: 0.88rem; }
body.ed .ed-blog .bl-pg { margin-top: 36px; }

/* ── Celular ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  body.ed .ed-destaque { grid-template-columns: 1fr; }
  body.ed .ed-lista { grid-template-columns: 1fr; }
  body.ed .ed-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body.ed .ed-corpo .sumario ol { grid-template-columns: 1fr; }
  body.ed .prose.ed-corpo { font-size: 1.0625rem; }
  body.ed .ed-corpo > p:first-of-type { font-size: 1.12rem; }
  body.ed .ed-cta-acoes .btn { width: 100%; justify-content: center; }
  body.ed .ed-assuntos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  body.ed .ed-assuntos a { flex: none; }
}
