/* Tema do blog da Nós Contabilidade — mesma identidade do site (Poppins, azul #1D3B6F, dourado #C89770). */
:root {
  --navy-950: #0f2147;
  --navy-900: #1d3b6f;
  --brand: #c89770;
  --brand-dark: #a87a52;
  --cinza: #f2f2f2;
  --text: rgba(15, 33, 71, 0.82);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy-900); font-weight: 600; line-height: 1.2; margin: 0; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid rgba(29, 59, 111, 0.1); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 56px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--navy-900); }
.menu a { position: relative; padding: 8px 16px; text-decoration: none; }
.menu a:not(.vip)::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu a:not(.vip):hover::after, .menu a.is-active::after { transform: scaleX(1); }
.menu .vip { margin-left: 12px; background: var(--navy-900); color: #fff; border-radius: 999px; padding: 10px 28px; box-shadow: 0 0 0 2px var(--brand); font-weight: 600; transition: background .2s; }
.menu .vip:hover { background: var(--navy-950); }
.menu-toggle, .menu-button { display: none; }

/* Topo das listas */
.blog-hero { background: var(--navy-900); color: #fff; padding: 72px 0 64px; border-bottom: 4px solid var(--brand); }
.blog-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-text { margin: 16px 0 0; color: rgba(255, 255, 255, 0.8); max-width: 620px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.kicker span { width: 40px; height: 2px; background: var(--brand); }

/* Cartões de post */
.post-grid-section { padding-top: 64px; padding-bottom: 96px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card-link { display: block; text-decoration: none; height: 100%; }
.post-card-image { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--cinza); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card-link:hover .post-card-image img { transform: scale(1.05); }
.post-meta { margin: 20px 0 0; font-size: 14px; color: rgba(29, 59, 111, 0.7); }
.post-tag { font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.post-card h2 { margin-top: 8px; font-size: 1.25rem; transition: color .2s; }
.post-card-link:hover h2 { color: var(--brand-dark); }
.post-excerpt { margin: 8px 0 0; font-size: 15px; }

/* Paginação */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-weight: 600; color: var(--navy-900); }
.pagination a { text-decoration: none; border-bottom: 2px solid var(--brand); }
.page-number { font-weight: 400; font-size: 14px; color: rgba(29, 59, 111, 0.6); }

/* Post */
.post-header { padding: 64px 0 32px; }
.post-header h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-top: 12px; }
.post-image { margin-bottom: 40px; margin-top: 0; }
.post-image img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { font-size: 17px; padding-bottom: 24px; }
.post-content p { margin: 0 0 1.3em; }
.post-content h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.post-content h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-content li { margin-bottom: .5em; }
.post-content a { color: var(--navy-900); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--navy-900); font-size: 1.1em; }
.post-content strong { color: var(--navy-900); }
.post-content img { border-radius: 8px; margin: 1.5em auto; }
.back-link { margin: 32px 0 96px; font-weight: 600; }
.back-link a { text-decoration: none; border-bottom: 2px solid var(--brand); color: var(--navy-900); }
.btn { display: inline-block; background: var(--brand); color: var(--navy-950); padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Cartões do editor do Ghost (exigidos pelo tema) */
.kg-width-wide { width: min(1152px, 94vw); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-image-card, .kg-gallery-card, .kg-embed-card, .kg-bookmark-card { margin: 1.5em 0; }
.kg-card figcaption { text-align: center; font-size: 14px; margin-top: 8px; }

/* Rodapé */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.footer-logo { height: 64px; width: auto; background: #fff; border-radius: 6px; padding: 4px 12px; margin-bottom: 20px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { display: block; text-decoration: none; margin-bottom: 10px; }
.site-footer p a { display: inline; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* Celular */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .menu-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(29, 59, 111, .2); border-radius: 50%; cursor: pointer; }
  .menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 18px; height: 2px; background: var(--navy-900); content: ""; position: relative; }
  .menu-button span::before { position: absolute; top: -6px; }
  .menu-button span::after { position: absolute; top: 6px; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; padding: 8px 20px 24px; border-top: 1px solid rgba(29, 59, 111, .1); gap: 0; box-shadow: 0 12px 20px rgba(0, 0, 0, .08); }
  .menu a { padding: 16px 0; border-bottom: 1px solid var(--cinza); font-size: 17px; }
  .menu a::after { display: none; }
  .menu .vip { margin: 20px 0 0; text-align: center; border-bottom: 0; }
  .menu-toggle:checked ~ .menu { display: flex; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .blog-hero { padding: 48px 0 44px; }
  .post-header { padding-top: 40px; }
  .post-content { font-size: 16px; }
}

/* Capas desenhadas em SVG (uma por categoria) */
.post-card-image, .post-cover { background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); position: relative; }
.post-card-image::before, .post-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.cover, .cover svg { width: 100%; height: 100%; display: block; }
.post-cover { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.post-card-image .cover svg { transition: transform .5s; }
.post-card-link:hover .cover svg { transform: scale(1.05); }
.cover .l, .cover .gl, .cover .wl { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.cover .l { stroke: #fff; }
.cover .gl { stroke: var(--brand); }
.cover .wl { stroke: #fff; stroke-width: 5; }
.cover .gd { fill: var(--brand); }
.cover .wf { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.55); stroke-width: 3; stroke-linecap: round; }
.cover .gt { fill: var(--brand); font-family: 'Poppins', sans-serif; font-weight: 700; }
.cover .wt { fill: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; }
.cover .halo { fill: rgba(200,151,112,.10); }
.cover .halo2 { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 2; }

/* Categorias */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.chip { display: inline-block; padding: 8px 18px; border: 1px solid rgba(29,59,111,.2); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy-900); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.chip:hover, .chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* Fim do post */
.post-cta { margin: 48px 0 0; padding: 32px; background: var(--cinza); border-left: 6px solid var(--brand); border-radius: 6px; }
.post-cta h2 { font-size: 1.35rem; margin: 0 0 6px; }
.post-cta p { margin: 0 0 18px; }
.related { background: var(--cinza); padding: 64px 0 72px; margin-top: 56px; }
.related h2 { font-size: 1.6rem; margin-bottom: 28px; }
.back-link { margin: 40px auto 96px; }

@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
}
