/* ==========================================================================
   Admission Announcement Banner  (Boston Children's Hospital-style top bar)
   Full-width warm-amber bar pinned above the multicolor strip / header.
   Collapsible: collapses to a small re-expand tab. In-memory only (no storage).
   ========================================================================== */

.adm-banner {
  background: #F5A623;               /* warm, premium amber */
  color: #001B40;                    /* brand navy */
  font-family: 'Mulish', sans-serif; /* body font already in use */
  width: 100%;
  /* Smooth collapse via animatable grid row (1fr -> 0fr) */
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms ease;
}

.adm-banner.is-collapsed {
  grid-template-rows: 0fr;
}

/* Clip wrapper so padding/content are hidden as the row height animates to 0 */
.adm-banner__clip {
  overflow: hidden;
  min-height: 0;
}

.adm-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 40px;               /* comfortable but compact; matches .container padding */
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.adm-banner__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* keep text clear of the toggle button on the right */
  padding: 0 40px;
}

.adm-banner__line1 {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.1px;
}

.adm-banner__line2 {
  margin: 0;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.35;
}

.adm-banner__link {
  color: #001B40;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.adm-banner__link:hover,
.adm-banner__link:focus-visible {
  font-weight: 800;
}

/* Collapse control — real button, sits on the right like the reference × */
.adm-banner__toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #001B40;
  cursor: pointer;
  border-radius: 8px;
  line-height: 0;
}

.adm-banner__toggle svg {
  width: 20px;
  height: 20px;
}

.adm-banner__toggle:hover {
  background: rgba(0, 27, 64, 0.10);
}

.adm-banner__toggle:focus-visible {
  outline: 2px solid #001B40;
  outline-offset: 2px;
}

/* Re-expand tab — small amber pill fixed at the very top, hidden by default */
.adm-pill {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 16px;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: #F5A623;
  color: #001B40;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 27, 64, 0.18);
}

.adm-pill.is-visible {
  display: inline-flex;
}

.adm-pill:hover {
  background: #F4A118;
}

.adm-pill:focus-visible {
  outline: 2px solid #001B40;
  outline-offset: 2px;
}

.adm-pill__chevron {
  font-size: 12px;
  line-height: 1;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .adm-banner__inner {
    padding: 11px 14px;
  }
  .adm-banner__content {
    padding: 0 44px;                /* leave room for the 44px touch target */
  }
  .adm-banner__line1 {
    font-size: 14px;
  }
  .adm-banner__line2 {
    font-size: 12.5px;
  }
  .adm-banner__toggle {
    right: 6px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adm-banner {
    transition: none;
  }
}
