:root {
  --navy: #0c1a25;
  --gold: #eabb65;
  --cream: #f7f0e6;
  --card: #fbf8f3;
  --line: #d8d0c4;
  --ink: #0c1a25;
  --ink-soft: #3e4b57;
  --paper: #ffffff;
  --error: #8c2f2f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Sora, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  z-index: 30;
}

.pular:focus {
  top: 0.5rem;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.coluna {
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 0 1.15rem;
  container-type: inline-size;
}

.topo {
  background: var(--navy);
  color: #f7f4ee;
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.7rem 0 0.55rem;
}

.marca {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.wordmark {
  color: var(--gold);
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 7cqi, 2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.idealizacao {
  margin: 0;
  color: #d7cfc3;
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.idealizacao a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.idealizacao a:hover,
.idealizacao a:focus-visible {
  color: #fff;
}

.hamburguer {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.35rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.traco {
  height: 1px;
  background: var(--gold);
}

.hero-texto {
  padding: 0.9rem 0.2rem 0.1rem;
  text-align: center;
}

.hero-texto h1 {
  margin: 0;
  color: #fff;
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 9.2cqi, 2.85rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.hero-texto p {
  margin: 0.7rem 0 0;
  color: #f4efe6;
  font-size: 1.02rem;
}

.hero-ilustracao {
  display: block;
  margin: 0.7rem 0 0.65rem;
  background: var(--navy);
  border-radius: 1.15rem;
  overflow: hidden;
  line-height: 0;
}

.hero-ilustracao img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--navy);
}

.resumo {
  background: var(--cream);
  padding: 0.85rem 0 0.2rem;
}

.estado {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.estado[hidden] {
  display: none;
}

.campo-periodo {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.campo-periodo label,
.cartao-claro h2,
.cartao-vivo h2 {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.campo-periodo label {
  color: var(--navy);
}

select {
  width: 100%;
  appearance: none;
  font: inherit;
  color: var(--navy);
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' fill='none' stroke='%230c1a25' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 0.85rem center / 1.1rem no-repeat;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 2.4rem 0.85rem 0.9rem;
}

.cartao-vivo {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.05rem 1.1rem 1rem;
}

.cartao-vivo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.cartao-vivo h2 {
  color: #fff;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.selo[hidden] {
  display: none;
}

.ponto {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(234, 187, 101, 0.7);
}

.valor-gigante,
.valor-medio {
  margin: 0.35rem 0 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.valor-gigante {
  color: var(--gold);
  font-size: clamp(1.42rem, 5.5cqi, 2.15rem);
}

.micro,
.micro-escuro {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.micro {
  color: #f3ead8;
}

.micro[hidden] {
  display: none;
}

.micro-escuro {
  color: var(--ink-soft);
}

.par-cartoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.cartao-claro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.75rem 0.9rem;
  min-width: 0;
  container-type: inline-size;
}

.cartao-claro h2 {
  color: var(--navy);
  font-size: 0.98rem;
}

.valor-medio {
  color: var(--navy);
  font-size: clamp(0.78rem, 10.5cqi, 1.45rem);
  white-space: nowrap;
}

.cta {
  display: block;
  margin-top: 0.9rem;
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.link-fonte {
  display: block;
  width: fit-content;
  margin: 0.6rem auto 1rem;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.95rem;
}

.gaveta {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  justify-content: flex-end;
}

.gaveta[hidden] {
  display: none;
}

.gaveta-fundo {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 26, 37, 0.48);
  cursor: pointer;
}

.gaveta-painel {
  position: relative;
  width: min(20rem, 88vw);
  height: 100%;
  margin: 0;
  padding: 0.4rem 1.15rem 1.5rem;
  background: var(--card);
  box-shadow: -12px 0 32px rgba(12, 26, 37, 0.18);
  overflow: auto;
}

.gaveta-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0 0.35rem;
  color: var(--navy);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
}

.fechar {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-family: Sora, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.gaveta-painel a {
  display: block;
  padding: 0.82rem 0.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.detalhe {
  background: var(--cream);
  padding-bottom: 2.4rem;
}

.miolo {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.secao,
#resumo,
#despesas,
#fontes {
  scroll-margin-top: 0.8rem;
}

.secao {
  margin-top: 2.1rem;
}

.secao h2,
.rodape-fontes h2 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
}

.aviso,
.fonte {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.cartao {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.cartao span,
.etiqueta {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cartao strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.rolagem {
  width: 0;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  padding: 0.75rem 0.8rem 0.25rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #efe6da;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td.numero,
th.numero {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.barras {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.faixa {
  display: grid;
  grid-template-columns: minmax(4.8rem, 6.4rem) 1fr;
  gap: 0.6rem;
  align-items: center;
  color: var(--navy);
  font-size: 0.88rem;
}

.trilha {
  display: block;
  height: 0.72rem;
  background: #e7dfd4;
  border-radius: 999px;
  overflow: hidden;
}

.preenchimento {
  display: block;
  height: 100%;
  background: var(--navy);
  box-shadow: inset 0 0 0 999px rgba(234, 187, 101, 0.28);
  background-image: linear-gradient(90deg, var(--navy), #c9a15a);
}

.busca {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0;
  max-width: 28rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="search"] {
  font: inherit;
  font-weight: 400;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
}

.alerta,
.ato {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0.65rem 0;
}

.alerta {
  border-left: 4px solid var(--gold);
}

.alerta h3,
.ato h3 {
  margin: 0.2rem 0;
  color: var(--navy);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.lista-atos {
  display: grid;
  gap: 0.8rem;
}

.ato p,
.alerta p,
.fonte,
.aviso,
.rodape-fontes li {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.rodape-fontes {
  margin-top: 2.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.rodape-fontes a,
.ato a,
.secao a {
  color: var(--navy);
}

.erro-bloco {
  color: var(--error);
}

.rodape {
  background: var(--navy);
  color: #f7f0e6;
  border-top: 1px solid rgba(234, 187, 101, 0.55);
  padding: 1.15rem 0 1.45rem;
}

.credito {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.credito img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
}

.credito-texto {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.credito strong {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.1;
}

.credito-texto span {
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1.3;
}

.credito:hover .credito-texto span,
.credito:focus-visible .credito-texto span {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 900px) {
  .coluna {
    width: min(100%, 40rem);
  }

  .hero-texto {
    padding-top: 1.6rem;
  }
}

@media (max-width: 380px) {
  .par-cartoes {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ponto {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ponto {
    animation: pulso 1.5s ease-out infinite;
  }
}

@keyframes pulso {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 187, 101, 0.65);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(234, 187, 101, 0);
  }
}
