/* ═══════════════════════════════════════════════════════════════════════
   SETTLEMENTRADAR — RAMSEY SOLUTIONS-INSPIRED DESIGN SYSTEM
   Based on design audit report #337061 (April 7, 2026)

   Adapts Ramsey's exact design tokens to SettlementRadar brand:
   • Primary: #0073b9 (blue) → adapted to SR green #22c55e for accents
   • Navy headings: #003561 — kept exactly
   • Yellow accents: #fcd214 — used sparingly for highlights
   • Full Ramsey gray scale: gray-10 through gray-90
   • 16px card radius, shadow-only cards
   • DM Sans / Plus Jakarta Sans as Gibson alternative
   ═══════════════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS: Plus Jakarta Sans (closest Gibson alternative) ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ════════════════════════════════════════════════════════════════
   SECTION 1: CSS DESIGN TOKENS (Root Variables)
   ════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Colors ── */
  --sr-primary: #22c55e;         /* SR brand green (replaces Ramsey blue) */
  --sr-primary-dark: #16a34a;    /* Hover/active state */
  --sr-primary-deeper: #15803d;  /* Deepest shade */
  --sr-navy: #003561;            /* Ramsey navy — for headings */
  --sr-navy-deep: #002342;       /* Darkest navy for hero backgrounds */
  --sr-navy-hero: #001f3d;       /* Hero section background */
  --sr-yellow: #fcd214;          /* Ramsey yellow — for CTAs on dark bg */
  --sr-yellow-light: #ffe45e;    /* Yellow hover */
  --sr-yellow-bg: rgba(252, 210, 20, 0.12); /* Yellow subtle bg */

  /* ── Gray Scale (Ramsey exact values) ── */
  --sr-gray-10: #f5f7f8;         /* Page background */
  --sr-gray-20: #e8eced;         /* Borders, table dividers */
  --sr-gray-30: #d5d9db;         /* Disabled input borders */
  --sr-gray-40: #b6bec2;         /* Default input borders */
  --sr-gray-50: #8e999e;         /* Subdued icons */
  --sr-gray-60: #69757a;         /* Footnotes, captions */
  --sr-gray-70: #495257;         /* Subdued body */
  --sr-gray-80: #333a3d;         /* Dark text */
  --sr-gray-90: #1f2426;         /* Base text (almost black) */

  /* ── Semantic Colors ── */
  --sr-text: #1f2426;            /* Default text */
  --sr-text-subdued: #495257;    /* Secondary text */
  --sr-text-muted: #69757a;      /* Muted / captions */
  --sr-text-link: #22c55e;       /* Link default (SR green) */
  --sr-text-link-hover: #16a34a; /* Link hover */
  --sr-bg-page: #f5f7f8;         /* Page background */
  --sr-bg-white: #ffffff;        /* Card / content bg */
  --sr-border: #e8eced;          /* Default borders */
  --sr-border-light: #f0f0f0;    /* Subtle borders */
  --sr-error: #cc392f;
  --sr-success: #1b8533;

  /* ── Shadow System (3 elevation levels) ── */
  --sr-shadow-low: 0 2px 4px 0 rgba(31, 36, 38, 0.10);
  --sr-shadow-mid: rgba(31, 36, 38, 0.12) 0px 4px 16px 0px;
  --sr-shadow-high: rgba(31, 36, 38, 0.18) 0px 8px 24px 0px;

  /* ── Border Radius ── */
  --sr-radius: 16px;             /* Cards */
  --sr-radius-btn: 4px;          /* Buttons */
  --sr-radius-input: 4px;        /* Inputs */
  --sr-radius-sm: 8px;           /* Small components */
  --sr-radius-pill: 100px;       /* Pills/badges */

  /* ── Typography ── */
  --sr-font: 'Plus Jakarta Sans', 'DM Sans', Arial, sans-serif;
  --sr-font-weight-normal: 400;
  --sr-font-weight-semi: 600;
  --sr-font-weight-bold: 700;

  /* ── Layout ── */
  --sr-max-width: 1200px;
  --sr-gap: 32px;

  /* ── Transitions ── */
  --sr-transition-btn: background-color 0.3s cubic-bezier(0.19,1,0.22,1), border-color 0.3s cubic-bezier(0.19,1,0.22,1), color 0.3s cubic-bezier(0.19,1,0.22,1);
  --sr-transition-menu: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 2: GLOBAL BASE OVERRIDES
   ════════════════════════════════════════════════════════════════ */

