/* ============================================================
   POLISH SWEEP — Task #1474894
   7 defect fixes for 10/10 visual quality at 375px + 1440px.
   Loaded sitewide via layout-head.ejs.
   ============================================================ */

/* ── FIX 1: Footer "Am I Eligible? FAQ" green CTA color leak ──
   Root cause: A CTA style or specificity war turns this footer
   link green. Force all .sr-ft-col-links anchors to dark text.
   ──────────────────────────────────────────────────────────── */
html body .sr-ft-col-links a {
  color: #1F2A37 !important;
  -webkit-text-fill-color: #1F2A37 !important;
}
html body .sr-ft-col-links a:hover {
  color: #047857 !important;
  -webkit-text-fill-color: #047857 !important;
}
/* Also ensure the new footer (fn-) links stay consistent */
html body .fn-col-links a:not(.fn-link--featured) {
  color: #1F2A37 !important;
}


/* ── FIX 2: /ask mobile — spacing, chip sizing, Closing Soon ──
   The ask page inline styles were "moved to design-system.css
   §22c" but never actually landed. This IS that CSS.
   ──────────────────────────────────────────────────────────── */

/* ── Ask page globals ── */
.ask-page {
  background: #FFFFFF;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Hero */
.ask-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
  background: #FFFFFF;
}
.ask-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.ask-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.75rem;
}
.ask-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.ask-hero-sub {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.55;
  margin: 0;
}
.ask-hero-trust {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #374151;
}

/* Chat section */
.ask-chat-section {
  padding: 0 1.25rem 2rem;
}
.ask-chat-container {
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Smart CTA strip inside chat */
.ask-smart-cta-wrap {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F3F4F6;
}

/* Pro banner */
.ask-pro-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: #F0FDF4;
  border-bottom: 1px solid #BBF7D0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.ask-pro-badge {
  background: #00875A;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}
.ask-pro-banner-text { flex: 1; color: #1F2A37; }
.ask-pro-banner-cta {
  font-weight: 700;
  color: #00875A;
  text-decoration: none;
  white-space: nowrap;
}
.ask-pro-banner-cta:hover { text-decoration: underline; }
.ask-pro-banner-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6B7280;
  padding: 0.25rem;
  line-height: 1;
}

/* Usage bar */
.ask-usage-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F3F4F6;
}
.ask-usage-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #4B5563;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.ask-usage-upgrade {
  color: #00875A;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
}
.ask-usage-upgrade:hover { text-decoration: underline; }
.ask-usage-track {
  height: 4px;
  background: #F3F4F6;
  border-radius: 2px;
  overflow: hidden;
}
.ask-usage-fill {
  height: 100%;
  background: #00875A;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Messages */
.ask-messages {
  padding: 1rem;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}
.ask-msg {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ask-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #047857;
}
.ask-msg-body { flex: 1; min-width: 0; }
.ask-msg-bubble {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1F2A37;
}
.ask-msg-bubble p { margin: 0 0 0.5rem; }
.ask-msg-bubble p:last-child { margin-bottom: 0; }
.ask-welcome-hint {
  color: #6B7280;
  font-size: 0.85rem;
}

/* Chips — question suggestions */
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ask-chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.3;
}
.ask-chip:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
}

/* Input area */
.ask-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid #E5E7EB;
  background: #FAFAFA;
}
.ask-form { margin: 0; }
.ask-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s;
}
.ask-input-wrap:focus-within {
  border-color: #00875A;
  box-shadow: 0 0 0 3px rgba(0,135,90,0.1);
}
.ask-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: inherit;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  background: transparent;
  color: #1F2A37;
  line-height: 1.5;
}
.ask-send-btn {
  background: #00875A;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ask-send-btn:hover { background: #006B4D; }
.ask-disclaimer {
  font-size: 0.72rem;
  color: #9CA3AF;
  text-align: center;
  margin: 0.5rem 0 0;
}

/* Below fold sections */
.ask-below-fold {
  padding: 0;
}
.ask-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.ask-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ask-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0;
}
.ask-section-sub {
  font-size: 0.88rem;
  color: #6B7280;
  margin: 0.15rem 0 0;
}
.ask-section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00875A;
  text-decoration: none;
  white-space: nowrap;
}
.ask-section-link:hover { text-decoration: underline; }
.ask-section-title-center {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A0A0A;
  text-align: center;
  margin: 0 0 1.5rem;
}

