/* Notification Bar (Theme Settings > Notification Bar) */
.notification-bar {
  position: relative;
  z-index: 20;
  color: #ffffff;
  font-family: 'Raleway', serif;
}

.notification-bar--standard {
  background-color: #4B1E2D;
}

.notification-bar--msi {
  background-color: var(--hm-institute, #1C383C);
}

.notification-bar--interpretive_center {
  background-color: var(--hm-interpretive, #A0372A);
}

.notification-bar--national_landmark {
  background-color: var(--hm-landmark, #637231);
}

.notification-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.notification-bar__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-right: 36px;
  display: inline-flex;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.notification-bar__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.notification-bar__message {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  flex: 1 1 auto;
  max-width: 760px;
  text-align: right;
}

.notification-bar__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 40px;
}

.notification-bar__link:hover,
.notification-bar__link:focus {
  color: #ffffff;
  text-decoration: underline;
}

.notification-bar__chevron {
  position: relative;
  width: 10px;
  height: 9px;
  display: inline-block;
}

.notification-bar__chevron::before,
.notification-bar__chevron::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #ffffff;
  border-right: 1.5px solid #ffffff;
  transform: rotate(45deg);
}

.notification-bar__chevron::before {
  left: 0;
}

.notification-bar__chevron::after {
  left: 3px;
}

/* Below the "large" breakpoint (1024px) the header/sticky-container is
   always position:fixed (theme's own CSS, independent of scroll — see
   `medium down` in inc/_header.scss), so the bar must always stack
   directly above it there too. */
@media (max-width: 1023px) {
  body.has-notification-bar .notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body.has-notification-bar .sticky-container {
    top: var(--notif-h, 52px) !important;
  }

  .notification-bar__icon {
    width: 32px;
    height: 32px;
    margin-right: 18px;
  }

  .notification-bar__link {
    margin-left: 20px;
  }
}

/* At "large" and up, the header only becomes fixed once scrolled past its
   original position (Foundation adds `.is-stuck`). Mirror that state on
   the bar via JS toggling body.notif-stuck, so at rest they stay flush in
   normal document flow with zero gap, and once stuck they stay stacked. */
body.notif-stuck .notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body.notif-stuck .header.is-stuck {
  top: var(--notif-h, 52px) !important;
}

@media (max-width: 767px) {
  .notification-bar__inner {
    padding: 8px 16px;
  }

  .notification-bar__message {
    font-size: 12px;
    text-align: left;
  }

  .notification-bar__icon {
    width: 26px;
    height: 26px;
    margin-right: 12px;
  }

  .notification-bar__link {
    margin-left: 12px;
  }
}
