/* ==========================================================================
   Marketing Para Comércios — folha de estilo única
   CSS3 puro: custom properties, Grid, Flexbox. Sem frameworks.
   Ordem: tokens > reset > utilitários > layout > componentes > páginas > media
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Paleta base */
  --brand: #0E5C4A;
  --brand-dark: #083A2E;
  --brand-light: #E6F2EE;
  --accent: #E4572E;          /* apenas decorativo (barras, ícones, fundos) */
  --accent-text: #A8340F;     /* variante com contraste AA para texto */

  --ink: #12181B;
  --ink-2: #33424A;
  --ink-3: #5B6B73;
  --line: #DFE5E8;
  --line-strong: #C4CFD4;
  --surface: #FFFFFF;
  --surface-2: #F5F7F8;
  --surface-3: #ECF0F2;

  --ok: #1B7A4B;
  --warn: #8A5A00;

  /* Tipografia — pilha do sistema, sem download de fontes */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.33rem);
  --step-2: clamp(1.35rem, 1.24rem + 0.55vw, 1.72rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-4: clamp(1.9rem, 1.55rem + 1.75vw, 3rem);

  /* Espaço e forma */
  --gap: 1.25rem;
  --gap-lg: 2rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(18, 24, 27, .06), 0 2px 8px rgba(18, 24, 27, .05);
  --shadow-2: 0 4px 20px rgba(18, 24, 27, .10);
  --wrap: 1200px;
  --wrap-prose: 46rem;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4FBF9F;
    --brand-dark: #2E9A7C;
    --brand-light: #12312A;
    --accent: #FF7A50;
    --accent-text: #FF9573;

    --ink: #E8EDEF;
    --ink-2: #C2CDD2;
    --ink-3: #93A2A9;
    --line: #26323A;
    --line-strong: #35454E;
    --surface: #0E1417;
    --surface-2: #141C20;
    --surface-3: #1B252A;

    --ok: #56C48A;
    --warn: #D9A94A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 6px 24px rgba(0, 0, 0, .55);
  }
}

/* --------------------------------------------------------------------------
   2. Reset enxuto
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-3); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); }
figure { margin: 0; }
blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--brand); color: var(--ink-2); font-style: italic; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilitários e acessibilidade
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; text-decoration: none;
  transition: top .15s ease-in;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Cabeçalho e navegação
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: var(--accent); z-index: 60; transition: width .1s linear;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--gap);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.1; }
.brand__name span { display: block; font-weight: 500; font-size: .68rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.header-search { margin-left: auto; flex: 0 1 20rem; display: flex; gap: .35rem; }
.header-search input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: var(--step--1);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--brand); color: #fff; font: inherit; font-size: var(--step--1); font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn { color: #05201A; } .btn:hover { color: #05201A; } }

.nav-toggle { display: none; }
.site-nav { border-top: 1px solid var(--line); background: var(--surface); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .6rem .75rem; font-size: var(--step--1); font-weight: 600;
  color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* --------------------------------------------------------------------------
   5. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3.5rem; padding: 2.5rem 0 1.5rem;
  background: var(--surface-2); border-top: 3px solid var(--brand);
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: var(--gap-lg); grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__legal {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between;
}

/* --------------------------------------------------------------------------
   6. Cards e grids editoriais
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.kicker::before {
  content: ""; width: .5rem; height: .95rem; border-radius: 2px;
  background: var(--cat-color, var(--brand));
}
a.kicker:hover { color: var(--brand); }

.card { display: flex; flex-direction: column; gap: .55rem; }
.card__body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; flex: 1 1 auto; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-3); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__title { font-size: var(--step-1); margin: 0; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); text-decoration: underline; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.card__meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ink-3); font-size: .78rem; }
.card__meta time { white-space: nowrap; }

.card--lead .card__title { font-size: var(--step-3); }
.card--lead .card__excerpt { font-size: var(--step-0); }
.card--compact { flex-direction: row; gap: .85rem; align-items: flex-start; }
.card--compact .card__media { flex: 0 0 104px; }
.card--compact .card__media img { aspect-ratio: 4 / 3; }
.card--compact .card__title { font-size: var(--step-0); }
.card--compact .card__meta { font-size: .74rem; }
.kicker { max-width: 100%; }
.card--text .card__title { font-size: var(--step-0); }

.section { margin-top: 2.75rem; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 3px solid var(--cat-color, var(--brand)); padding-top: .6rem; margin-bottom: 1.2rem;
}
.section__head h2 { margin: 0; font-size: var(--step-2); }
.section__head p { margin: .2rem 0 0; color: var(--ink-3); font-size: var(--step--1); }
.section__head a { font-size: var(--step--1); font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__head a:hover { text-decoration: underline; }

.grid { display: grid; gap: var(--gap-lg) var(--gap); }
.grid--hero { grid-template-columns: 2fr 1fr; align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.stack-list { display: grid; gap: 1rem; }
.stack-list > li { list-style: none; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.stack-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.divided > * + * { border-top: 1px solid var(--line); padding-top: 1.1rem; }

.block-theme {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.block-theme h2 { font-size: var(--step-1); margin-bottom: .35rem; }
.block-theme > p { color: var(--ink-2); font-size: var(--step--1); }
.block-theme ol { margin: 0; padding-left: 1.2rem; }
.block-theme li { margin-bottom: .55rem; }
.block-theme a { color: var(--ink); font-weight: 600; text-decoration: none; }
.block-theme a:hover { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Página inicial
   -------------------------------------------------------------------------- */
