/*
  Context Navigation (Submenu) — Website Refresh 2026 1e (Figma),
  "Context Navigation" frame.
  Source: https://www.figma.com/design/2W6CyIAW3cKDEqdv26CeE2/Website-Refresh-2026-1e?node-id=73-19875

  Requires tokens.css, typography.css loaded first.

  In practice this always sits directly under a Title (css/titles.css)
  — every real page instance checked pairs them — but they're kept as
  separate files/classes per your steer, since Context Navigation is
  its own Figma frame rather than part of Titles.

  GAP VALUE: the isolated Context Navigation component sample uses a
  40px gap between items, but real page instances (checked against
  both Features/Metadata and Sector/Museums) use 16px — gone with the
  real-usage value, same "trust real usage over the isolated sample"
  call made earlier for the Hero mock UI's type sizes.

  Current/Hover share one visual treatment in Figma (a 10%-white
  wash) — Current is just that same look applied persistently to
  whichever item matches the page you're on, via .is-current, rather
  than a distinct style of its own. Confirmed unchanged between the
  Feature and Sector page types — only the item labels differ.

  MOBILE: Figma doesn't define a smaller-viewport version of this row
  (a horizontal list of up to ~10 items has no obvious stacked
  equivalent). Horizontal scroll (overflow-x: auto) is a pragmatic
  addition here, not a Figma-confirmed pattern — flag if something
  else is wanted.
*/

.rs-context-nav {
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-8) var(--space-48) var(--space-16) var(--space-48);
  background-color: var(--color-blue-800);
}

@media (max-width: 1280px) {
  .rs-context-nav {
    padding-left: var(--space-32);
    padding-right: var(--space-32);
  }
}

@media (max-width: 640px) {
  .rs-context-nav {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
}

.rs-context-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  width: 100%;
  padding-top: var(--space-8);
  margin: 0;
  list-style: none;
  overflow-x: auto;
}

.rs-context-nav__item {
  flex-shrink: 0;
}

.rs-context-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--space-4);
  background-color: transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral-white-50);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.rs-context-nav__link:hover,
.rs-context-nav__link.is-current {
  background-color: var(--color-transparency-light-10);
}
