/* ═══════════════════════════════════════════════════════════════════════════════
   CONTENT PAGES — PREMIUM RESTYLE
   Task #1143989
   Covers: /guides, /tools, /settlements/categories, /guides/*, /how-to-file/*
   Uses existing design tokens from design-system.css.
   GPU-accelerated animations only (transform, opacity).
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   §1  DESIGN TOKENS — Secondary Pages
   Define the orphaned --sp-* vars used
   by guides, tools, and category pages
   ═══════════════════════════════════════ */
:root {
  --sp-bg-primary: #ffffff;
  --sp-bg-secondary: #f9fafb;
  --sp-bg-card: #ffffff;
  --sp-bg-elevated: #f8fafc;
  --sp-text-primary: #111827;
  --sp-text-secondary: #4b5563;
  --sp-text-muted: #6b7280;
  --sp-text-accent: #1d4ed8;
  --sp-accent: #2563eb;
  --sp-accent-hover: #1d4ed8;
  --sp-accent-subtle: rgba(37,99,235,0.06);
  --sp-border: #e5e7eb;
  --sp-border-hover: #93c5fd;
  --sp-border-accent: rgba(37,99,235,0.25);
  --sp-radius: 12px;
  --sp-radius-sm: 8px;
  --sp-radius-lg: 16px;
  --sp-transition: 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  --sp-section-pad: clamp(64px, 8vw, 100px);

  /* Content page hero gradient */
  --cp-hero-bg: linear-gradient(168deg, #f0f5ff 0%, #f8fafc 50%, #ffffff 100%);
  --cp-hero-accent: linear-gradient(135deg, #2563eb, #1d4ed8);
}


/* ═══════════════════════════════════════
   §2  HUB PAGE HEROES — /guides, /tools,
   /settlements/categories
   ═══════════════════════════════════════ */

/* ── Guides hero (.sp-hero) ─────────── */
.sp-hero {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem clamp(3rem, 6vw, 4.5rem);
  background: var(--cp-hero-bg);
  border-bottom: 1px solid var(--sp-border);
  position: relative;
  overflow: hidden;
}
.sp-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.sp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sp-hero h1 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}
.sp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #4b5563;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}
.sp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Guides section wrapper ──────────── */
.sp-section {
  padding: var(--sp-section-pad) 1.5rem;
}
.sp-section--alt {
  background: var(--sp-bg-secondary);
}
.sp-container {
  max-width: var(--sp-container-max, 1200px);
  margin: 0 auto;
}

/* ── Tools hero (.tools-hero) — handled by tools-page.css ── */

/* ── Settlement categories hero (.sci-hero) ── */
.sci-hero {
  background: var(--cp-hero-bg);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--sp-border);
  position: relative;
  overflow: hidden;
}
.sci-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.sci-hero-inner { position: relative; z-index: 1; }
.sci-h1 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.14;
  margin: 0 0 0.85rem;
  letter-spacing: -0.025em;
}
.sci-intro {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #4b5563;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 1.75rem;
}


/* ═══════════════════════════════════════
   §3  CARD GRIDS — Premium treatment
   Guide cards, tool cards, category cards
   ═══════════════════════════════════════ */

/* ── Section labels (dividers) ──────── */
.guides-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-text-accent);
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.guides-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sp-border-accent), transparent);
}

/* ── Guide cards — premium ──────────── */
.guide-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition:
    transform 0.25s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
  will-change: transform;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border-color: var(--sp-border-hover);
}
.guide-card--featured {
  border-color: rgba(37,99,235,0.2);
  background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(37,99,235,0.01));
}
.guide-card--featured:hover {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 8px 28px rgba(37,99,235,0.1), 0 2px 8px rgba(0,0,0,0.04);
}
.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.guide-card-emoji {
  font-size: 1.75rem;
  line-height: 1;
}
.guide-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  color: var(--sp-text-primary);
}
.badge--free {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
.badge--popular {
  background: rgba(251,191,36,0.15);
  color: #92400e;
  border: 1px solid rgba(251,191,36,0.4);
}
.badge--new {
  background: rgba(139,92,246,0.1);
  color: #5b21b6;
  border: 1px solid rgba(139,92,246,0.3);
}
.guide-card-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--sp-text-primary);
  line-height: 1.32;
  margin: 0;
}
.guide-card-desc {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.guide-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sp-text-accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.25rem;
  transition: gap 0.2s ease;
}
.guide-card:hover .guide-card-cta {
  gap: 0.5rem;
}

/* ── Guide grid ─────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; }
}

/* ── Tool cards — handled by tools-page.css ─────────────
   tools-page.css and tools-page.min.css define all .tool-card,
   .tools-grid, and .tools-section styles. Only provide premium
   badge polish here to avoid cascade conflicts. ────────── */
