/* Company funding comes first; source detail remains one deliberate step away. */
.finance-health {
  --fh-ink: #213d34;
  --fh-muted: #51685f;
  --fh-line: #d3dfd6;
  --fh-projection: #8b4b28;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--fh-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #f2f7ef 0%, #fffdf7 75%);
  color: var(--fh-ink);
  margin-bottom: 30px;
  overflow: hidden;
}
.finance-health-status {
  color: var(--fh-projection);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.6px;
}
.finance-health h2 {
  margin: 12px 0 30px;
  font:
    650 clamp(26px, 3vw, 38px)/1.18 Manrope,
    sans-serif;
  letter-spacing: -1.25px;
  max-width: 740px;
}
.finance-health-numbers {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 24px;
  margin: 0 0 22px;
}
.finance-health-numbers article {
  min-width: 0;
}
.finance-health-numbers span,
.finance-health-numbers small {
  display: block;
  color: var(--fh-muted);
  font-size: 12px;
  line-height: 1.5;
}
.finance-health-numbers strong {
  display: block;
  margin: 10px 0;
  font:
    600 clamp(29px, 3.5vw, 47px)/1.15 Manrope,
    sans-serif;
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
}
.finance-health-chart {
  margin: 0;
}
.finance-health-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.finance-health-chart text {
  font-family: Inter, sans-serif;
  font-size: 11px;
  fill: var(--fh-muted);
}
.fh-grid {
  stroke: var(--fh-line);
  stroke-width: 1;
}
.fh-zero {
  stroke: #a4b5a9;
  stroke-width: 1;
}
.fh-fill {
  fill: #e7c4a9;
  opacity: 0.2;
}
.fh-forecast {
  fill: none;
  stroke: var(--fh-projection);
  stroke-width: 3;
  stroke-dasharray: 7 5;
}
.fh-elapsed {
  opacity: 0.6;
}
.fh-observation {
  fill: var(--fh-ink);
  stroke: #fffdf7;
  stroke-width: 2;
}
.fh-projected-point {
  fill: #fffdf7;
  stroke: var(--fh-projection);
  stroke-width: 2;
}
.fh-scenario-funding {
  stroke: var(--fh-projection);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}
.finance-health-chart figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 11px;
  color: var(--fh-muted);
  margin: 0 0 20px;
}
.finance-health-chart figcaption span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fh-legend-observed {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--fh-ink);
  border-radius: 50%;
}
.fh-legend-forecast {
  display: inline-block;
  width: 23px;
  border-top: 2px dashed var(--fh-projection);
}
.finance-health-reading {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  color: var(--fh-muted);
  font-size: 12px;
  line-height: 1.7;
}
.finance-health-reading strong {
  font-weight: 650;
  color: var(--fh-ink);
}
.finance-health-decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  border-top: 1px solid var(--fh-line);
}
.finance-health-decision .eyebrow {
  font-size: 10px;
}
.finance-health-decision p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 550;
}
.finance-health-decision button {
  flex-shrink: 0;
}
.finance-health-scenario,
.finance-health-method {
  border-top: 1px solid var(--fh-line);
  padding: 15px 0;
}
.finance-health summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.finance-health details p {
  color: var(--fh-muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
}
.finance-health-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 20px 0;
}
.finance-health-controls label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  flex: 1 1 170px;
}
.finance-health-controls input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #9aaa9f;
  color: var(--fh-ink);
  background: #fff;
  font: inherit;
}
.finance-health-controls button {
  min-height: 44px;
}
.finance-health-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--fh-line);
}
.finance-health-links button {
  border: 1px solid var(--fh-line);
  border-radius: 20px;
  padding: 9px 14px;
  background: #fffaf5;
  color: var(--fh-ink);
  font:
    550 12px/1.4 Inter,
    sans-serif;
  cursor: pointer;
  min-height: 40px;
}
.finance-health-links button:hover {
  background: #e9f0e4;
}
.finance-health summary:focus-visible,
.finance-health button:focus-visible,
.finance-health input:focus-visible,
.finance-health-records > summary:focus-visible {
  outline: 3px solid #477560;
  outline-offset: 4px;
}
.finance-health-records {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.finance-health-records > summary {
  padding: 24px;
  cursor: pointer;
  font:
    650 19px/1.5 Manrope,
    sans-serif;
}
.finance-health-records > summary small {
  display: block;
  font:
    400 12px/1.6 Inter,
    sans-serif;
  color: var(--muted);
  margin-top: 7px;
}
.finance-health-records-body {
  padding: 0 24px 24px;
}
.finance-health-records-body .decision-brief {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .finance-health-numbers {
    grid-template-columns: 1fr 1fr;
  }
  .finance-health-numbers article:first-child {
    grid-column: 1 / -1;
  }
  .finance-health-numbers article:first-child strong {
    font-size: 52px;
  }
  .finance-health-reading {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .finance-health-decision {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .finance-health {
    padding: 23px 18px;
    border-radius: 18px;
  }
  .finance-health h2 {
    font-size: 27px;
  }
  .finance-health-numbers {
    gap: 22px 14px;
  }
  .finance-health-numbers strong {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .finance-health-numbers small {
    font-size: 11px;
  }
  .finance-health-chart svg {
    min-height: 150px;
  }
  .finance-health-chart text {
    font-size: 26px;
  }
  .finance-health-records > summary {
    padding: 20px 17px;
  }
  .finance-health-records-body {
    padding: 0 12px 18px;
  }
  .finance-health-links button {
    width: 100%;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .finance-health * {
    animation: none !important;
    transition: none !important;
  }
}
