/* Temporary site-wide notice. It sits before .app so it appears above the main header
   and stays visible at the top while scrolling. Remove the marked block and its link
   from templates/shared/header.php after the official launch. */
body > .site-maintenance-notice {
  position: sticky;
  top: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-left: 4px solid #f5b942;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(105deg, rgba(72, 53, 22, 0.35), rgba(14, 25, 43, 0.94) 54%, rgba(13, 36, 48, 0.92));
  color: #e7edf7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-maintenance-notice__content {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex: 1 1 auto;
  min-width: 0;
}

.site-maintenance-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border: 1px solid rgba(245, 185, 66, 0.36);
  border-radius: 9px;
  background: rgba(245, 185, 66, 0.12);
  color: #ffd277;
  font-size: 16px;
  font-weight: 900;
}

.site-maintenance-notice__copy {
  min-width: 0;
}

.site-maintenance-notice__eyebrow {
  margin: 0 0 3px;
  color: #ffd277;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.site-maintenance-notice__copy p {
  margin: 0;
  color: #d5dfed;
  font-size: 13px;
  line-height: 1.6;
}

.site-maintenance-notice__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(49, 211, 178, 0.35);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(31, 175, 151, 0.18), rgba(20, 162, 206, 0.15));
  color: #bcfff0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.site-maintenance-notice__contact strong {
  white-space: nowrap;
  font-weight: 850;
}

.site-maintenance-notice__contact:hover {
  border-color: rgba(49, 211, 178, 0.65);
  background: linear-gradient(135deg, rgba(31, 175, 151, 0.26), rgba(20, 162, 206, 0.24));
  transform: translateY(-1px);
}

.site-maintenance-notice__contact:focus-visible {
  outline: 2px solid #69ead0;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body > .site-maintenance-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
  }

  .site-maintenance-notice__copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .site-maintenance-notice__contact {
    align-self: flex-start;
    max-width: 100%;
    flex-wrap: wrap;
    padding: 8px 10px;
  }
}

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

  .site-maintenance-notice__contact:hover {
    transform: none;
  }
}


/* On the Dashboard, keep the notice in normal flow so it cannot cover the page heading while scrolling. */
body.page-dashboard > .site-maintenance-notice {
  position: relative;
  top: auto;
}
