@charset "UTF-8";
/* =========================================================================
   Ferramentas para Corretores - folha de estilo única
   CSS3 com custom properties. Sem frameworks, sem pré-processador.
   Sumário:
     1. Tokens / variáveis
     2. Reset e base
     3. Utilitários e acessibilidade
     4. Tipografia
     5. Cabeçalho e navegação
     6. Componentes (botões, cards, badges, callouts)
     7. Blocos de página (hero, seções, listagens)
     8. Artigo
     9. Publicidade e patrocínio
    10. Rodapé
    11. Consentimento de cookies
    12. Impressão e preferências do usuário
   ========================================================================= */

/* ----------------------------- 1. Tokens ------------------------------- */

:root {
  color-scheme: light dark;

  /* Cores da marca */
  --brand-900: #08293f;
  --brand-800: #0b3d5c;
  --brand-700: #0e4f78;
  --brand-600: #0e7490;
  --brand-500: #14889f;
  --accent-500: #f5a524;
  --accent-600: #b4740c;

  /* Superfícies e texto (tema claro) */
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --bg-sunken: #eaeff5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #d9e1ea;
  --border-strong: #b8c5d3;

  --text: #14232f;
  --text-soft: #4a5b6b;
  --text-faint: #6b7c8c;
  --link: #0e4f78;
  --link-hover: #08293f;

  /* Cores por categoria */
  --cat-vendas: #1d4ed8;
  --cat-marketing: #7c3aed;
  --cat-whatsapp: #0f766e;
  --cat-tecnologia: #0e7490;
  --cat-produtividade: #c2410c;
  --cat-divulgacao-de-imoveis: #be123c;
  --cat-current: var(--brand-700);

  /* Tipografia */
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.65rem;
  --fs-2xl: 2.05rem;
  --fs-3xl: 2.6rem;

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.72;

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Formas */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(8, 41, 63, 0.06), 0 1px 3px rgba(8, 41, 63, 0.05);
  --shadow: 0 2px 6px rgba(8, 41, 63, 0.07), 0 8px 20px rgba(8, 41, 63, 0.06);
  --shadow-lg: 0 10px 40px rgba(8, 41, 63, 0.12);

  /* Layout */
  --wrap: 1140px;
  --wrap-narrow: 720px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 66px;

  --transition: 160ms ease;
}

/* Tema escuro: automático pelo sistema... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1720;
    --bg-alt: #131f2b;
    --bg-sunken: #0a121a;
    --surface: #16232f;
    --surface-2: #1b2a38;
    --border: #2a3b4c;
    --border-strong: #3c5165;

    --text: #e7eef4;
    --text-soft: #b1c1cf;
    --text-faint: #8ba0b2;
    --link: #7cc4e0;
    --link-hover: #a9dcf0;

    --cat-vendas: #6f97ff;
    --cat-marketing: #b79aff;
    --cat-whatsapp: #4fbfa8;
    --cat-tecnologia: #4fb6d0;
    --cat-produtividade: #ff9a63;
    --cat-divulgacao-de-imoveis: #ff8098;
    --cat-current: #7cc4e0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 44px rgba(0, 0, 0, 0.55);
  }
}

/* ...e manual pelo botão de tema. */
:root[data-theme="dark"] {
  --bg: #0e1720;
  --bg-alt: #131f2b;
  --bg-sunken: #0a121a;
  --surface: #16232f;
  --surface-2: #1b2a38;
  --border: #2a3b4c;
  --border-strong: #3c5165;

  --text: #e7eef4;
  --text-soft: #b1c1cf;
  --text-faint: #8ba0b2;
  --link: #7cc4e0;
  --link-hover: #a9dcf0;

  --cat-vendas: #6f97ff;
  --cat-marketing: #b79aff;
  --cat-whatsapp: #4fbfa8;
  --cat-tecnologia: #4fb6d0;
  --cat-produtividade: #ff9a63;
  --cat-divulgacao-de-imoveis: #ff8098;
  --cat-current: #7cc4e0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 44px rgba(0, 0, 0, 0.55);
}

