.dc-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(11, 10, 12, 0.96);
  color: var(--color-ivory);
}

.dc-header__inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  gap: var(--space-3);
}

.dc-header__brand {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-ivory);
  text-decoration: none;
}

.dc-header__brand:hover,
.dc-header__brand:focus-visible {
  color: var(--color-ivory);
  text-decoration: none;
}

.dc-header__logo {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  object-fit: contain;
}

.dc-header__brand-name {
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-header__toggle {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: transparent;
  color: var(--color-champagne);
}

.dc-header__toggle:hover {
  border-color: var(--color-champagne);
  background: rgba(215, 184, 121, 0.08);
}

.dc-header__toggle-line {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

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

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

.dc-header__nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100vh - 4.75rem);
  overflow-y: auto;
  padding: var(--space-4) max(var(--container-padding), 1.25rem) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-graphite);
  box-shadow: var(--shadow-card);
}

.dc-header__nav.is-open {
  display: block;
}

.dc-header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-header__nav-list li,
.dc-header__nav-list li + li {
  margin: 0;
  padding: 0;
}

.dc-header__nav-list a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-ivory);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  text-decoration: none;
}

.dc-header__nav-list a:hover {
  color: var(--color-focus);
}

.dc-header__age {
  display: inline-flex;
  margin-left: var(--space-2);
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(15, 107, 88, 0.8);
  border-radius: var(--radius-pill);
  color: #8ed1bf;
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
}

.dc-header__mobile-cta {
  width: 100%;
  margin-top: var(--space-4);
  font-size: 0.75rem;
}

.dc-header__cta {
  display: none;
  min-height: 2.75rem;
  flex: 0 0 auto;
  padding-inline: 0.875rem;
  font-size: 0.6875rem;
  white-space: nowrap;
}

@media (min-width: 64rem) {
  .dc-header__inner {
    min-height: 5rem;
    gap: var(--space-5);
  }

  .dc-header__brand {
    flex: 0 0 auto;
  }

  .dc-header__logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .dc-header__brand-name {
    font-size: 1.375rem;
  }

  .dc-header__toggle {
    display: none;
  }

  .dc-header__nav {
    position: static;
    display: block;
    min-width: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dc-header__nav-list {
    display: flex;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.6rem, 1.25vw, 1.25rem);
  }

  .dc-header__nav-list a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.015em;
    white-space: nowrap;
  }

  .dc-header__mobile-link,
  .dc-header__mobile-cta {
    display: none;
  }

  .dc-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 80rem) {
  .dc-header__nav-list a {
    font-size: 0.75rem;
  }

  .dc-header__cta {
    padding-inline: 1rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-header__toggle-line {
    transition: none;
  }
}
