/* ==========================================================================
   Ideias de Renda Extra - folha de estilo unica
   1. Tokens  2. Reset  3. Base  4. Layout  5. Cabecalho  6. Componentes
   7. Home  8. Artigo  9. Paginas  10. Rodape  11. Utilitarios  12. Impressao
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --c-bg: #ffffff;
  --c-surface: #f4f6f4;
  --c-surface-2: #eaefec;
  --c-border: #dbe1dd;
  --c-border-strong: #b9c3bd;
  --c-text: #13181a;
  --c-muted: #4c5854;
  --c-brand: #0d5344;
  --c-brand-ink: #073329;
  --c-brand-soft: #e3f0eb;
  --c-accent: #a8431a;
  --c-accent-soft: #fbeee7;
  --c-link: #0b4b8f;
  --c-focus: #a8431a;

  --f-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: Georgia, "Times New Roman", "Nimbus Roman", serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1: clamp(1.13rem, 1.08rem + .25vw, 1.28rem);
  --step-2: clamp(1.32rem, 1.22rem + .5vw, 1.62rem);
  --step-3: clamp(1.55rem, 1.35rem + .95vw, 2.15rem);
  --step-4: clamp(1.85rem, 1.5rem + 1.7vw, 3rem);

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(9, 30, 25, .06), 0 6px 20px rgba(9, 30, 25, .07);
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0f1412;
    --c-surface: #161d1a;
    --c-surface-2: #1d2723;
    --c-border: #2a332e;
    --c-border-strong: #3b4a43;
    --c-text: #e9edea;
    --c-muted: #a9b5af;
    --c-brand: #61cfae;
    --c-brand-ink: #bfe9dc;
    --c-brand-soft: #14312a;
    --c-accent: #ff9d6d;
    --c-accent-soft: #33211a;
    --c-link: #8cc2ff;
    --c-focus: #ff9d6d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
  }
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

/* 3. Base ------------------------------------------------------------------ */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--f-sans); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
a { color: var(--c-link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection { background: var(--c-brand-soft); color: var(--c-brand-ink); }

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-brand); color: #fff; padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-color-scheme: dark) { .skip-link { color: #07211b; } }

/* 4. Layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

/* Itens de grid e flex tem min-width:auto por padrao, o que faz conteudo largo
   (tabelas, URLs, imagens) estourar a largura da pagina. min-width:0 corrige. */
.grid > *, .hero__grid > *, .cat-block > *, .article-layout > *, .card__body,
.topic-grid > *, .cat-index > *, .footer-grid > *, .archive-item > *,
.contact-grid > *, .card, .card > * { min-width: 0; }
.section { padding-block: var(--sp-6); }
.section + .section { border-top: 1px solid var(--c-border); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap;
}
.section__title {
  font-size: var(--step-2);
  border-left: 6px solid var(--c-brand);
  padding-left: var(--sp-3);
}
.section__link { font-weight: 600; font-size: var(--step--1); }

/* 5. Cabecalho ------------------------------------------------------------- */
.site-header {
  border-bottom: 3px solid var(--c-brand);
  background: var(--c-bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark {
  background: var(--c-brand); color: #fff; font-weight: 800;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: var(--radius-sm); letter-spacing: -.04em; font-size: 1.05rem;
}
@media (prefers-color-scheme: dark) { .brand__mark { color: #07211b; } }
.brand__text { font-size: var(--step-1); line-height: 1.1; }
.brand__text strong { display: block; font-size: .72em; color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.site-search { display: flex; gap: .35rem; }
.site-search input {
  border: 1px solid var(--c-border-strong); background: var(--c-bg);
  border-radius: var(--radius-sm); padding: .5rem .7rem; min-width: 12rem;
}
.site-search button {
  background: var(--c-brand); color: #fff; border: 0; cursor: pointer;
  border-radius: var(--radius-sm); padding: .5rem 1rem; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .site-search button { color: #07211b; } }
.site-search button:hover { background: var(--c-brand-ink); }
@media (prefers-color-scheme: dark) { .site-search button:hover { background: var(--c-brand-ink); color: #07211b; } }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm); padding: .45rem .7rem; cursor: pointer; font-weight: 600;
}
.menu-toggle__bars { display: inline-block; width: 1rem; height: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 -5px currentColor; vertical-align: middle; margin-right: .35rem; }

.site-nav { background: var(--c-surface); border-top: 1px solid var(--c-border); }
.site-nav ul { display: flex; gap: var(--sp-4); list-style: none; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: thin; }
.site-nav li { flex: 0 0 auto; }
.site-nav a {
  display: block; padding: .6rem 0; font-size: var(--step--1); font-weight: 600;
  color: var(--c-text); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--c-accent); color: var(--c-accent); }

@media (max-width: 860px) {
  .site-search { display: none; }
  .menu-toggle { display: inline-block; }
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; overflow: visible; }
  .site-nav li + li { border-top: 1px solid var(--c-border); }
  .site-nav a { padding: .7rem 0; border-bottom: 0; }
}

/* 6. Componentes ----------------------------------------------------------- */
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-accent); text-decoration: none;
}
.kicker:hover { text-decoration: underline; }

.card { display: flex; flex-direction: column; gap: var(--sp-2); }
.card__body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; flex: 1; }
.card__media { overflow: hidden; border-radius: var(--radius); background: var(--c-surface-2); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__title { font-size: var(--step-1); line-height: 1.25; }
.card__title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--c-accent), var(--c-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.card__title a:hover { background-size: 100% 2px; }
.card__excerpt { color: var(--c-muted); font-size: var(--step--1); }
.card__meta { color: var(--c-muted); font-size: var(--step--1); display: flex; gap: .6rem; flex-wrap: wrap; }
.card__meta span + span::before { content: "•"; margin-right: .6rem; color: var(--c-border-strong); }

.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.list-compact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.list-compact li { border-top: 1px solid var(--c-border); padding-top: var(--sp-3); }
.list-compact li:first-child { border-top: 0; padding-top: 0; }
.list-compact a { color: inherit; text-decoration: none; font-weight: 600; }
.list-compact a:hover { color: var(--c-accent); text-decoration: underline; }
.list-compact .card__meta { margin-top: .2rem; font-weight: 400; }

.callout {
  background: var(--c-brand-soft); border-left: 5px solid var(--c-brand);
  padding: var(--sp-4); border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: var(--sp-5);
}
.callout p + p { margin-top: var(--sp-3); }

.breadcrumb { font-size: var(--step--1); padding-block: var(--sp-3); color: var(--c-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-muted); }

.table-wrap { overflow-x: auto; margin-block: var(--sp-5); border: 1px solid var(--c-border); border-radius: var(--radius); }
table { font-size: var(--step--1); }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--c-border); vertical-align: top; }
thead th { background: var(--c-surface); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.btn {
  display: inline-block; background: var(--c-brand); color: #fff; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm); text-decoration: none; border: 0; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .btn { color: #07211b; } }
.btn:hover { background: var(--c-brand-ink); }
.btn--ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }

/* 7. Home ------------------------------------------------------------------ */
.hero { padding-block: var(--sp-5) var(--sp-6); }
.hero__grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); align-items: start; }
}
.lead-card .card__media img { aspect-ratio: 16 / 8.5; }
.lead-card .card__title { font-size: var(--step-4); letter-spacing: -.025em; }
.lead-card .card__excerpt { font-size: var(--step-0); }
.hero__side { display: grid; gap: var(--sp-4); align-content: start; }
.hero__side .card { flex-direction: row; gap: var(--sp-3); align-items: flex-start; }
.hero__side .card__media { flex: 0 0 108px; }
.hero__side .card__media img { aspect-ratio: 4 / 3; }
.hero__side .card__body { gap: .3rem; }
/* Sem o marcador entre itens: quando a linha quebra, o ponto ficaria órfão. */
.hero__side .card__meta { gap: .15rem .6rem; }
.hero__side .card__meta span + span::before { content: none; margin: 0; }
.hero__side .card__title { font-size: var(--step-0); }
.hero__side .card + .card { border-top: 1px solid var(--c-border); padding-top: var(--sp-4); }

.cat-block { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cat-block { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cat-block__intro { color: var(--c-muted); font-size: var(--step--1); margin-bottom: var(--sp-4); }

.topic-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.topic {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: var(--sp-4); background: var(--c-surface); display: grid; gap: var(--sp-2);
}
.topic h3 { font-size: var(--step-1); }
.topic h3 a { color: inherit; text-decoration: none; }
.topic h3 a:hover { color: var(--c-accent); text-decoration: underline; }
.topic p { color: var(--c-muted); font-size: var(--step--1); }
.topic ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); }
.topic li + li { margin-top: .3rem; }

/* 8. Artigo ---------------------------------------------------------------- */
.reading-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 100; pointer-events: none;
}
.article-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7);
  grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .article-aside { position: sticky; top: 7.5rem; display: grid; gap: var(--sp-5); }
}
.article-head { margin-bottom: var(--sp-5); }
.article-head h1 { font-size: var(--step-4); margin-block: var(--sp-3); max-width: 22ch; }
.article-head .standfirst { font-size: var(--step-1); color: var(--c-muted); font-family: var(--f-serif); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: var(--sp-4);
  padding-block: var(--sp-3); border-block: 1px solid var(--c-border);
  font-size: var(--step--1); color: var(--c-muted); align-items: center;
}
.article-meta a { color: var(--c-muted); }
.article-figure { margin-block: var(--sp-5); }
.article-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-surface-2); }
.article-figure figcaption { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-2); }

