/*
 * settlement-detail-ramsey.css
 * Ramsey Solutions article-page layout overrides for SettlementRadar settlement detail pages.
 * Adds: reading progress bar, Key Takeaways box, white/light backgrounds,
 *       Ramsey-style card shadows, and clean typography.
 *
 * Import order: loaded AFTER settlement-detail.min.css so these override defaults.
 */

/* ── Design Tokens (Ramsey-inspired) ───────────────────────────────── */
:root {
  --sr-primary: #16a34a;          /* green primary */
  --sr-primary-dark: #15803d;
  --sr-navy: #003561;
  --sr-text-base: #1f2426;
  --sr-text-subdued: #495257;
  --sr-text-link: #16a34a;
  --sr-bg-page: #f5f7f8;
  --sr-bg-white: #ffffff;
  --sr-border: #d5d9db;
  --sr-shadow-card: 0 4px 16px 0 rgba(31,36,38,0.10);
  --sr-shadow-elevated: 0 8px 24px 0 rgba(31,36,38,0.14);
  --sr-radius-card: 16px;
  --sr-radius-btn: 6px;
  --sr-transition: all 0.25s cubic-bezier(0.19,1,0.22,1);
}

/* ── Reading Progress Bar (Ramsey pattern) ──────────────────────────── */
#sr-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--sr-primary);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Global page background → light ─────────────────────────────────── */
body {
  background: var(--sr-bg-page) !important;
}

/* ── Detail Hero: white background, dark text ───────────────────────── */
.detail-hero {
  background: var(--sr-bg-white) !important;
  border-bottom: 1px solid var(--sr-border);
  padding-bottom: 0 !important;
}

/* Hero breadcrumb — Ramsey blue link style */
.breadcrumb-nav a {
  color: var(--sr-primary) !important;
  font-size: 0.875rem;
  font-weight: 400;
}
.breadcrumb-nav a:hover {
  color: var(--sr-primary-dark) !important;
  text-decoration: underline;
}
.breadcrumb-sep {
  color: #8e999e !important;
}
.breadcrumb-current {
  color: #69757a !important;
  font-size: 0.875rem;
}

/* H1 title — dark, bold, authoritative */
.detail-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 700 !important;
  color: var(--sr-text-base) !important;
  letter-spacing: -0.5px !important;
  line-height: 1.15 !important;
  margin-bottom: 0.5rem !important;
}

/* Company + summary — dark subdued text */
.detail-company {
  color: var(--sr-text-subdued) !important;
  font-size: 1rem;
}
.detail-company a {
  color: var(--sr-text-subdued) !important;
}
.detail-summary {
  color: var(--sr-text-subdued) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

/* Verified badge — light green */
.sr-verified-badge {
  background: rgba(22,163,74,0.08) !important;
  border: 1px solid rgba(22,163,74,0.25) !important;
  color: #16a34a !important;
}

/* Category badge */
.card-category {
  background: rgba(22,163,74,0.08) !important;
  color: #166534 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}

/* Deadline badges on white bg */
.card-deadline {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}
.card-deadline.warning {
  background: #fffbeb !important;
  color: #92400e !important;
  border-color: rgba(245,158,11,0.3) !important;
}
.card-deadline.urgent,
.card-deadline.last-chance {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border-color: rgba(239,68,68,0.25) !important;
}
.card-deadline.expired {
  background: #f8fafc !important;
  color: #64748b !important;
  border-color: rgba(100,116,139,0.2) !important;
}

/* ── Key Stats Strip (horizontal, Ramsey-style) ─────────────────────── */
.detail-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.18) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin: 1.5rem 0 0 !important;
}
.detail-stat {
  flex: 1 !important;
  min-width: 140px !important;
  padding: 1rem 1.25rem !important;
  background: transparent !important;
  border-right: 1px solid rgba(22,163,74,0.12) !important;
  text-align: left !important;
}
.detail-stat:last-child {
  border-right: none !important;
}
.detail-stat-label {
  color: #6b7280 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 0.3rem !important;
}
.detail-stat-value {
  color: var(--sr-text-base) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
}
.detail-stat-sub {
  color: #6b7280 !important;
  font-size: 0.78rem !important;
}
.detail-stat-sub.good {
  color: #16a34a !important;
}

/* No-proof banner — light green */
.detail-header [style*="rgba(21,128,61"] {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.25) !important;
}

