/* A página do texto (Tim, 20/10/2026): o corpo na coluna de leitura. O topo na largura da foto, alinhado à esquerda com
   ela e com o corpo (Tim, 22/10/2026); a linha fina para antes, na medida de leitura. */
.ed-cabeca { margin: 8px 0 32px; }
.ed-titulo { max-width: 960px; margin: 0; font: 600 44px/1.1 var(--font-heading); letter-spacing: -0.02em;
             color: var(--text-primary); text-wrap: balance; }
.ed-abertura { max-width: 760px; margin: 16px 0 0; font-size: 21px; line-height: 1.45; color: var(--text-secondary); }
.ed-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
             margin-top: 28px; }
.ed-quem { display: flex; align-items: center; gap: 12px; }
.ed-quem p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.ed-autor { font-weight: 600; color: var(--text-primary); }
.ed-foto { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* compartilhar: o rótulo e só os ícones, sem círculo, na cor do texto (Tim, 22/10/2026: opção B); no hover, o fundo */
.ed-compartilhar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.ed-compartilhar-rotulo { margin-right: 8px; font: 500 14px/1.2 var(--font-body); color: var(--text-secondary); }
.ed-icone { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 34px; height: 34px;
            padding: 0; border: 0; border-radius: 50%; background: none;
            color: var(--text-secondary); cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.ed-icone svg { width: 19px; height: 19px; }
.ed-icone:hover { background: var(--bg-subtle); color: var(--text-primary); }
.ed-icone:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--focus-ring); }
.ed-icone.ed-copiado { color: var(--brand); }
.ed-compartilhar [hidden] { display: none; }
.ed-fim { margin-top: 40px; }
.ed-aviso { margin: 14px 0 0; font-size: 14px; }
.ed-aviso a { color: var(--text-link); }

.ed-figura { margin: 0 auto 40px; }
.ed-figura picture { display: block; }
.ed-figura img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg);
                 background: var(--surface-sunken); }
.ed-figura figcaption { max-width: 680px; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.ed-figura figcaption span { color: var(--text-muted); }

/* a coluna de leitura à esquerda, com o título, e a coluna da direita, a mesma na Notícia, na Análise e nos textos
   legais (_lateral.html, Tim 22/10/2026). O que mora em .ed-lateral-dentro (o sumário e a newsletter) acompanha a
   rolagem, abaixo do topo fixo. A mais lidas sozinha ocupa a coluna e acompanha a rolagem; com a newsletter embaixo,
   sobe com o texto */
.ed-miolo { display: grid; grid-template-columns: minmax(0, 680px); }
.ed-com-lado { grid-template-columns: minmax(0, 680px) 300px; column-gap: 40px; justify-content: space-between; }
.ed-lateral { display: flex; flex-direction: column; gap: 24px; }
.ed-lateral-dentro { display: grid; gap: 28px; }
.ed-mais-lidas-dentro, .ed-lateral-dentro { position: sticky; top: calc(var(--altura-do-header) + 24px); }
.ed-mais-lidas:last-child { flex-grow: 1; }
.ed-sumario { font-size: 14px; }
.ed-sumario p { margin: 4px 0 10px; font: 600 15px/1.3 var(--font-heading); color: var(--text-primary); }
.ed-sumario ol { margin: 0; padding: 0; list-style: none; }
.ed-sumario a { display: block; padding: 6px 0; line-height: 1.35; color: var(--text-secondary); text-decoration: none; }
.ed-sumario a:hover { color: var(--text-primary); }
/* na tela estreita, o sumário recolhido, depois dos pontos; o seletor vence o details da casca (marca.css) */
details.ed-sumario-curto, details.ed-sumario-curto[open] { display: none; margin: 0 0 32px; padding: 0; border: 0;
                                                           border-radius: var(--r-lg); background: var(--bg-subtle); }
.ed-sumario-curto summary { display: flex; justify-content: space-between; padding: 14px 18px; list-style: none;
                            font: 600 15px/1.2 var(--font-heading); color: var(--text-primary); cursor: pointer; }
.ed-sumario-curto summary::after { content: '+'; font-size: 18px; line-height: 18px; color: var(--text-secondary); }
.ed-sumario-curto[open] summary::after { content: '\2212'; }
/* cada link com 29 px de toque e encostado no seguinte: o espaço entre os itens virou enchimento, e o fim da lista
   devolve os 4 px. Sem margem negativa em cima: o toque do primeiro link invadia o do summary (varredura, WCAG 2.5.8,
   22/10/2026) */
.ed-sumario-curto ol { margin: 0; padding: 0 18px 10px 36px; font-size: 15px; line-height: 1.4; }
.ed-sumario-curto a { display: block; padding-block: 4px; color: var(--text-secondary); text-decoration: none; }

.ed-pontos { margin: 0 0 36px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--brand-subtle); }
.ed-pontos h2 { margin: 0 0 10px; font: 600 16px/1.3 var(--font-heading); color: var(--brand-text-on-subtle); }
.ed-pontos ul { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.55; color: var(--text-primary); }
.ed-pontos li + li { margin-top: 6px; }