.badge--pro {
  background: linear-gradient(135deg, #92400e, #b45309);
  color: #fff;
}

/* ── Category cards (.sci-cat-card) — premium ── */
.sci-cat-card {
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.04);
  transition:
    transform 0.28s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
  will-change: transform;
}
.sci-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1), 0 10px 32px rgba(0,0,0,0.09);
  border-color: rgba(37,99,235,0.4);
}
.sci-cat-card:hover .sci-cat-img {
  transform: scale(1.05);
}

/* Category card images */
.sci-cat-img-wrap {
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  height: 120px;
  overflow: hidden;
  border-radius: var(--sp-radius) var(--sp-radius) 0 0;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
}
.sci-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

/* Category grid */
.sci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.sci-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-section-pad) 1.5rem;
}

/* Stats bar */
.sci-stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--sp-bg-card);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  padding: 1.25rem 1.5rem;
}
.sci-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.sci-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2563eb;
  display: block;
  line-height: 1.1;
}
.sci-stat-label {
  font-size: 0.74rem;
  color: #6b7280;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}


/* ═══════════════════════════════════════
   §4  INDIVIDUAL GUIDE PAGES
   /guides/* — SEO guides, editorial
   ═══════════════════════════════════════ */

/* ── Reading progress bar ────────────── */
.sg-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  width: 0%;
  z-index: 9999;
  transition: width 0.12s linear;
  border-radius: 0 2px 2px 0;
  will-change: width;
}

/* ── Breadcrumb ─────────────────────── */
.sg-breadcrumb {
  border-bottom: 1px solid var(--sp-border);
  padding: 0;
  background: #fafbfc;
}
.sg-breadcrumb-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
  min-height: 44px;
  overflow: hidden;
}
.sg-breadcrumb-inner a {
  color: #6b7280;
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sg-breadcrumb-inner a:hover {
  color: #1d4ed8;
}
.sg-breadcrumb-sep { color: #d1d5db; flex-shrink: 0; }
.sg-breadcrumb-current {
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 0%;
}

/* ── Article header ─────────────────── */
.sg-header {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem 2rem;
}
.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 1rem;
}
.sg-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #1d4ed8;
  border-radius: 50%;
  display: inline-block;
}
.sg-h1 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.sg-intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

/* ── Byline ──────────────────────────── */
.sg-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 0;
}
.sg-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}
.sg-byline-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
}
.sg-byline-meta {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Two-column layout ──────────────── */
.sg-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sg-layout {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }
}

/* ── Article body typography ─────────── */
.sg-article {
  min-width: 0;
  max-width: 720px;
}
.sg-article h2 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.sg-article h3 {
  font-size: 1.2rem;
  font-weight: 750;
  color: #111827;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.sg-article p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1.25rem;
}
.sg-article ul,
.sg-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
  list-style: disc;
}
.sg-article ol { list-style: decimal; }
.sg-article li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 0.5rem;
}
.sg-article blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #2563eb;
  background: #f0f4ff;
  border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1e3a8a;
}
.sg-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  border: 1px solid var(--sp-border);
}
.sg-article th {
  background: #f8fafc;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  border-bottom: 2px solid var(--sp-border);
  white-space: nowrap;
}
.sg-article td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #4b5563;
  border-bottom: 1px solid #f1f3f5;
}
.sg-article tr:last-child td { border-bottom: none; }

/* Proof / callout bar */
.sg-proof-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--sp-radius-sm);
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: #1e3a8a;
}

/* ── Sidebar — sticky ToC + CTA cards ─ */
.sg-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sg-sidebar-card {
  background: var(--sp-bg-secondary);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
}
.sg-sidebar-card h3 {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--sp-text-primary);
  margin: 0 0 0.75rem;
}
.sg-sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.72rem 1.25rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--sp-radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.sg-sidebar-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

/* ToC links */
.sg-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sg-toc-list a {
  display: block;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  color: #6b7280;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.sg-toc-list a:hover,
.sg-toc-list a.active {
  color: #1d4ed8;
  border-left-color: #2563eb;
}

/* ── Related guides section ──────────── */
.sg-related {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem var(--sp-section-pad);
}
.sg-related-header {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.sg-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}


/* ═══════════════════════════════════════
   §5  HOW-TO-FILE PAGES
   Step-by-step flow, callout boxes, CTAs
   ═══════════════════════════════════════ */

/* ── Hero (reuses sp-hero with overrides) ── */
.htf-hero {
  text-align: left;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  background: var(--cp-hero-bg);
  border-bottom: 1px solid var(--sp-border);
}
.htf-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.htf-hero h1 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}
.htf-hero-intro {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 0 1.75rem;
}
.htf-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.htf-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.htf-stat-pill strong { color: var(--sp-accent); font-weight: 700; }

