html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.customer-quick-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  border-block: 1px solid rgba(78, 54, 41, .14);
  background: rgba(255, 252, 250, .93);
  box-shadow: 0 8px 24px rgba(78, 54, 41, .11);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.customer-quick-nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 11px clamp(18px, 4vw, 52px);
}

.customer-quick-nav-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4e3629;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.customer-quick-nav-label::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 3px solid #c69c6d;
  border-radius: 50%;
  background: #ed1c24;
  box-shadow: 0 0 0 2px #fff;
}

.customer-quick-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 3px 5px;
  scrollbar-width: thin;
  scrollbar-color: #b8aaa2 transparent;
}

.customer-quick-nav-links a {
  --nav-delay: 0s;
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  border: 1px solid rgba(78, 54, 41, .22);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, .92);
  color: #4e3629;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(78, 54, 41, .08);
  animation: customer-nav-pill-pulse 760ms cubic-bezier(.2,.8,.2,1) var(--nav-delay) 1 backwards;
  transition: background-color .16s ease, color .16s ease,
    border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.customer-quick-nav-links a::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -5px;
  left: 9%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: #ed1c24;
  box-shadow: 0 0 0 3px rgba(255,255,255,.94), 0 0 11px 4px rgba(198,156,109,.8);
  animation: customer-nav-signal 760ms cubic-bezier(.2,.8,.2,1) var(--nav-delay) 1 both;
}

.customer-quick-nav-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #c69c6d;
  opacity: .55;
}

.customer-quick-nav-links a:nth-child(2) { --nav-delay: .18s; }
.customer-quick-nav-links a:nth-child(3) { --nav-delay: .36s; }
.customer-quick-nav-links a:nth-child(4) { --nav-delay: .54s; }
.customer-quick-nav-links a:nth-child(5) { --nav-delay: .72s; }
.customer-quick-nav-links a:nth-child(6) { --nav-delay: .90s; }
.customer-quick-nav-links a:nth-child(7) { --nav-delay: 1.08s; }

@keyframes customer-nav-signal {
  0% { left: 9%; opacity: 0; transform: scale(.68); }
  14% { opacity: 1; }
  72% { opacity: 1; transform: scale(1.12); }
  100% { left: 86%; opacity: 0; transform: scale(.78); }
}

@keyframes customer-nav-pill-pulse {
  0% { box-shadow: 0 3px 10px rgba(78,54,41,.08); }
  38% { border-color: rgba(237,28,36,.65); box-shadow: 0 0 0 4px rgba(198,156,109,.2), 0 8px 18px rgba(78,54,41,.16); }
  100% { box-shadow: 0 3px 10px rgba(78,54,41,.08); }
}

.customer-quick-nav-links a:hover {
  border-color: #ed1c24;
  background: #fff6f4;
  color: #4e3629;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(78,54,41,.14);
}

.customer-quick-nav-links a:focus-visible {
  outline: 3px solid rgba(237, 28, 36, .24);
  outline-offset: 2px;
}

.customer-quick-nav-links a.active {
  border-color: #4e3629;
  background: #4e3629;
  color: #fff;
  box-shadow: inset 0 -3px 0 #c69c6d, 0 5px 12px rgba(78, 54, 41, .2);
}

#customer-overview,
#customer-data-section,
#core-rates,
#core-acknowledgment,
#core-grants,
#core-publishing,
#core-contact {
  scroll-margin-top: 84px;
}

.customer-data-section {
  min-width: 0;
}

@media (max-width: 940px) {
  .customer-quick-nav-inner {
    display: block;
    padding: 9px 12px 7px;
  }

  .customer-quick-nav-label {
    display: none;
  }

  .customer-quick-nav-links {
    gap: 8px;
  }

  .customer-quick-nav-links a {
    padding: 10px 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .customer-quick-nav-links a {
    animation: none;
    transition: none;
  }

  .customer-quick-nav-links a::before {
    animation: none;
    display: none;
  }
}