/* ── Key Takeaways Box (Ramsey pattern) ──────────────────────────────── */
.sr-key-takeaways {
  background: #f5f7f8;
  border: 1px solid var(--sr-border);
  border-left: 4px solid var(--sr-primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}
.sr-key-takeaways-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sr-primary);
  margin-bottom: 0.75rem;
}
.sr-key-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sr-key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--sr-text-base);
  line-height: 1.5;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sr-key-takeaways li:last-child {
  border-bottom: none;
}
.sr-key-takeaways li::before {
  content: '✓';
  color: var(--sr-primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Detail Body — light background ─────────────────────────────────── */
.detail-body {
  background: var(--sr-bg-page) !important;
  padding: 2rem !important;
}

/* ── Content Layout: two columns (65%/35%) ───────────────────────────── */
.content-with-sidebar {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 2rem !important;
  align-items: start !important;
}

/* ── Main Content Column ─────────────────────────────────────────────── */
.detail-content {
  gap: 1.5rem !important;
}

/* Detail sections — white card style */
.detail-section {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius-card);
  box-shadow: var(--sr-shadow-card);
  padding: 1.5rem 1.75rem !important;
  border: none !important;
  overflow: visible !important;
}

/* Section H2 headings */
.detail-section h2 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--sr-text-base) !important;
  margin-bottom: 1rem !important;
  line-height: 1.25 !important;
}

/* Eligibility box — light green inside white card */
.eligibility-box,
.proof-box {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  border-radius: 8px !important;
  color: var(--sr-text-base) !important;
}
.proof-box {
  background: #fffbeb !important;
  border-color: rgba(245,158,11,0.2) !important;
}