.ed-corpo { font-size: 18px; line-height: 1.75; color: var(--text-primary); }
.ed-corpo > :first-child { margin-top: 0; }
.ed-corpo p { margin: 0 0 1.2em; }
.ed-corpo h2 { margin: 48px 0 12px; font: 600 26px/1.25 var(--font-heading); letter-spacing: -0.01em;
               scroll-margin-top: calc(var(--altura-do-header) + 24px); }
.ed-corpo h3 { margin: 32px 0 8px; font: 600 20px/1.3 var(--font-heading); }
.ed-corpo ul, .ed-corpo ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.ed-corpo li { margin-bottom: .4em; }
.ed-corpo a { color: var(--text-link); }
.ed-corpo blockquote { margin: 36px 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--brand);
                       font: 500 24px/1.4 var(--font-heading); color: var(--text-primary); }
/* o grafico no corpo (graficos.py): o titulo e o do cartao da plataforma, e nao o intertitulo do texto */
.ed-grafico { margin: 36px 0; line-height: 1.5; }
.ed-corpo .ed-grafico .wb-cartao-titulo { margin: 0; font-weight: 500; }
.ed-grafico .gr { margin-bottom: 0; }

.ed-secao { margin-top: 48px; }
/* o texto só para assinante (Tim, 22/10/2026, sobre a referência dele): o começo do corpo, que some, e o aviso */
.ed-previa { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.ed-fechado { margin: 8px 0 56px; text-align: center; }
.ed-fechado-icone { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
                    background: var(--brand-subtle); color: var(--brand); }
.ed-fechado-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
                        stroke-linejoin: round; }
.ed-fechado h2 { margin: 0 0 8px; font: 600 24px/1.25 var(--font-heading); letter-spacing: -0.01em; color: var(--text-primary);
                 text-wrap: balance; }