.toc {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5); background: var(--c-surface); margin-block: var(--sp-5);
}
.toc h2 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--step--1); }
.toc li + li { margin-top: .4rem; }
.toc ol ol { padding-left: 1rem; margin-top: .35rem; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-accent); text-decoration: underline; }

.prose { font-family: var(--f-serif); font-size: 1.09rem; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-family: var(--f-sans); font-size: var(--step-3); margin-top: var(--sp-7);
  padding-top: var(--sp-4); border-top: 1px solid var(--c-border); scroll-margin-top: 8rem;
}
.prose h3 { font-family: var(--f-sans); font-size: var(--step-2); margin-top: var(--sp-6); scroll-margin-top: 8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .45rem; }
.prose strong { color: var(--c-text); }
.prose a { color: var(--c-link); font-weight: 600; }
.prose .callout { font-family: var(--f-sans); font-size: var(--step--1); }
.prose table { font-family: var(--f-sans); }
.prose code, .share code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: var(--c-surface-2); padding: .1em .35em; border-radius: 4px;
  font-size: .9em; overflow-wrap: anywhere;
}
.prose, .card__title, .article-head h1, .page-head h1 { overflow-wrap: break-word; }

.faq h3 { font-size: var(--step-1); }
.share { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 2px solid var(--c-brand); }
.share h2 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.share ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share a, .share button {
  display: inline-block; border: 1px solid var(--c-border-strong); background: var(--c-bg);
  color: var(--c-text); border-radius: 999px; padding: .45rem 1rem; font-size: var(--step--1);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { background: var(--c-brand-soft); border-color: var(--c-brand); }
.share-status { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-2); min-height: 1.4em; }

