/* ============================================================
   SettlementRadar — Settlement Detail Page v2 Redesign
   Phase 2B: The #1 Revenue Page — v3.2 Design System

   Design System v3.2:
     Background:  #FFFFFF (white consumer), #0A0F1E (footer only)
     Headline:    #0A0A0A (Fraunces serif)
     Body text:   #1F2A37 (DM Sans)
     Accent CTA:  #00B37D (emerald green)
     Grid:        8px base
   ============================================================ */

/* ─── v3.2 FONT FACE DECLARATIONS ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,700;9..144,900&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ─── v3.2 CSS VARIABLE OVERRIDES (blue → emerald) ───────────── */
body.page-settlement-detail {
  --primary: #00B37D !important;
  --primary-dark: #009669 !important;
  --primary-light: #E6F9F3 !important;
  --sr-green-300: rgba(0, 179, 125, 0.3) !important;
}

/* ─── RESET DARK BACKGROUNDS ────────────────────────────────── */
body.page-settlement-detail main,
body.page-settlement-detail .detail-inner,
body.page-settlement-detail .detail-header,
body.page-settlement-detail .detail-body,
body.page-settlement-detail .detail-content,
body.page-settlement-detail .detail-section {
  background: #FFFFFF !important;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
body.page-settlement-detail .breadcrumb-nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  font-size: 13px !important;
  color: #9CA3AF !important;
  margin-bottom: 20px !important;
  font-weight: 500 !important;
}

body.page-settlement-detail .breadcrumb-nav a {
  color: #6B7280 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

body.page-settlement-detail .breadcrumb-nav a:hover {
  color: #00B37D !important;
}

body.page-settlement-detail .breadcrumb-sep {
  color: #D1D5DB !important;
  margin: 0 6px !important;
}

body.page-settlement-detail .breadcrumb-current {
  color: #374151 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 300px !important;
}

/* ─── SETTLEMENT H1 HEADLINE ─────────────────────────────────── */
body.page-settlement-detail .detail-header h1 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 800 !important;
  color: #0A0A0A !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin-bottom: 16px !important;
}

/* ─── HERO META ROW (badges below h1) ───────────────────────── */
body.page-settlement-detail .detail-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

/* Category badge — emerald outline */
body.page-settlement-detail .detail-meta-row .card-category {
  background: transparent !important;
  border: 1.5px solid #00B37D !important;
  color: #00B37D !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
}

