/* ============================================================
   DegreesSources Content Site — Design System
   Mobile-first. 95% of traffic is mobile.

   Architecture:
   - Default styles = mobile (320px–767px)
   - @media (min-width: 768px) = tablet
   - @media (min-width: 1024px) = desktop

   Fonts: Source Serif 4 (headlines) + Source Sans 3 (body)
   Colors: Institutional blue primary, emerald green CTAs
   Philosophy: Editorial legitimacy + conversion clarity
   ============================================================ */

/* === Design Tokens === */
:root {
  /* --- Colors --- */
  --color-primary: #1a56db;
  --color-primary-hover: #1e40af;
  --color-secondary: #047857;
  --color-secondary-hover: #065f46;
  --color-on-primary: #ffffff;
  --color-on-secondary: #ffffff;

  --color-text: #434654;
  --color-heading: #191c1d;
  --color-muted: #6b7280;
  --color-link: #1a56db;
  --color-link-hover: #1e40af;

  --color-bg: #ffffff;
  --color-surface: #f1f3f3;
  --color-surface-raised: #f8f9fa;
  --color-border: #e5e7eb;
  --color-outline: #c3c5d7;

  --color-footer-bg: #101f30;
  --color-footer-text: #d1d5db;
  --color-footer-heading: #ffffff;
  --color-footer-muted: #6b7280;
  --color-footer-border: #1e3a5f;

  /* --- Typography --- */
  --font-headline: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Font Sizes (mobile defaults) --- */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Layout --- */
  --max-width-full: 80rem;       /* 1280px — nav, hero, footer, grids */
  --max-width-content: 56rem;    /* 896px — article body, tools */
  --max-width-prose: 46.25rem;   /* 740px — paragraphs, optimal line length */
  --nav-height: 3.5rem;          /* 56px mobile — larger touch target zone */
  --nav-height-desktop: 4rem;    /* 64px desktop */

  /* --- Radius --- */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px — inputs */
  --radius-lg: 0.75rem;   /* 12px — cards, containers */
  --radius-xl: 1rem;      /* 16px — featured cards, quiz card */
  --radius-full: 9999px;  /* pills, CTA buttons */

  /* --- Shadows (matched to Stitch mockups) --- */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.06);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}


/* === Material Symbols === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-link-hover);
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}


/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}
h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-4);
}
h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
}
h4 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-2);
}

.label-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

/* Category badge — pill label above article titles */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(4, 120, 87, 0.12);
  color: var(--color-secondary);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}


/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-width-full);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container--content {
  max-width: var(--max-width-content);
}
.container--prose {
  max-width: var(--max-width-prose);
}


/* ============================================================
   HEADER / NAV — Mobile-first
   Fixed position, persistent CTA visible during scroll
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  height: var(--nav-height);
}
.site-header-inner {
  max-width: var(--max-width-full);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.site-logo {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover {
  color: var(--color-heading);
  text-decoration: none;
}

/* Mobile: hamburger + CTA visible, nav links hidden */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-heading);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Nav links — mobile dropdown */
.site-nav {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) 0;
}
.site-nav.is-open {
  display: block;
}
.site-nav a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
  /* 44px min touch target via padding */
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-heading);
  background: var(--color-surface);
  text-decoration: none;
}

/* Nav CTA — always visible on mobile, sits next to hamburger */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast);
  min-height: 40px;
}
.nav-cta:hover {
  background: var(--color-secondary-hover);
  color: var(--color-on-secondary);
  text-decoration: none;
}

/* Header actions wrapper — CTA + hamburger on mobile */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Content offset for fixed nav */
.site-main {
  padding-top: var(--nav-height);
}


/* ============================================================
   HERO SECTIONS
   Mobile: stacked, generous touch targets
   ============================================================ */
.hero {
  padding: var(--space-12) 0 var(--space-10);
  text-align: center;
}
.hero h1 {
  margin-bottom: var(--space-4);
}
.hero p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: var(--max-width-prose);
  margin: 0 auto var(--space-6);
}
.hero .label-text {
  margin-bottom: var(--space-3);
  display: block;
}


/* ============================================================
   BUTTONS
   "One Green Thing" rule: green = action, blue = navigation
   44px minimum touch target on mobile
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  min-height: 48px;  /* comfortable mobile tap */
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  line-height: 1.4;
}
.btn:active {
  transform: scale(0.98);
}

