/* ======================================================================
   TEXTURA DE PAPEL (19/11/2026) — gerada por ferramentas/gerar_colagem_css.py, não editar à mão.
   Mesma Parede e mesmas cores da Enciclopédia (lilás, roxo, preto, branco). Muda só:
   grão de papel nas superfícies, letra condensada nos títulos grandes e rostos com grão de impressão.
   ====================================================================== */
:root {
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --grao-escuro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29' opacity='.2'/%3E%3C/svg%3E");
  --grao-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -2.6 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29' opacity='.26'/%3E%3C/svg%3E");
  --grao-leve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29' opacity='.07'/%3E%3C/svg%3E");
}
/* títulos grandes na letra condensada (o texto continua em Rubik) */
.perfil-nome, .lista-topo h2, .outras-topo h2, .sp-capa h1, .sobre-t, .pagina-t,
.ec-falta h2, .ec-imp h2 .ca, .grupo-rotulo h2, .cortina-nome {
  font-family: var(--display) !important; font-weight: 900 !important; font-stretch: 62%;
  font-variation-settings: "wdth" 62 !important; text-transform: uppercase; letter-spacing: -.003em !important;
  overflow-wrap: normal; word-break: normal; hyphens: none; line-height: .86 !important;
}

/* o papel: grão leve no fundo claro, um pouco mais forte nas superfícies de cor */
body, .topo, .filtro, .lista { background-image: var(--grao-leve); }
.parede-area { background-image: var(--grao-escuro) !important; }
.ec-imp { background-image: var(--grao-escuro) !important; }
.ec-rod { background-image: var(--grao-claro) !important; }
.outras { background-image: var(--grao-escuro) !important; }
.abre { background-image: var(--grao-claro) !important; }
.viz { background-image: var(--grao-leve) !important; }
.cortina-faixas > * { background-image: var(--grao-claro) !important; }

/* rostos com grão de impressão por cima (a cor continua; no mouse o grão some) */
.rosto .rosto-foto, .item .rosto-foto, .trilho-item .rosto-foto, .perfil-moldura, .sf-r .rosto-foto { position: relative; }
.rosto .rosto-foto::after, .item .rosto-foto::after, .trilho-item .rosto-foto::after, .perfil-moldura::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grao-escuro); opacity: .45; transition: opacity .3s; }
@media (hover: hover) {
  .rosto:hover .rosto-foto::after, .item-link:hover .rosto-foto::after, .trilho-item:hover .rosto-foto::after { opacity: 0; }
}

/* tamanhos dos títulos condensados (ocupam mais altura que a Rubik) */
.ec-imp h2 .ca { font-size: clamp(56px, 7.6vw, 132px) !important; }
.ec-imp h2 .it { line-height: 1 !important; }
.lista-topo h2 { font-size: clamp(48px, 5.6vw, 96px) !important; }
.outras-topo h2 { font-size: clamp(40px, 4.4vw, 72px) !important; }
.sp-capa h1 { font-size: clamp(64px, 8.4vw, 150px) !important; }
.pagina-t { font-size: clamp(56px, 7.2vw, 128px) !important; }
@media (max-width: 860px) {
  .perfil-nome { font-size: min(17vw, 76px) !important; }
  .lista-topo h2 { font-size: 15vw !important; }
}
@media (prefers-reduced-motion: reduce) { .rosto .rosto-foto::after { transition: none; } }

/* troca de página sem piscar: o nome na cortina usa a mesma letra antes e depois do JS.
   "Cortina" é a mesma Archivo do Google (mesmo arquivo, já no cache), mas com font-display: block,
   pra nunca aparecer na letra reserva por um instante. */
@font-face { font-family: "Cortina"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: block;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdnoLg.woff2) format("woff2"); }
.cortina-nome, html.cortina-on:not(.cortina-js)::after {
  font-family: "Cortina", var(--display) !important; font-weight: 900 !important; font-stretch: 62%;
  font-variation-settings: "wdth" 62 !important; text-transform: uppercase; letter-spacing: -.003em !important; line-height: .86 !important; }

/* Sobre: o texto de abertura e os subtítulos na mesma serifada do "Celebrar, preservar..." */
.sobre-pg .sobre-texto .sobre-lide { font-family: "Bricolage Grotesque", Rubik, system-ui, sans-serif !important; font-weight: 400 !important;
  font-size: clamp(28px, 1.6vw + 16px, 40px) !important; line-height: 1.12 !important; letter-spacing: -.01em; }
.sp-sub { font-family: "Bricolage Grotesque", Rubik, system-ui, sans-serif !important; font-weight: 400 !important; font-size: clamp(26px, 1vw + 16px, 32px) !important;
  letter-spacing: 0 !important; line-height: 1.1; }
.sp-sub::before { vertical-align: .3em; }

/* 19/11 (teste do Kaylan): perfil com fundo rosa da Enciclopédia, de ponta a ponta, com o grão.
   Nome e texto em preto (como o "102" e a imprensa); "Outras da mesma área" vira preto pra separar. */
main#perfil > .perfil { position: relative; isolation: isolate; }
main#perfil > .perfil::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  background: #DC8FF0 var(--grao-escuro); }
main#perfil .perfil-nome { color: #0b0b0c !important; }
main#perfil .perfil-areas a, main#perfil .perfil-areas .estrela { color: #0b0b0c !important; }
main#perfil .perfil-bio p, main#perfil .perfil-links a, main#perfil .perfil-sub { color: #0b0b0c; }
main#perfil .perfil-links, main#perfil .perfil-links li { border-color: rgba(11, 11, 12, .3) !important; }
main#perfil .perfil-links .lk-d, main#perfil .perfil-foto figcaption { color: rgba(11, 11, 12, .72) !important; }
main#perfil .perfil-links a:hover .lk-l { color: #fff !important; }
main#perfil ::selection { background: #0b0b0c; color: #DC8FF0; }
.outras { background-color: #0b0b0c !important; background-image: var(--grao-claro) !important; color: #fff; }
.outras-topo h2 { color: #DC8FF0 !important; }
.outras-areas, .outras .item-nome, .outras .item-area { color: rgba(255, 255, 255, .8) !important; }
.outras .item-nome { color: #fff !important; }
.outras .bt-seta { border-color: #DC8FF0 !important; color: #DC8FF0 !important; background: transparent !important; }
.outras .bt-seta:hover:not(:disabled) { background: #DC8FF0 !important; color: #0b0b0c !important; }
@media (max-width: 860px) {
  main#perfil > .perfil::before { top: var(--topo-h); }
}
/* 30/11: enquanto a página nova carrega, a cortina (antes das faixas entrarem) tinha o roxo liso, sem textura, e piscava.
   Agora é o mesmo roxo das faixas com o mesmo grão (e o <head> de cada página já pinta igual antes do CSS chegar). */
html.cortina-on .cortina:not(.com-faixas) { background: #842679 var(--grao-claro) !important; }