/* Deadline badge color system */
body.page-settlement-detail .card-deadline {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

body.page-settlement-detail .card-deadline:not(.urgent):not(.warning):not(.expired) {
  background: #E6F9F3 !important;
  color: #00B37D !important;
  border: 1px solid rgba(0, 179, 125, 0.3) !important;
}

body.page-settlement-detail .card-deadline.warning {
  background: #FEF3C7 !important;
  color: #D97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
}

body.page-settlement-detail .card-deadline.urgent,
body.page-settlement-detail .card-deadline.last-chance {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
}

body.page-settlement-detail .card-deadline.expired {
  background: #F3F4F6 !important;
  color: #6B7280 !important;
  border: 1px solid #E5E7EB !important;
}

/* Status badge — Open for Filing */
body.page-settlement-detail .sr-status-open {
  background: #E6F9F3 !important;
  color: #00B37D !important;
  border: 1px solid rgba(0, 179, 125, 0.3) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
}

/* ─── PAYOUT DISPLAY ─────────────────────────────────────────── */
body.page-settlement-detail .hero-conv-payout-amount {
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 900 !important;
  color: #00B37D !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}

/* ─── MAIN LAYOUT: 2-COLUMN ─────────────────────────────────── */
body.page-settlement-detail .content-with-sidebar {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 32px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 32px 24px !important;
  align-items: start !important;
}

/* Main content column */
body.page-settlement-detail .detail-content {
  min-width: 0 !important;
}

/* ─── STICKY SIDEBAR ─────────────────────────────────────────── */
body.page-settlement-detail .sidebar {
  position: sticky !important;
  top: 80px !important;
  width: 360px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* ─── FILING ACTION CARD (SIDEBAR) ──────────────────────────── */
body.page-settlement-detail .sidebar-card.sidebar-cta,
body.page-settlement-detail #filing-help {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Filing card headline */
body.page-settlement-detail .sidebar-card.sidebar-cta h3,
body.page-settlement-detail #filing-help h3 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0A0A0A !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.01em !important;
}

/* Filing price — emerald */
body.page-settlement-detail .sidebar-price-main {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #00B37D !important;
  display: block !important;
}

/* Primary CTA button — emerald */
body.page-settlement-detail .sidebar-btn.sidebar-btn-xl,
body.page-settlement-detail .sidebar-btn-xl {
  display: block !important;
  width: 100% !important;
  background: #00B37D !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 20px rgba(0, 179, 125, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}

body.page-settlement-detail .sidebar-btn.sidebar-btn-xl::before,
body.page-settlement-detail .sidebar-btn-xl::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%) !important;
  pointer-events: none !important;
}

body.page-settlement-detail .sidebar-btn.sidebar-btn-xl:hover,
body.page-settlement-detail .sidebar-btn-xl:hover {
  background: #009669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(0, 179, 125, 0.45) !important;
  color: #FFFFFF !important;
}

/* Trust line under button */
body.page-settlement-detail .sidebar-secure-line {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #9CA3AF !important;
  font-weight: 500 !important;
}

/* External form free link */
body.page-settlement-detail .sidebar-free-link {
  display: block !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-size: 14px !important;
  color: #6B7280 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Pro upsell line */
body.page-settlement-detail .sidebar-pro-upsell-line {
  font-size: 12px !important;
  color: #6B7280 !important;
  text-align: center !important;
  margin-top: 10px !important;
}

body.page-settlement-detail .sidebar-pro-upsell-line a {
  color: #00B37D !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Urgency countdown in sidebar */
body.page-settlement-detail .sidebar-urgency-countdown {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.4 !important;
}

/* Icon + text helpers in sidebar countdown */
body.page-settlement-detail .sidebar-urgency-countdown .suc-icon {
  font-size: 15px !important;
  flex-shrink: 0 !important;
}
body.page-settlement-detail .sidebar-urgency-countdown .suc-text {
  flex: 1 !important;
}

/* Task #1368550: Urgency state overrides */
body.page-settlement-detail .sidebar-urgency--urgent {
  color: #00B37D !important;
  background: rgba(0, 179, 125, 0.07) !important;
  border-color: rgba(0, 179, 125, 0.28) !important;
  animation: srSidebarCountdownPulse 1.8s ease-in-out infinite !important;
}
body.page-settlement-detail .sidebar-urgency--soon {
  color: #059669 !important;
  background: rgba(0, 179, 125, 0.05) !important;
  border-color: rgba(0, 179, 125, 0.20) !important;
}

/* "Don't wait" urgency copy under countdown */
body.page-settlement-detail .sidebar-urgency-warn {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin: 0 0 14px !important;
  font-style: italic !important;
  line-height: 1.4 !important;
}

/* Live days:hours:mins countdown block for <7 day settlements */
body.page-settlement-detail .sidebar-live-countdown {
  display: flex !important;
  align-items: flex-end !important;
  gap: 4px !important;
  margin: 8px 0 12px !important;
}
body.page-settlement-detail .slc-unit {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 38px !important;
}
body.page-settlement-detail .slc-num {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #00B37D !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.03em !important;
}
body.page-settlement-detail .slc-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
}
body.page-settlement-detail .slc-sep {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #d1d5db !important;
  padding-bottom: 10px !important;
  line-height: 1 !important;
}

@keyframes srSidebarCountdownPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-settlement-detail .sidebar-urgency--urgent { animation: none !important; }
}

/* Value bullets in sidebar */
body.page-settlement-detail .sb-value-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.page-settlement-detail .sb-value-bullets li {
  font-size: 14px !important;
  color: #374151 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  line-height: 1.4 !important;
}

/* ─── QUICK FACTS CARD (sidebar) ─────────────────────────────── */
body.page-settlement-detail .quick-facts-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

body.page-settlement-detail .qf-header {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #9CA3AF !important;
  margin-bottom: 14px !important;
}

body.page-settlement-detail .qf-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
}

body.page-settlement-detail .qf-item:last-of-type {
  border-bottom: none !important;
}