/* --------------------------- 2. Reset e base --------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--bg-sunken); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

/* ------------------- 3. Utilitários e acessibilidade ------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 100;
  background: var(--brand-700);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #fff; }

main:focus { outline: none; }

.linklike {
  background: none; border: 0; padding: 0;
  color: var(--link); text-decoration: underline; cursor: pointer;
}

/* ---------------------------- 4. Tipografia ---------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  color: var(--text);
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
.h-sm { font-size: var(--fs-lg); margin-top: var(--sp-6); }

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 700; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-sunken);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 4px solid var(--cat-current);
  color: var(--text-soft);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); background: var(--surface); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-alt); font-family: var(--font-body); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* --------------------- 5. Cabeçalho e navegação ------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  flex-shrink: 0;
}
.brand__mark { width: 32px; height: 32px; border-radius: 8px; background: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand__text strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand__text span { font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.02em; }

.nav__list { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__link {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover { background: var(--bg-alt); color: var(--text); }
.nav__link.is-active { color: var(--brand-600); background: var(--bg-alt); }
:root[data-theme="dark"] .nav__link.is-active { color: var(--link); }

.nav__link--sponsored {
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.nav__link--sponsored:hover { border-color: var(--accent-500); background: transparent; }
.nav__ext { font-size: 0.85em; color: var(--accent-600); }
:root[data-theme="dark"] .nav__ext { color: var(--accent-500); }

.nav-toggle, .theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle { display: none; }
.nav-toggle:hover, .theme-toggle:hover { border-color: var(--border-strong); background: var(--bg-alt); }

.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle__icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-700);
  box-shadow: inset -5px -3px 0 0 var(--bg);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
:root[data-theme="dark"] .theme-toggle__icon,
:root:not([data-theme="light"]) .theme-toggle__icon {
  box-shadow: inset -5px -3px 0 0 var(--bg);
}
:root[data-theme="dark"] .theme-toggle__icon { background: var(--accent-500); box-shadow: none; transform: scale(0.85); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: var(--sp-3) var(--sp-2); font-size: var(--fs-md); border-radius: var(--radius-sm); }
  .nav__link--sponsored { margin-top: var(--sp-3); text-align: center; }
}

/* --------------------------- 6. Componentes ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); color: #fff; }
:root[data-theme="dark"] .btn--primary { background: var(--brand-600); }
:root[data-theme="dark"] .btn--primary:hover { background: var(--brand-500); }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn--sponsor { background: var(--accent-500); color: #2a1c00; }
.btn--sponsor:hover { background: #ffb838; color: #2a1c00; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--cat-current);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.badge:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .badge { color: #0b1620; }
:root[data-theme="dark"] .badge:hover { color: #0b1620; }

[data-cat="vendas"] { --cat-current: var(--cat-vendas); }
[data-cat="marketing"] { --cat-current: var(--cat-marketing); }
[data-cat="whatsapp"] { --cat-current: var(--cat-whatsapp); }
[data-cat="tecnologia"] { --cat-current: var(--cat-tecnologia); }
[data-cat="produtividade"] { --cat-current: var(--cat-produtividade); }
[data-cat="divulgacao-de-imoveis"] { --cat-current: var(--cat-divulgacao-de-imoveis); }

.grid { display: grid; gap: var(--sp-5); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__media { display: block; border-bottom: 1px solid var(--border); }
.card__media img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__meta {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin: 0; font-size: var(--fs-xs); color: var(--text-faint);
}
.card__title { font-size: var(--fs-lg); margin: 0; line-height: 1.28; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--link); text-decoration: underline; }
.card__excerpt { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.6; }

.badge--static { pointer-events: none; }
.taglist .badge--static { pointer-events: auto; }

.cat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cat-current);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat__name { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.cat__desc { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }
.cat__count { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.callout {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cat-current);
  border-radius: var(--radius);
}
.callout__title { font-weight: 700; margin-bottom: var(--sp-2); font-family: var(--font-head); }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout--atencao { border-left-color: var(--accent-600); }
.callout--erro { border-left-color: var(--cat-divulgacao-de-imoveis); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chip:hover { border-color: var(--cat-current); color: var(--text); }
.chip.is-active { background: var(--cat-current); border-color: var(--cat-current); color: #fff; }
:root[data-theme="dark"] .chip.is-active { color: #0b1620; }

.breadcrumbs { padding: var(--sp-4) var(--gutter) 0; max-width: var(--wrap); margin-inline: auto; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--text-faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--border-strong); }
.breadcrumbs a { color: var(--text-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-soft); }

.searchbar { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.searchbar input, .hero__search input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.searchbar input::placeholder, .hero__search input::placeholder { color: var(--text-faint); }

.results { font-size: var(--fs-sm); color: var(--text-faint); margin: var(--sp-5) 0 var(--sp-4); }
.empty { padding: var(--sp-7) 0; text-align: center; color: var(--text-soft); }

.taglist { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.taglist li { margin: 0; }
.taglist--plain li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  background: var(--surface);
}

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); margin: 0;
}
.linklist li:last-child { border-bottom: 0; }
.linklist time { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }

/* ------------------------ 7. Blocos de página -------------------------- */

.hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--sp-7);
  padding-block: var(--sp-8);
  align-items: start;
}
.hero__eyebrow, .pagehero__eyebrow {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--brand-600); margin-bottom: var(--sp-3);
}
:root[data-theme="dark"] .hero__eyebrow, :root[data-theme="dark"] .pagehero__eyebrow { color: var(--link); }
.hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); margin-bottom: var(--sp-4); }
.hero__lead { font-size: var(--fs-md); color: var(--text-soft); max-width: 58ch; }
.hero__search { display: flex; gap: var(--sp-2); margin: var(--sp-5) 0 var(--sp-4); max-width: 30rem; }
.hero__meta { font-size: var(--fs-sm); color: var(--text-faint); margin: 0; }

.pagehero { padding-block: var(--sp-7) var(--sp-5); }
.pagehero h1 { max-width: 20ch; }
.pagehero__lead { font-size: var(--fs-md); color: var(--text-soft); max-width: 62ch; }
.pagehero .searchbar { max-width: 34rem; }
.pagehero--cat { border-bottom: 1px solid var(--border); }

.pagehead { padding-block: var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-6); }

.section { padding-block: var(--sp-7); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-5);
}
.section__head p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }
.section__link { font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.steps__item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin: 0;
}
.steps__num {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-700); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
}
:root[data-theme="dark"] .steps__num { background: var(--brand-600); color: #061019; }
.steps__title { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.steps__title a { color: var(--text); text-decoration: none; }
.steps__title a:hover { color: var(--link); text-decoration: underline; }
.steps__item p { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); }

.notfound { padding-block: var(--sp-8); }
.notfound .grid { margin-bottom: var(--sp-6); }
.notfound__back { margin-top: var(--sp-6); }

.authorpage__head { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; padding-block: var(--sp-6) var(--sp-5); }
.authorpage__avatar { width: 128px; height: 128px; border-radius: 50%; background: none; }
.authorcat { margin-bottom: var(--sp-6); }
.authorcat__title { font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-3); }
.authorcat__title a { color: var(--text); text-decoration: none; }
.authorcat__title a:hover { color: var(--link); }
.authorcat__count {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  background: var(--bg-sunken); color: var(--text-faint);
  padding: 0.1rem 0.5rem; border-radius: var(--radius-pill);
}

.updated { font-size: var(--fs-sm); color: var(--text-faint); border-top: 1px solid var(--border); padding-top: var(--sp-4); margin-top: var(--sp-7); }

/* ------------------------------ 8. Artigo ------------------------------ */

.progress { position: sticky; top: var(--header-h); height: 3px; background: transparent; z-index: 40; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--accent-500); transition: width 80ms linear; }

.post__header { padding-block: var(--sp-5) var(--sp-5); }
.post__cat { margin-bottom: var(--sp-3); }
.post__title { margin-bottom: var(--sp-4); }
.post__standfirst { font-size: var(--fs-md); color: var(--text-soft); max-width: 62ch; }
.post__meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.post__avatar { width: 40px; height: 40px; border-radius: 50%; background: none; flex-shrink: 0; }
.post__by { margin: 0; font-size: var(--fs-sm); font-weight: 700; }
.post__by a { color: var(--text); text-decoration: none; }
.post__by a:hover { color: var(--link); text-decoration: underline; }
.post__dates { margin: 0; font-size: var(--fs-xs); color: var(--text-faint); }

.post__cover { margin: 0 auto var(--sp-6); }
.post__cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }

.quickanswer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-600);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.quickanswer__title {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--brand-600); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2);
}
:root[data-theme="dark"] .quickanswer__title { color: var(--link); }
.quickanswer p { margin: 0; font-size: var(--fs-md); line-height: 1.65; }

