/**
 * Recipient Chart 2025 — giving-by-category data table
 * Location: [child-theme]/assets/css/recipient-chart-2025.css
 * Enqueued via functions.php (handle: fs-recipient-chart-2025)
 *
 * Namespaced .fs-rc-* so nothing collides with Salient or WPBakery.
 * Palette sourced from foundationsource.com.
 */

.fs-rc-wrap {
  --fs-navy: #1d2a4f;
  --fs-navy-2: #293c5b;
  --fs-teal: #1dbfb3;
  --fs-teal-ink: #0e7c73;
  --fs-tint: #f7fdfc;
  --fs-line: #d9dfe7;
  --fs-ink: #212121;
  --fs-muted: #5b6472;
  --fs-neg: #b4472f;
  margin: 2em 0;
  color: var(--fs-ink);
}

/* ---- Heading + subhead ---- */
.fs-rc-wrap .fs-rc-title {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--fs-navy);
  margin: 0 0 0.35em;
}

.fs-rc-wrap .fs-rc-sub {
  font-size: 1rem;
  color: var(--fs-muted);
  margin: 0 0 1.1em;
}

/* Accessible caption (fallback in case the theme lacks .screen-reader-text). */
.fs-rc-wrap .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Card shell ---- */
.fs-rc-card {
  border: 1px solid var(--fs-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(29, 42, 79, 0.07);
}

.fs-rc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Table ---- */
/* Salient styles bare <table> in post content, so reset only what we must. */
.fs-rc-wrap table.fs-rc {
  width: 100%;
  min-width: 660px;
  margin: 0 !important;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
}

.fs-rc-wrap table.fs-rc thead th {
  background: var(--fs-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  vertical-align: bottom;
  padding: 16px 18px;
  border: 0;
  border-bottom: 3px solid var(--fs-teal) !important;
}

.fs-rc-wrap table.fs-rc thead th:first-child,
.fs-rc-wrap table.fs-rc th.fs-sharecol {
  text-align: left;
}

.fs-rc-wrap table.fs-rc tbody tr th {
  text-align: left;
  color: #000;
}

.fs-rc-wrap table.fs-rc tbody td,
.fs-rc-wrap table.fs-rc tbody th {
  padding: 14px 18px;
  text-align: right;
  white-space: nowrap;
  border: 0;
  border-top: 1px solid #edf1f5;
  font-variant-numeric: tabular-nums;
}

.fs-rc-wrap table.fs-rc tbody th[scope='row'] {
  text-align: left;
  white-space: normal;
  font-weight: 600;
  color: var(--fs-navy);
}

.fs-rc-wrap table.fs-rc tbody td.fs-sharecell {
  text-align: left;
}

.fs-rc-wrap table.fs-rc tbody tr:nth-child(even) {
  background: var(--fs-tint);
}

.fs-rc-wrap table.fs-rc tbody tr:hover {
  background: #eef7f6;
}

/* ---- Value styling ---- */
.fs-rc-wrap .fs-amt {
  font-weight: 600;
  color: var(--fs-navy-2);
}

.fs-rc-wrap .fs-up {
  color: var(--fs-teal-ink);
  font-weight: 600;
}

.fs-rc-wrap .fs-down {
  color: var(--fs-neg);
  font-weight: 600;
}

/* ---- Share-of-total bar ---- */
.fs-rc-wrap .fs-shareinner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-rc-wrap .fs-share {
  min-width: 2.9em;
  text-align: right;
  font-weight: 600;
  color: var(--fs-navy-2);
  font-variant-numeric: tabular-nums;
}

.fs-rc-wrap .fs-track {
  flex: 0 0 120px;
  height: 8px;
  border-radius: 4px;
  background: #e4eaf0;
  overflow: hidden;
}

.fs-rc-wrap .fs-bar {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--fs-teal);
}

/* ---- Footnotes ---- */
.fs-rc-wrap .fs-rc-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b7480;
  margin: 0.9em 0 0;
}

.fs-rc-wrap .fs-rc-swipe {
  display: none;
  font-size: 0.78rem;
  font-style: italic;
  color: #6b7480;
  margin: 0.6em 0 0;
}

/* ---- Mobile ---- */
@media (max-width: 690px) {
  .fs-rc-wrap table.fs-rc {
    min-width: 600px;
    font-size: 0.92rem;
  }

  .fs-rc-wrap table.fs-rc thead th,
  .fs-rc-wrap table.fs-rc tbody td,
  .fs-rc-wrap table.fs-rc tbody th {
    padding: 12px 14px;
  }

  .fs-rc-wrap .fs-track {
    flex: 0 0 70px;
  }

  .fs-rc-wrap .fs-rc-swipe {
    display: block;
  }
}

/* ---- Print ---- */
@media print {
  .fs-rc-card {
    box-shadow: none;
  }

  .fs-rc-wrap table.fs-rc {
    min-width: 0;
  }

  .fs-rc-wrap .fs-rc-swipe {
    display: none;
  }
}