.home-intro {
  padding: 1.75rem 0 .25rem;
}
.home-intro h1 { font-size: var(--step-3); margin-bottom: .4rem; }
.home-intro p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.hero { margin-top: 1.5rem; }
.hero .card--lead .card__media img { aspect-ratio: 21 / 10; }
.hero__side { display: grid; gap: 1.1rem; align-content: start; }
.hero__side .card { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.hero__side .card:last-child { border-bottom: 0; padding-bottom: 0; }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.cat-chips a {
  display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none;
  border-left: 4px solid var(--cat-color, var(--brand));
}
.cat-chips a:hover { background: var(--surface-2); color: var(--brand); }

/* --------------------------------------------------------------------------
   8. Artigo
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--step--1); color: var(--ink-3); padding: 1rem 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; margin-top: 1rem; }
.article { min-width: 0; }
.article__header { margin-bottom: 1.5rem; }
.article__header h1 { margin: .5rem 0 .6rem; }
.article__standfirst { font-size: var(--step-1); color: var(--ink-2); margin: 0 0 1rem; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center;
  padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-3);
}
.article__meta strong { color: var(--ink-2); font-weight: 600; }
.article__figure { margin: 1.5rem 0; }
.article__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 40 / 21; object-fit: cover; }
.article__figure figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .5rem; }

.toc {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 2rem;
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .6rem; }
.toc ol { list-style: none; counter-reset: toc; padding-left: 0; margin: 0; font-size: var(--step--1); }
.toc > ol > li { counter-increment: toc; margin-bottom: .35rem; }
.toc > ol > li > a::before { content: counter(toc) ". "; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc ol ol { padding-left: 1.5rem; margin-top: .3rem; }
.toc ol ol li::before { content: "– "; color: var(--line-strong); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.prose { font-size: 1.06rem; }
.prose > h2 {
  margin-top: 2.4rem; padding-top: .9rem; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose > h3 { margin-top: 1.9rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li > strong:first-child { color: var(--ink); }
.callout {
  background: var(--brand-light); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.7rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.callout--atencao { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.callout--exemplo { background: var(--surface-2); border-color: var(--line-strong); }
.formula {
  background: var(--surface-3); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1.6rem 0;
  font-family: var(--font-mono); font-size: .92rem; line-height: 1.6;
  overflow-x: auto; white-space: pre; color: var(--ink);
}
.formula code { background: none; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }

.share { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share h2 { font-size: var(--step-1); }
.share ul { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--step--1); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.share__status { font-size: var(--step--1); color: var(--ok); margin-top: .6rem; min-height: 1.2em; }
[hidden] { display: none !important; }

.author-box {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; align-items: start;
  margin-top: 2.5rem; padding: 1.3rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; }
.author-box h2 { font-size: var(--step-1); margin-bottom: .3rem; }
.author-box p { font-size: var(--step--1); color: var(--ink-2); margin-bottom: .5rem; }

.related { margin-top: 3rem; }
.related h2 { border-top: 3px solid var(--brand); padding-top: .6rem; }

.article-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.5rem; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); }
.aside-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.aside-box ul { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); }
.aside-box li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.aside-box li:last-child { border-bottom: 0; }
.aside-box a { color: var(--ink); text-decoration: none; font-weight: 600; }
.aside-box a:hover { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------------------
   9. Páginas de categoria, busca e institucionais
   -------------------------------------------------------------------------- */
.page-header { padding: 1.5rem 0 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-header h1 { margin: .4rem 0 .5rem; }
.page-header__intro { max-width: 68ch; color: var(--ink-2); }
.page-header__intro p:last-child { margin-bottom: 1.5rem; }
.page-content { max-width: var(--wrap-prose); }
.page-content h2 { margin-top: 2.2rem; }
.page-content h3 { margin-top: 1.6rem; }
.page-updated { font-size: var(--step--1); color: var(--ink-3); }

.search-form-page { display: flex; gap: .5rem; margin: 0 0 1.5rem; max-width: 34rem; }
.search-form-page input[type="search"] {
  flex: 1 1 auto; padding: .7rem .9rem; font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.search-results { margin-top: 1.5rem; }
.search-results li { margin-bottom: 1.2rem; }
.search-status { font-weight: 600; color: var(--ink-2); }

.faq-list dt { font-weight: 700; margin-top: 1.2rem; }
.faq-list dd { margin: .3rem 0 0; color: var(--ink-2); }

.cat-index { display: grid; gap: var(--gap-lg); grid-template-columns: repeat(2, 1fr); }
.cat-index article {
  border: 1px solid var(--line); border-left: 5px solid var(--cat-color, var(--brand));
  border-radius: var(--radius); padding: 1.2rem;
}
.cat-index h2 { font-size: var(--step-1); margin-bottom: .3rem; }
.cat-index h2 a { color: var(--ink); text-decoration: none; }
.cat-index h2 a:hover { color: var(--brand); text-decoration: underline; }
.cat-index p { font-size: var(--step--1); color: var(--ink-2); }
.cat-index ul { list-style: none; padding: 0; margin: .8rem 0 0; font-size: var(--step--1); }
.cat-index li { padding: .35rem 0; border-top: 1px solid var(--line); }
.cat-index a { text-decoration: none; color: var(--ink-2); }
.cat-index a:hover { color: var(--brand); text-decoration: underline; }

.notice {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 1rem 1.2rem; background: var(--surface-2); margin: 1.5rem 0;
}
.error-page { text-align: center; padding: 3rem 0; }
.error-page h1 { font-size: var(--step-4); }
.error-page p { max-width: 52ch; margin-inline: auto; color: var(--ink-2); }
.error-page .btn { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   10. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid--hero { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-index { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gap-lg: 1.5rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .site-header__bar { justify-content: space-between; }
  .article-aside { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }

  /* Menu mobile: só colapsa quando o JS está ativo (progressive enhancement) */
  .js .nav-toggle {
    display: inline-flex; margin-left: auto;
    background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
    border-radius: var(--radius-sm); padding: .45rem .7rem; font: inherit; font-size: var(--step--1);
    font-weight: 600; cursor: pointer;
  }
  .js .site-nav[data-collapsed="true"] { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--brand); }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; }
  .author-box img { width: 64px; height: 64px; }
}

/* --------------------------------------------------------------------------
   11. Preferências do usuário
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root { --ink-3: #3C4A51; --line: #9AA7AD; --line-strong: #6C7B82; }
}

/* --------------------------------------------------------------------------
   12. Impressão
   -------------------------------------------------------------------------- */
@media print {
  :root { --ink: #000; --ink-2: #1a1a1a; --ink-3: #444; --surface: #fff; --surface-2: #fff; --line: #bbb; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.45; }
  .site-header, .site-nav, .site-footer, .share, .related, .article-aside,
  .reading-progress, .skip-link, .breadcrumb, .toc, .cat-chips, .header-search,
  .nav-toggle, .author-box img { display: none !important; }
  .article-layout, .cat-index, .grid { display: block !important; }
  .wrap { width: auto; margin: 0; }
  .article__figure img { max-height: 8cm; object-fit: contain; }
  .prose > h2 { border-top: 0; page-break-after: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  p, li, blockquote, table { page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after,
  .prose a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .callout, .formula { border: 1px solid #999; background: #fff; }
  .article::after {
    content: "Publicado em mktparacomercios.pages.dev — conteúdo perene de marketing para comércios locais.";
    display: block; margin-top: 1.5cm; padding-top: .4cm; border-top: 1px solid #bbb; font-size: 9pt; color: #444;
  }
}
