/* =========================
   The Dallas Express - Listmonk Public Pages (Scoped)
   - Dramatic redesign ONLY on signup page
   - Simple/narrow layout for login/manage pages
   Paste into: Settings > Appearance > Public > Custom CSS
   ========================= */

:root {
  --dx-navy: #0b1f4d;
  --dx-navy-2: #123b8a;
  --dx-text: #0f172a;
  --dx-muted: #64748b;
  --dx-line: #dbe3ef;
  --dx-bg: #edf2fb;
  --dx-card: #ffffff;
  --dx-soft: #f6f9ff;
  --dx-success: #0f766e;
  --dx-shadow: 0 18px 50px rgba(11, 31, 77, 0.14);
  --dx-radius-xl: 22px;
  --dx-radius-lg: 16px;
  --dx-radius-md: 12px;
}

/* Page background (all public pages) */
html, body {
  background:
    radial-gradient(circle at 10% 0%, rgba(18,59,138,0.10), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(11,31,77,0.10), transparent 42%),
    var(--dx-bg) !important;
  color: var(--dx-text);
}

/* Base shell (all pages) */
.container.wrap {
  width: calc(100% - 16px);
  margin: 14px auto 12px auto !important;
  border-radius: 18px;
  overflow: hidden;
}

/* Shared header */
.header {
  margin: 0 !important;
  padding: 16px 18px 14px 18px !important;
  border-bottom: 1px solid var(--dx-line) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,255,0.92));
}

.header .logo img {
  max-width: 320px !important;
  width: auto;
  height: auto;
}

.dx-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid #d5e1f5;
  background: #f5f9ff;
  color: #38527e;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

/* Shared footer branding */
footer.container {
  margin: 10px auto 24px auto !important;
  text-align: center;
  color: #6b7a95 !important;
  font-size: 0.88rem !important;
  line-height: 1.3;
}
footer.container a { display: none !important; }
footer.container span {
  color: var(--dx-navy);
  font-weight: 800;
}

/* Shared form controls (safe for signup + login) */
.form p { margin: 0 0 12px 0; }

.form p > label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.2;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100% !important;
  min-height: 54px;
  border-radius: 14px !important;
  border: 1px solid #cfd9ea !important;
  background: #fbfdff !important;
  color: #0f172a !important;
  padding: 12px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 2px rgba(15,23,42,0.03) !important;
  font-size: 1rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input::placeholder { color: #94a3b8; }

input:focus,
select:focus {
  outline: none !important;
  border-color: #1d4ed8 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12) !important;
}

.form .nonce { display: none !important; }

.button {
  background: linear-gradient(180deg, #123b8a 0%, #0b1f4d 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  min-width: 180px !important;
  padding: 14px 20px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1.1;
  box-shadow: 0 10px 20px rgba(11,31,77,0.22);
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.button:hover {
  background: linear-gradient(180deg, #17479f 0%, #0d275d 100%) !important;
  color: #fff !important;
  filter: saturate(1.02);
  box-shadow: 0 12px 24px rgba(11,31,77,0.28);
}

.button:active { transform: translateY(1px); }

.form .right {
  margin: 0 !important;
  text-align: left !important;
}

.form .right a,
.form p > a {
  color: #27487f;
}

/* =========================================================
   SIGNUP PAGE (dx-page-signup) — Dramatic redesign
   ========================================================= */

body.dx-page-signup .container.wrap {
  max-width: 1180px !important;
  margin: 28px auto 12px auto !important;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(11,31,77,0.06);
  border-radius: 24px;
  box-shadow: var(--dx-shadow);
  padding: 0 !important;
  overflow: hidden;
}

body.dx-page-signup .header {
  padding: 22px 30px 18px 30px !important;
}

body.dx-page-signup .wrap > section {
  padding: 28px 30px 32px 30px;
}

/* We replace original H2 with custom hero in JS */
body.dx-page-signup .wrap > section > h2 {
  margin: 0 0 14px 0;
}

/* New shell */
body.dx-page-signup .dx-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

/* Hero panel */
body.dx-page-signup .dx-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.12), transparent 35%),
    linear-gradient(160deg, #0b1f4d 0%, #123b8a 100%);
  color: #fff;
  border-radius: var(--dx-radius-xl);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(11, 31, 77, 0.28);
  position: sticky;
  top: 18px;
}

body.dx-page-signup .dx-hero .dx-eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

body.dx-page-signup .dx-hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(1.9rem, 2.2vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.dx-page-signup .dx-hero p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
  font-size: 1rem;
}

body.dx-page-signup .dx-hero .dx-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: grid;
  gap: 10px;
}

body.dx-page-signup .dx-hero .dx-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.35;
}

