:root {
  --boletim-ink: #152b38;
  --boletim-navy: #203a48;
  --boletim-blue: #2a68a1;
  --boletim-sky: #eaf4fb;
  --boletim-gold: #f0b84b;
  --boletim-line: #d8e2e8;
  --boletim-muted: #5d6d76;
  --boletim-surface: #ffffff;
  --boletim-bg: #f3f7f9;
  --boletim-success: #18724d;
}

[hidden] {
  display: none !important;
}

.boletim-page {
  flex: 1;
  padding: 56px 20px 72px;
  color: var(--boletim-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 151, 202, 0.1), transparent 28%),
    linear-gradient(180deg, #f9fbfc 0%, var(--boletim-bg) 100%);
}

.boletim-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.boletim-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 820px;
  margin-bottom: 34px;
}

.boletim-heading-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--boletim-navy);
  box-shadow: 0 10px 24px rgba(32, 58, 72, 0.18);
  font-size: 1.35rem;
}

.boletim-kicker {
  margin: 0 0 5px;
  color: var(--boletim-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boletim-heading h1,
.boletim-guide h2,
.boletim-consulta-card h2,
.boletim-result h2,
.boletim-result h3 {
  margin: 0;
  color: var(--boletim-ink);
  font-weight: 750;
}

.boletim-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.boletim-heading > div > p:last-child {
  margin: 10px 0 0;
  color: var(--boletim-muted);
  line-height: 1.65;
}

.boletim-access-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  overflow: hidden;
  border: 1px solid rgba(32, 58, 72, 0.1);
  border-radius: 24px;
  background: var(--boletim-surface);
  box-shadow: 0 22px 60px rgba(32, 58, 72, 0.12);
}

.boletim-guide {
  position: relative;
  overflow: hidden;
  padding: 46px 40px;
  color: #fff;
  background: var(--boletim-navy);
}

.boletim-guide::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 45px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.boletim-guide .boletim-kicker {
  color: #9fd2f0;
}

.boletim-guide h2 {
  max-width: 320px;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.25;
}

.boletim-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.boletim-steps li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.boletim-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--boletim-navy);
  background: var(--boletim-gold);
  font-weight: 800;
}

.boletim-steps strong,
.boletim-steps small {
  display: block;
}

.boletim-steps strong {
  margin: 3px 0 4px;
  font-size: 0.95rem;
}

.boletim-steps small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