/* Apply font globally */
body {
  font-family: var(--sr-font) !important;
  color: var(--sr-text);
  background: var(--sr-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sr-font) !important;
  line-height: 1.1;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 3: TYPOGRAPHY SCALE (Ramsey exact type system)
   ════════════════════════════════════════════════════════════════ */

/* Display XL: 72/96px, weight 700 */
.sr-display-xl {
  font-family: var(--sr-font);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sr-navy);
}

/* Display Large: 60/72px */
.sr-display-lg {
  font-family: var(--sr-font);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sr-navy);
}

/* Display Medium: 48/60px */
.sr-display-md {
  font-family: var(--sr-font);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sr-navy);
}

/* Display Small: 40/48px */
.sr-display-sm {
  font-family: var(--sr-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sr-navy);
}

/* Subtitle: 24/28px, weight 400 */
.sr-subtitle {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--sr-text-subdued);
}

/* Heading Large: 28/34px */
.sr-heading-lg {
  font-family: var(--sr-font);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sr-navy);
}

/* Heading Medium: 24/28px */
.sr-heading-md {
  font-family: var(--sr-font);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sr-navy);
}

/* Heading Small: 20/24px */
.sr-heading-sm {
  font-family: var(--sr-font);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sr-text);
}

/* Body Large: 20px */
.sr-body-lg {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sr-text);
}

/* Body Medium: 18px (default) */
.sr-body {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sr-text);
}

/* Body Small: 16px */
.sr-body-sm {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sr-text-subdued);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 4: LAYOUT SYSTEM
   ════════════════════════════════════════════════════════════════ */

/* Container */
.sr-container {
  max-width: var(--sr-max-width);
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.sr-container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* 12-column grid */
.sr-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sr-gap);
}

.sr-grid--4up {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sr-gap);
}

.sr-grid--3up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sr-gap);
}

.sr-grid--2up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sr-gap);
}

