/* Financial Resilience Evaluation — dedicated styles.
   Reuses the site's CSS variables (colors, fonts, spacing) from site.css,
   which loads first via base.html. */

.re-wrap {
  padding: 2.5rem 0 4rem;
  max-width: 760px;
}

.re-screen { display: none; }
.re-screen.active { display: block; }

.re-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.re-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.2s ease;
}
.re-dot.done { background: var(--brand-green); }
.re-dot.current { background: var(--brand-blue); }

.re-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

.re-privacy {
  font-size: 0.95rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.re-start-nudge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue);
  margin: 0;
}

.re-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--ink);
  text-decoration: none;
}
.re-btn-primary {
  background: linear-gradient(155deg, var(--brand-blue), var(--brand-navy));
  color: #fff;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(27,20,100,0.25);
}
.re-btn-start {
  background: linear-gradient(155deg, var(--brand-green), #067A18);
  color: #fff;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 6px rgba(0,174,35,0.25);
}
.re-btn-primary:hover, .re-btn-start:hover { transform: translateY(-1px); }
.re-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.re-btn-row { display: flex; gap: 0.75rem; margin-top: 2rem; align-items: center; }

.re-pillar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--ink);
  margin: 0 0 1.75rem;
}

.re-question {
  border: none;
  padding: 0 0 2.1rem;
  margin: 0 0 2.1rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.re-question:last-of-type { border-bottom: none; }
.re-question legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.4rem;
}
.re-helper {
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  font-style: italic;
}
.re-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  min-height: 44px; /* mobile tap target */
}
.re-option:hover { border-color: var(--line-strong); }
.re-option input { margin-top: 0.2rem; flex-shrink: 0; width: 18px; height: 18px; }
.re-option-label { font-size: 0.95rem; color: var(--ink); line-height: 1.4; }
.re-option-aside { color: var(--ink-faint); font-style: italic; }
.re-option input:checked ~ .re-option-label { color: var(--brand-blue); font-weight: 600; }

.re-reflection {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 1.25rem 1.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-left: 3px solid var(--brand-green);
}
.re-transition {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin: 1rem 0 0;
}

/* ---- Results page ---- */
.re-results-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  color: var(--ink);
  margin: 0 0 1rem;
}
.re-opening {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.re-safety-door .re-opening {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-green);
  padding: 1.25rem 1.4rem;
  border-radius: 8px;
}
.re-pillar-block { margin-bottom: 1.75rem; }
.re-pillar-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-blue);
  margin: 0 0 0.5rem;
}
.re-pillar-block p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}
.re-pillar-aside {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
.re-cross-pillar {
  margin: 1.75rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.re-cross-pillar p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
  margin: 0 0 1rem;
}

.re-feedback {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.re-feedback p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}
.re-feedback-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.re-feedback-btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.re-investigate h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-blue);
  margin: 0 0 0.5rem;
}
.re-investigate > p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}
.re-investigate-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.re-investigate-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.re-investigate-list a { color: var(--brand-blue); }
.re-more-toggle {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 0;
}
.re-collapsed { display: none; }
.re-collapsed.open { display: block; }

.re-prompts { margin: 1.75rem 0; }
.re-prompts ul { padding-left: 1.2rem; }
.re-prompts li {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.re-pause-list textarea, .re-pause-list input[type=text] {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-body);
  background: var(--paper-raised);
  color: var(--ink);
}

.re-closing {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.re-closing-note { color: var(--ink-faint); font-size: 0.95rem; margin-top: 0.4rem; }
.re-newsletter-block, .re-cfpb-block {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.re-newsletter-block p, .re-cfpb-block p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}
.re-disclaimer {
  font-size: 0.95rem;
  color: var(--ink-faint);
  max-width: 62ch;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .re-wrap { padding: 1.75rem 0 3rem; }
  .re-results-heading { font-size: var(--fs-xl); }
}

@media print {
  .topbar, footer, .re-progress,
  #screen-start, #screen-fork, #screen-pillar, #screen-reflection,
  .re-more-toggle, .re-newsletter-block, .re-btn-row, .re-feedback { display: none !important; }
  #screen-results { display: block !important; }
  .re-collapsed { display: block !important; }
  body { background: #fff; color: #000; }
}
