/* Shared shell signup (also on Kadence content pages) and scoped Bob Go contrast. */
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)),.tw247-newsletter-dialog .tw247-newsletter-signup{box-sizing:border-box;width:min(100%,530px);min-width:0;margin:0;padding:clamp(16px,2vw,26px);border:1px solid #30485f;border-radius:14px;background:linear-gradient(145deg,#102339,#0b1422 68%);color:#e8f4ff;flex:0 1 530px}
.tw247-newsletter-signup h2{font-size:clamp(20px,2.4vw,28px);font-weight:700;line-height:1.2;color:#f5faff!important;margin:7px 0 9px!important}.tw247-newsletter-signup p{color:#c4d6e7!important;line-height:1.5;margin:6px 0 12px!important}.tw247-newsletter-signup .tw247-newsletter-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#56ddfa!important}.tw247-newsletter-signup .tw247-newsletter-note{font-size:12px}.tw247-newsletter-signup a{color:#66dffc!important;text-decoration:underline}.tw247-newsletter-signup :is(label,legend){color:#e8f4ff!important}.tw247-newsletter-signup :is(input[type=email],input[type=text],input[type=tel],select){box-sizing:border-box;max-width:100%;width:100%;background:#101b2b!important;color:#f5faff!important;border:1px solid #5a7187!important;border-radius:7px;padding:10px!important;min-height:42px}.tw247-newsletter-signup input::placeholder{color:#abc0d2!important;opacity:1}.tw247-newsletter-signup :is(input[type=submit],button[type=submit]){background:linear-gradient(100deg,#19d4ee,#54bafa)!important;color:#081423!important;font-weight:800;border:0;border-radius:7px;min-height:44px;cursor:pointer;max-width:100%;white-space:normal}.tw247-newsletter-signup .mailpoet_form{max-width:100%;box-sizing:border-box}.tw247-newsletter-signup .mailpoet_validate_success{color:#86efac!important}.tw247-newsletter-signup .mailpoet_validate_error{color:#fda4af!important}
.tw247-newsletter-dialog{box-sizing:border-box;position:fixed;width:min(92vw,570px);max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;padding:32px 16px 16px;border:1px solid #36b8df;border-radius:16px;background:#080f1e;color:#e8f4ff;box-shadow:0 20px 90px #000b;margin:auto}.tw247-newsletter-dialog:not([open]){display:none!important}.tw247-newsletter-dialog::backdrop{background:#020617b8}.tw247-newsletter-dialog .tw247-newsletter-signup{width:100%;border:0;padding:10px 12px;background:transparent}.tw247-newsletter-close{position:absolute;top:5px;right:8px;width:36px;height:36px;display:grid;place-items:center;font-size:26px;padding:0;background:#182b40;color:#fff;border:1px solid #52677b;border-radius:8px;cursor:pointer}.tw247-newsletter-dismiss{display:block;margin:10px auto 0;padding:9px 16px;color:#c4d6e7;background:transparent;border:1px solid #52677b;border-radius:7px;cursor:pointer}.tw247-newsletter-dialog :focus-visible,.tw247-newsletter-signup :focus-visible{outline:2px solid #65dafa;outline-offset:3px}
@media(max-width:860px){.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)){width:100%;flex:0 1 auto}}
/* Keep Bob Go's rendered controls and results intact, using a readable light widget inside a dark frame. */
.tw247-bobgo-track{box-sizing:border-box;width:min(100%,920px);margin:24px auto;padding:clamp(12px,3vw,28px);border:1px solid #334b63;border-radius:12px;background:#f8fafc;color:#152338;color-scheme:light;overflow-wrap:anywhere;min-width:0}
.tw247-bobgo-track :is(h1,h2,h3,h4,h5,h6,p,label,legend,span,small,strong,td,th,li){color:#152338!important}.tw247-bobgo-track :is(input:not([type=submit]):not([type=button]),select,textarea){box-sizing:border-box;color:#152338!important;background:#fff!important;border:1px solid #94a3b8!important;min-height:44px;max-width:100%;padding:8px 12px;border-radius:6px}.tw247-bobgo-track input::placeholder{color:#526479!important;opacity:1}.tw247-bobgo-track :is(button,input[type=submit],input[type=button]){color:#081423!important;background:#38c6ec!important;border:1px solid #1686aa!important;border-radius:6px;min-height:40px;padding:8px 16px;cursor:pointer}.tw247-bobgo-track a{color:#075985!important}.tw247-bobgo-track iframe{max-width:100%;border:0}.tw247-bobgo-track :focus-visible{outline:2px solid #0369a1;outline-offset:2px}.tw247-bobgo-track :is(table,form){max-width:100%}.tw247-bobgo-track table{display:block;overflow-x:auto}

/* NEXUS footer newsletter: landscape layout, isolated from the subscription dialog. */
.nx-shell-footer .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) {
  width: min(100%, 760px);
  flex: 1 1 760px;
  max-width: 760px;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 12px;
}
.nx-shell-footer .nx-footer-hero > :first-child { flex: 0 1 38%; min-width: 0; }
.nx-shell-footer .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) h2 { margin: 4px 0 5px !important; font-size: clamp(19px, 2vw, 25px); }
.nx-shell-footer .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) p { margin: 4px 0 8px !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form { width: 100%; min-width: 0; }
/* Preserve the form's own artwork, but size it for a landscape card and darken it for legibility. */
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form :is(.mailpoet_form, [id^="mailpoet_form_"]) {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important;
  height: auto !important; min-height: 0 !important; margin: 0 !important;
  background-position: center center !important; background-size: cover !important;
  border-radius: 8px;
}
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form > :is(.mailpoet_form, [id^="mailpoet_form_"]) {
  padding: 12px 16px !important; box-shadow: inset 0 0 0 1000px rgba(8,18,32,.72);
}
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important;
}
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form > * { flex: 0 0 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form > :is(.mailpoet_paragraph, .mailpoet_form_column):has(input[type="email"]):not(:has(input[type="submit"],button[type="submit"])) { flex: 1 1 190px; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form > :is(.mailpoet_paragraph, .mailpoet_form_column):has(input[type="submit"],button[type="submit"]):not(:has(input[type="email"])) { flex: 0 1 145px; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .mailpoet_paragraph { margin: 0 0 4px !important; padding-block: 0 !important; min-width: 0; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form :is(h1,h2,h3,h4) { font-size: 18px !important; line-height: 1.25 !important; margin: 0 0 5px !important; color: #f5faff !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form :is(input[type="email"],input[type="submit"],button[type="submit"]) { width: 100% !important; min-height: 44px; margin: 0 !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-note { margin: 7px 0 0 !important; font-size: 11px; }
@media (max-width: 860px) {
  .nx-shell-footer .nx-footer-hero > :first-child { flex: 0 1 auto; }
  .nx-shell-footer .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) { width: 100%; max-width: none; flex: 0 1 auto; }
}
@media (max-width: 480px) {
  .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form > :is(.mailpoet_paragraph,.mailpoet_form_column):has(input[type="email"],input[type="submit"],button[type="submit"]) { flex: 1 1 100%; }
  .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form > :is(.mailpoet_form,[id^="mailpoet_form_"]) { padding: 10px !important; }
}

/* 0.9.9.8: compact footer only. Security widget stays in its original form and DOM. */
.nx-shell-footer .nx-footer-hero { padding-block: 14px 12px; gap: 16px; }
.nx-shell-footer .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) { padding: 9px 12px; container-type: inline-size; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) :is(h2,p) { margin-block: 2px 4px !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-kicker { line-height: 1.2; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form > :is(.mailpoet_form,[id^="mailpoet_form_"]) { padding: 6px 10px !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form form { gap: 4px 8px; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .mailpoet_paragraph { margin: 0 !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form :is(h1,h2,h3,h4) { margin: 0 0 3px !important; font-size: 17px !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form :is(input[type="email"],input[type="submit"],button[type="submit"]) { min-height: 42px; padding-block: 7px !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-note { margin: 4px 0 0 !important; line-height: 1.3; }
/* Keep the submit/challenge together in their actual MailPoet column. Flex order is
   deterministic even when MailPoet uses nested columns or hidden validation rows. */
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-layout { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 4px !important; align-items: stretch !important; min-width: 0; width: 100% !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-layout > * { order: var(--tw247-verify-order,0) !important; flex: 0 0 auto !important; min-width: 0; max-width: 100%; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-layout > .tw247-compact-verify-submit { align-self: stretch !important; margin-block: 0 !important; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-layout > .tw247-compact-verify-widget { align-self: end !important; text-align: right; margin: 0 !important; padding-block: 0 !important; max-width: 100%; }
.nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-widget :is(.cf-turnstile, .cf-turnstile-container) { margin-block: 0 !important; }
/* Only pair fields when both are separate direct children of the same container.
   Explicit grid placement prevents a challenge from occupying the submit row. */
@container (min-width: 510px) {
 .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-layout.tw247-compact-verify-paired { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(300px,46%); align-items: center !important; }
 .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-paired > * { grid-column: 1 / -1; }
 .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-paired > .tw247-compact-verify-email { grid-column: 1; }
 .nx-footer-hero> .tw247-newsletter-signup:where(:not(.tw247-newsletter-popup-active)) .tw247-newsletter-form .tw247-compact-verify-paired > :is(.tw247-compact-verify-submit,.tw247-compact-verify-widget) { grid-column: 2; }
}
@media (max-width: 860px) {
 .nx-shell-footer .nx-footer-hero { gap: 10px; padding-block: 12px; }
}

/* 0.9.10.13: same-node top-layer newsletter popup. MailPoet remains the form
   owner. These rules do not affect the footer, native validation or honeypots. */
#tw247-newsletter-panel.tw247-newsletter-popup-active {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box; display: block; min-width: 0; height: max-content; flex: none;
  width: min(520px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 42px 28px 18px; overflow-y: auto; overflow-x: hidden;
  border: 1px solid #315970; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, #15354a 0%, #101d2c 37%, #0a1422 76%);
  color: #e8f4ff; color-scheme: dark; box-shadow: 0 24px 90px #000c;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active::backdrop { background: rgba(2,6,23,.76); }
#tw247-newsletter-panel.tw247-newsletter-popup-active > .tw247-newsletter-kicker {
  font-size: 11px; letter-spacing: .12em; line-height: 1.4; margin: 0 0 9px !important;
  text-align: center; padding-inline: 12px; color: #67e8f9 !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active > h2 {
  font-size: clamp(25px, 5vw, 32px) !important; line-height: 1.15 !important;
  text-align: center; margin: 0 0 10px !important; font-weight: 800;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active > h2 + p {
  text-align: center; font-size: 14px; line-height: 1.55; margin: 0 auto 18px !important;
  max-width: 38ch;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form { width: 100%; min-width: 0; margin: 0; }
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(.mailpoet_form, div[id^="mailpoet_form_"], form[id^="mailpoet_form_"]) {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important;
  min-width: 0 !important; min-height: 0 !important; height: auto !important;
  margin: 0 !important; padding: 0 !important; background: transparent !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form form {
  box-sizing: border-box; width: 100% !important; max-width: none !important;
  min-width: 0 !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; background: transparent !important;
  text-align: left;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(.mailpoet_form_columns,.mailpoet_form_column,.mailpoet_paragraph) {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important;
  min-width: 0 !important; min-height: 0 !important; height: auto !important;
  flex-basis: auto !important; margin: 0 0 8px !important; padding: 0 !important;
  float: none !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form .mailpoet_form_columns:not([hidden]) {
  flex-direction: column !important; flex-wrap: nowrap !important; gap: 0 !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(h1,h2,h3,h4,.mailpoet_heading) {
  font-size: 15px !important; line-height: 1.35 !important; font-weight: 600 !important;
  text-align: center !important; margin: 0 0 10px !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(label,legend) { font-size: 13px; line-height: 1.4; }
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(input[type="email"],input[type="text"],input[type="tel"],select):not([hidden]) {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important;
  min-height: 48px !important; padding: 12px 14px !important; margin: 0 !important;
  border: 1px solid #4a677e !important; border-radius: 9px !important;
  background: #0d1928 !important; font-size: 16px !important; line-height: 1.4;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(input[type="submit"],button[type="submit"]) {
  box-sizing: border-box; display: block; width: 100% !important; max-width: 100% !important;
  min-height: 48px !important; padding: 12px 14px !important; margin: 0 !important;
  border: 0 !important; border-radius: 9px !important; font-size: 15px !important; line-height: 1.4;
  background: linear-gradient(100deg,#22d3ee,#67c7fa) !important; color: #081423 !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(input[type="submit"],button[type="submit"]):disabled { cursor: not-allowed; opacity: .6; }
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form .tw247-compact-verify-layout {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  flex-wrap: nowrap !important; gap: 0 !important; width: 100% !important; min-width: 0;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form .tw247-compact-verify-layout > * {
  order: var(--tw247-verify-order,0) !important; flex: 0 0 auto !important; max-width: 100%; min-width: 0;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form .tw247-compact-verify-widget {
  align-self: center !important; text-align: center !important; max-width: 100%;
  padding: 0 !important; margin: 3px 0 8px !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form :is(.cf-turnstile,.cf-turnstile-container,.cf-turnstile-wrapper) {
  max-width: 100%; margin-inline: auto !important; text-align: center;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-form iframe[src*="challenges.cloudflare.com"] { max-width: 100%; }
#tw247-newsletter-panel.tw247-newsletter-popup-active > .tw247-newsletter-note {
  text-align: center; font-size: 12px; line-height: 1.5; margin: 10px 0 0 !important;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-close {
  top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  background: #15273a !important; color: #e8f4ff !important; border: 1px solid #3d586e !important;
  border-radius: 9px; padding: 0; font-size: 24px; line-height: 1; box-shadow: none;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-dismiss {
  display: block; margin: 8px auto 0; padding: 8px 18px; min-height: 40px;
  background: transparent !important; color: #afc5d8 !important; border: 0 !important;
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; box-shadow: none;
}
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-close:hover { border-color: #67e8f9 !important; color: #67e8f9 !important; }
#tw247-newsletter-panel.tw247-newsletter-popup-active .tw247-newsletter-dismiss:hover { color: #67e8f9 !important; }
@media (max-width: 480px) {
  #tw247-newsletter-panel.tw247-newsletter-popup-active { padding: 44px 14px 12px; }
  #tw247-newsletter-panel.tw247-newsletter-popup-active > h2 + p { margin-bottom: 14px !important; }
}
@media (max-height: 600px) {
  #tw247-newsletter-panel.tw247-newsletter-popup-active { padding-block: 40px 10px; }
  #tw247-newsletter-panel.tw247-newsletter-popup-active > h2 + p { margin-bottom: 10px !important; }
}
/* Reserve the standard 300px challenge width on 320px phones. */
@media (max-width: 360px) {
  #tw247-newsletter-panel.tw247-newsletter-popup-active { width: calc(100vw - 8px); max-width: calc(100vw - 8px); padding-inline: 5px; }
}

/* The single form never leaves its footer parent. Hide popup-only controls in the normal footer. */
#tw247-newsletter-panel:not(.tw247-newsletter-popup-active) > :is(.tw247-newsletter-close,.tw247-newsletter-dismiss),
#tw247-newsletter-panel > :is(.tw247-newsletter-close,.tw247-newsletter-dismiss)[hidden] {display:none!important;}
