.site-header {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  background: #fff;
  border-bottom-color: #e4edf7;
}

.header-inner {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 4vw, 3.75rem);
  min-height: 104px;
  gap: clamp(0.6rem, 1vw, 1rem);
}

.brand-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.brand:focus-visible {
  outline: 3px solid #78aaf5;
  outline-offset: 3px;
}

.main-nav {
  min-width: 0;
  gap: clamp(0.45rem, 0.8vw, 0.8rem);
}

.main-nav a {
  color: #142c50;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav .active:after {
  bottom: -35px;
}

.header-actions {
  flex: 0 0 auto;
  gap: 0.55rem;
}

.location-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  color: #142c50;
  cursor: not-allowed;
}

.location-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-search {
  width: 34px;
  height: 34px;
}

.header-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid #1266d7;
  border-radius: 0.55rem;
  color: #1266d7;
  font-weight: 700;
}

.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  color: #142c50;
  font-weight: 700;
}

.header-logout-form {
  display: flex;
  margin: 0;
}

.header-logout,
.mobile-logout {
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #142c50;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.header-logout {
  padding: 0.55rem 0.35rem;
}

.listed-button {
  padding: 0.68rem 1rem;
  border-radius: 0.5rem;
  background: #0757e8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.listed-button:hover,
.listed-button:focus-visible {
  background: #0649c4;
}

.header-search:focus-visible,
.login-link:focus-visible,
.register-link:focus-visible,
.header-logout:focus-visible,
.mobile-logout:focus-visible,
.listed-button:focus-visible,
.main-nav a:focus-visible,
.mobile-menu summary:focus-visible {
  outline: 3px solid #78aaf5;
  outline-offset: 3px;
}

.mobile-menu nav {
  top: calc(100% + 0.25rem);
  right: 1rem;
  z-index: 20;
  min-width: min(260px, calc(100vw - 2rem));
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}

.mobile-menu nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.mobile-menu-actions {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.mobile-menu-actions .location-button {
  justify-content: flex-start;
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
}

.mobile-menu-actions .header-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  height: 40px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.3rem;
  font-size: 0.84rem;
}

.mobile-menu-actions .header-search svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-actions .login-link {
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
}

.mobile-menu-actions .register-link,
.mobile-menu-actions .mobile-logout {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
}

.mobile-menu-actions form {
  margin: 0;
}

.register-link:hover,
.header-logout:hover,
.mobile-logout:hover {
  background: #f1f6fc;
}

.mobile-menu-actions .listed-button {
  display: block;
  padding: 0.65rem 0.7rem;
  text-align: center;
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 0.65rem;
  }

  .brand-logo {
    width: clamp(165px, 20vw, 210px);
  }

  .main-nav {
    gap: clamp(0.25rem, 0.5vw, 0.45rem);
  }

  .main-nav a {
    font-size: 0.7rem;
  }

  .header-actions {
    gap: 0.32rem;
  }

  .header-actions .location-button {
    display: inline-flex;
    font-size: 0.7rem;
  }

  .header-actions .login-link {
    display: inline-flex;
    padding-inline: 0.5rem;
  }

  .listed-button {
    padding-inline: 0.6rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 88px;
  }

  .brand-logo {
    width: clamp(155px, 22vw, 175px);
  }

  .main-nav {
    display: flex;
    gap: 0.2rem;
  }

  .main-nav a {
    font-size: 0.64rem;
  }

  .header-actions {
    display: flex;
    gap: 0.2rem;
  }

  .header-actions .location-button {
    font-size: 0.64rem;
  }

  .header-actions .location-button svg {
    width: 14px;
    height: 14px;
  }

  .header-actions .login-link {
    padding-inline: 0.4rem;
  }

  .listed-button {
    padding-inline: 0.45rem;
    font-size: 0.64rem;
  }

  .mobile-menu {
    display: none;
  }
}

@media (max-width: 740px) {
  .header-inner {
    min-height: 84px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 540px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 185px;
  }
}

