/* =====================================================================
 * GestãoInk Blog — design system
 * Segue a identidade do site principal (gestaoink.site):
 * dark #121212, superfícies #1e1e1e, primary #ff725e, Montserrat.
 * CSS puro, sem framework, para manter LCP/CLS baixos (Core Web Vitals).
 * ===================================================================== */

:root {
  --primary: #ff725e;
  --primary-hover: #ff8d7d;
  --primary-soft: rgba(255, 114, 94, .12);
  --primary-line: rgba(255, 114, 94, .28);

  --bg: #121212;
  --bg-elev: #1a1a1a;
  --surface: #1e1e1e;
  --surface-2: #242424;
  --footer-bg: #0a0a0a;

  --text: #ffffff;
  --text-2: #d7d7d7;
  --text-3: #9aa0a6;
  --line: #2c2c2c;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;

  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);

  --container: 1200px;
  --prose: 720px;

  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* O JS esconde cards e botões com o atributo [hidden]. Sem !important o
   display:flex/grid dos componentes venceria a regra do navegador. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--primary); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1200;
  background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
 * Botões
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover {
  background-color: var(--primary-hover); border-color: var(--primary-hover); color: #fff;
  transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 114, 94, .3);
}
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover {
  background-color: var(--primary); color: #fff;
  transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 114, 94, .3);
}
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------------------------------------------------------------
 * Navbar (espelha o header do site principal)
 * ------------------------------------------------------------------ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background-color: rgba(18, 18, 18, .95);
  backdrop-filter: saturate(140%) blur(12px);
  padding: 10px 0;
  transition: all .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background-color: rgba(18, 18, 18, .98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .35);
  border-bottom-color: var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar-brand { display: inline-flex; align-items: center; }
.navbar-brand img { height: 40px; width: auto; transition: height .3s var(--ease); }
.navbar.scrolled .navbar-brand img { height: 35px; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: block;
  padding: 8px 14px;
  color: #fff; font-weight: 500; font-size: 15px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; left: 14px; bottom: 2px;
  width: 0; height: 2px; background-color: var(--primary);
  transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: calc(100% - 28px); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: 6px;
  padding: 6px 8px; cursor: pointer; line-height: 0;
}

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapse {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: 6px;
    background: #151515; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .25s var(--ease);
  }
  .nav-collapse.open { max-height: 80vh; opacity: 1; visibility: visible; overflow-y: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-actions { margin-top: 14px; }
  .nav-actions .btn { flex: 1; }
}
@media (min-width: 992px) {
  .nav-collapse { display: flex; align-items: center; gap: 20px; }
}

/* ---------------------------------------------------------------------
 * Blog — cabeçalho da home
 * ------------------------------------------------------------------ */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.blog-hero::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 114, 94, .18) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0; pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 16px; }
.blog-hero .lead { max-width: 640px; color: var(--text-2); font-size: clamp(1rem, 2vw, 1.15rem); margin: 0; }

/* Busca */
.search-wrap { position: relative; max-width: 520px; margin-top: 32px; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-input {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 14px 20px 14px 50px;
  font: inherit; font-size: 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 114, 94, .15);
}

/* Filtros de categoria */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 0 0;
}
.chip {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------------------------------------------------------------
 * Seções e grid de posts
 * ------------------------------------------------------------------ */
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.section-head p { color: var(--text-3); margin: 6px 0 0; font-size: 15px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
@media (max-width: 700px) {
  .posts-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Card */
.post-card {
  display: flex; flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-line);
  box-shadow: var(--shadow);
}
.post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }

.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.post-card__cat {
  align-self: flex-start;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line); border-radius: 100px;
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 14px;
}
.post-card__title { font-size: 1.15rem; line-height: 1.4; margin: 0 0 10px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt {
  color: var(--text-2); font-size: 14.5px; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13px;
}
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* Card em destaque */
.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.featured-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow-lg); }
.featured-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-card:hover .featured-card__media img { transform: scale(1.04); }
.featured-card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-card__body h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 14px; }
.featured-card__body h3 a { color: var(--text); }
.featured-card__body h3 a:hover { color: var(--primary); }
.featured-card__body p { color: var(--text-2); margin: 0 0 22px; }
@media (max-width: 860px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__body { padding: 26px; }
}

.empty-state {
  display: none;
  text-align: center; padding: 60px 20px;
  color: var(--text-3);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state.show { display: block; }
.empty-state strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 8px; }