/* Details text — readable */
.details-text {
  color: var(--sr-text-base) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* ── Payout Estimator — white card ───────────────────────────────────── */
.pe-widget {
  background: var(--sr-bg-white) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}
.pe-widget::before {
  display: none !important;
}
.pe-badge {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
  color: #16a34a !important;
}
.pe-title {
  color: var(--sr-text-base) !important;
  font-family: inherit !important;
}
.pe-range-min { color: #6b7280 !important; }
.pe-range-max { color: #16a34a !important; }
.pe-range-track {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
}
.pe-range-fill {
  background: linear-gradient(90deg, rgba(22,163,74,0.3), rgba(22,163,74,0.8)) !important;
}
.pe-range-dot {
  background: #16a34a !important;
  border-color: #fff !important;
}
.pe-range-dot-label {
  background: #16a34a !important;
  color: #fff !important;
}
.pe-range-dot-label::after {
  border-top-color: #16a34a !important;
}
.pe-most-common {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
}
.pe-most-common-text { color: var(--sr-text-base) !important; }
.pe-most-common-text strong { color: #16a34a !important; }
.pe-tier {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}
.pe-tier-label { color: #6b7280 !important; }
.pe-tier-amount { color: var(--sr-text-base) !important; }
.pe-tier-high { color: #16a34a !important; }
.pe-vs-track {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
}
.pe-vs-pct { color: #16a34a !important; }
.pe-share { border-top-color: #e5e7eb !important; }
.pe-share-label { color: #6b7280 !important; }
.pe-math-breakdown {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}

/* ── Payout Calculator — white card ─────────────────────────────────── */
.payout-calc {
  background: var(--sr-bg-white) !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
}
.pcalc-badge {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
  color: #16a34a !important;
}
.pcalc-eyebrow { color: #6b7280 !important; }
.pcalc-amount { color: var(--sr-text-base) !important; }
.pcalc-amount-sub { color: #6b7280 !important; }
.pcalc-breakdown-item { color: #6b7280 !important; }
.pcalc-breakdown-max { color: #16a34a !important; }
.pcalc-quiz-progress-wrap {
  background: #e5e7eb !important;
  border-radius: 999px !important;
}
.pcalc-quiz-progress-bar {
  background: #16a34a !important;
}
.pcalc-amount-mini { background: #f0fdf4 !important; border-color: rgba(22,163,74,0.2) !important; }
.pcalc-amount-mini-label { color: #6b7280 !important; }
.pcalc-amount-mini-value { color: #16a34a !important; }
.pcalc-q-text { color: var(--sr-text-base) !important; }
.pcalc-btn-yes {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}
.pcalc-btn-no {
  background: #fff !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}
.pcalc-btn-no:hover {
  background: #f9fafb !important;
}
.pcalc-result { background: transparent !important; border: none !important; }
.pcalc-result-amount { color: #16a34a !important; }
.pcalc-result-head { color: var(--sr-text-base) !important; }
.pcalc-result-sub { color: #6b7280 !important; }
.pcalc-browse-btn {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
.pcalc-restart { color: #6b7280 !important; }
.pcalc-fullcalc-link { color: #16a34a !important; }
.pcalc-trust-row span { color: #6b7280 !important; }

/* ── Quiz Section — white card ──────────────────────────────────────── */
.quiz-section {
  background: var(--sr-bg-white) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}
.quiz-header { color: var(--sr-text-base) !important; }
.quiz-header h2 { color: var(--sr-text-base) !important; }
.quiz-subtitle { color: #6b7280 !important; }
.quiz-progress-wrap {
  background: #e5e7eb !important;
}
.quiz-progress-bar { background: #16a34a !important; }
.quiz-progress-label { color: #6b7280 !important; }
.quiz-q-text { color: var(--sr-text-base) !important; }
.quiz-yes {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
.quiz-no {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
.quiz-result { background: transparent !important; border: none !important; }
.quiz-result h3 { color: var(--sr-text-base) !important; }
.quiz-result p { color: #6b7280 !important; }
.quiz-refer-nudge {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  color: var(--sr-text-base) !important;
}
.quiz-refer-nudge a { color: #16a34a !important; }
.quiz-browse-btn {
  background: #f9fafb !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
}
.quiz-restart { color: #6b7280 !important; }

/* ── Email Capture Widget — light (replaces dark gradient) ──────────── */
.email-capture-widget {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  backdrop-filter: none !important;
  border-radius: 12px !important;
}
.email-capture-widget::before { display: none !important; }
.email-capture-headline {
  color: var(--sr-text-base) !important;
}
.email-capture-sub {
  color: #6b7280 !important;
}
.email-capture-input {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: var(--sr-text-base) !important;
}
.email-capture-input::placeholder { color: #9ca3af !important; }
.email-capture-input:focus {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.15) !important;
}
.email-capture-btn {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #fff !important;
}
.email-capture-confirm {
  color: #16a34a !important;
}
/* Privacy note */
.email-capture-widget [style*="rgba(255,255,255,0.3)"] {
  color: #9ca3af !important;
}

/* ── Howto Guide Link — white card ───────────────────────────────────── */
.howto-guide-link {
  background: var(--sr-bg-white) !important;
  border-color: var(--sr-border) !important;
  border-radius: 12px !important;
}
.howto-text strong { color: var(--sr-text-base) !important; }
.howto-text span { color: #6b7280 !important; }
.howto-guide-btn {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

/* ── Also Eligible Widget — white card ────────────────────────────────── */
.also-eligible-widget {
  background: var(--sr-bg-white) !important;
  border-radius: 12px !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}
.also-eligible-widget h3 { color: var(--sr-text-base) !important; }
.also-eligible-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}
.also-eligible-title { color: var(--sr-text-base) !important; }
.also-eligible-company { color: #6b7280 !important; }
.also-eligible-payout { color: #16a34a !important; }
.also-eligible-arrow { color: #9ca3af !important; }

/* ── Upvote Widget — light ────────────────────────────────────────────── */
#settlementUpvoteWidget {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
}
#settlementUpvoteWidget [style*="text-transform:uppercase"] {
  color: #6b7280 !important;
}
#detailUpvoteBtn {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.3) !important;
  color: #16a34a !important;
}
#detailUpvoteCount { color: #6b7280 !important; }
#detailUpvoteCount span { color: #f97316 !important; }
#detailUpvoteThanks { color: #16a34a !important; }

/* ── Star Rating Widget — light ──────────────────────────────────────── */
#settlementRating {
  background: var(--sr-bg-white) !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
}
#settlementRating p { color: #6b7280 !important; }
#settlementRating [style*="color:#cbd5e1"] { color: var(--sr-text-base) !important; }
#settlementRating .star-btn[style*="334155"] { color: #d1d5db !important; }

/* ── Testimonials Section — white cards ──────────────────────────────── */
.testimonials-section {
  background: var(--sr-bg-white) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
  padding: 1.5rem !important;
}
.testimonials-heading { color: var(--sr-text-base) !important; }
.testimonial-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
}
.testimonial-text { color: var(--sr-text-base) !important; }
.testimonial-author { color: #6b7280 !important; }
.testimonial-stars { color: #f59e0b !important; }

/* ── Comments Section — white card ──────────────────────────────────── */
.comments-section {
  background: var(--sr-bg-white) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}

/* ── Related Section ─────────────────────────────────────────────────── */
.related-main {
  background: var(--sr-bg-white) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}
.related-main h3 { color: var(--sr-text-base) !important; }
.related-main h2 { color: var(--sr-text-base) !important; }

/* ── Related Cards — light theme ────────────────────────────────────── */
.related-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.related-card:hover {
  border-color: rgba(22,163,74,0.3) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  background: #fff !important;
}
.related-card-header { color: var(--sr-text-base) !important; }
.related-card-category {
  background: rgba(22,163,74,0.08) !important;
  color: #166534 !important;
}
.related-card-title { color: var(--sr-text-base) !important; }
.related-card-meta { color: #6b7280 !important; }
.related-card-payout { color: #16a34a !important; }
.related-card-deadline { color: #6b7280 !important; }
.related-see-all { color: #16a34a !important; }

/* ── Filing Exit Popup — light theme ───────────────────────────────── */
.filing-exit-popup {
  background: #fff !important;
  border: 2px solid #16a34a !important;
}
.filing-exit-popup h3 { color: var(--sr-text-base) !important; }
.filing-exit-popup p { color: #6b7280 !important; }
.filing-exit-popup [style*="color:#f1f5f9"],
.filing-exit-popup [style*="color:#e2e8f0"],
.filing-exit-popup [style*="color:rgba(255,255,255"] {
  color: var(--sr-text-base) !important;
}

/* ── DYGP "Did You Get Paid?" Widget — light theme ──────────────── */
.dygp-inner {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
}
.dygp-title { color: var(--sr-text-base) !important; }
.dygp-subtitle { color: #6b7280 !important; }
.dygp-input {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: var(--sr-text-base) !important;
}
.dygp-input::placeholder { color: #9ca3af !important; }
.dygp-btn {
  background: #16a34a !important;
  color: #fff !important;
}
.dygp-no-data { color: #6b7280 !important; }
.dygp-bar-label { color: var(--sr-text-base) !important; }
.dygp-bar-count { color: #6b7280 !important; }

/* ── Bottom Email Capture — light theme ─────────────────────────── */
.bottom-email-capture {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  border-radius: 12px !important;
}
.bottom-email-capture h3 { color: var(--sr-text-base) !important; }
.bottom-email-capture p { color: #6b7280 !important; }
.bottom-email-capture input {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: var(--sr-text-base) !important;
}
.bottom-email-capture input::placeholder { color: #9ca3af !important; }
.bottom-email-capture button {
  background: #16a34a !important;
  color: #fff !important;
}

/* ── Email Capture Inline — light theme ─────────────────────────── */
.email-capture-inline {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  border-radius: 12px !important;
}
.email-capture-inline .email-capture-headline { color: var(--sr-text-base) !important; }
.email-capture-inline .email-capture-sub { color: #6b7280 !important; }

/* ── Activity Toast — light theme ───────────────────────────────── */
.activity-toast {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}
.activity-toast-msg { color: var(--sr-text-base) !important; }
.activity-toast-time { color: #6b7280 !important; }
.activity-toast-close { color: #9ca3af !important; }

/* ── Catch-all: force dark text on any remaining light-on-dark text ── */
.detail-body [style*="color:#f1f5f9"] { color: var(--sr-text-base) !important; }
.detail-body [style*="color:#e2e8f0"] { color: var(--sr-text-base) !important; }
.detail-body [style*="color:rgba(255,255,255,0."] { color: #6b7280 !important; }
.detail-body [style*="color:#4ade80"] { color: #16a34a !important; }
.detail-body [style*="color:#86efac"] { color: #16a34a !important; }

/* ── Catch-all: force light backgrounds on remaining dark backgrounds ── */
.detail-body [style*="background:rgba(13,53,32"] { background: #f0fdf4 !important; }
.detail-body [style*="background:rgba(10,42,27"] { background: #f0fdf4 !important; }
.detail-body [style*="background:rgba(15,23,42"] { background: #f9fafb !important; }
.detail-body [style*="background:#071a0e"] { background: #fff !important; }
.detail-body [style*="background:#0a2a1b"] { background: #fff !important; }
.detail-body [style*="background:linear-gradient(135deg,#071a0e"] { background: #fff !important; }
.detail-body [style*="background:linear-gradient(135deg, rgba(13,53,32"] { background: #f0fdf4 !important; }

/* ── Alert Card — light green ────────────────────────────────────────── */
.settlement-alert-card {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}
.settlement-alert-card strong { color: var(--sr-text-base) !important; }
.settlement-alert-card span { color: #6b7280 !important; }

/* Fix inline dark alert cards */
[style*="background:rgba(13,53,32"] {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
}
[style*="background:linear-gradient(135deg,#0d3520"] {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
}

/* ── Inline Eligibility CTA — light ─────────────────────────────────── */
.inline-eligibility-cta {
  background: #f0fdf4 !important;
  border: 2px solid rgba(22,163,74,0.3) !important;
}
.inline-eligibility-cta .iec-badge {
  background: rgba(22,163,74,0.1) !important;
  color: #16a34a !important;
  border-color: rgba(22,163,74,0.25) !important;
}
.inline-eligibility-cta h3 { color: var(--sr-text-base) !important; }
.inline-eligibility-cta p { color: #6b7280 !important; }
.inline-eligibility-cta .iec-trust { color: #6b7280 !important; }

/* ── Case Table — clean ─────────────────────────────────────────────── */
.case-table td {
  color: var(--sr-text-base) !important;
  border-color: #e5e7eb !important;
}

/* ── Recommended Resources — white card ──────────────────────────────── */
.recommended-resources-section {
  background: var(--sr-bg-white) !important;
  border-radius: 12px !important;
  box-shadow: var(--sr-shadow-card) !important;
  border: 1px solid var(--sr-border) !important;
}

/* ── CTA Guide Card — light ─────────────────────────────────────────── */
.detail-section[style*="cgGuideBg"] {
  background: #f0fdf4 !important;
}

/* ── Legal Help Section — light ──────────────────────────────────────── */
#legalHelpSection {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}

/* ── Running out of time CTA → white card style ──────────────────────── */
.above-fold-cta-strip {
  background: var(--sr-bg-white) !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  box-shadow: var(--sr-shadow-card) !important;
}
.above-fold-cta-btn {
  background: #16a34a !important;
  color: #fff !important;
  border-radius: var(--sr-radius-btn) !important;
}
.above-fold-cta-btn:hover {
  background: #15803d !important;
}
.above-fold-trust-micro {
  border-top-color: #e5e7eb !important;
  color: #6b7280 !important;
}

/* ── "Get alerted" box — white ──────────────────────────────────────── */
#emailCaptureMain {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}

/* ── Social Proof Strip — light ─────────────────────────────────────── */
.ssp-strip {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.25rem !important;
}
.ssp-value { color: var(--sr-text-base) !important; }

/* ── Hero Badges Strip — light ───────────────────────────────────────── */
.hero-badges-strip {
  padding: 0.75rem 0 !important;
}
.hero-payout-badge,
.hero-difficulty-badge,
.hero-claimed-badge {
  background: #f0fdf4 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  color: var(--sr-text-base) !important;
}
.hero-payout-value { color: #16a34a !important; }

/* ── Share Strip — light ─────────────────────────────────────────────── */
.detail-share-strip {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 1rem !important;
}
.detail-share-headline { color: var(--sr-text-base) !important; }

/* ── Deadline Timer — white card ─────────────────────────────────────── */
.top-deadline-timer {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
}
.top-deadline-timer.tdt-critical {
  background: #fef2f2 !important;
  border-color: rgba(239,68,68,0.25) !important;
}
.top-deadline-timer.tdt-warn {
  background: #fffbeb !important;
  border-color: rgba(245,158,11,0.25) !important;
}
.tdt-dont-miss { color: var(--sr-text-base) !important; }
.tdt-sub { color: #6b7280 !important; }
.tdt-num { color: var(--sr-text-base) !important; }
.tdt-lbl { color: #6b7280 !important; }

/* ── Deadline Reminder Widget — light ────────────────────────────────── */
.deadline-reminder-widget {
  background: #fffbeb !important;
  border-color: rgba(245,158,11,0.25) !important;
}
.drw-text strong { color: #92400e !important; }
.drw-text span { color: #6b7280 !important; }
.drw-input {
  background: #fff !important;
  border-color: rgba(245,158,11,0.3) !important;
  color: var(--sr-text-base) !important;
}
.drw-input::placeholder { color: #9ca3af !important; }
.drw-btn {
  background: #d97706 !important;
  color: #fff !important;
}

/* ── Deadline Countdown (in stats) — light ───────────────────────────── */
.deadline-countdown-block {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
.cd-num { color: var(--sr-text-base) !important; }
.cd-label { color: #6b7280 !important; }

/* ── Filing CTA (large green button) ────────────────────────────────── */
#file-claim {
  scroll-margin-top: 80px;
}
.filing-cta-main-btn {
  display: block;
  width: 100%;
  background: #16a34a;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: var(--sr-transition);
  box-shadow: 0 4px 16px rgba(22,163,74,0.25);
  margin: 1.25rem 0 0.5rem;
}
.filing-cta-main-btn:hover {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22,163,74,0.35);
  transform: translateY(-1px);
}

/* ── SIDEBAR: Ramsey card style ──────────────────────────────────────── */
.sidebar {
  position: sticky !important;
  top: 80px !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
.sidebar::-webkit-scrollbar { display: none !important; }

/* Base sidebar card — white, shadow */
.sidebar-card,
.quick-facts-card,
.sidebar-related-card,
.sidebar-share-card,
.sidebar-cta,
.sidebar-pro-alert,
.sidebar-affiliate {
  background: var(--sr-bg-white) !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: var(--sr-radius-card) !important;
  box-shadow: var(--sr-shadow-card) !important;
}
.sidebar-card h3 { color: var(--sr-text-base) !important; }
.sidebar-card h4 { color: var(--sr-text-base) !important; }
.sidebar-card p { color: #6b7280 !important; }

/* Quick Facts card */
.quick-facts-card {
  padding: 1.25rem !important;
}
.qf-header {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #6b7280 !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.qf-item {
  border-color: #e5e7eb !important;
}
.qf-label { color: #6b7280 !important; }
.qf-value { color: var(--sr-text-base) !important; }
.qf-value.qf-green { color: #16a34a !important; }
.qf-value.qf-red { color: #dc2626 !important; }
.qf-value.qf-yellow { color: #d97706 !important; }

/* Quick Facts CTA button — green, not orange */
.qf-cta {
  display: block !important;
  background: #16a34a !important;
  color: #fff !important;
  border-radius: var(--sr-radius-btn) !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 0.75rem 1rem !important;
  text-decoration: none !important;
  margin-top: 1rem !important;
  transition: var(--sr-transition) !important;
  font-size: 0.95rem !important;
}
.qf-cta:hover {
  background: #15803d !important;
  color: #fff !important;
}
.qf-trust {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  font-size: 0.7rem !important;
  color: #6b7280 !important;
  margin-top: 0.6rem !important;
}

/* Sidebar CTA — white with green button */
.sidebar-cta {
  border-color: rgba(22,163,74,0.2) !important;
  background: var(--sr-bg-white) !important;
}
.sidebar-cta-badge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
  border-radius: 100px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.6rem !important;
  display: inline-block !important;
  margin-bottom: 0.5rem !important;
}
.sidebar-cta h3 { color: var(--sr-text-base) !important; }

/* Value bullets */
.sb-value-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 0.75rem !important;
}
.sb-value-bullets li {
  color: #374151 !important;
  font-size: 0.85rem !important;
  padding: 0.25rem 0 !important;
}

/* Payout anchor */
.sb-payout-anchor {
  color: #374151 !important;
  font-size: 0.9rem !important;
}
.sb-payout-anchor strong { color: #16a34a !important; }

/* Price row */
.sidebar-cta-price-row {
  padding: 0.75rem 0 !important;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  margin-bottom: 0.75rem !important;
}
.sidebar-price-main { color: var(--sr-text-base) !important; }
.sidebar-price-sub { color: #6b7280 !important; }

/* Main sidebar button — always green */
.sidebar-btn,
.sidebar-btn-xl {
  background: #16a34a !important;
  color: #fff !important;
  border-radius: var(--sr-radius-btn) !important;
  font-weight: 700 !important;
  transition: var(--sr-transition) !important;
}
.sidebar-btn:hover,
.sidebar-btn-xl:hover {
  background: #15803d !important;
  opacity: 1 !important;
}

/* Trust micro */
.sidebar-trust-micro div {
  color: #6b7280 !important;
}
.sidebar-trust-micro div[style*="#4ade80"] {
  color: #16a34a !important;
}
.sidebar-trust-micro div[style*="#fbbf24"] {
  color: #d97706 !important;
}

/* Urgency countdown */
.sidebar-urgency-countdown {
  background: #fef2f2 !important;
  border: 1px solid rgba(239,68,68,0.2) !important;
  color: #dc2626 !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
}
.sidebar-urgency-countdown.critical {
  background: #fef2f2 !important;
  color: #991b1b !important;
}
/* Non-critical urgency */
.sidebar-urgency-countdown[style*="fb923c"] {
  background: #fffbeb !important;
  border-color: rgba(245,158,11,0.25) !important;
  color: #92400e !important;
}
/* Normal deadline */
.sidebar-urgency-countdown:not(.critical):not([style*="fb923c"]) {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
  color: #166534 !important;
}

/* Remind me */
.sidebar-remind { border-top: 1px solid #e5e7eb !important; }
.remind-me-btn {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  border-radius: 6px !important;
}
.remind-me-input {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: var(--sr-text-base) !important;
}
.remind-me-submit {
  background: #16a34a !important;
  color: #fff !important;
}
.remind-me-note { color: #6b7280 !important; }
.remind-me-success { color: #16a34a !important; }

/* Print checklist */
.print-checklist-btn {
  background: #f9fafb !important;
  border: 1.5px solid #e5e7eb !important;
  color: #374151 !important;
  border-radius: 6px !important;
}

/* Cal buttons */
.cal-google { background: rgba(66,133,244,0.08) !important; border-color: rgba(66,133,244,0.2) !important; color: #3b82f6 !important; }
.cal-apple { color: #374151 !important; }
.cal-outlook { background: rgba(0,120,215,0.08) !important; border-color: rgba(0,120,215,0.2) !important; color: #0073b9 !important; }

/* Pro upsell card */
.sidebar-pro-alert {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
}
.sidebar-pro-alert h4 { color: var(--sr-text-base) !important; }
.sidebar-pro-alert .spa-sub { color: #6b7280 !important; }
.sidebar-pro-alert .spa-btn {
  background: #16a34a !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
.sidebar-pro-alert .spa-note { color: #6b7280 !important; font-size: 0.75rem !important; }

/* Related card */
.sidebar-related-card {
  padding: 1.25rem !important;
}
.sr-header {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #6b7280 !important;
  padding-bottom: 0.6rem !important;
  margin-bottom: 0.75rem !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.sr-item {
  color: var(--sr-text-base) !important;
  border-color: #e5e7eb !important;
}
.sr-title { color: var(--sr-text-base) !important; font-size: 0.88rem !important; }
.sr-payout { color: #16a34a !important; }
.sr-badge {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}
.sr-item:hover { background: #f9fafb !important; }

/* Share card */
.sidebar-share-card {
  padding: 1.25rem !important;
}
.ss-header {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #6b7280 !important;
  margin-bottom: 0.75rem !important;
}
.sidebar-share-card p { color: #6b7280 !important; }
.ss-link {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  color: #374151 !important;
}
.ss-link:hover { background: #f0fdf4 !important; border-color: rgba(22,163,74,0.2) !important; }

/* Affiliate card */
.sidebar-affiliate { padding: 1.25rem !important; }
.sidebar-affiliate h4 { color: var(--sr-text-base) !important; }
.affiliate-link {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: var(--sr-text-base) !important;
}
.affiliate-link:hover { background: #f0fdf4 !important; }

/* Closing soon dark card — fix to light */
.sidebar-card[style*="#1a0000"],
.sidebar-card[style*="2d0505"] {
  background: #fef2f2 !important;
  border: 1px solid rgba(239,68,68,0.2) !important;
}

/* ── Sticky Bottom CTA Bar ───────────────────────────────────────────── */
#stickyCtaBar {
  background: #fff !important;
  border-top: 2px solid #16a34a !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
}
.sticky-bar-headline { color: var(--sr-text-base) !important; }
.sticky-bar-sub { color: #6b7280 !important; }
.sticky-bar-btn {
  background: #16a34a !important;
  color: #fff !important;
}
.sticky-bar-btn:hover { background: #15803d !important; }
.sticky-bar-dismiss { color: #9ca3af !important; }

/* ── Legal Disclaimer Banner — light ─────────────────────────────────── */
#legalDisclaimerBanner {
  background: #fffbeb !important;
  border-bottom-color: rgba(245,158,11,0.2) !important;
}
#legalDisclaimerBanner p { color: #6b7280 !important; }
#legalDisclaimerBanner strong { color: #92400e !important; }
#legalDisclaimerBanner button { color: #9ca3af !important; }

/* ── Closed Banner — keep dark red (status signal) ───────────────────── */
/* kept as-is */

/* ── Activity Ticker — light ─────────────────────────────────────────── */
.detail-activity-ticker {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.detail-ticker-label {
  color: #dc2626 !important;
  border-right-color: #e5e7eb !important;
}
.detail-ticker-item { color: var(--sr-text-base) !important; }
.detail-ticker-time { color: #6b7280 !important; }

/* ── Checkout FAQ (in sidebar) ───────────────────────────────────────── */
.checkout-faq { color: var(--sr-text-base) !important; }
.checkout-faq dt { color: var(--sr-text-base) !important; }
.checkout-faq dd { color: #6b7280 !important; }

/* ── Filed Count display ─────────────────────────────────────────────── */
.detail-stat-value[style*="#22c55e"] { color: #16a34a !important; }

/* ── Mobile adjustments ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* On mobile, Key Takeaways stays near top; sidebar content stacks below */
}

@media (max-width: 600px) {
  .detail-body { padding: 1rem !important; }
  .detail-section { padding: 1.25rem !important; }
  .detail-stats {
    flex-direction: column !important;
  }
  .detail-stat {
    border-right: none !important;
    border-bottom: 1px solid rgba(22,163,74,0.12) !important;
  }
  .detail-stat:last-child {
    border-bottom: none !important;
  }
  .sr-key-takeaways { margin: 1rem 0 0 !important; }
  .above-fold-cta-strip { margin: 0.75rem 0 !important; }
}

/* ── Sticky Mobile Filing CTA ────────────────────────────────────────── */
@media (max-width: 900px) {
  .sr-mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    background: #fff;
    border-top: 2px solid #16a34a;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
  .sr-mobile-sticky-cta a {
    display: block;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
  }
  /* Extra bottom padding so content isn't hidden behind sticky bar */
  .detail-body {
    padding-bottom: 5rem !important;
  }
}
@media (min-width: 901px) {
  .sr-mobile-sticky-cta { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPREHENSIVE INLINE STYLE OVERRIDES — Light theme catch-alls
   Targets any remaining dark-theme inline styles that are invisible
   on white/light backgrounds.
   ═══════════════════════════════════════════════════════════════════════ */

/* Force dark text on any inline rgba white text within the detail page */
.detail-hero [style*="color:rgba(255,255,255"],
.detail-body [style*="color:rgba(255,255,255"],
.sidebar [style*="color:rgba(255,255,255"],
main [style*="color:rgba(255,255,255"] {
  color: #6b7280 !important;
}
/* Same with space after colon */
.detail-hero [style*="color: rgba(255,255,255"],
.detail-body [style*="color: rgba(255,255,255"],
.sidebar [style*="color: rgba(255,255,255"],
main [style*="color: rgba(255,255,255"] {
  color: #6b7280 !important;
}

/* Force dark text on #f1f5f9 inline (near-white) */
.detail-hero [style*="color:#f1f5f9"],
.detail-body [style*="color:#f1f5f9"],
.sidebar [style*="color:#f1f5f9"],
main [style*="color:#f1f5f9"] {
  color: var(--sr-text-base) !important;
}
.detail-hero [style*="color: #f1f5f9"],
.detail-body [style*="color: #f1f5f9"],
.sidebar [style*="color: #f1f5f9"],
main [style*="color: #f1f5f9"] {
  color: var(--sr-text-base) !important;
}

/* Fix #e2e8f0 inline text (light gray text on dark bg) */
main [style*="color:#e2e8f0"],
main [style*="color: #e2e8f0"] {
  color: var(--sr-text-base) !important;
}

/* Fix green accent text (#4ade80 is too light for white bg) */
main [style*="color:#4ade80"],
main [style*="color: #4ade80"] {
  color: #16a34a !important;
}
main [style*="color:#86efac"],
main [style*="color: #86efac"] {
  color: #16a34a !important;
}

/* Fix dark background inline styles */
main [style*="background:rgba(13,53,32"],
main [style*="background: rgba(13,53,32"],
main [style*="background:rgba(10,42,27"],
main [style*="background: rgba(10,42,27"] {
  background: #f0fdf4 !important;
  border-color: rgba(22,163,74,0.2) !important;
}
main [style*="background:rgba(15,23,42"],
main [style*="background: rgba(15,23,42"] {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}
main [style*="background:#071a0e"],
main [style*="background: #071a0e"],
main [style*="background:#0a2a1b"],
main [style*="background: #0a2a1b"] {
  background: #fff !important;
  border-color: #e5e7eb !important;
}

/* Fix rgba white background inline styles */
main [style*="background:rgba(255,255,255,0.0"],
main [style*="background: rgba(255,255,255,0.0"] {
  background: #f9fafb !important;
}

/* Fix rgba white border inline styles */
main [style*="border:1px solid rgba(255,255,255"],
main [style*="border: 1px solid rgba(255,255,255"],
main [style*="border-color:rgba(255,255,255"],
main [style*="border-color: rgba(255,255,255"] {
  border-color: #e5e7eb !important;
}

/* ── Force strong tags inside overridden elements to be readable ──── */
main [style*="color:rgba(255,255,255"] strong,
main [style*="color: rgba(255,255,255"] strong {
  color: #111827 !important;
}

/* ── Sidebar trust badges — ensure readable on white ─────────────── */
.sidebar [style*="color:rgba(255,255,255"] {
  color: #6b7280 !important;
}
.sidebar strong[style*="color:#4ade80"],
.sidebar strong[style*="color: #4ade80"] {
  color: #16a34a !important;
}

/* ── Separator bars (vertical pipes using near-invisible colors) ──── */
main [style*="color:rgba(255,255,255,0.12)"],
main [style*="color: rgba(255,255,255,0.12)"] {
  color: #e5e7eb !important;
}
