/* Company condition first; every chart retains its scope and observation date. */
.company-health-overview,
.lane-health {
  --health-ink: #172f2a;
  --health-muted: #576760;
  --health-line: #d9e0da;
  --health-green: #376f56;
  --health-amber: #b1813f;
  --health-blue: #5f7f93;
  --health-red: #ad6259;
  --health-neutral: #aeb7ae;
  color: var(--health-ink);
}
.health-overview-intro {
  max-width: 850px;
  padding: clamp(16px, 4vw, 48px) 0 30px;
}
.health-overview-intro h1 {
  font-size: clamp(42px, 6.1vw, 78px);
  letter-spacing: -0.065em;
  line-height: 1.01;
  font-weight: 600;
  margin: 18px 0 22px;
  text-wrap: balance;
}
.health-overview-intro > p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  max-width: 650px;
  color: var(--health-muted);
}
.health-snapshot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--health-muted);
  margin-top: 22px;
}
.health-observation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--health-green);
  flex-shrink: 0;
}
.company-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.company-health-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--health-line);
  background: linear-gradient(145deg, #fff, #f5f7f3);
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
  padding: 23px;
  min-width: 0;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.company-health-card:hover {
  transform: translateY(-3px);
  border-color: #91a79a;
  box-shadow: 0 10px 28px #1633280d;
}
.company-health-card:focus-visible {
  outline: 3px solid #447b64;
  outline-offset: 4px;
}
.health-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
}
.health-card-top > span:last-child {
  font-size: 22px;
  font-weight: 400;
}
.company-health-card h2 {
  font-size: clamp(23px, 2.35vw, 31px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin: 26px 0 10px;
  text-wrap: balance;
}
.company-health-card > p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--health-muted);
  margin: 0 0 18px;
}
.company-health-card .health-chart {
  margin-top: auto;
  padding-top: 16px;
}
.health-card-cutoff {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--health-muted);
  margin-top: 14px;
}
.health-overview-note {
  font-size: 12px;
  color: var(--health-muted);
  margin: 20px 0 36px;
  max-width: 750px;
  line-height: 1.6;
}
.health-chart {
  margin: 0;
  min-width: 0;
}
.health-chart figcaption {
  color: var(--health-muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 13px;
}
.health-distribution {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef0eb;
}
.health-fill {
  min-width: 4px;
  flex-basis: 0;
}
.health-green {
  background: var(--health-green);
}
.health-amber {
  background: var(--health-amber);
}
.health-blue {
  background: var(--health-blue);
}
.health-red {
  background: var(--health-red);
}
.health-neutral {
  background: var(--health-neutral);
}
.health-legend {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
}
.health-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.health-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.health-legend b {
  font-weight: 650;
}
.health-legend-compact {
  font-size: 10px;
  gap: 7px 12px;
}
.health-legend-compact i {
  width: 5px;
  height: 5px;
}
.health-capacity {
  display: grid;
  gap: 16px;
}
.health-meter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.health-meter-label strong {
  font-size: 14px;
}
.health-capacity-track {
  height: 10px;
  border-radius: 8px;
  background: #e0e6de;
  overflow: hidden;
}
.health-capacity-track > span {
  display: block;
  height: 100%;
  background: var(--health-green);
  border-radius: 8px;
}
.health-capacity small {
  display: block;
  font-size: 10px;
  color: var(--health-muted);
  margin-top: 6px;
}
.company-health-card .health-capacity {
  gap: 10px;
}
.company-health-card .health-meter-label {
  font-size: 10px;
  margin-bottom: 5px;
}
.company-health-card .health-meter-label strong {
  font-size: 11px;
}
.company-health-card .health-capacity-track {
  height: 6px;
}
.health-series {
  display: block;
  width: 100%;
  max-height: 160px;
  overflow: visible;
}
.health-series-line {
  fill: none;
  stroke: var(--health-blue);
  stroke-width: 3;
}
.health-series circle {
  fill: var(--health-blue);
}
.health-series text {
  font-size: 12px;
  fill: var(--health-ink);
  font-family: inherit;
}
.health-series .health-chart-note {
  font-size: 9px;
  fill: var(--health-muted);
}
.health-axis {
  stroke: var(--health-line);
  stroke-width: 1;
  fill: none;
}
.health-series-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 11px;
  color: var(--health-muted);
}
.health-series-labels li {
  max-width: 32%;
}
.health-series-labels strong {
  display: block;
  color: var(--health-ink);
  margin-top: 5px;
  font-size: 15px;
}
.health-people {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.health-people > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.health-people img,
.health-person-placeholder {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}
.health-people b,
.health-people small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.health-people small {
  font-size: 10px;
  color: var(--health-muted);
  max-width: 200px;
}
.lane-health .health-people {
  gap: 20px;
}
.company-health-card .health-people {
  gap: 0;
}
.company-health-card .health-people > div + div {
  margin-left: -10px;
}
.health-funding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  padding: 16px 0;
}
.health-funding-point {
  width: 9px;
  height: 9px;
  border: 2px solid var(--health-green);
  border-radius: 50%;
  flex-shrink: 0;
}
.health-funding-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--health-amber);
}
.health-no-series {
  border-bottom: 1px dashed var(--health-line);
  padding: 15px 0;
  color: var(--health-muted);
  font-size: 12px;
}
.lane-health {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--health-line);
  border-radius: 26px;
  background: linear-gradient(120deg, #fafcf8, #f0f5ef);
  margin: 20px 0 28px;
}
.health-lane-heading h1 {
  font-size: clamp(30px, 4.5vw, 55px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
  max-width: 780px;
  margin: 15px 0 27px;
  text-wrap: balance;
}
.health-dominant-state {
  font-size: clamp(22px, 3.2vw, 35px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 900px;
}
.health-explanation {
  font-size: 15px;
  line-height: 1.65;
  color: var(--health-muted);
  max-width: 760px;
  margin: 0 0 30px;
}
.health-lane-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  gap: 40px;
  padding: 25px 0 30px;
  border-top: 1px solid var(--health-line);
  border-bottom: 1px solid var(--health-line);
  align-items: center;
}
.health-metrics {
  display: grid;
  gap: 18px;
  margin: 0;
}
.health-metrics > div {
  min-width: 0;
}
.health-metrics dt {
  font-size: 11px;
  color: var(--health-muted);
  line-height: 1.5;
}
.health-metrics dd {
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 5px 0 0;
  font-weight: 550;
}
.health-next {
  display: flex;
  gap: 24px;
  margin: 24px 0 14px;
}
.health-next > span {
  font-size: 11px;
  white-space: nowrap;
  font-weight: 650;
  padding-top: 4px;
}
.health-next p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 750px;
  margin: 0;
}
.health-reading-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--health-muted);
  max-width: 860px;
  margin: 10px 0 20px;
}
.health-asof {
  font-size: 11px;
  color: var(--health-muted);
  line-height: 1.5;
}
.health-evidence-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.health-evidence-links .text-btn {
  font-size: 12px;
}
.health-evidence {
  border: 1px solid #d9e0da;
  border-radius: 18px;
  padding: 0 20px;
  margin: 20px 0 32px;
  background: #fff;
}
.health-evidence > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 22px 0;
}
.health-evidence > summary:focus-visible {
  outline: 3px solid #447b64;
  outline-offset: 4px;
}
.health-evidence[open] > summary {
  margin-bottom: 14px;
  border-bottom: 1px solid #d9e0da;
}
@media (min-width: 1100px) {
  .company-health-card:first-child {
    grid-column: span 2;
    min-height: 220px;
    background: linear-gradient(120deg, #edf4e9, #f6f8f0);
  }
  .company-health-card:first-child h2 {
    font-size: 55px;
  }
  .company-health-card:first-child .health-chart {
    max-width: 420px;
  }
}
@media (max-width: 1000px) {
  .company-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .health-lane-visual {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.8fr);
  }
}
@media (max-width: 650px) {
  .company-health-grid {
    grid-template-columns: 1fr;
  }
  .company-health-card {
    padding: 23px;
    min-height: 225px;
  }
  .company-health-card h2 {
    font-size: 29px;
    margin-top: 22px;
  }
  .health-overview-intro {
    padding-top: 22px;
  }
  .health-overview-intro h1 {
    font-size: 48px;
  }
  .health-lane-visual {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .health-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .health-metrics dd {
    font-size: 21px;
  }
  .health-next {
    display: block;
  }
  .health-next > span {
    display: block;
    margin-bottom: 8px;
  }
  .health-lane-heading h1 {
    font-size: 35px;
  }
  .health-dominant-state {
    font-size: 27px;
  }
  .lane-health {
    padding: 25px 20px;
    border-radius: 21px;
  }
  .health-evidence {
    padding: 0 14px;
  }
  .health-series-labels {
    font-size: 9px;
  }
  .health-evidence-links {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .company-health-card {
    transition: none;
  }
  .company-health-card:hover {
    transform: none;
  }
}
.health-runway-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 10px;
}
.health-runway-heading strong {
  font-size: 22px;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.health-runway-heading > span {
  font-size: 10px;
  color: var(--health-muted);
}
.health-runway-mini {
  display: block;
  width: 100%;
  overflow: visible;
}
.health-runway-fill {
  fill: #376f5610;
}
.health-runway-line {
  fill: none;
  stroke: var(--health-green);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.health-cash-observation {
  fill: var(--health-green);
  stroke: #fff;
  stroke-width: 2;
}
.health-runway-mini text {
  font-size: 11px;
  font-family: inherit;
  fill: var(--health-muted);
}
.health-runway-key {
  display: flex;
  gap: 17px;
  font-size: 10px;
  color: var(--health-muted);
  margin-top: 5px;
}
.health-runway-key > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.health-runway-key > span:first-child i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--health-green);
}
.health-runway-key > span:last-child i {
  display: inline-block;
  width: 16px;
  border-top: 1px dashed var(--health-green);
}
.health-people-caption {
  font-size: 10px;
  line-height: 1.6;
  color: var(--health-muted);
  margin: 12px 0 0;
}
.company-health-card .health-capacity small {
  font-size: 9px;
  line-height: 1.5;
}
.company-health-card .health-chart-funding {
  padding-top: 8px;
}
@media (min-width: 1100px) {
  .company-health-card:first-child .health-chart {
    max-width: none;
  }
  .company-health-card:first-child {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    column-gap: 28px;
    align-items: start;
  }
  .company-health-card:first-child .health-card-top {
    grid-column: 1 / -1;
  }
  .company-health-card:first-child h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 27px 0 12px;
  }
  .company-health-card:first-child > p {
    grid-column: 1;
    grid-row: 3;
  }
  .company-health-card:first-child .health-chart {
    grid-column: 2;
    grid-row: 2 / 5;
    align-self: center;
    margin: 18px 0 0;
  }
  .company-health-card:first-child .health-card-cutoff {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    align-self: end;
  }
}