/* Article layout: content + sidebar */
.sr-grid--article {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .sr-grid--4up { grid-template-columns: repeat(2, 1fr); }
  .sr-grid--3up { grid-template-columns: repeat(2, 1fr); }
  .sr-grid--article { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sr-grid--4up { grid-template-columns: 1fr; }
  .sr-grid--3up { grid-template-columns: 1fr; }
  .sr-grid--2up { grid-template-columns: 1fr; }
  .sr-grid { gap: 16px; }
}

/* Section spacing */
.sr-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.sr-section--sm {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Section backgrounds */
.sr-section--white { background: var(--sr-bg-white); }
.sr-section--gray { background: var(--sr-gray-10); }
.sr-section--navy { background: var(--sr-navy); color: #fff; }
.sr-section--navy-deep { background: var(--sr-navy-deep); color: #fff; }
.sr-section--primary { background: var(--sr-primary); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   SECTION 5: BUTTONS (Ramsey exact spec)
   ════════════════════════════════════════════════════════════════ */

/* Base button reset */
.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sr-font);
  font-weight: var(--sr-font-weight-semi);
  border-radius: var(--sr-radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--sr-transition-btn);
  line-height: 1.5;
}

/* Size: Standard */
.sr-btn { font-size: 1rem; padding: 10px 24px; }

/* Size: Large */
.sr-btn--lg { font-size: 1.125rem; padding: 14px 32px; }

/* Size: Small */
.sr-btn--sm { font-size: 0.875rem; padding: 6px 16px; }

/* Primary (Green) — light bg */
.sr-btn--primary {
  background: var(--sr-primary);
  color: #ffffff;
  border-color: transparent;
}
.sr-btn--primary:hover {
  background: var(--sr-primary-dark);
  color: #ffffff;
}

/* Yellow CTA — on dark/navy backgrounds */
.sr-btn--yellow {
  background: var(--sr-yellow);
  color: var(--sr-gray-90);
  border-color: transparent;
}
.sr-btn--yellow:hover {
  background: var(--sr-yellow-light);
  color: var(--sr-gray-90);
}

/* Ghost (outline) */
.sr-btn--ghost {
  background: transparent;
  color: var(--sr-primary);
  border-color: var(--sr-primary);
}
.sr-btn--ghost:hover {
  background: rgba(34, 197, 94, 0.08);
  color: var(--sr-primary-dark);
  border-color: var(--sr-primary-dark);
}

/* Ghost white — for use on dark backgrounds */
.sr-btn--ghost-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.sr-btn--ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

/* Text/borderless */
.sr-btn--text {
  background: transparent;
  color: var(--sr-text-link);
  border-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 2px 0 transparent;
}
.sr-btn--text:hover {
  box-shadow: 0 2px 0 var(--sr-text-link);
}

/* Disabled */
.sr-btn:disabled,
.sr-btn--disabled {
  background: var(--sr-gray-20) !important;
  color: var(--sr-gray-50) !important;
  border-color: transparent !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 6: CARDS (Ramsey: shadow-only, 16px radius)
   ════════════════════════════════════════════════════════════════ */

.sr-card {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow-mid);
  overflow: hidden;
  border: none;
  transition: box-shadow 0.3s cubic-bezier(0.19,1,0.22,1), transform 0.2s ease;
}

.sr-card--clickable {
  cursor: pointer;
}

.sr-card--clickable:hover {
  box-shadow: var(--sr-shadow-high);
  transform: translateY(-2px);
}

.sr-card--low {
  box-shadow: var(--sr-shadow-low);
}

.sr-card--elevated {
  box-shadow: var(--sr-shadow-high);
}

.sr-card__body {
  padding: 24px;
}

.sr-card__body--lg {
  padding: 32px;
}

.sr-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.sr-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sr-navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.sr-card__meta {
  font-size: 0.875rem;
  color: var(--sr-text-muted);
  margin: 0 0 0.5rem;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 7: ACCENT LINE (Ramsey signature: 4px × 72px)
   ════════════════════════════════════════════════════════════════ */

.sr-accent-line {
  display: block;
  width: 72px;
  height: 4px;
  background: var(--sr-primary);
  margin-bottom: 1rem;
  border-radius: 2px;
}

.sr-accent-line--white {
  background: #ffffff;
}

.sr-accent-line--yellow {
  background: var(--sr-yellow);
}

.sr-accent-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 8: SECTION HEADING PATTERN (with accent line)
   ════════════════════════════════════════════════════════════════ */

.sr-section-header {
  margin-bottom: 2.5rem;
}

.sr-section-header--center {
  text-align: center;
}

.sr-section-header--center .sr-accent-line {
  margin-left: auto;
  margin-right: auto;
}

.sr-section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sr-primary);
  margin-bottom: 0.75rem;
}

.sr-section-eyebrow--white {
  color: rgba(255,255,255,0.75);
}

.sr-section-title {
  font-family: var(--sr-font);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sr-navy);
  margin: 0 0 0.75rem;
}

.sr-section-title--white {
  color: #ffffff;
}

.sr-section-subtitle {
  font-size: 1.125rem;
  color: var(--sr-text-subdued);
  line-height: 1.5;
  max-width: 640px;
  margin: 0;
}

.sr-section-subtitle--white {
  color: rgba(255,255,255,0.8);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 9: HERO SECTION (Ramsey dark navy pattern)
   ════════════════════════════════════════════════════════════════ */

.sr-hero {
  background: var(--sr-navy-deep);
  color: #ffffff;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.sr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sr-hero__inner {
  position: relative;
  z-index: 1;
}

.sr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: var(--sr-radius-pill);
  margin-bottom: 1.25rem;
}

.sr-hero__title {
  font-family: var(--sr-font);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 1.25rem;
  max-width: 800px;
}

.sr-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0 0 2rem;
  max-width: 580px;
}

.sr-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.sr-hero__trust {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.sr-hero__trust strong {
  color: rgba(255,255,255,0.85);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 10: STATS BAR
   ════════════════════════════════════════════════════════════════ */

.sr-stats-bar {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow-high);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.sr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sr-stat__number {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--sr-primary);
  line-height: 1;
}

.sr-stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sr-text-muted);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 11: KEY TAKEAWAYS BOX (Ramsey article pattern)
   ════════════════════════════════════════════════════════════════ */

.sr-takeaways {
  background: var(--sr-gray-10);
  border-radius: var(--sr-radius-sm);
  padding: 24px;
  margin: 2rem 0;
}

.sr-takeaways__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sr-takeaways__icon {
  width: 24px;
  height: 24px;
  color: var(--sr-primary);
  flex-shrink: 0;
}

.sr-takeaways__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sr-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.sr-takeaways__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sr-takeaways__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 1rem;
  color: var(--sr-text);
  line-height: 1.5;
}

