:root {
  --bg: #f6f3ee; --surface: #fffdf9; --ink: #1a2421; --ink2: #3d4a45;
  --brand: #0f6b5c; --brand2: #1f4e79; --line: #d9d2c6; --focus: #c45c26;
  --warn: #8a4b00; --warn-bg: #f8e8c8; --bad: #8b1e1e; --bad-bg: #f5dada;
  --ok: #1e5a2c; --ok-bg: #dfead8; --tap: 44px; --chip-bg: #fffdf9; --chip-fg: #1a2421;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #121816; --surface: #1a2421; --ink: #eef3ef; --ink2: #b7c4bc;
  --brand: #3cb89a; --brand2: #7eb6e0; --line: #2c3a34; --focus: #e08a4f;
  --warn: #f0c27a; --warn-bg: #3a2e16; --bad: #f0a0a0; --bad-bg: #3a1c1c;
  --ok: #9fd4a8; --ok-bg: #1e3324; --chip-bg: #24302b; --chip-fg: #eef3ef;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
html.big { font-size: 19.125px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, .chip:focus-visible, .tool-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 .4rem 0; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 1rem 1.1rem 3rem; overflow-x: clip; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); white-space: nowrap; }
.brand-mark { width: 2.15rem; height: 2.15rem; color: var(--brand); display: block; flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.header-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tool-btn { min-height: var(--tap); min-width: var(--tap); padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--chip-bg); color: var(--chip-fg); font: inherit; font-size: .9rem; cursor: pointer; }
nav.primary { display: none; width: 100%; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--chip-bg); text-decoration: none; color: var(--chip-fg); font-size: .9rem; white-space: nowrap; }
.chip[aria-current="page"], .chip[aria-current="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.35rem; }
.hero h1 { margin: .2rem 0 .6rem; font-size: clamp(1.45rem, 4.5vw, 2.25rem); line-height: 1.15; font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
.lead { color: var(--ink2); font-size: 1.02rem; max-width: 42rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .22rem .5rem; border-radius: .4rem; margin: 0 .25rem .35rem 0; }
.badge-previa { background: #e8dff5; color: #3b2a5c; }
html[data-theme="dark"] .badge-previa { background: #3a2d55; color: #e2d6f8; }
.badge-indicativo { background: #dceaf5; color: #1a3a55; }
html[data-theme="dark"] .badge-indicativo { background: #1e3348; color: #c5ddf0; }
.badge-revisao { background: var(--warn-bg); color: var(--warn); }
.badge-penalidade { background: var(--bad-bg); color: var(--bad); }
.badge-regional { background: #e4e0f5; color: #3a2d6d; }
html[data-theme="dark"] .badge-regional { background: #2c2750; color: #d2c9f5; }
.badge-sem-local { background: #ececec; color: #444; }
html[data-theme="dark"] .badge-sem-local { background: #2a2a2a; color: #ccc; }
.meta, .source, .small { font-size: .85rem; color: var(--ink2); }
.score { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.score span { font-size: .95rem; font-weight: 500; color: var(--ink2); }
table.rank { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
table.rank th, table.rank td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rank th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink2); line-height: 1.2; }
table.rank td.num, table.rank th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 2.4rem; }
table.rank th.num:nth-child(3), table.rank td.num:nth-child(3) { width: 4.1rem; }
table.rank th.price, table.rank td.price { text-align: right; width: 7.4rem; vertical-align: middle; }
table.rank .price-val { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
table.rank a { font-weight: 600; text-underline-offset: 2px; }
table.rank td.lugar { overflow-wrap: anywhere; hyphens: auto; }
table.rank td.lugar .lugar-nome {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem;
}
table.rank td.lugar .lugar-nome > a:not(.selo-artigo) {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.25; max-height: 2.5em;
}
table.rank .score { font-size: 1rem; }
table.rank .warn-ico {
  color: var(--warn); cursor: help; font-style: normal; margin-left: .12rem;
  white-space: nowrap; font-weight: 700;
}
.table-note, .table-legend { font-size: .85rem; color: var(--ink2); margin: .45rem 0 .7rem; max-width: 46rem; }
.table-legend { margin-top: .65rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); max-width: 100%; display: block; }
#map { height: min(70vh, 560px); width: 100%; border-radius: .9rem; border: 1px solid var(--line); z-index: 1; background: var(--surface); }
.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: .75rem; }
.chart-wrap img { width: 100%; height: auto; display: block; }
article.place { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; }
article.place h1 { margin-top: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
.eyebrow { font-size: .78rem; letter-spacing: .02em; color: var(--brand); text-transform: uppercase; font-weight: 700; }
.comp { margin: .6rem 0; }
.comp-bar { height: .55rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.comp-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.aviso { border-left: 4px solid var(--warn); background: var(--warn-bg); padding: .7rem .9rem; border-radius: .4rem; font-size: .9rem; margin: .8rem 0; color: var(--ink); }
.disclaimer, footer.site-foot { font-size: .85rem; color: var(--ink2); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.foot-aff { font-size: .85rem; color: var(--ink2); margin: .4rem 0 0; }
.popup-score { font-size: .9rem; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .85rem; margin: .75rem 0; }
.dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .3rem; }
.related { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 0; }
.search-page #search { margin-top: 1rem; min-height: 3rem; }
@media (max-width: 400px) {
  html { font-size: 16px; }
  html.big { font-size: 18px; }
  .wrap { padding: .75rem .7rem 2.5rem; }
  table.rank { font-size: .78rem; }
  table.rank th, table.rank td { padding: .4rem .22rem; }
  table.rank td.num, table.rank th.num { width: 1.7rem; }
  table.rank th.num:nth-child(3), table.rank td.num:nth-child(3) { width: 3.5rem; }
  table.rank th.price, table.rank td.price { width: 6.5rem; }
  table.rank .score { font-size: .95rem; }
  .score { font-size: 1.35rem; }
  table.rank .score { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 360px) {
  .chip { white-space: normal; text-align: center; }
  table.rank td.num, table.rank th.num,
  table.rank td.price, table.rank .price-val { white-space: nowrap; }
}


/* Selo de artigo ao lado do nome da cidade (rankings, home, ficha, simulador, busca) */
.selo-artigo {
  display: inline-flex; align-items: center; gap: .28rem;
  flex: 0 0 auto;
  vertical-align: baseline;
  text-decoration: none;
  font-weight: 650;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: 999px;
  padding: .18rem .45rem .18rem .35rem;
  white-space: nowrap;
}
.selo-artigo:hover { background: color-mix(in srgb, var(--brand) 20%, var(--surface)); text-decoration: none; }
.selo-artigo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.selo-artigo-ico { display: block; flex: 0 0 auto; }
.selo-artigo-txt { font-weight: 700; }
.selo-artigo-video { font-weight: 650; color: var(--brand); }
.selo-artigo-destaque {
  font-size: .92rem;
  padding: .55rem .9rem .55rem .75rem;
  gap: .45rem;
  min-height: var(--tap);
}
.place-artigo { margin: .85rem 0 1rem; }
@media (max-width: 400px) {
  table.rank .selo-artigo-txt,
  table.rank .selo-artigo-video,
  .home-previa .selo-artigo-txt,
  .home-previa .selo-artigo-video,
  .sim-line .selo-artigo-txt,
  .sim-line .selo-artigo-video,
  .pagefind-ui__result .selo-artigo-txt,
  .pagefind-ui__result .selo-artigo-video {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  table.rank .selo-artigo,
  .home-previa .selo-artigo,
  .sim-line .selo-artigo,
  .pagefind-ui__result .selo-artigo {
    padding: .28rem; min-width: 1.85rem; min-height: 1.85rem; justify-content: center;
  }
}



/* Ranking global (prints 16:9 e 9:16; versão e data bem visíveis no topo) */
.page-ranking .wrap { max-width: 48rem; }
.rank-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: baseline;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 2px solid var(--brand);
  border-radius: .8rem;
  background: var(--ok-bg);
  color: var(--ink);
}
.rank-stamp-ver {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brand);
  text-transform: uppercase;
}
.rank-stamp-date {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rank-hero { margin-bottom: 1.1rem; }
.rank-hero h1 { margin-bottom: .45rem; }
table.rank.rank-global { font-size: .92rem; }
table.rank.rank-global caption {
  caption-side: top;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink2);
  padding: .65rem .7rem .35rem;
}
table.rank.rank-global th.num:nth-child(3),
table.rank.rank-global td.num:nth-child(3) { width: auto; text-align: left; }
table.rank.rank-global th.num:nth-child(4),
table.rank.rank-global td.num:nth-child(4) { width: 4.4rem; text-align: right; }
table.rank.rank-global td.pais,
table.rank.rank-global th:nth-child(3) {
  width: 8.2rem;
  color: var(--ink2);
  overflow-wrap: anywhere;
  hyphens: auto;
}
table.rank.rank-global th, table.rank.rank-global td { padding: .38rem .45rem; }
@media (max-width: 400px) {
  table.rank.rank-global { font-size: .8rem; }
  table.rank.rank-global th, table.rank.rank-global td { padding: .34rem .22rem; }
  table.rank.rank-global td.pais, table.rank.rank-global th:nth-child(3) { width: 6.2rem; }
  table.rank.rank-global th.num:nth-child(4),
  table.rank.rank-global td.num:nth-child(4) { width: 3.6rem; }
  .rank-stamp { padding: .7rem .75rem; }
  .rank-stamp-ver { font-size: 1.05rem; }
  .rank-stamp-date { font-size: .95rem; }
}
@media print {
  .skip, .header-tools, .disclaimer, footer.site-foot, .badge-previa { display: none !important; }
  header.site { margin-bottom: .6rem; padding-bottom: .5rem; }
  .page-ranking .wrap { max-width: none; padding: .4rem; }
  .rank-stamp { break-inside: avoid; }
  table.rank.rank-global { font-size: 10pt; }
  table.rank.rank-global th, table.rank.rank-global td { padding: .22rem .3rem; }
}



/* ---- Cabeçalho compacto (home UX 2026-11-10) ---- */
.header-in {
  max-width: 72rem; margin: 0 auto;
  padding: .65rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: .5rem;
  row-gap: .35rem;
}
.header-in .brand { grid-column: 1; grid-row: 1; min-width: 0; }
.menu-toggle {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.menu-btn {
  grid-column: 2; grid-row: 1; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: var(--tap);
  padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: .55rem;
  background: var(--chip-bg); color: var(--chip-fg);
  font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
}
.menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.header-tools { grid-column: 3; grid-row: 1; }
.menu-toggle:checked ~ nav.primary { display: block; grid-column: 1 / -1; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list a {
  display: flex; align-items: center;
  min-height: var(--tap); padding: .35rem .15rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.nav-list a:hover { color: var(--brand); }
.nav-list a[aria-current="page"],
.nav-list a[aria-current="true"] { color: var(--brand); }
.nav-list .sub { list-style: none; margin: 0; padding: 0 0 .35rem .85rem; }
.nav-list .sub a { font-weight: 500; color: var(--ink2); min-height: 2.5rem; }
.nav-list .nav-cta a {
  justify-content: center; margin: .45rem 0 .15rem;
  background: var(--brand); color: #fff; border-radius: .55rem; font-weight: 700;
}
.nav-list .nav-cta a:hover { background: #0c584c; color: #fff; }
html[data-theme="dark"] .nav-list .nav-cta a { background: var(--brand); color: #10211c; }
html[data-theme="dark"] .nav-list .nav-cta a:hover { background: #5fd0b5; color: #10211c; }
html[data-theme="dark"] .nav-list a { color: var(--ink); }
html[data-theme="dark"] .nav-list a[aria-current="page"],
html[data-theme="dark"] .nav-list a[aria-current="true"],
html[data-theme="dark"] .nav-list a:hover { color: var(--brand); }

@media (min-width: 1040px) {
  .menu-btn, .menu-toggle { display: none; }
  .header-in {
    display: flex; flex-wrap: nowrap; align-items: center;
    gap: .75rem 1rem; padding: .55rem 1.1rem;
  }
  .header-in .brand { order: 1; }
  nav.primary { display: block; width: auto; flex: 1 1 auto; order: 2; }
  .header-tools { order: 3; }
  .nav-list { display: flex; align-items: center; justify-content: flex-end; gap: .1rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a { padding: 0 .7rem; white-space: nowrap; }
  .nav-list .sub {
    position: absolute; top: 100%; left: 0; min-width: 13.5rem;
    padding: .4rem; margin: 0;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: .7rem;
    box-shadow: 0 10px 28px rgba(26, 36, 33, .12);
    opacity: 0; transform: scaleY(.96); transform-origin: top;
    pointer-events: none; z-index: 60;
  }
  .nav-list .sub a { padding: 0 .7rem; color: var(--ink); border-radius: .45rem; }
  .nav-list .sub a:hover { background: var(--bg); color: var(--brand); }
  .nav-list li:hover > .sub,
  .nav-list li:focus-within > .sub {
    opacity: 1; transform: scaleY(1); pointer-events: auto;
  }
  .nav-list .nav-cta a { margin: 0 0 0 .35rem; padding: 0 1rem; }
  html[data-theme="dark"] .nav-list .sub { box-shadow: 0 10px 28px rgba(0,0,0,.4); }
}

@media (max-width: 400px) {
  .header-in { padding: .55rem .7rem; }
  .brand { font-size: 1.12rem; }
}

/* ---- Home redesenhada ---- */
.home-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.1rem; }
@media (max-width: 400px) { .home-wrap { padding: 0 .7rem; } }

.page-home .home-hero {
  padding: 2.2rem 0 2rem;
  background: linear-gradient(180deg, #e7f3ef 0%, var(--bg) 100%);
}
html[data-theme="dark"] .page-home .home-hero {
  background: linear-gradient(180deg, #1a2a26 0%, var(--bg) 100%);
}
.page-home .home-hero h1 {
  margin: .15rem 0 .7rem;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
  max-width: 18ch;
}
.page-home .home-lead {
  color: var(--ink2); font-size: 1.08rem; max-width: 42rem; margin: 0 0 1.1rem;
}
.page-home .agi-box {
  margin: 0 0 1.25rem; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: .8rem; max-width: 44rem;
}
.page-home .agi-box h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.02rem; margin: 0 0 .3rem;
}
.page-home .agi-box p { margin: 0; color: var(--ink2); font-size: .98rem; }
.home-acoes { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; max-width: 24rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .65rem 1.15rem;
  border-radius: .6rem; border: 2px solid var(--brand);
  font-weight: 700; text-decoration: none; text-align: center;
  background: var(--brand); color: #fff;
}
.btn:hover { background: #0c584c; border-color: #0c584c; color: #fff; }
.btn-sec { background: transparent; color: var(--brand); }
.btn-sec:hover { background: #e7f3ef; color: #0c584c; }
.btn-claro { background: #fff; color: #0c584c; border-color: #fff; }
.btn-claro:hover { background: #e7f3ef; color: #0c584c; border-color: #e7f3ef; }
.btn-bloco { display: flex; width: 100%; }
html[data-theme="dark"] .btn { color: #10211c; }
html[data-theme="dark"] .btn:hover { background: #5fd0b5; border-color: #5fd0b5; color: #10211c; }
html[data-theme="dark"] .btn-sec { background: transparent; color: var(--brand); }
html[data-theme="dark"] .btn-sec:hover { background: #1a2a26; color: #5fd0b5; }
html[data-theme="dark"] .btn-claro { background: var(--surface); color: var(--brand); border-color: var(--surface); }

.home-sec { padding: 2.4rem 0; }
.home-sec-alt { background: #e7f3ef; }
html[data-theme="dark"] .home-sec-alt { background: #1a2a26; }
.home-sec-cab { margin-bottom: 1.2rem; }
.home-sec-cab h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0 0 .35rem; line-height: 1.2;
}
.home-sec-cab p { color: var(--ink2); max-width: 46rem; margin: 0; }

.home-previas { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.home-previa {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: .9rem; padding: 1rem 1.05rem 1.05rem;
  display: flex; flex-direction: column; min-width: 0;
}
.home-previa h3 { margin: 0 0 .15rem; font-size: 1.2rem; font-family: Georgia, "Times New Roman", serif; }
.home-previa-desc { color: var(--ink2); font-size: .88rem; margin: 0 0 .7rem; }
.home-previa ol { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: pos; flex: 1; }
.home-previa li {
  counter-increment: pos;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  column-gap: .5rem; align-items: baseline;
  padding: .7rem 0; border-top: 1px solid var(--line);
}
.home-previa li::before {
  content: counter(pos); color: var(--ink2);
  font-variant-numeric: tabular-nums; font-weight: 650;
}
.home-previa .lugar-nome {
  display: flex; align-items: baseline; gap: .35rem; min-width: 0;
}
.home-previa .lugar-nome > a:not(.selo-artigo) {
  color: var(--ink); text-decoration: none; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.home-previa .lugar-nome > a:not(.selo-artigo):hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.home-nota { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.home-preco { grid-column: 2 / -1; font-size: .82rem; color: var(--ink2); margin-top: .1rem; }
.home-preco .warn-ico { font-size: .85em; }

.criterios { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1rem; }
.criterios li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .75rem; font-size: .88rem;
}
.nota-meta { color: var(--ink2); font-size: .95rem; max-width: 46rem; margin: 0; }
.nota-meta a { font-weight: 650; }

.home-faixa { background: var(--brand); color: #fff; padding: 2.4rem 0; }
.home-faixa h2 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 4vw, 1.85rem); margin: 0 0 .5rem; }
.home-faixa p { color: #e7f3ef; max-width: 40rem; margin: 0 0 1rem; }
.home-faixa .nota-meta { color: #d4e8e2; margin-top: .85rem; }
html[data-theme="dark"] .home-faixa { background: #0c584c; }
html[data-theme="dark"] .home-faixa .btn-claro { background: #fff; color: #0c584c; border-color: #fff; }

.home-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.home-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.home-card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; background: #e7f3ef; display: block; }
.home-card-img-contain { aspect-ratio: 4 / 3; object-fit: contain; background: #eef4f1; }
html[data-theme="dark"] .home-card-img-contain { background: #1a2421; }
.home-cards-3:has(> :only-child) { grid-template-columns: minmax(0, 36rem); }
.home-card-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.home-card-body h3 { margin: 0 0 .35rem; font-size: 1.15rem; font-family: Georgia, "Times New Roman", serif; }
.home-card-body h3 a { color: var(--ink); text-decoration: none; }
.home-card-body h3 a:hover { color: var(--brand); }
.home-card-body p { color: var(--ink2); font-size: .95rem; margin: 0 0 .8rem; flex: 1; }
.home-card-meta { font-size: .82rem; color: var(--ink2); margin: 0 0 .45rem; }
.home-card-credit { font-size: .75rem; color: var(--ink2); margin: .15rem 0 0; }
.selo {
  display: inline-block; background: #e7f3ef; color: #0c584c;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .12rem .5rem; border-radius: .3rem; text-transform: uppercase;
}
html[data-theme="dark"] .selo { background: #1a2a26; color: var(--brand); }
.link-seta { font-weight: 700; text-decoration: none; }
.link-seta::after { content: " →"; }
.home-sec-foot { margin: 1.15rem 0 0; }

.home-aviso {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: .9rem; padding: 1rem 1.1rem; font-size: .95rem; color: var(--ink2);
}
.home-aviso strong { color: var(--ink); }
.vazio-artigos {
  border: 1px dashed var(--line); border-radius: .9rem;
  padding: 1.15rem; color: var(--ink2); text-align: center; margin: 1rem 0 0;
}

.page-artigos .artigos-hero, .page-rank-sec .rank-hero { margin-bottom: 0; }
.page-home .disclaimer, .page-home footer.site-foot { margin-top: 0; }

@media (min-width: 640px) {
  .home-acoes { flex-direction: row; max-width: none; }
  .home-cards-2 { grid-template-columns: repeat(2, 1fr); }
  .home-sec, .page-home .home-hero, .home-faixa { padding-top: 3rem; padding-bottom: 3rem; }
}
@media (min-width: 960px) {
  .home-previas { grid-template-columns: repeat(2, 1fr); }
  .home-cards-3 { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .menu-btn, .menu-toggle, .header-tools { display: none !important; }
  header.site { position: static; }
  nav.primary { display: none !important; }
}


/* ---- Seletor PT | EN ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin-right: .15rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--ink);
}
.lang-switch a,
.lang-switch span[aria-current="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  min-width: 1.7rem;
  padding: .15rem .28rem;
  border-radius: .35rem;
  text-decoration: none;
  color: inherit;
}
.lang-switch a { color: var(--ink2); font-weight: 650; }
.lang-switch a:hover { color: var(--brand); text-decoration: none; }
.lang-switch [aria-current="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}
.lang-switch-sep { color: var(--ink2); font-weight: 500; opacity: .7; }
.lang-switch a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 400px) {
  .lang-switch { font-size: .78rem; gap: .18rem; margin-right: 0; }
  .lang-switch a, .lang-switch span[aria-current="true"] { min-width: 1.55rem; padding: .12rem .2rem; }
}

/* ---- Cabeçalho em telas estreitas (10/11/2026): marca + Menu na 1ª linha; idioma, A+ e tema na 2ª — sem sobreposição ---- */
.header-in .brand { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) {
  .header-in { grid-template-columns: minmax(0, 1fr) auto; row-gap: .4rem; }
  .header-in .brand { grid-column: 1; grid-row: 1; }
  .menu-btn { grid-column: 2; grid-row: 1; }
  .header-tools {
    grid-column: 1 / -1; grid-row: 2;
    flex-wrap: nowrap; justify-content: flex-end; gap: .4rem;
    padding-top: .4rem; border-top: 1px solid var(--line);
  }
  .header-tools .lang-switch { margin-right: auto; }
  .menu-toggle:checked ~ nav.primary { grid-row: 3; }
}

/* ---- Busca com IA: resumo resposta-primeiro, FAQ, autoria, tabelas ---- */
.resumo-resposta {
  max-width: 42rem;
  margin: .85rem 0 1.1rem;
  padding: .85rem 1rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: .6rem;
}
.resumo-resposta p { margin: 0; color: var(--ink); font-size: 1.02rem; }
.byline {
  margin: .15rem 0 .35rem;
  font-size: .85rem;
  color: var(--ink2);
}
.byline time { font-variant-numeric: tabular-nums; }
section.faq { margin: 1.8rem 0 1.2rem; max-width: 42rem; }
section.faq h2 { margin-bottom: .7rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: .7rem 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 .85rem; color: var(--ink2); }
.faq-item .faq-a p { margin: 0; }
nav.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.2rem 0 .4rem;
}
table.rank caption {
  caption-side: top;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink2);
  padding: .65rem .7rem .35rem;
}
@media (max-width: 400px) {
  .resumo-resposta { padding: .7rem .75rem; font-size: 1rem; }
  .faq-item summary { padding: .65rem 0; }
}