/* Primary action — green, conversion-focused */
.btn--primary {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}
.btn--primary:hover {
  background: var(--color-secondary-hover);
  color: var(--color-on-secondary);
  text-decoration: none;
}

/* Secondary action — outlined or subtle */
.btn--secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-surface);
  text-decoration: none;
}

/* Large button variant — hero CTAs */
.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* Full-width on mobile */
.btn--block {
  width: 100%;
}


/* ============================================================
   ARTICLE LAYOUT
   Mobile: single column, full width
   Desktop: content + sidebar grid
   ============================================================ */
.article-layout {
  display: block; /* single column mobile */
}
/* === Article Hero — Centered === */
.article-hero {
  text-align: center;
  padding: var(--space-12) 0 var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-10);
}
.article-hero .label-text {
  margin-bottom: var(--space-4);
  display: inline-block;
}
.article-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-4);
}
/* Article hero meta — author, date, read time inline */
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--color-outline);
}
.breadcrumb-sep .material-symbols-outlined {
  font-size: 14px;
}
.breadcrumb-current {
  color: var(--color-primary);
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Meta dot separator */
.meta-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-outline);
  vertical-align: middle;
}

/* === Key Takeaways Box === */
.key-takeaways {
  background: #eef3ff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-card);
}
.key-takeaways h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--color-heading);
}
.key-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.key-takeaways li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}
.key-takeaways li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.key-takeaways li {
  margin-bottom: var(--space-4);
}

/* === Related Articles — Card grid on desktop === */
.related-articles {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.related-articles h3 {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.related-articles li {
  margin-bottom: 0;
}
.related-articles a {
  font-size: var(--text-base);
  color: var(--color-text);
  display: block;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.related-articles a:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  color: var(--color-primary);
  text-decoration: none;
}
.related-articles .related-category {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.related-articles .related-title {
  display: block;
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.related-articles .related-excerpt {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

/* ============================================================
   EDITORIAL BLOCKQUOTE — large pull-quote with decorative mark
   ============================================================ */
.blockquote-editorial {
  position: relative;
  padding: var(--space-8) 0;
  margin: var(--space-16) 0;
}
.blockquote-editorial::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-family: var(--font-headline);
  font-size: 6rem;
  color: rgba(26, 86, 219, 0.08);
  line-height: 1;
  pointer-events: none;
}
.blockquote-editorial blockquote {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-heading);
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--space-8);
  margin: 0;
  background: none;
  border-radius: 0;
}
.blockquote-editorial cite {
  display: block;
  margin-top: var(--space-4);
  padding-left: var(--space-8);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-muted);
}


/* ============================================================
   TIP CALLOUT — Pro Tip / Expert Tip box
   ============================================================ */
.tip-callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: rgba(4, 120, 87, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}
.tip-callout .tip-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
}
.tip-callout .tip-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}
.tip-callout p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}


/* ============================================================
   STEP LIST — numbered steps with circle markers
   ============================================================ */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.step-item {
  display: flex;
  gap: var(--space-5);
}
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xl);
}
.step-item h3 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
}
.step-item p {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}


/* Article body — prose styles */
.article-body p {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.8;
}
.article-body h2 {
  font-size: var(--text-2xl);
  margin: var(--space-16) 0 var(--space-4);
}
.article-body h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
}
.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-5) var(--space-5);
  list-style: disc;
  line-height: 1.8;
}
.article-body ol {
  list-style: decimal;
}
.article-body li {
  margin-bottom: var(--space-2);
}
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-muted);
}
.article-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(26, 86, 219, 0.3);
}
.article-body a:hover {
  text-decoration-color: var(--color-primary);
}

/* Tables — horizontal scroll on mobile */
.table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  white-space: normal;
}
.article-body th,
.article-body td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.article-body th {
  background: var(--color-surface);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-heading);
}
.article-body tbody tr {
  transition: background var(--transition-fast);
}
.article-body tbody tr:hover {
  background: var(--color-surface);
}
.article-body tbody tr:nth-child(even) {
  background: rgba(241, 243, 243, 0.3);
}
.article-body tbody tr:nth-child(even):hover {
  background: var(--color-surface);
}
.article-body tbody tr:last-child td {
  border-bottom: none;
}


/* ============================================================
   INLINE CTA — "One Green Thing" per viewport
   Soft card that blends with editorial content
   ============================================================ */
.article-cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Gradient overlay */
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  border-radius: inherit;
  z-index: 0;
}
/* Subtle decorative blur circle */
.article-cta::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(4, 120, 87, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.article-cta > * {
  position: relative;
  z-index: 1;
}
.article-cta p {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: #fff;
}
.article-cta .cta-subtext {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}
.article-cta .btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 100%; /* full width on mobile */
}
.article-cta .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   INLINE CTA — injected by builder, editorial-blended conversion
   ============================================================ */
.inline-cta {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-10) 0;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.inline-cta .btn {
  width: 100%;
  max-width: 24rem;
}


/* ============================================================
   SIDEBAR — hidden on mobile, shown on desktop
   ============================================================ */
.sidebar {
  display: none; /* hidden on mobile — content first */
}
.sidebar-widget {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.sidebar-widget h4 {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
}

/* Related articles list */
.sidebar-related a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}
.sidebar-related a:last-child {
  border-bottom: none;
}
.sidebar-related a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Email capture widget */
.sidebar-email p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}


/* ============================================================
   CARDS — article cards, feature cards, tool cards
   ============================================================ */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-body {
  padding: var(--space-5);
}
.card-body .label-text {
  margin-bottom: var(--space-2);
}
.card-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--color-heading);
}
.card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}
.card-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-3);
}

/* Card image — lazy-load friendly, aspect ratio container */
.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   CARD GRID — single column mobile, multi-column desktop
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}


/* ============================================================
   SECTIONS — tonal shifts instead of borders
   ============================================================ */
.section {
  padding: var(--space-12) 0;
}
.section--alt {
  background: var(--color-surface);
}
.section--raised {
  background: var(--color-surface-raised);
}
.section-header {
  margin-bottom: var(--space-8);
}
.section-header h2 {
  margin: 0 0 var(--space-2);
}
.section-header p {
  color: var(--color-muted);
  font-size: var(--text-lg);
}


/* ============================================================
   ARTICLE LIST — category/listing pages
   ============================================================ */
.article-list-item {
  display: block; /* stacked on mobile */
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}
.article-list-item:last-child {
  border-bottom: none;
}
.article-list-item .label-text {
  margin-bottom: var(--space-2);
  display: inline-block;
}
.article-list-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.article-list-title a {
  color: inherit;
  text-decoration: none;
}
.article-list-title a:hover {
  color: var(--color-primary);
}
.article-list-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}


/* ============================================================
   FORM INPUTS — large touch targets
   ============================================================ */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base); /* 16px prevents iOS zoom */
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 52px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  -webkit-appearance: none;
}
.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  background: var(--color-bg);
}
.input:hover:not(:focus) {
  border-color: var(--color-outline);
}
.input::placeholder {
  color: var(--color-muted);
}

/* Select inputs */
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-10);
}


/* ============================================================
   EMAIL CAPTURE — inline banner
   Green accent, high contrast
   ============================================================ */
.email-banner {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  padding: var(--space-8) 0;
}
.email-banner h3 {
  color: var(--color-on-secondary);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.email-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}
.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.email-form .input {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.email-form .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.email-form .input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.email-form .btn {
  background: var(--color-bg);
  color: var(--color-secondary);
  font-weight: 700;
}
.email-form .btn:hover {
  background: var(--color-surface);
}


/* ============================================================
   KEY TAKEAWAY / CALLOUT BOX
   ============================================================ */
.callout {
  background: #eef3ff;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}
.callout h4 {
  font-size: var(--text-base);
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
}
.callout ul {
  list-style: disc;
  margin-left: var(--space-5);
}
.callout li {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}


/* ============================================================
   SOURCES / CITATIONS
   ============================================================ */
.article-sources {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.article-sources h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}
.article-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-sources li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-1);
  line-height: 1.5;
}
.article-sources a {
  font-size: var(--text-sm);
}


/* ============================================================
   EMAIL CAPTURE CARD — inline article email capture
   Distinct from .email-banner (homepage green strip)
   ============================================================ */