.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------------------------------------------------------------------
 * Artigo
 * ------------------------------------------------------------------ */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  transition: width .1s linear;
}

.article-header { padding: calc(var(--nav-h) + 56px) 0 0; }

.breadcrumb, .breadcrumbs, .breadcrumbs ol {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important;
  list-style: none !important; margin: 0 0 24px !important; padding: 0 !important;
  font-size: 13.5px !important; color: var(--text-3) !important;
}
.breadcrumb a, .breadcrumbs a { color: var(--text-3) !important; text-decoration: none !important; }
.breadcrumb a:hover, .breadcrumbs a:hover { color: var(--primary) !important; }
.breadcrumb li, .breadcrumbs li { display: flex !important; align-items: center !important; list-style: none !important; }
.breadcrumb li + li::before, .breadcrumbs li + li::before { content: "/" !important; margin-right: 8px !important; color: #4a4a4a !important; }
.breadcrumb [aria-current="page"], .breadcrumbs [aria-current="page"] { color: var(--text-2) !important; }

.article-header h1 {
  max-width: var(--prose);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin: 0 0 18px;
}
.article-header .standfirst {
  max-width: var(--prose);
  color: var(--text-2);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin: 0 0 28px;
}

.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--text-3); font-size: 14px;
}
.author { display: flex; align-items: center; gap: 10px; }
.author img, .author .avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; border: 1px solid var(--primary-line);
}
.author strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.author span { font-size: 12.5px; color: var(--text-3); }
.meta-sep { width: 1px; height: 26px; background: var(--line); }
.share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share a, .share button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.share a:hover, .share button:hover {
  background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px);
}

.article-cover {
  margin: 36px 0 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { padding: 12px 4px 0; color: var(--text-3); font-size: 13px; text-align: center; }

/* Layout artigo + sumário */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "content sidebar";
  gap: 56px;
  align-items: start;
  padding: 48px 0 24px;
}
.article-layout .prose {
  grid-area: content;
  max-width: 100%;
  width: 100%;
}
.article-layout .toc {
  grid-area: sidebar;
}
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "content";
    gap: 0;
  }
  .toc { display: none; }
}

.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc h2 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-3); font-size: 13.5px; line-height: 1.5;
}
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.toc li.lvl-3 a { padding-left: 28px; font-size: 13px; }

/* --------------------------- Tipografia do texto -------------------- */
.prose { max-width: var(--prose); font-size: 1.0625rem; line-height: 1.85; color: var(--text-2); }
.prose > * + * { margin-top: 1.4em; }
.prose p { margin: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.prose h2 {
  color: var(--text); font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 2.2em 0 .1em; padding-top: .2em;
}
.prose h3 { color: var(--text); font-size: clamp(1.15rem, 2.4vw, 1.35rem); margin: 1.8em 0 .1em; }
.prose h4 { color: var(--text); font-size: 1.05rem; margin: 1.5em 0 .1em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }

.prose ul, .prose ol { margin: 0; padding-left: 1.35em; }
.prose li { margin: .5em 0; }
.prose li::marker { color: var(--primary); }

.prose a:not(.btn):not(.tag) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):not(.tag):hover { color: var(--primary-hover); }

.prose .btn, .cta-box .btn {
  text-decoration: none !important;
}
.prose .btn-primary, .cta-box .btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.prose .btn-primary:hover, .cta-box .btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #ffffff !important;
}
.prose .btn-outline, .cta-box .btn-outline {
  background: transparent !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  text-decoration: none !important;
}
.prose .btn-outline:hover, .cta-box .btn-outline:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}
.prose .tag {
  color: var(--text-3) !important;
  text-decoration: none !important;
}
.prose .tag:hover {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--primary);
  color: var(--text); font-size: 1.15rem; font-style: italic; line-height: 1.7;
}
.prose blockquote cite { display: block; margin-top: 10px; font-size: .85rem; font-style: normal; color: var(--text-3); }

