/* Announcement bar above the header */

.announcement-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 56px;
  background: #006AAC;
  color: #fff;
}

.announcement-bar__content {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

a.announcement-bar__content:hover .announcement-bar__text {
  text-decoration: underline;
}

.announcement-bar__logo {
  display: block;
  width: auto;
  height: 22px;
}

.announcement-bar__arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

a.announcement-bar__content:hover .announcement-bar__arrow {
  transform: translateX(3px);
}

.announcement-bar__close {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.announcement-bar__close:hover,
.announcement-bar__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

/* body is a flex container in this theme, so the absolute header ignores the bar in the flow.
   Position it from the bar's bottom edge instead (--ogk-announce-bottom, set inline and by announcement.js). */
body.has-announcement > header {
  top: var(--ogk-announce-bottom);
}

/* The desktop nav pill is position:fixed: keep it 48px below the bar, sliding up as the bar scrolls away
   (--ogk-announce-offset is the bar's bottom edge in the viewport, never above the WP admin bar). */
@media only screen and (min-width: 992px) {
  body.has-announcement header .container .header-innerwrap .header-nav {
    top: calc(48px + var(--ogk-announce-offset, 0px));
  }
}

@media only screen and (max-width: 600px) {
  .announcement-bar {
    padding: 8px 44px 8px 16px;
  }
  .announcement-bar__content {
    font-size: 14px;
    line-height: 20px;
  }
  .announcement-bar__logo {
    height: 18px;
  }
  .announcement-bar__arrow {
    display: none;
  }
  .announcement-bar__close {
    right: 6px;
  }
}
