/* An independent, non-modal announcement below the site's fixed navigation. */
.event-notice {
  --event-notice-nav-height: 60px;
  position: fixed;
  z-index: 1500;
  top: calc(var(--event-notice-nav-height) + 16px);
  right: max(20px, env(safe-area-inset-right));
  width: min(370px, calc(100vw - 40px));
  max-height: calc(100dvh - var(--event-notice-nav-height) - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(14, 58, 90, 0.1);
  border-radius: 20px;
  background: #fffdf9;
  color: #0e3a5a;
  box-shadow: 0 14px 40px rgba(8, 26, 44, 0.16), 0 2px 8px rgba(8, 26, 44, 0.05);
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.event-notice[hidden] {
  display: none;
}

.event-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.event-notice__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0e3a5a;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease;
}

.event-notice__close:hover {
  background: rgba(14, 58, 90, 0.06);
}

.event-notice__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 30px 12px 0;
  color: #9b440b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-notice__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f47c2c;
}

.event-notice__title {
  margin: 0 0 10px;
  color: #0e3a5a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.event-notice__description {
  margin: 0 0 16px;
  color: #4d6170;
  font-size: 13px;
  line-height: 1.65;
}

.event-notice__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0e3a5a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 160ms ease;
}

.event-notice__link:hover {
  background: #174f76;
  color: #fff;
}

.event-notice__close:focus-visible,
.event-notice__link:focus-visible {
  outline: 3px solid #f47c2c;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .event-notice {
    top: calc(var(--event-notice-nav-height) + 12px);
    right: max(12px, env(safe-area-inset-right));
    width: min(370px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--event-notice-nav-height) - 24px);
    padding: 16px;
    border-radius: 16px;
  }

  .event-notice__eyebrow {
    margin-bottom: 8px;
  }

  .event-notice__title {
    font-size: 18px;
  }

  .event-notice__description {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
}

@media (max-width: 360px) {
  .event-notice__title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-notice,
  .event-notice__close,
  .event-notice__link {
    transition: none;
    transform: none;
  }
}
