/* Newsletter sign-up pop-up and the confirm / unsubscribe pages. Uses the site's theme tokens.
   Lora and Inter are the same self-hosted files as the RSVP pages; browsers download them only
   when the pop-up or one of these pages actually shows text in them. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../rsvp/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../rsvp/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../rsvp/assets/fonts/lora-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.nl-pop {
  --nl-heading: "Lora", Georgia, "Times New Roman", serif;
  --nl-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: fixed;
  z-index: 1090;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  background: var(--bg-1);
  color: var(--text-0);
  box-shadow: var(--shadow-lg);
  font: 14px/1.55 var(--nl-body);
  animation: nl-pop-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nl-pop[hidden] { display: none; }
@keyframes nl-pop-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nl-pop-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--bg-3); color: var(--text-0); cursor: pointer;
}
.nl-pop-close svg { width: 16px; height: 16px; }
.nl-pop-close:hover { border-color: var(--border-gold); }
.nl-pop-body { display: grid; gap: 12px; padding: 20px 20px 16px; }
.nl-pop-top { display: grid; gap: 6px; padding-right: 46px; margin-bottom: 4px; }
.nl-pop-eyebrow { margin: 0; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.nl-pop h2 { margin: 0; color: var(--text-0); font: 500 24px/1.18 var(--nl-heading); letter-spacing: -0.01em; text-wrap: balance; }
.nl-pop-field { display: flex; flex-direction: column; gap: 6px; }
.nl-pop-field label { color: var(--text-1); font-size: 13px; font-weight: 600; }
.nl-pop-field label span { color: var(--text-2); font-weight: 500; }
.nl-pop-field label .nl-req { color: var(--gold); }
.nl-pop-field input {
  min-height: 46px; width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-3); color: var(--text-0); font: 15px var(--nl-body);
}
.nl-pop-field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-subtle); }
.nl-pop-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nl-pop-submit {
  width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--gold); color: var(--bg-0);
  font: 600 15px var(--nl-body); cursor: pointer;
}
.nl-pop-submit:hover { background: var(--gold-light); }
.nl-pop-submit:disabled { opacity: 0.6; cursor: progress; }
.nl-pop-no {
  justify-self: center; min-height: 36px; padding: 4px 10px; border: 0; background: none; color: var(--text-1);
  font: 13px var(--nl-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.nl-pop-error { margin: 0; color: var(--text-0); font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--gold-subtle); border: 1px solid var(--border-gold); }
.nl-pop-error[hidden] { display: none; }
.nl-pop-fine { margin: 2px -20px 0; padding: 12px 20px 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: 12px; line-height: 1.55; }
.nl-pop-fine a { color: var(--text-0); font-weight: 600; text-underline-offset: 2px; }
.nl-pop :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nl-pop-done { display: grid; gap: 8px; padding: 6px 0 4px; text-align: center; }
.nl-pop-done .nl-pop-tick { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 50%; background: var(--gold); color: var(--bg-0); }
.nl-pop-done .nl-pop-tick svg { width: 22px; height: 22px; }
.nl-pop-done strong { font: 500 24px var(--nl-heading); }
.nl-pop-done p { margin: 0; color: var(--text-1); }
.nl-pop-open .text-us-fab { visibility: hidden; }

@media (max-width: 600px) {
  .nl-pop {
    right: 0; bottom: 0; left: 0; width: auto; max-height: 80dvh;
    border-bottom: 0; border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nl-pop .nl-pop-name { display: none; }
  .nl-pop h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-pop { animation: none; }
}

/* Footer link: a button, shown only when the script is running. */
.footer-legal .footer-newsletter {
  padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 0.82rem; cursor: pointer;
  transition: color var(--transition);
}
.footer-legal .footer-newsletter:hover { color: var(--text-1); }
.footer-legal .footer-newsletter[hidden] { display: none; }

/* Contact form: optional, unticked newsletter box */
.form-newsletter { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 1.25rem; color: var(--text-1); font-size: 0.9rem; line-height: 1.55; cursor: pointer; }
.form-newsletter input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; accent-color: var(--gold); cursor: pointer; }

/* /newsletter-confirmed and /newsletter-unsubscribe */
.nl-page { --nl-heading: "Lora", Georgia, "Times New Roman", serif; --nl-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; padding: calc(var(--header-height) + 64px) var(--gutter) 96px; }
.nl-page-card { max-width: 560px; margin: 0 auto; padding: 32px 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-1); font-family: var(--nl-body); text-align: center; }
.nl-page-card .nl-pop-eyebrow { margin-bottom: 10px; }
.nl-page-card h1 { margin: 0 0 12px; color: var(--text-0); font: 500 clamp(32px, 5vw, 42px)/1.1 var(--nl-heading); letter-spacing: -0.015em; text-wrap: balance; }
.nl-page-card p { margin: 0 auto 18px; max-width: 42ch; color: var(--text-1); font-size: 15.5px; line-height: 1.65; }
.nl-page-card .btn { font-family: var(--nl-body); }
.nl-page-card [hidden] { display: none !important; }
.nl-page-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nl-page-card .nl-pop-submit { width: auto; padding: 0 24px; }
