/* One route list, in the existing green home and blue catalog palettes. */
.site-primary-nav,
.site-section-menu,
.site-section-footer {
  --site-nav-accent: var(--green, var(--blue, #2855da));
  --site-nav-tint: var(--soft, #e9efdf);
  --site-nav-focus: var(--green, #2855da);
  color: var(--ink);
}

.site-header {
  position: relative;
  z-index: 30;
}

.site-header .header-inner {
  position: relative;
  gap: 28px;
}

.site-header .header-inner .site-primary-nav {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: clamp(12px, 1.5vw, 22px);
  height: 100%;
  margin-left: auto;
  font-size: 13px;
}

/* Explicit link display overrides the old home nth-child hiding rules. */
.site-header .header-inner .site-primary-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .header-inner .site-primary-nav > a:hover {
  color: var(--site-nav-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-header .header-inner .site-primary-nav > a[aria-current="page"] {
  color: var(--ink);
}

.site-header .header-inner .site-primary-nav > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--site-nav-accent);
}

.site-section-menu {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

.site-section-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.site-section-menu > summary::-webkit-details-marker {
  display: none;
}

.site-section-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.site-section-menu[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.site-section-menu[open] > summary,
.site-section-menu > summary:hover {
  background: var(--site-nav-tint);
  color: var(--site-nav-accent);
}

.site-header .header-inner .site-section-links {
  position: absolute;
  top: calc(100% - 1px);
  right: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 3px;
  margin: 0;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 0 0 12px 12px;
  background: var(--surface, #fff);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--site-nav-accent) var(--site-nav-tint);
}

.site-header .header-inner .site-section-menu:not([open]) > .site-section-links {
  display: none;
}

.site-header .header-inner .site-section-links > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.site-header .header-inner .site-section-links > a:hover,
.site-header .header-inner .site-section-links > a[aria-current="page"] {
  background: var(--site-nav-tint);
  color: var(--site-nav-accent);
}

.site-header .header-inner .site-section-links > a[aria-current="page"] {
  font-weight: 650;
}

.site-primary-nav > a:focus-visible,
.site-section-menu > summary:focus-visible,
.site-section-links > a:focus-visible,
.site-section-footer > a:focus-visible {
  outline: 3px solid var(--site-nav-focus);
  outline-offset: 3px;
}

.site-footer {
  flex-wrap: wrap;
}

.site-footer .site-section-footer {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 24px;
  min-width: 0;
  margin: 16px 0;
  font-size: 12px;
}

.site-footer .site-section-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--site-nav-accent);
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-header .header-inner {
    gap: 14px;
  }

  .site-header .header-inner .site-primary-nav {
    display: none;
  }

  .site-header .header-inner .site-section-menu {
    display: block;
  }
}

@media (max-width: 380px) {
  .site-header .header-inner {
    gap: 8px;
  }

  .site-section-menu > summary {
    gap: 8px;
    padding-inline: 10px;
    font-size: 12px;
  }
}
