/* PN · Identidade 0.8.0 · camada tipográfica do site (manual v1.0, cap. 04)
   Só age com body.pn-tipo, que o PHP põe conforme o painel (desligado / páginas de teste / site todo).
   Tomorrow dá impacto, Poppins organiza, Newsreader sustenta a leitura. Valores vêm de tokens.css. */

/* 1. Base: interface em Poppins; globais do Elementor apontando para o trio.
   body.pn-tipo (0,1,1) vence .elementor-kit-659 (0,1,0): a Quantico sai sem mexer no kit. */
body.pn-tipo {
  --bodyfontfamily: var(--pn-font-ui);
  --headingsfontfamily: var(--pn-font-ui);
  --e-global-typography-primary-font-family: var(--pn-font-display);
  --e-global-typography-secondary-font-family: var(--pn-font-ui);
  --e-global-typography-text-font-family: var(--pn-font-ui);
  --e-global-typography-accent-font-family: var(--pn-font-ui);
  --e-global-typography-d43362e-font-family: var(--pn-font-display);
  font-family: var(--pn-font-ui);
}

/* 2. Títulos de página, de artigo e de card: Tomorrow.
   Componentes PN (rede, acervo) e widgets do Elementor com fonte própria não são tocados. */
body.pn-tipo :is(h1.entry-title, .nv-page-title h1, .elementor-widget-theme-post-title .elementor-heading-title, .pn-modelo-artigo h1, .pn-404 h1) {
  font-family: var(--pn-font-display);
  font-weight: 700;
}
body.pn-tipo:is(.single-post, .archive, .search, .error404) :is(h1.entry-title, .nv-page-title h1, .pn-modelo-artigo h1.wp-block-post-title, .pn-404 h1) {
  font-size: var(--pn-text-h1);
  line-height: var(--pn-leading-h1);
}
body.pn-tipo :is(.blog-entry-title, .pn-404-card__titulo) {
  font-family: var(--pn-font-display);
  font-weight: 600;
  line-height: 1.25;
}

/* 3. Leitura: corpo dos artigos nas quatro formas que existem hoje
   (Neve clássico/blocos, modelo de blocos PN, modelo Elementor de post único, artigo montado no Elementor). */
body.pn-tipo.single-post :is(.nv-content-wrap.entry-content, .pn-modelo-artigo .wp-block-post-content, .elementor-widget-theme-post-content, [data-elementor-type="wp-post"] .elementor-widget-text-editor)
  :is(p, li, dd, blockquote, blockquote p):not(:is(.pn-info-artigo, .pn-sumario, .pn-compartilhar, .pn-navegacao, .pn-campo-artigo, .pn-ficha, .sib-form, .wp-block-buttons, nav, figure, .elementor-widget-table-of-contents) *) {
  font-family: var(--pn-font-reading);
  font-size: var(--pn-text-body);
  line-height: var(--pn-leading-body);
  font-weight: 400;
}
body.pn-tipo.single-post :is(.nv-content-wrap.entry-content, .pn-modelo-artigo .wp-block-post-content, .elementor-widget-theme-post-content) h2 {
  font-family: var(--pn-font-ui);
  font-weight: 600;
  font-size: var(--pn-text-h2);
  line-height: var(--pn-leading-h2);
}
body.pn-tipo.single-post :is(.nv-content-wrap.entry-content, .pn-modelo-artigo .wp-block-post-content, .elementor-widget-theme-post-content) h3 {
  font-family: var(--pn-font-ui);
  font-weight: 600;
  font-size: var(--pn-text-h3);
  line-height: var(--pn-leading-h3);
}

/* 4. Apoio: legendas, metadados, botões e campos em Poppins.
   Cabeçalho PN segue o painel (fonte do menu). */
body.pn-tipo :is(figcaption, .wp-caption-text, .wp-element-caption, .elementor-image-caption, .nv-meta-list, .entry-meta, .elementor-post-info) {
  font-family: var(--pn-font-ui);
  font-size: var(--pn-text-meta);
  line-height: 1.5;
}
body.pn-tipo :is(button, .button, input[type="submit"], .wp-block-button__link, .wp-element-button, .elementor-button):not(:is(.pn-site-header, .pn-site-footer) *) {
  font-family: var(--pn-font-ui);
  font-weight: 600;
}
body.pn-tipo :is(input, select, textarea) {
  font-family: var(--pn-font-ui);
}

/* 5. Terceiros com fonte em atributo style (Brevo) ou CSS próprio (Complianz) e a newsletter do rodapé PN,
   que o site-shell.css fixa em Tomorrow com !important. Ícones ficam de fora. */
body.pn-tipo :is(.sib-form, .cmplz-cookiebanner) :not(i, [class*="fa-"], [class*="eicon"], svg, svg *),
body.pn-tipo .pn-site-footer .pn-footer-newsletter :is(.sib-form-block, .sib-form-message-panel, input, button, #EMAIL),
body.pn-tipo .pn-site-footer .pn-footer-newsletter #EMAIL::placeholder {
  font-family: var(--pn-font-ui) !important;
}

/* 0.11.9: itálico em Aleo itálico também nos posts fora do modelo */
body.pn-tipo :is(.entry-content,.elementor-widget-text-editor,.nv-content-wrap) :is(em,i,cite){font-family:var(--pn-font-italic,'Aleo'),Georgia,serif;font-style:italic}