/* Horizontal cards row (Popular / Closing) */
.ask-hcards-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.ask-hcards-row::-webkit-scrollbar { height: 4px; }
.ask-hcards-row::-webkit-scrollbar-track { background: #F3F4F6; border-radius: 2px; }
.ask-hcards-row::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }
.ask-hcard-skeleton {
  min-width: 220px;
  height: 140px;
  background: #F3F4F6;
  border-radius: 12px;
  flex-shrink: 0;
  scroll-snap-align: start;
  animation: ask-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes ask-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Email capture section */
.ask-email-section {
  background: #F0FDF4;
  border-top: 1px solid #D1FAE5;
  border-bottom: 1px solid #D1FAE5;
}
.ask-email-inline-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.ask-email-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}
.ask-email-inline-wrap h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.35rem;
}
.ask-email-inline-wrap p {
  font-size: 0.88rem;
  color: #4B5563;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.ask-email-inline-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.ask-email-inline-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid #A7F3D0;
  border-radius: 9px;
  font-size: 0.92rem;
  background: #fff;
  color: #1F2A37;
  outline: none;
  font-family: inherit;
}
.ask-email-inline-input:focus { border-color: #00875A; }
.ask-email-inline-btn {
  padding: 0.7rem 1.25rem;
  background: #00875A;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}
.ask-email-inline-btn:hover { background: #006B4D; }
.ask-email-inline-success {
  color: #047857;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Trending / Closing sections */
.ask-trending-section,
.ask-closing-section {
  border-top: 1px solid #F3F4F6;
}

/* Upsell bar */
.ask-upsell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  flex-wrap: wrap;
}
.ask-upsell-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.ask-upsell-bar-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #F59E0B;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}
.ask-upsell-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: #1F2A37;
}
.ask-upsell-bar-text span { color: #6B7280; font-size: 0.8rem; }
.ask-upsell-bar-btn {
  background: #F59E0B;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.ask-upsell-bar-btn:hover { background: #D97706; }

/* How it works */
.ask-how-section {
  border-top: 1px solid #F3F4F6;
}
.ask-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}
.ask-step {
  text-align: center;
  max-width: 220px;
  flex: 1;
}
.ask-step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}
.ask-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #00875A;
  margin-bottom: 0.25rem;
}
.ask-step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.35rem;
}
.ask-step p {
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.5;
  margin: 0;
}
.ask-step-arrow {
  font-size: 1.25rem;
  color: #D1D5DB;
  margin-top: 2rem;
  flex-shrink: 0;
}
.ask-how-cta {
  text-align: center;
  margin-top: 1.5rem;
}
.ask-how-cta-btn {
  display: inline-block;
  background: #00875A;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ask-how-cta-btn:hover { background: #006B4D; }

/* Trust stats */
.ask-trust-section {
  border-top: 1px solid #F3F4F6;
}
.ask-trust-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ask-trust-stat {
  text-align: center;
}
.ask-trust-stat-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0A0A0A;
}
.ask-trust-stat-label {
  display: block;
  font-size: 0.78rem;
  color: #6B7280;
  margin-top: 0.15rem;
}
.ask-trust-divider {
  width: 1px;
  height: 36px;
  background: #E5E7EB;
}