.author-box {
  display: grid; gap: var(--sp-4); grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: var(--sp-5); margin-top: var(--sp-6); background: var(--c-surface);
}
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--c-surface-2); }
.author-box h2 { font-size: var(--step-1); }
.author-box p { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-2); }
.author-box ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: var(--sp-3); font-size: var(--step--1); }
.author-box ul li { background: var(--c-brand-soft); color: var(--c-brand-ink); padding: .15rem .6rem; border-radius: 999px; }

.related { padding-block: var(--sp-6); border-top: 1px solid var(--c-border); }
.related h2 { font-size: var(--step-2); margin-bottom: var(--sp-4); }

.aside-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-4); background: var(--c-surface); }
.aside-box h2 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); font-size: var(--step--1); }
.aside-box a { color: var(--c-text); text-decoration: none; font-weight: 600; }
.aside-box a:hover { color: var(--c-accent); text-decoration: underline; }
.aside-box .card__meta {
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.aside-box .card__meta a { color: var(--c-link); font-weight: 600; }

.pagination-articles { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); font-size: var(--step--1); }
.pagination-articles a { display: block; max-width: 22rem; }

/* 9. Paginas --------------------------------------------------------------- */
.page-head { padding-block: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--c-border); }
.page-head h1 { font-size: var(--step-4); max-width: 24ch; }
.page-head p { color: var(--c-muted); max-width: 65ch; margin-top: var(--sp-3); font-size: var(--step-1); }
.page-body { padding-block: var(--sp-6); }
.page-body .prose { margin-inline: 0; }

