/* Archive nav refinements on top of shared sticky frosted header. */

.desktop-nav a.is-active,
.mobile-menu a.is-active {
  color: var(--acid);
}

.site-header.is-scrolled .desktop-nav a.is-active {
  color: var(--coral);
}

/* Edition pages: ink brand when scrolled; coral mark over dark hero. */
.edition-header .brand-mark {
  background: var(--coral);
  color: #fff;
}

.edition-header.is-scrolled .brand-mark {
  background: var(--acid);
  color: var(--ink);
}

.edition-header .back-link {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.edition-header .back-link:hover {
  color: var(--acid);
}

.edition-header.is-scrolled .back-link:hover {
  color: var(--coral);
}

.edition-header .dark-cta {
  border-color: currentColor;
}

@media (min-width: 761px) {
  .edition-header {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  }

  .edition-header .brand {
    justify-self: start;
  }

  .edition-header .back-link,
  .edition-header .desktop-nav {
    justify-self: center;
  }

  .edition-header .nav-cta {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .edition-header .back-link {
    display: none;
  }
}
