/* ============================================================
   Trump Accounts — Global Stylesheet
   trumpaccounts.wiki
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-blue: #eff6ff;
  --bg-yellow: #fffbeb;
  --bg-green: #f0fdf4;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-light: #dbeafe;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --max-width: 1120px;
  --content-max: 740px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --transition: 0.18s ease;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text); }

code, kbd {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
  font-size: 0.875em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--bg-blue); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg-subtle); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 99;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.mobile-nav a.active { color: var(--accent); background: var(--bg-blue); }

/* --- Breadcrumbs --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb li + li::before { content: '/'; color: var(--border); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
}
.hero--subtle {
  padding: 3.5rem 0 3rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-blue);
  border: 1px solid var(--accent-light);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  background: var(--bg-green);
  border: 1px solid #bbf7d0;
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
}
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: #d1d5db; color: var(--text); text-decoration: none; }

/* --- Sections --- */
.section { padding: 4rem 0; }
.section--subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 2.5rem; }

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); border-color: #d1d5db; }
.card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; line-height: 1; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; margin-bottom: 0; }
.card a { font-size: 0.85rem; font-weight: 600; }

/* Step cards */
.step-list { display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.9rem; margin-bottom: 0; }

/* --- Quick Facts Box --- */
.quick-facts {
  background: var(--bg-blue);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.quick-facts h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
}
.fact-item { }
.fact-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.fact-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.fact-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* --- Callout Boxes --- */
.callout {
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout p { margin-bottom: 0; font-size: 0.92rem; }
.callout-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem; }

.callout--note { background: var(--bg-blue); border-color: var(--accent); }
.callout--note .callout-title { color: var(--accent); }

.callout--warning { background: var(--bg-yellow); border-color: var(--yellow); }
.callout--warning .callout-title { color: var(--yellow); }

.callout--tip { background: var(--bg-green); border-color: var(--green); }
.callout--tip .callout-title { color: var(--green); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--bg-subtle); }
th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.55;
}
td strong { color: var(--text); }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-subtle); }
tbody tr:hover { background: #fafbff; }

/* Comparison table highlight */
.col-highlight { background: var(--bg-blue) !important; }
.col-highlight td { color: var(--text); }

/* --- FAQ Accordion --- */
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  background: var(--bg);
  transition: background var(--transition);
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.faq-question:hover { background: var(--bg-subtle); }
.faq-question::-webkit-details-marker { display: none; }

.faq-question .faq-icon {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition);
  user-select: none;
}

