@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans-Regular.html") format("truetype");
  font-weight: 400;
}

:root {
  --wine: #621034;
  --wine-dark: #4d0b27;
  --gold: #bc955c;
  --ink: #272727;
  --muted: #757575;
  --line: #e8e1e4;
  --soft: #f5f6f8;
  --success: #1f8d67;
  --info: #2777bf;
}

* {
  box-sizing: border-box;
}

html {
  background: #111318;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 9px 16px;
  background: #111318;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
}

.demo-notice {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 2px solid #111318;
  border-radius: 6px;
  background: #fff;
  color: #111318;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 32px, 930px);
  margin: 0 auto;
}

.topbar {
  background: var(--wine);
  color: #fff;
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img,
.footer-logo img {
  display: block;
  width: 172px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.search-link {
  font-size: 24px;
  line-height: 1;
}

.hero {
  min-height: 236px;
  display: flex;
  align-items: center;
  border-bottom: 5px solid var(--gold);
  background:
    linear-gradient(110deg, rgba(98, 16, 52, .98), rgba(128, 19, 66, .96)),
    url("../images/bnr_documentos.html") center/cover;
  color: #fff;
}

.hero-content {
  padding: 44px 0 52px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
}

.hero p:last-child {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
}

.content {
  padding: 70px 0 64px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
  color: #777;
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb strong {
  color: #333;
  font-weight: 700;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

.search-card {
  padding: 36px 42px 40px;
  margin-bottom: 44px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 54px;
  border: 1px solid #cacaca;
  border-radius: 4px;
  padding: 0 16px;
  color: #5d1737;
  font: inherit;
  font-weight: 700;
}

.help {
  margin: 10px 0 24px;
  color: #8a8a8a;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

button {
  min-height: 42px;
  border-radius: 3px;
  padding: 0 28px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--wine);
  color: #fff;
}

.secondary {
  background: #fff;
  border-color: #ddd;
  color: #666;
}

.support h2 {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 22px;
}

.support p {
  margin: 0 0 16px;
  color: #858585;
  line-height: 1.6;
}

.support a,
.validation a {
  color: var(--wine);
  font-weight: 700;
}

.support a {
  display: block;
  max-width: 100%;
  padding: 17px 22px;
  border-radius: 5px;
  background: #f7f7f7;
}

.registry-card {
  overflow: hidden;
}

.registry-card > h2 {
  margin: 0;
  padding: 28px 34px;
  font-size: 23px;
}

.notice {
  margin: 0 34px 16px;
  padding: 22px 24px;
  border-radius: 4px;
  line-height: 1.5;
}

.notice.success {
  border-left: 5px solid var(--success);
  background: #eefaf5;
  color: #417765;
}

.notice.info {
  border-left: 5px solid var(--info);
  background: #eef7ff;
  color: #4a7394;
  text-align: center;
}

.notice.danger {
  border-left: 5px solid #b3261e;
  background: #fff3f2;
  color: #8b1d17;
}

.data-section {
  border-top: 1px solid var(--line);
}

.data-section h3 {
  margin: 0;
  padding: 15px 34px;
  background: #faf5f6;
  color: var(--wine-dark);
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(190px, 34%) 1fr;
  gap: 28px;
  padding: 21px 34px;
  border-top: 1px solid #eee;
}

dt {
  color: #535353;
}

dd {
  margin: 0;
  color: #565656;
}

.status {
  display: inline-block;
  min-width: 116px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

small {
  color: #777;
  margin-left: 10px;
}

.seal-section {
  padding-bottom: 34px;
}

.seal-section h4 {
  margin: 28px 34px 12px;
  color: var(--wine-dark);
  font-size: 14px;
}

pre {
  margin: 0 34px;
  padding: 22px 24px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #fafafa;
  border: 1px solid #f1f1f1;
  color: #8c8c8c;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.validation {
  margin: 0;
  padding: 28px 42px 36px;
  border-top: 1px solid #eee;
  color: #8a8a8a;
  text-align: center;
  line-height: 1.6;
}

.footer {
  background: var(--wine);
  color: #fff;
  padding: 38px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr 1fr;
  gap: 42px;
}

.footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
  color: #fff;
  text-decoration: underline;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
  text-decoration: none;
}

.social {
  font-size: 27px;
  letter-spacing: 8px;
}

.mark {
  font-weight: 700;
}

.qr-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: start;
}

.qr-tool label + input {
  margin-bottom: 10px;
}

.qr-output {
  padding: 22px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
}

.qr-output h2 {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: 20px;
}

.qr-output img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto 18px;
  border: 12px solid #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.qr-output a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--wine);
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    font-size: 12px;
  }

  .site-shell {
    width: min(100% - 28px, 540px);
  }

  .nav {
    min-height: 45px;
  }

  .brand img,
  .footer-logo img {
    width: 120px;
  }

  .nav-links {
    gap: 16px;
    font-size: 10px;
  }

  .hero {
    min-height: 164px;
  }

  .hero-content {
    padding: 34px 0 36px;
  }

  .kicker {
    font-size: 9px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 23px;
  }

  .hero p:last-child {
    font-size: 12px;
  }

  .content {
    padding: 48px 0 44px;
  }

  .breadcrumb {
    margin-bottom: 36px;
    font-size: 10px;
  }

  .search-card {
    padding: 24px 22px;
  }

  input {
    height: 45px;
  }

  button {
    min-height: 38px;
    padding: 0 20px;
  }

  .support h2,
  .registry-card > h2 {
    font-size: 16px;
  }

  .registry-card > h2,
  .data-section h3 {
    padding-left: 22px;
    padding-right: 22px;
  }

  .notice {
    margin-left: 22px;
    margin-right: 22px;
    padding: 16px 18px;
  }

  dl div {
    grid-template-columns: 1fr 1.45fr;
    gap: 18px;
    padding: 18px 22px;
  }

  .seal-section h4,
  pre {
    margin-left: 22px;
    margin-right: 22px;
  }

  .validation {
    padding: 24px 22px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }

  .qr-tool {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