.cat-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.cat-index { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cat-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-5); display: grid; gap: var(--sp-3); background: var(--c-bg); }
.cat-card h2 { font-size: var(--step-2); }
.cat-card h2 a { color: inherit; text-decoration: none; }
.cat-card h2 a:hover { color: var(--c-accent); text-decoration: underline; }
.cat-card p { color: var(--c-muted); font-size: var(--step--1); }
.cat-card .count { font-size: var(--step--1); color: var(--c-muted); font-weight: 600; }

.archive-list { display: grid; gap: var(--sp-5); }
.archive-item { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-5); }
@media (min-width: 700px) { .archive-item { grid-template-columns: 260px minmax(0, 1fr); } }
.archive-item img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.search-form-page { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: var(--sp-5); }
.search-form-page input[type="search"] {
  flex: 1 1 18rem; border: 2px solid var(--c-border-strong); border-radius: var(--radius-sm);
  padding: .7rem .9rem; background: var(--c-bg);
}
#resultados-busca { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); list-style: none; padding: 0; }
#resultados-busca li { border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-4); }
#resultados-busca h2 { font-size: var(--step-1); }
#resultados-busca h2 a { color: inherit; text-decoration: none; }
#resultados-busca h2 a:hover { color: var(--c-accent); text-decoration: underline; }
#resultados-busca p { color: var(--c-muted); font-size: var(--step--1); margin-top: .3rem; }

.error-page { text-align: center; padding-block: var(--sp-8); }
.error-page .code { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; color: var(--c-brand); line-height: 1; letter-spacing: -.05em; }

.contact-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--sp-5); }
.contact-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-5); background: var(--c-surface); }
.contact-card h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.contact-card p { font-size: var(--step--1); color: var(--c-muted); }

/* 10. Rodape --------------------------------------------------------------- */
.site-footer { background: var(--c-surface); border-top: 3px solid var(--c-brand); margin-top: var(--sp-7); padding-block: var(--sp-6) var(--sp-5); }
.footer-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand { font-size: var(--step-1); }
.footer-brand strong { display: block; font-size: .7em; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.footer-note { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-3); max-width: 34ch; }
.footer-title { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: var(--step--1); }
.footer-col a { color: var(--c-text); text-decoration: none; }
.footer-col a:hover { color: var(--c-accent); text-decoration: underline; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); font-size: var(--step--1); color: var(--c-muted); display: grid; gap: var(--sp-2); }

/* 11. Utilitarios ---------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--c-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin-top: var(--sp-5); font-size: var(--step--1); }
.tag-list li { border: 1px solid var(--c-border); border-radius: 999px; padding: .15rem .7rem; color: var(--c-muted); }

/* 12. Impressao ------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .site-nav, .share, .reading-progress, .breadcrumb,
  .related, .article-aside, .skip-link, .site-search, .menu-toggle, .toc,
  .pagination-articles, .author-box ul { display: none !important; }
  html, body { background: #fff; color: #000; font-size: 11.5pt; }
  .wrap { width: auto; margin: 0; }
  .article-layout { display: block; }
  .prose { max-width: none; font-size: 11.5pt; line-height: 1.5; }
  .prose h2, .prose h3 { break-after: avoid; page-break-after: avoid; border: 0; }
  .prose img, .article-figure { break-inside: avoid; page-break-inside: avoid; }
  .article-figure img { max-height: 8cm; object-fit: contain; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="/"]::after { content: " (ideiasderendaextra.com.br" attr(href) ")"; font-size: 9pt; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .callout { border: 1px solid #999; background: none; }
  table, .table-wrap { break-inside: avoid; }
  @page { margin: 1.6cm; }
}

/* 13. Guarda final --------------------------------------------------------- */
html, body { overflow-x: clip; max-width: 100%; }
