/**
 * @file
 * Site header.
 */

/*
 * Media query breakpoints.
 * Processed by postcss/postcss-custom-media.
 */

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

.site-header {
  position: sticky;
  top: var(--drupal-displace-offset-top, 0px);
  /**
   * Ensure site header is always above other elements including
   * contextual links, and Tour.
   */
  z-index: 101;
}

.site-header__initial {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  background-color: var(--color--primary-50);
}

.site-header__fixable {
  display: flex;
  align-items: flex-end;
  transition: all 0.5s;
}

.site-header__inner {
  position: relative;
  z-index: 1; /* Appear in front of Drupal's tabs. */
  flex-grow: 1;
  width: calc(100vw - var(--drupal-displace-offset-left, 0px) - var(--drupal-displace-offset-right, 0px));
  background: var(--color--background-surface);
}

/*
 * Only apply transition styles when JS is loaded. This
 * works around https://bugs.chromium.org/p/chromium/issues/detail?id=332189
 */

@media (min-width: 1200px) {

html.js body:not(.is-always-mobile-nav) .site-header__inner {
    transition:
      box-shadow 0.3s;
}
  }

@media (min-width: 1200px) {

.site-header__fixable.is-fixed .site-header__inner {
    box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08); /* LTR */
}
  }

@media (min-width: 1200px) {

[dir="rtl"] .site-header__fixable.is-fixed .site-header__inner {
    box-shadow: 36px 1px 36px rgba(0, 0, 0, 0.08);
}
  }

.site-header__inner__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp);
}

@media (min-width: 1200px) {

.site-header__inner__container {
    flex-wrap: nowrap;
}
  }

/*
   * While the mobile search toggle (js/header-search-toggle.js) is expanded,
   * let the search pill take over the row instead of competing for space
   * with the logo, avatar and hamburger button.
   */

.site-header__inner__container.is-search-expanded > .site-branding,
    .site-header__inner__container.is-search-expanded > .mobile-buttons {
      display: none;
    }

.site-header__inner__container.is-search-expanded > .header-nav__secondary {
      flex: 1;

      /* Blocks in this region render inside a further .region wrapper div
       * (see region--secondary-menu.html.twig), so the search block isn't a
       * direct child of .header-nav__secondary — reach one level deeper. */
    }

.site-header__inner__container.is-search-expanded > .header-nav__secondary .region--secondary-menu > *:not(.block-header-search) {
        display: none;
      }

/* Reset width set by layout.css */

body.is-fixed .site-header__inner__container {
  width: auto;
}
