/**
 * monterre-base.css — Design System Monterre aplicado GLOBALMENTE.
 *
 * Carregado em TODAS as páginas (ver inc/enqueue.php). Padroniza tipografia,
 * cores, links, botões, formulários, blockquotes, tables e elementos do
 * Gutenberg em todo o site (single, page, archive, category, search, 404,
 * blog index, comments).
 *
 * Diferente do `front-hero.css` / `manifesto.css` / etc., que são específicos
 * de blocos da home, este arquivo é o "reset editorial Monterre" — aplicado
 * em qualquer rota.
 *
 * Tokens consumidos (do design-tokens.css gerado pelo Legado):
 *   --color-cream         #F4F1EC  bg principal
 *   --color-ink           #00373E  texto
 *   --color-body-muted    #6B6B6B  texto secundário
 *   --color-gold          #9B5945  acento (links hover, italics)
 *   --color-emerald       #00373E  primário (CTAs, headings importantes)
 *   --color-emerald-deep  #002227  bg escuro
 *   --color-divider       #B8A999  bordas hairline
 *   --color-surface-card  #FFFFFF  surface (cards, sidebars)
 *
 * Especificidade: tudo aqui é genérico (sem prefixo .mtr-*), aplicado a
 * elementos HTML semânticos. Páginas/blocos com CSS próprio sobrescrevem
 * naturalmente via specificity.
 */

/* ══════════════════════════════════════════════════════════════
   SHELL CANÔNICO MONTERRE — REGRA FIXA DO DS
   ══════════════════════════════════════════════════════════════
   Define a margem horizontal padrão de todo o projeto. TODOS os
   blocos (header, breadcrumb, archive, single, blog, category,
   sections .mtr-*) DEVEM iniciar exatamente nessa margem — alinhado
   com a logo do header.

   Como aplicar:
     - HTML: <div class="mtr-shell">…</div>
     - OU em CSS interno do bloco:
         max-width: var(--container-max, 1200px);
         margin-inline: auto;
         padding-inline: var(--container-padding, clamp(1rem, 5vw, 3rem));

   Tokens canônicos (NÃO usar --spacing-container-max=1440px aqui):
     --container-max:     1200px              ← largura máxima do shell
     --container-padding: clamp(1rem, 5vw, 3rem)  ← respiro lateral

   Quem já consome (verificar antes de criar novo):
     - .site-header__inner   (header — origem do alinhamento)
     - .container            (breadcrumb wrapper)
     - .mtr-shell            (helper genérico abaixo)
     - .mtr-*__container     (todos os blocos das singles building/portfolio)
   ══════════════════════════════════════════════════════════════ */
