/*
Theme Name: Diário do Embu
Theme URI: https://diariodoembu.com.br
Description: Tema filho de blocos do Kadence para o portal Diário do Embu (Embu das Artes, SP). Segue o design system Diário do Embu: tokens em theme.json, componentes de-*, templates Home, Matéria, Editoria e Anuncie.
Author: Diário do Embu
Template: kadence
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: diario-do-embu
License: GNU General Public License v2 or later
*/

/* ==========================================================================
   1. Componentes — cópia do design-system/components/bundle.css.
      Mudanças: sem o @import do Google Fonts (fontes locais via theme.json, LGPD) e
      .de-block só com padding-top (o original zerava a margem lateral de .de-container no mobile).
      Ao atualizar o design system, cole o bundle novo aqui de novo.
   ========================================================================== */


/* Diário do Embu — componentes (mobile-first; desktop a partir de 1024px).
   Todas as cores, espaços e raios vêm de tokens.css (variáveis --nome). */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.de, .de { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
:where(.de) a { color: inherit; text-decoration: none; }
.de a:hover .de-card__title, .de a.de-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.de) :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:where(.de) :where(img, svg) { display: block; }
:where(.de) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl) { margin: 0; }
:where(.de) :where(ul, ol) { padding: 0; list-style: none; }
.de-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.de-container { width: 100%; max-width: calc(var(--container) + 2 * var(--space-4)); margin: 0 auto; padding: 0 var(--space-4); }
.de-stack > * + * { margin-top: var(--space-6); }
.de-block { padding-top: var(--space-12); } /* bundle: "padding: var(--space-12) 0 0" zerava a margem lateral de .de-container.de-block */
.de-band { background: var(--paper-alt); padding: var(--space-8) 0; margin-top: var(--space-12); }
.de-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.de-grid-2, .de-grid-3, .de-grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.de-divided > * + * { border-top: 1px solid var(--line); padding-top: var(--space-4); }
@media (min-width: 1024px) {
  .de-container { padding: 0 var(--space-6); max-width: calc(var(--container) + 2 * var(--space-6)); }
  .de-block { padding-top: var(--space-16); }
  .de-band { padding: var(--space-12) 0; margin-top: var(--space-16); }
  .de-layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: var(--space-12); }
  .de-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .de-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .de-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .de-sidebar { display: flex; flex-direction: column; gap: var(--space-8); }
  .de-sticky { position: sticky; top: var(--space-6); }
}

