/**
 * @file
 * Page layout: fixed header (Figma: Navigation Bar — v2).
 *
 * States: over the hero the bar is transparent; after scrolling it becomes a
 * frosted solid bar (.is-solid, set by js/script.js).
 */

.sra-header {
  position: fixed;
  z-index: 100;
  top: var(--drupal-displace-offset-top, 0);
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.sra-header.is-solid {
  border-bottom-color: rgba(0, 33, 31, 0.1);
  background: rgba(248, 248, 240, 0.82);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.sra-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--sra-max-width);
  margin: 0 auto;
  /* 96px bar (Figma: Navigation Bar, State=Solid). */
  padding: 24px var(--sra-gutter);
}

.sra-header__logo {
  display: block;
  justify-self: start;
  width: 205px;
}

.sra-header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.sra-header__language {
  color: var(--sra-gray-500);
}

.sra-header__actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 20px;
}

/* Section links pill. */
.sra-nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid rgba(0, 33, 31, 0.1);
  border-radius: var(--sra-radius-full);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 32px rgba(2, 45, 48, 0.08), 0 6px 16px rgba(2, 45, 48, 0.07), 0 1px 2px rgba(2, 45, 48, 0.05);
}

.sra-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--sra-radius-full);
  color: var(--sra-gray-500);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.sra-nav__link:hover,
.sra-nav__link:focus-visible {
  color: var(--sra-tertiary-950);
}

/* Active link (current section) filled. */
.sra-nav__link.is-active,
.sra-header.is-solid .sra-nav__link.is-active {
  background: var(--sra-tertiary-950);
  color: var(--sra-white);
  font-weight: 700;
}

.sra-nav__badge {
  padding: 2px 7px;
  border-radius: var(--sra-radius-full);
  background: var(--sra-primary-50);
  color: var(--sra-primary-700);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

/* Main content starts under the fixed header (the hero sits behind it). */
.sra-layout__highlighted {
  position: relative;
  z-index: 1;
  max-width: var(--sra-max-width);
  margin: 0 auto;
  padding: 110px var(--sra-gutter) 0;
}

.sra-layout__highlighted:has(> div > .hidden:only-child) {
  display: none;
}
