/* Corporate header rules are scoped to avoid changing the approved Shape design. */
header.nelson-site-header,
header.nelson-site-header *,
header.nelson-site-header *::before,
header.nelson-site-header *::after {
  box-sizing: border-box;
}
header.nelson-site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 96px;
  margin: 0;
  padding: 14px clamp(20px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid #d8e0e5;
  color: #0b2633;
  font-family: Poppins, Arial, sans-serif;
}
.nelson-header-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nelson-logo { display: block; width: 170px; height: auto; max-width: none; }
header.nelson-site-header #mainNav {
  display: block;
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.nelson-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2px, .7vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nelson-nav-list > li { position: relative; min-width: 0; }
header.nelson-site-header .nelson-nav-link,
header.nelson-site-header .nelson-dropdown-trigger {
  min-height: 44px;
  padding: 10px clamp(6px, .65vw, 12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #0b2633;
  font: 500 13px/1.4 Poppins, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
header.nelson-site-header .nelson-nav-link:hover,
header.nelson-site-header .nelson-dropdown-trigger:hover,
header.nelson-site-header .nelson-dropdown-trigger[aria-expanded="true"] { color: #008fa9; }
.nelson-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.nelson-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0 16px;
  width: max-content;
  min-width: 360px;
  max-width: min(740px, calc(100vw - 40px));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e0e5;
  background: #fff;
  box-shadow: 0 12px 32px rgb(11 38 51 / 12%);
  list-style: none;
}
.nelson-services-menu { grid-template-columns: repeat(3, minmax(170px, 1fr)); min-width: 570px; }
.nelson-contact-menu { right: 0; left: auto; min-width: 240px; grid-template-columns: 1fr; }
.nelson-dropdown-trigger[aria-expanded="true"] + .nelson-dropdown-menu { display: grid; }
header.nelson-site-header .nelson-dropdown-menu a {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: #0b2633;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
header.nelson-site-header .nelson-dropdown-menu a:hover { background: #f1fbfd; color: #008fa9; }
header.nelson-site-header .nelson-contact-cta { padding: 9px 13px; border: 1px solid #00bbdc; }
header.nelson-site-header #mobileMenu {
  display: none;
  position: static;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d8e0e5;
  background: #fff;
  color: #0b2633;
  font: 500 14px/1.4 Poppins, Arial, sans-serif;
}
header.nelson-site-header :is(a, button):focus-visible {
  outline: 3px solid #008fa9;
  outline-offset: 3px;
}
footer.nelson-legal-footer {
  display: block;
  margin: 0 4%;
  padding: 20px 0;
  border-top: 1px solid #d8e0e5;
  background: #fff;
  color: #0b2633;
  font: 400 12px/1.6 Poppins, Arial, sans-serif;
}
footer.nelson-legal-footer nav {
  display: flex;
  position: static;
  flex-wrap: wrap;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 8px 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
footer.nelson-legal-footer :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
body.is-configuring footer.nelson-legal-footer { padding-bottom: 120px; }
.nelson-cookie-settings[aria-disabled="true"] { cursor: not-allowed; opacity: .65; }
#shapeContactDialog { width: min(480px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow: auto; }
#shapeContactDialog .shape-contact-fields { display: grid; gap: 16px; }
#shapeContactDialog label { display: grid; gap: 6px; font-size: 14px; }
#shapeContactDialog input { box-sizing: border-box; width: 100%; min-height: 44px; font: inherit; }
#shapeContactDialog .button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 1100px) {
  header.nelson-site-header { min-height: 80px; padding: 12px clamp(20px, 5vw, 48px); }
  .nelson-header-inner { flex-wrap: wrap; gap: 14px; }
  .nelson-logo { width: 155px; }
  header.nelson-site-header #mobileMenu { display: inline-flex; }
  header.nelson-site-header #mainNav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 8px 0 4px;
  }
  header.nelson-site-header #mainNav.is-open { display: block; }
  .nelson-nav-list { align-items: stretch; flex-direction: column; gap: 0; }
  .nelson-nav-list > li { width: 100%; border-top: 1px solid #d8e0e5; }
  header.nelson-site-header .nelson-nav-link,
  header.nelson-site-header .nelson-dropdown-trigger {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 12px 8px;
    font-size: 15px;
    text-align: left;
  }
  .nelson-dropdown-menu,
  .nelson-services-menu,
  .nelson-contact-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0 0 8px 12px;
    border: 0;
    border-left: 2px solid #00bbdc;
    box-shadow: none;
  }
  header.nelson-site-header .nelson-dropdown-menu a { font-size: 14px; }
}
