/*
Theme Name: Naipadinho
Theme URI: https://naipadinho.com.br
Author: Naipadinho
Author URI: https://naipadinho.com.br
Description: O tema oficial da Naipadinho, poker de jogador pra jogador. Escuro, flat e em cores sólidas: carvão, grafite, primária e menta, com Space Grotesk nos títulos, DM Sans no texto e o trevo da logo como assinatura. Tema filho do Twenty Twenty-Five; o design system está em docs/12-design-system.md.
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Tags: blog, news, one-column, two-columns, right-sidebar, custom-menu, editor-style, full-site-editing, block-patterns, translation-ready
Text Domain: naipadinho
*/

/* ==========================================================================
   1. Papéis semânticos (todas as cores vêm da paleta do theme.json)
   ========================================================================== */
:root {
  --nd-bg: var(--wp--preset--color--carvao);
  --nd-surface: var(--wp--preset--color--grafite);
  --nd-surface-hover: var(--wp--preset--color--grafite-2);
  --nd-text: var(--wp--preset--color--off-white);
  --nd-text-soft: var(--wp--preset--color--suave);
  --nd-link: var(--wp--preset--color--menta);
  --nd-link-hover: var(--wp--preset--color--off-white);
  --nd-primary: var(--wp--preset--color--primaria);
  --nd-primary-hover: var(--wp--preset--color--menta);
  --nd-on-primary: var(--wp--preset--color--carvao);
  --nd-accent: var(--wp--preset--color--menta);
  --nd-focus: var(--wp--preset--color--menta);
  --nd-field: var(--wp--preset--color--carvao);

  --nd-display: var(--wp--preset--font-family--display);
  --nd-body: var(--wp--preset--font-family--body);
  --nd-gutter: var(--wp--custom--gutter);
  --nd-measure: var(--wp--custom--measure);
  --nd-touch: var(--wp--custom--touch);
  --nd-radius: var(--wp--custom--radius);

  --s10: var(--wp--preset--spacing--10);
  --s20: var(--wp--preset--spacing--20);
  --s30: var(--wp--preset--spacing--30);
  --s40: var(--wp--preset--spacing--40);
  --s50: var(--wp--preset--spacing--50);
  --s60: var(--wp--preset--spacing--60);
  --s70: var(--wp--preset--spacing--70);
  --s80: var(--wp--preset--spacing--80);
  --s90: var(--wp--preset--spacing--90);
  --nd-section: clamp(var(--s70), 8vw, var(--s90));

  --fs-meta: var(--wp--preset--font-size--meta);
  --fs-small: var(--wp--preset--font-size--small);
  --fs-base: var(--wp--preset--font-size--base);
  --fs-large: var(--wp--preset--font-size--large);
  --fs-h6: var(--wp--preset--font-size--h-6);
  --fs-h5: var(--wp--preset--font-size--h-5);
  --fs-h4: var(--wp--preset--font-size--h-4);
  --fs-h3: var(--wp--preset--font-size--h-3);
  --fs-h2: var(--wp--preset--font-size--h-2);
  --fs-h1: var(--wp--preset--font-size--h-1);
  --fs-display: var(--wp--preset--font-size--display);
}

/* Modo claro: troca só os papéis, em seções específicas */
.nd-light {
  --nd-bg: var(--wp--preset--color--off-white);
  --nd-surface: var(--wp--preset--color--superficie-clara);
  --nd-surface-hover: var(--wp--preset--color--menta);
  --nd-text: var(--wp--preset--color--carvao);
  --nd-text-soft: var(--wp--preset--color--suave-escuro);
  --nd-link: var(--wp--preset--color--primaria-escura);
  --nd-link-hover: var(--wp--preset--color--carvao);
  --nd-focus: var(--wp--preset--color--primaria);
  --nd-field: var(--wp--preset--color--off-white);
  background: var(--nd-bg);
  color: var(--nd-text);
}
.nd-light h1, .nd-light h2, .nd-light h3, .nd-light h4 { color: var(--nd-text); }

/* ==========================================================================
   2. Base
   ========================================================================== */
body { background: var(--nd-bg); color: var(--nd-text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nd-link); text-decoration: none; }
.wp-site-blocks > * { margin-block: 0 !important; }

/* Foco de teclado: única exceção à regra flat */
.wp-site-blocks *:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--nd-focus); outline-offset: 2px; }

/* Pular para o conteúdo */
.nd-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--wp--preset--color--menta); color: var(--wp--preset--color--carvao); padding: var(--s30) var(--s40); font-weight: 700; }
.nd-skip:focus { left: var(--s40); top: var(--s40); color: var(--wp--preset--color--carvao); }

/* Tipografia: um estilo por nível (tamanhos vêm do theme.json) */
.nd-kicker { font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-meta); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-text); margin: 0 0 var(--s30); }
.nd-meta-text { font-size: var(--fs-meta); color: var(--nd-text-soft); }

/* Botões: primário (sólido) */
.nd-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--nd-touch); padding: var(--s30) var(--s60); background: var(--nd-primary); color: var(--nd-on-primary); font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; }
.nd-btn:active, .wp-block-button__link:active { background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); }

/* Placa quadrada com seta (botões de ícone) */
.nd-square { display: inline-flex; align-items: center; justify-content: center; width: var(--nd-touch); height: var(--nd-touch); background: var(--nd-primary); color: var(--nd-on-primary); font-style: normal; font-size: var(--fs-h5); line-height: 1; }

/* Arte sólida no lugar de fotos (placa com naipe) */
.nd-art { position: relative; overflow: hidden; background: var(--art-bg, var(--nd-surface-hover)); display: block; }
.nd-art::after { content: attr(data-glyph); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--nd-display); font-weight: 700; font-size: clamp(5rem, 14vw, 12rem); line-height: 1; color: var(--art-glyph, var(--nd-surface)); pointer-events: none; }
.nd-art--1 { --art-bg: var(--wp--preset--color--primaria); --art-glyph: var(--wp--preset--color--primaria-escura); }
.nd-art--2 { --art-bg: var(--wp--preset--color--grafite-2); --art-glyph: var(--wp--preset--color--grafite); }
.nd-art--3 { --art-bg: var(--wp--preset--color--menta); --art-glyph: var(--wp--preset--color--primaria); }
.nd-art--4 { --art-bg: var(--wp--preset--color--primaria-escura); --art-glyph: var(--wp--preset--color--primaria); }
.nd-art--5 { --art-bg: var(--wp--preset--color--grafite); --art-glyph: var(--wp--preset--color--grafite-2); }

/* ==========================================================================
   3. Cabeçalho e navegação
   ========================================================================== */
.nd-header { background: var(--nd-bg); position: relative; z-index: 10; }
.nd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s60); flex-wrap: wrap; min-height: 5.25rem; padding-inline: var(--nd-gutter); }
.nd-header-inner > * { margin: 0 !important; }
.nd-header .wp-block-site-title { margin: 0; line-height: 0; }
/* Logo em SVG (assets/logo.svg, 731x126); o texto do título fica só para leitores de tela */
.nd-header .wp-block-site-title a { display: block; height: calc(var(--wp--custom--title--logo) * 1.43); aspect-ratio: 731 / 126; background: url("assets/logo.svg") no-repeat left center / contain; font-size: 0; color: transparent; overflow: hidden; }
@media (max-width: 480px) { .nd-header .wp-block-site-title a { height: calc(var(--wp--custom--title--logo) * 1.3); } }
.nd-nav { flex: 1; justify-content: flex-end; }
.nd-nav, .nd-nav a { font-family: var(--nd-display); font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--nd-text); }
.nd-nav a, .nd-nav .wp-block-navigation-item__content.wp-block-navigation-item__content { display: flex; align-items: center; min-height: var(--nd-touch); padding-block: 0; padding-inline: var(--s10); text-decoration: none; }
.nd-nav a[aria-current="page"] { color: var(--nd-accent); font-weight: 700; }
.nd-header-search { display: flex; align-items: center; }
.nd-header-search .wp-block-search__inside-wrapper { display: flex; align-items: center; }
.nd-header-search .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; min-width: var(--nd-touch); min-height: var(--nd-touch); padding: 0; margin: 0; background: transparent; color: var(--nd-text); border: 0; }
.nd-header-search .wp-block-search__input { min-height: var(--nd-touch); padding: 0 var(--s40); background: var(--nd-surface); color: var(--nd-text); border: 0; }

