/* Announcement popup — matches the updated direction in the client feedback doc:
   a four-photo row above a blue panel with two campus apply buttons. */

.mesa-popup {
  --mesa-popup-blue: #1e74b8;
  --mesa-popup-yellow: #fade2d;

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.45);
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mesa-popup *,
.mesa-popup *::before,
.mesa-popup *::after {
  box-sizing: border-box;
}

/* The white frame and the gutters between photos are the same 4px of white,
   so one padded, gapped container produces both. */
.mesa-popup__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 0.49 of the viewport in the mockup, floored so it stays usable when narrow. */
  width: clamp(320px, 49vw, 720px);
  max-height: 100%;
  padding: 4px;
  background-color: #fff;
  overflow: auto;
}

/* ---------- Photo row ---------- */

.mesa-popup__photos {
  display: flex;
  gap: 4px;
  min-height: 0;
  /* 0.205 of the dialog width in the mockup. */
  height: clamp(84px, 10vw, 148px);
}

.mesa-popup__photo {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

/* ---------- Blue panel ---------- */

.mesa-popup__panel {
  padding: clamp(14px, 1.6vw, 24px) clamp(16px, 2.2vw, 32px);
  background-color: var(--mesa-popup-blue);
  color: #fff;
  text-align: center;
}

.mesa-popup__headline {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 41px);
  font-weight: 800;
  line-height: 1.15;
}

.mesa-popup__headline-highlight {
  color: var(--mesa-popup-yellow);
}

.mesa-popup__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 58px);
  margin: clamp(14px, 1.9vw, 28px) 0;
}

.mesa-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 12vw, 174px);
  min-height: clamp(44px, 4vw, 57px);
  padding: 8px 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background-color: var(--mesa-popup-yellow);
  color: var(--mesa-popup-blue);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.mesa-popup__cta:hover {
  filter: brightness(0.94);
}

.mesa-popup__footline {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Not in the mockup — added so the popup can be dismissed by keyboard and
   pointer without relying on the overlay. */
.mesa-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mesa-popup__close:hover {
  background-color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  .mesa-popup {
    padding: 12px;
  }

  .mesa-popup__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .mesa-popup__cta {
    width: 100%;
    max-width: 260px;
  }
}