/* ---------- Tipografia utilitária ---------- */
.de-serif { font-family: var(--font-serif); }
.de-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Selo de editoria (kicker) ---------- */
.de-kicker { display: inline-block; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terracota-600); }
.de-kicker--solid { background: var(--terracota-600); color: #fff; padding: 3px 8px; border-radius: var(--radius-sm); }
.de-kicker--soft { background: var(--terracota-100); color: var(--terracota-700); padding: 3px 8px; border-radius: var(--radius-sm); }
.de-kicker--urgente { background: var(--status-crit); color: #fff; padding: 3px 8px; border-radius: var(--radius-sm); }
.de-kicker--aovivo { color: var(--status-crit); }
.de-kicker--aovivo::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--status-crit); margin-right: 6px; vertical-align: 1px; }
.de-kicker--servico { background: var(--info-bg); color: var(--info); padding: 3px 8px; border-radius: var(--radius-sm); }
.de-kicker--patrocinado { color: var(--ink-muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: var(--radius-sm); }

/* ---------- Botões ---------- */
.de-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.de-btn svg { width: 18px; height: 18px; flex: none; }
.de-btn--primary { background: var(--terracota-600); color: #fff; }
.de-btn--primary:hover { background: var(--terracota-700); }
.de-btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.de-btn--secondary:hover { background: var(--ink); color: var(--paper); }
.de-btn--ghost { background: transparent; color: var(--terracota-600); padding-left: 4px; padding-right: 4px; }
.de-btn--ghost:hover { color: var(--terracota-700); text-decoration: underline; text-underline-offset: 3px; }
.de-btn--whatsapp { background: var(--whatsapp); color: #fff; }
.de-btn--whatsapp:hover { background: var(--whatsapp-700); }
.de-btn--inverse { background: var(--paper); color: var(--ink); }
.de-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.de-btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.de-btn--block { width: 100%; }
.de-btn[disabled] { background: var(--line); color: var(--ink-muted); border-color: var(--line); cursor: not-allowed; }

/* ---------- Campo ---------- */
.de-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink-subtle); border-radius: var(--radius-sm); background: var(--paper); font: 400 16px/22px var(--font-sans); color: var(--ink); }
.de-input::placeholder { color: var(--ink-muted); }

/* ---------- Placeholder de imagem ---------- */
.de-ph { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #DCD3C8; overflow: hidden; }
.de-ph::after { content: attr(data-label); position: absolute; left: 10px; bottom: 8px; right: 10px; font: 500 11px/14px var(--font-sans); color: #4A433D; letter-spacing: .02em; }
.de-ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.6%, rgba(29,26,23,.08) 50%, transparent 50.4%), linear-gradient(45deg, transparent 49.6%, rgba(29,26,23,.08) 50%, transparent 50.4%); }
.de-ph--t2 { background: #E6D2C7; }
.de-ph--t3 { background: #CFD6D2; }
.de-ph--t4 { background: #D9D0BE; }
.de-ph--sq { aspect-ratio: 1 / 1; }
.de-ph--43 { aspect-ratio: 4 / 3; }
.de-ph--32 { aspect-ratio: 3 / 2; }

/* ---------- Barra utilitária (topo) ---------- */
.de-topbar { background: var(--paper-alt); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; }
.de-topbar__info { display: flex; align-items: center; gap: var(--space-4); }
.de-topbar__info span + span::before { content: "·"; margin-right: var(--space-4); color: var(--ink-subtle); }
.de-topbar__weather { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.de-topbar__weather svg { width: 16px; height: 16px; color: var(--status-warn); }
.de-topbar__actions { display: flex; align-items: center; gap: var(--space-4); }
.de-social { display: flex; gap: 4px; }
.de-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--ink); border-radius: var(--radius-pill); }
.de-social a:hover { background: var(--terracota-100); color: var(--terracota-700); }
.de-social svg { width: 18px; height: 18px; }
.de-topbar .de-social, .de-topbar__date-long { display: none; }
.de-topbar__info .de-topbar__date-short::before { content: none; }
@media (max-width: 1023px) { .de-share__label { display: none; } }
@media (min-width: 1024px) { .de-topbar .de-social { display: flex; } .de-topbar__date-long { display: inline; } .de-topbar__date-short { display: none; } }

/* ---------- Plantão / Urgente (liga/desliga) ---------- */
.de-plantao { background: var(--terracota-700); color: #fff; }
.de-plantao[hidden] { display: none; }
.de-plantao__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.de-plantao__label { flex: none; background: #fff; color: var(--terracota-700); font: 700 11px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); }
.de-plantao__text { font: 600 15px/20px var(--font-sans); }
.de-plantao__text a { text-decoration: underline; text-underline-offset: 3px; }
.de-plantao__time { margin-left: auto; flex: none; font-size: 13px; opacity: .9; display: none; }
@media (min-width: 1024px) { .de-plantao__time { display: block; } }

/* ---------- Cabeçalho ---------- */
.de-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.de-header__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 64px; gap: var(--space-2); }
.de-header__logo { justify-self: center; }
.de-header__logo svg { height: 32px; width: auto; }
.de-header__logo .de-logo-full { display: none; }
.de-iconbtn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: var(--radius-md); cursor: pointer; }
.de-iconbtn:hover { background: var(--paper-alt); }
.de-iconbtn svg { width: 24px; height: 24px; }
.de-header__tools { display: none; }
.de-nav { border-top: 1px solid var(--line); }
.de-nav ul { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; padding: 0 var(--space-4); margin: 0 calc(-1 * var(--space-4)); }
.de-nav a { display: block; white-space: nowrap; padding: 12px 10px; font: 600 15px/20px var(--font-sans); color: var(--ink); border-bottom: 3px solid transparent; }
.de-nav a:hover { color: var(--terracota-600); }
.de-nav a[aria-current="page"] { border-bottom-color: var(--terracota-600); color: var(--terracota-600); }
@media (min-width: 1024px) {
  .de-header__bar { grid-template-columns: 1fr auto 1fr; min-height: 120px; }
  .de-header__bar > .de-iconbtn { display: none; }
  .de-header__logo { grid-column: 2; }
  .de-header__logo svg.de-logo-full { display: block; height: 72px; }
  .de-header__logo .de-logo-compact { display: none; }
  .de-header__tools { display: flex; grid-column: 3; justify-self: end; align-items: center; gap: var(--space-2); }
  .de-header__ad { grid-column: 1; }
  .de-search { display: flex; align-items: center; border: 1px solid var(--ink-subtle); border-radius: var(--radius-sm); height: 40px; padding: 0 4px 0 12px; width: 220px; }
  .de-search input { border: 0; flex: 1; min-width: 0; font: 400 15px var(--font-sans); background: transparent; color: var(--ink); }
  .de-search input::placeholder { color: var(--ink-muted); }
  .de-search button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; }
  .de-search svg { width: 18px; height: 18px; }
  .de-nav { border-top: 1px solid var(--ink); border-bottom: 0; }
  .de-nav ul { justify-content: center; gap: var(--space-2); padding: 0; margin: 0; overflow: visible; }
  .de-nav a { padding: 14px 14px 11px; }
}

/* ---------- Cabeçalho de bloco ---------- */
.de-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); border-top: 4px solid var(--ink); padding-top: var(--space-3); margin-bottom: var(--space-6); }
.de-section-head__title { font: 700 24px/28px var(--font-serif); color: var(--ink); }
.de-section-head__title a:hover { color: var(--terracota-600); }
.de-section-head__more { font: 600 14px/20px var(--font-sans); color: var(--terracota-600); white-space: nowrap; }
.de-section-head__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.de-section-head--brand { border-top-color: var(--terracota-600); }