/* Menu em botão até 900px; o menu aberto usa fundo sólido escuro */
@media (max-width: 900px) {
  .nd-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .nd-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .nd-nav { flex: 0 0 auto; }
  .nd-header-inner { flex-wrap: nowrap; }
  .nd-header-inner .nd-nav { margin-left: auto !important; }
}
.nd-nav .wp-block-navigation__responsive-container-open, .nd-nav .wp-block-navigation__responsive-container-close { align-items: center; justify-content: center; color: var(--nd-text); min-width: var(--nd-touch); min-height: var(--nd-touch); padding: 0; }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--nd-bg) !important; color: var(--nd-text) !important; padding: var(--s50) var(--nd-gutter) !important; }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: var(--fs-h3); color: var(--nd-text); }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--nd-accent); }

/* Faixa de frases (estática) */
.nd-ticker { background: var(--nd-surface); overflow: hidden; white-space: nowrap; padding: var(--s30) 0; }
.nd-ticker-track { display: inline-flex; animation: nd-marquee 60s linear infinite; }
@keyframes nd-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nd-ticker-track { animation: none; } }
.nd-ticker-track span { font-family: var(--nd-display); font-weight: 500; padding-right: var(--s70); font-size: var(--fs-h6); text-transform: uppercase; color: var(--nd-accent); line-height: 1.2; }

/* ==========================================================================
   4. Home: hero, manchete, cartões, banners
   ========================================================================== */
.nd-hero { background: var(--nd-bg); padding: var(--s70) var(--nd-gutter) var(--nd-section); }
.nd-hero-top { display: grid; grid-template-columns: clamp(var(--s80), 13vw, 15rem) minmax(0, 1fr); align-items: center; gap: var(--s40); padding-bottom: var(--s60); }
.nd-hero-down { display: inline-flex; align-items: center; justify-content: center; width: var(--nd-touch); height: var(--nd-touch); background: var(--nd-primary); color: var(--nd-on-primary); font-size: var(--fs-h5); line-height: 1; }
.nd-hero-kicker { font-family: var(--nd-display); font-weight: 500; text-transform: uppercase; font-size: var(--wp--custom--title--herokicker); line-height: 1.15; color: var(--nd-text); margin: 0; max-width: 34em; }
.nd-hero-title { font-family: var(--nd-display); font-weight: 700; text-transform: uppercase; font-size: min(var(--fs-display), calc((100vw - 2 * var(--nd-gutter)) * 0.0785)); line-height: 1; letter-spacing: -0.035em; color: var(--nd-text); margin: 0; }
.nd-hero-title span { display: block; white-space: nowrap; }
.nd-hero-title .nd-fill { width: fit-content; color: var(--nd-accent); }
@media (max-width: 782px) {
  .nd-hero { padding-top: calc(var(--s70) / 2); }
  .nd-hero-top { grid-template-columns: auto minmax(0, 1fr); }
  .nd-hero-title { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }
  .nd-hero-title span { white-space: normal; }
}

/* Manchete: post fixado pelo administrador */
.nd-headline { padding: var(--s70) var(--nd-gutter) 0; }
.nd-headline:not(:has(.nd-headline-card)) { display: none; }
.nd-headline-query .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.nd-headline-query .wp-block-post-template > li { margin: 0 !important; }
.nd-headline-card { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); background: var(--nd-surface); }
.nd-headline-media { position: relative; min-height: clamp(18rem, 40vw, 34rem); margin: 0 !important; background: var(--wp--preset--color--grafite-2); }
.nd-headline-media::after { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--grafite); -webkit-mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(6rem, 16vw, 14rem); mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(6rem, 16vw, 14rem); pointer-events: none; }
.nd-headline-media .wp-block-post-featured-image, .nd-headline-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; z-index: 1; }
.nd-headline-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s40); padding: var(--s70) var(--s60); }
.nd-headline-copy > * { margin-block: 0 !important; }
.nd-headline-title, .nd-headline-title a { font-size: var(--wp--custom--title--headline); line-height: 1.04; color: var(--nd-text); }
.nd-headline-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.nd-headline-copy .nd-cat-label { position: relative; z-index: 5; }
.nd-headline-excerpt { color: var(--nd-text-soft); font-size: var(--fs-base); }
.nd-headline-excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.nd-headline-meta { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--nd-text-soft); }
.nd-headline-meta > * { margin: 0; }
@media (max-width: 900px) { .nd-headline-card { grid-template-columns: 1fr; } .nd-headline-media { min-height: 0; aspect-ratio: 16 / 9; } .nd-headline-copy { padding: var(--s60) var(--s50); } }
@media (min-width: 783px) { .nd-headline .nd-headline-title, .nd-headline .nd-headline-title a { font-size: clamp(1.17rem, 2.8vw, 2.68rem); } }

/* Cartões da home (grade fluida) */
.nd-latest { padding: var(--nd-section) var(--nd-gutter); }
.nd-query .wp-block-post-template { gap: var(--s50); list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)) !important; }
.nd-query .wp-block-post-template > li { margin: 0 !important; }
.nd-card { background: var(--nd-surface); height: 100%; }
.nd-thumbwrap { position: relative; margin: 0 !important; }
.nd-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--grafite-2); margin: 0 !important; }
.nd-thumb::after { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--grafite); -webkit-mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(4rem, 9vw, 7rem); mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(4rem, 9vw, 7rem); pointer-events: none; }
.nd-thumb .wp-block-post-featured-image, .nd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; z-index: 1; }
.nd-datebadge { position: absolute; right: var(--s40); bottom: calc(var(--s50) * -1); z-index: 3; display: flex; flex-direction: column; min-width: var(--nd-touch); padding: var(--s20) var(--s30); text-align: center; background: var(--wp--preset--color--primaria-profunda); color: var(--nd-accent); }
.nd-datebadge .wp-block-post-date, .nd-datebadge time { margin: 0; line-height: 1.1; color: var(--nd-accent); }
.nd-datebadge .nd-day { font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-h4); }
.nd-datebadge .nd-mon { font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.06em; }
.nd-card-body { display: flex; flex-direction: column; gap: var(--s10); padding: calc((var(--s50) + var(--s30)) * 0.42) var(--s50) var(--s50); }
.nd-cat-label, .nd-cat-label a { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--nd-accent); margin: 0; }
.nd-card-title, .nd-card-title a { font-size: var(--wp--custom--title--card); line-height: 1.2; letter-spacing: 0; margin: 0; color: var(--nd-text); }

/* Banners publicitários: só imagem (inc/banners.php). Cada banner gruda no topo e o próximo o cobre.
   Desktop: arte 3840×555, centralizada. A partir de 1920px de largura a altura fica fixa em 555px e as
   laterais são cortadas; abaixo disso o banner encolhe na proporção, mostrando sempre os 1920px centrais
   da arte inteiros (altura = largura × 555 / 1920).
   Celular (até 900px): arte 900×555, fluida, largura total. */
.nd-banners { position: relative; container-type: inline-size; }
.nd-banner { position: sticky; top: 0; display: block; height: min(555px, 100vw * 555 / 1920); height: min(555px, 100cqw * 555 / 1920); overflow: hidden; background: var(--nd-bg); }
.nd-banner picture { display: block; height: 100%; }
.nd-banner img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
@media (max-width: 900px) {
  .nd-banner { height: auto; }
  .nd-banner img { height: auto; aspect-ratio: 900 / 555; }
}

/* ==========================================================================
   5. Listagens (categorias, tags, /agora/): título centralizado e grade
   ========================================================================== */
.nd-archive { padding: var(--s80) var(--nd-gutter) var(--nd-section); }
@media (max-width: 782px) { .nd-archive { padding-top: calc(var(--s80) / 2); } }
.nd-archive-head { text-align: center; max-width: 60rem; margin: 0 auto var(--s80) !important; }
.nd-archive-head > * { margin-block: 0 !important; }
.nd-archive-title { text-align: center; margin: 0 0 var(--s40) !important; }
.nd-archive .wp-block-term-description, .nd-archive-head .wp-block-post-content { color: var(--nd-text-soft); text-align: center; font-size: var(--fs-base); padding: 0; }
.nd-archive-head .wp-block-post-content > * { margin: 0; max-width: none; }
.nd-gridquery .wp-block-post-template { gap: var(--s70) var(--s50); }
/* Listagens paginadas (categorias, tags, busca, /agora/): 12 posts por página e colunas por largura de tela
   sempre divisoras de 12 (1, 2, 3, 4 e 6), para toda página cheia ocupar as linhas inteiras. */
