/*
Theme Name: Manoel David Korn de Carvalho
Theme URI: https://manoeldavidkorndecarvalho.com.br
Author: Equipe Manoel David Korn de Carvalho
Author URI: https://manoeldavidkorndecarvalho.com.br
Description: Tema do site manoeldavidkorndecarvalho.com.br — a história pessoal, a origem, a família e as raízes de Manoel David Korn de Carvalho. Home em formato de página única (hero + seções) + blog, com imagens editáveis pelo Personalizador. Construído para performance máxima (Core Web Vitals, fontes e ícones hospedados no próprio tema), semântica forte e indexação por buscadores e IAs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manoeldavidkorndecarvalho
*/

/* =========================================================
   0. FONTES (hospedadas no tema — sem requisições a terceiros)
   Lora (títulos) + Nunito Sans (texto), SIL OFL 1.1, subconjunto latin.
   ========================================================= */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/lora-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(assets/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   2. DESIGN TOKENS — paleta "raízes": verde-floresta, dourado e marfim
   ========================================================= */
:root {
  --c-primary:       #2F5D46;
  --c-primary-dark:  #234634;
  --c-primary-deep:  #16281E;
  --c-ink:           #101C15;
  --c-white:         #FFFFFF;

  --c-accent:        #B88A3E;   /* dourado (detalhes, bordas) */
  --c-accent-bright: #E5C27A;   /* dourado sobre fundo escuro */
  --c-accent-text:   #7A5818;   /* dourado legível sobre fundo claro */

  --c-ivory:         #FAF6EC;
  --c-sand:          #F0E8D6;
  --c-line:          #E3DAC5;
  --c-text:          #222B25;
  --c-muted:         #596259;
  --c-muted-on-dark: #C5CFC4;

  --f-serif: 'Lora', Georgia, "Times New Roman", serif;
  --f-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --container: 1200px;
  --gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --radius: 8px;
  --section-pad: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

/* =========================================================
   3. BASE TIPOGRÁFICA
   ========================================================= */
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-primary-deep);
  letter-spacing: -0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }
p + p { margin-top: 1.1em; }

a.link-underline {
  color: var(--c-primary-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
a.link-underline:hover { color: var(--c-primary-deep); border-color: var(--c-primary-deep); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-text);
  margin-bottom: 0.9em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--c-primary-deep); color: var(--c-white);
  padding: .75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* =========================================================
   4. LAYOUT / CONTAINERS / BOTÕES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.container-narrow { max-width: 760px; margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.bg-white { background: var(--c-white); }
.bg-cream { background: var(--c-ivory); }

.lead { font-size: var(--fs-lead); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.related-posts { border-top: 1px solid var(--c-line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: .03em;
  padding: .9em 1.7em;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--c-primary-dark); color: var(--c-white); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid var(--c-primary-deep);
  color: var(--c-primary-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--c-primary-deep); color: var(--c-white); }

/* =========================================================
   5. HEADER / NAVBAR (sem top bar)
   ========================================================= */
.site-header {
  background: rgba(255,255,255,.97);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 15px rgba(16,28,21,0.05);
  border-bottom: 1px solid var(--c-line);
}
.navbar { display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding-block: .6rem; }

.brand-logo {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  letter-spacing: -0.2px;
  line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
}
.brand-logo img { height: 40px; width: auto; object-fit: contain; }
.brand-logo a:hover { color: var(--c-primary); }

.nav-links { display: flex; align-items: center; list-style: none; gap: 34px; }
.nav-links a {
  font-weight: 700; font-size: 0.95rem; color: var(--c-primary-deep);
  padding-block: .4rem; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--c-primary); border-bottom-color: var(--c-accent); }

/* menu mobile (hambúrguer) */
.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: .6rem; position: relative; z-index: 1200;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--c-primary-deep); display: block; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 20px 32px -8px rgba(16,28,21,.16);
    transition: max-height .3s ease, opacity .2s ease, visibility 0s linear .3s;
  }
  .primary-nav.is-open { max-height: 80vh; opacity: 1; overflow-y: auto; visibility: visible; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 24px 2rem; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--c-line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 1rem 0; border-bottom: 0; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  background-color: var(--c-primary-deep);
  background-image: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(229,194,122,.18);
  box-shadow: 0 0 0 40px rgba(229,194,122,.04), 0 0 0 90px rgba(229,194,122,.025);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-tagline {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--c-accent-bright); font-weight: 800; margin-bottom: 20px; display: block;
}
.hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); line-height: 1.15; margin-bottom: 22px; font-weight: 600; color: var(--c-white); }
.hero p { font-size: var(--fs-lead); color: var(--c-muted-on-dark); line-height: 1.8; margin-bottom: 34px; max-width: 58ch; }

.btn-primary {
  display: inline-block; background-color: var(--c-accent-bright); color: var(--c-primary-deep) !important;
  padding: 15px 32px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.3px; border: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary:hover { background-color: var(--c-white); transform: translateY(-1px); }

.hero-image-wrapper { max-width: 440px; width: 100%; justify-self: center; }
.hero-photo {
  border: 6px solid var(--c-accent);
  border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px;
  overflow: hidden;
  background: var(--c-white);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.hero-caption { font-size: .9rem; color: var(--c-accent-bright); margin-top: .9rem; text-align: center; font-style: italic; max-width: none; }

/* =========================================================
   7. SEÇÕES DE CONTEÚDO (texto em 2 colunas / texto + imagem)
   ========================================================= */
.intro-section { padding: var(--section-pad) 0; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 60px; align-items: start; }
.intro-label { font-size: 0.82rem; font-weight: 800; color: var(--c-accent-text); text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 10px; }
.intro-title { font-family: var(--f-serif); font-size: var(--fs-h2); color: var(--c-primary-deep); line-height: 1.25; font-weight: 600; }
.intro-text { color: var(--c-muted); font-size: 1.05rem; }

.section-about { padding: var(--section-pad) 0; background-color: var(--c-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-box { position: relative; }
.about-img-box > img,
.about-img-box > picture img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.img-caption { font-size: .88rem; color: var(--c-muted); margin-top: 2rem; max-width: none; }

.stat-floating-card {
  position: absolute; bottom: -24px; left: -24px;
  background-color: var(--c-primary); color: var(--c-white);
  padding: 22px 30px; border-radius: var(--radius); border-left: 5px solid var(--c-accent-bright);
  box-shadow: 0 16px 32px rgba(22, 40, 30, 0.32); text-align: left;
}
.stat-floating-card .num { font-size: 2.4rem; font-family: var(--f-serif); font-weight: 700; line-height: 1; color: var(--c-accent-bright); }
.stat-floating-card .desc { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 7px; max-width: 18ch; line-height: 1.4; }
.stat-floating-card .num.is-text { font-size: 1.45rem; line-height: 1.2; }
.stat-floating-card.is-right { left: auto; right: -24px; }

.section-badge { font-size: 0.82rem; color: var(--c-accent-text); text-transform: uppercase; font-weight: 800; letter-spacing: 1.6px; margin-bottom: 8px; display: block; }
.section-heading { font-family: var(--f-serif); font-size: var(--fs-h2); color: var(--c-primary-deep); line-height: 1.3; margin-bottom: 22px; font-weight: 600; }
.center-heading { max-width: 700px; margin: 0 auto 50px; }
.center-heading p { margin-inline: auto; }

.timeline-item { margin-bottom: 22px; padding-left: 18px; border-left: 3px solid var(--c-line); transition: border-color .2s ease; }
.timeline-item:hover { border-left-color: var(--c-accent); }
.timeline-item h3, .timeline-item h4 { font-family: var(--f-serif); font-size: 1.2rem; color: var(--c-primary-deep); margin-bottom: 6px; font-weight: 600; }
.timeline-item p { color: var(--c-muted); font-size: 1rem; }
.timeline-item.is-last { margin-bottom: 0; }

.about-text p { color: var(--c-muted); }
.about-text p + p { margin-top: 1.1em; }

/* Painel de citação (Fé e comunidade) */
.quote-panel {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  aspect-ratio: 5 / 4; padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  border-radius: var(--radius); color: var(--c-white);
  background-color: var(--c-primary-deep);
  background-image: linear-gradient(145deg, var(--c-primary-deep) 0%, var(--c-primary) 100%);
  overflow: hidden;
}
.quote-panel::before {
  content: "\201C"; position: absolute; top: -.1em; left: .12em;
  font-family: var(--f-serif); font-size: 9rem; line-height: 1; color: rgba(229,194,122,.28);
  pointer-events: none;
}
.quote-panel blockquote { position: relative; font-family: var(--f-serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.25; font-weight: 600; color: var(--c-white); }
.quote-panel .quote-by { position: relative; margin-top: 1.1rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--c-accent-bright); }

/* Destaque do laço Einstein / Santa Casa (Família) */
.callout {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem;
  background: var(--c-white); border: 1px solid var(--c-line); border-left: 5px solid var(--c-accent);
  border-radius: var(--radius);
}
.callout h3 { margin-bottom: .4rem; font-size: 1.15rem; }
.callout p { color: var(--c-muted); font-size: 1rem; }

/* Etapas de estudo */
.study-steps { margin-top: 2.2rem; position: relative; padding-left: 2.2rem; counter-reset: step; }
.study-steps::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--c-line); }
.study-steps li { position: relative; padding-bottom: 1.5rem; counter-increment: step; }
.study-steps li:last-child { padding-bottom: 0; }
.study-steps li::before {
  content: ""; position: absolute; left: -2.2rem; top: .35rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--c-white); border: 4px solid var(--c-accent);
}
.study-steps .step-org { display: block; font-family: var(--f-serif); font-weight: 700; font-size: 1.1rem; color: var(--c-primary-deep); }
.study-steps .step-desc { display: block; color: var(--c-muted); font-size: .98rem; }

/* =========================================================
   8. GRID DE DESTAQUES (cards com número)
   ========================================================= */
.section-services { padding: var(--section-pad) 0; background-color: var(--c-ivory); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: left; max-width: 900px; margin-inline: auto; }
.service-card {
  background: var(--c-white); padding: 38px 40px; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(16,28,21,0.04); border: 1px solid var(--c-line); border-top: 4px solid var(--c-accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(16,28,21,0.09); }
.service-card .num { font-family: var(--f-serif); font-size: 2.4rem; color: var(--c-primary); font-weight: 700; line-height: 1; margin-bottom: 12px; }
.service-card h3 { font-family: var(--f-serif); font-size: 1.2rem; color: var(--c-primary-deep); margin-bottom: 10px; font-weight: 600; }
.service-card p { color: var(--c-muted); font-size: 1rem; line-height: 1.7; }

.section-services .center-heading { text-align: center; }
.section-services .center-heading p { color: var(--c-muted); }

/* Cartão escuro "Conheça mais" */
.more-card {
  margin-top: 56px; max-width: 900px; margin-inline: auto;
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
  background-color: var(--c-primary-deep);
  background-image: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--radius); border-left: 6px solid var(--c-accent-bright);
  text-align: left;
}
.more-card h3 { color: var(--c-white); font-size: 1.4rem; margin-bottom: .6rem; }
.more-card p { color: var(--c-muted-on-dark); max-width: 64ch; }
.more-card a {
  color: var(--c-accent-bright); font-weight: 700;
  border-bottom: 2px solid var(--c-accent); padding-bottom: 1px;
  transition: color .15s ease;
}
.more-card a:hover { color: var(--c-white); }

@media (max-width: 991px) {
  .hero-grid, .intro-grid, .about-grid, .services-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .hero h1 { font-size: 2.1rem; }
  .hero-image-wrapper { max-width: 380px; }
  .stat-floating-card, .stat-floating-card.is-right { position: static; margin-top: 20px; display: inline-block; }
  .img-caption { margin-top: 1rem; }
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer { background-color: var(--c-ink); color: var(--c-white); padding: 70px 0 36px; border-top: 4px solid var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 44px; margin-bottom: 40px; }
.footer-heading { font-family: var(--f-serif); font-size: 1.45rem; color: var(--c-white); line-height: 1.3; margin-bottom: 10px; font-weight: 600; }
.footer-label { font-size: var(--fs-small); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-bright); margin-bottom: .8rem; }
.site-footer p { color: var(--c-muted-on-dark); max-width: 42ch; }
.footer-tags { line-height: 1.9; }
.footer-contact { margin-top: 1rem; }
.footer-contact a { color: var(--c-white); border-bottom: 1px solid var(--c-accent); }
.footer-contact a:hover { color: var(--c-accent-bright); }

.footer-social { display: flex; flex-direction: column; gap: .7rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--c-muted-on-dark); font-weight: 700; font-size: .95rem;
  transition: color .15s ease;
}
.footer-social a:hover { color: var(--c-white); }
.footer-social .icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--c-white);
  transition: background-color .15s ease, transform .15s ease, color .15s ease;
}
.footer-social a:hover .icon-wrap { background: var(--c-accent-bright); color: var(--c-primary-deep); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.copyright-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
  font-size: 0.85rem; color: #98A399;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   10. BLOG / ARTIGO
   ========================================================= */
.blog-header { background: var(--c-ivory); padding-block: clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--c-line); }

