/**
 * MPISD - Message Banner Block ("We Love Our Kids")
 * blocks/message-banner/style.css
 */

/* --- Block Root --- */
.mpisd-message-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  background-color: var(--color-tertiary);
  color: var(--color-text-inverse);
  isolation: isolate;
  /* Tint for the shared photo background: black at 30% keeps white copy readable on the yellow photo */
  --photo-bg-overlay-color: var(--color-black);
  --photo-bg-overlay: 0.3;
}

/* Used together with .mpisd-container, so only vertical padding is set here */
.mpisd-message-banner__content {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  text-align: center;
}

/* --- Typography --- */
/* Size / leading come from the shared .mpisd-h2-title-big class */
.mpisd-message-banner__title {
  color: var(--color-text-inverse);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* 36px / 40px on desktop, scaled down for smaller screens */
.mpisd-message-banner__text {
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
  font-family: var(--font-secondary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-20);
  line-height: var(--lh-20);
  color: var(--color-text-inverse);
  text-align: center;
}

.mpisd-message-banner__text p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* --- Tablet (md: 768px) --- */
@media (min-width: 768px) {
  .mpisd-message-banner {
    min-height: 460px;
  }

  .mpisd-message-banner__content {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .mpisd-message-banner__text {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
}

/* --- Desktop (lg: 992px) --- */
@media (min-width: 992px) {
  .mpisd-message-banner {
    min-height: clamp(480px, 38.5vw, 617px);
  }

  .mpisd-message-banner__title {
    margin-bottom: var(--space-xl);
  }

  /* 36px / 40px */
  .mpisd-message-banner__text {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}