/* Site da Guilda dos Heróis Únicos, versão 2
   Identidade tirada do logo: azul royal, letras brancas condensadas com sombra, e o infinito em quatro cores
   (vermelho, amarelo, verde, azul) como fio que liga tudo: ninguém caminha sozinho.
   Regra de contraste: as quatro cores do infinito são usadas como preenchimento e traço, nunca como cor de texto
   (exceto as versões escuras --verde-texto e --vermelho-texto). */
:root {
  --azul: #0c3f94;
  --azul-escuro: #072a66;
  --azul-noite: #041b45;
  --tinta: #14203a;
  --tinta-suave: #4a5470;
  --papel: #fbf8f2;
  --papel-2: #f1ebdf;
  --linha: #d9d1c1;
  --amarelo: #f7c325;
  --vermelho: #e0473a;
  --verde: #22a565;
  --azul-claro: #3d8bef;
  --verde-texto: #11653d;
  --vermelho-texto: #a32a1f;
  --foco: #f7c325;
  --titulo: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --corpo: "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --largura: 74rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--corpo); font-size: 1.15rem; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; color: var(--azul-escuro); letter-spacing: .005em; }
h1 { font-size: clamp(2.9rem, 8vw, 4.9rem); }
h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h3 { font-size: 1.75rem; line-height: 1.05; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--azul); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--amarelo); text-decoration-thickness: 4px; }
:focus-visible { outline: 4px solid var(--foco); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 7px var(--azul-noite); }
.largura { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 1.1rem; }
@media (min-width: 48rem) { .largura { padding: 0 2rem; } }
.pular { position: absolute; left: -999px; top: 0; background: var(--amarelo); color: var(--azul-noite); padding: .8rem 1.2rem; z-index: 10; font-weight: 700; }
.pular:focus { left: 1rem; top: 1rem; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

/* Fio de quatro cores (o infinito do logo) */
.fio { height: 6px; background: linear-gradient(90deg, var(--vermelho) 0 25%, var(--amarelo) 25% 50%, var(--verde) 50% 75%, var(--azul-claro) 75%); }
.faixa-rascunho { background: var(--azul-noite); color: #fff; text-align: center; font-size: .95rem; padding: .45rem 1rem; }
.faixa-rascunho strong { color: var(--amarelo); }

/* Cabeçalho */
.topo { background: var(--papel); border-bottom: 1px solid var(--linha); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--azul-escuro); }
.logo img { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 3px 0 var(--azul-noite); }
.logo span { font-family: var(--titulo); font-weight: 800; font-size: 1.45rem; line-height: .95; text-transform: uppercase; }
.logo span small { display: block; font-size: .78rem; letter-spacing: .14em; color: var(--tinta-suave); font-weight: 700; }
.menu-botao { font: 700 1.05rem var(--corpo); color: #fff; background: var(--azul); border: 0; border-radius: 999px; padding: .6rem 1.15rem; min-height: 46px; cursor: pointer; box-shadow: 0 3px 0 var(--azul-noite); }
.menu ul { list-style: none; margin: 0; display: none; flex-direction: column; padding-bottom: 1rem; }
.menu.aberto ul, .sem-js .menu ul { display: flex; }
.menu a { display: block; color: var(--tinta); text-decoration: none; padding: .75rem 0; font-weight: 700; border-top: 1px solid var(--linha); }
.menu a:hover { color: var(--azul); }
.menu a[aria-current="page"] { color: var(--azul); box-shadow: inset 0 -4px 0 var(--amarelo); }
@media (min-width: 72rem) {
  .menu-botao { display: none; }
  .topo { display: flex; align-items: center; padding: 0 2rem; }
  .topo-linha { width: auto; margin: 0; padding: 0; max-width: none; }
  .menu { flex: 1; }
  .menu ul { display: flex; flex-direction: row; justify-content: flex-end; gap: 1.6rem; padding: 0; max-width: none; margin: 0; }
  .menu a { border: 0; padding: .4rem 0; font-size: 1.02rem; white-space: nowrap; }
}

/* Abertura (todas as páginas): faixa azul, título branco com a sombra do logo */
.abertura { background: var(--azul); color: #fff; position: relative; padding: 3.2rem 0 5.5rem; overflow: hidden; }
.abertura::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--papel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C150 4 300 0 450 18s300 30 450 10S1100 0 1200 14v34z'/%3E%3C/svg%3E") center/100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C150 4 300 0 450 18s300 30 450 10S1100 0 1200 14v34z'/%3E%3C/svg%3E") center/100% 100%; }
.abertura .largura { position: relative; z-index: 1; display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 62rem) { .abertura { padding: 4.5rem 0 7rem; } .abertura .largura { grid-template-columns: 1.55fr 1fr; } .abertura .largura.so-texto { grid-template-columns: 1fr; } }
.abertura h1 { color: #fff; text-shadow: 0 4px 0 var(--azul-noite), 0 8px 18px rgba(0,0,0,.25); }
.abertura h1 .destaque { color: var(--amarelo); }
.abertura .chamada, .abertura p { color: #e3ebfa; }
.abertura a:not(.botao) { color: #fff; }
.chamada { font-size: 1.3rem; max-width: 40rem; color: var(--tinta-suave); }
.abertura-arte { display: none; }
@media (min-width: 62rem) { .abertura-arte { display: block; } }
.abertura-arte img, .infinito-fundo { filter: drop-shadow(0 10px 0 var(--azul-noite)); }

/* Carimbo (no lugar das etiquetas) */
.etiqueta { display: inline-block; font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem;
  border: 3px solid currentColor; border-radius: 6px; padding: .05rem .6rem; transform: rotate(-3deg); margin-bottom: 1rem; color: var(--azul); background: transparent; }
.etiqueta-gratis { color: var(--verde-texto); }
.etiqueta-breve { color: var(--azul); }
.abertura .etiqueta { color: var(--amarelo); }

/* Botões */
.botoes { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; font: 700 1.1rem var(--corpo); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.botao:hover { transform: translateY(-2px); text-decoration: none; }
.botao:active { transform: translateY(2px); box-shadow: none; }
.botao-principal { background: var(--azul); color: #fff; box-shadow: 0 4px 0 var(--azul-noite); }
.botao-principal:hover { color: #fff; }
.botao-laranja { background: var(--amarelo); color: var(--azul-noite); box-shadow: 0 4px 0 #b68700; }
.botao-laranja:hover { color: var(--azul-noite); }
.botao-secundario { background: transparent; color: var(--azul); box-shadow: inset 0 0 0 3px var(--azul); }
.abertura .botao-secundario, .secao-marinho .botao-secundario { color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.abertura .botao-principal { background: var(--amarelo); color: var(--azul-noite); box-shadow: 0 4px 0 #b68700; }

/* Seções */
.secao { padding: 4rem 0; }
.secao-cinza { background: var(--papel-2); }
.secao-marinho { background: var(--azul-escuro); color: #fff; position: relative; overflow: hidden; }
.secao-marinho h2, .secao-marinho h3 { color: #fff; text-shadow: 0 4px 0 var(--azul-noite); }
.secao-marinho .chamada, .secao-marinho p { color: #dce6f8; }
.secao-marinho a:not(.botao) { color: #fff; }
.chapeu { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; color: var(--azul); margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; }
.chapeu::before { content: ""; width: 2.2rem; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--vermelho) 0 25%, var(--amarelo) 25% 50%, var(--verde) 50% 75%, var(--azul-claro) 75%); }
.secao-marinho .chapeu { color: var(--amarelo); }

/* Grades e cartões */
.grade { display: grid; gap: 1.4rem; }
@media (min-width: 48rem) { .grade-2 { grid-template-columns: repeat(2, 1fr); } .grade-3 { grid-template-columns: repeat(3, 1fr); } }
.cartao { background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 1.6rem; display: flex; flex-direction: column; box-shadow: 6px 6px 0 var(--tinta); }
.cartao > :last-child { margin-bottom: 0; }
.cartao .botoes { margin-top: auto; padding-top: 1rem; }
.cartao .etiqueta { align-self: flex-start; }
.abertura .cartao, .abertura .formulario { color: var(--tinta); box-shadow: 8px 8px 0 var(--azul-noite); border-color: var(--azul-noite); }
.abertura .cartao p, .abertura .formulario p { color: var(--tinta-suave); }
.abertura .cartao .etiqueta-gratis { color: var(--verde-texto); }
.cartao-destaque { border-top: 10px solid var(--amarelo); }
.preco { font-family: var(--titulo); font-size: 3.2rem; font-weight: 800; color: var(--azul-escuro); line-height: 1; margin: 0 0 .3rem; }

/* Pastas: os três degraus */
.pastas { display: grid; gap: 2.8rem 1.6rem; margin-top: 2.5rem; position: relative; }
@media (min-width: 62rem) { .pastas { grid-template-columns: repeat(3, 1fr); } .pastas .pasta:nth-child(3n+2) { margin-top: 2.2rem; } .pastas .pasta:nth-child(3n+3) { margin-top: 4.4rem; } }
.pasta { position: relative; background: #fff; border: 2px solid var(--tinta); border-radius: 0 14px 14px 14px; padding: 1.8rem 1.6rem 1.6rem; box-shadow: 6px 6px 0 var(--tinta); display: flex; flex-direction: column; }
.pasta::before { content: attr(data-aba); position: absolute; left: -2px; top: -2.35rem; height: 2.35rem; padding: .2rem 1.2rem 0; border: 2px solid var(--tinta); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: var(--cor, var(--amarelo)); font-family: var(--titulo); font-weight: 800; font-size: 1.35rem; color: var(--azul-noite); }
.pasta[data-cor="verde"] { --cor: var(--verde); } .pasta[data-cor="verde"]::before { color: #fff; }
.pasta[data-cor="azul"] { --cor: var(--azul-claro); } .pasta[data-cor="azul"]::before { color: var(--azul-noite); }
.pasta[data-cor="vermelho"] { --cor: var(--vermelho); } .pasta[data-cor="vermelho"]::before { color: #fff; }
.pasta .etiqueta { position: absolute; right: 1rem; top: 1rem; margin: 0; font-size: .9rem; }
.pasta h3 { padding-right: 5.5rem; }
.pasta .botoes { margin-top: auto; padding-top: .8rem; }
.pasta .tempo { font-weight: 700; color: var(--azul); }

/* Planilha de exemplo */
.planilha { background: #fff; border: 2px solid var(--tinta); border-radius: 10px; box-shadow: 8px 8px 0 var(--azul); overflow: hidden; font-size: 1rem; }
.planilha-topo { display: flex; gap: .4rem; align-items: center; padding: .55rem .9rem; background: var(--papel-2); border-bottom: 2px solid var(--tinta); font-weight: 700; }
.planilha-topo i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.planilha table { min-width: 0; width: 100%; }
.planilha th, .planilha td { padding: .6rem .8rem; border-top: 1px solid var(--linha); }
.planilha thead th { background: #eef3fc; color: var(--azul-escuro); border-top: 0; font-size: .95rem; }
.planilha td:first-child { font-family: var(--corpo); font-weight: 400; font-size: 1rem; color: var(--tinta); }
.planilha tbody tr:nth-child(even) { background: #fff; }
.situacao { font-weight: 700; white-space: nowrap; }
.situacao-ok { color: var(--verde-texto); } .situacao-alerta { color: #7a5200; } .situacao-vencido { color: var(--vermelho-texto); }

/* Combinados */
.combinados { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: c; display: grid; gap: 1.8rem; }
@media (min-width: 48rem) { .combinados { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 3rem; } }
.combinados li { counter-increment: c; position: relative; padding-left: 4.4rem; }
.combinados li::before { content: counter(c); position: absolute; left: 0; top: -.2rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulo); font-weight: 800; font-size: 1.9rem; color: var(--azul-noite); background: var(--amarelo); border: 2px solid var(--tinta); }
.combinados li:nth-child(2)::before { background: var(--verde); color: #fff; }
.combinados li:nth-child(3)::before { background: var(--azul-claro); }
.combinados li:nth-child(4)::before { background: var(--vermelho); color: #fff; }
.combinados h3 { margin-bottom: .3rem; }

/* Listas */
.lista-simples { list-style: none; padding: 0; }
.lista-simples li { margin-bottom: .4rem; }
.lista-check { list-style: none; padding: 0; }
.lista-check li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.lista-check li::before { content: ""; position: absolute; left: .1rem; top: .5rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--amarelo); border: 2px solid var(--tinta); }
.lista-check li:nth-child(4n+2)::before { background: var(--verde); }
.lista-check li:nth-child(4n+3)::before { background: var(--azul-claro); }
.lista-check li:nth-child(4n+4)::before { background: var(--vermelho); }
.abertura .lista-check li::before { border-color: #fff; }
.lista-nao li::before { content: "✕"; background: none !important; border: 0; color: var(--vermelho-texto); font-weight: 700; top: 0; width: auto; height: auto; font-size: 1.1rem; }

/* Tabelas */
.tabela-rolagem { overflow-x: auto; border: 2px solid var(--tinta); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
caption { text-align: left; font-weight: 700; padding: .9rem 1rem; color: var(--azul-escuro); }
th, td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--linha); vertical-align: top; }
thead th { background: var(--azul); color: #fff; border-top: 0; }
tbody tr:nth-child(even) { background: #faf7f0; }
td:first-child { font-family: var(--titulo); font-weight: 800; font-size: 1.3rem; color: var(--azul); }

/* Formulário */
.formulario { background: #fff; border: 2px solid var(--tinta); border-radius: 16px; padding: 1.7rem; box-shadow: 6px 6px 0 var(--tinta); border-top: 10px solid var(--amarelo); }
.formulario h2 { font-size: 2.2rem !important; }
.campo { margin-bottom: 1.2rem; }
.campo label, .campo legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--tinta); }
.campo .dica { display: block; font-size: 1rem; color: var(--tinta-suave); margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="tel"] { width: 100%; font: inherit; padding: .8rem .95rem; border: 2px solid var(--tinta); border-radius: 10px; min-height: 52px; background: var(--papel); color: var(--tinta); }
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus { background: #fff; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.opcoes { display: flex; gap: .7rem; flex-wrap: wrap; }
.opcao { display: inline-flex; gap: .5rem; align-items: center; border: 2px solid var(--tinta); border-radius: 999px; padding: .45rem 1rem .45rem .7rem; font-weight: 700; cursor: pointer; background: #fff; min-height: 46px; }
.opcao:has(input:checked) { background: var(--azul); color: #fff; border-color: var(--azul); }
.opcao input, .caixa input { width: 1.35rem; height: 1.35rem; margin: 0; flex-shrink: 0; accent-color: var(--amarelo); }
.caixa { display: flex; gap: .7rem; align-items: flex-start; }
.caixa input { margin-top: .25rem; accent-color: var(--azul); }
.caixa label { font-weight: 400; font-size: 1rem; }
.erro { color: var(--vermelho-texto); font-weight: 700; }
.erro:empty { display: none; }
[aria-invalid="true"] { border-color: var(--vermelho-texto) !important; box-shadow: 0 0 0 2px var(--vermelho-texto); }
.nota { font-size: 1rem; color: var(--tinta-suave); }
.aviso-envio { background: #fff6d6; border: 2px solid var(--amarelo); border-radius: 10px; padding: 1rem; margin-top: 1rem; color: var(--tinta); }
.aviso-envio:empty { display: none; }
.formulario .botao { width: 100%; }

/* Textos longos */
.texto-longo { max-width: 46rem; }
.texto-longo h2 { margin-top: 2.4rem; font-size: 2.3rem; }
.texto-longo ol { padding-left: 1.4rem; }
.texto-longo ol li { margin-bottom: .6rem; }
.texto-longo ol li::marker { font-family: var(--titulo); font-weight: 800; color: var(--azul); }
.pendente { background: #fff1b8; border: 2px dashed #a37400; padding: 0 .3rem; border-radius: 4px; color: var(--tinta); }

/* Bloco "promessa" com aspas grandes */
.frase { font-family: var(--titulo); font-weight: 800; font-size: clamp(2.6rem, 9vw, 5.5rem); line-height: .95; margin: 0 0 1.2rem; color: #fff; text-shadow: 0 5px 0 var(--azul-noite); }
.infinito-fundo { position: absolute; right: -6rem; bottom: -3rem; width: 34rem; opacity: .9; pointer-events: none; }
@media (max-width: 47.99rem) { .infinito-fundo { width: 20rem; right: -7rem; bottom: -4rem; opacity: .35; } }

/* Rodapé */
.rodape { background: var(--azul-noite); color: #d6dff1; padding: 0 0 1.6rem; font-size: 1rem; }
.rodape .fio { margin-bottom: 2.6rem; }
.rodape a { color: #fff; }
.rodape-grade { display: grid; gap: 1.8rem; }
@media (min-width: 48rem) { .rodape-grade { grid-template-columns: 2fr 1.3fr 1fr; } }
.rodape-marca { display: flex; align-items: center; gap: .8rem; font-family: var(--titulo); font-weight: 800; font-size: 1.6rem; color: #fff; text-transform: uppercase; line-height: 1; margin-bottom: .8rem; }
.rodape-marca img { width: 64px; height: 64px; border-radius: 50%; }
.rodape-titulo { font-family: var(--titulo); font-weight: 800; color: var(--amarelo); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.aviso-legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 1.8rem; padding-top: 1.3rem; font-size: .95rem; color: #bcc8e2; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .botao:hover { transform: none; } }
@media print { .topo, .rodape, .faixa-rascunho, .botoes, .fio { display: none; } .abertura { background: none; color: #000; } .abertura h1 { color: #000; text-shadow: none; } }
.abertura .formulario a, .abertura .cartao a:not(.botao) { color: var(--azul); }
@media (min-width: 62rem) {
  .pastas.pastas-duas { grid-template-columns: repeat(2, 1fr); gap: 3.2rem 2.4rem; }
  .pastas.pastas-duas .pasta:nth-child(n) { margin-top: 0; }
  .pastas.pastas-duas .pasta:nth-child(even) { margin-top: 2.4rem; }
}

/* Últimas notícias: carrossel com foto, cada uma abre numa página da Guilda */
.noticias { padding: 2.2rem 0 1.2rem; }
.noticias-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: 1rem; }
.noticias-topo h2 { font-size: 2.2rem; margin: 0; }
.carrossel-controles { display: flex; align-items: center; gap: .6rem; }
.carrossel-controles a { font-weight: 700; margin-right: .4rem; }
.carrossel-botao { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--tinta); background: #fff; color: var(--tinta); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--tinta); }
.carrossel-botao:hover { background: var(--amarelo); }
.carrossel-botao:disabled { opacity: .35; cursor: default; box-shadow: none; background: #fff; }
.carrossel { list-style: none; margin: 0; padding: .3rem .3rem 1.2rem; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; }
@media (min-width: 48rem) { .carrossel { grid-auto-columns: calc((100% - 2.2rem) / 3); } }
@media (min-width: 72rem) { .carrossel { grid-auto-columns: calc((100% - 3.3rem) / 4); } }
.carrossel .slide { scroll-snap-align: start; }
.slide a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--tinta); box-shadow: 5px 5px 0 var(--tinta); }
.slide a:hover .noticia-titulo { text-decoration: underline; text-decoration-color: var(--amarelo); text-decoration-thickness: 3px; }
.slide.da-guilda a { background: #fff8e1; }
.noticia-capa { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 2px solid var(--tinta); background: var(--papel-2); }
.capa-vazia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: var(--azul); }
.capa-vazia img { width: 45%; filter: drop-shadow(0 5px 0 var(--azul-noite)); }
.capa-vazia span { color: #fff; font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.noticia-corpo { display: flex; flex-direction: column; gap: .45rem; padding: .9rem 1rem 1.1rem; }
.noticia-meta { font-size: .85rem; font-weight: 700; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .04em; }
.noticia-titulo { font-weight: 700; line-height: 1.35; }
.noticia-guilda { display: inline-block; background: var(--azul); color: #fff; border-radius: 4px; padding: 0 .4rem; margin-right: .3rem; letter-spacing: .02em; }
.noticias-grade { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
@media (min-width: 48rem) { .noticias-grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .noticias-grade { grid-template-columns: repeat(3, 1fr); } }

/* Página da notícia */
.noticia-h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--azul-escuro); text-shadow: none; }
.noticia-pagina .noticia-meta { margin-bottom: .6rem; }
.noticia-figura { margin: 1.5rem 0; }
.noticia-figura img { width: 100%; border-radius: 12px; border: 2px solid var(--tinta); }
.noticia-figura figcaption { font-size: .95rem; color: var(--tinta-suave); margin-top: .4rem; }
.noticia-fonte { margin-top: 2rem; padding-top: 1.2rem; border-top: 2px solid var(--linha); }

/* Mapa de apoio */
.mapa-topo { padding: 2.4rem 0 1rem; }
.mapa-ferramentas { padding: .5rem 0 1rem; }
.mapa-busca { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.mapa-busca input { flex: 1 1 18rem; font: inherit; padding: .8rem 1rem; min-height: 52px; border: 2px solid var(--tinta); border-radius: 999px; background: #fff; }
.mapa-filtros { border: 0; margin: 0; padding: 0; }
.mapa-categorias { display: flex; flex-wrap: wrap; gap: .6rem; }
.mapa-cat { display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--tinta); border-radius: 999px; padding: .35rem .9rem .35rem .5rem; background: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; min-height: 44px; }
.mapa-cat input { width: 1.2rem; height: 1.2rem; accent-color: var(--azul); margin: 0; }
.mapa-cat:has(input:not(:checked)) { opacity: .55; background: var(--papel-2); }
.mapa-bola { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--tinta); font: 800 .95rem var(--titulo); color: var(--azul-noite); flex-shrink: 0; }
.mapa-area { padding: 0 1rem; }
#mapa { height: 68vh; min-height: 420px; max-width: calc(var(--largura) - 2rem); margin: 0 auto; border: 2px solid var(--tinta); border-radius: 16px; box-shadow: 6px 6px 0 var(--tinta); z-index: 0; }
.mapa-pino span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #041b45; box-shadow: 0 3px 0 #041b45; }
.mapa-pino { font: 800 14px "Barlow Condensed", sans-serif; color: #041b45; }
.leaflet-popup-content { font: 1rem/1.45 var(--corpo); }
.leaflet-popup-content a { font-weight: 700; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(12, 63, 148, .25); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #0c3f94; color: #fff; font-weight: 700; }
.mapa-lista { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 62rem) { .mapa-lista { grid-template-columns: repeat(2, 1fr); } }
.mapa-lista li { display: flex; gap: .8rem; background: #fff; border: 2px solid var(--tinta); border-radius: 12px; padding: 1rem; }
.mapa-lista h3 { font-size: 1.35rem; margin: 0 0 .2rem; }
.mapa-lista p { margin: 0 0 .3rem; }
.mapa-acoes { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem !important; }
.mapa-ver { font: 700 1rem var(--corpo); background: none; border: 0; color: var(--azul); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }
.mapa-vazio { display: block !important; color: var(--tinta-suave); }

/* Área do aluno */
.menu a[href="aluno.html"] { color: var(--azul); }
@media (min-width: 72rem) {
  .menu a[href="aluno.html"] { background: var(--azul); color: #fff; padding: .45rem 1rem; border-radius: 999px; box-shadow: 0 3px 0 var(--azul-noite); }
  .menu a[href="aluno.html"][aria-current="page"] { box-shadow: 0 3px 0 var(--azul-noite), inset 0 -3px 0 var(--amarelo); }
  .menu ul { gap: 1.2rem; }
}
.botao[aria-disabled="true"] { opacity: .8; cursor: default; }
.botao[aria-disabled="true"]:hover { transform: none; }
.painel-previa { color: var(--tinta); }
.painel-titulo { font-size: 2rem; margin-bottom: 1rem; color: var(--azul-escuro) !important; text-shadow: none !important; }
.painel-cursos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.painel-cursos li { display: grid; gap: .3rem; padding: .9rem 1rem; border: 2px solid var(--linha); border-radius: 12px; background: var(--papel); }
.painel-nome { font-weight: 700; }
.painel-info { font-size: .95rem; color: var(--tinta-suave); }
.barra { display: block; height: 12px; border-radius: 999px; background: #e3e8f2; border: 2px solid var(--tinta); overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--verde); }
.painel-selos { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--tinta); margin-bottom: .4rem; }
.selo { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--amarelo); border: 2px solid var(--tinta); color: var(--azul-noite); }

/* Biblioteca */
.estante { display: grid; gap: 2rem; margin-top: 2rem; }
.livro-cartao { display: grid; gap: 1.6rem; align-items: start; background: #fff; border: 2px solid var(--tinta); border-radius: 16px; padding: 1.5rem; box-shadow: 6px 6px 0 var(--tinta); }
@media (min-width: 48rem) { .livro-cartao { grid-template-columns: 220px 1fr; } }
.livro-capa { width: 100%; max-width: 260px; border-radius: 6px 12px 12px 6px; box-shadow: -4px 0 0 #041b45 inset, 6px 8px 0 var(--azul-noite); display: block; transition: transform .15s ease; }
.livro-capa-link:hover .livro-capa { transform: translateY(-4px) rotate(-1deg); }
.livro-autor { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-suave); }

/* Leitor de livros */
.leitor { --l-fundo: #fbf8f2; --l-texto: #14203a; --l-suave: #4a5470; --l-linha: #d9d1c1; --l-tam: 1.2rem; --l-fonte: var(--corpo); background: var(--l-fundo); color: var(--l-texto); }
.leitor[data-tema="sepia"] { --l-fundo: #f4ead5; --l-texto: #3b2f20; --l-suave: #6a5a44; --l-linha: #d8c7a3; }
.leitor[data-tema="escuro"] { --l-fundo: #0f1626; --l-texto: #e8ecf5; --l-suave: #b7c0d6; --l-linha: #2c3954; }
.leitor[data-fonte="serifa"] { --l-fonte: Georgia, "Times New Roman", serif; }
.leitor-progresso { position: sticky; top: 0; height: 6px; background: var(--l-linha); z-index: 5; }
.leitor-progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vermelho), var(--amarelo), var(--verde), var(--azul-claro)); }
.leitor-barra { position: sticky; top: 6px; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 1rem; background: var(--l-fundo); border-bottom: 2px solid var(--l-linha); }
.leitor-voltar { font-weight: 700; color: var(--l-texto); margin-right: auto; }
.leitor-btn { font: 700 1rem var(--corpo); min-height: 44px; min-width: 44px; padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--l-texto); background: transparent; color: var(--l-texto); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.leitor-btn:hover, .leitor-btn[aria-expanded="true"] { background: var(--amarelo); color: #041b45; border-color: #041b45; }
.leitor-sumario { max-width: 44rem; margin: 1rem auto; padding: 1rem 1.4rem; border: 2px solid var(--l-texto); border-radius: 14px; background: var(--l-fundo); }
.leitor-sumario ol { margin: 0; padding-left: 1.2rem; } .leitor-sumario li { margin: .4rem 0; } .leitor-sumario a { color: var(--l-texto); }
.leitor-capa { max-width: 44rem; margin: 2.5rem auto 1rem; padding: 0 1.1rem; display: grid; gap: 1.6rem; }
@media (min-width: 40rem) { .leitor-capa { grid-template-columns: 200px 1fr; align-items: center; } }
.leitor-capa img { width: 200px; border-radius: 4px 10px 10px 4px; box-shadow: 6px 8px 0 #041b45; }
.leitor-capa h1 { color: var(--l-texto); font-size: clamp(2.4rem, 7vw, 3.6rem); }
.leitor-capa .nota, .leitor .livro-autor { color: var(--l-suave); }
.leitor-texto { max-width: 38em; margin: 0 auto; padding: 1rem 1.1rem 4rem; font-family: var(--l-fonte); font-size: var(--l-tam); line-height: 1.75; }
.leitor-cap { padding-top: 2.5rem; border-top: 2px solid var(--l-linha); margin-top: 2.5rem; scroll-margin-top: 4.5rem; }
.leitor-cap h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--l-texto); margin-bottom: 1.2rem; }
.leitor-num { display: block; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--l-suave); margin-bottom: .3rem; }
.leitor-cap h3 { font-size: 1.6em; color: var(--l-texto); margin-top: 1.8em; }
.leitor-cap p { margin: 0 0 1.1em; hyphens: auto; }
.leitor-nota { font-size: .9em; color: var(--l-suave); }
.assinatura { text-align: right; font-style: italic; }
.nt { font-size: .88em; color: var(--l-suave); background: color-mix(in srgb, var(--amarelo) 18%, transparent); border-radius: 4px; padding: 0 .2em; }
.leitor-prox { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--l-texto); }
.leitor-fim { text-align: center; font-family: var(--titulo); font-weight: 800; font-size: 1.6rem; letter-spacing: .2em; text-transform: uppercase; }
.leitor :focus-visible { outline-color: var(--amarelo); }
@media print {
  .leitor-barra, .leitor-progresso, .leitor-sumario, .leitor-prox, .leitor-continuar { display: none !important; }
  .leitor { --l-fundo: #fff; --l-texto: #000; --l-tam: 11.5pt; }
  .leitor-cap { break-before: page; border: 0; }
  .leitor-capa { break-after: page; display: block; text-align: center; margin-top: 0; }
  .leitor-capa img { width: 11cm; box-shadow: none; margin: 0 auto 1cm; display: block; }
  .so-tela { display: none !important; }
}

/* Mapa: tipos de atendimento */
.mapa-filtro-at { margin-bottom: 1rem; }
.mapa-legenda { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; color: var(--azul); margin-bottom: .5rem; padding: 0; }
.mapa-at { display: inline-flex; align-items: center; gap: .4rem; font: 700 1rem var(--corpo); border: 2px solid var(--tinta); border-radius: 999px; padding: .35rem .9rem; background: #fff; color: var(--tinta); cursor: pointer; min-height: 44px; }
.mapa-at[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.mapa-at .nota { color: inherit; opacity: .8; }
.at-lista { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: .4rem 0; }
.at-item { display: inline-flex; align-items: center; gap: .3rem; font-size: .95rem; font-weight: 700; color: var(--azul-escuro); }
.icone-at { flex-shrink: 0; }

.leitor-parte { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--l-suave); margin: 0 0 .4rem; }
.epigrafe { margin: 0 0 2em; padding: 1em 1.2em; border-left: 6px solid var(--amarelo); font-style: italic; }
.epigrafe p { margin: 0; } .epigrafe-autor { font-style: normal; font-size: .9em; color: var(--l-suave); margin-top: .5em !important; }
.leitor-texto ul { padding-left: 1.4em; margin: 0 0 1.1em; } .leitor-texto li { margin-bottom: .4em; }
.leitor-andamento { margin-top: 2rem; padding: 1rem 1.2rem; border: 2px dashed var(--l-suave); border-radius: 12px; font-weight: 700; }
