/* =============================================================================
   Blog do Frame Conexa - folha única, servida em /blog-assets/blog.css.

   É o sistema visual da LANDING ("Huly", web/src/landing/landing.css) portado
   para CSS puro: mesmos tokens (--hly-*), mesma nav em ilhas de vidro escuro,
   mesmas pílulas de 9999px, Inter no texto e Geist só em display. A diferença
   é o destino: aqui a página é de LEITURA, então o corpo do artigo vive numa
   faixa branca com coluna de 680px, e a faixa escura fica só no topo (hero) e
   no CTA final - o ritmo escuro → claro → escuro da landing, em versão curta.

   Sem Tailwind e sem build: o HTML vem do Express (src/blog.js) e esta folha é
   cacheada pelo hash do conteúdo (`?v=`). Sem dark mode, como a landing.
   ========================================================================== */

:root {
  --hly-void: #090a0c;
  --hly-canvas: #303236;
  --hly-card: #111111;
  --hly-edge: #4a4b50;
  --hly-veil: #6b6c6d;
  --hly-smoke: #95979e;
  --hly-ash: #a9a9aa;
  --hly-frost: #d1d1d1;
  --hly-linen: #e5e5e7;
  --hly-paper: #f6f6f6;
  --hly-ink: #050506;
  --hly-iris: #5683da;
  --hly-iris-deep: #4874cd;
  --hly-ember: #ff8964;
  --hly-molasses: #5a250a;
  --hly-roxo: #7b22fb;
  --hly-hair: rgba(74, 75, 80, 0.6);
  --hly-hair-strong: rgba(74, 75, 80, 0.95);
  --texto: #1f2024;
  --texto-suave: #4a4b50;
  --shell: 1200px;
  --nav-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Geist', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #ffffff;
  color: var(--texto);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(86, 131, 218, 0.28); }
:focus-visible { outline: 2px solid var(--hly-iris-deep); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%);
  background: var(--hly-ink); color: #fff;
  padding: 9px 13px; border-radius: 9999px; text-decoration: none; font-size: 14px;
  transition: transform 140ms ease;
}
.skip:focus { transform: translateY(0); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .shell { padding-inline: 32px; } }

/* ------------------------------------------------------------ tipografia */

.eyebrow {
  display: block;
  font-size: 11px; line-height: 1.2; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hly-smoke);
}
.caption { font-size: 12px; line-height: 1.45; color: var(--hly-smoke); }
.lede {
  font-size: 17px; line-height: 1.55; letter-spacing: -0.016em;
  color: var(--hly-ash); text-wrap: pretty; margin: 0;
}
@media (min-width: 768px) { .lede { font-size: 19px; line-height: 1.5; letter-spacing: -0.02em; } }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border-radius: 9999px; border: 1px solid transparent;
  padding: 11px 22px; font: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .24s ease;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-icon { padding: 0; width: 40px; height: 40px; flex: none; }