.breadcrumbs { margin-bottom: 1.1rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem; font-size: var(--fs-small); color: var(--c-muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--c-accent); }
.breadcrumbs a { color: var(--c-muted); font-weight: 700; }
.breadcrumbs a:hover { color: var(--c-primary-deep); }
.breadcrumbs li[aria-current="page"] { color: var(--c-text); font-weight: 700; }

.post-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .post-grid { grid-template-columns: 1fr; } }

.post-grid-related { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .post-grid-related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid-related { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .post-thumb {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--c-sand); margin-bottom: 1rem;
}
.post-card .post-thumb img { width:100%; height:100%; object-fit: cover; transition: transform .3s ease; }
.post-card a:hover .post-thumb img { transform: scale(1.04); }
.post-card .post-meta { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: .4em; }
.post-card h2, .post-card h3 {
  font-size: 1.2rem; margin-bottom: .4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.post-card h2 a, .post-card h3 a { color: var(--c-primary-deep); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--c-primary); }
.post-card p {
  font-size: var(--fs-small); color: var(--c-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-post-header { padding-block: clamp(2.5rem,4vw,4rem) 2rem; background: var(--c-ivory); }
.single-post-header .post-meta { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 1em; }

/* Imagem destacada sempre inteira, sem corte */
.single-post-thumb {
  border-radius: var(--radius); overflow: hidden; margin-block: 2rem;
  background: var(--c-ivory);
  display: flex; justify-content: center;
}
.single-post-thumb img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }

.entry-wrap { padding-bottom: clamp(3rem, 6vw, 5.5rem); }

/* Botões de compartilhamento */
.share-buttons { display: flex; align-items: center; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.share-label { font-size: var(--fs-small); font-weight: 800; color: var(--c-muted); margin-right: .3rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-sand); color: var(--c-primary-deep);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.share-btn:hover { background: var(--c-primary); color: var(--c-white); transform: translateY(-1px); }
.share-btn.is-copied { background: var(--c-primary); color: var(--c-white); }

/* Índice de conteúdo */
.toc {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.4rem;
}
.toc-title { font-size: var(--fs-small); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: .8rem; }
.toc ol { display: flex; flex-direction: column; gap: .55rem; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .95rem; }
.toc li a { color: var(--c-text); font-weight: 700; }
.toc li a:hover { color: var(--c-primary); }
.toc li a::before { content: counter(toc) ". "; color: var(--c-accent-text); font-weight: 800; }
.toc li.toc-level-3 { padding-left: 1.4rem; font-size: .88rem; }
.toc li.toc-level-3 a::before { content: "– "; }

/* Cartão "Sobre o site" ao final do artigo */
.about-card {
  margin-top: 3rem; padding: 1.6rem 1.8rem;
  background: var(--c-ivory); border: 1px solid var(--c-line); border-left: 5px solid var(--c-accent); border-radius: var(--radius);
}
.about-card-title { font-family: var(--f-serif); font-weight: 600; font-size: 1.1rem; color: var(--c-primary-deep); margin-bottom: .5rem; }
.about-card p { color: var(--c-muted); font-size: var(--fs-small); max-width: 60ch; }
.about-card a { color: var(--c-primary-dark); font-weight: 700; border-bottom: 2px solid var(--c-accent); }

.entry-content { max-width: 72ch; margin-inline: auto; font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.6em; }
.entry-content a { color: var(--c-primary-dark); font-weight: 700; border-bottom: 2px solid var(--c-accent); }
.entry-content a:hover { color: var(--c-primary-deep); }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin-block: 1.6em; }
.entry-content figcaption {
  font-size: var(--fs-small); color: var(--c-muted); margin-top: .6em; text-align: center;
}
.entry-content blockquote {
  border-left: 4px solid var(--c-accent); padding-left: 1.2em; font-family: var(--f-serif); font-size: 1.15em; color: var(--c-muted);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; list-style: revert; max-width: 72ch; }
.entry-tags { max-width: 72ch; margin-inline: auto; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.entry-tags a { display:inline-block; font-size: var(--fs-small); background: var(--c-sand); padding: .4em .9em; border-radius: 999px; margin: .2em; }
.entry-tags a:hover { background: var(--c-primary); color: var(--c-white); }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items:center; justify-content:center;
  min-width: 40px; height: 40px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700;
  border: 1px solid var(--c-line);
}
.pagination .page-numbers.current { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--c-primary); }

/* Formulário de busca */
.search-form { display: flex; gap: .6rem; max-width: 420px; margin-top: 1.5rem; }
.search-form input[type="search"] { flex: 1; padding: .75em 1.1em; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-white); }
.search-form input[type="search"]:focus { border-color: var(--c-primary); outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* =========================================================
   11. UTILITIES
   ========================================================= */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