/* ---------- Cards de notícia ---------- */
.de-card { display: flex; flex-direction: column; gap: var(--space-2); }
.de-card__media { display: block; margin-bottom: var(--space-2); }
.de-card .de-kicker { align-self: flex-start; justify-self: start; }
.de-card--list .de-ph::after, .de-card--list .de-ph::before { display: none; }
.de-card__title { font-family: var(--font-serif); font-weight: 700; color: var(--ink); text-wrap: pretty; }
.de-card__dek { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.de-card__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-card--manchete .de-card__title { font-size: 30px; line-height: 34px; letter-spacing: -.01em; }
.de-card--manchete .de-card__dek { font-size: 18px; line-height: 27px; }
.de-card--lg .de-card__title { font-size: 24px; line-height: 30px; }
.de-card--md .de-card__title { font-size: 20px; line-height: 26px; }
.de-card--sm .de-card__title { font-size: 18px; line-height: 24px; }
.de-card--sm .de-card__dek { display: none; }
/* Lista: miniatura à direita, sem resumo */
.de-card--list { display: grid; grid-template-columns: 1fr 104px; gap: var(--space-2) var(--space-4); align-items: start; }
.de-card--list .de-card__media { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.de-card--list .de-card__media .de-ph { aspect-ratio: 1 / 1; }
.de-card--list .de-card__title { font-size: 17px; line-height: 23px; }
.de-card--list .de-card__dek { display: none; }
/* Lista só texto (sem foto) */
.de-card--text .de-card__title { font-size: 17px; line-height: 23px; }
/* Horizontal (página de editoria, desktop) */
.de-card--row .de-card__title { font-size: 20px; line-height: 26px; }
@media (min-width: 1024px) {
  .de-card--manchete .de-card__title { font-size: 48px; line-height: 52px; }
  .de-card--manchete .de-card__dek { font-size: 20px; line-height: 30px; }
  .de-card--lg .de-card__title { font-size: 30px; line-height: 36px; }
  .de-card--md .de-card__title { font-size: 22px; line-height: 28px; }
  .de-card--row { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-2) var(--space-6); align-items: start; }
  .de-card--row .de-card__media { grid-row: 1 / span 4; margin: 0; }
  .de-card--row .de-card__title { font-size: 24px; line-height: 30px; }
  .de-card--sm .de-card__dek.de-show-desktop { display: block; font-size: 15px; line-height: 22px; }
}

/* ---------- Publicidade (IAB) ---------- */
.de-ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto; }
.de-ad__label { font: 600 10px/12px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.de-ad__slot { display: flex; align-items: center; justify-content: center; background: var(--ad-bg); border: 1px solid var(--line); color: var(--ink-muted); font: 500 12px/16px var(--font-sans); max-width: 100%; }
.de-ad--728x90 .de-ad__slot { width: 728px; height: 90px; }
.de-ad--970x90 .de-ad__slot { width: 970px; height: 90px; }
.de-ad--320x50 .de-ad__slot { width: 320px; height: 50px; }
.de-ad--320x100 .de-ad__slot { width: 320px; height: 100px; }
.de-ad--300x250 .de-ad__slot { width: 300px; height: 250px; }
.de-ad-row { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.de-ad-break { padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-8) 0; }
.de-only-mobile { display: block; }
.de-only-desktop { display: none; }
@media (min-width: 1024px) { .de-only-mobile { display: none !important; } .de-only-desktop { display: block; } .de-ad.de-only-desktop { display: flex; } .de-ad-row { padding: var(--space-6) 0; } }

/* ---------- Serviço do dia ---------- */
.de-servico { display: grid; gap: var(--space-6); }
.de-servico__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.de-servico__panel h3 { font: 700 13px/18px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--space-3); display: flex; justify-content: space-between; align-items: baseline; }
.de-servico__panel h3 span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.de-traffic li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: 10px 0; border-top: 1px solid var(--line); }
.de-traffic li:first-child { border-top: 0; padding-top: 0; }
.de-traffic__road { font: 600 15px/20px var(--font-sans); color: var(--ink); }
.de-traffic__detail { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-status { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 6px; font: 700 13px/18px var(--font-sans); }
.de-status::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pill); background: currentColor; }
.de-status--ok { color: var(--status-ok); }
.de-status--warn { color: var(--status-warn); }
.de-status--crit { color: var(--status-crit); }
.de-aviso { display: grid; grid-template-columns: 24px 1fr; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.de-aviso + .de-aviso { margin-top: var(--space-3); }
.de-aviso svg { width: 22px; height: 22px; grid-row: 1 / span 2; }
.de-aviso__title { font: 700 15px/20px var(--font-sans); }
.de-aviso__text { font-size: 14px; line-height: 20px; }
.de-aviso--alert { background: var(--alert-bg); color: var(--alert-ink); }
.de-aviso--info { background: var(--info-bg); color: var(--info); }
@media (min-width: 1024px) { .de-servico { grid-template-columns: 1.1fr 1fr 1fr; } }

/* ---------- Mais lidas ---------- */
.de-ranking { counter-reset: r; }
.de-ranking li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.de-ranking li:first-child { border-top: 0; padding-top: 0; }
.de-ranking li::before { content: counter(r); font: 700 32px/30px var(--font-serif); color: var(--terracota-600); }
.de-ranking a { font: 700 17px/23px var(--font-serif); color: var(--ink); }
.de-ranking a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter ---------- */
.de-newsletter { background: var(--terracota-50); border-top: 4px solid var(--terracota-600); padding: var(--space-6); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.de-newsletter h3 { font: 700 22px/28px var(--font-serif); margin-bottom: var(--space-2); }
.de-newsletter p { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.de-newsletter form { display: flex; flex-direction: column; gap: var(--space-2); }
.de-newsletter small { display: block; margin-top: var(--space-2); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.de-newsletter--wide form { flex-direction: column; }
@media (min-width: 1024px) {
  .de-newsletter--wide { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; padding: var(--space-8); }
  .de-newsletter--wide p { margin-bottom: 0; }
  .de-newsletter--wide form { flex-direction: row; }
  .de-newsletter--wide form .de-input { flex: 1; }
}

/* ---------- Chamada canal WhatsApp ---------- */
.de-wa { background: var(--ink); color: var(--on-ink); padding: var(--space-6); display: grid; gap: var(--space-4); align-items: center; border-radius: var(--radius-md); }
.de-wa__icon { width: 52px; height: 52px; border-radius: var(--radius-pill); background: var(--whatsapp); display: flex; align-items: center; justify-content: center; color: #fff; }
.de-wa__icon svg { width: 28px; height: 28px; }
.de-wa h3 { font: 700 24px/30px var(--font-serif); color: #fff; }
.de-wa p { font-size: 15px; line-height: 22px; color: var(--on-ink-muted); margin-top: 4px; }
@media (min-width: 1024px) { .de-wa { grid-template-columns: auto 1fr auto; padding: var(--space-6) var(--space-8); gap: var(--space-6); } }

/* ---------- Agenda ---------- */
.de-agenda { display: flex; gap: var(--space-4); align-items: flex-start; }
.de-agenda__date { flex: none; width: 60px; text-align: center; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 6px 0 8px; background: var(--paper); }
.de-agenda__wd { display: block; font: 700 11px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--terracota-600); }
.de-agenda__day { display: block; font: 700 28px/30px var(--font-serif); color: var(--ink); }
.de-agenda__title { font: 700 18px/24px var(--font-serif); color: var(--ink); }
.de-agenda__info { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 4px; }
.de-agenda__tag { margin-top: 6px; display: inline-block; font: 600 12px/16px var(--font-sans); color: var(--status-ok); }
.de-feira { background: var(--terracota-50); border: 1px solid var(--terracota-100); border-radius: var(--radius-md); padding: var(--space-6); }
.de-feira h3 { font: 700 26px/32px var(--font-serif); margin: var(--space-2) 0; }
.de-feira p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.de-feira dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); margin: var(--space-4) 0; font-size: 14px; line-height: 20px; }
.de-feira dt { font-weight: 700; color: var(--ink); }
.de-feira dd { margin: 0; color: var(--ink); }

/* ---------- Vagas ---------- */
.de-vaga { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.de-vaga:hover { border-color: var(--ink); }
.de-vaga__title { font: 700 18px/24px var(--font-serif); color: var(--ink); }
.de-vaga__company { font: 500 14px/20px var(--font-sans); color: var(--ink); margin-top: 2px; }
.de-vaga__facts { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-vaga__new { display: inline-block; margin-bottom: 6px; font: 700 11px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--status-ok); }

/* ---------- Compartilhar ---------- */
.de-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.de-share__label { font: 600 13px/18px var(--font-sans); color: var(--ink-muted); margin-right: 4px; }
.de-share__round { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); background: var(--paper); }
.de-share__round:hover { border-color: var(--ink); }
.de-share__round svg { width: 18px; height: 18px; }

/* ---------- Matéria ---------- */
.de-article__head { max-width: 860px; }
.de-article__title { font: 700 30px/36px var(--font-serif); letter-spacing: -.01em; margin: var(--space-3) 0; text-wrap: pretty; }
.de-article__dek { font: 400 18px/27px var(--font-sans); color: var(--ink-muted); }
.de-byline { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.de-byline__who { display: flex; gap: var(--space-3); align-items: center; }
.de-avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: #DCD3C8; flex: none; display: flex; align-items: center; justify-content: center; font: 700 15px var(--font-serif); color: var(--ink); }
.de-byline__name { font: 600 15px/20px var(--font-sans); }
.de-byline__name a { color: var(--terracota-600); }
.de-figure { margin-top: var(--space-6); }
.de-figure figcaption { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); padding: 0 var(--space-4); }
.de-figure figcaption b { font-weight: 600; color: var(--ink-muted); }
.de-figure--bleed { margin-left: calc(-1 * var(--space-4)); margin-right: calc(-1 * var(--space-4)); }
.de-prose { max-width: var(--measure); font: 400 18px/30px var(--font-sans); color: var(--ink); }
.de-prose > * + * { margin-top: var(--space-6); }
.de-prose p a { color: var(--terracota-600); text-decoration: underline; text-underline-offset: 3px; }
.de-prose h2 { font: 700 22px/28px var(--font-serif); margin-top: var(--space-8); }
.de-prose ul { list-style: disc; padding-left: 1.2em; }
.de-prose li + li { margin-top: var(--space-2); }
.de-quote { border-top: 2px solid var(--terracota-600); border-bottom: 1px solid var(--line); padding: var(--space-6) 0; margin: var(--space-8) 0 !important; }
.de-quote p { font: italic 500 22px/30px var(--font-serif); color: var(--ink); }
.de-quote cite { display: block; margin-top: var(--space-3); font: normal 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.de-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.de-gallery .de-ph:first-child { grid-column: 1 / -1; }
.de-gallery__caption { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.de-tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 500 14px/20px var(--font-sans); color: var(--ink); }
.de-tag:hover { border-color: var(--terracota-600); color: var(--terracota-600); }
.de-author { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); padding: var(--space-6); background: var(--paper-alt); border-radius: var(--radius-md); }
.de-author .de-avatar { width: 64px; height: 64px; font-size: 22px; }
.de-author__name { font: 700 18px/24px var(--font-serif); }
.de-author__role { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-author__bio { font-size: 15px; line-height: 22px; margin-top: var(--space-2); }
.de-author__links { margin-top: var(--space-3); font: 600 14px/20px var(--font-sans); color: var(--terracota-600); display: flex; gap: var(--space-4); }
.de-updated { color: var(--status-warn); font-weight: 600; }
@media (min-width: 1024px) {
  .de-article__title { font-size: 44px; line-height: 50px; }
  .de-article__dek { font-size: 20px; line-height: 30px; }
  .de-byline { flex-direction: row; align-items: center; justify-content: space-between; }
  .de-figure figcaption { padding: 0; }
  .de-figure--bleed { margin-left: 0; margin-right: 0; }
  .de-prose { font-size: 19px; line-height: 32px; }
  .de-prose h2 { font-size: 26px; line-height: 32px; }
  .de-quote p { font-size: 26px; line-height: 34px; }
  .de-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Página de editoria ---------- */
.de-cat-head { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.de-cat-head h1 { font: 700 36px/40px var(--font-serif); }
.de-cat-head p { font-size: 16px; line-height: 24px; color: var(--ink-muted); margin-top: var(--space-2); max-width: 640px; }
.de-subnav { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.de-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: var(--space-8); }
.de-pagination a, .de-pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); font: 600 15px var(--font-sans); color: var(--ink); }
.de-pagination a:hover { border-color: var(--ink); }
.de-pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.de-pagination .de-pagination__gap { border: 0; min-width: 20px; color: var(--ink-muted); }
@media (min-width: 1024px) { .de-cat-head { padding: var(--space-12) 0 var(--space-8); } .de-cat-head h1 { font-size: 48px; line-height: 52px; } }

/* ---------- Anuncie ---------- */
.de-hero-kit { padding: var(--space-12) 0 var(--space-8); }
.de-hero-kit h1 { font: 700 34px/40px var(--font-serif); max-width: 760px; margin-top: var(--space-3); }
.de-hero-kit p { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 640px; margin-top: var(--space-4); }
.de-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); border-top: 4px solid var(--ink); padding-top: var(--space-6); }
.de-stat__num { font: 700 36px/40px var(--font-serif); color: var(--terracota-600); }
.de-stat__label { font-size: 14px; line-height: 20px; color: var(--ink); margin-top: 4px; }
.de-format { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); background: var(--paper); }
.de-format__mock { background: var(--paper-alt); border-radius: var(--radius-sm); height: 120px; display: flex; align-items: center; justify-content: center; }
.de-format__mock span { background: var(--terracota-100); border: 1px dashed var(--terracota-600); color: var(--terracota-700); font: 600 11px/14px var(--font-sans); display: flex; align-items: center; justify-content: center; }
.de-format h3 { font: 700 20px/26px var(--font-serif); }
.de-format p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.de-format__specs { font: 500 13px/18px var(--font-sans); color: var(--ink); }
.de-checklist li { position: relative; padding-left: 28px; font-size: 16px; line-height: 24px; }
.de-checklist li + li { margin-top: var(--space-3); }
.de-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: var(--radius-pill); background: var(--terracota-100); box-shadow: inset 0 0 0 5px var(--terracota-600); }
.de-contact { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6); }
.de-contact h2 { font: 700 28px/34px var(--font-serif); color: #fff; }
.de-contact p { color: var(--on-ink-muted); margin-top: var(--space-2); font-size: 16px; line-height: 24px; }
.de-contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 1024px) {
  .de-hero-kit { padding: var(--space-16) 0 var(--space-12); }
  .de-hero-kit h1 { font-size: 48px; line-height: 54px; }
  .de-stats { grid-template-columns: repeat(4, 1fr); }
  .de-stat__num { font-size: 48px; line-height: 52px; }
  .de-contact { padding: var(--space-12); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-8); }
  .de-contact__actions { margin-top: 0; }
}