.sr-takeaways__list li::before {
  content: '✓';
  color: var(--sr-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 12: BREADCRUMB
   ════════════════════════════════════════════════════════════════ */

.sr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.sr-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sr-breadcrumb a {
  color: var(--sr-text-link);
  text-decoration: none;
  font-weight: 400;
}
.sr-breadcrumb a:hover {
  text-decoration: underline;
}

.sr-breadcrumb__sep {
  color: var(--sr-gray-40);
  font-size: 0.75rem;
}

.sr-breadcrumb__current {
  color: var(--sr-text-muted);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 13: ARTICLE LAYOUT
   ════════════════════════════════════════════════════════════════ */

.sr-article {
  max-width: var(--sr-max-width);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 3vw, 2rem);
}

.sr-article__header {
  margin-bottom: 2rem;
}

.sr-article__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sr-text);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.sr-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--sr-text-muted);
  margin-bottom: 1rem;
}

.sr-article__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sr-text);
  max-width: 720px;
}

.sr-article__body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--sr-navy);
  margin: 2.5rem 0 0.875rem;
  line-height: 1.2;
}

.sr-article__body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--sr-navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}

.sr-article__body p {
  margin-bottom: 1.25rem;
}

.sr-article__body a {
  color: var(--sr-text-link);
  text-decoration: none;
}
.sr-article__body a:hover {
  text-decoration: underline;
}

/* Reading progress bar */
.sr-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--sr-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Sticky TOC sidebar */
.sr-toc {
  position: sticky;
  top: 96px;
  background: var(--sr-gray-10);
  border-radius: var(--sr-radius-sm);
  padding: 20px;
}

.sr-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sr-text-muted);
  margin: 0 0 0.875rem;
}

.sr-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sr-toc__list a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--sr-text-subdued);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.sr-toc__list a:hover,
.sr-toc__list a.active {
  color: var(--sr-text-link);
  border-left-color: var(--sr-primary);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 14: CATEGORY STICKY SUB-NAV (Ramsey pattern)
   ════════════════════════════════════════════════════════════════ */

.sr-sub-nav {
  background: var(--sr-navy);
  position: sticky;
  top: var(--header-height, 96px);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.sr-sub-nav__inner {
  max-width: var(--sr-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
  overflow-x: auto;
}

.sr-sub-nav__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.sr-sub-nav__links {
  display: flex;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sr-sub-nav__links::-webkit-scrollbar { display: none; }

.sr-sub-nav__link {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 1rem;
  height: 52px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sr-sub-nav__link:hover,
.sr-sub-nav__link.active {
  color: #ffffff;
  border-bottom-color: var(--sr-yellow);
}

.sr-sub-nav__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 15: BADGE / PILL COMPONENTS
   ════════════════════════════════════════════════════════════════ */

.sr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--sr-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sr-badge--green {
  background: rgba(34,197,94,0.12);
  color: var(--sr-primary-dark);
  border: 1px solid rgba(34,197,94,0.25);
}

.sr-badge--yellow {
  background: rgba(252,210,20,0.15);
  color: #92610a;
  border: 1px solid rgba(252,210,20,0.35);
}

.sr-badge--red {
  background: rgba(204,57,47,0.1);
  color: var(--sr-error);
  border: 1px solid rgba(204,57,47,0.2);
}

.sr-badge--navy {
  background: var(--sr-navy);
  color: #ffffff;
}

.sr-badge--gray {
  background: var(--sr-gray-20);
  color: var(--sr-text-muted);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 16: EMAIL CAPTURE (Ramsey blue-bg pattern)
   ════════════════════════════════════════════════════════════════ */

.sr-email-capture {
  background: var(--sr-navy);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.sr-email-capture__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.sr-email-capture__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.sr-email-capture__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.sr-email-capture__form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.sr-email-capture__input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--sr-gray-40);
  border-radius: var(--sr-radius-input);
  color: var(--sr-text);
  font-size: 1rem;
  padding: 10px 16px;
  height: 44px;
  font-family: var(--sr-font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sr-email-capture__input:focus {
  border-color: var(--sr-yellow);
  box-shadow: inset 0 0 0 1px var(--sr-yellow);
}

.sr-email-capture__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.875rem;
  line-height: 1.5;
}

.sr-email-capture__legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}

@media (max-width: 540px) {
  .sr-email-capture__form {
    flex-direction: column;
  }
  .sr-email-capture__input { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 17: PRICING CARDS
   ════════════════════════════════════════════════════════════════ */

.sr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sr-gap);
  max-width: 960px;
  margin: 0 auto;
}

.sr-pricing-card {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow-mid);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.sr-pricing-card:hover {
  box-shadow: var(--sr-shadow-high);
  transform: translateY(-3px);
}

.sr-pricing-card--featured {
  border: 2px solid var(--sr-primary);
}

.sr-pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sr-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  border-bottom-left-radius: 8px;
}

.sr-pricing-card__tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sr-primary);
  margin-bottom: 0.5rem;
}

.sr-pricing-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sr-navy);
  margin: 0 0 1rem;
}