.nd-gridquery .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 640px) { .nd-gridquery .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .nd-gridquery .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1536px) { .nd-gridquery .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 2400px) { .nd-gridquery .wp-block-post-template { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
.nd-gcard { display: flex; flex-direction: column; gap: 0; }
.nd-gcard > * { margin-block: 0 !important; }
.nd-gthumb { aspect-ratio: 4 / 3; margin-bottom: var(--s40) !important; }
.nd-gmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s20); font-size: var(--fs-small); line-height: 1.4; margin-bottom: var(--s20) !important; }
.nd-gmeta .wp-block-post-terms { margin: 0; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.nd-gmeta .wp-block-post-terms a { color: var(--nd-accent); }
.nd-gmeta .wp-block-post-date { margin: 0; color: var(--nd-text-soft); }
.nd-gmeta .wp-block-post-date::before { content: "\2022"; margin-right: var(--s20); color: var(--nd-text-soft); }
.nd-gtitle, .nd-gtitle a { font-size: var(--wp--custom--title--grid); line-height: 1.12; letter-spacing: 0; margin: 0; color: var(--nd-text); }
.wp-block-query-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s20); margin-top: var(--s80); font-family: var(--nd-display); font-size: var(--fs-small); text-transform: uppercase; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers, .wp-block-query-pagination-numbers > * { display: inline-flex; align-items: center; justify-content: center; min-width: var(--nd-touch); min-height: var(--nd-touch); padding: 0 var(--s40); background: var(--nd-surface); color: var(--nd-text); }
.wp-block-query-pagination .page-numbers.current { background: var(--nd-primary); color: var(--nd-on-primary); font-weight: 700; }

/* ==========================================================================
   6. Leitura da notícia e páginas de texto
   ========================================================================== */
.nd-single { padding: var(--s70) var(--nd-gutter) var(--nd-section); }
@media (max-width: 782px) { .nd-single { padding-top: calc(var(--s70) * 0.147); } }
.nd-post-head h1, .nd-post-head .wp-block-post-title { margin: var(--s40) 0 var(--s40); }
.nd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s30); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--nd-text-soft); }
.nd-meta .wp-block-post-date { margin: 0; color: var(--nd-text-soft); }
.nd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 24vw; gap: var(--s90); margin-top: var(--s60); align-items: start; }
.nd-col-main > * { margin-block: 0 !important; }
.nd-hero-art { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--wp--preset--color--grafite-2); margin-bottom: var(--s60) !important; }
.nd-hero-art::after { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--grafite); -webkit-mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(6rem, 16vw, 14rem); mask: url("assets/logo-symbol.svg") no-repeat center / auto clamp(6rem, 16vw, 14rem); pointer-events: none; }
.nd-hero-art .wp-block-post-featured-image, .nd-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; z-index: 1; }
.nd-content { font-size: var(--fs-base); line-height: 1.8; }
.nd-content > * { max-width: none; margin-block: 0 var(--s50); }
.nd-content h2, .nd-content h3, .nd-content h4 { font-size: var(--wp--custom--title--content); margin-top: var(--s70); margin-bottom: var(--s40); }
.nd-content p a, .nd-content li a, .nd-about-copy p a, .nd-about-row p a { text-decoration: underline; text-underline-offset: 0.2em; }
.nd-content blockquote { position: relative; background: var(--nd-surface); padding: var(--s60); margin-inline: 0; color: var(--nd-text); }
.nd-content blockquote::before { content: "\201C"; display: block; font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-h1); line-height: 0.7; color: var(--nd-accent); margin-bottom: var(--s30); }
.nd-content ul, .nd-content ol { padding-left: 1.25em; }
.nd-content li { margin-bottom: var(--s20); }
.nd-content li::marker { color: var(--nd-accent); }
.nd-content > *, .nd-content figure, .nd-content .wp-block-image, .nd-content img { width: 100%; max-width: 100%; margin-inline: 0; }
.nd-content img { height: auto; }

/* Crédito da foto: último parágrafo do corpo, marcado com a classe np-credito-foto (redação/Zenaide) */
.nd-content > .np-credito-foto { margin-top: var(--s60); font-size: 0.75rem; line-height: 1.5; font-weight: 400; font-style: normal; color: var(--nd-text-soft); }

.nd-tags { font-size: var(--fs-small); color: var(--nd-text-soft); margin: var(--s30) 0 0 !important; }
.nd-share { display: flex; justify-content: space-between; align-items: center; gap: var(--s40); flex-wrap: wrap; padding-block: var(--s50); margin: var(--s70) 0 0 !important; }
.nd-share-label { font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--nd-text); }
.nd-share-links { display: flex; gap: var(--s40); flex-wrap: wrap; }
/* Ícones redondos nas cores das marcas, com o nome embaixo; o X vai em off-white porque o preto some no fundo carvão */
.nd-share-item { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s20); min-width: 3.5rem; padding: 0; background: none; border: 0; cursor: pointer; color: var(--nd-text-soft); font-family: var(--nd-body); font-size: var(--fs-meta); line-height: 1.2; }
.nd-share-ico { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ico-bg); color: var(--ico-fg); }
.nd-share-ico svg { width: 1.5rem; height: 1.5rem; }
.nd-share-item--whatsapp { --ico-bg: #25D366; --ico-fg: #FFFFFF; }
.nd-share-item--instagram { --ico-bg: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%); --ico-fg: #FFFFFF; }
.nd-share-item--x { --ico-bg: var(--wp--preset--color--off-white); --ico-fg: #000000; }
.nd-share-item--x .nd-share-ico svg { width: 1.25rem; height: 1.25rem; }
.nd-share-item--facebook { --ico-bg: #1877F2; --ico-fg: #FFFFFF; }
.nd-share-item--facebook .nd-share-ico svg { width: 1.75rem; height: 1.75rem; }
.nd-share-item--copy { --ico-bg: var(--nd-surface-hover); --ico-fg: var(--nd-text); }
@media (max-width: 782px) { .nd-share-links { width: 100%; justify-content: space-between; gap: var(--s20); } .nd-share-item { min-width: 0; } }
@media (max-width: 400px) { .nd-share-links { gap: var(--s10); } .nd-share-ico { width: var(--nd-touch); height: var(--nd-touch); } }
@media (max-width: 359px) { .nd-share-item { font-size: 0.6875rem; } }
.nd-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s40); margin: var(--s50) 0 !important; }
.nd-postnav > * { margin: 0 !important; }
.nd-postnav .wp-block-post-navigation-link { padding: var(--s50); background: var(--nd-surface); font-family: var(--nd-display); font-size: var(--fs-base); font-weight: 500; text-transform: uppercase; line-height: 1.3; }
.nd-postnav .post-navigation-link-next { text-align: right; }
.nd-postnav a { color: var(--nd-text); }
.nd-postnav .post-navigation-link__label { display: block; font-size: var(--fs-meta); letter-spacing: 0.12em; color: var(--nd-text-soft); margin-bottom: var(--s10); }
.nd-block-title { font-size: var(--wp--custom--title--block); margin: var(--s80) 0 var(--s50) !important; }
.nd-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--s50); }
.nd-related-card .nd-thumb { display: block; margin: 0 0 var(--s40) !important; aspect-ratio: 16 / 10; }
.nd-related-card .nd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-related-cat { font-size: var(--fs-meta); letter-spacing: 0.1em; text-transform: uppercase; color: var(--nd-accent); font-weight: 700; margin: 0 0 var(--s10); }
.nd-related-title { font-size: var(--wp--custom--title--related); line-height: 1.2; letter-spacing: 0; margin: 0; }
.nd-related-title a { color: var(--nd-text); }

/* Barra lateral */
.nd-sidebar { display: flex; flex-direction: column; gap: var(--s50); }
.nd-widget { background: var(--nd-surface); padding: var(--s60); }
.nd-widget > * { margin-block: 0 !important; }
.nd-widget ul { list-style: none; padding: 0; margin: 0; }
.nd-widget .wp-block-search__inside-wrapper { background: var(--nd-field); }
.nd-widget .wp-block-search__input { min-height: var(--nd-touch); background: transparent; border: 0; color: var(--nd-text); padding: 0 var(--s40); }
.nd-widget .wp-block-search__button { min-width: var(--nd-touch); min-height: var(--nd-touch); background: var(--nd-primary); color: var(--nd-on-primary); border: 0; padding: 0; margin: 0; }