.boletim-help {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.boletim-help > i {
  font-size: 1.2rem;
  color: var(--boletim-gold);
}

.boletim-help strong,
.boletim-help span {
  display: block;
}

.boletim-help strong {
  font-size: 0.88rem;
}

.boletim-help span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.boletim-consulta-card {
  padding: 46px clamp(28px, 5vw, 58px);
}

.boletim-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.boletim-card-title h2 {
  font-size: 1.65rem;
}

.boletim-card-title > i {
  color: #b9c7cf;
  font-size: 1.8rem;
}

.boletim-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.boletim-fieldset legend,
.boletim-form-group > label {
  margin-bottom: 9px;
  color: var(--boletim-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.boletim-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boletim-unit-card {
  position: relative;
  display: grid;
  min-height: 116px;
  cursor: pointer;
  place-items: center;
  padding: 18px 12px 14px;
  border: 1.5px solid var(--boletim-line);
  border-radius: 14px;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.boletim-unit-card:hover {
  transform: translateY(-2px);
  border-color: #8ab8d6;
  box-shadow: 0 8px 22px rgba(42, 104, 161, 0.1);
}

.boletim-unit-card:has(input:checked) {
  border-color: var(--boletim-blue);
  background: #f3f9fd;
  box-shadow: 0 0 0 3px rgba(42, 104, 161, 0.08);
}

.boletim-unit-card.is-unavailable {
  cursor: not-allowed;
  opacity: 0.58;
  background: #f4f5f6;
}

.boletim-unit-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.boletim-unit-card input:focus-visible + .boletim-unit-check {
  outline: 3px solid rgba(42, 104, 161, 0.28);
  outline-offset: 3px;
}

.boletim-unit-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: none;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--boletim-blue);
  font-size: 0.6rem;
}

.boletim-unit-card:has(input:checked) .boletim-unit-check {
  display: grid;
}

.boletim-unit-icon {
  margin-bottom: 8px;
  color: var(--boletim-blue);
  font-size: 1.35rem;
}

.boletim-unit-card strong,
.boletim-unit-card small {
  display: block;
}

.boletim-unit-card strong {
  font-size: 0.9rem;
}

.boletim-unit-card small {
  margin-top: 4px;
  color: var(--boletim-muted);
  font-size: 0.68rem;
}

.boletim-unit-card small.is-available {
  color: var(--boletim-success);
}

.boletim-unit-card small.is-unavailable {
  color: #8b5a22;
}

.boletim-form-group {
  margin-bottom: 21px;
}

.boletim-form-group > label {
  display: block;
}

.boletim-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.boletim-input-wrap > i {
  position: absolute;
  left: 16px;
  color: #8497a2;
  pointer-events: none;
}

.boletim-input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 12px 48px 12px 45px;
  border: 1.5px solid var(--boletim-line);
  border-radius: 11px;
  color: var(--boletim-ink);
  background: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.boletim-input-wrap input:focus {
  border-color: var(--boletim-blue);
  box-shadow: 0 0 0 4px rgba(42, 104, 161, 0.1);
}

.boletim-input-wrap input::placeholder {
  color: #9ba9b1;
}

.boletim-toggle-password {
  position: absolute;
  right: 7px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: #71848e;
  background: transparent;
  cursor: pointer;
}

.boletim-toggle-password:hover,
.boletim-toggle-password:focus-visible {
  color: var(--boletim-blue);
  background: var(--boletim-sky);
}

.boletim-field-help {
  display: block;
  margin-top: 6px;
  color: var(--boletim-muted);
  font-size: 0.72rem;
}

.boletim-primary-button,
.boletim-secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.boletim-primary-button {
  width: 100%;
  padding: 12px 20px;
  border: 0;
  color: #fff;
  background: var(--boletim-blue);
  box-shadow: 0 10px 22px rgba(42, 104, 161, 0.2);
}

.boletim-primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #215784;
  box-shadow: 0 13px 26px rgba(42, 104, 161, 0.25);
}

.boletim-primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.boletim-feedback {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #793333;
  background: #fff0f0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.boletim-privacy-note {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: flex-start;
  margin: 14px 0 0;
  color: var(--boletim-muted);
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.45;
}

.boletim-privacy-note i {
  margin-top: 2px;
  color: var(--boletim-success);
}

.boletim-result {
  overflow: hidden;
  border: 1px solid rgba(32, 58, 72, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(32, 58, 72, 0.12);
}

.boletim-result-topbar {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 30px 34px;
  color: #fff;
  background: var(--boletim-navy);
}

.boletim-result-topbar h2 {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.boletim-result-topbar .boletim-kicker {
  color: #9fd2f0;
}

.boletim-result-topbar p:last-child {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.boletim-actions {
  display: flex;
  gap: 9px;
}

.boletim-secondary-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.boletim-secondary-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.boletim-summary {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.6fr 0.9fr;
  border-bottom: 1px solid var(--boletim-line);
  background: #f8fafb;
}

.boletim-summary > div {
  min-width: 0;
  padding: 20px 24px;
  border-right: 1px solid var(--boletim-line);
}

.boletim-summary > div:last-child {
  border-right: 0;
}

.boletim-summary span,
.boletim-summary strong {
  display: block;
}

.boletim-summary span {
  margin-bottom: 5px;
  color: var(--boletim-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boletim-summary strong {
  overflow: hidden;
  color: var(--boletim-ink);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boletim-table-intro {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 30px 18px;
}

.boletim-table-intro h3 {
  font-size: 1.2rem;
}

.boletim-table-intro p {
  margin: 5px 0 0;
  color: var(--boletim-muted);
  font-size: 0.8rem;
}

.boletim-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 99px;
  color: var(--boletim-blue);
  background: var(--boletim-sky);
  font-size: 0.72rem;
  font-weight: 750;
}

.boletim-table-wrap {
  overflow-x: auto;
  margin: 0 30px;
  border: 1px solid var(--boletim-line);
  border-radius: 13px;
}

.boletim-table-wrap:focus-visible {
  outline: 3px solid rgba(42, 104, 161, 0.24);
  outline-offset: 3px;
}

.boletim-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.boletim-table th,
.boletim-table td {
  min-width: 76px;
  padding: 12px 11px;
  border-right: 1px solid var(--boletim-line);
  border-bottom: 1px solid var(--boletim-line);
  text-align: center;
  white-space: nowrap;
}

.boletim-table th:first-child,
.boletim-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  text-align: left;
}

.boletim-table thead th {
  color: #fff;
  background: var(--boletim-navy);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.boletim-table thead th:first-child {
  z-index: 2;
}

.boletim-table tbody td:first-child {
  color: var(--boletim-ink);
  background: #fff;
  font-weight: 700;
}

.boletim-table tbody tr:nth-child(even) td {
  background: #f7fafb;
}

.boletim-table tbody tr:nth-child(even) td:first-child {
  background: #f7fafb;
}

.boletim-table tr:last-child td {
  border-bottom: 0;
}

.boletim-table th:last-child,
.boletim-table td:last-child {
  border-right: 0;
}

.boletim-table-value.is-empty {
  color: #9ba9b1;
}

.boletim-empty {
  margin: 0 30px;
  padding: 52px 20px;
  border: 1px dashed #b9c8d0;
  border-radius: 13px;
  text-align: center;
  background: #fafcfd;
}

.boletim-empty i {
  margin-bottom: 13px;
  color: #9babb4;
  font-size: 2rem;
}

.boletim-empty h3 {
  font-size: 1.05rem;
}

.boletim-empty p {
  margin: 7px 0 0;
  color: var(--boletim-muted);
  font-size: 0.82rem;
}

.boletim-disclaimer {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 22px 30px 28px;
  padding: 13px 15px;
  border-radius: 10px;
  color: #51636d;
  background: #f2f6f8;
  font-size: 0.75rem;
  line-height: 1.5;
}

.boletim-disclaimer i {
  margin-top: 2px;
  color: var(--boletim-blue);
}

@media (max-width: 850px) {
  .boletim-access-grid {
    grid-template-columns: 1fr;
  }

  .boletim-guide {
    padding: 34px 30px;
  }

  .boletim-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
  }

  .boletim-steps li {
    display: block;
  }

  .boletim-steps li > span {
    margin-bottom: 10px;
  }

  .boletim-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .boletim-summary > div:nth-child(2) {
    border-right: 0;
  }

  .boletim-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--boletim-line);
  }
}

@media (max-width: 599px) {
  .boletim-page {
    padding: 34px 14px 52px;
  }

  .boletim-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .boletim-heading-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .boletim-heading h1 {
    font-size: 1.65rem;
  }

  .boletim-heading > div > p:last-child {
    font-size: 0.86rem;
  }

  .boletim-access-grid,
  .boletim-result {
    border-radius: 18px;
  }

  .boletim-guide {
    padding: 28px 22px;
  }

  .boletim-guide h2 {
    font-size: 1.35rem;
  }

  .boletim-steps {
    grid-template-columns: 1fr;
    gap: 17px;
    margin: 24px 0;
  }

  .boletim-steps li {
    display: flex;
  }

  .boletim-steps li > span {
    margin-bottom: 0;
  }

  .boletim-consulta-card {
    padding: 30px 20px;
  }

  .boletim-card-title h2 {
    font-size: 1.35rem;
  }

  .boletim-units {
    grid-template-columns: 1fr;
  }

  .boletim-unit-card {
    min-height: 90px;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    padding: 16px 42px 16px 16px;
    text-align: left;
  }

  .boletim-unit-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .boletim-unit-card strong,
  .boletim-unit-card small {
    grid-column: 2;
  }

  .boletim-result-topbar {
    display: block;
    padding: 25px 20px;
  }

  .boletim-actions {
    margin-top: 18px;
  }

  .boletim-summary {
    grid-template-columns: 1fr;
  }

  .boletim-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--boletim-line);
  }

  .boletim-summary > div:last-child {
    border-bottom: 0;
  }

  .boletim-table-intro {
    align-items: flex-start;
    padding: 24px 18px 15px;
  }

  .boletim-table-wrap,
  .boletim-empty {
    margin: 0 18px;
  }

  .boletim-disclaimer {
    margin: 18px;
  }
}

@media print {
  body::before {
    position: fixed;
    top: 46%;
    left: 50%;
    z-index: 9999;
    color: rgba(0, 0, 0, 0.1);
    content: "NÃO OFICIAL";
    font-family: Arial, sans-serif;
    font-size: 68pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-32deg);
    white-space: nowrap;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .navigation,
  .topPage,
  .footer,
  .boletim-heading,
  .boletim-actions {
    display: none !important;
  }

  .boletim-page {
    padding: 0;
    background: #fff;
  }

  .boletim-result {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .boletim-result-topbar {
    padding: 18px 0;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .boletim-result-topbar h2,
  .boletim-result-topbar .boletim-kicker,
  .boletim-result-topbar p:last-child {
    color: #000;
  }

  .boletim-summary {
    border: 1px solid #777;
  }

  .boletim-table-intro {
    padding-inline: 0;
  }

  .boletim-table-wrap {
    overflow: visible;
    margin: 0;
    border-color: #777;
  }

  .boletim-table {
    min-width: 0;
    font-size: 8pt;
  }

  .boletim-table th,
  .boletim-table td {
    min-width: 0;
    padding: 6px 4px;
    border-color: #999;
  }

  .boletim-table th:first-child,
  .boletim-table td:first-child {
    position: static;
    min-width: 120px;
  }

  .boletim-table thead th {
    color: #000;
    background: #e8e8e8;
  }

  .boletim-disclaimer {
    margin: 18px 0 0;
    border: 1px solid #999;
    color: #000;
    background: #fff;
  }
}