/* ---------- Rodapé ---------- */
.de-footer { background: var(--ink); color: var(--on-ink); margin-top: var(--space-16); padding: var(--space-12) 0 var(--space-6); }
.de-footer__top { display: grid; gap: var(--space-8); }
.de-footer__brand p { color: var(--on-ink-muted); font-size: 14px; line-height: 21px; margin-top: var(--space-4); max-width: 340px; }
.de-footer__brand svg { height: 56px; width: auto; }
.de-footer h4 { font: 700 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: var(--space-3); }
.de-footer__links li + li { margin-top: var(--space-2); }
.de-footer__links a { font-size: 15px; line-height: 22px; color: var(--on-ink); }
.de-footer__links a:hover { color: var(--terracota-200); text-decoration: underline; text-underline-offset: 3px; }
.de-footer .de-social a { color: var(--on-ink); border: 1px solid #4A443E; width: 40px; height: 40px; }
.de-footer .de-social a:hover { background: transparent; color: var(--terracota-200); border-color: var(--terracota-200); }
.de-footer__bottom { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid #3A342F; display: flex; flex-direction: column; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--on-ink-muted); }
@media (min-width: 1024px) {
  .de-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .de-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Destaques da home / editoria ---------- */
.de-hero { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.de-hero__side { display: flex; flex-direction: column; gap: var(--space-4); }
.de-hero__side > * + * { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.de-hero__row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-6); margin-top: var(--space-6); }
.de-hero__row > * + * { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.de-rows > * + * { border-top: 1px solid var(--line); padding-top: var(--space-6); margin-top: var(--space-6); }
@media (min-width: 1024px) {
  .de-hero { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-8); }
  .de-hero__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .de-hero__row > * + * { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: var(--space-6); }
}
@media (max-width: 1023px) { .de-pagination .de-pag-num, .de-pagination .de-pagination__gap { display: none; } }

/* Mobile: card pequeno com foto vira linha de lista (economiza rolagem) */
@media (max-width: 1023px) {
  .de-card--row { display: grid; grid-template-columns: 1fr 104px; gap: var(--space-2) var(--space-4); align-items: start; }
  .de-card--row .de-card__media { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .de-card--row .de-ph { aspect-ratio: 1 / 1; }
  .de-card--row .de-ph::after, .de-card--row .de-ph::before { display: none; }
  .de-card--row .de-card__title { font-size: 18px; line-height: 24px; }
  .de-card--row .de-card__dek { grid-column: 1; font-size: 15px; line-height: 22px; }
  .de-card--row .de-card__meta { grid-column: 1; }
  .de-card--sm:has(.de-card__media) { display: grid; grid-template-columns: 1fr 104px; gap: var(--space-2) var(--space-4); align-items: start; }
  .de-card--sm .de-card__media { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .de-card--sm .de-ph { aspect-ratio: 1 / 1; }
  .de-card--sm .de-ph::after, .de-card--sm .de-ph::before { display: none; }
  .de-card--sm .de-card__title { font-size: 17px; line-height: 23px; }
  .de-grid-4 > article + article, .de-grid-3 > article + article { border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: calc(-1 * var(--space-2)); }
  .de-hide-mobile { display: none !important; }
}
.de-agenda__tag--muted { color: var(--ink-muted); }

/* ==========================================================================
   2. Ponte WordPress — onde a marcação dos blocos difere da marcação das telas.
      Regras com .de na frente precisam vencer o CSS dos blocos do core,
      que é impresso depois deste arquivo.
   ========================================================================== */

/* Utilitários de layout usados nos padrões */
.de-coluna { display: flex; flex-direction: column; gap: var(--space-4); }
.de-grid--topo { align-items: start; }
.de-gap-12 { gap: var(--space-12); }
.de-rows > .de-only-mobile:has(.de-ad) { border-top: 0; padding-top: 0; }

/* Logo como <img> (o SVG vem de assets/logos) */
.de-header__logo img { height: 32px; width: auto; }
.de-footer__brand img { height: 56px; width: auto; }
@media (min-width: 1024px) { .de-header__logo img.de-logo-full { display: block; height: 72px; } }

/* Ícones sociais (bloco nativo): sem cores de marca, tamanho do design system */
.de .de-social.wp-block-social-links { gap: 4px; margin: 0; }
.de .de-social.wp-block-social-links .wp-social-link { color: inherit; background: none; margin: 0; }
.de .de-social.wp-block-social-links .wp-social-link a { padding: 0; }
.de .de-social.wp-block-social-links .wp-social-link svg { width: 18px; height: 18px; }
.de-footer__brand .de-social { margin-top: var(--space-4); }

/* Botões (bloco Botão + estilos de bloco is-style-*) = .de-btn */
.wp-block-button > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); white-space: nowrap; text-decoration: none; background: var(--terracota-600); color: #fff; }
.wp-block-button > .wp-block-button__link:hover { background: var(--terracota-700); color: #fff; }
.wp-block-button.is-style-secondary > .wp-block-button__link { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.wp-block-button.is-style-secondary > .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }
.wp-block-button.is-style-ghost > .wp-block-button__link { background: transparent; color: var(--terracota-600); padding-left: 4px; padding-right: 4px; }
.wp-block-button.is-style-ghost > .wp-block-button__link:hover { color: var(--terracota-700); text-decoration: underline; text-underline-offset: 3px; }
.wp-block-button.is-style-whatsapp > .wp-block-button__link { background: var(--whatsapp); color: #fff; }
.wp-block-button.is-style-whatsapp > .wp-block-button__link:hover { background: var(--whatsapp-700); }
.wp-block-button.is-style-inverse > .wp-block-button__link { background: var(--paper); color: var(--ink); }
.wp-block-button.de-btn-sm > .wp-block-button__link { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.wp-block-button.de-btn-lg > .wp-block-button__link { min-height: 52px; padding: 14px 24px; font-size: 16px; }
/* Ícones de traço 2px via máscara: o WhatsApp sempre com ícone (regra do Button) */
.wp-block-button.is-style-whatsapp > a::before, .wp-block-button.de-ico-email > a::before, .wp-block-button.de-ico-seta > a::after, .de-aviso::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--de-ico) center / contain no-repeat; mask: var(--de-ico) center / contain no-repeat;
}
.is-style-whatsapp { --de-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.6-1.2A9 9 0 1 0 12 3z'/><path d='M9 8.5c0 3.5 3 6.5 6.5 6.5l1-1.6-2-1-1 .8a4.5 4.5 0 0 1-2.2-2.2l.8-1-1-2z' fill='black' stroke='none'/></svg>"); }
.de-ico-email { --de-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>"); }
.de-ico-seta { --de-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); }

/* Selo dentro de caixas cujo CSS estiliza todo <p> (no design o selo é <span>) */
:is(.de-feira, .de-cat-head, .de-hero-kit) .de-kicker { font-size: 12px; line-height: 16px; color: var(--terracota-600); margin: 0; max-width: none; }

/* Cards no Loop de consulta: <ul>/<li> no lugar de <article> soltos */
.de-kicker .wp-block-post-terms__separator, .de-kicker > a ~ a { display: none; }
.de-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.de-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.de-card--manchete .de-card__media img, .de-card--32 .de-card__media img { aspect-ratio: 3 / 2; }
.de-card--list .de-card__media img { aspect-ratio: 1 / 1; }
.de-card--list:not(:has(.de-card__media)), .de-card--row:not(:has(.de-card__media)) { display: flex; }
.de-hero__side > li:not(:first-child) :is(.de-card__media, .de-card__dek) { display: none; }
@media (max-width: 1023px) {
  .de-card--sm .de-card__media img, .de-card--row .de-card__media img { aspect-ratio: 1 / 1; }
  .de-grid-4 > li + li, .de-grid-3 > li + li { border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: calc(-1 * var(--space-2)); }
}

/* Serviço do dia: título do painel com nota, linhas de trânsito e ícones dos avisos */
.de-servico__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.de-servico__panel .de-servico__head h3 { margin-bottom: 0; }
.de-servico__head p { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-traffic > * { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: 10px 0; border-top: 1px solid var(--line); }
.de-traffic > :first-child { border-top: 0; padding-top: 0; }
.de-aviso::before { width: 22px; height: 22px; grid-row: 1 / span 2; }
.de-aviso--alert { --de-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z'/></svg>"); }
.de-aviso--info { --de-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v6M12 7.5h.01'/></svg>"); }

/* Matéria: tags (bloco Termos), citação e legendas do editor */
.de-tags .wp-block-post-terms__separator { display: none; }
.de-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 500 14px/20px var(--font-sans); color: var(--ink); }
.de-tags a:hover { border-color: var(--terracota-600); color: var(--terracota-600); }
.de-prose .wp-block-quote { border-top: 2px solid var(--terracota-600); border-bottom: 1px solid var(--line); padding: var(--space-6) 0; margin: var(--space-8) 0 !important; }
.de-prose .wp-block-quote p { font: italic 500 22px/30px var(--font-serif); color: var(--ink); }
.de-prose .wp-block-quote cite { display: block; margin-top: var(--space-3); font: normal 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.de-prose figcaption { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.de-prose .wp-block-gallery { gap: 4px; }
@media (min-width: 1024px) { .de-prose .wp-block-quote p { font-size: 26px; line-height: 34px; } }

/* Paginação (bloco Paginação da consulta) */
.de-pagination .wp-block-query-pagination-numbers { display: contents; }
.de-pagination a > span { display: inline; min-width: 0; height: auto; padding: 0; border: 0; }
.de-pagination .dots { border: 0; min-width: 20px; color: var(--ink-muted); }
@media (max-width: 1023px) { .de-pagination .page-numbers:not(.current) { display: none; } }

/* Busca/arquivos genéricos (index.html) */
.de-busca { margin-top: var(--space-4); max-width: 640px; }

/* Calhau (anúncio da casa) dentro do espaço de publicidade */
.de-calhau { width: 100%; height: 100%; }
.de-ad__slot .de-calhau a { display: flex; text-decoration: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; padding: var(--space-2) var(--space-4); background: var(--terracota-50); color: var(--ink-muted); font: 400 14px/20px var(--font-sans); text-align: center; }
.de-calhau strong { font: 700 18px/24px var(--font-serif); color: var(--terracota-600); }
.de-calhau a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.de-ad--970x90 .de-calhau a, .de-ad--728x90 .de-calhau a { flex-direction: row; gap: var(--space-4); }
.de-ad--320x50 .de-calhau a { font-size: 0; gap: 0; }
.de-ad--320x50 .de-calhau strong { font-size: 16px; line-height: 20px; }
.de-ad--300x250 .de-calhau strong { font-size: 24px; line-height: 30px; }
