/* Blog Neoaba — CSS próprio, sem dependência de CDN, para não penalizar LCP */

:root {
  --brand-blue: #2846c9;
  --brand-blue-soft: #eef1fd;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 14px;
}

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

body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 1100px; }

/* ---------- topo ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .93rem; font-weight: 600; }
.site-nav a { color: var(--ink-soft); }
.btn {
  display: inline-block; background: var(--brand-blue); color: #fff;
  padding: .6rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.btn:hover { text-decoration: none; opacity: .92; }
/* precisa vencer `.site-nav a`, que é mais específico que `.btn` */
.site-nav a.btn { color: #fff; }
@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 1.5rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- artigo ---------- */
article { padding-bottom: 3rem; }

.post-head { padding: 1.25rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.eyebrow {
  display: inline-block; background: var(--brand-blue-soft); color: var(--brand-blue);
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15;
  color: var(--ink); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .9rem;
}
.post-meta { font-size: .88rem; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin-top: 1.1rem; }

article h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem); line-height: 1.25; color: var(--ink);
  font-weight: 800; letter-spacing: -.01em; margin: 2.6rem 0 .9rem; scroll-margin-top: 5rem;
}
article h3 {
  font-size: 1.15rem; color: var(--ink); font-weight: 700;
  margin: 1.8rem 0 .6rem; scroll-margin-top: 5rem;
}
article p { margin: 0 0 1.1rem; }
article ul, article ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
article li { margin-bottom: .5rem; }
article strong { color: var(--ink); font-weight: 700; }

blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--brand-blue); color: var(--ink-soft); font-style: italic;
}

.callout {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--brand-blue); }

.table-scroll { overflow-x: auto; margin: 1.6rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }

/* ---------- índice ---------- */
.toc {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 2rem 0;
}
.toc p { font-weight: 800; color: var(--ink); margin: 0 0 .6rem; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }

/* ---------- FAQ do post ---------- */
.post-faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.2rem; margin-bottom: .75rem; background: #fff;
}
.post-faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); list-style: none;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; float: right; color: var(--brand-blue); font-weight: 800; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { margin: .8rem 0 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--brand-blue); color: #fff; border-radius: var(--radius);
  padding: 2rem 1.75rem; margin: 3rem 0 0; text-align: center;
}
.cta h2 { color: #fff; margin: 0 0 .7rem; font-size: 1.5rem; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0 auto 1.4rem; max-width: 42ch; }
.cta .btn { background: #fff; color: var(--brand-blue); padding: .8rem 1.6rem; font-size: .9rem; }

/* ---------- listagem ---------- */
.blog-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.blog-hero p { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: .8rem 0 0; }

.post-grid { display: grid; gap: 1.25rem; padding: 2.5rem 0 3rem; }
@media (min-width: 780px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }

.post-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; background: #fff; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.post-card h2 { font-size: 1.2rem; line-height: 1.3; margin: .7rem 0 .55rem; }
.post-card h2 a { color: var(--ink); }
.post-card p { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.post-card .post-meta { font-size: .82rem; }

/* ---------- rodapé ---------- */
.site-footer {
  background: #111827; color: #9ca3af; padding: 2.5rem 0; margin-top: 4rem;
  font-size: .9rem;
}
.site-footer a { color: #d1d5db; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .legal { border-top: 1px solid #1f2937; margin-top: 2rem; padding-top: 1.5rem; font-size: .82rem; }
