/* =========================================================================
   BLOG GRUPO ALTEAR · tema do Ghost
   Brand Book v2.1. Corpo navy, ápice na cor da frente.

   A cor de cada frente vem de [data-frente]: card, selo, capa e topo pegam a
   cor sozinhos a partir do slug da tag principal. Frente nova = uma linha no
   mapa abaixo, nada mais.
   ========================================================================= */

:root {
  --navy: #16233A; --navy-2: #0F1929; --aco: #4D8BC4; --aco-t: #8AB4DC;
  --inst: #1E4A7A; --inst-2: #265C99;
  --mineral: #E6E9E7; --prata: #B9C0BD; --branco: #FFFFFF; --papel: #F4F6F5;
  --texto: #16233A; --t2: #55606C; --t3: #6E7883;
  --linha: rgba(22,35,58,.12); --linha-c: rgba(230,233,231,.16);
  --e: cubic-bezier(.22,.61,.36,1);
  --cor: #3C6E96;           /* sem frente: ápice da marca-mãe */
  --largura: 1240px;
  --simbolo: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20108%20104%22%3E%3Cpath%20d%3D%22M48%200h12l15%2032.5H33zM30.7%2037.5h46.6L84%2052H24zM24%2052h30l-7.15%2015.5h-30zM54%2052h30l7.15%2015.5h-30zM14.54%2072.5h30L30%20104H0zM63.46%2072.5h30L108%20104H78z%22%2F%3E%3C%2Fsvg%3E");
}

/* As nove frentes · ápices do Brand Book v2.1. O segundo seletor pega os
   temas da frente (tech-automacao herda a cor da tech). */