/* Upgrade modal */
.ask-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ask-upgrade-modal[hidden] { display: none; }
.ask-upgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.ask-upgrade-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ask-upgrade-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 0.25rem;
}
.ask-upgrade-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ask-upgrade-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.75rem;
}
.ask-upgrade-body {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.ask-upgrade-cta {
  display: inline-block;
  background: #00875A;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ask-upgrade-cta:hover { background: #006B4D; }
.ask-upgrade-reset {
  font-size: 0.82rem;
  color: #6B7280;
  margin: 1rem 0 0;
}
.ask-upgrade-reset a { color: #00875A; text-decoration: none; }
.ask-upgrade-reset a:hover { text-decoration: underline; }

/* Email capture below chat container */
.ask-email-capture-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Ask page mobile responsive ── */
@media (max-width: 640px) {
  .ask-hero { padding: 2rem 1rem 1.25rem; }
  .ask-hero h1 { font-size: 1.35rem; }
  .ask-hero-trust { gap: 0.5rem; font-size: 0.78rem; }
  .ask-hero-trust span { white-space: nowrap; }

  .ask-chat-section { padding: 0 0.75rem 1.5rem; }
  .ask-chat-container { border-radius: 12px; }

  /* FIX: Chip text bigger + more padding for mobile tap targets */
  .ask-chip {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* FIX: More vertical spacing between sections */
  .ask-section-inner {
    padding: 2rem 1rem;
  }
  .ask-trending-section,
  .ask-closing-section {
    margin-top: 0.5rem;
  }

  /* Steps stack vertically on mobile */
  .ask-steps-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .ask-step-arrow { display: none; }
  .ask-step { max-width: 280px; }

  /* Trust stats: 2x2 grid on mobile */
  .ask-trust-stats { gap: 1rem; }
  .ask-trust-divider { display: none; }
  .ask-trust-stat { flex: 0 0 calc(50% - 0.5rem); }

  /* Email form stacks on mobile */
  .ask-email-inline-form {
    flex-direction: column;
    max-width: 100%;
  }
  .ask-email-inline-input,
  .ask-email-inline-btn {
    width: 100%;
  }

  /* Upsell bar stacks */
  .ask-upsell-bar {
    flex-direction: column;
    text-align: center;
  }
  .ask-upsell-bar-left {
    flex-direction: column;
  }
  .ask-upsell-bar-btn { width: 100%; text-align: center; }

  /* Pro banner wraps better */
  .ask-pro-banner {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }
}

/* FIX: Closing Soon section — hide gracefully if no data loaded */
.ask-closing-section:empty,
.ask-closing-section .ask-hcards-row:empty {
  display: none;
}


/* ── FIX 3: Blog post mobile — broken img placeholder ─────────
   Replace broken <img> with a styled CSS gradient fallback.
   The onerror handler hides the img and shows .ch-article-hero-fallback.
   ──────────────────────────────────────────────────────────── */
.ch-article-hero-img {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 35%, #A7F3D0 100%);
  position: relative;
}
.ch-article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback when img fails — gradient + SR branding */
.ch-article-hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 40%, #6EE7B7 100%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.ch-article-hero-fallback .fallback-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,135,90,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #047857;
}
.ch-article-hero-fallback .fallback-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #047857;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* When img errors out, onerror hides img, shows fallback */
.ch-article-hero-img img[data-error="true"] { display: none; }
.ch-article-hero-img img[data-error="true"] ~ .ch-article-hero-fallback,
.ch-article-hero-img:has(img[data-error="true"]) .ch-article-hero-fallback {
  display: flex;
}
/* Mobile: maintain aspect ratio */
@media (max-width: 640px) {
  .ch-article-hero-img {
    border-radius: 0;
    margin: 0 -1rem 1.5rem;
    width: calc(100% + 2rem);
  }
}


/* ── FIX 4: Sticky CTA z-index collision with header on mobile ─
   Header is z-index:1000, sticky bottom CTA is z-index:996.
   Ensure header ALWAYS sits above the sticky CTA so logo
   isn't obscured. Add padding-bottom to body so sticky CTA
   doesn't overlap page content.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Ensure header always sits on top of everything except modals */
  .hn-header {
    z-index: 1000 !important;
    position: sticky !important;
  }
  /* Lower the sticky CTA z-index further below header */
  .hn-sticky-bottom {
    z-index: 990 !important;
  }
  /* Add space at bottom of page so CTA doesn't overlap last content */
  body {
    padding-bottom: 56px;
  }
}


/* ── FIX 6: News articles — hero image gradient placeholders ──
   Scraped news articles have no featured_image. Show a styled
   category-themed gradient instead of nothing.
   ──────────────────────────────────────────────────────────── */
.ch-article-hero-placeholder {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 40%, #6EE7B7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}
.ch-article-hero-placeholder .hero-ph-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,135,90,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-article-hero-placeholder .hero-ph-icon svg {
  width: 28px;
  height: 28px;
  color: #047857;
}
.ch-article-hero-placeholder .hero-ph-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #047857;
  text-align: center;
  max-width: 300px;
}
.ch-article-hero-placeholder .hero-ph-brand {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6EE7B7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .ch-article-hero-placeholder {
    border-radius: 0;
    margin: 0 -1rem 1.5rem;
    width: calc(100% + 2rem);
  }
}

/* News card image placeholders (news-hub grid) */
.ch-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 40%, #6EE7B7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.05em;
}


/* ── FIX 7: Mobile email signup CTAs — full-width ─────────────
   The cta-email-capture.ejs partial uses inline max-width:420px
   on the form. Override for mobile with a class-based rule.
   Also fix the .sr-inline-capture__form from the CSS variant.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Inline style override for cta-email-capture.ejs partial */
  .sr-cta-email-capture form,
  .sr-cta-email-capture [id$="Form"] {
    max-width: 100% !important;
    flex-direction: column !important;
  }
  .sr-cta-email-capture input[type="email"],
  .sr-cta-email-capture button[type="submit"] {
    width: 100% !important;
    min-width: unset !important;
  }

  /* CSS-class variant (inline-email-capture) */
  .sr-inline-capture__form {
    max-width: 100% !important;
    flex-direction: column !important;
  }
  .sr-inline-capture__input,
  .sr-inline-capture__btn {
    width: 100% !important;
    min-width: unset !important;
  }

  /* Footer email form */
  .sr-ft-email-row {
    flex-direction: column !important;
  }
  .sr-ft-email-input,
  .sr-ft-email-btn {
    width: 100% !important;
    min-width: unset !important;
  }

  /* Blog email gate form */
  .email-gate-form {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .email-gate-input,
  .email-gate-btn {
    width: 100% !important;
    min-width: unset !important;
  }
}