.ed-fechado p { max-width: 440px; margin: 0 auto; font-size: 16px; line-height: 1.55; color: var(--text-secondary); text-wrap: balance; }
.ed-fechado .btn { margin-top: 24px; }  /* o botão do design system, sem medida própria */
.ed-fechado .ed-fechado-entrar { margin-top: 16px; font-size: 14px; }
.ed-fechado .ed-fechado-aviso { margin-top: 24px; font-size: 14px; }  /* a frase do aviso do topo, no lugar do botão */
.ed-fechado-entrar a { font-weight: 600; color: var(--text-primary); }
.ed-errata, .ed-original { padding: 16px 20px 18px; border-radius: var(--r-md); background: var(--bg-subtle); }
.ed-errata { scroll-margin-top: calc(var(--altura-do-header) + 24px); }
.ed-errata p, .ed-original p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.ed-original a { font-weight: 500; color: var(--text-link); }
.ed-sobre-autor { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.ed-sobre-autor img, .ed-sobre-autor .ed-foto-vazia { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.ed-sobre-autor p { margin: 0; }
.ed-sobre-autor .ed-bio { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-primary); }
/* entre o texto e o leia também, a linha fina da lista de Notícias (Tim, 22/10/2026) */
.ed-leia { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.ed-leia .ed-secao-h { margin-bottom: 24px; }

/* as mais lidas: a caixa cinza, como a da matéria original, com o número na cor da marca */
.ed-mais-lidas-dentro { padding: 20px 24px 8px; border-radius: var(--r-lg); background: var(--bg-subtle); }
.ed-mais-lidas .ed-secao-h { margin-bottom: 4px; }
.ed-mais-lidas ol { margin: 0; padding: 0; list-style: none; counter-reset: lida; }
.ed-mais-lidas li { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 14px 0; counter-increment: lida; }
.ed-mais-lidas li::before { content: counter(lida); font: 500 20px/1.15 var(--font-mono); color: var(--brand); }
.ed-mais-lidas a { font: 500 16px/1.35 var(--font-heading); color: var(--text-primary); text-decoration: none; }
.ed-mais-lidas a:hover { color: var(--text-link-hover); }
.ed-mais-lidas .ed-chapeu { display: block; margin-bottom: 4px; }

/* a newsletter: o cartão marinho, os campos brancos e o botão na cor da marca (Tim, 22/10/2026: opção C) */
.ed-news, .ed-contato-info { border-radius: var(--r-lg); background: var(--wb-blue-950); color: var(--on-brand); }
.ed-news { padding: 24px; }
.ed-news-h, .ed-contato-ok h2 { margin: 0 0 6px; font: 600 20px/1.2 var(--font-heading); letter-spacing: -0.01em; color: inherit; }
.ed-news-sub, .ed-news-aviso { font-size: 15px; line-height: 1.45; }
.ed-news-sub { margin: 0; color: rgba(255, 255, 255, .8); }
.ed-news-aviso { margin: 16px 0 0; font-weight: 500; }
.ed-news form { display: grid; gap: 10px; margin-top: 16px; }
.ed-news-campo { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: var(--r-md);
                 background: #fff; font: inherit; font-size: 15px; color: var(--wb-blue-1000); }
.ed-news-botao { min-height: 44px; border: 0; border-radius: var(--r-md); background: var(--brand); font: 600 15px/1 var(--font-body);
                 color: var(--on-brand); cursor: pointer; transition: background .16s var(--ease); }
.ed-news-botao:hover { background: var(--brand-hover); }
.ed-news-campo:focus-visible, .ed-news-botao:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ed-news-nota { margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.ed-news-nota a { color: inherit; }

/* o Contato (Tim, 22/10/2026, sobre as referências dele): o formulário em duas colunas, com os campos do design system e
   o nome dentro do campo; o e-mail no cartão da newsletter; as perguntas frequentes, com a linha fina entre elas */
.ed-contato-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-contato-form .field { max-width: none; }
.ed-contato-form :is(input, textarea) { box-sizing: border-box; }  /* o campo do design system soma o padding à largura */
.ed-contato-form select { border-radius: var(--r-md); }  /* o mesmo canto dos outros campos */
.ed-contato-form select:invalid { color: var(--text-muted); }  /* sem assunto escolhido, como o nome dentro dos campos */
.ed-contato-form option { color: var(--text-primary); }
.ed-contato-largo { grid-column: 1 / -1; }
.ed-contato-form textarea { display: block; min-height: 160px; resize: vertical; line-height: 1.5; }
.ed-contato-form .field [aria-invalid] { border-color: var(--wb-danger); }
.ed-contato-erro { margin: 6px 0 0; font-size: 13px; color: var(--wb-danger-text); }
.ed-contato-form .btn { margin-top: 8px; }
.ed-contato-ok { padding: 32px; border-radius: var(--r-lg); background: var(--wb-success-bg); color: var(--wb-success-text); }
.ed-contato-ok p { margin: 0 0 16px; color: var(--text-primary); }
/* o cartão marinho à esquerda, da altura do que traz (só o e-mail, Tim 26/10/2026), e as perguntas frequentes embaixo,
   na mesma grade */
.ed-contato, .ed-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.ed-contato-info { align-self: start; padding: 40px; }
.ed-contato-info h2 { margin: 0 0 12px; font: 600 28px/1.15 var(--font-heading); letter-spacing: -0.02em; color: inherit; }
.ed-contato-info > p { margin: 0 0 32px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.ed-contato-info ul { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.ed-contato-info li { display: flex; gap: 14px; }
.ed-contato-info svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--wb-blue-300); stroke-width: 2;
                       stroke-linecap: round; stroke-linejoin: round; }
.ed-contato-info li p { margin: 0; font-size: 15px; line-height: 1.5; }
.ed-contato-info strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.ed-contato-info a { font-size: 17px; font-weight: 600; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ed-faq { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--border); }  /* a linha fina, como a do leia */
.ed-faq-h { margin: 0; font: 600 36px/1.1 var(--font-heading); letter-spacing: -0.02em; color: var(--text-primary); }
.ed-faq-h + p { max-width: 340px; margin: 16px 0 0; text-wrap: pretty; font-size: 17px; line-height: 1.55; color: var(--text-secondary); }
.ed-faq details, .ed-faq details[open] { display: block; margin: 0; padding: 0; background: none; border-radius: 0; }  /* vence o da casca (marca.css) */
.ed-faq details + details { border-top: 1px solid var(--border); }  /* entre as perguntas, sem linha em cima */
.ed-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
                  list-style: none; font: 600 19px/1.35 var(--font-heading); color: var(--text-secondary); cursor: pointer; }
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: ''; flex: none; width: 16px; height: 16px;  /* o + que vira -, ao abrir */
                         background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
                                     linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; }
.ed-faq details[open] summary, .ed-faq summary:hover { color: var(--text-primary); }
.ed-faq details[open] summary::after { background-size: 16px 2px, 0 0; }
.ed-faq details[open] summary { padding-bottom: 14px; }
.ed-faq details p { max-width: 600px; margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }

@media (max-width: 1023px) {  /* uma coluna: o sumário recolhido antes do corpo; as mais lidas e a newsletter, depois */
  .ed-com-lado { grid-template-columns: minmax(0, 680px); }
  .ed-sumario { display: none; }
  details.ed-sumario-curto, details.ed-sumario-curto[open] { display: block; }
  .ed-lateral { gap: 0; }  /* o espaço vem de cada caixa: com o sumário escondido, a coluna vazia não ocupa lugar */
  .ed-mais-lidas, .ed-news { margin-top: 56px; }
  .ed-contato, .ed-faq { grid-template-columns: minmax(0, 1fr); }
  .ed-contato { gap: 32px; }
  .ed-faq { gap: 16px; margin-top: 48px; padding-top: 48px; }
}
@media (max-width: 600px) {
  .ed-titulo { font-size: 30px; }
  .ed-icone { width: 44px; height: 44px; }  /* para o dedo */
  .ed-original a { display: inline-block; padding-block: 4px; margin-block: -4px; }  /* 24 px de toque, como o da editoria */
  .ed-com-aparelho .ed-rede { display: none; }  /* o compartilhar do aparelho já leva ao X e ao e-mail */
  .ed-icone svg { width: 20px; height: 20px; }
  .ed-sumario-curto summary { padding-block: 15px; }  /* 44 px de altura, para o dedo */
  .ed-abertura { font-size: 18px; }
  .ed-figura { margin-inline: -16px; }
  .ed-figura img { border-radius: 0; }
  .ed-figura figcaption { padding: 0 16px; }
  .ed-corpo { font-size: 17px; }
  .ed-corpo blockquote { font-size: 20px; }
  .ed-contato-ok, .ed-contato-info { padding: 24px; }
  .ed-faq-h { font-size: 28px; }
  .ed-faq summary { font-size: 17px; }
  .ed-contato-form { grid-template-columns: 1fr; }
}

/* As perguntas no fim do texto (editorial/perguntas.py; maquete do Tim, 25/11/2026), em lista aberta */
.ed-perguntas { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.ed-perguntas h2 { margin-top: 0; }
.ed-perguntas dl { margin: 0; }
.ed-perguntas dt { margin: 28px 0 6px; font: 600 18px/1.4 var(--font-heading); }
.ed-perguntas dt:first-child { margin-top: 0; }
.ed-perguntas dd { margin: 0; }
@media (max-width: 600px) { .ed-perguntas dt { font-size: 17px; } }