[data-frente="gestao"],      [data-frente^="gestao-"]      { --cor: #1F5E63; }
[data-frente="patrimonial"], [data-frente^="patrimonial-"] { --cor: #2C5C8A; }
[data-frente="contabil"],    [data-frente^="contabil-"]    { --cor: #566371; }
[data-frente="tributario"],  [data-frente^="tributario-"]  { --cor: #7A3B44; }
[data-frente="capital"],     [data-frente^="capital-"]     { --cor: #464B79; }
[data-frente="agro"],        [data-frente^="agro-"]        { --cor: #0E5B45; }
[data-frente="educacao"],    [data-frente^="educacao-"]    { --cor: #8C5638; }
[data-frente="tech"],        [data-frente^="tech-"]        { --cor: #2C7C8C; }
[data-frente="comercial"],   [data-frente^="comercial-"]   { --cor: #3C6E96; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0; background: var(--branco); color: var(--texto);
  font-family: Inter, "Inter Display", Arial, sans-serif;
  font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased;
  /* Blocos de largura total (100vw) contam a barra de rolagem: sem o clip,
     a página ganharia rolagem lateral. clip, e não hidden, para não quebrar
     o position: sticky. */
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.w { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: 32px; }
.pular { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 12px 20px; }
.pular:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--aco); outline-offset: 3px; box-shadow: 0 0 0 1px var(--navy); border-radius: 1px; }

/* ============================ NAV ============================ */
.s-nav { position: sticky; top: 0; z-index: 50; background: rgba(19,30,50,.97); border-bottom: 1px solid var(--linha-c); }
.s-nav__in { display: flex; align-items: center; gap: 34px; height: 76px; }
.s-logo img { width: 150px; height: auto; }
.s-links { display: flex; gap: 30px; margin-left: auto; }
.s-links a {
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--prata);
  padding: 6px 0; position: relative; transition: color .3s var(--e);
}
.s-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--aco); transition: width .35s var(--e); }
.s-links a:hover { color: #fff; }
.s-links a:hover::after, .s-links a[aria-current]::after { width: 100%; }
.s-links a[aria-current] { color: #fff; }
.s-btn {
  font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mineral); border: 1px solid rgba(230,233,231,.34); padding: 11px 18px; border-radius: 2px;
  transition: background .3s var(--e), border-color .3s var(--e);
}
.s-btn:hover { background: rgba(230,233,231,.08); border-color: var(--mineral); }

/* Menu do celular: <details> nativo, sem JS. */
.s-menu { display: none; margin-left: auto; position: relative; }
.s-menu summary { list-style: none; cursor: pointer; padding: 10px; display: grid; gap: 5px; }
.s-menu summary::-webkit-details-marker { display: none; }
.s-menu summary span { display: block; width: 22px; height: 1.5px; background: var(--mineral); }
.s-menu nav {
  position: absolute; right: -16px; top: 52px; min-width: 240px; display: grid;
  background: var(--navy); border: 1px solid var(--linha-c); padding: 8px 0;
}
.s-menu nav a { padding: 12px 20px; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--prata); }
.s-menu nav a[aria-current] { color: #fff; border-left: 2px solid var(--aco); padding-left: 18px; }

/* ============================ PEÇAS COMUNS ============================ */
.rot { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.rot::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .45; }
.trilha { font-size: .74rem; color: var(--prata); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.trilha a:hover { color: #fff; text-decoration: underline; }
.trilha b { font-weight: 400; color: var(--mineral); }
.trilha em { font-style: normal; opacity: .5; }
.trilha--clara { color: var(--t2); }
.trilha--clara a:hover { color: var(--texto); }
.trilha--clara b { color: var(--texto); }

/* Selo da frente: o símbolo da marca na cor do ápice. */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--cor); }
.chip::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--cor); -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }
a.chip:hover { text-decoration: underline; }
.meta { font-size: .8rem; color: var(--t3); font-variant-numeric: tabular-nums; }
.vazio { color: var(--t2); padding: 30px 0; }

/* Capa gerada: navy + cor do ápice + diagonal 24,8° + símbolo. */
.capa { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px;
  background: linear-gradient(135deg, var(--navy) 8%, color-mix(in srgb, var(--cor) 78%, var(--navy)) 100%); }
.capa::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(65.2deg, rgba(255,255,255,.07) 0 1px, transparent 1px 34px); }
.capa::after { content: ""; position: absolute; right: -5%; bottom: -16%; width: 50%; aspect-ratio: 108 / 104; background: rgba(255,255,255,.12);
  -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }
.capa__rot { position: absolute; left: 16px; top: 14px; z-index: 1; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 8px; }
.capa__rot::before { content: ""; width: 10px; height: 10px; background: #fff; opacity: .9; -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }
.capa--foto { object-fit: cover; }

.autor { display: flex; align-items: center; gap: 12px; }
.autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.autor a { display: block; font-size: .88rem; font-weight: 500; }
.autor a:hover { text-decoration: underline; }
.autor small { display: block; font-size: .78rem; color: var(--t3); }

.btn-s { display: inline-block; background: var(--inst); color: #fff; font: inherit; font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; padding: 13px 20px; border: 0; border-radius: 2px; cursor: pointer; transition: background .3s var(--e); }
.btn-s:hover { background: var(--inst-2); }

.sec { padding: 56px 0; }
.sec--papel { background: var(--papel); }
.sec__tit { font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 24px; }

.topo, .fr-topo { background: var(--navy); color: var(--mineral); padding: 38px 0 50px; position: relative; overflow: hidden; }
.topo .rot { color: var(--aco-t); margin-bottom: 14px; }
.topo h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; color: #fff; }
.topo__sub, .fr-topo__sub { margin-top: 16px; max-width: 60ch; color: var(--prata); font-size: 1.04rem; }

/* ============================ HUB ============================ */
.hub-topo { background: var(--navy); color: var(--mineral); padding: 70px 0 62px; position: relative; overflow: hidden; }
.hub-topo::before { content: ""; position: absolute; inset: -10% -10% 0 30%;
  background: repeating-linear-gradient(65.2deg, rgba(230,233,231,.05) 0 1px, transparent 1px 72px);
  -webkit-mask: radial-gradient(90% 90% at 80% 10%, #000, transparent 75%); mask: radial-gradient(90% 90% at 80% 10%, #000, transparent 75%); }
.hub-topo .w { position: relative; }
.hub-topo .rot { color: var(--aco-t); margin-bottom: 18px; }
.hub-topo h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -.032em; line-height: 1.05; max-width: 17ch; color: #fff; text-wrap: balance; }
.hub-topo h1 em { font-style: normal; color: var(--aco); }
.hub-topo__sub { margin-top: 18px; max-width: 58ch; color: var(--prata); font-size: 1.05rem; }

.destaque { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--linha); }
.destaque__tit { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.16; margin: 14px 0; text-wrap: balance; }
.destaque__tit a:hover, .card__tit a:hover, .linha-post__tit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.destaque__res { color: var(--t2); max-width: 52ch; margin-bottom: 22px; }

.frentes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.frente { display: flex; align-items: center; gap: 14px; background: var(--branco); border: 1px solid var(--linha); padding: 18px; border-radius: 2px; position: relative; transition: border-color .3s var(--e), transform .3s var(--e); }
.frente::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--cor); }
.frente:hover { border-color: color-mix(in srgb, var(--cor) 45%, transparent); transform: translateY(-2px); }
.frente i { width: 26px; height: 26px; flex: none; background: var(--cor); -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }
.frente span { font-weight: 500; }
.frente small { margin-left: auto; font-size: .78rem; color: var(--t3); font-variant-numeric: tabular-nums; }
.frente--vazia { opacity: .6; }
.frente--vazia:hover { transform: none; border-color: var(--linha); }

.grade3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.card__capa { display: block; margin-bottom: 14px; }
.card__tit { font-size: 1.08rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.32; margin: 8px 0; text-wrap: balance; }

/* ============================ NEWSLETTER ============================ */
.news { background: var(--navy); color: var(--prata); border-radius: 2px; padding: 22px; }
.news__tit { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--cor) 45%, #fff); margin-bottom: 8px; }
.news__txt p { font-size: .9rem; margin-bottom: 14px; }
.news__form { display: flex; flex-wrap: wrap; gap: 8px; }
.campo { flex: 1; min-width: 180px; background: rgba(230,233,231,.07); border: 1px solid rgba(230,233,231,.24); color: var(--mineral); font: inherit; font-size: .88rem; padding: 12px 14px; border-radius: 2px; }
.campo::placeholder { color: rgba(185,192,189,.75); }
select.campo { flex: 0 1 210px; min-width: 150px; color-scheme: dark; cursor: pointer; }
.news__ok, .news__erro { display: none; flex-basis: 100%; font-size: .84rem; margin: 6px 0 0; }
.news__form.success .news__ok { display: block; color: #fff; }
.news__form.error .news__erro { display: block; color: #F2B8B5; }
.news__form.loading .btn-s { opacity: .6; pointer-events: none; }
.news--faixa { display: grid; grid-template-columns: 1fr minmax(320px, 580px); gap: 30px; align-items: center; border-radius: 0; padding: 44px max(32px, calc((100% - var(--largura)) / 2 + 32px)); }
.news--faixa .news__tit { font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; text-transform: none; color: #fff; }
.news--faixa .news__txt p { margin: 0; }

/* ============================ FRENTE ============================ */
.fr-topo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 92% 0%, color-mix(in srgb, var(--cor) 38%, transparent), transparent 70%); pointer-events: none; }
.fr-topo .w { position: relative; z-index: 1; }
.fr-topo .rot { color: color-mix(in srgb, var(--cor) 45%, #fff); margin-bottom: 14px; }
.fr-topo h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: #fff; max-width: 20ch; text-wrap: balance; }
.fr-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.fr-dono { display: flex; align-items: center; gap: 14px; flex: none; background: rgba(230,233,231,.05); border: 1px solid var(--linha-c); padding: 14px 18px; border-radius: 2px; transition: border-color .3s var(--e); }
.fr-dono:hover { border-color: rgba(230,233,231,.4); }
.fr-dono img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.fr-dono span { display: block; color: #fff; font-weight: 500; font-size: .94rem; }
.fr-dono small { display: block; color: var(--prata); font-size: .78rem; }
.autor-topo { display: flex; align-items: center; gap: 22px; }
.autor-topo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.autor-topo h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; }
.autor-topo .rot { color: var(--aco-t); margin-bottom: 8px; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.filtros a { font-size: .8rem; padding: 8px 14px; border: 1px solid var(--linha); border-radius: 2px; color: var(--t2); transition: border-color .3s var(--e), color .3s var(--e); }
.filtros a:hover { color: var(--texto); border-color: var(--cor); }
.filtros a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

.fr-corpo { display: grid; grid-template-columns: 1fr 300px; gap: 52px; padding-block: 40px 60px; }
.lista { padding-block: 10px 50px; }
.fr-corpo .lista { padding: 0; }
.linha-post { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--linha); }
.linha-post:first-child { padding-top: 0; }
.linha-post__tit { font-size: 1.22rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.28; margin: 8px 0; text-wrap: balance; }
.linha-post__res { color: var(--t2); font-size: .94rem; max-width: 60ch; margin-bottom: 10px; }

.lateral { display: grid; gap: 18px; align-content: start; }
.caixa { border: 1px solid var(--linha); padding: 22px; border-radius: 2px; }
.caixa__tit { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cor); margin-bottom: 12px; }
.caixa p { font-size: .9rem; color: var(--t2); margin-bottom: 12px; }
.caixa__lista li { border-bottom: 1px solid var(--linha); }
.caixa__lista li:last-child { border-bottom: 0; }
.caixa__lista a { display: flex; justify-content: space-between; padding: 10px 0; font-size: .9rem; }
.caixa__lista a::after { content: "→"; color: var(--cor); }
.caixa__lista a:hover { color: var(--cor); }
.caixa__link { font-size: .84rem; font-weight: 500; color: var(--cor); }
.caixa__link:hover { text-decoration: underline; }

.paginacao { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; font-size: .88rem; }
.paginacao a { color: var(--inst); font-weight: 500; }
.paginacao a:hover { text-decoration: underline; }
.paginacao__pos { color: var(--t3); }

/* ============================ ARTIGO ============================ */
.art-cab { max-width: 824px; padding-top: 44px; }
.art-cab h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px; text-wrap: balance; }
.art-lead { font-size: 1.2rem; color: var(--t2); line-height: 1.55; }
.art-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.art-capa { max-width: 1104px; margin-top: 34px; }
.art-capa .capa { aspect-ratio: 21 / 8; }
.art-corpo { display: grid; grid-template-columns: 1fr minmax(0, 700px) 1fr; gap: 40px; padding-block: 46px 30px; }
.art-corpo > .texto { grid-column: 2; }
.art-corpo--simples { grid-template-columns: 1fr minmax(0, 700px) 1fr; }
.toc { grid-column: 1; justify-self: end; width: 210px; position: sticky; top: 100px; align-self: start; }
.toc__tit { font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--t3); margin-bottom: 10px; }
.toc a { display: block; font-size: .84rem; color: var(--t2); padding: 6px 0 6px 12px; border-left: 1px solid var(--linha); }
.toc a:hover { color: var(--texto); border-left-color: var(--cor); }

/* Texto do artigo: coluna de 68 caracteres, entrelinha 1,72. */
.texto { font-size: 1.08rem; line-height: 1.72; max-width: 68ch; min-width: 0; }
.gh-content > * + * { margin-top: 22px; }
.gh-content h2 { font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-top: 40px; }
.gh-content h3 { font-size: 1.24rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin-top: 32px; }
.gh-content a { color: var(--cor); text-decoration: underline; text-underline-offset: 3px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: 8px; }
.gh-content blockquote { margin-inline: 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--cor); font-size: 1.3rem; line-height: 1.4; letter-spacing: -.015em; }
.gh-content hr { border: 0; height: 1px; background: var(--linha); margin-block: 40px; }
.gh-content code { font-size: .9em; background: var(--papel); padding: .1em .35em; border-radius: 2px; }
.gh-content pre { background: var(--navy-2); color: var(--mineral); padding: 20px; border-radius: 2px; overflow-x: auto; font-size: .88rem; }
.gh-content pre code { background: none; padding: 0; }
.gh-content figure { margin-inline: 0; }
.gh-content figcaption { font-size: .84rem; color: var(--t3); margin-top: 10px; text-align: center; }
.gh-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .92rem; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--linha); padding: 10px 14px; text-align: left; }