/* Páginas de texto (Correções, Privacidade, Contato) */
.nd-page { padding: var(--s80) var(--nd-gutter) var(--nd-section); }
.nd-page .wp-block-post-title { margin: 0 0 var(--s60); }

/* Glossário nos posts (inc/glossario.php + assets/glossario.js): termo com sublinhado sutil em primária e
   definição em tooltip off-white (hover e foco no desktop; toque no celular) */
.nd-term { position: relative; cursor: help; text-decoration: underline; text-decoration-color: #203f39; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.nd-term:focus-visible { outline-offset: 3px; border-radius: 4px; }
.nd-tip { display: none; position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 0.75rem); transform: translateX(calc(-50% + var(--nd-tip-shift, 0px))); width: max-content; max-width: min(20rem, calc(100vw - 1.5rem)); padding: var(--s30) var(--s40); background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); border-radius: var(--nd-radius); font-family: var(--nd-body); font-size: var(--fs-small); font-weight: 400; line-height: 1.5; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; cursor: auto; }
.nd-tip strong { display: block; margin-bottom: var(--s10); font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--primaria-escura); }
.nd-tip::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--nd-tip-shift, 0px)); transform: translateX(-50%); border: 0.45rem solid transparent; border-top-color: var(--wp--preset--color--off-white); }
.nd-term.is-below .nd-tip { bottom: auto; top: calc(100% + 0.75rem); }
.nd-term.is-below .nd-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--wp--preset--color--off-white); }
.nd-term:focus-visible .nd-tip, .nd-term:focus-within .nd-tip, .nd-term.is-open .nd-tip { display: block; }
/* Ponte invisível entre a palavra e o balão: o mouse atravessa o espaço sem o tooltip fechar */
.nd-tip::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.9rem; }
.nd-term.is-below .nd-tip::before { top: auto; bottom: 100%; }
.nd-content .nd-tip .nd-tip-more { display: block; width: fit-content; margin-top: var(--s20); font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-meta); letter-spacing: 0.02em; color: var(--wp--preset--color--primaria-escura); text-decoration: none; }
@media (hover: hover) { .nd-term:hover .nd-tip { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .nd-term:hover .nd-tip, .nd-term:focus-visible .nd-tip, .nd-term.is-open .nd-tip { animation: nd-tip-in 0.15s ease both; }
  @keyframes nd-tip-in { from { opacity: 0; } }
}

/* Página do glossário ([nd_glossario] + assets/glossario-page.js): busca e A–Z fixos no topo ao rolar;
   cada letra é uma linha (letra à esquerda, termos em até 3 colunas), sem cards, para caber muitos termos */
.nd-content .nd-gloss-hint { display: flex; align-items: center; gap: var(--s30); margin: 0 0 var(--s50); padding: var(--s30) var(--s40); border-radius: var(--nd-radius); background: var(--nd-surface); color: var(--nd-text-soft); font-size: var(--fs-small); line-height: 1.5; width: fit-content; max-width: 100%; }
.nd-gloss-hint-ico { flex: none; display: inline-flex; color: var(--nd-accent); }
.nd-term-demo { color: var(--nd-text); text-decoration: underline; text-decoration-color: var(--nd-primary); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.nd-gloss-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s30) var(--s40); margin: 0 0 var(--s60); padding: var(--s30) 0; background: var(--nd-bg); }
.nd-gloss-search { display: flex; align-items: center; gap: var(--s30); flex: 1 1 18rem; max-width: 26rem; min-height: var(--nd-touch); padding: 0 var(--s40); border-radius: var(--nd-radius); background: var(--nd-surface); color: var(--nd-text-soft); }
.nd-gloss-search:focus-within { background: var(--nd-surface-hover); }
.nd-gloss-search svg { flex: none; }
.nd-gloss-search input { flex: 1; min-width: 0; min-height: var(--nd-touch); padding: 0; border: 0; background: transparent; color: var(--nd-text); font: inherit; font-size: var(--fs-base); outline: none; }
.nd-gloss-search input::placeholder { color: var(--nd-text-soft); }
.nd-gloss-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.nd-content .nd-gloss-count { margin: 0; font-size: var(--fs-small); color: var(--nd-text-soft); }
.nd-gloss-nav { display: flex; flex-wrap: wrap; gap: var(--s10); flex-basis: 100%; }
.nd-gloss-nav a, .nd-gloss-nav span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; border-radius: 0.5rem; font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-small); }
.nd-gloss-nav a { background: var(--nd-surface); color: var(--nd-text); text-decoration: none !important; }
.nd-gloss-nav span, .nd-gloss-nav a.is-off { background: transparent; color: var(--nd-surface-hover); pointer-events: none; }
.nd-gloss { display: flex; flex-direction: column; }
.nd-gloss-group { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s40); padding: var(--s40) 0; border-top: 1px solid var(--nd-surface); scroll-margin-top: 7rem; }
.nd-content .nd-gloss-letter { margin: 0; padding-top: var(--s20); font-size: var(--fs-h4); line-height: 1; color: var(--nd-accent); }
.nd-gloss-list { margin: 0; }
/* Uma linha por termo: termo numa coluna fixa e definição ao lado, em ordem alfabética de cima para baixo */
.nd-gloss-item { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); gap: var(--s50); align-items: baseline; margin: 0; padding: var(--s20) var(--s30); border-radius: 0.5rem; scroll-margin-top: 7rem; }
.nd-gloss-item:target { background: var(--nd-surface); }
.nd-gloss-item dt { margin: 0; font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.02em; color: var(--nd-text); }
.nd-gloss-item dd { margin: 0; max-width: 72ch; font-size: var(--fs-small); line-height: 1.55; color: var(--nd-text-soft); }
.nd-gloss-item mark { background: var(--wp--preset--color--primaria-profunda); color: var(--nd-text); border-radius: 3px; padding: 0 2px; }
.nd-content .nd-gloss-none { margin: var(--s60) 0 0; color: var(--nd-text-soft); font-size: var(--fs-large); }
@media (max-width: 782px) {
  /* Celular: letras numa linha só, com rolagem lateral, para a barra fixa ocupar pouco espaço */
  .nd-gloss-bar { gap: var(--s20) var(--s30); }
  .nd-gloss-search { max-width: none; flex-basis: 100%; }
  .nd-gloss-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--nd-gutter) * -1); padding-inline: var(--nd-gutter); }
  .nd-gloss-nav::-webkit-scrollbar { display: none; }
  .nd-gloss-nav a, .nd-gloss-nav span { flex: none; min-width: 2.25rem; height: 2.25rem; }
  .nd-gloss-nav span { display: none; }
  .nd-gloss-group, .nd-gloss-item { scroll-margin-top: 9rem; }
}
@media (max-width: 600px) {
  .nd-gloss-group { grid-template-columns: minmax(0, 1fr); gap: var(--s20); }
  .nd-gloss-item { grid-template-columns: minmax(0, 1fr); gap: var(--s10); padding-inline: 0; }
}

/* Estados de erro e vazio (404 e busca) */
.nd-empty { padding: var(--s90) var(--nd-gutter); text-align: center; }
.nd-empty > * { margin-block: 0 var(--s50); }
.nd-empty p { color: var(--nd-text-soft); font-size: var(--fs-large); max-width: 40rem; margin-inline: auto; }
.nd-empty .nd-actions { display: flex; justify-content: center; gap: var(--s40); flex-wrap: wrap; }

/* ==========================================================================
   7. Páginas institucionais (Sobre e Parcerias)
   ========================================================================== */
