/* =====================================================================
   NOTÍCIAS: post, lista, categoria e busca (spec 20, lote D), redesenhadas em 10/11/2026 para ficar na
   altura da landing: o mesmo menu flutuante, os mesmos brilhos no topo, os mesmos cartões e botões.
   Carrega depois do lp.css, que traz as variáveis, o menu, os botões, o eyebrow e os cartões (.ncard).
   ===================================================================== */

a.eyebrow { text-decoration: none; }

/* ---------- Barra de leitura: embaixo do menu, cresce só com o texto do post ---------- */
.leitura { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); height: 4px; border-radius: 4px; background: rgba(127, 137, 160, .24); overflow: hidden; opacity: 0; transition: opacity .35s; pointer-events: none; }
.leitura.on { opacity: 1; }
.leitura i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb7185, #e72f57 55%, #f59e0b); transform: scaleX(var(--lp, 0)); transform-origin: 0 50%; }

/* ---------- Topo escuro (post, lista, categoria e busca) ---------- */
.post-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(112px, 13vw, 156px) 0 clamp(108px, 11vw, 144px); }
.post-hero .hero-bg { z-index: -1; }
.post-hero h1 { max-width: 980px; margin-top: 20px; font: 800 clamp(2.1rem, 4.7vw, 3.6rem)/1.06 var(--f-t); letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font: 600 .92rem/1.2 var(--f-b); color: var(--on-2); }
.post-meta li { display: inline-flex; align-items: center; gap: 9px; }
.post-meta .ico { width: 17px; height: 17px; color: #fda4af; }

/* ---------- Post: grade do texto, barra lateral, fim do texto e leituras relacionadas ---------- */
.post-main { position: relative; z-index: 1; margin-top: clamp(-84px, -7vw, -60px); padding-bottom: clamp(56px, 8vw, 96px); }
.post-grid { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "artigo" "cta" "mais" "lateral"; align-items: start; }
.post-artigo { --pad: clamp(22px, 4.6vw, 52px); grid-area: artigo; min-width: 0; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -40px rgba(11, 16, 32, .5); }
.post-lateral { grid-area: lateral; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.post-grid > .noticia-cta { grid-area: cta; margin-top: 0; }
.post-grid > .noticia-mais { grid-area: mais; margin-top: 0; }
@media (min-width: 1040px) {
  .post-grid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "artigo lateral" "cta cta" "mais mais"; }
  /* A barra lateral estica até o fim do texto; o cartão da lista de espera, último dela, fica preso na tela. */
  .post-lateral { align-self: stretch; }
}

/* Capa: o topo do cartão do texto. */
.noticia-capa { margin: 0; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--ink-2); }
.noticia-capa img { width: 100%; aspect-ratio: 16 / 8.2; max-height: 440px; object-fit: cover; }
.noticia-capa figcaption { padding: 10px var(--pad); background: #fff; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: .8rem; }
.noticia-capa figcaption a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.post-corpo { padding: var(--pad); }
.post-texto { color: var(--text-2); font-size: 1.06rem; line-height: 1.82; overflow-wrap: break-word; }
.post-abertura p { margin: 0; font-size: 1.2rem; line-height: 1.7; color: var(--text); }
.post-texto p { margin: 0 0 18px; }
.post-texto h2 { scroll-margin-top: 108px; display: flex; align-items: center; gap: 12px; margin: 48px 0 16px; font: 800 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--f-t); letter-spacing: -.025em; color: var(--text); text-wrap: balance; --lm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0.65L14.21 3.32L16.37 2.46L14.69 9.88L19.36 6.22L19.79 7.66L22.8 7.34L21.97 10.19L23.92 10.97L16.42 16.43L17.97 19.39L12.93 18.57L13.33 23.24L10.69 23.24L11.07 18.57L6.06 19.39L7.6 16.43L0.1 10.97L2.05 10.19L1.22 7.34L4.24 7.66L4.66 6.22L9.33 9.88L7.66 2.46L9.81 3.32Z'/%3E%3C/svg%3E"); }
.post-texto h2::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--maple); -webkit-mask: var(--lm) center / contain no-repeat; mask: var(--lm) center / contain no-repeat; }
.post-texto h3 { margin: 32px 0 10px; font: 700 1.2rem/1.3 var(--f-t); letter-spacing: -.01em; color: var(--text); }
.post-texto a { color: var(--maple-d); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.post-texto a:hover { color: var(--maple); text-decoration-thickness: 2px; }
.post-texto strong { color: var(--text); }
.post-texto ul, .post-texto ol { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.post-texto li { position: relative; padding-left: 30px; }
.post-texto ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--maple-l), var(--maple-d)); }
.post-texto ol { counter-reset: n; }
.post-texto ol li { counter-increment: n; }
.post-texto ol li::before { content: counter(n); position: absolute; left: 0; top: .3em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #fb3d63, #be123c); color: #fff; font: 800 .72rem/1 var(--f-t); }

/* Índice: aparece depois da abertura e leva a cada seção. */
.post-indice { margin: 28px 0 6px; padding: 20px 22px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.post-indice > p { margin: 0 0 12px; font: 800 .7rem/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--maple-d); }
.post-indice ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: ti; }
@media (min-width: 700px) { .post-indice ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.post-indice li { counter-increment: ti; }
.post-indice a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font: 600 .92rem/1.35 var(--f-b); color: var(--text-2); transition: background .2s, color .2s; }
.post-indice a::before { content: counter(ti, decimal-leading-zero); flex: none; font: 800 .78rem/1.7 var(--f-t); color: var(--maple); }
.post-indice a:hover { background: #fff; color: var(--text); }

/* Tabelas: caixa que rola de lado no celular, cabeçalho escuro, linhas alternadas e números à direita
   (as classes num, pos, neg e total vêm de gomaple_tabela_html(), no functions.php). */
.tabela-wrap { position: relative; margin: 26px 0 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 18px 38px -30px rgba(11, 16, 32, .4); }
.tabela-rola { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabela-rola:focus-visible { outline: 2px solid var(--maple-l); outline-offset: -2px; }
/* Sombra na borda direita enquanto houver mais tabela para rolar (o noticias.js liga o data-rola). */
.tabela-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px; background: linear-gradient(90deg, rgba(11, 16, 32, 0), rgba(11, 16, 32, .2)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tabela-wrap[data-rola="1"]::after { opacity: 1; }
.post-texto table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; line-height: 1.45; color: var(--text-2); }
@media (max-width: 700px) {
  /* No celular a tabela sangra até as bordas do cartão do texto e ganha a largura toda. */
  .tabela-wrap { margin-inline: calc(var(--pad) * -1); border-inline: 0; border-radius: 0; box-shadow: none; }
  .post-texto table { font-size: .9rem; }
  .post-texto th, .post-texto td { padding: 11px 12px; }
  .post-texto thead th { letter-spacing: .06em; }
}
.post-texto th, .post-texto td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-texto thead th { background: var(--ink); border-bottom: 0; color: #fff; font: 700 .72rem/1.3 var(--f-b); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.post-texto tbody tr:nth-child(even) td { background: #f7f8fd; }
.post-texto tbody tr:hover td { background: #fff3f5; }
.post-texto tbody tr:last-child td { border-bottom: 0; }
.post-texto td:first-child { color: var(--text); font-weight: 700; }
.post-texto .num { text-align: right; font-variant-numeric: tabular-nums; }
.post-texto td.num { white-space: nowrap; }
.post-texto td.pos { color: #047857; font-weight: 700; }
.post-texto td.neg { color: var(--maple-d); font-weight: 700; }
.post-texto tbody tr.total td { background: #fff1f3; border-top: 2px solid var(--maple); color: var(--text); font-weight: 800; }

/* Fonte oficial no fim do texto. */
.post-fonte { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 36px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.post-fonte span { font: 800 .68rem/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.post-fonte a { display: inline-flex; align-items: center; gap: 6px; color: var(--maple-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-fonte .ico { width: 14px; height: 14px; }

/* ---------- Barra lateral ---------- */
.lateral-card { padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -32px rgba(11, 16, 32, .45); }
.lateral-card > h2 { margin-bottom: 14px; font: 800 .72rem/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--maple-d); }

.busca { position: relative; display: flex; }
.busca input[type="search"] { width: 100%; min-height: 52px; padding: 0 56px 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font: 500 1rem/1.4 var(--f-b); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.busca input[type="search"]::placeholder { color: var(--text-3); }
.busca input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.busca input[type="search"]:focus { outline: none; border-color: var(--maple-l); background: #fff; box-shadow: 0 0 0 3px rgba(251, 113, 133, .22); }
.busca button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #fb3d63, #be123c); transition: transform .2s var(--ease), box-shadow .2s; }
.busca button:hover { transform: scale(1.06); box-shadow: 0 8px 18px -8px rgba(231, 47, 87, .9); }
.busca button .ico { width: 18px; height: 18px; }
.busca.on-dark input[type="search"] { border-color: var(--line-d); background: rgba(255, 255, 255, .08); color: #fff; }
.busca.on-dark input[type="search"]::placeholder { color: var(--on-3); }
.busca.on-dark input[type="search"]:focus { background: rgba(255, 255, 255, .12); }

.recentes { display: grid; gap: 14px; }
.recente { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.recente-capa { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: radial-gradient(90% 90% at 100% 0%, rgba(231, 47, 87, .45), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink)); }
.recente-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.recente:hover .recente-capa img { transform: scale(1.08); }
.recente-txt { display: grid; gap: 6px; min-width: 0; }
.recente-txt b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 .93rem/1.3 var(--f-t); color: var(--text); transition: color .2s; }
.recente:hover .recente-txt b { color: var(--maple-d); }
.recente-txt time { font: 600 .78rem/1 var(--f-b); color: var(--text-3); }

.cats { display: grid; gap: 4px; }
.cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font: 600 .93rem/1.3 var(--f-b); color: var(--text-2); transition: background .2s, color .2s; }
.cats a:hover { background: var(--paper); color: var(--text); }
.cats a[aria-current] { background: #fff1f3; color: var(--maple-d); }
.cats .n { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: var(--paper); color: var(--text-3); font: 700 .74rem/1.1 var(--f-b); text-align: center; }
.cats a[aria-current] .n { background: #fff; color: var(--maple-d); }

/* Cartão da lista de espera: escuro, com o brilho da landing; preso na tela no computador. */
.lateral-cta { display: none; position: relative; isolation: isolate; overflow: clip; padding: 22px; border-radius: 22px; background: var(--ink); color: var(--on); box-shadow: 0 30px 60px -34px rgba(11, 16, 32, .85); }
.lateral-cta::before { content: ""; position: absolute; z-index: -1; inset: -45% -35% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(231, 47, 87, .42), transparent); }
.lateral-cta h2 { margin: 14px 0 8px; font: 800 1.3rem/1.2 var(--f-t); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.lateral-cta p { margin: 0 0 18px; color: var(--on-2); font-size: .93rem; line-height: 1.55; }
.lateral-cta .tk { margin: 16px 0 18px; }
@media (min-width: 1040px) { .lateral-cta { display: block; position: sticky; top: 96px; } }
body.admin-bar .lateral-cta { top: 128px; }

/* ---------- Fim do texto: lista de espera (ou calculadora) e "continue lendo" ---------- */
.noticia-cta { position: relative; overflow: clip; display: grid; gap: clamp(22px, 3vw, 40px); align-items: center; margin-top: clamp(36px, 5vw, 56px); padding: clamp(28px, 4vw, 52px); border-radius: 32px; }
.noticia-cta::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(231, 47, 87, .32), transparent); pointer-events: none; }
@media (min-width: 900px) { .noticia-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.noticia-cta-txt { position: relative; display: grid; gap: 16px; justify-items: start; }
.noticia-cta h2 { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--f-t); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.noticia-cta p { color: var(--on-2); font-size: 1.02rem; line-height: 1.6; }
.noticia-cta .tk { max-width: 470px; }
.noticia-cta .lista-form { position: relative; }

.noticia-mais > h2 { margin-bottom: 22px; font: 800 clamp(1.5rem, 2.8vw, 2rem)/1.15 var(--f-t); letter-spacing: -.03em; color: var(--text); }
.noticia-mais .noticias-grade { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .noticia-mais .noticias-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Lista, categoria e busca ---------- */
.arq-hero { padding-bottom: clamp(104px, 10vw, 132px); }
.arq-lead { max-width: 640px; margin-top: 16px; color: var(--on-2); font-size: 1.08rem; line-height: 1.6; }
.arq-hero .busca { max-width: 520px; margin-top: 28px; }
.arq-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.arq-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05); color: var(--on-2); font: 700 .86rem/1 var(--f-b); transition: background .2s, color .2s, border-color .2s; }
.arq-cats a span { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .72rem; text-align: center; }
.arq-cats a:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.arq-cats a[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, #fb3d63 0%, #e72f57 35%, #9f1239 100%); }
.arq-cats a[aria-current="page"] span { background: rgba(255, 255, 255, .22); }

.arq { position: relative; z-index: 1; margin-top: clamp(-84px, -7vw, -60px); padding-bottom: clamp(56px, 8vw, 96px); }
.paginacao { margin-top: 36px; }
.paginacao ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.paginacao .page-numbers { display: block; min-width: 46px; padding: 13px 16px; border-radius: 12px; background: #fff; color: var(--text-2); font: 700 .92rem/1 var(--f-b); text-align: center; box-shadow: 0 10px 24px -18px rgba(11, 16, 32, .5); transition: transform .2s var(--ease), color .2s; }
.paginacao a.page-numbers:hover { color: var(--maple-d); transform: translateY(-2px); }
.paginacao .page-numbers.current { background: var(--ink); color: #fff; }
.paginacao .page-numbers.dots { background: none; box-shadow: none; }
.arq-vazio { display: grid; gap: 18px; justify-items: center; padding: 48px 24px; border-radius: 24px; background: #fff; box-shadow: 0 26px 54px -36px rgba(11, 16, 32, .55); color: var(--text-2); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .leitura, .busca button, .paginacao .page-numbers, .recente-capa img { transition: none; }
}
