/* Corretor Inevitável — tokens do design system oficial */
:root {
  --petroleo: #183D4A; --lavanda: #B8B2C8; --offwhite: #F4F0E9; --ameixa: #4E2A4F; --argila: #D4967A;
  --texto-suave: #4F6670; --texto-suave-neg: #C3C9C8; --linha: #CFCAC2; --linha-neg: #46636D;
  --borda: #86847F; --borda-neg: #7F9AA3;
  --sans: Inter, system-ui, sans-serif;
  --impacto: Archivo, Inter, system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --didone: "Antic Didone", "Cormorant Garamond", Georgia, serif;
  --largura: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--offwhite); color: var(--petroleo); font-family: var(--sans); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--petroleo); text-underline-offset: 4px; }
a:hover { color: var(--ameixa); }
:focus-visible { outline: 2px solid var(--petroleo); outline-offset: 2px; }
.escuro :focus-visible { outline-color: var(--lavanda); }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 16px; z-index: 10; background: var(--offwhite); padding: 8px 16px; }

.wrap { max-width: var(--largura); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.escuro { background: var(--petroleo); color: var(--offwhite); }
.escuro a { color: var(--offwhite); }
.rotulo { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); }
.escuro .rotulo { color: var(--lavanda); }
.impacto { font-family: var(--impacto); font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; }
.leve { font-weight: 300; }
.editorial { font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.linha-fina { margin: 0; font-size: 21px; font-weight: 300; line-height: 1.55; max-width: 36em; }

/* Botões (componente Botao) */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; font: 400 17px/22px var(--sans); letter-spacing: .02em; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.botao--primario { background: var(--petroleo); color: var(--offwhite) !important; }
.botao--primario:hover { opacity: .86; }
.botao--secundario { background: transparent; color: var(--petroleo); border-color: var(--borda); }
.botao--secundario:hover { border-color: var(--petroleo); }
.escuro .botao--secundario { color: var(--offwhite); border-color: var(--borda-neg); }
.escuro .botao--secundario:hover { border-color: var(--offwhite); }
.botao--destaque { background: var(--lavanda); color: var(--petroleo) !important; }
.botao--destaque:hover { background: var(--argila); }
.botoes { display: flex; flex-wrap: wrap; gap: 14px; }

/* Aviso e cabeçalho */
.aviso { background: var(--lavanda); color: var(--petroleo); font-size: 16px; line-height: 1.4; }
.aviso .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.aviso a { color: var(--petroleo) !important; font-weight: 600; }
.topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.topo__logo img { height: 72px; width: auto; }
.topo nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 18px; }
.topo nav a { text-decoration: none; }
.topo nav a[aria-current="page"] { text-decoration: underline; }
.claro-topo { border-bottom: 1px solid var(--linha); }

/* Abertura */
.abertura { display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid var(--linha-neg); }
.abertura__texto { flex: 1 1 600px; min-width: 0; padding: 80px 56px 96px max(32px, calc((100vw - var(--largura)) / 2 + 32px)); display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.abertura h1 { margin: 0; font-size: clamp(44px, 5.6vw, 86px); line-height: 1; letter-spacing: -.015em; }
.abertura h1 .editorial { font-size: 1.16em; color: var(--argila); }
.abertura__texto p.linha-fina { font-size: 23px; max-width: 30em; }
.abertura__foto { flex: 1 1 440px; min-width: 0; min-height: 560px; position: relative; }
.abertura__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.faixa-categorias { background: var(--argila); color: var(--petroleo); }
.faixa-categorias .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; padding-top: 22px; padding-bottom: 22px; font-family: var(--impacto); font-stretch: 112%; font-weight: 700; font-size: 19px; }
.faixa-categorias a { color: var(--petroleo); text-decoration: none; }
.faixa-categorias a:hover { text-decoration: underline; }

/* Seções */
.secao { padding-top: 88px; padding-bottom: 88px; }
.duas-colunas { display: flex; flex-wrap: wrap; gap: 56px; }
.duas-colunas > :first-child { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.duas-colunas > :last-child { flex: 1 1 560px; min-width: 0; }
.frentes { background: var(--lavanda); }
.frentes__grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.frentes__item { border-top: 1px solid var(--petroleo); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.frentes__item h3 { margin: 0; font-size: 34px; line-height: 1.1; }
.frentes__item p { margin: 0; }
.biblioteca__topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; }
.biblioteca__topo > div { flex: 1 1 560px; display: flex; flex-direction: column; gap: 16px; }
.selos { display: flex; flex-wrap: wrap; gap: 10px; }
.selo { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; background: var(--lavanda); color: var(--petroleo); }
.grade-cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--linha-neg); border: 1px solid var(--linha-neg); }
.grade-cat a { background: var(--petroleo); text-decoration: none; padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; }
.grade-cat a:hover { border-color: var(--lavanda); }
.grade-cat strong { font-family: var(--impacto); font-stretch: 112%; font-weight: 700; font-size: 23px; line-height: 1.2; }
.grade-cat span { font-size: 17px; line-height: 1.55; color: var(--texto-suave-neg); }
.lista-num { margin: 0; padding: 0; list-style: none; }
.lista-num li { display: flex; gap: 28px; padding: 24px 0; border-top: 1px solid var(--linha); }
.lista-num li:last-child { border-bottom: 1px solid var(--linha); }
.lista-num .num { font-family: var(--impacto); font-stretch: 112%; font-weight: 800; font-size: 36px; line-height: 1; color: var(--ameixa); min-width: 56px; }
.quem { background: var(--ameixa); color: var(--offwhite); }
.quem__grade { display: flex; flex-wrap: wrap; align-items: stretch; }
.quem__foto { flex: 1 1 420px; min-width: 0; min-height: 520px; position: relative; }
.quem__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 0; }
.quem__texto { flex: 1 1 480px; min-width: 0; padding: 80px max(32px, calc((100vw - var(--largura)) / 2 + 32px)) 80px 64px; display: flex; flex-direction: column; gap: 22px; }
.quem__texto h2 { margin: 0; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.02; }
.quem__texto p { margin: 0; font-size: 20px; line-height: 1.65; }
.quem .rotulo { color: var(--lavanda); }
.duvidas details { border-bottom: 1px solid var(--linha); padding: 22px 0; }
.duvidas summary { cursor: pointer; font-family: var(--impacto); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.3; }
.duvidas details p { margin: 14px 0 0; }
.duvidas > div:last-child { border-top: 1px solid var(--linha); }

