/* =========================================================================
   unga-promo.css — UN General Assembly High-Level Week (22–28 Sep 2026):
   a once-per-session modal on the homepage with a floating re-open badge.
   Self-contained; uses site.css tokens with hard fallbacks. On-brand
   camel/bronze — never UN blue, this is our card, not theirs.
   Namespaced ung- so it cannot collide with legacy bundle styles.
   Modelled on usopen-promo.css, minus the ribbon (this instance is a card).
   ========================================================================= */

/* ── Modal ─────────────────────────────────────────────────────────────── */
.ung-scrim {
  position: fixed; inset: 0; z-index: 1000;
  /* deep dim rather than backdrop blur — a full-viewport backdrop-filter
     re-blurs the page every frame and was the dominant scroll-jank source */
  background: rgba(20, 14, 9, 0.84);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 420ms cubic-bezier(.16,1,.3,1);
}
.ung-scrim.is-open { opacity: 1; }

.ung-modal {
  position: relative;
  width: min(660px, 100%);
  max-height: min(88vh, 720px);
  max-height: min(86dvh, 720px); /* dvh keeps the close icon inside the visible mobile viewport */
  overflow-y: auto;
  background:
    radial-gradient(ellipse 700px 360px at 80% 0%, rgba(217,174,116,0.16), transparent 60%),
    #4D3826;
  border: 1px solid rgba(217,174,116,0.40);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  padding: 44px 48px 40px;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 520ms cubic-bezier(.16,1,.3,1), opacity 420ms ease;
}
.ung-scrim.is-open .ung-modal { transform: translateY(0) scale(1); opacity: 1; }

.ung-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(250,241,221,0.24);
  color: #F4EFE6; font-size: 15px; cursor: pointer;
  transition: border-color 220ms, color 220ms;
}
.ung-modal__close:hover { border-color: #D9AE74; color: #D9AE74; }
.ung-modal__close:focus-visible { outline: 2px solid #ECC58F; outline-offset: 2px; }

.ung-modal__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Outfit','Helvetica Neue',Arial,sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: #ECC58F;
}
.ung-modal__eyebrow::before { content: ""; width: 26px; height: 1px; background: #ECC58F; }
.ung-modal__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #ECC58F;
  box-shadow: 0 0 0 0 rgba(236,197,143,0.6);
  animation: ung-pulse 2.2s infinite;
}
@keyframes ung-pulse {
  0% { box-shadow: 0 0 0 0 rgba(236,197,143,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(236,197,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,197,143,0); }
}

.ung-modal__title {
  font-family: var(--font-display, Cormorant, Georgia, serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.06;
  letter-spacing: -0.014em; color: #FFFFFF;
  margin: 18px 0 0; text-wrap: balance;
}
.ung-modal__title em { font-style: italic; color: #ECC58F; }

.ung-modal__lede {
  font-family: 'Outfit','Helvetica Neue',Arial,sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.55; color: #F4EFE6;
  margin: 16px 0 0; max-width: 52ch;
}

/* compact countdown */
.ung-count { display: flex; align-items: center; gap: 8px; margin: 26px 0 4px; flex-wrap: wrap; }
.ung-count__cell {
  background: rgba(20,14,9,0.4); border: 1px solid rgba(250,241,221,0.18);
  padding: 9px 13px 7px; min-width: 58px; text-align: center;
}
.ung-count__num {
  font-family: var(--font-display, Cormorant, Georgia, serif); font-size: 26px; line-height: 1;
  color: #FFFFFF; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.ung-count__lab {
  font-family: 'Outfit',Arial,sans-serif; font-size: 8px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #E6DCCB; margin-top: 6px;
}
.ung-count__hint {
  font-family: 'Outfit',Arial,sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #D9AE74; margin-left: 6px;
}

/* chips */
.ung-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; }
.ung-chip {
  font-family: 'Outfit',Arial,sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; color: #F4EFE6;
  border: 1px solid rgba(250,241,221,0.18); padding: 5px 10px; white-space: nowrap;
}
.ung-chip--key { color: #D9AE74; border-color: rgba(217,174,116,0.45); }

.ung-cta { display: flex; align-items: center; gap: 18px; margin: 30px 0 0; flex-wrap: wrap; }
.ung-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border: 1px solid #D9AE74;
  background: #D9AE74; color: #2A1E12;
  font-family: 'Outfit',Arial,sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius, 2px); cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(160,106,56,0.5);
  transition: transform 180ms ease;
}
.ung-btn:active { transform: translateY(1px); }
.ung-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.ung-later {
  background: transparent; border: 0; cursor: pointer;
  font-family: 'Outfit',Arial,sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: #E6DCCB;
  transition: color 200ms;
}
.ung-later:hover { color: #FFFFFF; }

@media (max-width: 560px) {
  .ung-scrim { padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .ung-modal { padding: 30px 20px 24px; max-height: 80vh; max-height: 80dvh; }
  .ung-modal__close {
    top: 10px; right: 10px; width: 42px; height: 42px; z-index: 2;
    background: rgba(20,14,9,0.55); font-size: 17px;
  }
  .ung-modal__eyebrow { max-width: calc(100% - 44px); }
  .ung-modal__title { font-size: 24px; }
  .ung-modal__lede { font-size: 14px; margin-top: 12px; }
  .ung-count { margin-top: 18px; }
  .ung-count__cell { min-width: 48px; padding: 8px 8px 6px; }
  .ung-chips { margin-top: 14px; }
  .ung-cta { margin-top: 20px; gap: 12px; }
  .ung-btn { height: 46px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ung-scrim, .ung-modal, .ung-badge { transition: none; }
  .ung-modal__pulse, .ung-badge__dot { animation: none; }
}

/* ── Floating re-open badge (bottom-right; the concierge cue is bottom-left) ── */
.ung-badge {
  /* sits ABOVE the concierge chat button (bottom:24 + 52px tall) — never under it */
  position: fixed; right: 28px; bottom: 92px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px;
  background: #4D3826; border: 1px solid rgba(217,174,116,0.5);
  color: #FFFFFF; cursor: pointer;
  font-family: 'Outfit',Arial,sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 14px 36px -10px rgba(0,0,0,0.55);
  border-radius: var(--radius, 2px);
  transform: translateY(20px); opacity: 0;
  transition: transform 520ms cubic-bezier(.16,1,.3,1), opacity 420ms, border-color 220ms, color 220ms;
}
.ung-badge.is-visible { transform: translateY(0); opacity: 1; }
.ung-badge:hover { border-color: #ECC58F; color: #ECC58F; }
.ung-badge:focus-visible { outline: 2px solid #ECC58F; outline-offset: 3px; }
.ung-badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ECC58F;
  box-shadow: 0 0 0 0 rgba(236,197,143,0.6);
  animation: ung-pulse 2.2s infinite;
}
.ung-badge__num { color: #ECC58F; }
@media (max-width: 720px) { .ung-badge { right: 16px; bottom: calc(148px + env(safe-area-inset-bottom, 0px)); } }