details.faq-item[open] .faq-question { background: var(--bg-subtle); }
details.faq-item[open] .faq-question .faq-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-subtle);
}
.faq-answer p { margin-bottom: 0.5rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* --- Stat / number highlights --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

/* --- Tags / Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.badge--blue { background: var(--bg-blue); color: var(--accent); border: 1px solid var(--accent-light); }
.badge--green { background: var(--bg-green); color: var(--green); border: 1px solid #bbf7d0; }
.badge--yellow { background: var(--bg-yellow); color: var(--yellow); border: 1px solid #fde68a; }
.badge--gray { background: var(--bg-subtle); color: var(--text-secondary); border: 1px solid var(--border); }

/* --- Update / Article cards --- */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; }
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); border-color: #d1d5db; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.article-date { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.article-card h2, .article-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.article-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Article prose */
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* --- Comparison card layout --- */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg);
}
.compare-card--highlight {
  border-color: var(--accent);
  background: var(--bg-blue);
  position: relative;
}
.compare-card--highlight::before {
  content: 'This site';
  position: absolute;
  top: -1px;
  left: 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.compare-card .subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.compare-card ul { font-size: 0.88rem; }

/* Check / cross lists */
.check-list, .cross-list { list-style: none; padding: 0; }
.check-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cross-list li::before { content: '✗ '; color: var(--red); font-weight: 700; }

/* --- Page header (inner pages) --- */
.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { font-size: 1.1rem; margin-bottom: 0; max-width: 600px; }

/* --- Glossary --- */
.glossary-list { display: flex; flex-direction: column; gap: 0; }
.glossary-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}
.glossary-item:last-child { border-bottom: none; }
.glossary-term { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.glossary-definition { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0; }

/* --- Sources / References --- */
.sources {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.sources h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
.sources ol { padding-left: 1.25rem; }
.sources li { margin-bottom: 0.25rem; }
.sources a { color: var(--text-muted); }
.sources a:hover { color: var(--accent); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 6rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-top: 1rem;
}

/* --- Inline link arrow --- */
.link-arrow::after { content: ' →'; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* --- Summary box (intro summary) --- */
.summary-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.summary-box h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 700; }
.summary-box ul { font-size: 0.92rem; color: var(--text-secondary); padding-left: 1.25rem; }
.summary-box li { margin-bottom: 0.35rem; }

/* --- Mobile / Responsive --- */
@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero--subtle { padding: 2.5rem 0 2rem; }
  .section { padding: 3rem 0; }
  .page-header { padding: 2rem 0 1.75rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .quick-facts { padding: 1.25rem 1.5rem; }
  th, td { padding: 0.65rem 0.75rem; }
  .faq-question { padding: 1rem 1.25rem; }
  .faq-answer { padding: 0 1.25rem 1rem; }
}

@media (max-width: 480px) {
  body { font-size: 0.97rem; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  .hero-lead { font-size: 1.05rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .container, .container--narrow { padding: 0 1rem; }
  .article-card { padding: 1.25rem; }
}

/* --- Page meta (last updated) --- */
.page-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-meta time { font-weight: 500; }

/* --- Related links section --- */
.related-links {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
}
.related-links h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  display: block;
}
.related-card:hover { border-color: var(--accent); background: var(--bg-blue); text-decoration: none; }
.related-card-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 0.25rem; }
.related-card-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* --- Calculator --- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}
.calc-inputs { display: flex; flex-direction: column; gap: 1.5rem; }
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.calc-field .field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.calc-field input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}
.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.calc-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
}
.range-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.range-value { font-size: 1rem; font-weight: 700; color: var(--accent); }

.calc-results {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.calc-results h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 1.25rem; }
.result-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.result-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.3rem; }
.result-value { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.result-value--small { font-size: 1.35rem; }
.result-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.calc-disclaimer { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.seed-toggle { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.seed-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.seed-toggle span { font-size: 0.9rem; font-weight: 500; }

@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* --- Eligibility CTA (homepage) --- */
.eligibility-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-blue) 0%, #e0f2fe 100%);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
}
.eligibility-cta-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.eligibility-cta-text p { margin-bottom: 1.25rem; }
.eligibility-cta-programs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-shrink: 0;
}
.eligibility-cta-program {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 200px;
}
.eligibility-cta-program-icon { font-size: 1.5rem; }
.eligibility-cta-program-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.eligibility-cta-program-amount { font-size: 0.78rem; color: var(--text-secondary); }
@media (max-width: 640px) {
  .eligibility-cta { grid-template-columns: 1fr; }
  .eligibility-cta-programs { flex-direction: row; flex-wrap: wrap; }
  .eligibility-cta-program { min-width: 0; flex: 1; }
}