body.page-settlement-detail .qf-label {
  font-size: 12px !important;
  color: #9CA3AF !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 2px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body.page-settlement-detail .qf-value {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

body.page-settlement-detail .qf-value.qf-green {
  color: #00B37D !important;
}

body.page-settlement-detail .qf-value.qf-yellow {
  color: #D97706 !important;
}

body.page-settlement-detail .qf-value.qf-red {
  color: #DC2626 !important;
}

/* Quick facts CTA button */
body.page-settlement-detail .qf-cta {
  display: block !important;
  width: 100% !important;
  background: #00B37D !important;
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  text-align: center !important;
  text-decoration: none !important;
  margin-top: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
  box-shadow: 0 4px 16px rgba(0, 179, 125, 0.3) !important;
}

body.page-settlement-detail .qf-cta:hover {
  background: #009669 !important;
  transform: translateY(-1px) !important;
  color: #FFFFFF !important;
}

/* Trust row inside quick facts */
body.page-settlement-detail .qf-trust {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #9CA3AF !important;
  font-weight: 600 !important;
}

/* ─── DETAIL SECTIONS (main content) ────────────────────────── */
body.page-settlement-detail .detail-section {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
}

body.page-settlement-detail .detail-section h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0A0A0A !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.01em !important;
}

body.page-settlement-detail .detail-section p,
body.page-settlement-detail .detail-section li {
  font-family: 'DM Sans', sans-serif !important;
  color: #1F2A37 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* ─── TRUST STRIP ────────────────────────────────────────────── */
body.page-settlement-detail .sr-detail-trust-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 16px 0 !important;
}

body.page-settlement-detail .sr-trust-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #6B7280 !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 100px !important;
  padding: 5px 12px !important;
}

body.page-settlement-detail .sr-trust-badge svg {
  width: 12px !important;
  height: 12px !important;
  color: #00B37D !important;
}

/* ─── HOW TO FILE STEPS ──────────────────────────────────────── */
body.page-settlement-detail .sr-htf-step-num {
  width: 32px !important;
  height: 32px !important;
  background: #00B37D !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}

/* ─── PAYOUT ESTIMATOR ───────────────────────────────────────── */
body.page-settlement-detail .pe-widget {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
}

body.page-settlement-detail .pe-range-fill {
  background: linear-gradient(90deg, #00B37D, #009669) !important;
}

body.page-settlement-detail .pe-range-dot {
  background: #00B37D !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 0 0 2px #00B37D !important;
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────── */
body.page-settlement-detail details summary {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0A0A0A !important;
  cursor: pointer !important;
  padding: 14px 0 !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.page-settlement-detail details[open] summary {
  color: #00B37D !important;
}

body.page-settlement-detail details p {
  font-family: 'DM Sans', sans-serif !important;
  color: #1F2A37 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  padding-bottom: 14px !important;
}

/* ─── RELATED SETTLEMENTS CARDS ──────────────────────────────── */
body.page-settlement-detail .sidebar-related-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 20px !important;
}

body.page-settlement-detail .sidebar-related-card .sr-header {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #9CA3AF !important;
  margin-bottom: 12px !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  text-decoration: none !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item:last-of-type {
  border-bottom: none !important;
}

body.page-settlement-detail .sidebar-related-card .sr-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  transition: color 0.15s !important;
}

body.page-settlement-detail .sidebar-related-card .sr-item:hover .sr-title {
  color: #00B37D !important;
}

body.page-settlement-detail .sidebar-related-card .sr-payout {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #00B37D !important;
}

/* ─── HERO CONV BLOCK (above-fold CTA area) ─────────────────── */
body.page-settlement-detail .hero-conv-block {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  margin-bottom: 24px !important;
}

/* Main filing CTA buttons — override gold with emerald */
body.page-settlement-detail .dual-cta-primary,
body.page-settlement-detail .filing-cta-link.filing-cta-main-btn,
body.page-settlement-detail [class*="cta-green"].filing-cta-link {
  background: #00B37D !important;
  box-shadow: 0 4px 20px rgba(0, 179, 125, 0.35) !important;
}

body.page-settlement-detail .dual-cta-primary:hover,
body.page-settlement-detail .filing-cta-link.filing-cta-main-btn:hover {
  background: #009669 !important;
  box-shadow: 0 6px 24px rgba(0, 179, 125, 0.45) !important;
}

/* ─── PROGRESS BAR ───────────────────────────────────────────── */
#sr-reading-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background: #00B37D !important;
  z-index: 9999 !important;
  transition: width 0.1s ease !important;
}

/* ─── MOBILE RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  body.page-settlement-detail .content-with-sidebar {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 0 !important;
  }

  body.page-settlement-detail .sidebar {
    position: static !important;
    width: 100% !important;
    order: -1 !important; /* filing card moves above content on mobile */
    margin-bottom: 24px !important;
  }

  /* On mobile, only show the filing CTA card, hide decorative sidebar cards */
  body.page-settlement-detail .sidebar .sidebar-related-card,
  body.page-settlement-detail .sidebar .sidebar-pro-cta-card,
  body.page-settlement-detail .sidebar #ms2SidebarWidget {
    display: none !important;
  }

  /* Quick facts card visible but collapsed on mobile */
  body.page-settlement-detail .sidebar .quick-facts-card {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body.page-settlement-detail .detail-header h1 {
    font-size: 26px !important;
  }

  body.page-settlement-detail .hero-conv-payout-amount {
    font-size: 36px !important;
  }

  body.page-settlement-detail .sidebar-btn.sidebar-btn-xl,
  body.page-settlement-detail .sidebar-btn-xl {
    font-size: 15px !important;
    padding: 18px 20px !important;
    min-height: 56px !important;
  }

  body.page-settlement-detail .qf-cta {
    min-height: 52px !important;
    font-size: 15px !important;
  }
}

