/* MARK: Site notice strip (above the header; text and dates are set in wp-admin under Settings > Site notice) */
/* The fallback colours let the same strip preview on the wp-admin settings page, where the theme variables are not loaded. */

.site-notice {
  box-sizing: border-box;
  width: 100%;
  background: var(--calabash-navy, #062c4f);
  color: var(--calabash-white, #ffffff);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.site-notice *,
.site-notice *::before,
.site-notice *::after {
  box-sizing: border-box;
}

.site-notice--orange {
  background: var(--calabash-company-orange-a11y-dark, #9d460b);
}

.site-notice__inner {
  width: min(100% - 4rem, 106rem);
  margin-inline: auto;
  padding-block: 0.7rem;
  text-align: center;
}

.site-notice__text {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.site-notice__heading {
  font-weight: 700;
}

.site-notice .site-notice__link,
.site-notice .site-notice__link:hover,
.site-notice .site-notice__link:visited {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-notice .site-notice__link:hover {
  text-decoration-thickness: 2px;
}

.site-notice .site-notice__link:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* MARK: Inside the sticky header: the strip stays at the top and tightens a little once the page is scrolled */

.site-notice__inner {
  transition: padding 220ms ease;
}

.site-header--compact .site-notice__inner {
  padding-block: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-notice__inner {
    transition: none;
  }
}

@media (max-width: 75rem) {
  .site-notice__inner {
    width: min(100% - 3rem, 106rem);
  }
}

/* The open phone and tablet menu is as tall as the screen minus the header bar; it must also leave room for the strip.
   site-notice.js keeps --site-notice-height up to date, so a message that wraps onto more lines is allowed for. */
@media (max-width: 68.75rem) {
  .site-notice ~ .site-header__inner .site-header__menu-panel {
    max-height: calc(100vh - 6rem - var(--site-notice-height, 0px));
  }
}

@media (max-width: 36rem) {
  .site-notice {
    font-size: 0.875rem;
  }

  .site-notice__inner {
    width: min(100% - 2rem, 106rem);
    padding-block: 0.6rem;
  }

  .site-header--compact .site-notice__inner {
    padding-block: 0.35rem;
  }

  .site-notice ~ .site-header__inner .site-header__menu-panel {
    max-height: calc(100vh - 5.5rem - var(--site-notice-height, 0px));
  }
}