.takeaways {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-5); margin-bottom: var(--sp-5); background: var(--surface);
}
.takeaways__title { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { font-size: var(--fs-sm); color: var(--text-soft); }
.takeaways li::marker { color: var(--accent-600); }

.toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6);
}
.toc__title { font-family: var(--font-head); font-weight: 700; margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.prose { font-size: var(--fs-md); }
.prose h2 { margin-top: var(--sp-7); scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { margin-top: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h4 { margin-top: var(--sp-5); }
.prose > p:first-child { font-size: 1.15em; color: var(--text-soft); }
.prose ul li::marker, .prose ol li::marker { color: var(--cat-current); }
.prose img { border-radius: var(--radius); margin: var(--sp-5) 0; }

.faq { margin-top: var(--sp-7); }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  background: var(--surface);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: var(--fs-md);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem; line-height: 1; color: var(--brand-600); flex-shrink: 0;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item[open] summary { border-bottom: 1px solid var(--border); }
.faq__answer { padding: var(--sp-4) var(--sp-5); color: var(--text-soft); }
.faq__answer p { margin: 0; }

.sources { margin-top: var(--sp-7); font-size: var(--fs-sm); }
.sources ul { padding-left: 1.2rem; }

.to-top { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: var(--fs-sm); padding: 0; }
.to-top:hover { color: var(--link); text-decoration: underline; }

/* --------------------- 9. Publicidade e patrocínio --------------------- */

.ad { margin: var(--sp-6) 0; text-align: center; }
.ad[data-ad-active="false"] { display: none; }
.ad__label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-faint); margin: 0 0 var(--sp-2);
}
.ad ins { display: block; min-height: 90px; }
.ad--inarticle { margin: var(--sp-7) 0; }

.sponsor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-500);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.sponsor--compact { margin-top: var(--sp-6); }
.sponsor__label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent-600); font-weight: 700; margin-bottom: var(--sp-2);
}
:root[data-theme="dark"] .sponsor__label { color: var(--accent-500); }
.sponsor__name { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--sp-2); }
.sponsor__text { font-size: var(--fs-sm); color: var(--text-soft); }
.sponsor__links { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.sponsor__site { font-size: var(--fs-sm); }
.sponsor__note { font-size: var(--fs-xs); color: var(--text-faint); margin: 0; }

.authorbox {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-5); margin-top: var(--sp-7);
}
.authorbox__avatar { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; background: none; }
.authorbox__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); margin-bottom: var(--sp-1); }
.authorbox__name { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.authorbox__name a { color: var(--text); text-decoration: none; }
.authorbox__name a:hover { color: var(--link); text-decoration: underline; }
.authorbox__bio { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: var(--sp-2); }
.authorbox__more { font-size: var(--fs-sm); margin: 0; }

/* ------------------------------ 10. Rodapé ----------------------------- */

.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--border); margin-top: var(--sp-8); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-7);
}
.site-footer__title { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.site-footer__tagline { font-size: var(--fs-sm); color: var(--text-soft); max-width: 34ch; }
.site-footer__feed { font-size: var(--fs-sm); margin: 0; }
.site-footer__heading {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); font-weight: 700; margin-bottom: var(--sp-3);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: var(--sp-2); }
.site-footer__col a { font-size: var(--fs-sm); color: var(--text-soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--link); text-decoration: underline; }
.site-footer__sponsorname { font-family: var(--font-head); font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-2); }
.site-footer__sponsorname a { font-size: inherit; color: var(--text); }
.site-footer__sponsortext { font-size: var(--fs-xs); color: var(--text-faint); margin: 0; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  flex-wrap: wrap; padding-block: var(--sp-4); border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-faint);
}
.site-footer__bottom p { margin: 0; }

/* -------------------- 11. Consentimento de cookies --------------------- */

.consent {
  position: fixed;
  inset: auto var(--sp-4) var(--sp-4) var(--sp-4);
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  max-width: var(--wrap);
  margin-inline: auto;
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; gap: var(--sp-5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent__title { font-family: var(--font-head); font-weight: 700; margin-bottom: var(--sp-1); }
.consent__text { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; max-width: 66ch; }
.consent__actions { display: flex; gap: var(--sp-3); flex-shrink: 0; }

/* ------------- 12. Responsivo, impressão e preferências ---------------- */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --fs-base: 1rem; --fs-md: 1.06rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .authorbox { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .consent__inner { align-items: stretch; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
  .post__cover img { border-radius: var(--radius); }
  .steps__item { flex-direction: row; }
}

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

@media (prefers-contrast: more) {
  :root { --border: #6b7c8c; --border-strong: #3c5165; --text-soft: #263542; }
}

@media print {
  .site-header, .site-footer, .consent, .ad, .toc, .sponsor, .progress,
  .breadcrumbs, .nav-toggle, .theme-toggle, .section--alt { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap, .wrap--narrow { max-width: none; padding: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .post__cover { display: none; }
}