.nd-about { padding: 0; }
.nd-about-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.nd-about-content > * { margin-block: 0 !important; max-width: none !important; }
.nd-about-title { text-align: center; padding: var(--s80) var(--nd-gutter) var(--s70); margin: 0; }
.nd-about-h { font-size: var(--wp--custom--title--section); line-height: 1.08; margin: 0 0 var(--s40); }
.nd-about-split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s80); padding-bottom: var(--nd-section); }
.nd-about-split { padding-inline: var(--nd-gutter); }
.nd-about-split > .nd-about-art { min-height: clamp(18rem, 36vw, 36rem); height: 100%; }
.nd-about-copy { max-width: 62ch; }
.nd-about-copy > p { margin: 0 0 var(--s40); }
.nd-about-quote { background: var(--nd-surface); padding: var(--s50); color: var(--nd-text-soft); font-size: var(--fs-base); margin: var(--s50) 0 var(--s60) !important; }
.nd-about-art, .nd-about-card-art { position: relative; overflow: hidden; background: var(--art-bg, var(--nd-surface-hover)); display: block; }
.nd-about-art::after, .nd-about-card-art::after { content: attr(data-glyph); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--nd-display); font-weight: 700; font-size: clamp(7rem, 16vw, 14rem); line-height: 1; color: var(--art-glyph, var(--nd-surface)); pointer-events: none; }
.nd-about-art--1, .nd-about-card-art.nd-about-art--1 { --art-bg: var(--wp--preset--color--primaria); --art-glyph: var(--wp--preset--color--primaria-escura); }
.nd-about-art--2, .nd-about-card-art.nd-about-art--2 { --art-bg: var(--wp--preset--color--grafite-2); --art-glyph: var(--wp--preset--color--grafite); }
.nd-about-art--3, .nd-about-card-art.nd-about-art--3 { --art-bg: var(--wp--preset--color--menta); --art-glyph: var(--wp--preset--color--primaria); }
.nd-about-art--4, .nd-about-card-art.nd-about-art--4 { --art-bg: var(--wp--preset--color--primaria-escura); --art-glyph: var(--wp--preset--color--primaria); }
.nd-about-art--5, .nd-about-card-art.nd-about-art--5 { --art-bg: var(--wp--preset--color--grafite); --art-glyph: var(--wp--preset--color--grafite-2); }

/* Frase de destaque (seção clara) */
.nd-about-statement { --nd-bg: var(--wp--preset--color--off-white); --nd-surface: var(--wp--preset--color--superficie-clara); --nd-text: var(--wp--preset--color--carvao); --nd-text-soft: var(--wp--preset--color--suave-escuro); --nd-link: var(--wp--preset--color--primaria-escura); --nd-link-hover: var(--wp--preset--color--carvao); --nd-focus: var(--wp--preset--color--primaria); background: var(--nd-bg); color: var(--nd-text); text-align: center; padding: var(--nd-section) var(--nd-gutter); }
.nd-about-statement h2, .nd-about-statement .nd-kicker { color: var(--nd-text); }
.nd-about-statement-h { font-size: var(--wp--custom--title--statement); line-height: 1.1; max-width: 26ch; margin: 0 auto var(--s60); }
.nd-about-by { display: flex; flex-direction: column; align-items: center; gap: var(--s10); margin: 0; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.06em; }
.nd-about-by strong { color: var(--nd-text); font-family: var(--nd-display); font-weight: 700; }
.nd-about-by span { color: var(--nd-text-soft); }

/* Cartões das editorias */
.nd-about-band { background: var(--nd-surface); padding: var(--nd-section) var(--nd-gutter); }
.nd-about-head { text-align: center; margin: 0 0 var(--s70); }
.nd-about-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s40); }
.nd-about-card { position: relative; display: flex; flex-direction: column; flex: 1 1 13.75rem; max-width: 17.5rem; }
.nd-about-card-art { aspect-ratio: 4 / 5; }
.nd-about-card-box { display: block; margin: calc(var(--s70) * -1) var(--s30) 0; padding: var(--s40) var(--s40); background: var(--nd-bg); position: relative; }
.nd-about-card-box strong { display: block; font-family: var(--nd-display); font-weight: 700; font-size: var(--wp--custom--title--cardbox); text-transform: uppercase; color: var(--nd-text); }
.nd-about-card-box em { display: block; font-style: normal; font-size: var(--fs-small); color: var(--nd-text-soft); }

/* Editorias no celular: slider horizontal (cards de ~78%, o próximo aparece na borda, encaixe por card, sem rolagem vertical) */
@media (max-width: 782px) {
  .nd-about-band .nd-about-cards { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: var(--s40); margin-inline: calc(var(--nd-gutter) * -1); padding-inline: var(--nd-gutter); scroll-padding-inline: var(--nd-gutter); padding-bottom: 0.25rem; }
  .nd-about-band .nd-about-cards::-webkit-scrollbar { display: none; }
  .nd-about-band .nd-about-card { flex: 0 0 78%; max-width: none; scroll-snap-align: start; }
  .nd-about-band .nd-about-card-box { flex: 1; }
  /* A animação de entrada (.nd-reveal, translateY 1.25rem + opacidade 0) conta na área de rolagem do slider e cria rolagem vertical; os cards ficam sempre visíveis aqui. */
  .nd-about-band .nd-about-card.nd-reveal { opacity: 1; transform: none; transition: none; }
}

/* Faixa de largura total em cor sólida */
.nd-about-banner { display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(17.5rem, 30vw, 27.5rem); padding: var(--s70) var(--nd-gutter); background: var(--wp--preset--color--primaria); color: var(--wp--preset--color--carvao); }
.nd-about-banner-inner { width: 100%; max-width: 75rem; display: flex; flex-direction: column; align-items: center; gap: var(--s40); }
.nd-about-banner-inner > * { margin: 0; }
.nd-about-banner .nd-kicker, .nd-about-banner-h, .nd-about-banner p { color: var(--wp--preset--color--carvao); }
.nd-about-banner-h { font-size: var(--wp--custom--title--bannerxl); line-height: 1.02; }
.nd-about-banner .nd-btn { background: var(--wp--preset--color--carvao); color: var(--wp--preset--color--off-white); }
.nd-about-circle { display: inline-flex; align-items: center; gap: var(--s40); min-height: var(--nd-touch); font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--wp--preset--color--carvao); }
.nd-about-circle i { display: inline-flex; align-items: center; justify-content: center; width: var(--nd-touch); height: var(--nd-touch); background: var(--wp--preset--color--carvao); color: var(--wp--preset--color--off-white); font-style: normal; font-size: var(--fs-h5); }

/* Compromissos (seção clara) */
.nd-about-split--rev { --nd-bg: var(--wp--preset--color--off-white); --nd-surface: var(--wp--preset--color--superficie-clara); --nd-text: var(--wp--preset--color--carvao); --nd-text-soft: var(--wp--preset--color--suave-escuro); --nd-link: var(--wp--preset--color--primaria-escura); --nd-link-hover: var(--wp--preset--color--carvao); --nd-focus: var(--wp--preset--color--primaria); grid-template-columns: minmax(0, 0.9fr) 1fr; background: var(--nd-bg); color: var(--nd-text); padding-block: var(--nd-section); padding-bottom: var(--nd-section); }
.nd-about-split--rev h2, .nd-about-split--rev h3, .nd-about-split--rev .nd-kicker { color: var(--nd-text); }
.nd-about-split--rev .nd-about-copy { max-width: none; }
.nd-about-artwrap { position: relative; padding: 0 0 var(--s60); }
.nd-about-art--portrait { min-height: clamp(22rem, 40vw, 40rem); }
.nd-about-overbox { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s50); max-width: 72%; background: var(--wp--preset--color--primaria); color: var(--wp--preset--color--carvao); padding: var(--s50); }
.nd-about-overbox strong { font-family: var(--nd-display); font-weight: 700; font-size: var(--wp--custom--title--overbox); line-height: 1.15; text-transform: uppercase; }
.nd-about-rows { display: flex; flex-direction: column; gap: var(--s20); margin-top: var(--s50); }
.nd-about-row { padding: var(--s50); background: var(--nd-surface); }
.nd-about-row > p { margin: 0; font-size: var(--fs-base); }
.nd-about-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s40); }
.nd-about-row-head h3 { font-size: var(--wp--custom--title--row); line-height: 1.2; letter-spacing: 0; margin: 0; }
.nd-about-row-head span { font-family: var(--nd-display); font-weight: 700; font-size: var(--fs-small); color: var(--nd-text-soft); }
.nd-about-row .nd-about-row-sub { font-size: var(--fs-small); color: var(--nd-text-soft); margin: var(--s10) 0 var(--s30); }

