/* ============================================================
   NOTICE POPUP — site-wide closable popup
   Loaded on every public page via base.html.
   Scoped under .ntp-* to avoid colliding with anything else.
   ============================================================ */

.ntp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.22,.61,.36,1);
}
.ntp-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ntp-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ntp-backdrop.is-open .ntp-card {
  transform: translateY(0) scale(1);
}

/* Top accent bar */
.ntp-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #F27A1A 0%, #0F2A44 100%);
  flex-shrink: 0;
}

.ntp-priority-strip {
  padding: 8px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #F1F5F9;
}
.ntp-priority-strip--normal { display: none; }
.ntp-priority-strip--low    { display: none; }
.ntp-priority-strip--high   { background: rgba(245, 158, 11, 0.10); color: #B45309; }
.ntp-priority-strip--urgent { background: rgba(239, 68, 68, 0.10); color: #B91C1C; }

/* Image — optional */
.ntp-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F4F6F8;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.ntp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ntp-body {
  padding: 28px 32px 24px;
  overflow-y: auto;
}

.ntp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F27A1A;
  margin-bottom: 12px;
}
.ntp-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: #F27A1A;
}

.ntp-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #0F2A44;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.ntp-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ntp-date svg { width: 13px; height: 13px; }

.ntp-content {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 6px;
}
.ntp-content p { margin: 0 0 0.85em; }
.ntp-content p:last-child { margin-bottom: 0; }
.ntp-content ul, .ntp-content ol { margin: 8px 0; padding-left: 22px; }
.ntp-content a { color: #F27A1A; text-decoration: underline; }
.ntp-content strong { color: #0F2A44; font-weight: 600; }

.ntp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 32px 26px;
  border-top: 1px solid #F1F5F9;
}

.ntp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #F27A1A;
  color: #FFFFFF;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.22,.61,.36,1);
  border: 2px solid #F27A1A;
}
.ntp-cta:hover {
  background: #C95F0E;
  border-color: #C95F0E;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(242, 122, 26, 0.30);
  color: #FFFFFF;
  text-decoration: none;
}
.ntp-cta svg { width: 13px; height: 13px; transition: transform 0.25s cubic-bezier(.22,.61,.36,1); }
.ntp-cta:hover svg { transform: translateX(3px); }

.ntp-dismiss {
  background: transparent;
  border: 0;
  color: #94A3B8;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(.22,.61,.36,1);
}
.ntp-dismiss:hover {
  background: #F1F5F9;
  color: #475569;
}

/* X close button (top right) */
.ntp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 0;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: all 0.2s cubic-bezier(.22,.61,.36,1);
}
.ntp-close:hover {
  background: #0F2A44;
  color: #FFFFFF;
  transform: rotate(90deg);
}
.ntp-close svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .ntp-body { padding: 24px 22px 18px; }
  .ntp-footer { padding: 16px 22px 22px; }
  .ntp-title { font-size: 19px; }
  .ntp-cta { width: 100%; justify-content: center; }
  .ntp-dismiss { width: 100%; text-align: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ntp-backdrop, .ntp-card { transition: none !important; }
}