.prose figure { margin: 2.4em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 12px; text-align: center; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

.prose code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em; color: var(--primary-hover);
}
.prose pre {
  background: #161616; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; overflow-x: auto; font-size: .875rem; line-height: 1.7;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--text-2); }

.table-wrap { overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose thead th {
  background: var(--surface-2); color: var(--text); text-align: left;
  padding: 14px 18px; font-weight: 600; white-space: nowrap;
}
.prose td { padding: 14px 18px; border-top: 1px solid var(--line); }
.prose tbody tr:hover { background: rgba(255, 255, 255, .02); }

/* Caixas de apoio */
.callout {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: 20px 22px;
  margin: 2em 0; font-size: 15.5px;
}
.callout__icon { flex: none; color: var(--primary); line-height: 0; margin-top: 3px; }
.callout p { margin: 0; }
.callout strong { display: block; color: var(--text); margin-bottom: 4px; }
.callout--warn { border-left-color: #f0ad4e; }
.callout--warn .callout__icon { color: #f0ad4e; }

.key-takeaways {
  background: linear-gradient(180deg, rgba(255, 114, 94, .07), rgba(255, 114, 94, .02));
  border: 1px solid var(--primary-line); border-radius: var(--radius);
  padding: 24px 26px; margin: 2.4em 0;
}
.key-takeaways h2, .key-takeaways h3 {
  font-size: 13px !important; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary) !important; margin: 0 0 12px !important;
}
.key-takeaways ul { margin: 0; padding-left: 1.2em; }
.key-takeaways li { margin: .4em 0; color: var(--text-2); }

/* FAQ (casa com o schema FAQPage) */
.faq { margin: 2.4em 0; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: var(--primary-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  color: var(--text); font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; color: var(--primary); font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__answer { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; }
.faq .faq__answer > :first-child { margin-top: 0; }

/* CTA dentro do artigo */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--primary-line);
  border-radius: var(--radius-lg); padding: 34px; margin: 3em 0;
  text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; inset: -60% -20% auto auto; width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 114, 94, .18), transparent 70%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2, .cta-box h3 { color: var(--text) !important; font-size: 1.35rem !important; margin: 0 0 10px !important; }
.cta-box p { color: var(--text-2); margin: 0 0 22px; font-size: 15.5px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 2.5em 0 0; }
.tag {
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px; font-size: 13px; color: var(--text-3);
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

.article-footer { max-width: var(--prose); padding-bottom: 8px; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 2.5em 0 0;
}
.author-box img, .author-box .avatar { width: 60px; height: 60px; font-size: 20px; flex: none; }
.author-box h3 { font-size: 1.05rem; margin: 0 0 6px; }
.author-box p { margin: 0; color: var(--text-3); font-size: 14.5px; line-height: 1.7; }

/* Navegação anterior/próximo */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 44px 0; border-top: 1px solid var(--line); margin-top: 44px;
}
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.post-nav a:hover { border-color: var(--primary-line); transform: translateY(-4px); }
.post-nav span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.post-nav strong { color: var(--text); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* ---------------------------------------------------------------------
 * Newsletter
 * ------------------------------------------------------------------ */
.newsletter {
  background: linear-gradient(135deg, rgba(255, 114, 94, .1), rgba(255, 114, 94, .02));
  border: 1px solid var(--primary-line);
  border-radius: var(--radius-lg);
  padding: 44px; text-align: center;
}
.newsletter h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 10px; }
.newsletter p { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }
.newsletter form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter input {
  flex: 1; min-width: 0;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; font: inherit; font-size: 15px;
}
.newsletter input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 114, 94, .15); }
@media (max-width: 560px) {
  .newsletter { padding: 30px 22px; }
  .newsletter form { flex-direction: column; }
}

/* ---------------------------------------------------------------------
 * Rodapé (espelha o site principal)
 * ------------------------------------------------------------------ */
.site-footer { background-color: var(--footer-bg); padding: 70px 0 28px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 52px; width: auto; margin-bottom: 20px; }
.site-footer p, .site-footer li { color: var(--text-3); font-size: 14.5px; }
.site-footer h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-3); }
.site-footer ul a:hover { color: var(--primary); }
.social-links { display: flex; gap: 10px; margin-top: 22px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background-color: var(--surface); color: #fff;
  transition: all .3s var(--ease);
}
.social-links a:hover { background-color: var(--primary); color: #fff; transform: translateY(-5px); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid #232323;
  color: var(--text-3); font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* Voltar ao topo */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 99;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--primary); color: #fff; border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: all .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background-color: var(--primary-hover); }

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

/* Impressão: só o conteúdo do artigo */
@media print {
  .navbar, .toc, .share, .cta-box, .newsletter, .site-footer, .back-to-top, .post-nav, .reading-progress { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose * { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