/* Parcerias: texto + colagem de placas (seção clara), lista e últimas atualizações */
.nd-par-split { --nd-bg: var(--wp--preset--color--off-white); --nd-surface: var(--wp--preset--color--superficie-clara); --nd-text: var(--wp--preset--color--carvao); --nd-text-soft: var(--wp--preset--color--suave-escuro); --nd-link: var(--wp--preset--color--primaria-escura); --nd-link-hover: var(--wp--preset--color--carvao); --nd-focus: var(--wp--preset--color--primaria); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--s80); padding: var(--nd-section) var(--nd-gutter); background: var(--nd-bg); color: var(--nd-text); }
.nd-par-split h2, .nd-par-split .nd-kicker { color: var(--nd-text); }
.nd-par-copy > p { margin: 0 0 var(--s40); max-width: 58ch; }
.nd-par-list { list-style: none; margin: var(--s50) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s20) var(--s60); font-size: var(--fs-base); }
.nd-par-list li { display: flex; align-items: baseline; gap: var(--s30); }
.nd-par-list li::before { content: ""; flex: none; width: 0.375rem; height: 0.375rem; background: var(--wp--preset--color--primaria-escura); }
.nd-par-collage { position: relative; min-height: clamp(21rem, 38vw, 37.5rem); }
.nd-par-collage .nd-about-art { position: absolute; }
.nd-par-collage .nd-par-a { right: 0; top: 0; width: 62%; height: 78%; }
.nd-par-collage .nd-par-b { left: 0; bottom: 0; width: 56%; height: 62%; }
.nd-par-collage .nd-about-art::after { font-size: clamp(6rem, 12vw, 11rem); }
.nd-par-updates { padding: var(--nd-section) var(--nd-gutter) var(--nd-section); }
.nd-par-updates .nd-par-updates-head { margin: 0 0 var(--s60); }
.nd-par-updates .nd-par-updates-head > * { margin: 0; }
.nd-par-updates .nd-query .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: var(--s50); }
@media (max-width: 900px) {
  .nd-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s70); }
  .nd-about-split, .nd-about-split--rev, .nd-par-split { grid-template-columns: 1fr; gap: var(--s60); }
  .nd-about-split > .nd-about-art { min-height: 16rem; }
  .nd-about-copy { max-width: none; }
  .nd-par-updates .nd-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nd-postnav { grid-template-columns: 1fr; }
  .nd-postnav .post-navigation-link-next { text-align: left; }
}
@media (max-width: 600px) { .nd-par-list { grid-template-columns: 1fr; } .nd-par-updates .nd-query .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* ==========================================================================
   8. Rodapé e newsletter
   ========================================================================== */
.nd-footer { background: var(--nd-surface); padding: var(--s60) 0 0; }
.nd-footer-word { padding: 0 var(--nd-gutter); line-height: 0; user-select: none; }
.nd-footer-word img { display: block; width: 100%; height: auto; }
.nd-footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: var(--s70); margin-top: clamp(var(--s60), 5vw, var(--s80)); padding: 0 var(--nd-gutter); }
.nd-fcol h3 { font-size: var(--wp--custom--title--footercol); letter-spacing: 0.12em; color: var(--nd-text); margin: 0 0 var(--s50); }
.nd-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nd-fcol a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--nd-text); font-size: var(--fs-base); }
.nd-fbottom { display: flex; justify-content: space-between; gap: var(--s40); flex-wrap: wrap; padding: var(--s50) var(--nd-gutter); margin-top: var(--s80); font-size: var(--fs-small); color: var(--nd-text-soft); }
.nd-fbottom p { margin: 0; }
.nd-fbottom { align-items: center; }
.nd-social { display: inline-flex; align-items: center; justify-content: center; width: var(--nd-touch); height: var(--nd-touch); border-radius: var(--nd-radius); background: var(--nd-bg); color: var(--nd-text); }
.nd-social svg { flex: none; }
.nd-top { position: fixed; right: var(--s50); bottom: var(--s50); z-index: 60; display: flex; align-items: center; justify-content: center; width: var(--nd-touch); height: var(--nd-touch); background: var(--nd-primary); color: var(--nd-on-primary); font-size: var(--fs-h5); }

.nd-newsletter { display: flex; flex-direction: column; gap: var(--s30); width: 100%; }
.nd-nl-field { box-sizing: border-box; display: flex; align-items: center; gap: var(--s30); width: 100%; min-height: 3.5rem; padding-left: var(--s40); background: var(--nd-field); }
.nd-nl-field:focus-within { outline: 2px solid var(--nd-focus); outline-offset: 2px; }
.nd-nl-field svg { flex: none; color: var(--nd-text-soft); }
.nd-nl-field input[type="email"] { flex: 1; min-width: 0; min-height: 3.5rem; background: transparent; border: 0; color: var(--nd-text); font: inherit; font-size: var(--fs-base); padding: 0; outline: none; }
.nd-nl-field input[type="email"]::placeholder { color: var(--nd-text-soft); }
.nd-nl-field button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border: 0; background: var(--nd-primary); color: var(--nd-on-primary); font-size: var(--fs-h5); line-height: 1; cursor: pointer; }
.nd-nl-field button:disabled { background: var(--wp--preset--color--grafite-2); color: var(--wp--preset--color--suave); cursor: wait; }
.nd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; pointer-events: none; }
.nd-nl-msg { min-height: 1.5em; margin: 0; font-size: var(--fs-small); }
.nd-nl-msg.is-ok { color: var(--nd-accent); font-weight: 700; }
.nd-nl-msg.is-error { color: var(--nd-text); font-weight: 700; }
.nd-nl-msg.is-error::before { content: "Erro: "; }
@media (min-width: 783px) { .nd-fcol--cta .nd-newsletter { max-width: max(18.75rem, 50%); } }
@media (max-width: 782px) {
  .nd-footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s60) var(--s50); }
  .nd-fcol--cta { grid-column: 1 / -1; }
  .nd-fcol a { min-height: var(--nd-touch); }
}

/* Home: sem margem automática entre as seções; botão secundário (fundo sólido de superfície) */
.nd-home > * { margin-block: 0 !important; }
.nd-btn--ghost { background: var(--nd-surface); color: var(--nd-text); }

/* Busca (bloco nativo): campo e botão chapados, sem borda, raio ou transição */
.wp-block-search__input, .wp-block-search__button, .wp-block-search__inside-wrapper { border: 0 !important; border-radius: var(--nd-radius) !important; transition: none !important; }
.nd-archive-head .wp-block-search { max-width: 32rem; margin: var(--s50) auto 0; }
.nd-archive-head .wp-block-search__inside-wrapper { background: var(--nd-surface); }
.nd-archive-head .wp-block-search__input { min-height: var(--nd-touch); background: transparent; color: var(--nd-text); padding: 0 var(--s40); }
.nd-archive-head .wp-block-search__button { min-width: var(--nd-touch); min-height: var(--nd-touch); background: var(--nd-primary); color: var(--nd-on-primary); margin: 0; padding: 0; }

/* Campo isca (fora da tela) sem a borda nativa */
.nd-hp { border: 0; padding: 0; }

/* Legendas de foto dentro dos posts: texto suave sólido no lugar de opacidade */
.nd-content p[style*="opacity"] { opacity: 1 !important; font-size: var(--fs-meta) !important; color: var(--nd-text-soft); }

/* Alvos de toque de pelo menos 44px no celular */
@media (max-width: 782px) {
  .nd-gtitle a, .nd-card-title a, .nd-related-title a { display: block; min-height: var(--nd-touch); }
  .nd-fcol a { min-width: var(--nd-touch); }
  .nd-widget li a { min-height: var(--nd-touch); }

  /* Paginação: só a seta, sem o texto "Anterior"/"Próxima" */
  .wp-block-query-pagination-previous, .wp-block-query-pagination-next { font-size: 0; }
  .wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow { font-size: var(--fs-small); margin: 0; }
}

/* Links sem sublinhado (o padrão do WordPress); só os links dentro de parágrafos mantêm, para se distinguirem do texto */
.wp-site-blocks a { text-decoration: none; }

/* Leitura: a coluna lateral começa exatamente no topo da foto (sem a margem automática do bloco) */
.nd-cols > * { margin-block: 0 !important; }

/* Barra lateral: títulos e listas no tamanho padrão do site */
.nd-widget-title { font-size: var(--fs-h5); letter-spacing: 0.04em; color: var(--nd-text); margin-bottom: var(--s50) !important; }
.nd-widget li { display: flex; align-items: center; gap: var(--s30); padding: var(--s10) 0; font-size: var(--fs-base); line-height: 1.35; }
.nd-widget li a { display: inline-flex; align-items: center; min-height: var(--nd-touch); color: var(--nd-text); font-weight: 500; }
.nd-widget .wp-block-latest-posts__list li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: var(--s30); align-items: start; padding: var(--s20) 0; }
.nd-widget .wp-block-latest-posts__featured-image { grid-column: 1; grid-row: 1 / span 2; float: none; margin: 0; }
.nd-widget .wp-block-latest-posts__featured-image a { display: block; min-height: 0; padding: 0; }
.nd-widget .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--nd-radius); }
.nd-widget .wp-block-latest-posts__list li > a { grid-column: 2; min-height: 0; padding: 0; }
.nd-widget .wp-block-latest-posts__post-date { grid-column: 2; display: block; margin-top: var(--s10); font-size: var(--fs-small); color: var(--nd-text-soft); }
.nd-widget .wp-block-search__input { font-size: var(--fs-base); }
.nd-widget .wp-block-search__input::placeholder { color: var(--nd-text-soft); }

