.rt-header {
  position: relative;
  z-index: 900;
  width: 100%;
  background: var(--color-pearl);
}

.rt-header .rt-ribbon {
  min-height: 2.25rem;
}

.rt-header .rt-ribbon a {
  flex: 0 0 auto;
}

.rt-header__bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-pearl);
}

.rt-header__inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.rt-header__brand {
  flex: 0 1 auto;
  max-width: 18rem;
}

.rt-header__mark {
  width: 2.875rem;
  min-width: 2.875rem;
  height: 2.875rem;
  object-fit: contain;
}

.rt-header__nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.rt-header__links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(0.8rem, 1.35vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-header__links li,
.rt-header__links li + li {
  margin: 0;
  padding: 0;
}

.rt-header__links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-graphite);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.rt-header__links a:hover,
.rt-header__links a:focus-visible {
  color: var(--color-mineral-teal);
  text-decoration: underline;
  text-decoration-color: var(--color-mineral-teal);
}

.rt-header__desktop-action,
.rt-header__nav-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rt-header__toggle,
.rt-header__mobile-only,
.rt-header__nav-action {
  display: none;
}

.rt-header__toggle {
  flex: 0 0 auto;
  border-color: var(--color-pale-champagne);
}

.rt-header__toggle span {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.rt-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.3125rem) rotate(45deg);
}

.rt-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.rt-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.3125rem) rotate(-45deg);
}

@media (max-width: 68rem) {
  .rt-header__inner {
    min-height: 4.875rem;
    justify-content: space-between;
  }

  .rt-header__brand {
    max-width: min(70vw, 18rem);
  }

  .rt-header__mark {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
  }

  .rt-header__desktop-action {
    display: none;
  }

  .rt-header__toggle {
    display: inline-flex;
  }

  .rt-header__nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    border-bottom: 1px solid var(--color-pale-champagne);
    background: var(--color-pearl);
    box-shadow: 0 16px 28px rgba(32, 37, 42, 0.1);
    gap: var(--space-5);
    opacity: 0;
    padding: var(--space-5) var(--gutter) var(--space-6);
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .rt-header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rt-header__links {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .rt-header__links li {
    border-bottom: 1px solid var(--color-border);
  }

  .rt-header__links a {
    width: 100%;
    min-height: 3rem;
    font-size: 0.875rem;
  }

  .rt-header__mobile-only,
  .rt-header__nav-action {
    display: inline-flex;
  }

  .rt-header__nav-action {
    justify-self: start;
  }
}

@media (max-width: 28rem) {
  .rt-header__inner {
    gap: var(--space-3);
  }

  .rt-header__brand {
    max-width: calc(100% - 3.5rem);
  }

  .rt-header__brand .rt-brand__tagline {
    display: none;
  }
}

ul { list-style: none !important; }
.nav-toggle { flex-direction: column; }