/* Rodapé */
.rodape { padding-top: 80px; padding-bottom: 40px; }
.rodape__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.rodape__cta h2 { flex: 1 1 560px; margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.rodape__base { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 36px; border-top: 1px solid var(--linha-neg); font-size: 16px; color: var(--texto-suave-neg); }
.rodape__base img { height: 56px; width: auto; }
.rodape__base h2 { margin: 0 0 12px; font: 500 13px/18px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lavanda); }
.rodape__base ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rodape__legal { margin-top: 36px; font-size: 15px; color: var(--texto-suave-neg); }

/* Blog */
.blog-topo { padding-top: 72px; padding-bottom: 48px; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 18px; }
.blog-topo h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.filtros a { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--borda); text-decoration: none; }
.filtros a[aria-current="page"] { background: var(--petroleo); color: var(--offwhite); border-color: var(--petroleo); }
.grade-artigos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 32px; padding-top: 56px; padding-bottom: 96px; }
.cartao { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--linha); background: var(--offwhite); transition: box-shadow .2s, border-color .2s; }
.cartao:hover { border-color: var(--borda); box-shadow: 0 1px 2px rgba(23,23,23,.06), 0 2px 8px rgba(23,23,23,.05); }
.cartao img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--lavanda); }
.cartao__sem-imagem { aspect-ratio: 4 / 3; background: var(--lavanda); display: flex; align-items: flex-end; padding: 24px; font-family: var(--impacto); font-stretch: 112%; font-weight: 800; font-size: 28px; line-height: 1.1; }
.cartao__corpo { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cartao h2 { margin: 0; font-family: var(--impacto); font-stretch: 112%; font-weight: 700; font-size: 24px; line-height: 1.25; }
.cartao p { margin: 0; font-size: 17px; line-height: 1.55; }
.meta { font-size: 15px; color: var(--texto-suave); }
.vazio { padding: 80px 0 120px; max-width: 40em; }
.paginacao { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 96px; }

/* Artigo */
.trilha { font-size: 15px; color: var(--texto-suave); padding-top: 32px; }
.trilha ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trilha li + li::before { content: "/"; margin-right: 8px; }
.artigo { max-width: 760px; margin: 0 auto; padding: 40px 32px 72px; }
.artigo header { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.artigo h1 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; }
.artigo .linha-fina { font-size: 22px; }
.artigo__capa { margin: 0 0 40px; }
.artigo__capa img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.resumo { background: var(--lavanda); padding: 28px 32px; margin: 0 0 44px; }
.resumo h2 { margin: 0 0 10px; font: 500 13px/18px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.resumo p { margin: 0; font-size: 20px; line-height: 1.6; }
.conteudo { font-size: 20px; line-height: 1.75; }
.conteudo h2 { font-family: var(--impacto); font-stretch: 112%; font-weight: 800; font-size: 32px; line-height: 1.15; margin: 56px 0 16px; }
.conteudo h3 { font-family: var(--impacto); font-stretch: 112%; font-weight: 700; font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
.conteudo p, .conteudo ul, .conteudo ol { margin: 0 0 22px; }
.conteudo li { margin-bottom: 8px; }
.conteudo blockquote { margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); font-family: var(--didone); font-size: 28px; line-height: 1.35; }
.conteudo blockquote p { margin: 0; }
.conteudo img { margin: 32px 0; }
.conteudo table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 18px; display: block; overflow-x: auto; }
.conteudo th, .conteudo td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linha); }
.conteudo th { font-weight: 600; }
.artigo__bloco { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--linha); }
.artigo__bloco h2 { margin: 0 0 18px; font-size: 28px; }
.fontes { font-size: 17px; padding-left: 20px; }
.autoria { display: flex; gap: 24px; align-items: flex-start; }
.autoria img { width: 96px; height: 96px; border-radius: 9999px; object-fit: cover; object-position: 72% 0; flex: none; }
.autoria p { margin: 4px 0 0; font-size: 17px; }
.cta-biblioteca { background: var(--petroleo); color: var(--offwhite); padding: 36px; margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.cta-biblioteca p { margin: 0; }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .topo__logo img { height: 48px; }
  .abertura__texto { padding: 56px 24px 64px; }
  .abertura__foto, .quem__foto { min-height: 440px; }
  .quem__texto { padding: 56px 24px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .artigo { padding-left: 24px; padding-right: 24px; }
}