/* Quebras de linha: títulos equilibrados, parágrafos sem palavra órfã */
h1, h2, h3, h4, h5, h6, .wp-block-post-title, .nd-kicker, .nd-banner-title { text-wrap: balance; }
p, li, .wp-block-post-excerpt__excerpt, blockquote { text-wrap: pretty; }

/* Raio único (token --nd-radius) nos elementos contidos; faixas de largura total ficam retas */
.nd-btn, .wp-block-button__link, .nd-square, .nd-hero-down, .nd-top, .nd-skip, .nd-datebadge,
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers, .wp-block-query-pagination-numbers > *,
.nd-about-circle i, .nd-nl-field, .nd-nl-field button, .nd-btn--ghost,
.nd-card, .nd-headline-card, .nd-headline-media, .nd-thumb, .nd-gthumb, .nd-hero-art, .nd-art, .nd-about-art, .nd-about-card-art, .nd-about-card-box,
.nd-about-overbox, .nd-about-row, .nd-about-quote, .nd-content blockquote, .nd-postnav .wp-block-post-navigation-link, .nd-widget,
.nd-widget .wp-block-search__inside-wrapper, .nd-archive-head .wp-block-search__inside-wrapper, .nd-header-search .wp-block-search__input, .nd-header-search .wp-block-search__button,
.nd-content img, .wp-block-post-featured-image img, .wp-block-image img { border-radius: var(--nd-radius); }
.nd-headline-card, .nd-card, .nd-widget .wp-block-search__inside-wrapper, .nd-archive-head .wp-block-search__inside-wrapper, .nd-nl-field { overflow: hidden; }
.nd-widget .wp-block-search__input, .nd-widget .wp-block-search__button, .nd-archive-head .wp-block-search__input, .nd-archive-head .wp-block-search__button, .nd-nl-field input[type="email"] { border-radius: 0 !important; }

.nd-about-quote, .nd-about-copy > p { text-wrap: balance; }

/* Quebras de linha da Sobre: parágrafos das linhas de compromissos e do banner não forçam equilíbrio; a quebra manual só vale no desktop */
.nd-about-row > p { max-width: none; text-wrap: pretty; }
.nd-about-banner p:not(.nd-kicker) { text-wrap: pretty; }
.nd-about-banner p .nd-nowrap-line { display: inline-block; }
@media (max-width: 782px) { .nd-about-banner p .nd-br-desktop { display: none; } }

/* Busca: campo e lupa formam uma peça só (lupa dentro do campo); foco por troca de cor de fundo, sem anel */
.nd-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { background: var(--nd-surface); border-radius: var(--nd-radius); overflow: hidden; }
.nd-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper:focus-within { background: var(--nd-surface-hover); }
.nd-header-search .wp-block-search__input { background: transparent; border-radius: 0 !important; }
.nd-header-search .wp-block-search__button { border-radius: 0 !important; }
.wp-block-search__input:focus, .wp-block-search__input:focus-visible { outline: none; }
.nd-widget .wp-block-search__inside-wrapper:focus-within, .nd-archive-head .wp-block-search__inside-wrapper:focus-within { background: var(--nd-surface-hover); }
.nd-about-banner-inner > p:not(.nd-kicker) { max-width: 47.5rem; }

/* Busca: expandir/contrair sutil (largura do campo + fundo); desligado com prefers-reduced-motion */
.nd-header-search .wp-block-search__inside-wrapper { transition: background-color 0.25s ease !important; }
.nd-header-search .wp-block-search__input { width: 13.875rem !important; min-width: 0 !important; transition: width 0.25s ease, padding 0.25s ease !important; }
.nd-header-search.wp-block-search__searchfield-hidden .wp-block-search__input { width: 0 !important; padding-inline: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .nd-header-search .wp-block-search__inside-wrapper, .nd-header-search .wp-block-search__input { transition: none !important; }
}

/* Menu: linha colorida de 3px surge abaixo do texto no hover (barra sólida que cresce da esquerda) */
.nd-nav .wp-block-navigation-item__content { position: relative; }
.nd-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: var(--s10); right: var(--s10); bottom: 0.4rem; height: 3px; background: var(--nd-accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.2s ease; }
.nd-nav .wp-block-navigation-item__content:focus-visible::after { transform: scaleX(1); }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
@media (prefers-reduced-motion: reduce) { .nd-nav .wp-block-navigation-item__content::after { transition: none; } }

/* Título da home: frase que digita e troca (assets/hero-type.js); sem JS ou com movimento reduzido fica o texto fixo */
.nd-hero-title .nd-fill { min-height: 1em; }
.nd-hero-title .nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nd-hero-title .nd-fill.is-typing .nd-type::after { content: ""; display: inline-block; width: 0.06em; height: 0.78em; margin-left: 0.05em; background: currentColor; vertical-align: baseline; animation: nd-caret 1s steps(1) infinite; }
@keyframes nd-caret { 50% { opacity: 0; } }
@media (max-width: 900px) { .nd-hero-title .nd-fill { min-height: 2em; } }
@media (prefers-reduced-motion: reduce) { .nd-hero-title .nd-type::after { animation: none; } }

/* ==========================================================================
   Interação: hover só em desktop com mouse (>900px); no mobile/toque só o estado pressionado (:active), como em um app
   ========================================================================== */
