.newsletter-note, .newsletter-fallback {
  margin-top: .5rem;
  font-size: .75rem;
  line-height: 1.5;
  color: #414851;
}
.newsletter-fallback { display: inline-flex; align-items: center; min-height: 32px; }
.newsletter-fallback[hidden], .newsletter-external [data-element="fields"] { display: none; }
.newsletter-external .newsletter-fallback { min-height: 44px; font-size: .875rem; }
.newsletter-errors { padding: 0; margin: .5rem 0; list-style: none; font-size: .875rem; }
.newsletter-errors:empty { display: none; }
.hero-newsletter [data-element="success"] { margin-top: .5rem; font-weight: 600; }
.hero-newsletter button:disabled { opacity: .7; cursor: wait; }
.newsletter-dialog {
  --entry-offset: .6rem;
  position: fixed;
  inset: 0;
  width: min(30rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  margin: auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 1.25rem 4rem rgb(16 22 28 / 18%);
}
.newsletter-dialog::backdrop { background: rgb(16 22 28 / 42%); }
html:has(.newsletter-dialog[open]) { overflow: hidden; }
.newsletter-close {
  position: absolute;
  z-index: 1;
  inset: .5rem .5rem auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}
.newsletter-close:hover { background: var(--wash); color: var(--ink); }
.newsletter-close:focus-visible { outline-offset: -3px; }
.newsletter-close span { font: 1.4rem/1 system-ui, sans-serif; }
.newsletter-dialog iframe { display: block; width: 100%; height: 25rem; max-height: calc(100dvh - 2rem); border: 0; }
@media (max-width: 540px) {
  .newsletter-dialog {
    --entry-offset: 1.25rem;
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
    max-height: calc(100dvh - 1rem);
    border-radius: 20px 20px 0 0;
  }
  .newsletter-dialog iframe { max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .newsletter-dialog {
    opacity: 0;
    transform: translateY(var(--entry-offset));
    transition: transform 180ms ease-out, opacity 150ms ease-out, display 180ms allow-discrete, overlay 180ms allow-discrete;
  }
  .newsletter-dialog[open] { opacity: 1; transform: none; }
  .newsletter-dialog::backdrop {
    opacity: 0;
    transition: opacity 160ms ease-out, display 180ms allow-discrete, overlay 180ms allow-discrete;
  }
  .newsletter-dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    .newsletter-dialog[open] { opacity: 0; transform: translateY(var(--entry-offset)); }
    .newsletter-dialog[open]::backdrop { opacity: 0; }
  }
}
.newsletter-embed { margin: 0; color: #191b1d; background: #fff; font: 400 1rem/1.5 Poppins, system-ui, sans-serif; }
.popup-signup { padding: clamp(1.5rem, 7vw, 2.25rem); }
.popup-signup h1 { max-width: 16ch; margin: 0; padding-right: 2.5rem; font-size: clamp(1.7rem, 7vw, 2.15rem); font-weight: 600; line-height: 1.14; letter-spacing: -.045em; }
.signup-intro { margin: .75rem 0 1.5rem; color: #4c5358; }
.popup-signup label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; }
.popup-signup input, .popup-signup button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1px solid #797f83;
  border-radius: 10px;
  font: inherit;
}
.popup-signup input { color: inherit; background: #fff; }
.popup-signup button { margin-top: .65rem; border-color: transparent; background: #202426; color: #fff; font-weight: 500; cursor: pointer; }
.popup-signup button:hover { background: #383e42; }
.popup-signup button:disabled { opacity: .75; cursor: wait; }
.popup-signup :focus-visible { outline: 2px solid #4a545a; outline-offset: 2px; }
.popup-signup .newsletter-note { margin: .875rem 0 0; }
.popup-signup [role="status"] { margin: 0; }
.popup-signup [role="status"]:not(:empty) { margin-top: .75rem; font-size: .875rem; }
.popup-signup [data-element="success"] { padding: 1rem; border-radius: 10px; background: #f1f3f3; font-weight: 500; }
.popup-signup:has([data-element="success"]) :is(.newsletter-note, .signup-intro) { display: none; }
.popup-signup:has([data-element="success"]) h1 { margin-bottom: 1rem; }

.cookie-banner, .cookie-settings {
  box-sizing: border-box;
  color: #202426;
  background: #fff;
  border: 1px solid #d8dadd;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgb(22 26 30 / 14%);
  font: 400 .875rem/1.5 Poppins, system-ui, sans-serif;
}
.cookie-banner {
  position: fixed;
  z-index: 15;
  inset: auto max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
  width: fit-content;
  max-width: min(53rem, calc(100% - 1.3rem));
  max-height: 55vh;
  overflow: auto;
  display: flex;
  align-items: center;
  gap: .65rem 1.15rem;
  margin-inline: auto;
  padding: .65rem .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 47ch; }
.cookie-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.cookie-banner .cookie-actions { flex-shrink: 0; }
.cookie-actions button {
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid #8c9093;
  border-radius: 30px;
  background: #fff;
  color: inherit;
  font: 500 .8125rem/1.3 Poppins, system-ui, sans-serif;
  cursor: pointer;
}
.cookie-actions button:hover { background: #f1f2f2; }
.cookie-actions .cookie-more { border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.cookie-settings {
  width: min(29rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin: auto;
  overflow: auto;
}
.cookie-settings h2 { margin: 0 0 .75rem; font-size: 1.45rem; line-height: 1.2; }
.cookie-settings p { margin: 0 0 .75rem; }
.cookie-settings label { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.cookie-settings input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #202426; }
.cookie-settings a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: .2em; }
.cookie-settings .cookie-actions { margin-top: .75rem; }
.cookie-settings::backdrop { background: rgb(16 22 28 / 42%); }
html:has(.cookie-settings[open]) { overflow: hidden; }
.cookie-footer-button {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding: 0;
  color: var(--home-muted, #414851);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .875rem;
  text-align: left;
  cursor: pointer;
}
.cookie-footer-button:hover { text-decoration: underline; text-underline-offset: .25em; }
:where(.cookie-banner, .cookie-settings, .cookie-footer-button):focus-visible,
:where(.cookie-banner, .cookie-settings) :focus-visible { outline: 2px solid #475463; outline-offset: 2px; }
html:has(.cookie-banner:not([hidden])) { scroll-padding-bottom: var(--cookie-space, 12rem); }
body:has(> .cookie-banner:not([hidden]))::after { content: ''; display: block; height: var(--cookie-space, 12rem); }
@media (max-width: 660px) {
  .cookie-banner { display: block; padding: .65rem .8rem; }
  .cookie-banner .cookie-actions { margin-top: .3rem; }
}
