/* Shared Quietcation Letter popup component. */
html {
  scrollbar-gutter: stable;
}

html body.newsletter-modal-page #themesPanel {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem;
  background: rgba(7, 12, 10, .58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

html body.newsletter-modal-page #themesPanel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html body.newsletter-modal-page.modal-open {
  overflow: hidden;
}

html body #themesPanel .modal-card,
html body #directory-launch-modal .launch-modal__card {
  position: relative !important;
  box-sizing: border-box !important;
  width: min(600px, calc(100vw - 32px)) !important;
  max-width: 600px !important;
  padding: 34px 36px 30px !important;
  isolation: isolate;
  background: rgba(239, 235, 227, .98) !important;
}

html body #themesPanel .modal-card::before,
html body #directory-launch-modal .launch-modal__card::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E%3Cfilter id='n' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
  background-size: 512px 512px !important;
  mix-blend-mode: soft-light;
  opacity: .04;
}

html body #themesPanel .modal-card > *,
html body #directory-launch-modal .launch-modal__card > * {
  position: relative;
  z-index: 1;
}

html body #themesPanel .modal-close,
html body #directory-launch-modal .launch-modal__close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #15231c !important;
  display: grid !important;
  place-items: center !important;
  font: 300 26px/1 "Inter", Arial, sans-serif !important;
  opacity: .72 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html body #themesPanel .modal-close:hover,
html body #themesPanel .modal-close:focus-visible,
html body #directory-launch-modal .launch-modal__close:hover,
html body #directory-launch-modal .launch-modal__close:focus-visible {
  color: #15231c !important;
  opacity: 1 !important;
}

html body #themesPanel .modal-title,
html body #directory-launch-modal .launch-modal__title {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  box-sizing: border-box;
  margin: 0 auto 12px !important;
  color: #15231c !important;
  font-family: "larken", "Newsreader", Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  white-space: normal !important;
}

html body #themesPanel .qc-newsletter-intro,
html body #directory-launch-modal .qc-newsletter-intro {
  width: min(100%, 420px);
  box-sizing: border-box;
  max-width: 420px;
  margin: 0 auto 24px;
  color: rgba(21, 35, 28, .76);
  font: 350 17px/1.5 Newsreader, Georgia, serif;
  text-align: left;
}

html body #themesPanel .qc-newsletter-form,
html body #directory-launch-modal .qc-newsletter-form {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: left;
}

html body #themesPanel .qc-form-error,
html body #directory-launch-modal .qc-form-error {
  margin: 9px 0 0;
  color: #8a5f4a;
  font: 400 11px/1.45 Inter, Arial, sans-serif;
  letter-spacing: .01em;
}

html body #themesPanel .qc-newsletter-input[aria-invalid="true"],
html body #directory-launch-modal .qc-newsletter-input[aria-invalid="true"] {
  border-bottom-color: #8a5f4a;
}

html body #themesPanel .qc-newsletter-fields,
html body #directory-launch-modal .qc-newsletter-fields {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

html body #themesPanel .qc-newsletter-field,
html body #directory-launch-modal .qc-newsletter-field {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 0;
  border-bottom: 1px solid rgba(21, 35, 28, .46);
}

html body #themesPanel .qc-newsletter-field::before,
html body #directory-launch-modal .qc-newsletter-field::before {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(21, 35, 28, .58);
  font: 500 9px/1 Inter, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

html body #themesPanel .qc-newsletter-field:focus-within,
html body #directory-launch-modal .qc-newsletter-field:focus-within {
  border-bottom-color: rgba(21, 35, 28, .82);
}

html body #themesPanel .qc-newsletter-input,
html body #directory-launch-modal .qc-newsletter-input {
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 3px 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #15231c;
  font: 400 17px/1.2 Newsreader, Georgia, serif;
  outline: none;
}

html body #themesPanel .qc-newsletter-input:focus,
html body #directory-launch-modal .qc-newsletter-input:focus {
  border-color: transparent;
}

html body #themesPanel .qc-newsletter-input::placeholder,
html body #directory-launch-modal .qc-newsletter-input::placeholder {
  color: rgba(21, 35, 28, .46);
  font-family: Newsreader, Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  opacity: 1;
}

html body #themesPanel .qc-newsletter-submit,
html body #directory-launch-modal .qc-newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 32px;
  min-width: 104px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #173129;
  border-radius: 3px;
  background: #173129;
  color: #f5f1e8;
  font: 500 10px/1 Inter, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

html body #themesPanel .qc-newsletter-submit:hover,
html body #directory-launch-modal .qc-newsletter-submit:hover {
  opacity: .82;
}

html body #themesPanel .qc-newsletter-submit:disabled,
html body #directory-launch-modal .qc-newsletter-submit:disabled {
  cursor: default;
}

html body #themesPanel .qc-newsletter-form.is-submitting .qc-newsletter-submit:hover,
html body #themesPanel .qc-newsletter-form.is-complete .qc-newsletter-submit:hover,
html body #directory-launch-modal .qc-newsletter-form.is-submitting .qc-newsletter-submit:hover,
html body #directory-launch-modal .qc-newsletter-form.is-complete .qc-newsletter-submit:hover {
  opacity: 1;
}