/* Public header navigation and taxonomy menus. */
.header-inner{min-height:82px}
.brand-logo{width:240px}
.header-dropdown{position:relative}
.header-dropdown>summary{list-style:none;cursor:pointer}
.header-dropdown>summary::-webkit-details-marker{display:none}
.main-nav .header-dropdown>summary{position:relative;padding:0;color:#142c50;font-size:.8rem;font-weight:600;white-space:nowrap}
.main-nav .header-dropdown>summary.active{color:#1266d7}
.main-nav .header-dropdown>summary.active::after{position:absolute;right:0;bottom:-35px;left:0;height:3px;background:#1266d7;content:""}
.main-nav a.active::after,.main-nav .header-dropdown>summary.active::after{bottom:-.45rem}
.header-dropdown-panel{position:absolute;z-index:30;top:100%;left:50%;display:grid;min-width:220px;padding:.45rem;border:1px solid #dce6f2;border-radius:.55rem;background:#fff;box-shadow:0 12px 28px #19395a24;transform:translateX(-50%)}
.header-dropdown-panel a{display:block;padding:.52rem .65rem;border-radius:.3rem;color:#142c50;font-size:.76rem;font-weight:600;text-decoration:none;white-space:nowrap}
.header-dropdown-panel a:hover,.header-dropdown-panel a:focus-visible{background:#edf5ff;color:#1266d7}
.location-dropdown>summary{cursor:pointer}
.location-dropdown .header-dropdown-panel{right:0;left:auto;transform:none}
.location-button{cursor:pointer}
.location-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.header-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.mobile-submenu{border-radius:.3rem}
.mobile-submenu>summary{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:.55rem .7rem;color:var(--ink);font-weight:700;cursor:pointer;list-style:none}
.mobile-submenu>summary::-webkit-details-marker{display:none}
.mobile-submenu>a{padding-left:1.25rem!important;font-size:.8rem}
@media (max-width:1050px){.brand-logo{width:clamp(190px,20vw,220px)}}
@media (max-width:740px){.brand-logo{width:185px}.header-dropdown-panel{position:static;min-width:0;margin:.1rem .5rem .35rem;box-shadow:none;transform:none}.mobile-menu nav{padding:.5rem}.mobile-menu .header-search svg{flex:0 0 18px}}

/* Homepage-matched navigation scale and spacing. */
.main-nav{gap:clamp(1.5rem,2vw,1.75rem)}
.main-nav>a,.main-nav .header-dropdown>summary{font-size:15px;font-weight:600}
.main-nav a.active::after,.main-nav .header-dropdown>summary.active::after{bottom:-.45rem;height:3px}
.header-actions .location-button{font-size:14px}
@media (max-width:1050px){
  .main-nav{gap:clamp(.8rem,1.4vw,1.1rem)}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:14px}
  .header-actions .location-button{font-size:13px}
}
@media (max-width:800px) and (min-width:741px){
  .main-nav{gap:.45rem}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:13px}
  .header-actions .location-button{font-size:12px}
}

/* Final desktop navigation scale. */
.main-nav{gap:clamp(1.875rem,2.2vw,2.125rem)}
.main-nav>a,.main-nav .header-dropdown>summary{font-size:17px;font-weight:600}
.header-actions .location-button,.header-actions .login-link,.header-actions .header-logout,.header-actions .listed-button{font-size:15px}
@media (max-width:1050px){
  .main-nav{gap:clamp(1.25rem,1.8vw,1.5rem)}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:15px}
  .header-actions .location-button,.header-actions .login-link,.header-actions .header-logout,.header-actions .listed-button{font-size:14px}
}
@media (max-width:800px) and (min-width:741px){
  .main-nav{gap:.6rem}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:13px}
}

/* Reference-matched lightweight desktop navigation. */
.main-nav{gap:clamp(2.8125rem,3.2vw,3.125rem)}
.main-nav>a,.main-nav .header-dropdown>summary{font-size:15px;font-weight:450;letter-spacing:.02px}
@media (max-width:1050px){
  .main-nav{gap:clamp(1.75rem,2.5vw,2.125rem)}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:15px;font-weight:500}
}
@media (max-width:800px) and (min-width:741px){
  .main-nav{gap:.65rem}
  .main-nav>a,.main-nav .header-dropdown>summary{font-size:13px;font-weight:500}
}

/* Restore the prominent wordmark with the requested header spacing. */
.brand{margin:10px 0 10px 60px}
.brand-logo{width:240px;height:auto;max-width:100%;object-fit:contain}
@media(max-width:1050px){.brand-logo{width:clamp(190px,20vw,220px)}}
@media(max-width:740px){.brand-logo{width:185px}}

/* Start navigation at a deliberate distance from the logo instead of centering the group. */
.main-nav{justify-content:flex-start;margin-left:44px}
@media(max-width:1050px) and (min-width:741px){.main-nav{margin-left:50px}}
