/**
 * Public funder report — read-only, brand-styled, print-friendly.
 * Brick (#b23a2e) / Denim / Goldenrod accents; clean print CSS for PDF export.
 */
.saf-funder-report {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #1d1d1f;
  line-height: 1.5;
}
.saf-funder-report--notice {
  text-align: center;
  color: #555;
  padding: 3rem 1.25rem;
}
.saf-funder-report__head {
  border-bottom: 3px solid #b23a2e;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.saf-funder-report__title {
  margin: 0;
  font-size: 1.9rem;
  color: #b23a2e;
}
.saf-funder-report__period {
  margin: 0.35rem 0 0;
  color: #555;
  font-size: 0.95rem;
}
.saf-funder-report section {
  margin-bottom: 1.75rem;
}
.saf-funder-report h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: #1d1d1f;
}
.saf-funder-report__objectives p {
  margin: 0;
  white-space: pre-wrap;
}
.saf-funder-report__goal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.saf-funder-report__goal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}
.saf-funder-report__goal-label {
  font-weight: 600;
}
.saf-funder-report__goal-nums {
  color: #444;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.saf-funder-report__bar {
  height: 0.7rem;
  border-radius: 5px;
  background: #ececed;
  overflow: hidden;
}
.saf-funder-report__bar-fill {
  height: 100%;
  background: #b23a2e;
}
.saf-funder-report__bar-fill.is-full {
  background: #1f7a45;
}
.saf-funder-report__metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.saf-funder-report__metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  border: 1px solid #e2e2e6;
  border-radius: 6px;
  background: #fafafa;
}
.saf-funder-report__metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b23a2e;
  font-variant-numeric: tabular-nums;
}
.saf-funder-report__metric-label {
  font-size: 0.85rem;
  color: #444;
}
.saf-funder-report__stats p {
  margin: 0.25rem 0;
}
.saf-funder-report__foot {
  border-top: 1px solid #e2e2e6;
  padding-top: 0.75rem;
  color: #595959; /* AA on the linen page bg (>=4.5:1); #777 fails. */
  font-size: 0.85rem;
}
.saf-funder-report__empty {
  color: #595959;
  font-style: italic;
}
.saf-funder-report__as-of {
  font-weight: 600;
  color: #444;
}
.saf-funder-report__print {
  margin-top: 0.75rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #b23a2e;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.saf-funder-report__print:hover {
  background: #9a2f24;
}
.saf-funder-report__print:focus-visible {
  outline: 2px solid #1f7a45;
  outline-offset: 2px;
}

@media print {
  .saf-funder-report__print {
    display: none;
  }
  .saf-funder-report {
    max-width: none;
    margin: 0;
    color: #000;
  }
  .saf-funder-report__bar {
    border: 1px solid #999;
    background: #fff;
  }
  .saf-funder-report__bar-fill {
    background: #555 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .saf-funder-report__bar-fill.is-full {
    background: #000 !important;
  }
}

/* ---- Phase 7: program-scoped grant-report blocks (session 56) ---- */
.saf-funder-report__people-list,
.saf-funder-report__company-list,
.saf-funder-report__objective-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.saf-funder-report__people-list li {
  margin: 4px 0;
}
.saf-funder-report__company-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.saf-funder-report__company-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.saf-funder-report__objective {
  margin: 12px 0;
}
.saf-funder-report__objective-text {
  font-weight: 600;
}
.saf-funder-report__objective-nums,
.saf-funder-report__objective-note {
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 2px;
}
.saf-funder-report__milestone-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.saf-funder-report__milestone {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.saf-funder-report__milestone-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}
.saf-funder-report__milestone-title {
  font-weight: 700;
}
.saf-funder-report__milestone-date {
  display: block;
  font-size: 0.85em;
  opacity: 0.75;
  margin: 2px 0;
}
@media (max-width: 640px) {
  .saf-funder-report__milestone {
    flex-direction: column;
  }
  .saf-funder-report__milestone-thumb {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}