/* ── Two-column layout ──────────────── */
.htf-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .htf-body { grid-template-columns: 1fr; }
  .htf-sidebar { order: -1; }
}

/* ── Step-by-step flow ──────────────── */
.htf-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.htf-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}
/* Connecting line between steps */
.htf-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(37,99,235,0.25), rgba(37,99,235,0.08));
}
.htf-step:last-child::before {
  display: none;
}
.htf-step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  position: relative;
  z-index: 1;
}
.htf-step-content {
  flex: 1;
  min-width: 0;
}
.htf-step-content h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: #111827;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}
.htf-step-content p {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Proof/info callout boxes ────────── */
.htf-proof-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--sp-radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}
.htf-proof-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.05rem; }
.htf-proof-text {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.6;
}
.htf-proof-text strong { color: #1d4ed8; }

/* ── Deadline / urgency callout ──────── */
.htf-deadline-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--sp-radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}
.htf-deadline-callout strong { color: #92400e; }

/* ── Eligibility CTA band ────────────── */
.htf-quiz-band {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.03));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--sp-radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 600px) {
  .htf-quiz-band { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}
.htf-quiz-band-icon { font-size: 2.75rem; flex-shrink: 0; }
.htf-quiz-band-text h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 0.4rem;
}
.htf-quiz-band-text p {
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
  line-height: 1.55;
}

/* ── Sidebar ─────────────────────────── */
.htf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 2rem;
}
.htf-sidebar-card {
  background: var(--sp-bg-secondary);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
}
.htf-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--sp-text-primary);
  margin: 0 0 0.75rem;
}

/* ── Settlement list (in how-to-file) ── */
.htf-settlement-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.htf-settlement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.htf-settlement-item:hover {
  border-color: var(--sp-accent);
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════
   §6  SHARED COMPONENTS
   CTAs, email forms, FAQ, buttons
   ═══════════════════════════════════════ */

/* ── Primary CTA button ──────────────── */
.cp-btn-primary,
.sci-btn-primary,
.htf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cp-btn-primary:hover,
.sci-btn-primary:hover,
.htf-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ── Secondary CTA ───────────────────── */
.cp-btn-secondary,
.sci-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-border);
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
}
.cp-btn-secondary:hover,
.sci-btn-secondary:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

/* ── Email capture + FAQ — handled by tools-page.css ── */

/* ── Section dividers ────────────────── */
.htf-section h2 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.5rem;
  letter-spacing: -0.015em;
}


/* ═══════════════════════════════════════
   §7  MOBILE RESPONSIVE
   375px and 414px viewports
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hub heroes */
  .sp-hero,
  .sci-hero,
  .htf-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Category cards */
  .sci-grid { grid-template-columns: 1fr; }
  .sci-content { padding: 2rem 1rem; }
  .sci-stats-bar { padding: 1rem; gap: 1rem; }
  .sci-stats-inner { gap: 1.5rem; }

  /* Article layout */
  .sg-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2.5rem;
    gap: 2rem;
  }
  .sg-header { padding: 2rem 1rem 1.5rem; }
  .sg-sidebar { position: static; }

  /* How-to-file */
  .htf-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2.5rem;
  }
  .htf-sidebar { position: static; }
}

@media (max-width: 480px) {
  .sp-hero h1 {
    font-size: 1.65rem;
  }
  .sci-h1 { font-size: 1.45rem; }
  .sg-h1 { font-size: 1.65rem; }

  .htf-step { gap: 0.85rem; }
  .htf-step-num { width: 36px; height: 36px; font-size: 0.82rem; }
  .htf-step::before { left: 17px; top: 38px; }

  .guide-card {
    padding: 1.25rem;
  }
}

/* ── Breadcrumb mobile truncation ───── */
@media (max-width: 375px) {
  .sg-breadcrumb-current {
    max-width: 120px;
  }
}


/* ═══════════════════════════════════════
   §8  ANIMATIONS — GPU-accelerated
   ═══════════════════════════════════════ */

/* Scroll reveal for cards */
.guide-card.is-hidden,
.sci-cat-card.is-hidden {
  opacity: 0;
  transform: translateY(24px);
}
.guide-card.is-visible,
.sci-cat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero fade-in */
@keyframes cpHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sp-hero-inner,
.sci-hero-inner,
.htf-hero-inner {
  animation: cpHeroFadeIn 0.5s ease forwards;
}
/* .tools-hero animation handled by tools-page.css */

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .sp-hero-inner,
  .sci-hero-inner,
  .htf-hero-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .guide-card,
  .sci-cat-card {
    transition: none;
  }
}
