/* Discovery and progressive disclosure for the existing Money Figures design. */
.directory { margin: 34px 0 48px; }
.site-home .directory .section-heading { margin-bottom: 22px; }
.site-home .directory .section-heading h2 { font-size: clamp(25px, 3vw, 34px); }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { min-height: 44px; }
.tool-grid .tool-card { min-width: 0; }
.tool-card h3, .tool-card p { overflow-wrap: anywhere; }
.start-here { margin: 42px 0 54px; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.start-grid article { min-width: 0; padding: 22px; border: 1px solid #d8e5db; border-radius: 14px; background: #f6fbf7; }
.start-grid h3 { font-size: 18px; line-height: 1.35; margin: 0 0 9px; color: #183b26; }
.start-grid p { color: #4d6355; font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.start-grid a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: #126d45; line-height: 1.4; text-underline-offset: 3px; }
.field-explainer { margin-top: 7px; font-size: 13px; line-height: 1.55; color: #4b6153; }
.field-explainer > summary { cursor: pointer; color: #126d45; min-height: 44px; padding: 8px 0; font-weight: 550; }
.field-explainer > p { margin: 0 0 8px; }
.scenario-prompt { padding: 17px 18px; margin: 18px 0; border: 1px solid #cbded1; border-radius: 10px; background: #f6fbf7; }
.scenario-prompt .scenario-heading { font-size: 15px; font-weight: 700; color: #1c432b; margin: 0 0 5px; }
.scenario-prompt > p { color: #45604e; font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.scenario-prompt .secondary-button, .scenario-prompt .ex-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; max-width: 100%; padding: 10px 14px; border: 1px solid #126d45; border-radius: 8px; font-size: 14px; line-height: 1.4; color: #126d45; background: #fff; text-align: left; }
.scenario-prompt .scenario-save-hint { font-size: 12px; margin: 11px 0 0; }
.scenario-controls { display: flex; flex-wrap: wrap; gap: 9px; }
.scenario-prompt .comparison-preview { margin: 10px 0 0; font-size: 13px; }
.why-number { margin: 15px 0; border-top: 1px solid #e1eae4; border-bottom: 1px solid #e1eae4; }
.why-number > summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-size: 14px; font-weight: 600; color: #126d45; }
.why-number > p { font-size: 13px; line-height: 1.7; margin: 0 0 15px; color: #45604e; }
.methodology-main details > summary { min-height: 44px; }
.saved-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.saved-scenario .compare-card h4 { margin: 0 0 8px; font-size: 14px; }
.expanded-result-details { margin: 18px 0; border-top: 1px solid #d8e5db; border-bottom: 1px solid #d8e5db; }
.expanded-result-details > summary, .expanded-methodology > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 15px; font-weight: 650; color: #126d45; }
.expanded-result-details[open] > summary { margin-bottom: 12px; }
.expanded-methodology > p, .expanded-methodology > ul { margin: 10px 0 0; }
.visible-model-limit { padding: 13px 16px; background: #edf7f0; border-left: 3px solid #126d45; color: #304b39; font-size: 14px; line-height: 1.6; margin: 25px 0 0; }
.expanded-saved-comparison { margin-top: 20px; }
.expanded-saved-comparison h3 { font-size: 16px; }
.expanded-saved-comparison .compare-card p { font-size: 13px; }
.expanded-body .ex-panel { scroll-margin-top: 105px; }
.expanded-body .ex-sources { font-size: 12px; }
.expanded-body .ex-sources h2 { font-size: 14px; }
.expanded-body .ex-sources p { font-size: 12px; }
.expanded-body .mobile-summary { display: none; }
.expanded-body .ex-answer [role="status"] { overflow-wrap: anywhere; }
body :is(button, summary, a):focus-visible { outline: 3px solid #0a5234; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .55; }
@media (max-width: 980px) {
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .directory { margin-top: 28px; }
  .directory .section-heading { align-items: flex-start; gap: 12px; flex-direction: column; }
  .site-home .directory .standards-banner { display: none; }
  .scenario-prompt { padding: 15px; }
  .scenario-prompt .secondary-button { width: 100%; justify-content: center; }
  .expanded-body .mobile-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: #fff; border-top: 1px solid #d8e5db; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px #1438200a; }
  .expanded-body .mobile-summary > div { min-width: 0; }
  .expanded-body .mobile-summary small { display: block; font-size: 11px; color: #45604e; }
  .expanded-body .mobile-summary strong { display: block; font-size: 18px; color: #126d45; overflow-wrap: anywhere; }
  .expanded-body .mobile-summary button { flex-shrink: 0; min-height: 44px; border: 1px solid #126d45; border-radius: 7px; background: #fff; padding: 8px 12px; color: #126d45; font-size: 13px; }
  .expanded-body { padding-bottom: 92px; }
  .has-calculator .mobile-summary { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .start-grid article { padding: 18px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .expanded-body .ex-metrics { grid-template-columns: minmax(0, 1fr); }
  .expanded-body .comparison-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .scenario-prompt, .mobile-summary, .saved-actions, .expanded-body .site-header, .expanded-body .skip-link { display: none !important; }
  .expanded-body { padding-bottom: 0; }
  .expanded-result-details > summary, .expanded-methodology > summary, .why-number > summary { font-weight: 700; color: #111; }
  .expanded-result-details .ex-metrics { display: grid; }
}
