/* Notícias — padrão portal (home, lista, categoria e matéria).
   Usa só as variáveis do tema: --primary, --accent, --font-heading, --font-body. */
:root {
    --nt-texto: #121a26;
    --nt-texto-2: #4a5568;
    --nt-texto-3: #5f6b7c;
    --nt-linha: #e3e7ee;
    --nt-fundo: #ffffff;
    --nt-chapeu: color-mix(in srgb, var(--primary, #1d4ed8) 82%, #000);
}

/* ---------- Chamada (unidade básica) ---------- */
.nt { position: relative; display: flex; gap: 14px; min-width: 0; }
.nt-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.nt-chapeu {
    display: inline-block; align-self: flex-start;
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
    color: var(--nt-chapeu); margin-bottom: 6px; text-transform: none;
}
.nt-titulo {
    font-family: var(--font-heading, inherit); color: var(--nt-texto);
    font-weight: 700; line-height: 1.22; margin: 0; letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.nt-link { color: inherit; text-decoration: none; }
.nt-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--ui-r-sm); }
.nt:hover .nt-titulo { color: var(--nt-chapeu); }
.nt-link:focus-visible { outline: none; }
.nt:focus-within { outline: 3px solid color-mix(in srgb, var(--primary, #1d4ed8) 45%, transparent); outline-offset: 4px; border-radius: var(--ui-r-sm); }
.nt-resumo { color: var(--nt-texto-2); font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.nt-meta { color: var(--nt-texto-3); font-size: 13px; margin: 8px 0 0; }
.nt-foto { position: relative; flex-shrink: 0; overflow: hidden; border-radius: var(--ui-r-sm); background: var(--ui-surface-2, #eef1f5); }
.nt-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nt:hover .nt-foto img { transform: scale(1.04); }
.nt-play {
    position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: var(--ui-r-sm);
    background: rgba(0,0,0,.72); color: #fff; display: flex; align-items: center; justify-content: center;
}
.nt-play .ic { width: 16px; height: 16px; fill: currentColor; }

/* Manchete: foto grande em cima */
.nt--manchete { flex-direction: column; gap: 14px; }
.nt--manchete .nt-foto { aspect-ratio: 16 / 9; border-radius: var(--ui-r-md); }
.nt--manchete .nt-titulo { font-size: clamp(24px, 3.1vw, 36px); line-height: 1.14; }
.nt--manchete .nt-resumo { font-size: 17px; }
.nt--manchete.nt--sem-foto { padding: 22px; background: color-mix(in srgb, var(--primary, #1d4ed8) 5%, #fff); border-radius: var(--ui-r-md); }

/* Card: foto em cima, título médio */
.nt--card { flex-direction: column; gap: 10px; }
.nt--card .nt-foto { aspect-ratio: 16 / 9; }
.nt--card .nt-titulo { font-size: 18px; }

/* Lista: miniatura à direita (G1) */
.nt--lista { align-items: flex-start; }
.nt--lista .nt-foto { order: 2; width: 34%; max-width: 280px; aspect-ratio: 3 / 2; }
.nt--lista .nt-titulo { font-size: 21px; }

/* Mini: só texto */
.nt--mini .nt-titulo { font-size: 16.5px; line-height: 1.3; }
.nt--mini .nt-chapeu { margin-bottom: 4px; }
.nt--mini .nt-meta { margin-top: 4px; }

/* ---------- Home: bloco de notícias ---------- */
.nt-home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
.nt-home-lado { display: flex; flex-direction: column; }
.nt-home-lado .nt { padding: 16px 0; border-top: 1px solid var(--nt-linha); }
.nt-home-lado .nt:first-child { border-top: 0; padding-top: 0; }
.nt-home-lado .nt--lista .nt-foto { width: 112px; aspect-ratio: 1 / 1; border-radius: var(--ui-r-sm); }
.nt-home-lado .nt--lista .nt-titulo { font-size: 17px; line-height: 1.28; }
.nt-home-lado .nt--lista .nt-resumo { display: none; }
.nt-home-rodape { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--nt-linha); }
.nt-home-rodape:empty { display: none; }
.nt-home-mais {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--ui-r-sm);
    border: 1px solid var(--nt-linha); color: var(--nt-chapeu); font-weight: 600; text-decoration: none; background: var(--ui-surface, #ffffff);
}
.nt-home-mais:hover { border-color: var(--nt-chapeu); }

@media (max-width: 991px) {
    .nt-home { grid-template-columns: 1fr; gap: 20px; }
    .nt-home-rodape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nt-home-rodape { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
    .nt-home-rodape .nt { padding: 16px 0; border-top: 1px solid var(--nt-linha); flex-direction: row; }
    .nt-home-rodape .nt--card .nt-foto { order: 2; width: 112px; aspect-ratio: 1 / 1; }
    .nt-home-rodape .nt--card .nt-titulo { font-size: 17px; }
    .nt-home-lado .nt--lista .nt-foto, .nt-home-rodape .nt--card .nt-foto { width: 96px; }
    .nt--manchete .nt-foto { border-radius: var(--ui-r-sm); }
    .nt--manchete .nt-resumo { font-size: 16px; }
}

/* ---------- Páginas (lista e matéria) ---------- */
.nt-pagina { background: var(--nt-fundo); padding: 28px 0 56px; }
.nt-cab { border-bottom: 1px solid var(--nt-linha); padding-bottom: 18px; margin-bottom: 26px; }
.nt-cab-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nt-cab h1 { font-family: var(--font-heading, inherit); font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--nt-texto); margin: 0; letter-spacing: -.02em; }
.nt-cab h1 span { color: var(--nt-chapeu); }
.nt-busca { display: flex; flex: 0 1 340px; min-width: 240px; }
.nt-busca input {
    flex: 1; min-width: 0; height: 46px; border: 1px solid var(--nt-linha); border-right: 0; border-radius: 12px 0 0 12px;
    padding: 0 14px; font-size: 16px; color: var(--nt-texto); background: var(--ui-surface, #ffffff);
}
.nt-busca input:focus { outline: 2px solid color-mix(in srgb, var(--primary, #1d4ed8) 40%, transparent); outline-offset: 0; }
.nt-busca button { width: 50px; height: 46px; border: 0; border-radius: 0 12px 12px 0; background: var(--primary, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; }
.nt-abas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding-bottom: 2px; }
.nt-abas::-webkit-scrollbar { display: none; }
.nt-aba {
    flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--ui-r-sm);
    border: 1px solid var(--nt-linha); color: var(--nt-texto-2); font-size: 14.5px; font-weight: 600; text-decoration: none; background: var(--ui-surface, #ffffff); white-space: nowrap;
}
.nt-aba:hover { border-color: var(--nt-chapeu); color: var(--nt-chapeu); }
.nt-aba[aria-current="page"] { background: var(--nt-chapeu); border-color: var(--nt-chapeu); color: #fff; }

.nt-grade { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.nt-abre { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; padding-bottom: 26px; margin-bottom: 6px; border-bottom: 1px solid var(--nt-linha); }
.nt-abre-lado { display: flex; flex-direction: column; gap: 20px; }
.nt-abre-lado .nt--card .nt-titulo { font-size: 18px; }
.nt-feed > .nt { padding: 24px 0; border-bottom: 1px solid var(--nt-linha); }
.nt-feed > .nt:first-child { padding-top: 22px; }
.nt-feed-pub { padding: 22px 0; border-bottom: 1px solid var(--nt-linha); text-align: center; }
.nt-vazio { padding: 48px 20px; text-align: center; color: var(--nt-texto-2); border: 1px dashed var(--nt-linha); border-radius: var(--ui-r-md); }
.nt-vazio h2 { font-size: 20px; color: var(--nt-texto); }
.nt-resultado { color: var(--nt-texto-2); margin: 0 0 6px; font-size: 15px; }

.nt-paginas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.nt-paginas a, .nt-paginas span {
    min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--ui-r-sm); border: 1px solid var(--nt-linha); color: var(--nt-texto); text-decoration: none; font-weight: 600;
}
.nt-paginas a:hover { border-color: var(--nt-chapeu); color: var(--nt-chapeu); }
.nt-paginas [aria-current="page"] { background: var(--nt-chapeu); border-color: var(--nt-chapeu); color: #fff; }
.nt-paginas .nt-pg-reticencia { border: 0; min-width: 20px; }

/* Lateral */
.nt-lateral { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.nt-bloco-tit { font-family: var(--font-heading, inherit); font-size: 18px; font-weight: 800; color: var(--nt-texto); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid var(--nt-chapeu); }
.nt-lidas { list-style: none; padding: 0; margin: 0; counter-reset: lidas; }
.nt-lidas li { counter-increment: lidas; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--nt-linha); position: relative; }
.nt-lidas li::before { content: counter(lidas); font-family: var(--font-heading, inherit); font-size: 30px; font-weight: 800; line-height: 1; color: var(--nt-chapeu); min-width: 26px; }
.nt-lidas a { color: var(--nt-texto); font-weight: 600; font-size: 15.5px; line-height: 1.32; text-decoration: none; }
.nt-lidas a::after { content: ""; position: absolute; inset: 0; }
.nt-lidas li:hover a { color: var(--nt-chapeu); }
.nt-lidas small { display: block; color: var(--nt-texto-3); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
.nt-pub-lateral { text-align: center; }

@media (max-width: 991px) {
    .nt-grade { grid-template-columns: 1fr; gap: 32px; }
    .nt-lateral { position: static; }
    .nt-abre { grid-template-columns: 1fr; }
    .nt-abre-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 640px) {
    .nt-pagina { padding-top: 18px; }
    .nt-busca { flex-basis: 100%; }
    .nt-abre-lado { grid-template-columns: 1fr; gap: 0; }
    .nt-abre-lado .nt { flex-direction: row; padding: 14px 0; border-top: 1px solid var(--nt-linha); }
    .nt-abre-lado .nt--card .nt-foto { order: 2; width: 96px; aspect-ratio: 1 / 1; }
    .nt-abre-lado .nt--card .nt-titulo { font-size: 16.5px; }
    .nt--lista .nt-foto { width: 96px; aspect-ratio: 1 / 1; }
    .nt--lista .nt-titulo { font-size: 17px; line-height: 1.28; }
    .nt--lista .nt-resumo { display: none; }
    .nt-feed > .nt { padding: 16px 0; }
}

/* ---------- Matéria ---------- */
.nt-progresso { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--primary, #1d4ed8); z-index: 100002; }
.nt-materia { max-width: 760px; }
.nt-trilha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--nt-texto-3); margin-bottom: 14px; }
.nt-trilha a { color: var(--nt-texto-3); text-decoration: none; }
.nt-trilha a:hover { color: var(--nt-chapeu); text-decoration: underline; }
.nt-trilha .nt-trilha-cat { color: var(--nt-chapeu); font-weight: 700; }
.nt-materia h1 { font-family: var(--font-heading, inherit); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--nt-texto); margin: 0 0 14px; overflow-wrap: anywhere; }
.nt-linha-fina { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--nt-texto-2); margin: 0 0 22px; }
.nt-assina { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--nt-linha); border-bottom: 1px solid var(--nt-linha); margin-bottom: 24px; }
.nt-autor { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--nt-texto-3); line-height: 1.4; }
.nt-autor img { width: 44px; height: 44px; border-radius: var(--ui-r-sm); object-fit: cover; }
.nt-autor strong { color: var(--nt-texto); display: block; font-size: 15px; }
.nt-compartilha { display: flex; gap: 8px; }
.nt-compartilha a, .nt-compartilha button {
    width: 44px; height: 44px; border-radius: var(--ui-r-sm); border: 1px solid var(--nt-linha); background: var(--ui-surface, #ffffff);
    display: inline-flex; align-items: center; justify-content: center; color: var(--nt-texto); text-decoration: none; cursor: pointer;
}
.nt-compartilha a:hover, .nt-compartilha button:hover { border-color: var(--nt-chapeu); color: var(--nt-chapeu); }
.nt-compartilha .marca { font-size: 19px; }
.nt-compartilha .nt-wa { background: #0f7a41; border-color: #0f7a41; color: #fff; }
.nt-compartilha .nt-wa:hover { background: #0b6435; color: #fff; }
.nt-figura { margin: 0 0 28px; }
.nt-figura img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--ui-r-md); background: var(--ui-surface-2, #eef1f5); }
.nt-figura figcaption { font-size: 13.5px; color: var(--nt-texto-3); margin-top: 8px; line-height: 1.45; }
.nt-video { margin-bottom: 28px; border-radius: var(--ui-r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.nt-video iframe, .nt-video video { width: 100%; height: 100%; border: 0; display: block; }

.nt-corpo { font-size: 19px; line-height: 1.75; color: #1f2733; overflow-wrap: break-word; }
.nt-corpo p { margin: 0 0 1.25em; }
.nt-corpo h2, .nt-corpo h3 { font-family: var(--font-heading, inherit); color: var(--nt-texto); font-weight: 800; line-height: 1.25; margin: 1.6em 0 .6em; }
.nt-corpo h2 { font-size: 26px; }
.nt-corpo h3 { font-size: 22px; }
.nt-corpo a { color: var(--nt-chapeu); text-decoration: underline; text-underline-offset: 3px; }
.nt-corpo img { max-width: 100%; height: auto; border-radius: var(--ui-r-sm); margin: 10px 0; }
.nt-corpo blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--ui-surface-2, #f4f6f9); border-radius: var(--ui-r-sm); font-size: 21px; font-style: italic; color: var(--nt-texto); }
.nt-corpo ul, .nt-corpo ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.nt-corpo iframe { max-width: 100%; }
.nt-corpo table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.nt-corpo td, .nt-corpo th { border: 1px solid var(--nt-linha); padding: 8px; }
.nt-pub-meio { margin: 8px 0 30px; text-align: center; }

.nt-secao { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--nt-linha); }
.nt-secao-tit { font-family: var(--font-heading, inherit); font-size: 20px; font-weight: 800; color: var(--nt-texto); margin: 0 0 16px; }
.nt-galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nt-galeria a { display: block; aspect-ratio: 4 / 3; border-radius: var(--ui-r-sm); overflow: hidden; background: var(--ui-surface-2, #eef1f5); }
.nt-galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nt-galeria a:hover img { transform: scale(1.05); }
.nt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--ui-r-sm); border: 1px solid var(--nt-linha); color: var(--nt-texto-2); text-decoration: none; font-size: 14.5px; }
.nt-tags a:hover { border-color: var(--nt-chapeu); color: var(--nt-chapeu); }
.nt-leia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nt-empresas { display: flex; flex-direction: column; }
.nt-empresas a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--nt-linha); text-decoration: none; color: var(--nt-texto); }
.nt-empresas img, .nt-empresas .nt-emp-ini { width: 48px; height: 48px; border-radius: var(--ui-r-sm); object-fit: contain; background: var(--ui-surface-2, #f3f5f8); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--nt-chapeu); }
.nt-empresas strong { font-size: 15px; display: block; line-height: 1.3; }
.nt-empresas small { color: var(--nt-texto-3); font-size: 13px; }
.nt-empresas a:hover strong { color: var(--nt-chapeu); }

.nt-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #121a26; color: #fff; padding: 12px 18px; border-radius: var(--ui-r-sm); font-size: 14.5px; z-index: 100003; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nt-toast.mostra { opacity: 1; }

@media (max-width: 991px) {
    .nt-materia { max-width: none; }
}
@media (max-width: 640px) {
    .nt-corpo { font-size: 18px; line-height: 1.7; }
    .nt-figura { margin-left: -12px; margin-right: -12px; }
    .nt-figura img { border-radius: 0; }
    .nt-figura figcaption { padding: 0 12px; }
    .nt-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nt-leia { grid-template-columns: 1fr; gap: 0; }
    .nt-leia .nt { flex-direction: row; padding: 14px 0; border-top: 1px solid var(--nt-linha); }
    .nt-leia .nt--card .nt-foto { order: 2; width: 96px; aspect-ratio: 1 / 1; }
    .nt-leia .nt--card .nt-titulo { font-size: 16.5px; }
    .nt-assina { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .nt-foto img, .nt-galeria img { transition: none; }
    .nt:hover .nt-foto img, .nt-galeria a:hover img { transform: none; }
}

/* home no celular: o tema zera o recuo do container desta seção */
@media (max-width: 767px) {
    .section--news > .container { padding-left: 16px; padding-right: 16px; }
}
.nt-fonte { font-size: 15px; color: var(--nt-texto-3); margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--nt-linha); }
.nt-fonte a { color: var(--nt-chapeu); font-weight: 600; }
.nt-fonte-aviso { font-size: 14px; color: var(--nt-texto-2); background: var(--ui-surface-2, #f4f6f9); border-radius: var(--ui-r-sm); padding: 12px 14px; margin: 24px 0 0; line-height: 1.5; }
.nt-fonte-aviso a { color: var(--nt-chapeu); }
.nt-leia-fonte a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--ui-r-sm); background: var(--primary, #1d4ed8); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 16px; }
.nt-corpo .nt-img img { display: block; width: 100%; height: auto; }
