.site-header {
  --nav-compact-progress: 0;
  --nav-bg-opacity: calc(1 - (0.25 * var(--nav-compact-progress)));
  --nav-shadow-opacity: calc(0.08 * var(--nav-compact-progress));
  /* Lift when shy: clear the seal's FULL extent (padding-top + logo height + buffer),
     not just the header's own height, so the overhanging logo tucks fully out of view.
     Mirrors --site-brand-logo-height's rest/compact values (10rem/6.25rem) on .site-nav. */
  --nav-hidden-shift: calc(1rem + 10rem + ((6.25rem - 10rem) * var(--nav-compact-progress)));
  border-bottom: 1px solid rgba(15, 42, 68, 0.1);
  background: rgb(232 220 196 / var(--nav-bg-opacity));
  box-shadow: 0 0.5rem 1.5rem rgb(15 42 68 / var(--nav-shadow-opacity));
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.22s ease;
  will-change: transform;
}

.site-header-spacer {
  height: 0;
}

.site-header.is-hidden {
  transform: translateY(calc(-1 * var(--nav-hidden-shift)));
}

.site-nav {
  --nav-rest-min-height: 5.5rem;
  --nav-compact-min-height: 3.75rem;
  --nav-rest-logo-height: 10rem;
  --nav-compact-logo-height: 6.25rem;
  --nav-rest-logo-width: 12rem;
  --nav-compact-logo-width: 7.8125rem;
  --site-brand-logo-height: calc(var(--nav-rest-logo-height) + ((var(--nav-compact-logo-height) - var(--nav-rest-logo-height)) * var(--nav-compact-progress)));
  --site-brand-logo-width: calc(var(--nav-rest-logo-width) + ((var(--nav-compact-logo-width) - var(--nav-rest-logo-width)) * var(--nav-compact-progress)));
  width: min(100%, 72rem);
  min-height: calc(var(--nav-rest-min-height) + ((var(--nav-compact-min-height) - var(--nav-rest-min-height)) * var(--nav-compact-progress)));
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.site-brand {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: var(--site-brand-logo-width);
  align-self: stretch;
  text-decoration: none;
  font-size: 0;
}

.site-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--site-brand-logo-width);
  height: var(--site-brand-logo-height);
  background-image: var(--site-brand-logo-image, url("/images/logos/light-rope/rwd-seal-south-park-light-rope.png?v=20260814-rope-clean"));
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
}

.site-brand[aria-current="page"] {
  color: #0f2a44;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.site-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: #0f2a44;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-link:hover {
  color: #c26a4a;
}

.site-link[aria-current="page"] {
  background: rgba(15, 42, 68, 0.05);
  color: #0f2a44;
  font-weight: 700;
}

.site-link--cta {
  background: #0f2a44;
  color: #e8dcc4;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-link--cta:hover,
.site-link--cta[aria-current="page"] {
  background: #c26a4a;
  color: #e8dcc4;
}

.footer-admin-link,
.footer-admin-link:link,
.footer-admin-link:visited,
.footer-admin-link:hover,
.footer-admin-link:active,
.footer-admin-link:focus {
  color: inherit;
  cursor: default;
  outline: none;
  text-decoration: none;
}

@media (max-width: 783px) {
  .site-nav {
    --nav-rest-logo-height: 7rem;
    --nav-rest-logo-width: 8.75rem;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.5rem 1rem 0.75rem;
  }

  .site-brand {
    display: inline-flex;
    align-items: center;
    position: static;
    width: auto;
    align-self: flex-start;
  }

  .site-brand::before {
    position: static;
    width: var(--site-brand-logo-width);
    height: var(--site-brand-logo-height);
    background-position: center;
    flex: 0 0 auto;
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .site-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .site-link {
    min-height: 2.25rem;
    padding: 0.45rem 0.6rem;
  }

  .site-link--cta {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}