body.dx-page-signup .dx-hero .dx-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

body.dx-page-signup .dx-hero .dx-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}

/* Form card */
body.dx-page-signup .dx-form-card {
  background: var(--dx-card);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-xl);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 20px;
}

body.dx-page-signup .dx-form-card .dx-card-top {
  margin-bottom: 14px;
}

body.dx-page-signup .dx-form-card .dx-card-top h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dx-text);
}

body.dx-page-signup .dx-form-card .dx-card-top p {
  margin: 8px 0 0 0;
  color: var(--dx-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

/* Signup form internals only */
body.dx-page-signup .form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

body.dx-page-signup .dx-main,
body.dx-page-signup .dx-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Lists panel */
body.dx-page-signup .lists {
  list-style: none !important;
  margin: 0 !important;
  padding: 14px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #f5f8ff 100%);
  border: 1px solid #dbe6fa !important;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.dx-page-signup .lists > h2 {
  margin: 0 0 8px 0 !important;
  font-size: 1rem !important;
  line-height: 1.2;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.dx-page-signup .lists li {
  margin: 0 !important;
  padding: 12px 4px !important;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
}

body.dx-page-signup .lists li:first-of-type {
  border-top: 0;
}

body.dx-page-signup .lists li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: var(--dx-navy);
  cursor: pointer;
}

body.dx-page-signup .lists li label {
  margin: 0 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  line-height: 1.25;
  cursor: pointer;
}

body.dx-page-signup .lists .description {
  grid-column: 2 / -1;
  margin: 6px 0 0 0 !important;
  color: var(--dx-muted);
  font-size: 0.85rem !important;
  line-height: 1.35rem !important;
}

/* Captcha (no box styling) */
body.dx-page-signup .captcha {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.dx-page-signup .captcha > * { margin: 0 !important; }
body.dx-page-signup .captcha iframe,
body.dx-page-signup .captcha altcha-widget,
body.dx-page-signup .captcha .h-captcha {
  max-width: 100%;
}

/* Actions row */
body.dx-page-signup .dx-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Archive link style if ever used */
body.dx-page-signup .dx-actions a,
body.dx-page-signup .form .right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d3def2;
  background: #f7faff;
  color: #27487f !important;
  text-decoration: none !important;
  font-weight: 700;
}

body.dx-page-signup .dx-actions a:hover,
body.dx-page-signup .form .right a:hover {
  background: #eef4ff;
  color: #0f172a !important;
  border-color: #bfd0ef;
}

/* Right-align Subscribe button (desktop/tablet) */
@media (min-width: 641px) {
  body.dx-page-signup .dx-side .dx-actions {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
  }

  body.dx-page-signup .dx-side .dx-actions .button {
    margin-left: auto !important;
  }
}

/* Signup mobile / tablet */
@media (max-width: 980px) {
  body.dx-page-signup .dx-shell {
    grid-template-columns: 1fr;
  }

  body.dx-page-signup .dx-hero {
    position: static;
    top: auto;
  }

  body.dx-page-signup .form > div {
    grid-template-columns: 1fr;
  }

  body.dx-page-signup .dx-side { order: 2; }
  body.dx-page-signup .dx-main { order: 1; }
}

@media (max-width: 640px) {
  body.dx-page-signup .container.wrap {
    width: calc(100% - 16px);
    margin-top: 10px !important;
    border-radius: 18px;
  }

  body.dx-page-signup .header {
    padding: 16px 16px 14px 16px !important;
  }

  .header .logo img {
    max-width: 220px !important;
  }

  body.dx-page-signup .dx-header-pill {
    display: none;
  }

  body.dx-page-signup .wrap > section {
    padding: 14px 16px 18px 16px;
  }

  body.dx-page-signup .dx-hero {
    padding: 18px;
    border-radius: 16px;
  }

  body.dx-page-signup .dx-form-card {
    padding: 14px;
    border-radius: 16px;
  }

  body.dx-page-signup .button {
    width: 100%;
    min-width: 0 !important;
  }

  body.dx-page-signup .dx-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.dx-page-signup .dx-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   LOGIN / MANAGE PAGES (dx-page-auth) — Simple + Narrow
   ========================================================= */

body.dx-page-auth .container.wrap {
  max-width: 560px !important;
  margin: 28px auto 14px auto !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,77,0.08);
  box-shadow: 0 14px 34px rgba(11,31,77,0.10);
  border-radius: 18px;
  padding: 0 !important;
}

body.dx-page-auth .header {
  padding: 16px 18px 12px 18px !important;
}

body.dx-page-auth .dx-header-pill {
  display: none !important;
}

body.dx-page-auth .wrap > section {
  padding: 18px !important;
}

body.dx-page-auth .wrap > section > h2 {
  margin: 0 0 12px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Kill any wide/grid behavior on auth pages */
body.dx-page-auth .form > div {
  display: block !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

/* Tighten rows */
body.dx-page-auth .form p {
  margin: 0 0 12px 0 !important;
}

/* Button + links stack cleanly */
body.dx-page-auth .button {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

body.dx-page-auth .form .right {
  margin-top: 8px !important;
  text-align: left !important;
}

body.dx-page-auth .form .right a,
body.dx-page-auth .form p > a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #d3def2;
  background: #f7faff;
  color: #27487f !important;
  border-radius: 12px;
  min-height: 48px;
  line-height: 48px;
  padding: 0 12px;
  font-weight: 700;
  box-sizing: border-box;
}

body.dx-page-auth .form .right a:hover,
body.dx-page-auth .form p > a:hover {
  background: #eef4ff;
  color: #0f172a !important;
  border-color: #bfd0ef;
}

/* Captcha on auth pages (if present) */
body.dx-page-auth .captcha {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Small screens */
@media (max-width: 640px) {
  body.dx-page-auth .container.wrap {
    width: calc(100% - 16px);
    margin-top: 10px !important;
  }

  body.dx-page-auth .header {
    padding: 14px 14px 10px 14px !important;
  }

  body.dx-page-auth .wrap > section {
    padding: 14px !important;
  }
}

/* ===== Auth/Login page header cleanup ===== */
body.dx-page-auth .header {
  justify-content: center !important;   /* center logo horizontally */
  background: #ffffff !important;       /* remove gradient */
  border-bottom: 0 !important;          /* remove line/shade under logo */
  box-shadow: none !important;
  padding: 18px 18px 10px 18px !important;
}

/* Make logo wrapper centered and full width */
body.dx-page-auth .header .logo {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Optional: slightly smaller logo on auth pages so it looks cleaner */
body.dx-page-auth .header .logo img {
  display: block;
  margin: 0 auto !important;
  max-width: 260px !important;
}

/* Mobile auth logo sizing */
@media (max-width: 640px) {
  body.dx-page-auth .header .logo img {
    max-width: 220px !important;
  }
}
/* =========================================================
   Auth-like pages cleanup (login + pre-login/manage page)
   - Applies to dx-page-auth and dx-page-other
   ========================================================= */

/* Narrow simple container for both auth + pre-login pages */
body.dx-page-auth .container.wrap,
body.dx-page-other .container.wrap {
  max-width: 560px !important;
  margin: 28px auto 14px auto !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,77,0.08);
  box-shadow: 0 14px 34px rgba(11,31,77,0.10);
  border-radius: 18px;
  padding: 0 !important;
}

/* Flat header + centered logo (remove gradient/shade) */
body.dx-page-auth .header,
body.dx-page-other .header {
  justify-content: center !important;
  background: #ffffff !important;   /* removes gradient */
  border-bottom: 0 !important;      /* removes line/shade */
  box-shadow: none !important;
  padding: 18px 18px 10px 18px !important;
}

/* Hide pill on these pages */
body.dx-page-auth .dx-header-pill,
body.dx-page-other .dx-header-pill {
  display: none !important;
}

/* Center logo wrapper */
body.dx-page-auth .header .logo,
body.dx-page-other .header .logo {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Add top margin to logo (your request) */
body.dx-page-auth .header .logo img,
body.dx-page-other .header .logo img {
  display: block;
  margin: 8px auto 0 auto !important; /* top margin added */
  max-width: 260px !important;
}

/* Section spacing */
body.dx-page-auth .wrap > section,
body.dx-page-other .wrap > section {
  padding: 18px !important;
}

body.dx-page-auth .wrap > section > h2,
body.dx-page-other .wrap > section > h2 {
  margin: 0 0 12px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Kill any wide/grid behavior */
body.dx-page-auth .form > div,
body.dx-page-other .form > div {
  display: block !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

/* Tight rows */
body.dx-page-auth .form p,
body.dx-page-other .form p {
  margin: 0 0 12px 0 !important;
}

/* Full-width main button */
body.dx-page-auth .button,
body.dx-page-other .button {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

/* Secondary links/buttons */
body.dx-page-auth .form .right,
body.dx-page-other .form .right {
  margin-top: 8px !important;
  text-align: left !important;
}

body.dx-page-auth .form .right a,
body.dx-page-auth .form p > a,
body.dx-page-other .form .right a,
body.dx-page-other .form p > a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #d3def2;
  background: #f7faff;
  color: #27487f !important;
  border-radius: 12px;
  min-height: 48px;
  line-height: 48px;
  padding: 0 12px;
  font-weight: 700;
  box-sizing: border-box;
}

body.dx-page-auth .form .right a:hover,
body.dx-page-auth .form p > a:hover,
body.dx-page-other .form .right a:hover,
body.dx-page-other .form p > a:hover {
  background: #eef4ff;
  color: #0f172a !important;
  border-color: #bfd0ef;
}

/* Captcha if present */
body.dx-page-auth .captcha,
body.dx-page-other .captcha {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Mobile */
@media (max-width: 640px) {
  body.dx-page-auth .container.wrap,
  body.dx-page-other .container.wrap {
    width: calc(100% - 16px);
    margin-top: 10px !important;
  }

  body.dx-page-auth .header,
  body.dx-page-other .header {
    padding: 14px 14px 10px 14px !important;
  }

  body.dx-page-auth .header .logo img,
  body.dx-page-other .header .logo img {
    max-width: 220px !important;
    margin-top: 10px !important; /* keep top margin on mobile too */
  }

  body.dx-page-auth .wrap > section,
  body.dx-page-other .wrap > section {
    padding: 14px !important;
  }
}
/* Make login + pre-login/manage pages narrower */
body.dx-page-auth .container.wrap,
body.dx-page-other .container.wrap {
  max-width: 460px !important; /* was 560px */
}
/* Tighten spacing between Email + Name fields on signup page */
body.dx-page-signup .dx-main > p {
  margin: 0 !important; /* remove extra row margin inside grid */
}

body.dx-page-signup .dx-main {
  gap: 10px !important; /* was 16px */
}
/* Background image behind signup + login boxes */
html, body {
  background:
    linear-gradient(rgba(11, 31, 77, 0.08), rgba(11, 31, 77, 0.08)),
    url("https://newsletter.dallasexpressnews.com/uploads/dx-backgroud.jpg") center center / cover no-repeat fixed !important;
}
/* Vertically center the logo (especially on signup page) */
body.dx-page-signup .header .logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* keep left aligned */
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.dx-page-signup .header .logo img {
  display: block !important;      /* removes baseline weirdness */
  margin: 0 !important;
  vertical-align: middle !important;
  height: auto !important;
}
/* Smaller logo on signup page */
body.dx-page-signup .header .logo img {
  max-width: 260px !important; /* try 240px / 220px if you want smaller */
  width: auto !important;
  height: auto !important;
}

/* Newsletter selection required validation */
body.dx-page-signup .lists.dx-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

body.dx-page-signup .dx-list-error {
  margin-top: 8px;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
/* Top-row validation message next to "Join the mailing list" */
body.dx-page-signup .dx-card-top .dx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.dx-page-signup .dx-card-top .dx-card-head h2 {
  margin: 0 !important;
}

body.dx-page-signup .dx-list-error.dx-list-error-top {
  margin: 0 !important;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Mobile: let it wrap under the title if needed */
@media (max-width: 640px) {
  body.dx-page-signup .dx-list-error.dx-list-error-top {
    white-space: normal;
    width: 100%;
  }
}
/* =========================================================
   SUCCESS PAGE (dx-page-success) — Branded + useful
   ========================================================= */

/* Narrow card like auth pages */
body.dx-page-success .container.wrap {
  max-width: 460px !important;
  margin: 28px auto 14px auto !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,77,0.08);
  box-shadow: 0 14px 34px rgba(11,31,77,0.10);
  border-radius: 18px;
  padding: 0 !important;
}

/* Flat header + centered logo (no gradient / no line) */
body.dx-page-success .header {
  justify-content: center !important;
  background: #ffffff !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 18px 18px 10px 18px !important;
}

body.dx-page-success .dx-header-pill {
  display: none !important;
}

/* Center logo wrapper */
body.dx-page-success .header .logo {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Match your auth-page logo sizing + top margin */
body.dx-page-success .header .logo img {
  display: block !important;
  margin: 8px auto 0 auto !important;
  max-width: 260px !important;
  width: auto !important;
  height: auto !important;
}

/* Content spacing */
body.dx-page-success .wrap > section {
  padding: 18px !important;
}

/* Branded success card */
body.dx-page-success .dx-success-card {
  border: 1px solid #dbe6fa;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  text-align: center;
}

body.dx-page-success .dx-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.18);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

body.dx-page-success .dx-success-card h2 {
  margin: 0 0 8px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.dx-page-success .dx-success-lead {
  margin: 0 0 10px 0;
  color: #334155;
  line-height: 1.45;
  font-size: 0.95rem;
}

body.dx-page-success .dx-success-help {
  margin: 0 0 14px 0;
  color: #64748b;
  line-height: 1.4;
  font-size: 0.9rem;
}

body.dx-page-success .dx-success-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

body.dx-page-success .dx-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  text-decoration: none !important;
  font-weight: 800;
  box-sizing: border-box;
}

body.dx-page-success .dx-success-btn-primary {
  background: linear-gradient(180deg, #123b8a 0%, #0b1f4d 100%);
  color: #fff !important;
  border: 0;
  box-shadow: 0 10px 20px rgba(11,31,77,0.18);
}

body.dx-page-success .dx-success-btn-primary:hover {
  background: linear-gradient(180deg, #17479f 0%, #0d275d 100%);
  color: #fff !important;
}

body.dx-page-success .dx-success-footnote {
  margin: 10px 0 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 640px) {
  body.dx-page-success .container.wrap {
    width: calc(100% - 16px);
    margin-top: 10px !important;
  }

  body.dx-page-success .header {
    padding: 14px 14px 10px 14px !important;
  }

  body.dx-page-success .header .logo img {
    max-width: 220px !important;
    margin-top: 10px !important;
  }

  body.dx-page-success .wrap > section {
    padding: 14px !important;
  }
}
/* Show the DX footer link (overrides global hidden footer links) */
footer.container a[href*="dallasexpress.com"] {
  display: inline !important;
  color: var(--dx-navy) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

footer.container a[href*="dallasexpress.com"]:hover {
  text-decoration: underline !important;
}
/* Generic Listmonk message page (e.g. subscribed successfully) */
body.dx-page-message .container.wrap {
  max-width: 460px !important;
  margin: 28px auto 14px auto !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,77,0.08);
  box-shadow: 0 14px 34px rgba(11,31,77,0.10);
  border-radius: 18px;
  padding: 0 !important;
}

body.dx-page-message .header {
  justify-content: center !important;
  background: #ffffff !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 18px 18px 10px 18px !important;
}

body.dx-page-message .dx-header-pill {
  display: none !important;
}

body.dx-page-message .header .logo {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body.dx-page-message .header .logo img {
  display: block !important;
  margin: 8px auto 0 auto !important;
  max-width: 260px !important;
  width: auto !important;
  height: auto !important;
}

body.dx-page-message .wrap > section {
  padding: 18px !important;
}

body.dx-page-message .wrap > section > h2 {
  margin: 0 0 10px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.dx-page-message .wrap > section > p {
  margin: 0 0 12px 0 !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}

/* Style the relabeled back button/link */
body.dx-page-message .wrap > section a,
body.dx-page-message .wrap > section button,
body.dx-page-message .wrap > section .button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  min-height: 48px !important;
  line-height: 48px !important;
  padding: 0 12px !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #123b8a 0%, #0b1f4d 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 20px rgba(11,31,77,0.18);
}

body.dx-page-message .wrap > section a:hover,
body.dx-page-message .wrap > section button:hover,
body.dx-page-message .wrap > section .button:hover {
  background: linear-gradient(180deg, #17479f 0%, #0d275d 100%) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  body.dx-page-message .container.wrap {
    width: calc(100% - 16px);
    margin-top: 10px !important;
  }

  body.dx-page-message .header {
    padding: 14px 14px 10px 14px !important;
  }

  body.dx-page-message .header .logo img {
    max-width: 220px !important;
    margin-top: 10px !important;
  }

  body.dx-page-message .wrap > section {
    padding: 14px !important;
  }
}
/* =========================
   FORCE FIX: Generic success/message page margins (currently dx-page-other)
   ========================= */

/* Give the content area real padding */
body.dx-page-other .container.wrap > section {
  padding: 18px 18px 20px 18px !important;
  box-sizing: border-box !important;
}

/* Kill weird top gap above the first visible element */
body.dx-page-other .container.wrap > section > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Tighten heading + message spacing on the success page */
body.dx-page-other .container.wrap > section > h2 {
  margin: 0 0 12px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
}

body.dx-page-other .container.wrap > section > p {
  margin: 0 0 14px 0 !important;
  line-height: 1.4 !important;
}

/* If Listmonk wraps the Back button in a form, remove extra spacing */
body.dx-page-other .container.wrap > section form,
body.dx-page-other .container.wrap > section .form {
  margin: 0 !important;
  padding: 0 !important;
}

/* If Listmonk puts the button inside <p>, remove that extra margin */
body.dx-page-other .container.wrap > section .form p,
body.dx-page-other .container.wrap > section form p {
  margin: 0 !important;
}

/* Make the back button respect the section padding (works for a/button/input) */
body.dx-page-other .container.wrap > section a.button,
body.dx-page-other .container.wrap > section button.button,
body.dx-page-other .container.wrap > section input.button,
body.dx-page-other .container.wrap > section input[type="submit"],
body.dx-page-other .container.wrap > section input[type="button"] {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 8px 0 0 0 !important;
}

/* Mobile tweak */
@media (max-width: 640px) {
  body.dx-page-other .container.wrap > section {
    padding: 14px 14px 16px 14px !important;
  }
}

/* ── Dallas Express success/message page ── */
.dx-page-message .container.wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.dx-msg-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  padding: 40px 36px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.dx-msg-check {
  font-size: 3rem;
  color: #c8102e;
  line-height: 1;
  margin-bottom: 14px;
}

.dx-msg-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.dx-msg-body {
  color: #555;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 28px;
}

.dx-msg-btn {
  display: inline-block;
  background: #c8102e;
  color: #fff !important;
  padding: 13px 32px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.dx-msg-btn:hover {
  background: #a00c24;
  color: #fff !important;
}
/* ── Force message page to NOT use signup two-column layout ── */
.dx-page-message .container.wrap,
.dx-page-message .dx-wrap-signup {
  display: block !important;
}

.dx-page-message section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.dx-page-message .dx-shell {
  display: none !important;
}

/* Re-center the message card */
.dx-page-message .container.wrap {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}