/* Cartões do editor do Ghost. As classes kg-width-* são exigidas pelo Ghost:
   imagem "larga" e "tela cheia" escapam da coluna de leitura. */
.kg-width-wide { position: relative; width: min(1100px, 100vw - 64px); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }
.kg-image { margin-inline: auto; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }

.cta-art { margin-top: 34px; background: var(--navy); color: var(--prata); padding: 26px 28px; border-radius: 2px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.cta-art b { display: block; color: #fff; font-weight: 500; font-size: 1.08rem; margin-bottom: 4px; }
.cta-art span { font-size: .92rem; }
.cta-art a { background: var(--cor); color: #fff; font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; padding: 13px 18px; border-radius: 2px; white-space: nowrap; text-decoration: none; }
.cta-art a:hover { filter: brightness(1.12); }
.bio { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center; padding: 24px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); margin-top: 34px; }
.bio img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.bio a { color: var(--texto); text-decoration: none; }
.bio b { font-weight: 500; }
.bio small { display: block; font-size: .82rem; color: var(--t3); }
.bio p { font-size: .95rem; color: var(--t2); margin-top: 6px; }
.rel { padding: 48px 0 60px; background: var(--papel); }

.erro { padding-block: 90px 110px; }
.erro .rot { color: var(--inst); margin-bottom: 14px; }
.erro h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.03em; }
.erro .topo__sub { color: var(--t2); }
.erro__acoes { margin-top: 28px; }

/* ============================ ANÁLISE (custom-analise.hbs) ============================ */
.analise-selos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.selo-tema { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cor); border: 1px solid var(--cor); padding: 3px 9px; border-radius: 2px; }
/* Autor sem foto: o símbolo na cor da frente. */
.autor__simbolo { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); }
.autor__simbolo::after { content: ""; position: absolute; inset: 11px; background: color-mix(in srgb, var(--cor) 55%, #fff); -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }

/* Cabeçalho e texto na mesma coluna: o título começa onde o texto começa. */
.art--analise .art-cab, .analise-corpo { max-width: 764px; }
.analise-corpo { padding-block: 40px 30px; }
.texto--analise { max-width: none; counter-reset: secao; }
.texto--analise > p:first-of-type { font-size: 1.2rem; line-height: 1.66; color: var(--texto); }

/* Seções numeradas sozinhas: 01, 02… A seção seguida de perguntas vira "?". */
.texto--analise > h2 { counter-increment: secao; }
.texto--analise > h2::before { content: counter(secao, decimal-leading-zero); margin-right: 12px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; vertical-align: 3px; color: var(--cor); }
.texto--analise > h2:has(+ .kg-toggle-card) { counter-increment: none; }
.texto--analise > h2:has(+ .kg-toggle-card)::before { content: "?"; }

/* Lista numerada do editor = checklist. */
.texto--analise > ol { list-style: none; padding: 0; counter-reset: passo; display: grid; gap: 14px; }
.texto--analise > ol > li { counter-increment: passo; display: flex; gap: 14px; margin: 0; }
.texto--analise > ol > li::before { content: counter(passo); flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border: 1px solid var(--linha); border-radius: 50%; background: var(--papel); font-size: .72rem; font-weight: 600; color: var(--cor); }

/* Cartão Toggle do editor = pergunta frequente. */
.texto--analise > .kg-toggle-card { margin-top: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--linha); border-radius: 0; background: none; box-shadow: none; }
.texto--analise > h2 + .kg-toggle-card { margin-top: 18px; border-top: 1px solid var(--linha); }
.texto--analise .kg-toggle-heading-text { font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.texto--analise .kg-toggle-content p { font-size: .98rem; color: var(--t2); }

/* Painel de indicadores (cartão HTML .painel) — mais largo que o texto. */
.texto--analise .painel { position: relative; width: min(1040px, 100vw - 64px); margin-left: 50%; transform: translateX(-50%); padding: 22px; border: 1px solid var(--linha); border-radius: 2px; background: var(--papel); }
.painel__cab { margin-bottom: 16px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.painel__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px; border: 1px solid var(--linha); border-radius: 2px; background: var(--branco); }
.kpi__rot { min-height: 2.8em; margin-bottom: 10px; font-size: .76rem; line-height: 1.4; color: var(--t3); }
.kpi__valor { margin-bottom: 10px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--texto); }
.kpi__status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.kpi__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kpi__status--ok      { color: #0E5B45; background: #E6F0EC; }
.kpi__status--atencao { color: #7A5A12; background: #F3ECDC; }
.kpi__status--critico { color: #93372E; background: #F3E4E1; }

/* Números em destaque (cartão HTML .numeros). */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--linha); border-radius: 2px; background: var(--linha); }
.numeros > div { padding: 22px 20px; background: var(--branco); }
.numeros b { display: block; margin-bottom: 10px; font-size: 2rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--cor); }
.numeros span { display: block; font-size: .84rem; line-height: 1.5; color: var(--t3); }

/* Cartões de solução (cartão HTML .solucoes). */
.solucoes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.solucoes > div { position: relative; padding: 20px 22px; border: 1px solid var(--linha); border-radius: 2px; }
.solucoes > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--cor); }
.solucoes h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.solucoes p { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--t2); }