/* --- Eligibility Checker --- */
.checker-tool {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.checker-step {
  padding: 2rem;
}
.checker-step--hidden { display: none; }

.checker-step-header { margin-bottom: 1.75rem; }
.checker-step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.checker-step-title { font-size: 1.35rem; margin-bottom: 0.4rem; }
.checker-step-header > p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* Checkbox options (Step 1) */
.checker-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.checker-option { cursor: pointer; }
.checker-option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checker-option-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.checker-option:hover .checker-option-inner { border-color: var(--accent-light); background: var(--bg-blue); }
.checker-option--selected .checker-option-inner { border-color: var(--accent); background: var(--bg-blue); }
.checker-option-icon { font-size: 1.75rem; flex-shrink: 0; }
.checker-option-label { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.checker-option-desc { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* Question groups (Step 2) */
.checker-question-group { margin-bottom: 1.75rem; }
.checker-question-group--hidden { display: none; }
.checker-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.checker-field { margin-bottom: 1.25rem; }
.checker-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.checker-field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.checker-radio-group { display: flex; flex-direction: column; gap: 0.4rem; }
.checker-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checker-radio input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.checker-radio:hover { color: var(--text); }

.checker-step-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Results */
.checker-results { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.checker-result {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.checker-result--eligible { border-color: #86efac; background: var(--bg-green); }
.checker-result--likely   { border-color: #fcd34d; background: var(--bg-yellow); }
.checker-result--ineligible { border-color: var(--border); background: var(--bg-subtle); }

.checker-result-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.checker-result-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.checker-result-info { flex: 1; }
.checker-result-title { font-weight: 700; color: var(--text); font-size: 0.95rem; margin-bottom: 0.2rem; }
.checker-result-subtitle { font-size: 0.8rem; color: var(--text-secondary); }

.checker-result-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
  gap: 0.2rem;
}
.checker-status-icon { font-size: 1.2rem; }
.checker-status-label { font-size: 0.72rem; font-weight: 700; color: var(--text); white-space: nowrap; }

.checker-result-notes {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0.75rem 0;
  padding-left: 1.25rem;
}
.checker-result-notes li { margin-bottom: 0.25rem; }

.checker-result-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.checker-result-link:hover { text-decoration: underline; }

.checker-pending-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.checker-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.checker-disclaimer p { margin: 0; color: var(--text-muted); }

.checker-restart { padding-top: 0.5rem; }

/* ZIP lookup widget */
.zip-lookup-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.zip-input {
  width: 12rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition);
}
.zip-input:focus { outline: none; border-color: var(--accent); }
.zip-status {
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  display: none;
}
.zip-status:not(:empty) { display: block; }
.zip-status--loading { color: var(--text-muted); background: var(--bg-subtle); }
.zip-status--eligible { color: #166534; background: var(--bg-green); }
.zip-status--ineligible { color: #991b1b; background: #fef2f2; }
.zip-status--unknown { color: var(--yellow); background: var(--bg-yellow); }

@media (max-width: 600px) {
  .checker-step { padding: 1.25rem; }
  .checker-result-top { flex-wrap: wrap; }
  .checker-result-status { flex-direction: row; gap: 0.4rem; }
  .checker-step-actions { flex-direction: column-reverse; }
}

/* --- Utility --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.88rem; }
.text-center { text-align: center; }
.font-mono { font-family: 'SF Mono', 'Fira Code', Menlo, monospace; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   HOMEPAGE REDESIGN — Tool-first layout
   Added: delightful interactive tools, stat band, updates feed
   ============================================================ */

/* --- Font: DM Serif Display (hero display only) --- */
.hero-title {
  font-family: var(--font);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* --- Hero Home Redesign --- */
.hero--home {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(29, 78, 216, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-disambig {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.hero-disambig a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-disambig a:hover { color: var(--accent); }

/* --- Buttons — large variant --- */
.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

/* --- Nav CTA subtle variant --- */
.nav-cta-subtle {
  background: var(--bg-blue) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-light) !important;
  font-weight: 600 !important;
}
.nav-cta-subtle:hover {
  background: var(--accent) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* --- Stat Band --- */
.stat-band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-band-item {
  padding: 0.5rem;
}
.stat-band-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-family: var(--font);
}
.stat-band-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Tools Section --- */
.tools-section {
  padding: 4rem 0;
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tool-card--eligibility::before { background: var(--accent); }
.tool-card--calculator::before { background: var(--green); }

.tool-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.tool-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-blue);
  border: 1px solid var(--accent-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}
.tool-card-badge--green {
  color: var(--green);
  background: var(--bg-green);
  border-color: #bbf7d0;
}

.tool-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}
.tool-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.tool-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  display: block;
}
.tool-card-link:hover { text-decoration: underline; }
.tool-card-link--green { color: var(--green); }

/* Mini checker form */
.tool-card-form { display: flex; flex-direction: column; gap: 1rem; }
.mini-field { display: flex; flex-direction: column; gap: 0.35rem; }
.mini-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition);
  width: 100%;
}
.mini-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.mini-radios {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mini-radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  transition: all var(--transition);
  user-select: none;
}
.mini-radio:has(input:checked) {
  background: var(--bg-blue);
  border-color: var(--accent);
  color: var(--accent);
}
.mini-radio input { display: none; }

/* Mini result */
.mini-result {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  animation: fadeSlideIn 0.25s ease;
}
.mini-result p { margin: 0 0 0.35rem; color: inherit; font-size: inherit; }
.mini-result--eligible { background: var(--bg-green); color: #166534; border: 1px solid #bbf7d0; }
.mini-result--partial  { background: var(--bg-yellow); color: #92400e; border: 1px solid #fde68a; }
.mini-result--ineligible { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mini-result-icon { font-size: 1.1rem; font-weight: 700; flex-shrink: 0; line-height: 1.4; }
.mini-result-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mini-result-link:hover { opacity: 1; }

/* Calculator slider */
.calc-result-display {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.calc-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.calc-result-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #14532d;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.calc-result-note {
  font-size: 0.75rem;
  color: var(--green);
  opacity: 0.8;
}

.calc-slider-group { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-amount-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-feature-settings: 'tnum';
}

.calc-slider-wrap { position: relative; }
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--green) var(--fill, 60%), var(--border) var(--fill, 60%));
  cursor: pointer;
  outline: none;
  border: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(22, 163, 74, 0.4);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 1px 10px rgba(22, 163, 74, 0.55);
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(22, 163, 74, 0.4);
  cursor: pointer;
}
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.calc-breakdown {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.calc-breakdown-row:last-child { border-bottom: none; }
.calc-breakdown-row span:first-child { color: var(--text-secondary); }
.calc-breakdown-row span:last-child { font-weight: 700; color: var(--text); font-feature-settings: 'tnum'; white-space: nowrap; }
.calc-breakdown-row--highlight {
  background: var(--bg-green);
}
.calc-breakdown-row--highlight span:last-child { color: var(--green); }

/* --- Updates Feed --- */
.updates-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.updates-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.update-entry {
  padding: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.update-entry:last-child { border-bottom: none; }
.update-entry:hover { background: var(--bg-subtle); }
.update-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.update-meta time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.update-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.update-title a { color: var(--text); text-decoration: none; }
.update-title a:hover { color: var(--accent); text-decoration: none; }
.update-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* --- How-it-works two-column layout --- */
.how-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.how-text { position: sticky; top: calc(var(--nav-height) + 2rem); }
.how-steps { max-width: 560px; }

/* --- Card link variant --- */
.card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card--link:hover {
  box-shadow: var(--shadow);
  border-color: #d1d5db;
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.card--link .card-title { color: var(--text); }
.card--link:hover .card-title { color: var(--accent); }

/* --- SVG card icons (replacing emoji) --- */
.card-icon-svg {
  width: 40px;
  height: 40px;
  background: var(--bg-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}
.card--link .card-icon-svg { transition: background var(--transition), color var(--transition); }
.card--link:hover .card-icon-svg { background: var(--accent); color: #fff; }

/* --- FAQ smooth animation --- */
.faq-answer {
  animation: none;
}
details.faq-item[open] .faq-answer {
  animation: fadeSlideIn 0.22s ease;
}

/* --- Animations --- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-band-number.is-animating {
  animation: countUp 0.4s ease forwards;
}

/* --- Responsive: homepage additions --- */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  .how-text { position: static; }
}

@media (max-width: 900px) {
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero--home { padding: 3.5rem 0 3rem; }
  .stat-band { padding: 1.5rem 0; }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-header { flex-direction: column; align-items: flex-start; }
  .tool-card { padding: 1.5rem; }
  .calc-result-number { font-size: 2rem; }
  .how-grid { gap: 1.75rem; }
  .hero-title { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .stat-band-number { font-size: 1.75rem; }
  .tool-card { padding: 1.25rem; }
  .mini-radios { flex-wrap: nowrap; }
  .calc-result-number { font-size: 1.75rem; }
}

/* Article figure images */
.article-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-figure figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
}