.email-capture-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-12) 0;
}
.email-capture-card h3 {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}
.email-capture-card > p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 24rem;
  margin: 0 auto var(--space-6);
}
.email-capture-card .email-form {
  max-width: 28rem;
  margin: 0 auto;
}
.email-capture-card .privacy-note {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-top: var(--space-4);
}


/* ============================================================
   SECTION TONAL — full-width background shift
   ============================================================ */
.section-tonal {
  background: var(--color-surface);
  padding: var(--space-12) 0;
  margin: var(--space-12) calc(-1 * var(--space-5));
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}


/* ============================================================
   FOOTER
   Dark background, multi-column on desktop
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-10) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.footer-brand {
  margin-bottom: var(--space-2);
}
.footer-brand .site-logo {
  color: var(--color-footer-heading);
  font-size: var(--text-xl);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-top: var(--space-3);
  color: var(--color-footer-text);
}
.footer-col h5 {
  color: var(--color-footer-heading);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li {
  margin-bottom: var(--space-2);
}
.footer-col a {
  color: var(--color-footer-text);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-footer-heading);
  text-decoration: none;
}

/* Footer legal bar */
.footer-legal {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-footer-border);
  font-size: var(--text-xs);
  color: var(--color-footer-muted);
}
.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-legal a {
  color: var(--color-footer-muted);
}
.footer-legal a:hover {
  color: var(--color-footer-text);
}


/* ============================================================
   QUIZ / INTERACTIVE COMPONENTS
   ============================================================ */
.quiz-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  overflow: hidden;
  max-width: var(--max-width-prose);
  margin: 0 auto;
}
.quiz-progress {
  height: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}
.quiz-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  background: var(--color-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-heading);
  text-align: left;
  transition: border-color var(--transition-base), background var(--transition-base), border-left var(--transition-base);
  min-height: 56px;
  cursor: pointer;
}
.quiz-option:hover {
  border-color: transparent;
  background: var(--color-surface-raised);
}
.quiz-option.is-selected,
.quiz-option--selected {
  border-color: var(--color-secondary);
  border-left: 4px solid var(--color-secondary);
  background: rgba(4, 120, 87, 0.05);
}


/* ============================================================
   CALCULATOR / TOOL COMPONENTS
   ============================================================ */
.tool-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}
.form-group .input-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.result-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-card);
}
.result-card .result-value {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}
.result-card .result-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}


/* ============================================================
   TRUST SIGNALS — E-E-A-T markers
   ============================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary);
  padding: var(--space-1) var(--space-3);
  background: rgba(4, 120, 87, 0.08);
  border-radius: var(--radius-full);
}
.author-bio {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}
.author-bio img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-text {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.author-bio-text strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}


/* ============================================================
   STICKY MOBILE CTA
   Fixed bottom CTA bar — shows on scroll past hero
   The "One Green Thing" for mobile conversion
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  transform: translateY(100%);
  transition: transform 300ms ease;
}
.sticky-cta.is-visible {
  transform: translateY(0);
}
.sticky-cta .btn {
  width: 100%;
}
/* Add bottom padding to body when sticky CTA is present */
body.has-sticky-cta {
  padding-bottom: 72px;
}


/* ============================================================
   DROP CAP — narrative/story articles
   Large decorative first letter (Maria's Journey, success stories)
   ============================================================ */
.drop-cap::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 0.15rem;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-secondary);
}

/* ============================================================
   PULL QUOTE — large statement in narrative articles
   ============================================================ */
.pull-quote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) 0 var(--space-4) var(--space-8);
  margin: var(--space-12) 0;
}
.pull-quote-text {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.35;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-muted);
}

/* ============================================================
   KEY STAT BOX — centered stat highlight (narrative articles)
   e.g., "$23,000 — Total saved over 2.5 years"
   ============================================================ */
