/*==============================
	Announcement Modal
	Shown once/day per user via inc/header.php.
	Colours/blur mirror .setup-warn + main.css glass cards.
==============================*/
.gr-ann-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 7, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gr-ann-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.gr-ann {
  position: relative;
  width: 100%;
  max-width: 520px;            /* PC: just enough to cover the content */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(150deg, rgba(235, 207, 129, 0.08) 0%, rgba(20, 17, 15, 0.96) 60%);
  border: 1px solid rgba(235, 207, 129, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}
.gr-ann-overlay--visible .gr-ann {
  transform: translateY(0) scale(1);
}

.gr-ann__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 5, 0.55);
  border: 1px solid rgba(235, 207, 129, 0.35);
  border-radius: 50%;
  color: rgba(235, 207, 129, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.gr-ann__close:hover {
  color: #EBCF81;
  background: rgba(8, 7, 5, 0.8);
}

.gr-ann__image {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
/* image-only announcement — round the bottom too */
.gr-ann--image-only .gr-ann__image {
  border-radius: 16px;
}

.gr-ann__body {
  padding: 24px 26px 26px;
}
.gr-ann__title {
  color: #EBCF81;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}
.gr-ann__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;       /* keep admin line breaks */
}
.gr-ann__text a {
  color: #EBCF81;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gr-ann__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 22px;
  background: #CFAF67;
  color: #14110F;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gr-ann__cta:hover {
  background: #EBCF81;
  color: #14110F;
  transform: translateY(-1px);
}

.gr-ann__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gr-ann__check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(235, 207, 129, 0.5);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.gr-ann__check:checked {
  background: #CFAF67;
  border-color: #CFAF67;
}
.gr-ann__check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #14110F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gr-ann__check-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

/* Mobile: nearly full-page with ~20px side gutters */
@media (max-width: 767.98px) {
  .gr-ann-overlay {
    padding: 20px;
  }
  .gr-ann {
    max-width: none;
    max-height: calc(100vh - 40px);
  }
  .gr-ann__body {
    padding: 20px 20px 22px;
  }
  .gr-ann__title {
    font-size: 19px;
  }
  .gr-ann__text {
    font-size: 14px;
  }
  .gr-ann__image {
    max-height: 50vh;
  }
}