/* ─── SIDEBAR BADGE ──────────────────────────────────────────── */
body.page-settlement-detail .sidebar-cta-badge {
  display: inline-block !important;
  background: #E6F9F3 !important;
  color: #00B37D !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  border-radius: 100px !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(0, 179, 125, 0.3) !important;
}

/* ─── "NO PROOF REQUIRED" BADGE ─────────────────────────────── */
body.page-settlement-detail .no-proof-badge-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #E6F9F3 !important;
  color: #00B37D !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 100px !important;
  border: 1px solid rgba(0, 179, 125, 0.3) !important;
}

/* ─── SECTION DIVIDERS ───────────────────────────────────────── */
body.page-settlement-detail .detail-content > * + * {
  margin-top: 0 !important;
}

/* ─── TRUST SIGNALS GRID (below CTA) ────────────────────────── */
body.page-settlement-detail .sr-trust-cards-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin: 16px 0 !important;
}

/* ─── CLOSED BANNER OVERRIDE ─────────────────────────────────── */
body.page-settlement-detail .settlement-closed-banner {
  background: #FEF2F2 !important;
  border-left: 4px solid #DC2626 !important;
  border-bottom: 1px solid #FECACA !important;
  padding: 12px 20px !important;
}

/* ─── LIVE SOCIAL PROOF BAR ──────────────────────────────────── */
body.page-settlement-detail .sr-lsp-bar {
  border-radius: 10px !important;
  margin: 0 0 20px !important;
}

/* ─── PRO UPSELL CARD (sidebar) ─────────────────────────────── */
body.page-settlement-detail .sidebar-pro-cta-card {
  background: #F9FAFB !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 20px !important;
}

/* ─── SECTION LABEL (above payout, etc.) ───────────────────── */
body.page-settlement-detail .pe-badge,
body.page-settlement-detail .qf-header,
body.page-settlement-detail .sidebar-cta-badge {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}

/* ─── STRIPE SECURE TRUST LINE ───────────────────────────────── */
.sd-stripe-trust {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #9CA3AF !important;
  font-weight: 500 !important;
}

.sd-stripe-trust svg {
  color: #00B37D !important;
}

/* ─── FILING CTA BELOW SIDEBAR CARD ──────────────────────────── */
.sd-external-link {
  display: block !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #6B7280 !important;
  margin-top: 8px !important;
  text-decoration: none !important;
}

.sd-external-link:hover {
  color: #374151 !important;
  text-decoration: underline !important;
}