.key-stat-box {
  background: rgba(4, 120, 87, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin: var(--space-12) 0;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.key-stat-box .stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}
.key-stat-box .stat-value {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.key-stat-box .stat-description {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 28rem;
  margin: 0 auto;
}

/* ============================================================
   TIMELINE — horizontal journey steps (Maria's Journey)
   ============================================================ */
.timeline-section {
  margin: var(--space-10) 0;
  overflow-x: auto;
}
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}
.timeline-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.timeline-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-card);
}
.timeline-content {
  flex: 1;
}
.timeline-date {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
}
.timeline-event {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   BREAKDOWN ROW — horizontal bar visualization
   e.g., Pell Grant: $7,395 [===== 40% ===]
   ============================================================ */
.breakdown-section {
  margin: var(--space-8) 0;
}
.breakdown-row {
  margin-bottom: var(--space-4);
}
.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.breakdown-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
}
.breakdown-amount {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
}
.breakdown-bar {
  width: 100%;
  height: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.breakdown-segment {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 600ms ease;
}
.breakdown-segment--primary {
  background: var(--color-primary);
}
.breakdown-segment--secondary {
  background: var(--color-secondary);
}
.breakdown-segment--muted {
  background: var(--color-outline);
}

/* ============================================================
   COUNTDOWN WIDGET — deadline/urgency display
   ============================================================ */
.countdown-widget {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  margin: var(--space-10) 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.countdown-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-secondary);
}
.countdown-timer {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.countdown-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================================================
   DEADLINE CARD — date box + details (deadline articles)
   ============================================================ */
.deadline-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base);
}
.deadline-card:hover {
  transform: translateX(4px);
}
.deadline-card--urgent {
  border-left-color: #dc2626;
}
.deadline-card--soon {
  border-left-color: #f59e0b;
}
.date-box {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.date-box .date-month {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}
.date-box .date-day {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}
.deadline-details h4 {
  font-size: var(--text-base);
  margin: 0 0 var(--space-1);
}
.deadline-details p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
}
.deadline-status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}
.deadline-status--urgent {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.deadline-status--soon {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.deadline-status--ok {
  background: rgba(4, 120, 87, 0.1);
  color: var(--color-secondary);
}

/* ============================================================
   URGENCY BANNER — full-width alert for deadline articles
   ============================================================ */
.urgency-banner {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.urgency-banner--warning {
  background: #f59e0b;
  color: #78350f;
}
.urgency-banner--danger {
  background: #dc2626;
}
.urgency-banner p {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ============================================================
   COMPARISON CARD — program/school comparison
   ============================================================ */
.comparison-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.comparison-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.comparison-card--featured {
  border-color: var(--color-secondary);
  border-width: 2px;
}
.comparison-badge {
  position: absolute;
  top: 0;
  left: var(--space-5);
  background: var(--color-secondary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.comparison-card h3 {
  font-size: var(--text-xl);
  margin: var(--space-2) 0 var(--space-3);
}
.comparison-card .comparison-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.comparison-card .comparison-meta strong {
  color: var(--color-heading);
}
.comparison-card .feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}
.comparison-card .feature-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}
.comparison-card .feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ============================================================
   PROGRAM CARD — compact card for program listings
   ============================================================ */
.program-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.program-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.program-card h4 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
}
.program-card .program-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.program-card .program-highlight {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

/* ============================================================
   ELIGIBILITY BADGE — grant/loan eligibility indicator
   ============================================================ */
.eligibility-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.eligibility-badge--likely {
  background: rgba(4, 120, 87, 0.12);
  color: var(--color-secondary);
}
.eligibility-badge--possible {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.eligibility-badge--check {
  background: rgba(26, 86, 219, 0.12);
  color: var(--color-primary);
}

/* ============================================================
   CALCULATOR ENHANCEMENTS — progress, results viz
   ============================================================ */
.calculator-wrapper {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}
.progress-header {
  padding: var(--space-5) var(--space-6) var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-header .step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
.progress-bar-track {
  height: 6px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 var(--space-6) var(--space-6);
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  transition: width 400ms ease;
}
.result-display {
  text-align: center;
  padding: var(--space-8);
}
.result-display .result-number {
  font-family: var(--font-headline);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
.result-display .result-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}
.result-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-4);
  line-height: 1.5;
}

/* ============================================================
   QUIZ ENHANCEMENTS — trust signals, social proof
   ============================================================ */
.quiz-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-top: var(--space-6);
}
.quiz-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.quiz-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.quiz-step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.quiz-option--selected {
  border-color: var(--color-secondary);
  background: rgba(4, 120, 87, 0.05);
  border-left: 4px solid var(--color-secondary);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -12px;
  object-fit: cover;
}
.avatar-stack img:first-child {
  margin-left: 0;
}

/* ============================================================
   WARNING CALLOUT — amber warning box (calculator deadline)
   ============================================================ */
.warning-callout {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5);
  margin: var(--space-6) 0;
}
.warning-callout .warning-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #92400e;
  margin-bottom: var(--space-1);
}
.warning-callout p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
}