/* Faixa de contato no fim do artigo (cartão HTML .cta-faixa) — largura toda. */
.texto--analise .cta-faixa { position: relative; width: 100vw; margin-top: 56px; margin-left: 50%; transform: translateX(-50%); padding: 52px max(24px, calc((100vw - 700px) / 2)); background: var(--navy); color: var(--prata); }
.cta-faixa__rot { margin-bottom: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--cor) 45%, #fff); }
.cta-faixa h3 { max-width: 24ch; margin: 0 0 14px; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.cta-faixa p { max-width: 52ch; margin: 0 0 24px; font-size: 1rem; line-height: 1.6; color: var(--prata); }
.cta-faixa__acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-faixa__acoes a { padding: 13px 20px; border-radius: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: #fff; color: var(--navy); }
.cta-faixa__acoes a + a { background: none; color: #fff; border: 1px solid rgba(230,233,231,.34); }
.cta-faixa__contato { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--linha-c); font-size: .84rem; }
.cta-faixa__contato b { font-weight: 500; color: #fff; }

/* Fontes e aviso no pé do artigo. */
.fontes { padding-top: 20px; border-top: 1px solid var(--linha); font-size: .8rem; line-height: 1.7; color: var(--t3); }
.fontes b { color: var(--t2); }
.aviso-legal { font-size: .78rem; line-height: 1.65; color: var(--t3); }

@media (max-width: 900px) { .painel__kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .numeros, .solucoes { grid-template-columns: 1fr; }
  .painel__kpis { grid-template-columns: 1fr; }
  .texto--analise .cta-faixa { padding-block: 40px; }
}

/* ============================ RODAPÉ ============================ */
.rodape { background: var(--navy-2); color: var(--prata); padding: 56px 0 30px; font-size: .9rem; }
.rodape__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.rodape__marca img { width: 128px; margin-bottom: 16px; }
.rodape__marca p { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.rodape__tit { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--aco-t); margin-bottom: 14px; }
.rodape li { margin-bottom: 8px; }
.rodape li a { display: inline-flex; align-items: center; gap: 9px; }
.rodape li a:hover { color: #fff; text-decoration: underline; }
.rodape__frentes { columns: 2; column-gap: 24px; }
.rodape__frentes li { display: flex; align-items: center; gap: 9px; break-inside: avoid; }
.rodape li i { width: 10px; height: 10px; background: var(--cor); -webkit-mask: var(--simbolo) no-repeat center / contain; mask: var(--simbolo) no-repeat center / contain; }
.rodape__fim { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linha-c); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .78rem; color: var(--t3); }

/* ============================ RESPONSIVO ============================ */
@media (max-width: 1080px) {
  .toc { display: none; }
  .art-corpo, .art-corpo--simples { grid-template-columns: minmax(0, 1fr); }
  .art-corpo > .texto { grid-column: 1; margin-inline: auto; }
}
@media (max-width: 900px) {
  .s-links, .s-btn { display: none; }
  .s-menu { display: block; }
  .s-nav__in { height: 64px; }
  .s-logo img { width: 118px; }
  .destaque, .fr-corpo, .news--faixa { grid-template-columns: 1fr; }
  .destaque { gap: 22px; padding-block: 36px; }
  .frentes, .grade3 { grid-template-columns: 1fr 1fr; }
  .fr-linha { flex-direction: column; align-items: flex-start; }
  .rodape__in { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .w { padding-inline: 20px; }
  .frentes, .grade3 { grid-template-columns: 1fr; }
  .linha-post { grid-template-columns: 1fr; gap: 14px; }
  .hub-topo { padding: 46px 0 42px; }
  .sec { padding: 40px 0; }
  .cta-art { grid-template-columns: 1fr; }
  .news--faixa { padding: 34px 20px; }
  .texto { font-size: 1rem; }
}