/* ─── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  body.page-settlement-detail .sidebar {
    position: static !important;
  }
  body.page-settlement-detail .content-with-sidebar {
    grid-template-columns: 1fr !important;
  }
}

/* ─── HERO CONV BLOCK: WHITE BACKGROUND OVERRIDE ────────────── */
/* Task 2B: No dark backgrounds anywhere. Override dark hero section */
body.page-settlement-detail .hero-conv-block {
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.page-settlement-detail .hero-conv-payout {
  background: linear-gradient(135deg, #00B37D 0%, #009669 100%) !important;
  padding: 20px 24px !important;
  text-align: center !important;
}

body.page-settlement-detail .hero-conv-payout-label {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

body.page-settlement-detail .hero-conv-payout-amount {
  font-size: clamp(2.4rem, 8vw, 3.2rem) !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.05 !important;
  letter-spacing: -2px !important;
}

body.page-settlement-detail .hero-conv-payout-sub {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-top: 4px !important;
}

body.page-settlement-detail .hero-conv-body {
  padding: 20px 24px !important;
  background: #FFFFFF !important;
}

/* ─── DETAIL HERO SECTION CLEANUP ───────────────────────────── */
body.page-settlement-detail .detail-hero {
  background: #FFFFFF !important;
  padding-bottom: 0 !important;
}

/* ─── DETAIL CAT BANNER: LIMIT HEIGHT ───────────────────────── */
body.page-settlement-detail .detail-cat-banner {
  max-height: 180px !important;
  overflow: hidden !important;
}

/* ─── AEO QUICK FACTS BLOCK: CLEAN STYLING ──────────────────── */
body.page-settlement-detail .sr-quick-facts {
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-left: 4px solid #00B37D !important;
  margin: 0 !important;
}

body.page-settlement-detail .sr-quick-facts__title {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #0A0A0A !important;
  font-weight: 800 !important;
}

body.page-settlement-detail .sr-quick-facts dt {
  color: #9CA3AF !important;
}

body.page-settlement-detail .sr-quick-facts dd {
  color: #111827 !important;
}

body.page-settlement-detail .sr-quick-facts dd a {
  color: #00B37D !important;
}

/* ─── CLOSED BANNER: CLEAN MATCH DESIGN SYSTEM ──────────────── */
body.page-settlement-detail .settlement-closed-banner {
  background: #FEF2F2 !important;
  border-left: 4px solid #DC2626 !important;
  border-bottom: 1px solid #FECACA !important;
  color: #991B1B !important;
}

body.page-settlement-detail .settlement-closed-label {
  color: #DC2626 !important;
  font-weight: 800 !important;
}

/* ─── DETAIL MAIN CONTENT BACKGROUND ────────────────────────── */
body.page-settlement-detail main {
  background: #FFFFFF !important;
}

/* ─── PAYOUT CALCULATION WIDGET ─────────────────────────────── */
body.page-settlement-detail .pe-widget-title {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #0A0A0A !important;
  font-weight: 800 !important;
}

/* ─── BODY BACKGROUND ────────────────────────────────────────── */
body.page-settlement-detail {
  background: #FFFFFF !important;
}

/* ─── DUAL CTA BLOCK (hero section filing buttons) ──────────── */
body.page-settlement-detail .dual-cta-primary {
  background: #00B37D !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 179, 125, 0.35) !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}

body.page-settlement-detail .dual-cta-primary:hover {
  background: #009669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(0, 179, 125, 0.45) !important;
}

body.page-settlement-detail .dual-cta-secondary {
  background: #F9FAFB !important;
  color: #374151 !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: background 0.2s, border-color 0.2s !important;
}

body.page-settlement-detail .dual-cta-secondary:hover {
  background: #F3F4F6 !important;
  border-color: #D1D5DB !important;
}

/* ─── H2 HEADINGS IN CONTENT SECTIONS ───────────────────────── */
body.page-settlement-detail .detail-section h2,
body.page-settlement-detail .detail-content h2:not(.pcalc-title):not(.sr-quick-facts__title) {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0A0A0A !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.01em !important;
}

/* ─── STICKY URGENCY BAR BOTTOM: EMERALD ────────────────────── */
body.page-settlement-detail #stickyUrgencyBar {
  background: #00B37D !important;
  color: #FFFFFF !important;
}

body.page-settlement-detail .bar-cta {
  background: #00B37D !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
}

/* ─── SIDEBAR DARK CARDS: OVERRIDE WITH WHITE ───────────────── */
body.page-settlement-detail #ms2SidebarWidget {
  background: #F9FAFB !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 16px !important;
}

body.page-settlement-detail #ms2SidebarWidget *[style*="rgba(255,255,255"] {
  color: #374151 !important;
}

/* ─── v3.2 GLOBAL TYPOGRAPHY ENFORCEMENT ─────────────────────── */
/* Base: DM Sans for all body text, Fraunces for all headings */
body.page-settlement-detail {
  font-family: 'DM Sans', sans-serif !important;
  color: #1F2A37 !important;
}

body.page-settlement-detail h1,
body.page-settlement-detail h2,
body.page-settlement-detail h3 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #0A0A0A !important;
}

body.page-settlement-detail p,
body.page-settlement-detail li,
body.page-settlement-detail span,
body.page-settlement-detail td,
body.page-settlement-detail label {
  font-family: 'DM Sans', sans-serif !important;
}

/* ─── v3.2 RELATED SETTLEMENTS SECTION ───────────────────────── */
body.page-settlement-detail #related-settlements-grid {
  background: #FFFFFF !important;
  border-top: 2px solid #E5E7EB !important;
}

