/* Seasonal banner — see js/banner.js. Scoped so it can drop into the real
   site stylesheet later without collisions. */

.seasonal-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.9rem 3rem;
  text-align: center;
  color: #fff;
  background-color: var(--banner-accent, #2d5a3d);
  background-image: linear-gradient(
    120deg,
    color-mix(in srgb, var(--banner-accent, #2d5a3d) 100%, #000 12%),
    var(--banner-accent, #2d5a3d)
  );
  background-size: cover;
  background-position: center;
}

/* Once real artwork loads, a scrim keeps the copy readable over any photo. */
.seasonal-banner--has-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
}

.seasonal-banner__inner {
  position: relative; /* above the scrim */
  z-index: 1;
}

.seasonal-banner__headline {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.seasonal-banner__sub {
  margin: 0.2rem 0 0;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.seasonal-banner__dismiss {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  z-index: 1;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  opacity: 0.75;
}

.seasonal-banner__dismiss:hover,
.seasonal-banner__dismiss:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Remembrance Day is a commemoration, not a promotion — no festive treatment. */
.seasonal-banner--remembrance {
  background-image: none;
  font-family: Georgia, 'Times New Roman', serif;
}