.mtr-shell {
    width: 100%;
    max-width: var(--container-max, 1200px);
    margin-inline: auto;
    padding-inline: var(--container-padding, clamp(1rem, 5vw, 3rem));
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   BODY — base do site (exceto front-page que tem header overlay)
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) {
    background: var(--color-cream, #F4F1EC);
    color: var(--color-ink, #00373E);
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════════
   TIPOGRAFIA — headings Cormorant + body Inter
   Aplicado dentro de containers de conteúdo (.entry-content, .site-main,
   .post-content) pra não vazar pra UI do tema (mega-nav etc).
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) .site-main h1,
body.twp-theme:not(.is-front-hero) .site-main h2,
body.twp-theme:not(.is-front-hero) .site-main h3,
body.twp-theme:not(.is-front-hero) .site-main h4,
body.twp-theme:not(.is-front-hero) .entry-content h1,
body.twp-theme:not(.is-front-hero) .entry-content h2,
body.twp-theme:not(.is-front-hero) .entry-content h3,
body.twp-theme:not(.is-front-hero) .entry-content h4 {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--color-ink, #00373E);
    margin: 0 0 1rem;
}

body.twp-theme:not(.is-front-hero) .site-main h1,
body.twp-theme:not(.is-front-hero) .entry-content h1,
body.twp-theme:not(.is-front-hero) .entry-title {
    font-size: clamp(2.25rem, 3vw + 1rem, 4rem);
    line-height: 1.05;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

body.twp-theme:not(.is-front-hero) .site-main h2,
body.twp-theme:not(.is-front-hero) .entry-content h2 {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
    line-height: 1.15;
    margin-top: 2.5rem;
    text-align:left;
}

body.twp-theme:not(.is-front-hero) .site-main h3,
body.twp-theme:not(.is-front-hero) .entry-content h3 {
    font-size: clamp(1.375rem, 1vw + 1rem, 2rem);
    line-height: 1.2;
    margin-top: 2rem;
}

body.twp-theme:not(.is-front-hero) .site-main h4,
body.twp-theme:not(.is-front-hero) .entry-content h4 {
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.5rem);
    line-height: 1.25;
    margin-top: 1.5rem;
}

/* Italic em headings vira dourado Monterre */
body.twp-theme .site-main h1 em,
body.twp-theme .site-main h2 em,
body.twp-theme .site-main h3 em,
body.twp-theme .entry-content h1 em,
body.twp-theme .entry-content h2 em,
body.twp-theme .entry-content h3 em,
body.twp-theme .entry-title em {
    font-style: italic;
    color: var(--color-gold, #9B5945);
}

/* Parágrafos da prose */
body.twp-theme:not(.is-front-hero) .site-main p,
body.twp-theme:not(.is-front-hero) .entry-content p {
    font-size: clamp(0.9375rem, 0.3vw + 0.85rem, 1.0625rem);
    line-height: 1.75;
    color: var(--color-body-muted, #6B6B6B);
    margin: 0 0 1.25rem;
    max-width: var(--spacing-reading-max, 42rem);
}

/* Lead — primeiro parágrafo após h1/h2 com classe explícita */
body.twp-theme .entry-content .has-large-font-size,
body.twp-theme .entry-content .lead,
body.twp-theme .entry-content .wp-block-paragraph.is-style-lead {
    font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
    line-height: 1.65;
    color: var(--color-ink, #00373E);
}

/* Listas */
body.twp-theme .entry-content ul,
body.twp-theme .entry-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
    max-width: var(--spacing-reading-max, 42rem);
    color: var(--color-body-muted, #6B6B6B);
}
body.twp-theme .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
body.twp-theme .entry-content ul li::marker {
    color: var(--color-gold, #9B5945);
}

/* ══════════════════════════════════════════════════════════════
   LINKS — cor base ink, hover dourado
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content a:not(.button):not(.wp-block-button__link):not(.commerce-cta) {
    color: var(--color-emerald, #00373E);
    text-decoration: underline;
    text-decoration-color: var(--color-gold, #9B5945);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 200ms ease, text-decoration-color 200ms ease;
}
body.twp-theme .entry-content a:hover {
    color: var(--color-gold, #9B5945);
}

/* ══════════════════════════════════════════════════════════════
   BLOCKQUOTE editorial Monterre
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content blockquote,
body.twp-theme .entry-content .wp-block-quote {
    margin: 2.5rem 0;
    padding: 1.5rem 0 1.5rem 1.75rem;
    border: 0;
    border-left: 2px solid var(--color-gold, #9B5945);
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.25rem, 0.6vw + 1.125rem, 1.625rem);
    line-height: 1.5;
    color: var(--color-ink, #00373E);
    background: transparent;
    max-width: var(--spacing-reading-max, 42rem);
}
body.twp-theme .entry-content blockquote p {
    font-size: inherit;
    color: inherit;
    margin: 0 0 0.75rem;
}
body.twp-theme .entry-content blockquote cite,
body.twp-theme .entry-content .wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold, #9B5945);
}

/* ══════════════════════════════════════════════════════════════
   PRE / CODE
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content pre,
body.twp-theme .entry-content code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
}
body.twp-theme .entry-content code {
    padding: 0.125em 0.375em;
    background: var(--color-surface-card, #FFFFFF);
    border: 1px solid var(--color-divider, #B8A999);
    border-radius: 3px;
    color: var(--color-emerald, #00373E);
}
body.twp-theme .entry-content pre {
    padding: 1.25rem 1.5rem;
    background: var(--color-emerald-deep, #002227);
    color: var(--color-cream, #F4F1EC);
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
body.twp-theme .entry-content pre code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   IMAGENS e captions (Gutenberg-friendly)
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
}
body.twp-theme .entry-content figure {
    margin: 2rem 0;
}
body.twp-theme .entry-content figcaption,
body.twp-theme .entry-content .wp-caption-text {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-body-muted, #6B6B6B);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.9375rem;
}
body.twp-theme .entry-content th,
body.twp-theme .entry-content td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-divider, #B8A999);
    text-align: left;
}
body.twp-theme .entry-content th {
    font-weight: 600;
    color: var(--color-emerald, #00373E);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--color-gold, #9B5945);
}

/* ══════════════════════════════════════════════════════════════
   BOTÕES (Gutenberg + classes utilitárias do tema)
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .entry-content .wp-block-button__link,
body.twp-theme .entry-content .button,
body.twp-theme .entry-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3.25rem;
    padding-inline: 2rem;
    background: var(--color-emerald, #00373E);
    color: var(--color-cream, #F4F1EC);
    border: 1px solid var(--color-emerald, #00373E);
    border-radius: 2px;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
    cursor: pointer;
}
body.twp-theme .entry-content .wp-block-button__link:hover,
body.twp-theme .entry-content .button:hover,
body.twp-theme .entry-content .btn:hover {
    background: var(--color-gold, #9B5945);
    color: var(--color-emerald-deep, #002227);
    border-color: var(--color-gold, #9B5945);
}

/* ══════════════════════════════════════════════════════════════
   FORMS — inputs, textarea, select
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) input[type="text"],
body.twp-theme:not(.is-front-hero) input[type="email"],
body.twp-theme:not(.is-front-hero) input[type="tel"],
body.twp-theme:not(.is-front-hero) input[type="number"],
body.twp-theme:not(.is-front-hero) input[type="search"],
body.twp-theme:not(.is-front-hero) input[type="url"],
body.twp-theme:not(.is-front-hero) input[type="password"],
body.twp-theme:not(.is-front-hero) textarea,
body.twp-theme:not(.is-front-hero) select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border: 1px solid var(--color-divider, #B8A999);
    border-radius: 2px;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.9375rem;
    color: var(--color-ink, #00373E);
    transition: border-color 200ms ease;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
}
body.twp-theme input:focus,
body.twp-theme textarea:focus,
body.twp-theme select:focus {
    border-color: var(--color-gold, #9B5945);
    box-shadow: 0 0 0 3px rgba(155, 89, 69, 0.15);
}
body.twp-theme label {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-body-muted, #6B6B6B);
}

/* ══════════════════════════════════════════════════════════════
   PAGE / SINGLE — wrapper de conteúdo + header
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) .site-main {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) var(--container-padding, clamp(1rem, 5vw, 3rem));
}
/* Single de empreendimento (body.is-building-single) — fullwidth edge-to-edge.
   As sections .mtr-building-* têm container interno próprio com max-width
   1440px (--spacing-container-max). */
body.twp-theme.is-building-single .site-main,
body.twp-theme.is-avulso-single .site-main,
body.twp-theme.is-portfolio-single .site-main,
body.twp-theme.is-blog-single .site-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Page header padrão (título + meta) */
body.twp-theme:not(.is-front-hero) .page-header,
body.twp-theme:not(.is-front-hero) .entry-header {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto clamp(2.5rem, 4vw, 4rem);
    padding-block: clamp(2rem, 3vw, 3.5rem);
    border-bottom: 1px solid var(--color-divider, #B8A999);
}
body.twp-theme:not(.is-front-hero) .page-title,
body.twp-theme:not(.is-front-hero) .entry-title {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--color-ink, #00373E);
    margin: 0 0 1rem;
}
body.twp-theme:not(.is-front-hero) .entry-meta,
body.twp-theme:not(.is-front-hero) .archive-description {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.8125rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold, #9B5945);
    margin: 0;
}

/* Wrapper de conteúdo singular (post/page) — max-width legível */
body.twp-theme:not(.is-front-hero) .entry-content {
    max-width: var(--spacing-reading-max, 42rem);
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY — grid de posts (estilo similar ao diário)
   ══════════════════════════════════════════════════════════════ */

body.twp-theme.archive .site-main,
body.twp-theme.category .site-main,
body.twp-theme.tag .site-main,
body.twp-theme.search .site-main,
body.twp-theme.author .site-main,
body.twp-theme.blog .site-main,
body.twp-theme.home:not(.is-front-hero) .site-main {
    max-width: var(--container-max, 1200px);
}

/* Loop de posts em archive/category — grid Monterre */
body.twp-theme.archive .site-main > article,
body.twp-theme.category .site-main > article,
body.twp-theme.tag .site-main > article,
body.twp-theme.search .site-main > article,
body.twp-theme.author .site-main > article,
body.twp-theme.blog .site-main > article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-divider, #B8A999);
    max-width: var(--spacing-reading-max, 42rem);
    margin-inline: auto;
}
body.twp-theme.archive .site-main > article:last-child,
body.twp-theme.category .site-main > article:last-child,
body.twp-theme.tag .site-main > article:last-child,
body.twp-theme.search .site-main > article:last-child,
body.twp-theme.author .site-main > article:last-child,
body.twp-theme.blog .site-main > article:last-child {
    border-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   COMMENTS — Monterre style
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .comments-area {
    max-width: var(--spacing-reading-max, 42rem);
    margin: 4rem auto 0;
}
body.twp-theme .comments-title {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 1vw + 1.25rem, 2rem);
    color: var(--color-ink, #00373E);
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gold, #9B5945);
}
body.twp-theme .comment-author {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-weight: 600;
    color: var(--color-emerald, #00373E);
}
body.twp-theme .comment-metadata {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-body-muted, #6B6B6B);
}
body.twp-theme .comment-content {
    margin: 1rem 0;
    color: var(--color-body-muted, #6B6B6B);
}

/* ══════════════════════════════════════════════════════════════
   404 / SEARCH NOT FOUND — centralizado editorial
   ══════════════════════════════════════════════════════════════ */

body.twp-theme.error404 .site-main,
body.twp-theme.search-no-results .site-main {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
body.twp-theme.error404 .page-title,
body.twp-theme.search-no-results .page-title {
    font-size: clamp(4rem, 8vw + 2rem, 8rem);
    line-height: 1;
    color: var(--color-gold, #9B5945);
    font-style: italic;
    margin: 0 0 1rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGINAÇÃO Monterre
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .pagination,
body.twp-theme .navigation.pagination,
body.twp-theme .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: clamp(3rem, 5vw, 5rem);
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.875rem;
}
body.twp-theme .pagination .page-numbers,
body.twp-theme .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-divider, #B8A999);
    color: var(--color-ink, #00373E);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: all 200ms ease;
}
body.twp-theme .pagination .page-numbers:hover,
body.twp-theme .pagination .page-numbers.current,
body.twp-theme .nav-links .page-numbers:hover,
body.twp-theme .nav-links .page-numbers.current {
    background: var(--color-emerald, #00373E);
    color: var(--color-cream, #F4F1EC);
    border-color: var(--color-emerald, #00373E);
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB Monterre — wrapper claro acima do conteúdo
   Override do BLOCK:breadcrumb do tema base (que usava surface escuro).
   Agora: cream bg + hairline gold divisor + tipografia editorial.
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) .breadcrumb-wrapper {
    background: var(--color-cream, #F4F1EC);
    border-bottom: 1px solid var(--color-divider, #B8A999);
    padding-block: clamp(0.875rem, 1.5vw, 1.25rem);
}
body.twp-theme:not(.is-front-hero) .breadcrumb-wrapper .container {
    /* SHELL CANÔNICO MONTERRE — mesmos tokens do .site-header__inner.
       Garante alinhamento exato com a logo do header. */
    max-width: var(--container-max, 1200px);
    padding-inline: var(--container-padding, clamp(1rem, 5vw, 3rem));
    margin: 0 auto;
}

body.twp-theme:not(.is-front-hero) .breadcrumb,
body.twp-theme:not(.is-front-hero) .breadcrumb-item,
body.twp-theme:not(.is-front-hero) .breadcrumb-item a,
body.twp-theme:not(.is-front-hero) .breadcrumb-item span,
body.twp-theme:not(.is-front-hero) .breadcrumb-sep {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-body-muted, #6B6B6B);
}
body.twp-theme:not(.is-front-hero) .breadcrumb-sep {
    margin-inline: 0.625rem;
    color: var(--color-gold, #9B5945);
    opacity: 0.6;
}
body.twp-theme:not(.is-front-hero) .breadcrumb-item a {
    color: var(--color-gold, #9B5945);
    text-decoration: none;
    transition: color 200ms ease;
}
body.twp-theme:not(.is-front-hero) .breadcrumb-item a:hover {
    color: var(--color-emerald, #00373E);
}
body.twp-theme:not(.is-front-hero) .breadcrumb-item--current span {
    color: var(--color-ink, #00373E);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   BLOG HERO Monterre — override do hero verde escuro
   Aplicado em home.php (blog index) + archive/category/tag/author.
   Espaçamento generoso editorial + tipografia Monterre.
   ══════════════════════════════════════════════════════════════ */

body.twp-theme:not(.is-front-hero) .blog-hero {
    /* Tokens ACF customizáveis em wp-admin/admin.php?page=global → tab "Blog".
       Fallback chain: ACF blog_* → default Monterre → hex literal. */
    background: var(--color-blog-hero-bg, var(--color-emerald-deep, #002227));
    color: var(--color-blog-hero-text, var(--color-cream, #F4F1EC));
    padding-block: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(155, 89, 69, 0.15);
}
body.twp-theme:not(.is-front-hero) .blog-hero__bg {
    /* Gradient decorativo Monterre OCULTO — estava mascarando a cor de
       fundo definida via ACF "Blog Hero — Fundo". User setou preto puro
       no painel e o gradient verde+gold por cima fazia parecer verde escuro.
       Display:none deixa o background do .blog-hero (ACF) aparecer puro. */
    display: none;
}
body.twp-theme:not(.is-front-hero) .blog-hero__inner {
    max-width: var(--container-max, 1200px);
    padding-inline: var(--container-padding, clamp(1rem, 5vw, 3rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;          /* gap menor pra hero compacto */
}

/* Eyebrow Monterre (substitui a pílula com border do tema base).
   Cor controlada via ACF Blog Hero — Accent (default: gold Monterre). */
body.twp-theme:not(.is-front-hero) .blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--color-blog-hero-accent, var(--color-gold, #9B5945));
    width: auto;
}
body.twp-theme:not(.is-front-hero) .blog-hero__eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--color-blog-hero-accent, var(--color-gold, #9B5945));
}

/* Título principal — Cormorant Garamond (tamanho compacto pra hero de archive).
   Cor controlada via ACF Blog Hero — Título (default: cream Monterre).
   Hover via ACF Blog Hero — Título hover (aplicado se H1 virar link).
   Specificity (0,4,1) — encadeia .blog-hero .blog-hero__title pra vencer
   a regra global ".site-main h1" (0,3,2) que sobrescrevia a cor. */
body.twp-theme:not(.is-front-hero) .blog-hero .blog-hero__title {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-size: clamp(1.875rem, 5.2vw, 4.5rem);   /* padronizado = hero empreendimentos */
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--color-blog-hero-title, var(--color-cream, #F4F1EC));
    margin: 0;
    transition: color 0.25s ease;
}
body.twp-theme:not(.is-front-hero) .blog-hero__title a {
    color: inherit;
    text-decoration: none;
}
body.twp-theme:not(.is-front-hero) .blog-hero__title:hover,
body.twp-theme:not(.is-front-hero) .blog-hero__title a:hover {
    color: var(--color-blog-hero-title-hover, var(--color-gold, #9B5945));
}
body.twp-theme:not(.is-front-hero) .blog-hero__title em {
    font-style: italic;
    color: var(--color-blog-hero-accent, var(--color-gold, #9B5945));
}

/* ══════════════════════════════════════════════════════════════
   BLOG INDEX (home.php) — grid editorial Monterre
   Replica visual do Diário Monterre (template-parts/home/diario.php)
   pra padronizar o blog index com o resto do site.
   ══════════════════════════════════════════════════════════════ */

body.twp-theme .post-card-padrao-layout {
    padding-block: clamp(3rem, 5vw, 5rem);
}

/* ── Section head (Últimas publicações + contagem) ─────────── */
body.twp-theme .post-card-padrao-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
}
body.twp-theme .post-card-padrao-section-head__title {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    line-height: 1.1;
    color: var(--color-ink, #00373E);
    margin: 0;
}
body.twp-theme .post-card-padrao-section-head__count {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-body-muted, #6B6B6B);
}

/* ── Grid (mobile 1 → 640px 2 → 1024px 3 → 1280px 4) ────────── */
body.twp-theme .post-card-padrao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 3vw, 3rem) clamp(1.25rem, 2vw, 2rem);
}
@media (min-width: 640px)  { body.twp-theme .post-card-padrao-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { body.twp-theme .post-card-padrao-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { body.twp-theme .post-card-padrao-grid { grid-template-columns: repeat(4, 1fr); gap: 3.5rem 2rem; } }

/* ── Card individual ──────────────────────────────────────── */
body.twp-theme .post-card-padrao {
    position: relative;
    background: var(--color-blog-card-bg, #FFFFFF);
    border: 1px solid var(--color-blog-card-border, var(--color-divider, #B8A999));
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 350ms ease, box-shadow 350ms ease, transform 350ms ease;
}
body.twp-theme .post-card-padrao:hover,
body.twp-theme .post-card-padrao:focus-within {
    border-color: rgba(155, 89, 69, 0.4);
    box-shadow: 0 8px 24px rgba(0, 34, 39, 0.06),
                0 2px 6px rgba(155, 89, 69, 0.05);
    transform: translateY(-2px);
}
body.twp-theme .post-card-padrao__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* ── Media (4:5 com zoom hover) ────────────────────────────── */
body.twp-theme .post-card-padrao__media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: rgba(0, 34, 39, 0.06);
}
body.twp-theme .post-card-padrao__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.twp-theme .post-card-padrao__link:hover .post-card-padrao__media img,
body.twp-theme .post-card-padrao__link:focus-visible .post-card-padrao__media img {
    transform: scale(1.06);
}
/* Fallback (sem thumbnail) */
body.twp-theme .post-card-padrao__media-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(155, 89, 69, 0.18) 0%, transparent 60%),
        linear-gradient(155deg, #1a3a2e 0%, #002227 100%);
}
body.twp-theme .post-card-padrao__media-fallback::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 1px;
    background: var(--color-gold, #9B5945);
    opacity: 0.6;
}

/* ── Body (meta + título) ─────────────────────────────────── */
body.twp-theme .post-card-padrao__body {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.5rem 1.5rem 1.75rem;
}
body.twp-theme .post-card-padrao__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold, #9B5945);
}
body.twp-theme .post-card-padrao__meta-sep {
    opacity: 0.5;
}
body.twp-theme .post-card-padrao__date {
    color: var(--color-body-muted, #6B6B6B);
    letter-spacing: 0.18em;
}
/* Specificity (0,4,1) pra vencer a regra `.site-main h3` em monterre-base
   (que é 0,3,2). Encadeia 4 classes ancestrais → __link sempre envolve __title
   (estrutura garantida no card-padrao.php). Sem isso, o h3 generic dentro de
   .site-main sobrescreve cor + font-size + margin do card. */
body.twp-theme .post-card-padrao .post-card-padrao__link .post-card-padrao__title {
    font-family: "Tabac G1", "Times New Roman", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.25rem, 0.5vw + 1.125rem, 1.625rem);
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--color-blog-card-title, var(--color-ink, #00373E));
    margin: 0;
    transition: color 250ms ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.twp-theme .post-card-padrao__link:hover .post-card-padrao__title,
body.twp-theme .post-card-padrao .post-card-padrao__link:hover.post-card-padrao__link .post-card-padrao__title,
body.twp-theme .post-card-padrao .post-card-padrao__link:focus-visible.post-card-padrao__link .post-card-padrao__title {
    color: var(--color-blog-card-hover, var(--color-gold, #9B5945));
}

/* Lead Monterre — herda do hero-text (mesma cor com opacity sutil) */
/* Lead/descrição. Specificity (0,4,1) pra vencer .site-main p global.
   Cor exclusiva via ACF Blog Hero — Lead/Descrição (token novo
   `--color-blog-hero-lead`). Fallback chain: lead → text → cream Monterre. */
body.twp-theme:not(.is-front-hero) .blog-hero .blog-hero__lead {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: clamp(0.9375rem, 0.3vw + 0.85rem, 1.0625rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-blog-hero-lead, var(--color-blog-hero-text, var(--color-cream, #F4F1EC)));
    opacity: 0.85;
    margin: 0;
    max-width: 38rem;
}

/* Ticker tags — Monterre */
body.twp-theme:not(.is-front-hero) .blog-hero__ticker {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
body.twp-theme:not(.is-front-hero) .blog-hero__ticker-label {
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-cream, #F4F1EC);
    opacity: 0.6;
}
body.twp-theme:not(.is-front-hero) .blog-hero__ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
body.twp-theme:not(.is-front-hero) .blog-hero__ticker-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(155, 89, 69, 0.08);
    border: 1px solid rgba(155, 89, 69, 0.3);
    color: var(--color-cream, #F4F1EC);
    font-family: var(--font-body, 'Tabac Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
body.twp-theme:not(.is-front-hero) .blog-hero__ticker-tag:hover {
    background: var(--color-gold, #9B5945);
    border-color: var(--color-gold, #9B5945);
    color: var(--color-emerald-deep, #002227);
}

/* ══════════════════════════════════════════════════════════════
   BLOG MAIN — remove o padding default do .site-main quando estamos
   em home/archive/category (o hero já tem padding próprio).
   ══════════════════════════════════════════════════════════════ */
body.twp-theme.blog .site-main,
body.twp-theme.archive .site-main,
body.twp-theme.category .site-main,
body.twp-theme.tag .site-main,
body.twp-theme.author .site-main {
    padding: 0;        /* hero é full-width; conteúdo abaixo tem container próprio */
    max-width: none;
}