/* ============================================================
   AMBIENT & EDITORIAL SHADOWS — consistent elevation
   ============================================================ */
.ambient-shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.editorial-shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   NEXT STEPS BOX — thick left border CTA at end of tools
   ============================================================ */
.next-steps-box {
  border-left: 8px solid var(--color-secondary);
  background: var(--color-bg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-10);
  margin: var(--space-12) 0;
  box-shadow: var(--shadow-card);
}
.next-steps-box h3 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
}
.next-steps-box p {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

/* ============================================================
   STORY CARD — for related stories grid
   ============================================================ */
.story-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.story-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.story-card-body {
  padding: var(--space-5);
}
.story-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: block;
}
.story-title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

/* ============================================================
   SCHOLARSHIP CARD — search result card
   ============================================================ */
.scholarship-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-5);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.scholarship-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.scholarship-card--featured {
  border-top: 3px solid var(--color-secondary);
}
.scholarship-card .award-amount {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}
.scholarship-card h4 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1);
}
.scholarship-card .provider-name {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.scholarship-card .deadline-urgency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-secondary);
  background: rgba(4, 120, 87, 0.08);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

/* --- Scholarship Card Enhancements --- */
.competitiveness-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
}
.competitiveness-badge--low { background: #d1fae5; color: #047857; }
.competitiveness-badge--moderate { background: #fef3c7; color: #92400e; }
.competitiveness-badge--high { background: #fee2e2; color: #991b1b; }

.scholarship-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.5rem 0;
}
.requirement-chip {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  background: #f3f4f6;
  color: #434654;
}
.scholarship-how-to {
  font-size: 0.8125rem;
  color: #434654;
  margin: 0.5rem 0;
}
.scholarship-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0 0;
  flex-wrap: wrap;
}
.renewability-badge {
  font-size: 0.75rem;
  color: #1a56db;
  font-weight: 500;
}

/* --- Cross-link Cards --- */
.cross-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #191c1d;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.cross-link-card:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
}
.cross-link-card .material-symbols-outlined:first-child {
  color: #1a56db;
  font-size: 22px;
}

/* ============================================================
   STATS GRID — key metrics display (scholarship finder)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.stat-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.stat-card .stat-value {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-heading);
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   FILTER CHIPS — active filter pills
   ============================================================ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.filter-chip:hover {
  background: rgba(26, 86, 219, 0.15);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-heading { color: var(--color-heading); }
.font-headline { font-family: var(--font-headline); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   ADSENSE COMPATIBILITY
   Containers for ad insertion between sections
   ============================================================ */
.ad-slot {
  margin: var(--space-8) 0;
  min-height: 100px;
  text-align: center;
}
.ad-slot--sidebar {
  margin: var(--space-6) 0;
}


/* ============================================================
   TABLET — min-width: 768px
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .email-form {
    flex-direction: row;
  }
  .email-form .input {
    flex: 1;
  }
  .email-form .btn {
    flex-shrink: 0;
    width: auto;
  }

  .article-cta .btn {
    width: auto;
  }

  /* Related articles — 2 columns on tablet */
  .related-articles ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list-item {
    display: flex;
    gap: var(--space-6);
  }

  .footer-legal-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Sticky CTA hides on tablet — desktop users don't need it */
  .sticky-cta {
    display: none;
  }
  body.has-sticky-cta {
    padding-bottom: 0;
  }

  /* Program grid — 2 columns on tablet */
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats grid — 4 columns on tablet */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Timeline — horizontal on tablet */
  .timeline-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  /* Countdown timer scales up */
  .countdown-timer {
    font-size: 3.5rem;
  }

  /* Key stat value scales up */
  .key-stat-box .stat-value {
    font-size: 3rem;
  }
}