@media (hover: hover) and (min-width: 901px) {
  a:hover { color: var(--nd-link-hover); }
  .nd-light a:hover { color: var(--nd-link-hover); }
  .nd-btn:hover, .wp-block-button__link:hover { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  a:hover > .nd-square, .nd-square:hover { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-nav a:hover { color: var(--nd-accent); }
  .nd-header-search .wp-block-search__button:hover { background: var(--nd-surface); color: var(--nd-accent); }
  .nd-hero-down:hover { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-headline-card:hover { background: var(--nd-surface-hover); }
  .nd-card:hover { background: var(--nd-surface-hover); }
  .nd-card-title a:hover, .nd-gtitle a:hover, .nd-related-title a:hover { color: var(--nd-accent); }
  .nd-gmeta .wp-block-post-terms a:hover { color: var(--nd-text); }
  .wp-block-query-pagination a:hover { background: var(--nd-surface-hover); color: var(--nd-text); }
  .nd-share-item:hover { color: var(--nd-text); }
  .nd-postnav .wp-block-post-navigation-link:hover { background: var(--nd-surface-hover); }
  .nd-widget .wp-block-search__button:hover { background: var(--nd-primary-hover); }
  .nd-about-card:hover .nd-about-card-box { background: var(--nd-surface-hover); }
  .nd-about-banner .nd-btn:hover { background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); }
  .nd-about-circle:hover { color: var(--wp--preset--color--carvao); }
  .nd-about-circle:hover i { background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); }
  .nd-about-overbox:hover { background: var(--wp--preset--color--menta); color: var(--wp--preset--color--carvao); }
  .nd-fcol a:hover { color: var(--nd-accent); }
  .nd-gloss-nav a:hover { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-gloss-item:hover { background: var(--nd-surface); }
  .nd-content .nd-tip .nd-tip-more:hover { color: var(--wp--preset--color--carvao); text-decoration: underline; text-underline-offset: 0.2em; }
  .nd-social:hover { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-top:hover { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-nl-field button:hover { background: var(--nd-primary-hover); }
  .nd-btn--ghost:hover { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-archive-head .wp-block-search__button:hover { background: var(--nd-primary-hover); }
  .wp-site-blocks a:hover { text-decoration: none; }
  .nd-widget li a:hover { color: var(--nd-accent); }
  .nd-header-search .wp-block-search__button:hover { background: transparent; color: var(--nd-accent); }
  .nd-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
  .nd-nl-field button:disabled:hover { background: var(--wp--preset--color--grafite-2); }
}
@media (hover: none), (max-width: 900px) {
  .wp-site-blocks a:hover { text-decoration: none; }
  :where(.wp-site-blocks) .wp-block-search__button:hover { background: var(--nd-primary); color: var(--nd-on-primary); }
  :where(.wp-site-blocks) .nd-header-search .wp-block-search__button:hover { background: transparent; color: var(--nd-text); }
  a:active { color: var(--nd-link-hover); }
  .nd-light a:active { color: var(--nd-link-hover); }
  .nd-btn:active, .wp-block-button__link:active { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  a:active > .nd-square, .nd-square:active { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-nav a:active { color: var(--nd-accent); }
  .nd-header-search .wp-block-search__button:active { background: var(--nd-surface); color: var(--nd-accent); }
  .nd-hero-down:active { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-headline-card:active { background: var(--nd-surface-hover); }
  .nd-card:active { background: var(--nd-surface-hover); }
  .nd-card-title a:active, .nd-gtitle a:active, .nd-related-title a:active { color: var(--nd-accent); }
  .nd-gmeta .wp-block-post-terms a:active { color: var(--nd-text); }
  .wp-block-query-pagination a:active { background: var(--nd-surface-hover); color: var(--nd-text); }
  .nd-share-item:active { color: var(--nd-text); }
  .nd-share-item:active .nd-share-ico { transform: scale(0.94); }
  .nd-postnav .wp-block-post-navigation-link:active { background: var(--nd-surface-hover); }
  .nd-widget .wp-block-search__button:active { background: var(--nd-primary-hover); }
  .nd-about-card:active .nd-about-card-box { background: var(--nd-surface-hover); }
  .nd-about-banner .nd-btn:active { background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); }
  .nd-about-circle:active { color: var(--wp--preset--color--carvao); }
  .nd-about-circle:active i { background: var(--wp--preset--color--off-white); color: var(--wp--preset--color--carvao); }
  .nd-about-overbox:active { background: var(--wp--preset--color--menta); color: var(--wp--preset--color--carvao); }
  .nd-fcol a:active { color: var(--nd-accent); }
  .nd-gloss-nav a:active { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-social:active { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-top:active { background: var(--nd-primary-hover); color: var(--nd-on-primary); }
  .nd-nl-field button:active { background: var(--nd-primary-hover); }
  .nd-btn--ghost:active { background: var(--nd-primary); color: var(--nd-on-primary); }
  .nd-archive-head .wp-block-search__button:active { background: var(--nd-primary-hover); }
  .wp-site-blocks a:active { text-decoration: none; }
  .nd-widget li a:active { color: var(--nd-accent); }
  .nd-header-search .wp-block-search__button:active { background: transparent; color: var(--nd-accent); }
  .nd-nav .wp-block-navigation-item__content:active::after { transform: scaleX(1); }
  a, button, input, label, summary { -webkit-tap-highlight-color: transparent; }
  a, button { touch-action: manipulation; }
}

/* ==========================================================================
   Movimento sutil: revelar ao rolar, transição entre páginas e hover (só desktop com mouse)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .nd-reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.6s ease var(--nd-delay, 0ms), transform 0.6s ease var(--nd-delay, 0ms); }
  .nd-reveal.is-visible { opacity: 1; transform: none; }

  /* Transição entre páginas (navegação no mesmo site): o cabeçalho fica parado, o resto faz fade curto */
  @view-transition { navigation: auto; }
  .nd-header { view-transition-name: nd-header; }
  ::view-transition-group(nd-header) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: nd-vt-out 0.18s ease both; }
  ::view-transition-new(root) { animation: nd-vt-in 0.32s ease both; }
  @keyframes nd-vt-out { to { opacity: 0; } }
  @keyframes nd-vt-in { from { opacity: 0; transform: translateY(0.5rem); } }
}

@media (hover: hover) and (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  a, button, .nd-card, .nd-headline-card, .nd-about-card-box, .nd-about-overbox, .nd-postnav .wp-block-post-navigation-link, .nd-square, .nd-top, .nd-hero-down, .nd-about-circle i, .wp-block-query-pagination a { transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease; }
  .nd-thumb img, .nd-headline-media img { transition: transform 0.5s ease; }

  .nd-card:hover, .nd-about-card:hover .nd-about-card-box { transform: translateY(-4px); }
  .nd-card:hover .nd-thumb img, .nd-headline-card:hover .nd-headline-media img { transform: scale(1.04); }
  .nd-btn:hover, .wp-block-button__link:hover, .nd-about-overbox:hover, .nd-square:hover, a:hover > .nd-square { transform: translateY(-2px); }
  .nd-postnav .wp-block-post-navigation-link:hover { transform: translateX(4px); }
  .nd-share-ico { transition: transform 0.25s ease; }
  .nd-share-item:hover .nd-share-ico { transform: translateY(-2px); }
}

/* Setas de descer/subir a página: rolagem suave, seta que balança de leve (descer) e que sobe ao tocar/passar o mouse (topo) */
.nd-arrow { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .nd-hero-down .nd-arrow { animation: nd-arrow-down 2.4s ease-in-out infinite; }
  .nd-top:active .nd-arrow { transform: translateY(-3px); }
  @keyframes nd-arrow-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
  @keyframes nd-arrow-up { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
}
@media (hover: hover) and (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .nd-top:hover .nd-arrow { animation: nd-arrow-up 0.9s ease-in-out infinite; }
  .nd-hero-down:hover .nd-arrow { animation-duration: 1.2s; }
}

/* Voltar ao topo: aparece na seção de notícias e some perto do rodapé (assets/top.js) */
.nd-top--auto { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(0.75rem); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease, color 0.2s ease; }
.nd-top--auto.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s, background-color 0.2s ease, color 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .nd-top--auto, .nd-top--auto.is-shown { transition: none; } }

/* Frase que muda: no desktop segue em linha única; só no mobile quebra depois de "toda/todo" (a palavra que muda fica sempre embaixo) */
.nd-hero-title .nd-type, .nd-hero-title .nd-sp { display: inline; white-space: pre; }
@media (max-width: 900px) { .nd-hero-title .nd-type { white-space: normal; } }
@media (max-width: 600px) { .nd-hero-title .nd-sp { display: block; height: 0; overflow: hidden; } }

/* Seta do herói: rola até o início do card da manchete (ignora o respiro superior da seção) */
.nd-headline { scroll-margin-top: calc(var(--s70) * -1); }

/* Anterior/Próximo: o card inteiro é clicável (link esticado); o foco de teclado contorna o card */
.nd-postnav .wp-block-post-navigation-link { position: relative; cursor: pointer; }
.nd-postnav .wp-block-post-navigation-link a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nd-postnav .wp-block-post-navigation-link a:focus-visible { outline: none; }
.nd-postnav .wp-block-post-navigation-link:has(a:focus-visible) { outline: 2px solid var(--nd-focus); outline-offset: 2px; }


/* Menu hambúrguer (mobile): painel escuro em tela cheia, itens grandes alinhados à esquerda, sem anel de foco automático */
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: var(--s70); }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { width: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s20); }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; min-height: 3.5rem; padding-inline: 0; font-family: var(--nd-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible { outline: none; color: var(--nd-accent); }
.nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:active { color: var(--nd-accent); }

/* Busca no mobile: a lupa do topo some e a busca vira um campo no topo do menu aberto */
.nd-nav .nd-nav-search { display: none; }
@media (max-width: 900px) {
  .nd-header-search { display: none !important; }
  .nd-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog) { min-height: 100%; display: flex; flex-direction: column; }
  .nd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: stretch; }
  .nd-nav .wp-block-navigation__responsive-container.is-menu-open .nd-nav-search { display: block; width: 100%; margin: auto 0 0; padding-top: var(--s50); }
  .nd-nav-search .wp-block-search__inside-wrapper { display: flex; align-items: center; width: 100%; padding: 0; background: var(--nd-surface); border: 0; border-radius: var(--nd-radius); overflow: hidden; }
  .nd-nav-search .wp-block-search__inside-wrapper:focus-within { background: var(--nd-surface-hover); }
  .nd-nav-search .wp-block-search__input { flex: 1 1 auto; min-width: 0; min-height: var(--nd-touch); padding: 0 var(--s40); background: transparent; color: var(--nd-text); border: 0; border-radius: 0; font-family: var(--nd-body); font-size: 1rem; }
  .nd-nav-search .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; min-width: var(--nd-touch); min-height: var(--nd-touch); margin: 0; padding: 0; background: transparent; color: var(--nd-text); border: 0; border-radius: 0; }
}