body.page-settlement-detail #related-settlements-grid h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: #0A0A0A !important;
}

body.page-settlement-detail #related-settlements-grid a {
  border-color: #E5E7EB !important;
}

body.page-settlement-detail #related-settlements-grid a:hover {
  border-color: #00B37D !important;
  box-shadow: 0 4px 16px rgba(0, 179, 125, 0.12) !important;
}

/* ─── v3.2 FOOTER CONTAINMENT — white bg ────────────────────── */
body.page-settlement-detail .sr-footer,
body.page-settlement-detail .site-footer,
body.page-settlement-detail .sr-ramsey-footer,
body.page-settlement-detail footer[role="contentinfo"],
body.page-settlement-detail footer.footer {
  background-color: #FFFFFF !important;
  color: #1F2A37 !important;
  border-top: 1px solid #E5E7EB !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

body.page-settlement-detail .sr-footer *,
body.page-settlement-detail .site-footer *,
body.page-settlement-detail .sr-ramsey-footer *,
body.page-settlement-detail footer.footer * {
  color: inherit !important;
}

body.page-settlement-detail .sr-footer a,
body.page-settlement-detail .site-footer a,
body.page-settlement-detail .sr-ramsey-footer a,
body.page-settlement-detail footer.footer a {
  color: #1F2A37 !important;
}

body.page-settlement-detail .sr-footer a:hover,
body.page-settlement-detail .site-footer a:hover,
body.page-settlement-detail .sr-ramsey-footer a:hover,
body.page-settlement-detail footer.footer a:hover {
  color: #FFFFFF !important;
}

/* Prevent main content from bleeding into footer zone */
body.page-settlement-detail .sr-ramsey-footer,
body.page-settlement-detail footer[role="contentinfo"] {
  isolation: isolate !important;
  contain: layout style !important;
}

/* ─── v3.2 MOTION: FADE-IN-UP ON SECTIONS ───────────────────── */
body.page-settlement-detail .detail-section,
body.page-settlement-detail .sidebar-card,
body.page-settlement-detail .quick-facts-card {
  animation: sd-fade-in-up 0.4s ease both !important;
}

@keyframes sd-fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── v3.2 SHIMMER BUTTON EFFECT ─────────────────────────────── */
body.page-settlement-detail .sidebar-btn-xl::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
  animation: sd-shimmer 2.5s infinite !important;
}

@keyframes sd-shimmer {
  0% { left: -100%; }
  60%, 100% { left: 130%; }
}

/* ─── v3.2 BLUE → EMERALD PURGE ─────────────────────────────── */
/* Override remaining blue inline colors from legacy sections with emerald */
body.page-settlement-detail .sr-micro-check {
  background: linear-gradient(135deg, #E6F9F3, #d1fae5) !important;
  border-color: #00B37D !important;
}

body.page-settlement-detail .sr-micro-check-price {
  color: #00B37D !important;
}

body.page-settlement-detail .sr-micro-check-pack-link {
  color: #00B37D !important;
  background: rgba(0, 179, 125, 0.1) !important;
}

body.page-settlement-detail .hero-no-proof-badge {
  background: #E6F9F3 !important;
  border-color: #00B37D !important;
}

body.page-settlement-detail .hero-elig-checklist {
  border-color: #E6F9F3 !important;
}

body.page-settlement-detail .viewing-now-badge {
  background: #E6F9F3 !important;
  border-color: rgba(0, 179, 125, 0.3) !important;
  color: #00B37D !important;
}

/* Override any remaining blue-colored links/text with emerald */
body.page-settlement-detail [style*="color:#2563eb"],
body.page-settlement-detail [style*="color:#1d4ed8"],
body.page-settlement-detail [style*="color: #2563eb"],
body.page-settlement-detail [style*="color: #1d4ed8"] {
  color: #00B37D !important;
}

body.page-settlement-detail [style*="background:#dbeafe"],
body.page-settlement-detail [style*="background:linear-gradient(135deg,#eff6ff,#dbeafe)"],
body.page-settlement-detail [style*="background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%)"] {
  background: #E6F9F3 !important;
}

body.page-settlement-detail [style*="border-color: #2563eb"],
body.page-settlement-detail [style*="border:1.5px solid #3b82f6"],
body.page-settlement-detail [style*="border:2px solid #3b82f6"],
body.page-settlement-detail [style*="border:2px solid #0055B8"] {
  border-color: #00B37D !important;
}

