/* Money Moves · Emergency Fund Challenge. Scoped to this activity. */
.ef-hero{padding:clamp(1.5rem,4vw,3.5rem) 0 1.5rem;max-width:46rem}
.ef-hero h1{font-size:clamp(2.15rem,5vw,3.6rem);line-height:1.12;letter-spacing:-.04em}
.ef-hero h1 span{color:var(--color-teal-text)}
.ef-hero .btn{margin-top:var(--space-2)}
.ef-concepts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4);margin:0 0 var(--space-7)}
.ef-concepts article{min-width:0;padding:var(--space-5);background:var(--color-aqua);border-radius:var(--radius-lg)}
.ef-concepts span{display:block;font-size:var(--fs-xs);font-weight:var(--fw-bold);letter-spacing:.04em;text-transform:uppercase;color:var(--color-teal-text)}
.ef-concepts h2{margin:var(--space-2) 0;font-size:var(--fs-lg)}
.ef-concepts p{margin:0;color:var(--color-text)}
.ef-tool{border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:clamp(1rem,3vw,2rem);box-shadow:0 12px 32px rgba(11,46,107,.05);margin-bottom:var(--space-7)}
.ef-tool h2{margin-bottom:var(--space-3)}
.ef-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(1rem,3vw,2rem);margin-top:var(--space-5)}
.ef-controls,.ef-results,.ef-wide{min-width:0}
.ef-controls{display:grid;align-content:start;gap:var(--space-5)}
.ef-field label,.ef-choices legend{font-weight:var(--fw-bold);color:var(--color-navy)}
.ef-field label{display:flex;justify-content:space-between;gap:var(--space-3);align-items:baseline;margin-bottom:var(--space-2)}
.ef-field output{font-variant-numeric:tabular-nums;color:var(--color-navy)}
.ef-field input[type=number]{width:100%;max-width:16rem;border:1px solid var(--color-border-strong);border-radius:var(--radius);padding:.75rem;font:inherit;background:var(--color-white);color:var(--color-text)}
.ef-field input[type=range]{display:block;width:100%;max-width:100%;accent-color:var(--color-teal-strong);margin:.35rem 0}
.ef-field small,.ef-note,.ef-chart-note,.ef-table caption{color:var(--color-text-muted);font-size:var(--fs-sm)}
.ef-field small{display:block;margin-top:var(--space-2)}
.ef-choices{border:0;margin:0;padding:0;display:grid;gap:var(--space-3)}
.ef-choices legend{margin-bottom:var(--space-2);padding:0}
.ef-choice-list{display:grid;gap:.55rem}
.ef-choice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;align-items:center;padding:.75rem .85rem;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-white);cursor:pointer}
.ef-choice:has(input:checked){border-color:var(--color-navy);background:var(--color-aqua)}
.ef-choice:has(input:focus-visible){outline:3px solid var(--color-focus);outline-offset:3px}
.ef-choice strong,.ef-choice small{display:block}
.ef-choice small{color:var(--color-text-muted)}
.ef-error{margin:0;color:#9a2525;font-weight:var(--fw-bold)}
.ef-tool [hidden]{display:none !important}
.ef-results{display:grid;align-content:start;gap:var(--space-4);background:var(--color-aqua);border-radius:var(--radius-lg);padding:clamp(1rem,3vw,1.4rem)}
.ef-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.ef-stat{min-width:0;background:var(--color-white);border-radius:var(--radius);padding:.85rem}
.ef-stat span,.ef-event div span,.ef-compare-card span{display:block;font-size:var(--fs-xs);color:var(--color-text-muted)}
.ef-stat strong,.ef-event strong{display:block;margin-top:.25rem;color:var(--color-navy);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ef-stat strong{font-size:clamp(1.15rem,2vw,1.55rem)}
.ef-story{margin:0;font-weight:var(--fw-medium);color:var(--color-navy)}
.ef-meter{height:.9rem;border-radius:999px;background:var(--color-white);overflow:hidden;border:1px solid var(--color-border)}
.ef-meter span{display:block;height:100%;width:0;background:var(--color-teal-strong);border-radius:inherit}
.ef-event{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.ef-event div{min-width:0;background:var(--color-white);border-radius:var(--radius);padding:.75rem}
.ef-event strong{font-size:1.15rem}
.ef-wide{margin-top:var(--space-6);display:grid;gap:var(--space-5)}
.ef-panel{margin:0;min-width:0;width:100%;border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:clamp(1rem,3vw,1.4rem);background:var(--color-white)}
.ef-panel h3{margin-bottom:var(--space-2)}
.ef-legend{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:.75rem 0;padding:0;list-style:none}
.ef-legend li{display:flex;align-items:center;gap:.45rem;font-size:var(--fs-sm);color:var(--color-text)}
.ef-swatch{width:1.1rem;height:.35rem;border-radius:999px;background:var(--color-teal-text)}
.ef-swatch--dashed{background:repeating-linear-gradient(90deg,var(--color-teal-text) 0 7px,transparent 7px 10px)}
.ef-swatch--event{background:var(--color-navy)}
.ef-swatch--goal{background:transparent;border-top:3px dashed var(--color-green-text);height:0}
.ef-swatch--mark{width:.35rem;height:1rem;border-radius:0;background:repeating-linear-gradient(to bottom,var(--color-text-muted) 0 3px,transparent 3px 6px)}
.ef-chart{width:100%;overflow:hidden}
.ef-chart svg{display:block;width:100%;height:auto;color:var(--color-text)}
.ef-table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.ef-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:var(--fs-sm)}
.ef-table th,.ef-table td{text-align:left;padding:.55rem .45rem;border-bottom:1px solid var(--color-border);white-space:nowrap}
.ef-table th:first-child,.ef-table td:first-child{white-space:normal}
.ef-table th{color:var(--color-navy);font-size:var(--fs-xs)}
.ef-compare{display:grid;gap:.9rem}
.ef-compare-card{min-width:0}
.ef-compare-top{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline}
.ef-compare-top strong{color:var(--color-navy);font-variant-numeric:tabular-nums;font-size:clamp(1.2rem,2vw,1.6rem)}
.ef-track{height:.85rem;background:var(--color-gray);border-radius:999px;overflow:hidden;margin:.4rem 0}
.ef-track span{display:block;height:100%;background:var(--color-navy);border-radius:inherit}
.ef-track--delay span{background:var(--color-teal-text)}
.ef-gap{margin:.25rem 0 0;font-weight:var(--fw-bold);color:var(--color-teal-text)}
.ef-takeaways{margin:0 0 var(--space-7)}
.ef-takeaways li{margin:.7rem 0}
.ef-next{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin-top:var(--space-4)}
.ef-next a{font-weight:var(--fw-semibold)}
@media(max-width:58rem){
  .ef-layout,.ef-concepts,.ef-stat-grid{grid-template-columns:1fr}
  .ef-event{grid-template-columns:1fr 1fr}
}
@media(max-width:42rem){
  .ef-event{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .ef-meter span,.ef-track span{transition:none}
}