.sr-pricing-card__price {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--sr-navy);
  line-height: 1;
  margin: 0 0 0.25rem;
}

.sr-pricing-card__price sup {
  font-size: 1.25rem;
  vertical-align: super;
  font-weight: 600;
  line-height: 0;
}

.sr-pricing-card__period {
  font-size: 0.875rem;
  color: var(--sr-text-muted);
  margin-bottom: 1.25rem;
}

.sr-pricing-card__desc {
  font-size: 0.9375rem;
  color: var(--sr-text-subdued);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sr-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sr-pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--sr-text);
  line-height: 1.4;
}

.sr-pricing-card__features li::before {
  content: '✓';
  color: var(--sr-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 18: TOOLS PAGE (Ramsey clean list pattern)
   ════════════════════════════════════════════════════════════════ */

.sr-tools-section {
  margin-bottom: 3rem;
}

.sr-tools-section__label {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--sr-navy);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sr-gray-20);
}

.sr-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sr-tools-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sr-gray-20);
  gap: 1rem;
}

.sr-tools-list__item a {
  color: var(--sr-text-link);
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 400;
}

.sr-tools-list__item a:hover {
  text-decoration: underline;
}

.sr-tools-list__arrow {
  color: var(--sr-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SECTION 19: FORM INPUTS
   ════════════════════════════════════════════════════════════════ */

.sr-input {
  background: #ffffff;
  border: 1px solid var(--sr-gray-40);
  border-radius: var(--sr-radius-input);
  color: var(--sr-text);
  font-size: 1rem;
  padding: 10px 16px;
  height: 44px;
  font-family: var(--sr-font);
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.sr-input:focus {
  border-color: var(--sr-primary);
  box-shadow: inset 0 0 0 1px var(--sr-primary);
}

.sr-input::placeholder {
  color: var(--sr-gray-50);
}

.sr-input--error {
  border-color: var(--sr-error);
  box-shadow: inset 0 0 0 1px var(--sr-error);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 20: PAGE BACKGROUND UTILITY
   ════════════════════════════════════════════════════════════════ */

/* Main content wrapper uses page bg color */
.sr-page {
  background: var(--sr-bg-page);
  min-height: 100vh;
}

.sr-content-wrap {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius) var(--sr-radius) 0 0;
}

/* White section cards within gray page */
.sr-content-section {
  background: var(--sr-bg-white);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow-low);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 21: RESPONSIVE UTILITIES
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .sr-hero__title { max-width: 100%; }
  .sr-hero__subtitle { max-width: 100%; }
  .sr-sub-nav__cta { display: none; }
}

@media (max-width: 600px) {
  .sr-stats-bar { padding: 20px; gap: 16px; }
  .sr-hero__ctas { flex-direction: column; align-items: flex-start; }
  .sr-section-header { margin-bottom: 1.75rem; }
  .sr-article { padding: 1.5rem 1rem; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION 22: LEGACY VARIABLE BRIDGE
   (Maps old SR CSS vars to new Ramsey system so existing
   components don't break during rollout)
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Bridge old vars → new system */
  --green-accent: var(--sr-primary);
  --blue-accent: var(--sr-primary);
  --pro-green-brand: var(--sr-primary);
  --pro-green-mid: var(--sr-primary-dark);
  --pro-text-primary: var(--sr-text);
  --pro-text-secondary: var(--sr-text-subdued);
  --pro-border: var(--sr-border);
  --pro-shadow-md: var(--sr-shadow-mid);
  --pro-radius-lg: var(--sr-radius);
  --pro-max-width: var(--sr-max-width);
  --dir-green: var(--sr-primary);
  --dir-green-dark: var(--sr-primary-dark);
}
