/* Build 33: pixel-stable shared header and compact shared footer. */

/* Reserve the scrollbar track so pages of different length do not shift the header. */
html { scrollbar-gutter: stable; }

/* Lock the established geometry while keeping the Build-31 header design intact. */
.build31-header {
  box-sizing: border-box !important;
  height: 79px !important;
  min-height: 79px !important;
  max-height: 79px !important;
}

.build31-header .nav-wrap {
  box-sizing: border-box !important;
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
}

/* Shared footer: original signet and contact form one compact visual unit. */
.build14-footer {
  padding-top: 38px !important;
  padding-bottom: 14px !important;
}

.build14-footer .footer-grid.unified-footer {
  grid-template-columns: minmax(335px, 1.45fr) repeat(4, minmax(112px, 1fr)) !important;
  align-items: start !important;
  gap: 22px !important;
  padding-bottom: 22px !important;
}

.build14-footer .footer-brand.footer-brand-compact {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  min-width: 0 !important;
  padding-right: 12px !important;
}

.build14-footer .footer-signet-link,
.build14-footer .footer-signet {
  display: block !important;
  width: 104px !important;
  height: 104px !important;
}

.build14-footer .footer-signet {
  object-fit: contain !important;
}

.build14-footer .footer-contact {
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 6px !important;
  margin: 0 !important;
}

.build14-footer .footer-contact .comm-line {
  min-height: 24px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.build14-footer .footer-contact span.comm-line {
  display: grid !important;
  grid-template-columns: 20px 60px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 7px !important;
}

.build14-footer .footer-contact-label {
  color: #8fb4c7 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.build14-footer .footer-contact button.comm-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: max-content !important;
  min-width: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(93, 210, 255, .38) !important;
  border-radius: 8px !important;
  background: rgba(19, 135, 187, .13) !important;
  box-shadow: none !important;
}

.build14-footer .footer-contact button.comm-line:hover,
.build14-footer .footer-contact button.comm-line:focus-visible {
  border-color: rgba(110, 222, 255, .75) !important;
  background: rgba(25, 160, 220, .22) !important;
}

.build14-footer .footer-grid > div:not(.footer-brand) {
  align-self: start !important;
}

.build14-footer .footer-bottom {
  padding-top: 14px !important;
}

@media (max-width: 1180px) {
  .build31-header {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
  }

  .build31-header .nav-wrap {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
  }

  .build14-footer .footer-grid.unified-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .build14-footer .footer-brand.footer-brand-compact {
    grid-column: 1 / -1 !important;
    grid-template-columns: 96px minmax(0, 330px) !important;
  }

  .build14-footer .footer-signet-link,
  .build14-footer .footer-signet {
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 760px) {
  .build14-footer .footer-grid.unified-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 24px !important;
  }
}

@media (max-width: 560px) {
  .build31-header {
    height: 67px !important;
    min-height: 67px !important;
    max-height: 67px !important;
  }

  .build31-header .nav-wrap {
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
  }

  .build14-footer {
    padding-top: 34px !important;
  }

  .build14-footer .footer-grid.unified-footer {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
  }

  .build14-footer .footer-brand.footer-brand-compact {
    grid-column: auto !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 15px !important;
    padding-right: 0 !important;
  }

  .build14-footer .footer-signet-link,
  .build14-footer .footer-signet {
    width: 88px !important;
    height: 88px !important;
  }

  .build14-footer .footer-contact span.comm-line {
    grid-template-columns: 20px 60px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .build14-footer .footer-contact-label { font-size: .67rem !important; }
}

@media (max-width: 360px) {
  .build14-footer .footer-brand.footer-brand-compact {
    grid-template-columns: 80px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .build14-footer .footer-signet-link,
  .build14-footer .footer-signet {
    width: 80px !important;
    height: 80px !important;
  }

  .build14-footer .footer-contact span.comm-line {
    grid-template-columns: 20px minmax(0, 1fr) !important;
  }

  .build14-footer .footer-contact-label { display: none !important; }
}
