/* Mesmo visual do site atual: Inter, grafite 220 9% 12%, cinzas frios, cantos de 1rem. */
:root {
  --fg: #1c1e22;
  --muted: #7b818c;
  --line: #e5e7eb;
  --surface: #f5f6f8;
  --bg: #ffffff;
  --wa: #25d366;
  --radius: 1rem;
  --shadow-card: 0 2px 24px 0 rgba(28, 30, 34, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; margin: 0; font-weight: 600; }
.wrap { max-width: 1152px; margin-inline: auto; padding-inline: 20px; }

/* Header igual ao do site */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; margin-right: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fg); color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 16px 0 rgba(28,30,34,0.18); }
.btn:hover { opacity: 0.9; color: #fff; }
.btn--light { background: #fff; color: var(--fg); box-shadow: none; }
.btn--light:hover { color: var(--fg); }
@media (max-width: 820px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Cabeçalho das páginas do blog: compacto, alinhado ao conteúdo */
.page-head { padding-block: 28px 8px; }
.page-head .wrap { display: grid; gap: 6px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); }
.page-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 70ch; }
.page-head--article { padding-block: 24px 0; }
.page-head--article .wrap { max-width: 1152px; }
.page-head--article h1 { max-width: 760px; font-size: clamp(26px, 3.4vw, 36px); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.meta { font-size: 13px !important; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); background: #fff; }
.chips a:hover { border-color: var(--fg); }

/* Lista de artigos */
.list { padding-block: 20px 72px; }
.cat { scroll-margin-top: 80px; }
.cat + .cat { margin-top: 40px; }
.cat h2 { font-size: 18px; margin-bottom: 14px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: grid; gap: 8px; align-content: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); text-decoration: none; color: var(--fg); min-width: 0; transition: border-color .15s ease; }
.post-card:hover { border-color: var(--fg); }
.post-card h3 { font-size: 17px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-card .more { font-size: 14px; font-weight: 500; }

/* Artigo */
.article { padding-block: 24px 72px; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 700px) 300px; gap: 56px; justify-content: space-between; }
@media (max-width: 980px) { .article .wrap { grid-template-columns: minmax(0, 1fr); } }
.prose { min-width: 0; font-size: 17px; line-height: 1.75; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.9em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose .lead { font-size: 20px; line-height: 1.55; color: #3b3f46; }
.callout { padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.callout b { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; }
.faq details p { margin: 0 0 16px; color: #3b3f46; }
.sources { margin-top: 2.4em !important; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 16px; margin: 0 0 0.5em; }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.aside { display: grid; gap: 18px; align-content: start; position: sticky; top: 88px; }
@media (max-width: 980px) { .aside { position: static; } }
.aside-box { padding: 26px; border-radius: var(--radius); background: var(--fg); color: #fff; display: grid; gap: 12px; }
.aside-box p { color: #c5c9d0; font-size: 15px; margin: 0; }
.aside-links { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; font-size: 15px; }

/* Rodapé igual ao do site */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 24px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer b { display: block; color: var(--fg); margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer p { margin: 0; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,0.3); z-index: 60; }
.wa-float svg { width: 28px; height: 28px; }

/* Cor suave: fundo levemente azulado e um tom por categoria */
:root { --tint: #f1f4f8; }
.cat-endereco-fiscal { --c: #2f5f93; --c-soft: #e7eef8; }
.cat-abrir-empresa { --c: #2f7350; --c-soft: #e5f3ea; }
.cat-vitoria-es { --c: #1d6f78; --c-soft: #e1f2f3; }
.cat-impostos { --c: #8a5b12; --c-soft: #f8efdc; }
.cat-coworking { --c: #5b4a91; --c-soft: #eeebf8; }
.list--tinted { background: var(--tint); border-top: 1px solid var(--line); }
.page-head { background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%); }
.chips a { display: inline-flex; align-items: center; gap: 8px; }
.chips a i, .cat h2 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--fg)); display: inline-block; }
.chips a:hover { background: var(--c-soft); border-color: var(--c); color: var(--c); }
.cat h2 { display: flex; align-items: center; gap: 10px; }
.post-card { border-color: transparent; box-shadow: 0 1px 2px rgba(28,30,34,0.05), 0 8px 24px -12px rgba(28,30,34,0.14); transition: transform .18s ease, box-shadow .18s ease; gap: 10px; }
.post-card:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28,30,34,0.06), 0 18px 36px -16px rgba(28,30,34,0.22); }
.post-card .pill { justify-self: start; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c); }
.post-card h3 { font-size: 17px; line-height: 1.35; }
.post-card p { font-size: 14.5px; line-height: 1.55; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.post-card .more { color: var(--c); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover { transition: none; transform: none; } }

/* menu ativo e animações (mesmo comportamento do site) */
.nav a.bw-ativo, .nav a[aria-current="page"] { color: #2c5a8c; font-weight: 600; position: relative; }
.nav a.bw-ativo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #2c5a8c; }
.bw-r { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--bw-d, 0ms); }
.bw-r.bw-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bw-r { opacity: 1; transform: none; transition: none; } }