/* ============================================================
   DESKTOP — min-width: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --nav-height: var(--nav-height-desktop);
  }

  /* Nav: horizontal links between logo and CTA, hide hamburger */
  .nav-toggle {
    display: none;
  }
  .site-header-inner {
    gap: var(--space-8);
  }
  .site-nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: var(--space-6);
    flex: 1;
    justify-content: center;
  }
  .site-nav a {
    display: inline;
    padding: 0;
    font-family: var(--font-headline);
    font-size: 1.0625rem; /* 17px */
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-muted);
  }
  .site-nav a:hover,
  .site-nav a.is-active {
    background: none;
    color: var(--color-heading);
  }
  .site-nav a.is-active {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
  }

  /* CTA stays in header-actions at far right */
  .nav-cta {
    font-size: 0.9375rem;
    padding: var(--space-2) var(--space-6);
  }

  .site-logo {
    font-size: var(--text-2xl);
    flex-shrink: 0;
  }

  /* Hero scales up */
  .hero {
    padding: var(--space-20) 0 var(--space-16);
  }
  .hero h1 {
    font-size: 2.75rem;
  }

  /* Sections breathe more */
  .section {
    padding: var(--space-24) 0;
  }

  /* Article hero scales up on desktop */
  .article-hero {
    padding: var(--space-16) 0 var(--space-10);
  }
  .article-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
  }

  /* Key takeaways breathes more on desktop */
  .key-takeaways {
    padding: var(--space-8);
  }

  /* Related articles — 3 column cards */
  .related-articles ul {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Article CTA — auto-width button on desktop */
  .article-cta .btn {
    width: auto;
  }

  /* Card grid — 3 columns */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  /* Footer — 4 columns */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
  }

  /* Program grid — 3 columns on desktop */
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pull quote breathes more */
  .pull-quote {
    margin: var(--space-16) var(--space-8);
  }
  .pull-quote-text {
    font-size: var(--text-3xl);
  }

  /* Drop cap scales up */
  .drop-cap::first-letter {
    font-size: 5.5rem;
  }

  /* Countdown timer full size */
  .countdown-timer {
    font-size: 4.5rem;
  }

  /* Result display scales up */
  .result-display .result-number {
    font-size: 5rem;
  }

  /* Key stat scales up */
  .key-stat-box .stat-value {
    font-size: 3.5rem;
  }

  /* Result card value scales up */
  .result-card .result-value {
    font-size: 3.5rem;
  }

  /* Article title full desktop size */
  .article-title {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
  }
}


/* ============================================================
   LARGE DESKTOP — min-width: 1280px
   Cap widths, prevent oversized layouts
   ============================================================ */
@media (min-width: 1280px) {
  .hero h1 {
    font-size: 3rem;
  }

  /* Section tonal uses wider negative margin on large screens */
  .section-tonal {
    margin-left: calc(-1 * var(--space-8));
    margin-right: calc(-1 * var(--space-8));
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* ============================================================
   CAPTURE GATE
   Email capture overlay inserted by captureGate() in tools.js
   ============================================================ */
.capture-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.capture-gate-inner {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.capture-gate-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 var(--space-2) 0;
}

.capture-gate-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0 0 var(--space-6) 0;
}

.capture-gate-fields {
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (max-width: 479px) {
  .capture-gate-fields {
    flex-direction: column;
  }
}

.capture-gate-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  min-width: 0;
}

.capture-gate-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.capture-gate-submit {
  width: 100%;
  margin-bottom: var(--space-3);
}

.capture-gate-skip {
  display: inline-block;
  background: none;
  border: none;
  padding: var(--space-1) 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: underline;
  cursor: pointer;
}

.capture-gate-skip:hover {
  color: var(--color-text);
}


/* ============================================================
   MATCH INTERSTITIAL
   Program match CTA rendered by matchInterstitial() in tools.js
   ============================================================ */
.match-interstitial {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-8);
  text-align: center;
}

.match-interstitial-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 var(--space-2) 0;
}

.match-interstitial-desc {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
}

.match-checks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  margin: 0 auto var(--space-5) auto;
  max-width: 320px;
  text-align: left;
}

.match-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.match-check .material-symbols-outlined {
  color: var(--color-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.match-interstitial .btn {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.match-disclosure {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
}


/* ============================================================
   PRINT STYLES
   Clean output for users who print financial aid info
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .sticky-cta,
  .nav-toggle,
  .ad-slot,
  .email-banner,
  .article-cta {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    padding-top: 0;
  }
  .article-body a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
