/* brstamps — estilo base
   Branco, linhas finas, tipografia DM Sans. O peso visual fica com o selo. */

:root {
  --ink: #16201e;
  --ink-2: #3a4542;
  --muted: #6d7673;
  --line: #e2e5e1;
  --paper: #ffffff;
  --tile: #f3f4f1;
  --tile-2: #eceee9;
  --accent: #0e6b4f;
  --accent-soft: #e3f1ec;
  --max: 1360px;
  --gutter: clamp(16px, 3vw, 32px);
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }   /* nenhum display de classe vence o atributo hidden */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* foco (Tab) nos cartões de selo: cinza, da cor do fio do box */
.selo:focus-visible { outline: 2px solid var(--line); outline-offset: -2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo .wrap { display: flex; align-items: center; gap: 32px; height: 60px; position: relative; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca-icone { width: 30px; height: 30px; display: block; }
.marca-nome { font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.topo nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
/* página atual em negrito; o ::after reserva a largura do negrito para o menu não pular */
.topo nav a { display: inline-flex; flex-direction: column; align-items: flex-start; position: relative; top: 2px; }   /* 2px abaixo: alinha com a marca */
.topo nav a::after { content: attr(data-t); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; }
.topo nav a[aria-current] { color: var(--ink); font-weight: 700; }
.busca-topo { margin-left: auto; }
/* combo de idioma (PT / EN), entre a busca e a engrenagem: mesma altura e fio da engrenagem */
.idioma { display: block; margin: 0 -20px; flex: 0 0 auto; }
.idioma select {
  height: 40px; padding: 0 26px 0 11px; border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  background: var(--paper) no-repeat right 9px center / 9px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23141c19' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none;
}
.idioma select:hover, .idioma select:focus { outline: none; border-color: var(--ink); }
@media (max-width: 900px) { .idioma { margin: 0; } }
/* computador: o select vira a caixa de opções dos filtros (ajustes.js), dentro do mesmo quadro de 40px */
.idioma .combo-botao {
  width: auto; height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; background-color: var(--paper); background-position: right 10px center;
}
.idioma .combo-botao:hover, .idioma .combo-botao[aria-expanded="true"] { border-color: var(--ink); }
.idioma .combo-painel { width: 180px; left: auto; right: 0; top: calc(100% + 8px); }
.idioma .combo-op { text-decoration: none; }
/* menu do celular */
.menu-movel { display: none; }
.menu-movel summary {
  list-style: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 4px;
  border: 1px solid var(--line); cursor: pointer;
}
.menu-movel summary::-webkit-details-marker { display: none; }
.menu-movel summary span { display: block; width: 18px; height: 2px; background: var(--ink); }
.menu-movel nav {
  position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 0;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(10, 20, 15, .08);
}
.menu-movel nav a { padding: 16px var(--gutter); border-top: 1px solid var(--line); font-size: 16px; top: 0; }
.menu-movel nav a[aria-current] { font-weight: 700; }
@media (max-width: 900px) {
  .topo .menu { display: none; }
  .menu-movel { display: block; }
  .topo .wrap { gap: 12px; }
}
.busca-topo input {
  width: 240px; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--paper) no-repeat 11px 50% / 15px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7673' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none;
}
.busca-topo input:focus { outline: none; border-color: var(--ink); }
.busca-topo input::placeholder { color: #a3aaa7; opacity: 1; }
@media (max-width: 640px) { .busca-topo input { width: 140px; } .marca-nome { display: none; } }
.h1-medio { font-size: clamp(44px, 7vw, 96px) !important; letter-spacing: -.045em !important; }
/* início: título em gradiente verde → amarelo */
.h1-gradiente { width: fit-content; max-width: 100%; background: linear-gradient(90deg, #009c3b 0%, #6dbb1e 50%, #f2c200 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
/* Arquivo: título que descreve os filtros ativos ("Blocos amarelos de 1973, de Ziraldo") */
/* sem filtros ("Todos os 2.820 selos"): tamanho original; com filtros a frase fica menor */
.capa h1.h1-frase { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.045em; max-width: 22ch; text-wrap: balance; }
.capa h1.h1-frase.com-filtros { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; }

/* busca grande da home */
.busca-grande { display: flex; margin-top: 28px; width: 100%; max-width: 720px; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); background: var(--paper); }
@media (max-width: 560px) {
  .h1-gradiente { font-size: 10.4vw !important; }   /* "filatelia brasileira" cabe na largura do celular */
  .busca-grande input { height: 54px; font-size: 16px; padding-left: 46px; background-position: 16px 50%; }
  .busca-grande button { height: 54px; padding: 0 16px; }
}
.busca-grande input {
  flex: 1; min-width: 0; height: 64px; padding: 0 20px 0 56px; border: 0;
  border-radius: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper) no-repeat 22px 50% / 20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none;
}
.busca-grande input:focus { outline: none; background-color: var(--tile); }
/* texto de ajuda das buscas (home e Arquivo), mais claro — também no celular */
.busca-grande input::placeholder, .filtros-busca input::placeholder { color: #a3aaa7; opacity: 1; }
.busca-grande button {
  height: 64px; padding: 0 28px; border: 0; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
}

/* página de busca: campo + filtros */
/* linha 1: [Ano] · espaço · [busca]; linha 2: os 6 filtros (3 colunas da grade = 6 meias colunas) */
.filtros { display: grid; grid-template-columns: calc(100% / 6) 1fr; column-gap: 16px; row-gap: 20px; margin-top: 16px; }
.filtros-ano, .filtros-busca { border: 1px solid var(--line); }
.filtros-seis { grid-column: 1 / -1; border: 1px solid var(--line); }
.filtros-busca { display: flex; }
.filtros-busca input {
  width: 100%; height: 100%; min-height: 64px; padding: 0 24px 0 56px; border: 0;
  border-radius: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper) no-repeat 22px 50% / 20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none;
}
.filtros-busca input:focus { outline: none; background-color: var(--tile); }
.filtros-campos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.filtros-ano { grid-template-columns: 1fr; }
.filtros-campos label { display: block; padding: 10px 16px 12px; border-left: 1px solid var(--line); }
.filtros-campos label:first-child { border-left: 0; }
.filtros-campos span {
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.filtros-campos select, .filtros-campos input {
  width: 100%; height: 30px; padding: 0; border: 0; background: none; border-radius: 0;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.filtros-campos input { cursor: text; }
/* selects dos filtros (celular): mesma seta desenhada em todos */
.filtros-campos select {
  -webkit-appearance: none; appearance: none; padding-right: 24px;
  background: no-repeat right 4px center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
/* Tema e Designer: × para voltar a "Todos" quando há um valor (no lugar da seta) */
.campo-lista { position: relative; display: block; }
.campo-lista.tem-valor select, .campo-lista.tem-valor .combo-botao, .campo-lista.tem-valor .combo-cor-botao { background-image: none; }
.limpa-campo {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
  display: none; place-items: center;
}
.limpa-campo:hover { color: var(--ink); background: var(--line); }
.campo-lista.tem-valor .limpa-campo { display: grid; }
/* caixa de opções (computador): no estilo da Cor, com rolagem interna */
.combo { position: relative; }
.combo-botao {
  width: 100%; height: 30px; padding: 0 24px 0 0; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: no-repeat right 4px center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.combo-botao.vazio { color: var(--ink); }
.combo-botao:focus { outline: none; }
.combo-painel {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: -16px;
  width: max(calc(100% + 32px), 260px); padding: 8px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.combo-painel[hidden] { display: none; }
.combo-painel.a-direita { left: auto; right: -16px; }
/* (seletor mais específico que ".filtros-campos input", que zera o padding) */
.filtros-campos .combo-filtro {
  width: 100%; height: 34px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--line) !important;
  font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); cursor: text !important;
}
.filtros-campos .combo-filtro:focus { outline: none; border-color: var(--ink) !important; }
.combo-lista { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.combo-op {
  display: block; width: 100%; padding: 7px 10px; border: 0; background: none; text-align: left;
  font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.combo-op:hover, .combo-op:focus-visible { background: var(--tile); outline: none; }
.combo-op[aria-selected="true"] { font-weight: 700; }
.filtros-campos select:focus, .filtros-campos input:focus { outline: none; }
.filtros-campos label:focus-within { background: var(--tile); }
@media (max-width: 900px) {
  .filtros { grid-template-columns: 112px 1fr; column-gap: 10px; row-gap: 16px; }
  .filtros-campos.filtros-seis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros-campos label:nth-child(odd) { border-left: 0; }
  .filtros-campos label:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filtros-campos label:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.resultado-total { margin: 0; font-size: 14px; font-weight: 600; }
.limpar { border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.paginas[hidden] { display: none; }   /* o display:flex abaixo não pode vencer o hidden */
.paginas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 32px 16px 8px; }
.paginas button {
  min-width: 41px; height: 41px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer;
}
.paginas button:hover:not(:disabled):not([aria-current]) { border-color: var(--ink); color: var(--ink); }
.paginas button[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.paginas button:disabled { opacity: .4; cursor: default; }
.paginas-reticencias { color: var(--muted); padding: 0 2px; }
.topo nav a { text-decoration: none; color: var(--ink-2); }
.topo nav a:hover, .topo nav a[aria-current] { color: var(--ink); }

/* ---------- Voltar (páginas de coleção; mesmo botão do music-br) ---------- */
.voltar {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 20px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 3px;
  color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none;
}
.voltar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voltar:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- cabeçalho da página ---------- */

.capa {
  border: 1px solid var(--line); margin-top: 16px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
}
.rotulo {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.capa h1 {
  margin: 0; font-weight: 700; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(64px, 12vw, 168px);
}
.capa h1.h1-ano { font-size: clamp(44px, 7vw, 96px); }   /* página de ano: mesmo tamanho do título do Arquivo */
/* Ano completo: selo verde ao lado do ano, na altura de um * */
.h1-ano { display: inline-flex; align-items: flex-start; }
.icone-completo { width: .3em; height: .3em; margin: .04em 0 0 .06em; color: var(--accent); flex: none; }
/* no filtro Ano (computador): selo pequeno depois do número */
.combo-botao .icone-completo, .combo-op .icone-completo { width: 13px; height: 13px; margin: 0 0 0 5px; vertical-align: -2px; }
.capa p.sub { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.capa p.sub#sub-busca { max-width: none; }   /* Arquivo: frase inteira numa linha */
.passos { display: flex; gap: 8px; }
.passo {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px;
  background: var(--paper);
}
.passo:hover { border-color: var(--ink); }
.passo[aria-disabled="true"] { opacity: .35; pointer-events: none; }
/* página de ano: os mesmos botões no fim da lista (à direita, como no topo; no celular, à esquerda) */
.passos-fim { display: flex; justify-content: flex-end; margin: 32px 0 8px; }

/* números */
.numeros {
  display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-top: 0;
}  /* 3 a 6 números (tipos variam); quebram de linha sozinhos */
.numeros > * { flex: 1 1 140px; background: var(--paper); padding: 18px clamp(16px, 2.5vw, 28px); }
.numeros b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.numeros span { font-size: 13px; color: var(--muted); }
/* home: cada número leva ao Arquivo filtrado (seta à direita, como no music-br) */
.numeros .num-link { position: relative; display: block; padding-right: 40px; color: inherit; text-decoration: none; }
.numeros .seta { position: absolute; right: clamp(12px, 2vw, 24px); top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 16px; color: var(--muted); transition: transform .15s, color .15s; }
.numeros .num-link:hover { background: var(--tile); }
.numeros .num-link:hover .seta { color: var(--ink); transform: translate(3px, -50%); }


/* chave tamanho real (ligada) / ajustado (desligada) */
.vista { display: flex; align-items: center; gap: 18px; margin: 20px 0 16px; }
.vista .chave { margin-left: auto; }
.vista .chave + .chave { margin-left: 24px; }
/* Ordenar: discreto, em uma linha ("ORDENAR  Mais antigo ▾"), sem caixa */
.vista .ordenar { display: inline-flex; align-items: center; gap: 10px; }
.vista .ordenar > span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.vista .ordenar .combo { width: auto; }
.vista .ordenar .combo-botao { width: auto; }
.vista .ordenar .combo-painel { left: -8px; width: 220px; }
.vista .ordenar select, .vista .ordenar .combo-botao {
  height: 30px; padding: 0 22px 0 0; border: 0; border-radius: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  background: no-repeat right 2px center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.vista .ordenar select:focus { outline: none; }
/* total de selos à direita, onde ficava o Ordenar; toggles logo depois */
.vista .chaves { display: inline-flex; align-items: center; gap: 24px; margin-left: auto; }
.vista .ordenar + .resultado-total { margin-left: auto; }   /* coleções: total à direita */
/* "× Limpar filtros" abaixo da frase do título, no mesmo box das setas de ano */
.capa-acoes { margin-top: 20px; display: flex; gap: 8px; }
.capa-acoes:has(> [hidden]:only-child) { display: none; }
button.passo { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.vista .chaves .chave { margin-left: 0; }
.filtros-campos select:disabled, .filtros-campos input:disabled { color: var(--line); cursor: default; }
.grade > li[hidden] { display: none; }
.chave {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink);
}
.chave-trilho {
  position: relative; width: 38px; height: 22px; border-radius: 11px;
  background: var(--line); transition: background .2s ease;
}
.chave-botao {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.chave[aria-checked="true"] .chave-trilho { background: var(--ink); }
.chave[aria-checked="true"] .chave-botao { transform: translateX(16px); }
.chave:focus-visible { outline: none; }
.chave:focus-visible .chave-trilho { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- grade de selos (4 colunas) ---------- */
.grade {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin: 0 0 64px; padding: 0; list-style: none;
}
.grade > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
@media (max-width: 1100px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* home: uma linha com os 4 últimos (4 colunas; no celular 2 x 2) */
.grade.grade-ultimos { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 800px)  { .grade, .grade.grade-ultimos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .capa { grid-template-columns: minmax(0, 1fr); } .passos-fim { justify-content: flex-start; } }

.selo {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  text-decoration: none; color: inherit;
}
.selo-img {
  position: relative; display: block; aspect-ratio: 1 / 1; background: var(--paper);
  transition: background .25s ease;
}
.selo-img img {
  position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
}
/* placeholder: imagem do catálogo em cinza, "rebaixada" */
.selo.falta .selo-img img { opacity: .42; mix-blend-mode: multiply; }
.selo.falta:hover .selo-img img { opacity: .62; }
/* item da coleção: colorido, com sombra suave de papel */
.selo.tem .selo-img img { filter: drop-shadow(0 8px 16px rgba(20, 30, 25, .16)); }
.selo:hover .selo-img img { transform: scale(1.04); }
/* tamanho real (padrão): largura/altura proporcionais aos milímetros */
html:not(.ajustado) .selo-img img {
  inset: auto; left: 50%; top: 50%; width: var(--rw); height: var(--rh); object-fit: contain;
  transform: translate(-50%, -50%);
}
html:not(.ajustado) .selo:hover .selo-img img { transform: translate(-50%, -50%) scale(1.04); }

.selo:hover .selo-img { background: var(--tile); }
.selo-info { border-top: 1px solid var(--line); }

.selo-info { padding: 16px 18px 20px; display: grid; gap: 6px; }
.selo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.selo-rhm { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.selo-tipo { white-space: nowrap; }
.selo-tipo { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 600; }
.selo-titulo {
  margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.selo-autor { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.selo-autor b { font-weight: 500; color: var(--ink-2); }

/* ---------- home: grade de anos ---------- */
.decada { margin: 0 0 40px; }
.decada h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.anos {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; margin: 0; padding: 0;
}
.anos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anos a { display: block; padding: 20px 22px; text-decoration: none; height: 100%; }
.anos a:hover { background: var(--tile); }
.anos b { display: block; font-size: 34px; letter-spacing: -.04em; line-height: 1; font-weight: 700; }
.anos span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.anos em { font-style: normal; color: var(--accent); font-weight: 600; }
.anos li.vazio { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--tile) 6px 7px); }
.anos li.vazio b { color: var(--line); }
@media (max-width: 900px) { .anos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .anos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ficha (modal) ---------- */
dialog.ficha {
  width: min(1120px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px));
  max-height: calc(100vh - 32px); padding: 0; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 20, 15, .25);
}
dialog.ficha::backdrop { background: rgba(14, 22, 20, .55); backdrop-filter: blur(3px); }
/* conteúdo rola; a barra de navegação fica sempre embaixo */
/* topo e rodapé fixos; só o conteúdo do meio rola */
dialog.ficha[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: abre .22s ease-out; }
.ficha-topo {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 16px 16px 28px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.ficha-topo .rotulo { margin: 0 0 6px; }
.ficha-topo h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
@keyframes abre { from { opacity: 0; transform: translateY(8px); } }
.ficha-conteudo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 0; }
.ficha-img {
  background: var(--tile); display: grid; place-items: center; padding: 8%;
  position: relative; min-height: 0;
}
.ficha-img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.ficha.falta .ficha-img img { opacity: .45; mix-blend-mode: multiply; }
.ficha.tem .ficha-img img { filter: drop-shadow(0 10px 24px rgba(20, 30, 25, .22)); }
.ficha-aviso {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 18px;
  font-size: 12px; color: var(--muted); text-align: center;
}
.ficha-corpo { padding: 24px 32px 28px; overflow-y: auto; min-height: 0; }
.ficha-dados { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; }
.ficha-dados dt, .ficha-dados dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ficha-dados dt { color: var(--muted); padding-right: 12px; }
.ficha-dados dd { color: var(--ink); overflow-wrap: anywhere; }
.ficha-rodape {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper);
}
.ficha-rodape button {
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600;
}
.ficha-rodape button:hover:not(:disabled) { border-color: var(--ink); }
.ficha-rodape button:disabled { opacity: .3; cursor: default; }
.ficha-contador { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ficha-fechar {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1;
  border: 1px solid var(--line); background: var(--paper);
}
.ficha-fechar:hover { border-color: var(--ink); }
/* botão de tela cheia: canto inferior direito da área do selo */
.ficha-tela {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.ficha-tela:hover { border-color: var(--ink); }
.ficha.falta .ficha-tela { display: none; }   /* só nos selos da coleção */
.ficha-tela svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
/* tela cheia: só o selo, centralizado, e o fechar */
dialog.tela-selo {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--tile); color: var(--ink);
}
dialog.tela-selo[open] { display: grid; place-items: center; animation: abre .18s ease-out; }
dialog.tela-selo::backdrop { background: var(--tile); }
dialog.tela-selo img {
  width: calc((100vw - 2 * max(24px, 6vmin)) * .9); height: calc((100dvh - 2 * max(24px, 6vmin)) * .9); object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(20, 30, 25, .22));
}
@media (min-width: 821px) {   /* computador: o selo menor, com mais respiro em volta */
  dialog.tela-selo img { width: 72vw; height: 72dvh; }
}
dialog.tela-selo.falta img { opacity: .45; mix-blend-mode: multiply; filter: none; }
.tela-fechar { position: fixed; top: 16px; right: 16px; }
@media (max-width: 820px) {
  dialog.ficha { height: calc(100vh - 32px); }
  .ficha-conteudo { display: block; overflow-y: auto; }
  .ficha-img { padding: 0; height: 50vh; }
  .ficha-img img { inset: 8% 10% 12%; width: 80%; height: 80%; }
  .ficha-corpo { overflow: visible; padding: 20px; }
  .ficha-topo { padding: 14px 12px 12px 20px; }
  .ficha-topo h2 { font-size: 19px; }
  .ficha-rodape { padding: 10px 12px; }
  .ficha-rodape button { padding: 0 14px; }
}

/* ---------- home ---------- */
.bloco-home { margin-top: 56px; }
.bloco-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bloco-topo h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.bloco-topo a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bloco-topo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bloco-home .colecoes, .bloco-home .lista-textos { margin-top: 0; }
.bloco-home:last-child { margin-bottom: 72px; }
.bloco-home .lista-textos { margin-bottom: 0; }

/* ---------- coleções ---------- */
.colecoes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 32px 0 64px; padding: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.colecoes > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cartao-colecao { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
/* capa: bloco na cor do selo, selo no alto à direita, título embaixo à esquerda */
.cartao-colecao-capa { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--fundo); color: var(--tinta); overflow: hidden; }
.cartao-colecao-selo { position: absolute; top: 22px; right: 22px; width: 46%; height: 58%; display: flex; align-items: flex-start; justify-content: flex-end; }
.cartao-colecao-selo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28)); transition: transform .25s; }
.cartao-colecao:hover .cartao-colecao-selo img { transform: translateY(-3px) rotate(-1.5deg); }
.cartao-colecao.falta .cartao-colecao-selo img { opacity: .7; }
.cartao-colecao-info { display: grid; gap: 8px; padding: 18px 22px 24px; }
.cartao-colecao-info .rotulo { margin: 0; }
.cartao-colecao-titulo { position: absolute; left: 22px; right: 22px; bottom: 20px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.cartao-colecao-desc { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .colecoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .colecoes { grid-template-columns: 1fr; } }
.texto-colecao { max-width: 720px; margin: 32px 0 8px; }
.vazio-msg { margin: 32px 0 64px; color: var(--muted); }

/* ---------- textos ---------- */
.lista-textos { list-style: none; margin: 32px 0 64px; padding: 0; border-top: 1px solid var(--line); }
.lista-textos > li { border-bottom: 1px solid var(--line); }
.item-texto {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center;
  padding: 24px 0; text-decoration: none; color: inherit;
}
.item-texto .selo-img { background: var(--tile); }
.item-texto .selo-img.falta img { opacity: .42; mix-blend-mode: multiply; }
.item-texto-info { display: grid; gap: 8px; }
.item-texto-info .rotulo { margin: 0; }
.item-texto-titulo { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.item-texto:hover .item-texto-titulo { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.item-texto-resumo { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 600px) { .item-texto { grid-template-columns: 96px 1fr; gap: 18px; } }

.artigo { max-width: 760px; margin: 0 auto 72px; }
.artigo-topo { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.artigo-topo h1 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.artigo-resumo { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.aviso-proporcao { margin: 28px 0 36px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aviso-proporcao p { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.btn-proporcao { flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-proporcao:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.artigo-pagina { margin-top: 40px; margin-left: 0; }
.artigo-volta { margin-top: 48px; font-size: 14px; }
.artigo-volta a { text-decoration: none; font-weight: 600; }

/* tipografia de leitura */
.texto { font-size: 18px; line-height: 1.7; color: var(--ink); }
.texto > :first-child { margin-top: 0; }
.texto p { margin: 0 0 1.1em; }
.texto h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 1.8em 0 .6em; }
.texto h3 { font-size: 20px; line-height: 1.3; margin: 1.6em 0 .5em; }
.texto h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.6em 0 .5em; }
.texto a { color: var(--ink); text-underline-offset: 3px; }
.texto blockquote { margin: 1.4em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--ink); font-size: 21px; line-height: 1.5; }
.texto blockquote p { margin: 0; }
.texto ul, .texto ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.texto li { margin: .3em 0; }
.texto hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.texto img { margin: 1.4em 0; }
.texto .figura { margin: 2em 0 2.2em; }
.texto .figura svg { display: block; width: 100%; height: auto; overflow: visible; }
.texto .figura figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (min-width: 1000px) { .texto .figura { margin-left: -80px; margin-right: -80px; } }
.texto code { font-family: var(--mono); font-size: .88em; background: var(--tile); padding: 2px 5px; }
/* selos dentro do texto */
.selos-texto {
  display: grid; gap: 0; list-style: none; padding: 0; margin: 2em 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.selos-texto.n1 { grid-template-columns: minmax(0, 340px); }
.selos-texto.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selos-texto.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selos-texto.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.selos-texto > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selos-texto .selo-info { padding: 12px 14px 14px; }
.selos-texto .selo-img img { margin: 0; }   /* não herda a margem de .texto img (descentralizava o selo) */
.selos-texto .selo-titulo { font-size: 14px; }
@media (max-width: 600px) { .selos-texto.n3, .selos-texto.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- rodapé ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* filtro de cor: combo com círculos */
.combo-cor { position: relative; }
.combo-cor-botao {
  width: 100%; height: 30px; padding: 0 22px 0 0; border: 0; background: none; text-align: left;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; display: flex; align-items: center;
  background: no-repeat right 4px center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.combo-cor-botao:focus { outline: none; }
.combo-cor i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.combo-cor-lista {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: -16px;
  display: grid; grid-template-columns: repeat(5, 32px); gap: 6px; padding: 12px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.combo-cor-lista[hidden] { display: none; }
.combo-cor-todas {
  grid-column: 1 / -1; height: 30px; border: 0; background: none; text-align: left; padding: 0 6px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.combo-cor-op { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.combo-cor-op i { width: 24px; height: 24px; }
.combo-cor-lista [role=option]:hover, .combo-cor-lista [role=option]:focus-visible { background: var(--tile); outline: none; }
.combo-cor-lista [aria-selected="true"].combo-cor-op { box-shadow: 0 0 0 2px var(--ink); }
.combo-cor-lista [aria-selected="true"].combo-cor-todas { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* versão publicada no rodapé */

/* Arquivo: espaço para a busca sempre poder subir até o topo, mesmo com poucos resultados */
#resultados { min-height: 100vh; align-content: start; }

/* ---------- celular (ex.: Galaxy S26+, ~384 px de largura) ---------- */
@media (max-width: 560px) {
  /* capa e números mais compactos: os selos aparecem mais cedo */
  .capa { padding: 24px 20px; gap: 18px; }
  .capa p.sub { font-size: 15px; margin-top: 12px; }
  .numeros > * { flex-basis: 76px; padding: 12px 8px; }
  .numeros[style*="--n:5"] > *, .numeros[style*="--n:6"] > * { flex-basis: 100px; }
  .numeros .num-link { padding-right: 22px; }
  .numeros .seta { right: 8px; }  /* 5–6 números: 3 por linha */
  .numeros b { font-size: 20px; }
  .numeros span { font-size: 10.5px; line-height: 1.25; display: block; letter-spacing: -.01em; hyphens: auto; -webkit-hyphens: auto; }
  .passo { height: 40px; padding: 0 14px; }

  /* busca e filtros */
  .filtros-busca input { height: 54px; font-size: 16px; padding-left: 48px; background-position: 18px 50%; }
  .filtros-campos label { padding: 8px 14px 10px; }

  /* total + toggles numa linha só */
  .vista { gap: 8px 12px; margin: 16px 0 12px; flex-wrap: wrap; }
  .vista .limpar { white-space: nowrap; }
  /* linha 1: total, Limpar e Ordenar (à direita); linha 2: os dois toggles, à direita */
  .vista .ordenar { flex: 0 1 auto; }
  .vista .chaves { flex: 0 1 auto; justify-content: flex-end; margin-left: auto; gap: 14px; }
  .vista .chave { margin-left: auto; }   /* página de coleção (sem Ordenar): toggle à direita */
  .vista .chave + .chave { margin-left: 14px; }
  .resultado-total, .chave-rotulo { white-space: nowrap; }
  .chave { gap: 7px; font-size: 12.5px; }

  /* capas das coleções menos altas */
  .cartao-colecao-capa { aspect-ratio: 16 / 10; }
  .cartao-colecao-info { padding: 16px 18px 20px; }
  .cartao-colecao-titulo { font-size: 21px; }

  /* ficha em tela cheia */
  dialog.ficha { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .ficha-img { height: calc(42vh + 68px); }   /* + faixa de baixo para o botão de tela cheia não encostar no selo */
  .ficha-img img { inset: 6% 10% 84px; width: 80%; height: calc(94% - 84px); }
  .ficha-corpo { padding: 16px 18px 24px; }
  .ficha-dados { grid-template-columns: 8em 1fr; }
  .ficha-dados dt, .ficha-dados dd { font-size: 13.5px; }

  /* paginação: só setas e menos números */
  .paginas { gap: 4px; padding: 24px 0 8px; flex-wrap: nowrap; }
  .paginas button { min-width: 34px; height: 40px; padding: 0 6px; }
  .paginas-reticencias { padding: 0; }
  .paginas .pag-txt { display: none; }
}
.combo-cor-op:disabled { cursor: default; }
.combo-cor-op:disabled:hover { background: none; }
.combo-cor-op:disabled i {   /* cor indisponível: círculo cinza-claro com risco diagonal */
  background: linear-gradient(to top right, transparent calc(50% - .75px), var(--muted) calc(50% - .75px), var(--muted) calc(50% + .75px), transparent calc(50% + .75px)), var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Configurações: ícone no alto à direita + painel lateral (como no music-br) */
.ajustes-btn {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.ajustes-btn:hover { border-color: var(--ink); }
.ajustes-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gaveta {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(340px, 88vw);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); border: 0; border-left: 1px solid var(--line);
  background: var(--paper); color: var(--ink); box-shadow: -18px 0 50px rgba(10, 20, 15, .16);
}
.gaveta[open] { display: flex; flex-direction: column; animation: gaveta-entra .24s cubic-bezier(.2, .8, .2, 1); }
.gaveta::backdrop { background: rgba(15, 23, 22, .4); }
@keyframes gaveta-entra { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gaveta[open] { animation: none; } }
.gaveta-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.gaveta-topo b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.gaveta-topo .ajustes-btn { width: 34px; height: 34px; }
.gaveta-itens { display: flex; flex-direction: column; overflow-y: auto; }
.gv-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 22px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.gv-item:hover { background: var(--tile); }
.gv-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.gv-item > svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; color: var(--ink-2); }
.gv-item > span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gv-item b { font-size: 15px; font-weight: 600; }
.gv-item small { font-size: 12.5px; color: var(--muted); }
.gv-item b { display: flex; align-items: center; gap: 6px; }
.gv-info { display: inline-flex; width: 26px; height: 26px; margin: -4px 0; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.gv-info:hover { color: var(--ink); background: var(--line); }
.gv-info:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.gv-info svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gv-item .liga { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 99px; background: var(--line); transition: background .2s; }
.gv-item .liga::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s;
}
.gv-item[aria-checked="true"] .liga { background: var(--ink); }
.gv-item[aria-checked="true"] .liga::after { transform: translateX(16px); }
.gaveta-pe { margin: auto 0 0; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.gaveta-pe b { color: var(--ink); font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
main.wrap { padding-bottom: 48px; }   /* sem rodapé: respiro no fim da página */
.texto .box-texto { margin: 2.4em 0 0; padding: 20px 24px; background: #fff; border: 1px solid var(--line); }
.texto .box-texto h3 { margin: 0 0 8px; }
.texto .box-texto p { margin: 0; }
.texto .tabela { margin: 1.6em 0 2em; overflow-x: auto; }
.texto table { width: 100%; border-collapse: collapse; font-size: 15px; }
.texto th, .texto td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.texto th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }
