/* ==========================================================================
   Na Ponta da Caneta
   Referências: a capa azul da carteira de trabalho, o fundo de segurança dos
   documentos e o holerite impresso em formulário contínuo zebrado.
   ========================================================================== */

:root {
  --azul: #22346e;            /* capa da carteira de trabalho */
  --azul-escuro: #18264f;
  --azul-noite: #111a3b;
  --ouro: #d4b35e;            /* letras douradas da capa */
  --tinta: #172042;
  --tinta-2: #4a5577;
  --linha: #dbe0ea;
  --borda: #c3cadb;
  --fundo: #edf0f5;
  --branco: #ffffff;
  --papel: #fbfdf8;           /* formulário contínuo */
  --zebra: #e1efda;
  --tinta-papel: #283142;
  --tinta-papel-2: #5d6675;
  --carimbo: #b5372b;
  --verde: #1f6e46;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --largura: 76rem;
  --margem: clamp(1rem, 4vw, 2rem);

  /* fundo de segurança (guilhoche) */
  --guilhoche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M0 24c20-16 60-16 80 0s60 16 80 0'/%3E%3Cpath d='M0 24c20 16 60 16 80 0s60-16 80 0'/%3E%3Cpath d='M0 12c20-10 60-10 80 0s60 10 80 0'/%3E%3Cpath d='M0 36c20 10 60 10 80 0s60-10 80 0'/%3E%3Cpath d='M0 0c20 10 60 10 80 0s60-10 80 0'/%3E%3Cpath d='M0 48c20-10 60-10 80 0s60 10 80 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--azul);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--ouro);
  color: var(--tinta);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}

.pular:focus {
  top: 0;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- topo -- */

.topo {
  background: var(--azul) var(--guilhoche);
  color: #fff;
  position: relative;
  z-index: 20;
}

.aviso-epoca {
  background: var(--ouro);
  color: var(--tinta);
  font-size: 0.875rem;
  text-align: center;
}

.aviso-epoca p {
  margin: 0;
  padding: 0.5rem var(--margem);
}

.aviso-epoca a {
  color: var(--tinta);
  font-weight: 700;
}

.topo__barra {
  position: relative;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
}

.marca__selo {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.marca__nome {
  font-weight: 700;
  font-stretch: 115%;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link,
.menu__botao {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.nav__link:hover,
.menu__botao:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu {
  position: static;
}

.menu__botao {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu__botao::-webkit-details-marker {
  display: none;
}

.menu__seta {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s;
}

.menu[open] .menu__seta {
  transform: rotate(180deg);
}

.menu__painel {
  position: absolute;
  right: var(--margem);
  top: calc(100% - 0.25rem);
  width: min(42rem, calc(100% - 2 * var(--margem)));
  background: var(--branco);
  color: var(--tinta);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(17, 26, 59, 0.55), 0 2px 6px rgba(17, 26, 59, 0.12);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.menu__titulo {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tinta-2);
}

.menu__grupo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__grupo a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 600;
}

.menu__grupo a:hover {
  background: var(--fundo);
}

.menu__grupo .icone {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--azul);
  flex: none;
}

.menu__extra {
  display: none;
}

@media (max-width: 640px) {
  .nav__link {
    display: none;
  }

  .menu__painel {
    left: var(--margem);
    width: auto;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    grid-template-columns: 1fr;
  }

  .menu__extra {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--linha);
    font-weight: 600;
  }
}

@media (min-width: 421px) and (max-width: 640px) {
  .menu__painel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu__extra {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- capa -- */

.capa {
  background: var(--azul) var(--guilhoche);
  color: #fff;
}

.capa__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 1.5rem var(--margem) 6.5rem;
}

.capa h1 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.25rem);
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
  margin: 0.875rem 0;
}

.capa__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #d8def0;
}

.trilha ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #b7c1df;
}

.trilha li + li::before {
  content: '/';
  margin-right: 0.375rem;
  opacity: 0.55;
}

.trilha a {
  color: #fff;
  text-decoration: none;
}

.trilha a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------- calculadora -- */

.calc {
  position: relative;
  max-width: var(--largura);
  margin: -5rem auto 0;
  padding: 0 var(--margem);
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    align-items: start;
    gap: 2.5rem;
  }

  .calc__saida {
    position: sticky;
    top: 1rem;
  }
}

.ficha {
  background: var(--branco);
  border: 1px solid #d9deea;
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1px 2px rgba(23, 32, 66, 0.05), 0 18px 40px -28px rgba(23, 32, 66, 0.45);
}

.ficha__campos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.375rem 1rem;
}

.campo {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 420px) {
  .campo--metade {
    grid-column: span 1;
  }
}

.campo__rotulo {
  display: block;
  padding: 0;
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.campo__ajuda {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--tinta-2);
}

.campo__erro {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--carimbo);
}

.entrada {
  position: relative;
  display: flex;
  align-items: center;
}

.entrada input,
.entrada select,
.contador input {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  background: var(--branco);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--tinta);
}

.entrada input::placeholder {
  color: #9aa3b8;
  font-weight: 400;
}

.entrada input[type='date'] {
  font-size: 1rem;
}

.entrada--prefixo input {
  padding-left: 2.75rem;
}

.entrada--sufixo input {
  padding-right: 4.25rem;
}

.entrada__marca {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--tinta-2);
  pointer-events: none;
}

.entrada--prefixo .entrada__marca {
  left: 0.875rem;
}

.entrada--sufixo .entrada__marca {
  right: 0.875rem;
}

.entrada--select select {
  appearance: none;
  font-family: var(--sans);
  font-size: 1rem;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2322346e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  cursor: pointer;
}

.entrada input:focus,
.entrada select:focus,
.contador input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(34, 52, 110, 0.18);
}

.campo--erro input,
.campo--erro select {
  border-color: var(--carimbo);
}

.contador {
  display: flex;
  max-width: 11rem;
}

.contador input {
  text-align: center;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 0 0.25rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.contador input::-webkit-outer-spin-button,
.contador input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contador__botao {
  flex: none;
  width: 3rem;
  border: 1.5px solid var(--borda);
  background: #f3f5fa;
  color: var(--azul);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.contador__botao:first-child {
  border-radius: 8px 0 0 8px;
}

.contador__botao:last-child {
  border-radius: 0 8px 8px 0;
}

.contador__botao:hover {
  background: #e7ebf5;
}

/* chave liga/desliga */
.chave {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.chave input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chave__trilho {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 1.625rem;
  border-radius: 999px;
  background: #c4cbdb;
  transition: background 0.15s;
}

.chave__trilho::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.chave input:checked + .chave__trilho {
  background: var(--azul);
}

.chave input:checked + .chave__trilho::after {
  transform: translateX(1.125rem);
}

.chave input:focus-visible + .chave__trilho {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}

.campo--chave .campo__ajuda {
  padding-left: 3.5rem;
}

/* opções */
.opcoes--pilulas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.opcoes--lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.5rem;
}

.opcao {
  position: relative;
  cursor: pointer;
}

.opcao input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opcao__corpo {
  display: block;
  height: 100%;
  border: 1.5px solid var(--borda);
  background: var(--branco);
  transition: border-color 0.12s, background-color 0.12s;
}

.opcao:hover .opcao__corpo {
  border-color: #8f9abb;
}

.opcao input:focus-visible + .opcao__corpo {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}

.opcoes--pilulas .opcao__corpo {
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.opcoes--pilulas input:checked + .opcao__corpo {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}

.opcoes--lista .opcao__corpo {
  position: relative;
  padding: 0.75rem 0.875rem 0.75rem 2.625rem;
  border-radius: 10px;
}

.opcoes--lista .opcao__corpo::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 0.95rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid #9aa3bd;
  background: #fff;
}

.opcoes--lista input:checked + .opcao__corpo {
  border-color: var(--azul);
  background: #f1f4fc;
}

.opcoes--lista input:checked + .opcao__corpo::before {
  border-color: var(--azul);
  background: var(--azul);
  box-shadow: inset 0 0 0 3px #fff;
}

.opcao__rotulo {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.opcao__detalhe {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--tinta-2);
}

.mais-opcoes {
  margin-top: 1.5rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--linha);
}

.mais-opcoes > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--azul);
}

.mais-opcoes > summary::-webkit-details-marker {
  display: none;
}

.mais-opcoes > summary::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 6px;
  background: #e8ecf6;
  font-size: 1.0625rem;
  line-height: 1;
  transition: transform 0.15s;
}

.mais-opcoes[open] > summary::before {
  transform: rotate(45deg);
}

.mais-opcoes[open] > .ficha__campos {
  margin-top: 1.25rem;
}

.ficha__acoes {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.botao {
  height: 3.25rem;
  padding: 0 2.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  font-stretch: 112%;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--azul-noite);
  transition: background 0.12s;
}

.botao:hover {
  background: var(--azul-escuro);
}

.botao:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--azul-noite);
}

.botao-texto {
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--azul);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 560px) {
  .ficha__acoes .botao {
    flex: 1;
  }
}

/* resultado */
.calc__papel {
  transition: opacity 0.2s;
}

.calc__papel[data-estado='pendente'] {
  opacity: 0.45;
}

.calc__rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--tinta-2);
}

.calc__rodape p {
  margin: 0;
  max-width: 36ch;
}

.calc__rodape .botao-texto {
  font-size: 0.8125rem;
  padding: 0;
}

/* ------------------------------------------------------------ holerite -- */

.holerite {
  --furo: var(--fundo);
  --dente: 7px;
  --margem-papel: 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--tinta-papel);
}

.h-folha {
  filter: drop-shadow(0 1px 1px rgba(23, 32, 66, 0.12)) drop-shadow(0 14px 18px rgba(23, 32, 66, 0.2));
}

.h-papel {
  position: relative;
  padding: 0 var(--margem-papel);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--dente)) var(--dente) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--dente)) var(--dente) repeat-x;
}

/* tiras laterais com os furos do formulário contínuo */
.h-papel::before,
.h-papel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--margem-papel);
  background: var(--papel);
  -webkit-mask: radial-gradient(circle at 50% 12px, #0000 4.6px, #000 5.2px) 0 0 / 100% 24px repeat-y;
  mask: radial-gradient(circle at 50% 12px, #0000 4.6px, #000 5.2px) 0 0 / 100% 24px repeat-y;
}

.h-papel::before {
  left: 0;
  border-right: 1px dashed rgba(40, 49, 66, 0.28);
}

.h-papel::after {
  right: 0;
  border-left: 1px dashed rgba(40, 49, 66, 0.28);
}

.h-miolo {
  position: relative;
  padding: 1rem 0.875rem calc(1.5rem + var(--dente));
  background-color: var(--papel);
  background-image: repeating-linear-gradient(180deg, var(--papel) 0 72px, var(--zebra) 72px 144px);
}

.h-cab {
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(40, 49, 66, 0.4);
}

.h-cab p {
  margin: 0;
}

.h-emissor {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--tinta-papel-2);
}

.h-doc {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding-right: 7.5rem;
}

.h-meta {
  font-size: 0.75rem;
  color: var(--tinta-papel-2);
}

.h-dados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
}

.h-dados div {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.h-dados dt {
  color: var(--tinta-papel-2);
}

.h-dados dt::after {
  content: ':';
}

.h-dados dd {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h-tit {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.h-bloco + .h-bloco {
  margin-top: 1.25rem;
}

.h-tabela {
  width: 100%;
  border-collapse: collapse;
}

.h-tabela th,
.h-tabela td {
  padding: 0 0.25rem;
  vertical-align: top;
  text-align: left;
}

.h-tabela th:first-child,
.h-tabela td:first-child {
  padding-left: 0;
}

.h-tabela th:last-child,
.h-tabela td:last-child {
  padding-right: 0;
}

.h-tabela thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(40, 49, 66, 0.5);
}

.h-desc small {
  display: block;
  margin-top: -0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: var(--tinta-papel-2);
}

.h-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.h-menos {
  color: var(--carimbo);
}

.h-estreita {
  display: none;
}

.h-tabela tfoot th,
.h-tabela tfoot td {
  font-weight: 600;
}

.h-tabela tfoot tr:first-child > * {
  border-top: 1px dashed rgba(40, 49, 66, 0.5);
}

.h-tabela--valores td {
  padding-top: 0;
}

.h-forte td {
  font-weight: 600;
}

.h-forte .h-num {
  font-size: 0.9375rem;
}

.h-liquido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  margin-top: 0.5rem;
  padding-top: 0.375rem;
  border-top: 3px double rgba(40, 49, 66, 0.7);
  font-weight: 600;
}

.h-liquido strong {
  font-size: 1.375rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  color: var(--tinta);
}

/* carimbo de borracha */
.h-carimbo {
  position: absolute;
  top: 0.875rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.125rem 0.625rem;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  color: var(--carimbo);
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
  filter: url(#tinta-falhada);
  pointer-events: none;
}

.h-notas {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tinta-2);
}

.h-notas li {
  position: relative;
  padding-left: 1rem;
}

.h-notas li + li {
  margin-top: 0.5rem;
}

.h-notas li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--ouro);
}

/* impressão linha a linha ao clicar em Calcular */
.holerite--imprimindo .h-tabela tr > *,
.holerite--imprimindo .h-liquido {
  animation: imprime 0.28s steps(12, end) both;
  animation-delay: calc(var(--n) * 60ms);
}

.holerite--imprimindo .h-carimbo {
  animation: carimba 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: calc(var(--linhas) * 60ms + 120ms);
}

@keyframes imprime {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes carimba {
  from {
    opacity: 0;
    transform: rotate(-8deg) scale(1.6);
  }
  to {
    opacity: 0.85;
    transform: rotate(-8deg) scale(1);
  }
}

@media (max-width: 440px) {
  .holerite {
    --margem-papel: 22px;
    font-size: 0.78rem;
  }

  .h-miolo {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .h-dados {
    grid-template-columns: 1fr;
  }

  /* uma coluna de valor só: descontos aparecem com sinal de menos */
  .h-tabela td.h-num:empty,
  .h-tabela .h-col-desc {
    display: none;
  }

  .h-larga {
    display: none;
  }

  .h-estreita {
    display: inline;
  }

  .h-menos:not(:empty)::before {
    content: '−';
  }

  .h-carimbo {
    font-size: 0.8125rem;
  }

  .h-doc {
    padding-right: 6rem;
  }
}

/* --------------------------------------------------------------- gráfico -- */

.grafico {
  margin: 1.5rem 0 0;
  font-family: var(--sans);
}

.grafico__legenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--tinta-2);
}

.grafico__legenda i {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
  margin-right: 0.375rem;
}

.grafico__eixo-x {
  margin-left: auto;
}

.grafico__area {
  position: relative;
  background: var(--branco);
  border-radius: 10px;
  padding: 0.5rem;
  border: 1px solid var(--linha);
}

.grafico svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.g-grade {
  stroke: #e6e9f0;
  stroke-width: 1;
}

.g-eixo {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--tinta-2);
}

.g-valor {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  fill: var(--tinta);
}

.g-barra {
  outline: none;
}

.g-barra:hover > rect:first-of-type,
.g-barra:focus-visible > rect:first-of-type {
  fill: rgba(34, 52, 110, 0.07);
}

.grafico__dica {
  position: absolute;
  top: 0.5rem;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 15rem;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  background: var(--tinta);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.grafico__tabela {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.grafico__tabela summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--azul);
}

.tabela-rolavel {
  overflow-x: auto;
  max-height: 22rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------- leitura -- */

.leitura {
  margin-top: 4.5rem;
  background: var(--branco);
  border-top: 1px solid var(--linha);
}

.leitura__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 3rem var(--margem) 4.5rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .leitura__in {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 4rem;
  }

  .lateral {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

.texto {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.texto > section:first-child > h2:first-child {
  margin-top: 0;
}

.texto h2 {
  margin: 3rem 0 0.875rem;
  font-size: 1.75rem;
  font-stretch: 112%;
  font-weight: 720;
  letter-spacing: -0.015em;
  scroll-margin-top: 1.5rem;
}

.texto h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 680;
}

.texto p,
.texto ul,
.texto ol {
  margin: 0 0 1rem;
}

.texto ul,
.texto ol {
  padding-left: 1.25rem;
}

.texto li + li {
  margin-top: 0.375rem;
}

.texto li::marker {
  color: var(--azul);
}

.texto strong {
  font-weight: 680;
}

.texto code,
.conta {
  font-family: var(--mono);
  font-size: 0.875em;
  background: #f0f3f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.tabela caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 0.5rem;
}

.tabela th,
.tabela td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linha);
}

.tabela thead th {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--tinta-2);
  border-bottom: 2px solid var(--azul);
}

.tabela td.n,
.tabela th.n {
  text-align: right;
  white-space: nowrap;
}

.tabela td.n {
  font-family: var(--mono);
  font-size: 0.875rem;
}

.tabela tbody th {
  font-weight: 500;
}

.tabela .sim {
  color: var(--verde);
  font-weight: 650;
}

.tabela .nao {
  color: var(--tinta-2);
}

.quadro-tabela {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
}

.quadro {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ouro);
  background: #faf6e9;
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
}

.quadro p:last-child {
  margin-bottom: 0;
}

.passos {
  list-style: none;
  counter-reset: passo;
  padding: 0 !important;
  margin: 1.25rem 0 1.5rem !important;
}

.passos li {
  counter-increment: passo;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.75rem;
  border-bottom: 1px solid var(--linha);
}

.passos li + li {
  margin-top: 0 !important;
}

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.passos .conta {
  display: inline-block;
  margin-top: 0.25rem;
  white-space: normal;
}

.faq {
  border-top: 1px solid var(--linha);
}

.faq__item {
  border-bottom: 1px solid var(--linha);
}

.faq__item > summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #e8ecf6;
  color: var(--azul);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.15s;
}

.faq__item[open] > summary::after {
  transform: rotate(45deg);
}

.faq__resp {
  padding: 0 2.5rem 1rem 0;
  color: #2c3557;
}

.faq__resp p:last-child {
  margin-bottom: 0;
}

.texto__fontes {
  margin-top: 2.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--linha);
  font-size: 0.875rem;
  color: var(--tinta-2);
}

.lateral__bloco + .lateral__bloco {
  margin-top: 2rem;
}

.lateral__titulo {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--tinta-2);
}

.lateral ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lateral__indice a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 2px solid var(--linha);
  color: var(--tinta);
  text-decoration: none;
  font-size: 0.9375rem;
}

.lateral__indice a:hover {
  border-color: var(--azul);
  color: var(--azul);
}

.lateral__calcs a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--linha);
  color: var(--tinta);
  text-decoration: none;
}

.lateral__calcs a:hover strong {
  color: var(--azul);
  text-decoration: underline;
}

.lateral__calcs strong {
  display: block;
  font-weight: 650;
  font-size: 0.9375rem;
}

.lateral__calcs small {
  display: block;
  font-size: 0.8125rem;
  color: var(--tinta-2);
  line-height: 1.35;
}

.selo-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #e8ecf6;
  color: var(--azul);
}

.selo-icone .icone {
  width: 1.375rem;
  height: 1.375rem;
}

/* -------------------------------------------------------------- abertura -- */

.abre {
  background: var(--azul) var(--guilhoche);
  color: #fff;
}

.abre__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 2.5rem var(--margem) 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .abre__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.abre h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.375rem, 1.1rem + 3.9vw, 4.25rem);
  font-stretch: 112%;
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 13ch;
}

.abre__lead {
  margin: 0 0 2rem;
  max-width: 50ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: #d8def0;
}

.teste {
  max-width: 26rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.teste label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

.teste .entrada input {
  height: 3.5rem;
  font-size: 1.375rem;
  border-color: transparent;
}

.teste .entrada input:focus {
  box-shadow: 0 0 0 3px var(--ouro);
}

.teste__nota {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #c3cbe4;
}

.teste__nota .icone {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.atalhos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
  color: #c3cbe4;
}

.atalhos a {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.atalhos a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.abre__papel {
  margin-bottom: -4.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .abre__papel {
    align-self: end;
    margin-bottom: -8rem;
  }
}

.abre__papel .holerite {
  --furo: var(--azul);
}

.abre__papel .h-notas {
  display: none;
}

.abre__link {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  text-align: right;
}

/* ---------------------------------------------------------------- índice -- */

.secao {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
}

.indice {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

@media (min-width: 960px) {
  .indice {
    padding-top: 4rem;
  }

  .indice__cab {
    max-width: calc(100% - 31.5rem);
  }
}

.indice__cab {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.secao h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  font-stretch: 115%;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.busca {
  position: relative;
  width: min(100%, 22rem);
}

.busca .icone {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--tinta-2);
}

.busca input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 2.75rem;
  border: 1.5px solid var(--borda);
  border-radius: 999px;
  background: var(--branco);
  font-size: 1rem;
}

.busca input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(34, 52, 110, 0.18);
}

.indice__grupo {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--borda);
}

@media (min-width: 760px) {
  .indice__grupo {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

.indice__grupo h3 {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 110%;
}

.indice__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0.25rem 1.5rem;
}

.indice__lista a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 12px;
  color: var(--tinta);
  text-decoration: none;
  transition: background 0.12s;
}

.indice__lista a:hover {
  background: var(--branco);
}

.indice__lista a:hover strong {
  color: var(--azul);
  text-decoration: underline;
}

.indice__lista strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
}

.indice__lista small {
  display: block;
  font-size: 0.875rem;
  color: var(--tinta-2);
  line-height: 1.4;
}

.indice__lista .selo-icone {
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha);
}

.busca-vazia {
  padding: 1.5rem 0;
  color: var(--tinta-2);
}

/* tabelas vigentes */
.vigentes {
  background: var(--branco);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.vigentes .secao {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.vigentes__cab {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vigentes__cab p {
  margin: 0.5rem 0 0;
  color: var(--tinta-2);
  max-width: 52ch;
}

.vigentes__grade {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 860px) {
  .vigentes__grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fatos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--linha);
}

.fatos div {
  padding: 1rem 1rem 0 0;
}

.fatos dt {
  font-size: 0.875rem;
  color: var(--tinta-2);
}

.fatos dd {
  margin: 0.125rem 0 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.125rem;
}

.link-forte {
  font-weight: 650;
  white-space: nowrap;
}

/* método */
.metodo .secao {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.metodo__grade {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 1.75rem;
}

@media (min-width: 860px) {
  .metodo__grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.metodo h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.metodo h3 .icone {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--azul);
}

.metodo p {
  margin: 0;
  color: #34405f;
  max-width: 42ch;
}

/* ---------------------------------------------- páginas institucionais -- */

.pagina-texto .leitura {
  margin-top: -4.5rem;
  background: transparent;
  border: 0;
}

.pagina-texto .leitura__in {
  display: block;
  padding-top: 0;
}

.folha {
  max-width: 50rem;
  background: var(--branco);
  border-radius: 14px;
  border: 1px solid #d9deea;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 18px 40px -28px rgba(23, 32, 66, 0.45);
}

.folha--larga {
  max-width: none;
}

.contato-form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
  margin-top: 1.5rem;
}

.contato-form textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.contato-form .entrada input {
  font-family: var(--sans);
}

.contato-form textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(34, 52, 110, 0.18);
}

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

.rodape {
  background: var(--azul-noite);
  color: #c5cde3;
  font-size: 0.9375rem;
}

.rodape a {
  color: #fff;
  text-decoration: none;
}

.rodape a:hover {
  text-decoration: underline;
}

.rodape__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 3.5rem var(--margem) 2.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .rodape__in {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
    gap: 3rem;
  }
}

.rodape__sobre p {
  max-width: 38ch;
  margin: 1rem 0 0;
}

.rodape__aviso {
  font-size: 0.8125rem;
  color: #95a0c0;
}

.rodape__titulo {
  margin: 0 0 0.75rem;
  font-weight: 650;
  color: var(--ouro);
}

.rodape__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.rodape__lista--duas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}

.rodape__base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rodape__base p {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 1.25rem var(--margem);
  font-size: 0.8125rem;
  color: #8e99ba;
}

.anuncio {
  max-width: var(--largura);
  margin: 2.5rem auto 0;
  padding: 0 var(--margem);
  min-height: 100px;
}

/* ----------------------------------------------------------- acessórios -- */

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

@media print {
  .topo,
  .rodape,
  .ficha,
  .leitura,
  .capa__lead,
  .trilha,
  .calc__rodape,
  .anuncio,
  .pular {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .capa {
    background: none;
    color: var(--tinta);
  }

  .capa__in {
    padding: 0 0 1rem;
  }

  .calc {
    display: block;
    margin: 0;
    padding: 0;
  }

  .holerite {
    max-width: 34rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .h-folha {
    filter: none;
  }
}