html body #themesPanel .qc-newsletter-form.is-submitting .qc-submit-label,
html body #themesPanel .qc-newsletter-form.is-complete .qc-submit-label,
html body #directory-launch-modal .qc-newsletter-form.is-submitting .qc-submit-label,
html body #directory-launch-modal .qc-newsletter-form.is-complete .qc-submit-label {
  display: none;
}

html body #themesPanel .qc-submit-dots,
html body #directory-launch-modal .qc-submit-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 17px;
  color: #f5f1e8;
}

html body #themesPanel .qc-submit-dots > span,
html body #directory-launch-modal .qc-submit-dots > span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: qc-popup-newsletter-dot-pulse 1.15s ease-in-out infinite;
}

html body #themesPanel .qc-submit-dots > span:nth-child(2),
html body #directory-launch-modal .qc-submit-dots > span:nth-child(2) { animation-delay: .15s; }
html body #themesPanel .qc-submit-dots > span:nth-child(3),
html body #directory-launch-modal .qc-submit-dots > span:nth-child(3) { animation-delay: .3s; }

html body #themesPanel .qc-newsletter-form.is-submitting .qc-submit-dots,
html body #directory-launch-modal .qc-newsletter-form.is-submitting .qc-submit-dots {
  display: inline-flex;
}

html body #themesPanel .qc-submit-check,
html body #directory-launch-modal .qc-submit-check {
  display: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #f5f1e8;
}

html body #themesPanel .qc-newsletter-form.is-complete .qc-submit-check,
html body #directory-launch-modal .qc-newsletter-form.is-complete .qc-submit-check {
  display: block;
}

html body #themesPanel .qc-newsletter-frame,
html body #directory-launch-modal .qc-newsletter-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

html body #themesPanel .qc-newsletter-credit,
html body #directory-launch-modal .qc-newsletter-credit {
  margin: 10px 0 0;
  text-align: center;
}

html body #themesPanel .qc-newsletter-credit a,
html body #directory-launch-modal .qc-newsletter-credit a {
  color: rgba(21, 35, 28, .42);
  font: 400 8px/1 Inter, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes qc-popup-newsletter-dot-pulse {
  0%, 72%, 100% { opacity: .35; transform: scale(.78); }
  36% { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  html body #themesPanel .modal-card,
  html body #directory-launch-modal .launch-modal__card {
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: 520px !important;
    padding: 30px 24px 27px !important;
  }

  html body #themesPanel .qc-newsletter-intro,
  html body #directory-launch-modal .qc-newsletter-intro {
    width: 100%;
    max-width: 420px;
    margin-bottom: 22px;
    font-size: 19px;
    line-height: 1.5;
  }

  html body #themesPanel .modal-title,
  html body #directory-launch-modal .launch-modal__title {
    margin-bottom: 12px !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 520px) {
  html body #themesPanel .modal-card,
  html body #directory-launch-modal .launch-modal__card {
    padding: 30px 24px 27px !important;
  }

  html body #themesPanel .qc-newsletter-fields,
  html body #directory-launch-modal .qc-newsletter-fields {
    display: grid;
    gap: 8px;
  }

  html body #themesPanel .qc-newsletter-submit,
  html body #directory-launch-modal .qc-newsletter-submit {
    height: 36px;
  }

  html body #themesPanel .qc-newsletter-submit,
  html body #directory-launch-modal .qc-newsletter-submit {
    width: 100%;
  }
}

/* Final component guard: keeps the underline treatment ahead of legacy form rules. */
html body .qc-newsletter-field {
  position: relative !important;
  padding-top: 0 !important;
  border-bottom: 1px solid rgba(21, 35, 28, .46) !important;
  background: transparent !important;
}

html body .qc-newsletter-field::before {
  content: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  color: rgba(21, 35, 28, .58) !important;
  font: 500 9px/1 Inter, Arial, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

html body .qc-newsletter-input {
  height: 30px !important;
  padding: 3px 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .qc-newsletter-input::placeholder {
  color: rgba(21, 35, 28, .46) !important;
  opacity: 1 !important;
}

/* Final type parity across every popup variant. */
html body #themesPanel .qc-newsletter-credit a,
html body #directory-launch-modal .qc-newsletter-credit a {
  color: rgba(21, 35, 28, .42) !important;
  font: 500 8px/1 "Inter", Arial, sans-serif !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body #themesPanel .qc-newsletter-input,
html body #directory-launch-modal .qc-newsletter-input,
html body .qc-newsletter-input {
  font-family: "Newsreader", Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

html body #themesPanel .qc-newsletter-input::placeholder,
html body #directory-launch-modal .qc-newsletter-input::placeholder,
html body .qc-newsletter-input::placeholder {
  font-family: "Newsreader", Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

html body #themesPanel .qc-form-error,
html body #directory-launch-modal .qc-form-error {
  font-family: "Newsreader", Georgia, serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}