.btn-primary { background: var(--hly-iris-deep); color: #fff; }
.btn-primary:hover { background: var(--hly-iris); box-shadow: 0 8px 26px -10px rgba(86, 131, 218, .85); }
.btn-white { background: #fff; color: var(--hly-void); }
.btn-white:hover { background: var(--hly-linen); }
.btn-ghost { background: transparent; border-color: var(--hly-canvas); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--hly-void); }
.btn-outline { background: transparent; border-color: var(--hly-frost); color: var(--hly-ink); }
.btn-outline:hover { background: var(--hly-ink); border-color: var(--hly-ink); color: #fff; }

/* ----------------------------------------------------------------- chips */

.chip, .chip-link {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%;
  border-radius: 9999px; padding: 5px 12px;
  font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none;
}
.chip-iris { background: rgba(86, 131, 218, 0.12); color: var(--hly-iris-deep); }
.chip-link {
  border: 1px solid var(--hly-frost); color: var(--hly-edge); font-size: 12px; padding: 7px 14px;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.chip-link:hover { border-color: var(--hly-veil); color: var(--hly-ink); }
.chip-link.is-active { background: var(--hly-ink); border-color: var(--hly-ink); color: #fff; }

/* ------------------------------------------------------------------- nav */

.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.ilha {
  border-radius: 9999px;
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 30px -22px rgba(0, 0, 0, 0.95);
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ilha { background: rgba(9, 10, 12, 0.92); }
}
.marca {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 7px 18px 7px 14px; text-decoration: none; user-select: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
}
.marca img { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 28px; padding: 8px 22px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.navlink {
  font-size: 14px; letter-spacing: -0.01em; color: var(--hly-ash); text-decoration: none;
  transition: color .18s ease;
}
.navlink:hover, .navlink.is-active { color: #fff; }
.nav-acoes { display: flex; align-items: center; gap: 4px; padding: 4px; }
.nav-acoes .btn-ghost { border-color: transparent; }
.nav-acoes .btn-ghost:hover { border-color: #fff; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
.nav-toggle { font-size: 16px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; padding-block: 12px 16px;
  border-radius: 20px;
  background: rgba(9, 10, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile .navlink { padding: 12px 4px; font-size: 15px; }
.nav-mobile .btn { margin-top: 8px; }

/* -------------------------------------------------------------- hero/dark */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hly-void); color: #fff;
  padding: calc(var(--nav-h) + 56px) 0 56px;
}
.hero::before {
  /* Um eco discreto da aurora da landing: só o estouro quente, sem a viga,
     porque a viga acontece uma vez no site inteiro (no hero da landing). */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 18% 0%, rgba(86, 131, 218, 0.28) 0%, rgba(86, 131, 218, 0) 60%),
    radial-gradient(50% 60% at 85% 10%, rgba(255, 137, 100, 0.18) 0%, rgba(255, 137, 100, 0) 62%);
}
@media (min-width: 768px) { .hero { padding: calc(var(--nav-h) + 80px) 0 72px; } }
.hero-inner { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600;
  margin: 0; text-wrap: balance;
}
.hero .lede { color: var(--hly-ash); max-width: 640px; }
.hero .btn { align-self: flex-start; margin-top: 8px; }

/* --------------------------------------------------------------- índice */

.claro { background: #fff; color: var(--hly-ink); padding: 48px 0 72px; }
@media (min-width: 768px) { .claro { padding: 64px 0 96px; } }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.grade { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.grade-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 12px; border: 1px solid var(--hly-frost); background: #fff;
  color: var(--hly-ink); text-decoration: none;
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.card:hover { border-color: var(--hly-veil); transform: translateY(-2px); box-shadow: 0 18px 40px -30px rgba(5, 5, 6, 0.35); }
.card-titulo {
  margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance;
}
.card-desc { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: var(--texto-suave); flex: 1; }
.card-meta { font-size: 12px; color: var(--hly-veil); }
.card-destaque {
  margin-bottom: 22px; padding: 30px; background: var(--hly-card); border-color: var(--hly-hair); color: #fff;
  overflow: hidden;
}
.card-destaque::before {
  content: ''; position: absolute; width: 380px; height: 380px; top: -190px; right: -140px; border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(86, 131, 218, 0.5) 0%, rgba(86, 131, 218, 0.14) 44%, rgba(86, 131, 218, 0) 70%);
  opacity: .5;
}
.card-destaque > * { position: relative; }
.card-destaque .chip-iris { color: #9dbaf0; }
.card-destaque .card-titulo {
  font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.028em; max-width: 760px;
}
.card-destaque .card-desc { color: var(--hly-ash); font-size: 16px; max-width: 700px; }
.card-destaque .card-meta { color: var(--hly-smoke); }
.card-destaque:hover { border-color: var(--hly-hair-strong); }
.vazio { color: var(--hly-veil); }
.paginacao {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hly-linen);
}
.secao-titulo {
  font-family: var(--display); font-size: 26px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 24px;
}

/* ---------------------------------------------------------------- artigo */

.post-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px;
}
@media (min-width: 1100px) {
  .post-grid { grid-template-columns: minmax(0, 720px) 300px; justify-content: center; gap: 64px; padding-top: calc(var(--nav-h) + 56px); }
}
.post-main { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--hly-veil); }
.crumbs a { color: var(--hly-veil); text-decoration: none; }
.crumbs a:hover { color: var(--hly-ink); }
.crumbs .sep { color: var(--hly-frost); }
.hero .crumbs, .hero .crumbs a { color: var(--hly-smoke); }
.hero .crumbs a:hover { color: #fff; }
.hero .crumbs [aria-current] { color: var(--hly-ash); }

.post-head { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 36px; }
.post-head .chip { text-decoration: none; }
.post-head h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
  margin: 0; color: var(--hly-ink); text-wrap: balance;
}
.post-head .lede { color: var(--texto-suave); }
.byline { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.byline img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; flex: none; }
.byline-texto { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.byline-autor { color: var(--hly-ink); font-weight: 500; }
.byline-autor a { color: inherit; text-decoration: none; }
.byline-autor a:hover { color: var(--hly-iris-deep); }
.byline-meta { color: var(--hly-veil); }

/* Sumário. No trilho (desktop) é sticky; no celular vira um <details> no topo. */
.toc-titulo { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hly-veil); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.4; color: var(--texto-suave); text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.toc a:hover { color: var(--hly-ink); background: var(--hly-paper); }
.toc a.is-active { color: var(--hly-iris-deep); border-left-color: var(--hly-iris-deep); }
.toc-h3 a { padding-left: 22px; font-size: 13px; color: var(--hly-veil); }
.toc-mobile { border: 1px solid var(--hly-frost); border-radius: 12px; padding: 4px 16px; margin-bottom: 32px; }
.toc-mobile summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '+'; color: var(--hly-veil); font-size: 18px; }
.toc-mobile[open] summary::after { content: '−'; }
.toc-mobile .toc { padding: 4px 0 12px; }
.toc-mobile .toc-titulo { display: none; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }

.post-rail { display: none; }
@media (min-width: 1100px) {
  .post-rail { display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
}
.rail-cta {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 12px;
  background: var(--hly-card); border: 1px solid var(--hly-hair); color: #fff; position: relative; overflow: hidden;
}
.rail-cta::before {
  content: ''; position: absolute; width: 260px; height: 260px; top: -140px; right: -100px; border-radius: 9999px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 170, 129, 0.4) 0%, rgba(255, 218, 159, 0.14) 42%, rgba(255, 218, 159, 0) 70%);
  opacity: .42;
}
.rail-cta > * { position: relative; }
.rail-cta-titulo { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.rail-cta-texto { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--hly-ash); }
.rail-cta .btn { align-self: flex-start; }

/* Corpo do artigo: a coluna de leitura. 17px/1.7 é o par que aguenta 2.500
   palavras sem cansar; o tracking levemente negativo é o da Inter em texto. */
.post-body { font-size: 17px; line-height: 1.7; letter-spacing: -0.006em; color: var(--texto); }
.post-body > * { margin: 0 0 1.25em; }
.post-body h2 {
  font-family: var(--display); font-size: 27px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600;
  color: var(--hly-ink); margin: 2.2em 0 0.7em; text-wrap: balance;
}
.post-body h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; color: var(--hly-ink); margin: 1.8em 0 0.6em; }
.post-body h4 { font-size: 17px; font-weight: 600; margin: 1.5em 0 0.5em; }
.post-body a { color: var(--hly-iris-deep); text-decoration: underline; text-decoration-color: rgba(72, 116, 205, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-color: var(--hly-iris-deep); }
.post-body strong { font-weight: 600; color: var(--hly-ink); }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 0.4em 0; }
.post-body li::marker { color: var(--hly-iris-deep); }
.post-body hr { border: 0; border-top: 1px solid var(--hly-linen); margin: 2.5em 0; }
.post-body img { border-radius: 12px; border: 1px solid var(--hly-frost); }
.post-body p code, .post-body li code, .post-body td code, .faq-resposta code {
  font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px;
  background: var(--hly-paper); border: 1px solid var(--hly-linen); color: #3b3c41;
}
.post-body blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hly-frost); color: var(--texto-suave); font-style: italic;
}
.post-body blockquote p { margin: 0; }
.callout, .post-body blockquote.callout {
  border: 1px solid rgba(86, 131, 218, 0.28); border-left-width: 3px; border-left-color: var(--hly-iris-deep);
  background: rgba(86, 131, 218, 0.06); border-radius: 12px; padding: 16px 18px; font-style: normal; color: var(--texto);
}
.post-body blockquote.callout-atencao, .post-body blockquote.callout-aviso, .post-body blockquote.callout-importante {
  border-color: rgba(255, 137, 100, 0.45); border-left-color: var(--hly-molasses); background: rgba(255, 137, 100, 0.09);
}
.post-body blockquote.callout strong { color: var(--hly-ink); }

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--hly-frost); border-radius: 12px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; margin: 0; }
.post-body th, .post-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hly-linen); }
.post-body th { background: var(--hly-paper); font-weight: 600; color: var(--hly-ink); white-space: nowrap; }
.post-body tr:last-child td { border-bottom: 0; }

/* Código: bloco escuro, como o `.hly-code` da landing. */
.code { margin: 1.5em 0; border-radius: 12px; border: 1px solid var(--hly-hair); background: #0c0c0e; overflow: hidden; color: var(--hly-smoke); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--hly-hair); background: rgba(255, 255, 255, 0.015); font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--hly-smoke); }
.code-copy { border: 1px solid var(--hly-edge); background: transparent; color: var(--hly-ash); border-radius: 9999px; padding: 4px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.code-copy:hover { border-color: #fff; color: #fff; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d5d6da; tab-size: 2; }
.code code { font-family: inherit; }

/* FAQ: <details> com o <h3> dentro do <summary>, para o texto ficar no HTML e
   a hierarquia de headings continuar inteira. */
.post-faq { margin-top: 56px; padding-top: 8px; }
.post-faq h2 { font-family: var(--display); font-size: 27px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 8px; color: var(--hly-ink); }
.faq-item { border-top: 1px solid var(--hly-linen); }
.faq-item:last-of-type { border-bottom: 1px solid var(--hly-linen); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.016em; line-height: 1.4; color: var(--hly-ink); }
.faq-item summary:hover h3 { color: var(--hly-iris-deep); }
.faq-mais { position: relative; flex: none; width: 14px; height: 14px; }
.faq-mais::before, .faq-mais::after { content: ''; position: absolute; background: var(--hly-veil); border-radius: 2px; transition: transform .2s ease; }
.faq-mais::before { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-mais::after { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-item[open] .faq-mais::before { transform: rotate(90deg); }
.faq-resposta { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--texto-suave); max-width: 64ch; }
.faq-resposta > * { margin: 0 0 1em; }
.faq-resposta > *:last-child { margin-bottom: 0; }
.faq-resposta a { color: var(--hly-iris-deep); }

.autor-box {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px;
  border: 1px solid var(--hly-frost); border-radius: 12px; background: var(--hly-paper);
}
.autor-box img { width: 64px; height: 64px; border-radius: 9999px; object-fit: cover; flex: none; }
.autor-nome { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--hly-ink); }
.autor-nome a { color: inherit; text-decoration: none; }
.autor-nome a:hover { color: var(--hly-iris-deep); }
.autor-nome span { font-weight: 400; color: var(--hly-veil); }
.autor-bio { margin: 0; font-size: 14px; line-height: 1.55; color: var(--texto-suave); }

.relacionados { margin-top: 56px; }
.relacionados h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 20px; color: var(--hly-ink); }
.relacionados .card { padding: 20px; }
.relacionados .card-titulo { font-size: 16px; }

/* ------------------------------------------------------------------- CTA */

.cta-band { background: var(--hly-void); padding: 40px 0 88px; }
.pagina-indice .cta-band, .pagina-autor .cta-band { padding-top: 0; }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 30px; border: 1px solid var(--hly-hair);
  background: linear-gradient(180deg, #131316 0%, #0b0c0e 62%);
  padding: 64px 24px; text-align: center; color: #fff;
}
@media (min-width: 1024px) { .cta-panel { padding: 88px 64px; } }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(50% 58% at 50% 104%, rgba(255, 170, 129, 0.5) 0%, rgba(255, 218, 159, 0) 62%),
    radial-gradient(76% 88% at 50% 114%, rgba(86, 131, 218, 0.58) 0%, rgba(86, 131, 218, 0) 66%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-inner h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; max-width: 720px; text-wrap: balance; }
.cta-inner p { margin: 0; max-width: 560px; color: var(--hly-ash); font-size: 17px; line-height: 1.5; }
.cta-botoes { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .cta-botoes { flex-direction: row; } }

/* ---------------------------------------------------------------- rodapé */

.rodape { background: var(--hly-void); color: #fff; border-top: 1px solid var(--hly-hair); }
.rodape-grid { display: flex; flex-direction: column; gap: 28px; padding: 48px 20px 56px; }
.rodape-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.marca-rodape { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; user-select: none; }
.marca-rodape img { width: 24px; height: 24px; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.rodape-links a { font-size: 14px; letter-spacing: -0.01em; color: var(--hly-ash); text-decoration: none; transition: color .18s ease; }
.rodape-links a:hover { color: #fff; }
.rodape .caption { max-width: 640px; margin: 0; color: var(--hly-smoke); }

/* --------------------------------------------------------- página do autor */

.autor-cabecalho { display: flex; align-items: center; gap: 22px; }
.autor-cabecalho img { width: 96px; height: 96px; border-radius: 9999px; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.12); }
.autor-cabecalho h1 { margin: 0; }
.autor-cargo { margin: 6px 0 0; color: var(--hly-ash); font-size: 15px; }
.confianca { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--hly-hair); }
.confianca img { width: 130px; height: auto; flex: none; }
.confianca .caption { margin: 0; max-width: 620px; color: var(--hly-smoke); }
.confianca a { color: var(--hly-ash); }

/* --------------------------------------------------------------- 404 */

.pagina-404 .hero { padding-bottom: 72px; }

/* ----------------------------------------------------- movimento reduzido */

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

@media print {
  .nav, .post-rail, .cta-band, .rodape, .relacionados, .toc-mobile, .code-copy, .skip { display: none !important; }
  .post-grid { padding-top: 0; }
  body { color: #000; }
}

/* Capas locais: a mesma fotografia acompanha o artigo e suas listagens. */
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; margin-bottom: 6px; }
.card-destaque .card-image { max-height: 420px; }
.post-cover { margin: 0 0 36px; }
.post-cover-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.post-cover figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--texto-suave); }
.post-cover figcaption a { color: inherit; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .card-destaque { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; }
  .card-destaque .card-image { grid-column: 1; grid-row: 1 / 5; height: 100%; min-height: 260px; margin: 0; }
  .card-destaque > :not(.card-image) { grid-column: 2; }
}
