/* ========================================
   FEC Political Contributions Variants
   ENHANCED - Focus on Individual Donors
   ======================================== */

/* Shared FEC Variables */
.fec-01, .fec-02, .fec-03, .fec-04, .fec-05, .fec-06, .fec-07, .fec-08, .fec-09, .fec-10 {
  --fec-dem: oklch(0.55 0.2 250);
  --fec-dem-bg: oklch(0.55 0.2 250 / 0.1);
  --fec-dem-border: oklch(0.55 0.2 250 / 0.3);
  --fec-rep: oklch(0.55 0.25 25);
  --fec-other: var(--muted-foreground);
}

/* Shared avatar styles */
[class*="fec-"][class*="-avatar"] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== FEC-01: Classic Table - Enhanced ===== */
.fec-01 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-01-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-01-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-01-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-01-icon { font-size: 1.75rem; }
.fec-01-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-01-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-01-header-stats { text-align: right; }
.fec-01-total {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-01-source {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.fec-01-summary-bar {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.fec-01-summary-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.fec-01-summary-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}
.fec-01-summary-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fec-01-table-wrap { overflow-x: auto; }
.fec-01-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.fec-01-th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 2px solid var(--border);
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fec-01-th--num { text-align: right; }
.fec-01-row:hover { background: var(--muted); }
.fec-01-td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.fec-01-td--num { text-align: right; }
.fec-01-td--amount { font-weight: 600; color: var(--foreground); }
.fec-01-td--avg { color: var(--muted-foreground); font-size: 0.8rem; }
.fec-01-donor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fec-01-donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}
.fec-01-donor-name { font-weight: 500; }
.fec-01-donor-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-01-count-highlight {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}
.fec-01-td--recipients {
  max-width: 200px;
}
.fec-01-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}
.fec-01-tag--dem {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
}
.fec-01-tag-more {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.fec-01-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.fec-01-more {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.fec-01-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}
.fec-01-link:hover { text-decoration: underline; }

/* ===== FEC-02: Donor Cards - Enhanced ===== */
.fec-02 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-02-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-02-header { margin-bottom: 1.5rem; }
.fec-02-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-02-icon { font-size: 1.75rem; }
.fec-02-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-02-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-02-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem;
  background: linear-gradient(to right, var(--fec-dem-bg), transparent, var(--fec-dem-bg));
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.fec-02-hero-stat { text-align: center; }
.fec-02-hero-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.fec-02-hero-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-02-hero-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.fec-02-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}
.fec-02-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.fec-02-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  position: relative;
}
.fec-02-card--featured {
  border-color: var(--fec-dem-border);
  background: var(--fec-dem-bg);
}
.fec-02-card-rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.fec-02-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fec-02-card--featured .fec-02-card-avatar {
  background: var(--fec-dem);
  color: white;
}
.fec-02-card-body { flex: 1; min-width: 0; }
.fec-02-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}
.fec-02-card-location {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0;
}
.fec-02-card-stats {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
}
.fec-02-card-stat-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.fec-02-card-stat-value--highlight {
  color: var(--fec-dem);
}
.fec-02-card-stat-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-02-card-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.fec-02-recipient {
  font-size: 0.65rem;
  background: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.fec-02-recipient--dem {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
}
.fec-02-recipient-more {
  font-size: 0.65rem;
  color: var(--muted-foreground);
}
.fec-02-card-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0.5rem 0 0;
}
.fec-02-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-style: dashed;
  min-height: 120px;
}
.fec-02-more-content { text-align: center; }
.fec-02-more-count {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted-foreground);
}
.fec-02-more-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.fec-02-more-amount {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.fec-02-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-03: Donut Chart + List - Enhanced ===== */
.fec-03 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-03-header {
  margin-bottom: 2rem;
}
.fec-03-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .fec-03-title { font-size: 2.5rem; }
}
.fec-03-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.fec-03-badge {
  font-size: 0.75rem;
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.fec-03-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 700px) {
  .fec-03-content { grid-template-columns: 1fr; }
}
.fec-03-chart-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.fec-03-donut {
  position: relative;
  width: 160px;
  height: 160px;
}
.fec-03-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.fec-03-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fec-03-donut-amount {
  font-size: 1.5rem;
  font-weight: 700;
}
.fec-03-donut-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-03-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-03-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 4px);
}
.fec-03-legend-item--active {
  background: var(--fec-dem-bg);
}
.fec-03-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.fec-03-legend-color--dem { background: var(--fec-dem); }
.fec-03-legend-color--rep { background: var(--fec-rep); }
.fec-03-legend-color--other { background: var(--muted-foreground); }
.fec-03-legend-info { flex: 1; }
.fec-03-legend-label {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
}
.fec-03-legend-value {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-03-quick-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}
.fec-03-quick-stat { text-align: center; }
.fec-03-quick-value {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}
.fec-03-quick-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-03-donors-section { flex: 1; }
.fec-03-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fec-03-list-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}
.fec-03-list-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-03-list-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.fec-03-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar-width, 0);
  background: var(--fec-dem);
  opacity: 0.1;
}
.fec-03-list-donor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.fec-03-donor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
}
img.fec-03-donor-avatar--photo,
img.fec-03-card-avatar--photo {
  object-fit: cover;
  border: 2px solid var(--border);
}
.fec-03-donor-name {
  font-weight: 500;
  font-size: 0.875rem;
}
.fec-03-donor-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-03-list-amount {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Other Donors Section - fec-02 style cards */
.fec-03-other-section {
  margin-top: 2.5rem;
}
.fec-03-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fec-03-section-meta {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Cards Grid - fec-02 style */
.fec-03-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.fec-03-donor-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fec-03-donor-card:hover {
  border-color: var(--fec-dem-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fec-03-card-rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.fec-03-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fec-03-card-body {
  flex: 1;
  min-width: 0;
}
.fec-03-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.fec-03-card-stats {
  display: flex;
  gap: 1rem;
}
.fec-03-card-stat {
  display: flex;
  flex-direction: column;
}
.fec-03-card-stat-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--foreground);
}
.fec-03-card-stat-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fec-03-card-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}
.fec-03-card-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.fec-03-recipient {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  font-weight: 500;
}
.fec-03-card-note {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* Quick Insights Section */
.fec-03-insights {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.fec-03-insights-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.fec-03-insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .fec-03-insight-cards { grid-template-columns: 1fr; }
}
.fec-03-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
}
.fec-03-insight-icon { font-size: 1.25rem; }
.fec-03-insight-content { flex: 1; min-width: 0; }
.fec-03-insight-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.125rem;
}
.fec-03-insight-value {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.fec-03-footnote {
  margin: 2rem 1rem 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-04: Timeline - Enhanced ===== */
.fec-04 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-04-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-04-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-04-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-04-icon { font-size: 1.75rem; }
.fec-04-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-04-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-04-header-right { text-align: right; }
.fec-04-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-04-total-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-04-timeline {
  position: relative;
  margin-left: 1.5rem;
}
.fec-04-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.fec-04-line {
  position: absolute;
  left: -1.5rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.fec-04-line--fade {
  background: linear-gradient(to bottom, var(--border), transparent);
}
.fec-04-marker {
  position: absolute;
  left: calc(-1.5rem - 12px);
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--fec-dem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--card);
}
.fec-04-marker--more {
  background: var(--muted);
}
.fec-04-rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
}
.fec-04-marker--more .fec-04-rank {
  color: var(--muted-foreground);
  font-size: 0.55rem;
}
.fec-04-content {
  padding-left: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem;
  margin-left: 0.5rem;
}
.fec-04-item--top .fec-04-content {
  background: var(--fec-dem-bg);
  border: 1px solid var(--fec-dem-border);
}
.fec-04-donor-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.fec-04-donor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fec-04-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.fec-04-item--top .fec-04-avatar {
  background: var(--fec-dem);
  color: white;
}
.fec-04-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.fec-04-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-04-amount-block { text-align: right; }
.fec-04-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.fec-04-amount-pct {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-04-details {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0;
}
.fec-04-detail { text-align: center; }
.fec-04-detail--highlight {
  background: var(--fec-dem-bg);
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
}
.fec-04-detail-value {
  font-weight: 700;
  font-size: 1rem;
  display: block;
}
.fec-04-detail-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-04-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.fec-04-recipient {
  font-size: 0.7rem;
  background: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.fec-04-recipient-more {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.fec-04-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0.5rem 0 0;
}
.fec-04-item--more .fec-04-content {
  background: transparent;
  border: 1px dashed var(--border);
}
.fec-04-more-info {
  text-align: center;
}
.fec-04-more-title {
  font-weight: 500;
  display: block;
}
.fec-04-more-amount {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.fec-04-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-05: Accordion - Enhanced ===== */
.fec-05 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-05-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-05-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.fec-05-icon { font-size: 1.75rem; }
.fec-05-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-05-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-05-hero {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-05-hero-item { text-align: center; }
.fec-05-hero-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-05-hero-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-05-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-05-section {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.fec-05-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  cursor: pointer;
  list-style: none;
}
.fec-05-summary::-webkit-details-marker { display: none; }
.fec-05-chevron {
  color: var(--muted-foreground);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.fec-05-section[open] .fec-05-chevron { transform: rotate(0deg); }
.fec-05-section:not([open]) .fec-05-chevron { transform: rotate(-90deg); }
.fec-05-summary-title {
  font-weight: 600;
  flex: 1;
}
.fec-05-summary-badge {
  font-size: 0.7rem;
  background: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.fec-05-summary-amount {
  font-weight: 700;
  color: var(--primary);
}
.fec-05-content {
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.fec-05-donor-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fec-05-donor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
.fec-05-donor-rank {
  width: 24px;
  height: 24px;
  background: var(--fec-dem);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.fec-05-donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fec-05-donor-info { flex: 1; min-width: 0; }
.fec-05-donor-name { font-weight: 500; }
.fec-05-donor-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-05-donor-stats { text-align: right; }
.fec-05-donor-amount {
  font-weight: 700;
  display: block;
}
.fec-05-donor-avg {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.fec-05-more {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: center;
}
.fec-05-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-05-recipient {
  display: grid;
  grid-template-columns: 50px 1fr 100px 70px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
@media (max-width: 600px) {
  .fec-05-recipient {
    grid-template-columns: 40px 1fr 60px;
  }
  .fec-05-recipient-bar-wrap { display: none; }
}
.fec-05-recipient-party {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
}
.fec-05-party--dem {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
}
.fec-05-recipient-name { font-weight: 500; font-size: 0.875rem; }
.fec-05-recipient-bar-wrap {
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
}
.fec-05-recipient-bar {
  height: 100%;
  background: var(--fec-dem);
  border-radius: 3px;
}
.fec-05-recipient-amount {
  font-weight: 600;
  text-align: right;
  font-size: 0.875rem;
}
.fec-05-party-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fec-05-party-item {
  padding: 1rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
.fec-05-party-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fec-05-party-icon { font-size: 1rem; }
.fec-05-party-name {
  font-weight: 500;
  flex: 1;
}
.fec-05-party-amount { font-weight: 700; }
.fec-05-party-bar-full {
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.fec-05-party-bar {
  height: 100%;
  border-radius: 4px;
}
.fec-05-party-pct {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-05-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-06: Split View - Enhanced ===== */
.fec-06 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-06-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-06-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-06-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-06-icon { font-size: 1.75rem; }
.fec-06-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-06-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-06-header-right { text-align: right; }
.fec-06-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-06-total-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-06-split {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 0.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .fec-06-split { grid-template-columns: 1fr; }
  .fec-06-flow-container { display: none; }
}
.fec-06-column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fec-06-column-title svg {
  opacity: 0.6;
}
.fec-06-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-06-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
}
.fec-06-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fec-06-party-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.fec-06-party--dem {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
}
.fec-06-item-info { flex: 1; min-width: 0; }
.fec-06-name {
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
}
.fec-06-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.fec-06-amount {
  font-weight: 700;
  font-size: 0.9rem;
}
.fec-06-item--more {
  justify-content: center;
  background: var(--muted);
  border: 1px dashed var(--border);
}
.fec-06-more-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.fec-06-flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.fec-06-flow {
  width: 100%;
  height: 300px;
}
.fec-06-party-summary {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.fec-06-party-bar {
  display: flex;
  height: 28px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.fec-06-party-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}
.fec-06-party-segment--dem { background: var(--fec-dem); }
.fec-06-party-segment--other { background: var(--muted-foreground); }
.fec-06-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-07: Stats Dashboard - Enhanced ===== */
.fec-07 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-07-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-07-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.fec-07-icon { font-size: 1.75rem; }
.fec-07-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-07-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .fec-07-stats { grid-template-columns: repeat(2, 1fr); }
}
.fec-07-stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.fec-07-stat-card--primary {
  background: var(--fec-dem-bg);
  border-color: var(--fec-dem-border);
}
.fec-07-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.fec-07-stat-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fec-07-stat-sublabel {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  display: block;
  opacity: 0.7;
}
.fec-07-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .fec-07-grid { grid-template-columns: 1fr; }
}
.fec-07-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.fec-07-breakdown {
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
}
.fec-07-party-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fec-07-party-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fec-07-party-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
}
.fec-07-party-icon { font-size: 0.9rem; }
.fec-07-party-label { font-size: 0.85rem; font-weight: 500; }
.fec-07-bar-wrap {
  flex: 1;
  height: 24px;
  background: var(--muted);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}
.fec-07-bar {
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
}
.fec-07-bar--dem { background: var(--fec-dem); }
.fec-07-bar--other { background: var(--muted-foreground); }
.fec-07-party-values { text-align: right; min-width: 80px; }
.fec-07-party-pct { font-weight: 700; display: block; }
.fec-07-party-amount { font-size: 0.75rem; color: var(--muted-foreground); }
.fec-07-top-donors {
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
}
.fec-07-donor-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-07-donor-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}
.fec-07-donor-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--fec-dem);
  opacity: 0.15;
}
.fec-07-donor-rank {
  width: 20px;
  height: 20px;
  background: var(--fec-dem);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.fec-07-donor-info {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.fec-07-donor-name {
  font-weight: 500;
  font-size: 0.875rem;
}
.fec-07-donor-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-07-donor-amount {
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.fec-07-more {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: center;
}
.fec-07-insights {
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
}
.fec-07-insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .fec-07-insight-cards { grid-template-columns: 1fr; }
}
.fec-07-insight {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
.fec-07-insight-icon { font-size: 1.25rem; }
.fec-07-insight-content { flex: 1; }
.fec-07-insight-title {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  display: block;
}
.fec-07-insight-value {
  font-size: 0.85rem;
  font-weight: 500;
}
.fec-07-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-08: Grouped by Party - Enhanced ===== */
.fec-08 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-08-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-08-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-08-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-08-icon { font-size: 1.75rem; }
.fec-08-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-08-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-08-header-right { text-align: right; }
.fec-08-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-08-total-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-08-parties {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fec-08-party {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.fec-08-party--dem {
  border-color: var(--fec-dem-border);
}
.fec-08-party-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fec-08-party--dem .fec-08-party-header {
  background: var(--fec-dem-bg);
}
.fec-08-party-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fec-08-party-icon { font-size: 1.25rem; }
.fec-08-party-name {
  font-weight: 600;
  display: block;
}
.fec-08-party-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-08-party-stats { text-align: right; }
.fec-08-party-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-08-party-pct {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-08-party-content {
  padding: 1rem;
}
.fec-08-party-content--compact {
  padding: 0.75rem 1rem;
}
.fec-08-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}
.fec-08-donors-preview {
  margin-bottom: 1.25rem;
}
.fec-08-donor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fec-08-donor-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--card);
  border-radius: 9999px;
  border: 1px solid var(--border);
}
.fec-08-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
}
.fec-08-chip-name {
  font-size: 0.8rem;
  font-weight: 500;
}
.fec-08-chip-amount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
.fec-08-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-08-recipient {
  display: grid;
  grid-template-columns: 1fr 100px 70px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
@media (max-width: 500px) {
  .fec-08-recipient {
    grid-template-columns: 1fr 60px;
  }
  .fec-08-recipient-bar-wrap { display: none; }
}
.fec-08-recipient-info { min-width: 0; }
.fec-08-recipient-name {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fec-08-recipient-type {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.fec-08-recipient-bar-wrap {
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
}
.fec-08-recipient-bar {
  height: 100%;
  background: var(--fec-dem);
  border-radius: 3px;
}
.fec-08-recipient-amount {
  text-align: right;
  font-weight: 600;
  font-size: 0.875rem;
}
.fec-08-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== FEC-09: Compact Summary - Enhanced ===== */
.fec-09 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-09-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-09-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.fec-09-icon { font-size: 1.75rem; }
.fec-09-header-text { flex: 1; }
.fec-09-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.fec-09-source {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-09-hero {
  text-align: center;
  padding: 1.5rem;
  background: var(--fec-dem-bg);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.25rem;
}
.fec-09-hero-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-09-hero-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.fec-09-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.fec-09-stat { text-align: center; }
.fec-09-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}
.fec-09-stat-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.fec-09-stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}
.fec-09-party-bar {
  display: flex;
  height: 24px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.fec-09-party-segment {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fec-09-party-segment--dem { background: var(--fec-dem); }
.fec-09-party-segment--other { background: var(--muted-foreground); }
.fec-09-party-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}
.fec-09-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.fec-09-highlight {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.85rem;
}
.fec-09-highlight-label {
  font-weight: 500;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.fec-09-highlight-value {
  text-align: right;
}
.fec-09-recipients {
  margin-bottom: 1.25rem;
}
.fec-09-recipients-label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}
.fec-09-recipient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.fec-09-recipient-tag {
  font-size: 0.75rem;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}
.fec-09-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fec-09-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.fec-09-btn:hover { opacity: 0.9; }
.fec-09-btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.fec-09-btn--secondary {
  background: var(--muted);
  color: var(--foreground);
}

/* ===== FEC-10: Sankey Flow - Enhanced ===== */
.fec-10 {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fec-10-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fec-10-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fec-10-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fec-10-icon { font-size: 1.75rem; }
.fec-10-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fec-10-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fec-10-header-right { text-align: right; }
.fec-10-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.fec-10-total-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-10-flow {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 0;
  align-items: start;
}
@media (max-width: 800px) {
  .fec-10-flow { grid-template-columns: 1fr 60px 1fr; }
}
@media (max-width: 600px) {
  .fec-10-flow { grid-template-columns: 1fr; }
  .fec-10-flow-visual { display: none; }
}
.fec-10-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fec-10-column-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}
.fec-10-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.fec-10-node--lg {
  border-width: 2px;
  border-color: var(--fec-dem-border);
  background: var(--fec-dem-bg);
}
.fec-10-node--donor {
  flex-direction: row;
}
.fec-10-node--recipient {
  flex-direction: row;
}
.fec-10-node-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.fec-10-node-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}
.fec-10-node--lg .fec-10-node-avatar {
  background: var(--fec-dem);
  color: white;
}
.fec-10-party-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.fec-10-party--dem {
  background: var(--fec-dem-bg);
  color: var(--fec-dem);
}
.fec-10-node--lg .fec-10-party--dem {
  background: var(--fec-dem);
  color: white;
}
.fec-10-node-info { flex: 1; min-width: 0; }
.fec-10-node-name {
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fec-10-node-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.fec-10-node-amount {
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.fec-10-more-donors, .fec-10-more-recipients {
  text-align: center;
  padding: 0.75rem;
  background: var(--muted);
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.fec-10-more-count {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}
.fec-10-more-label {
  font-size: 0.8rem;
}
.fec-10-flow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.fec-10-svg {
  width: 100%;
  height: 380px;
}
.fec-10-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.fec-10-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.fec-10-legend-line {
  width: 24px;
  height: 4px;
  background: linear-gradient(to right, var(--fec-dem), oklch(0.55 0.2 250 / 0.3));
  border-radius: 2px;
}
.fec-10-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fec-10-legend-dot--dem { background: var(--fec-dem); }
.fec-10-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   Related Organizations Block
   ======================================== */
.related-orgs {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.related-orgs-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.related-orgs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}
.related-orgs-header-text { flex: 1; }
.related-orgs-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
}
.related-orgs-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.related-orgs-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Group */
.related-orgs-group {
  margin-bottom: 1.5rem;
}
.related-orgs-group:last-child {
  margin-bottom: 0;
}
.related-orgs-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.related-orgs-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}
.related-orgs-group-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Grid */
.related-orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .related-orgs-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.related-orgs-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-orgs-card:hover {
  border-color: oklch(0.55 0.15 250 / 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.related-orgs-card-main { flex: 1; }
.related-orgs-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.related-orgs-card-location {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.related-orgs-card-activity {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Meta row */
.related-orgs-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.related-orgs-card-code {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}
.related-orgs-card-financials {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}
.related-orgs-card-fin {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Badges */
.related-orgs-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.related-orgs-badge--exempt {
  background: oklch(0.55 0.2 250 / 0.1);
  color: oklch(0.55 0.2 250);
}
.related-orgs-badge--disregarded {
  background: oklch(0.6 0.15 60 / 0.1);
  color: oklch(0.6 0.15 60);
}
.related-orgs-badge--taxable {
  background: oklch(0.55 0.25 25 / 0.1);
  color: oklch(0.55 0.25 25);
}
.related-orgs-badge--related {
  background: oklch(0.55 0.15 160 / 0.1);
  color: oklch(0.55 0.15 160);
}
.related-orgs-badge--default {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Note */
.related-orgs-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   PPP Loans Block
   COVID-19 Paycheck Protection Program
   ======================================== */

/* Variables */
.ppp {
  --ppp-green: oklch(0.65 0.15 160);
  --ppp-green-bg: oklch(0.65 0.15 160 / 0.1);
  --ppp-green-border: oklch(0.65 0.15 160 / 0.3);
  --ppp-amber: oklch(0.7 0.15 75);
  --ppp-amber-bg: oklch(0.7 0.15 75 / 0.1);
}

.ppp {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.ppp-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Header */
.ppp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.ppp-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.ppp-icon {
  color: var(--ppp-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ppp-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.ppp-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Forgiveness Badge */
.ppp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.ppp-badge--full {
  background: var(--ppp-green-bg);
  color: var(--ppp-green);
}
.ppp-badge--partial {
  background: var(--ppp-amber-bg);
  color: var(--ppp-amber);
}
.ppp-badge--none {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Summary Cards */
.ppp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .ppp-cards { grid-template-columns: 1fr; }
}
.ppp-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.ppp-card--forgiven {
  background: var(--ppp-green-bg);
  border-color: var(--ppp-green-border);
}
.ppp-card-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ppp-card--forgiven .ppp-card-icon {
  color: var(--ppp-green);
}
.ppp-card-body { flex: 1; }
.ppp-card-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.ppp-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0.125rem 0 0;
}
.ppp-card-value--forgiven {
  color: var(--ppp-green);
}
.ppp-card-pct {
  font-size: 0.75rem;
  color: var(--ppp-green);
  font-weight: 500;
  margin: 0.125rem 0 0;
}

/* Loan Section */
.ppp-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ppp-section-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Loan List */
.ppp-loan-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ppp-loan {
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

/* Loan Header */
.ppp-loan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.ppp-loan-amount {
  font-size: 1.25rem;
  font-weight: 700;
}
.ppp-loan-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-foreground);
}
.ppp-loan-status--forgiven {
  background: var(--ppp-green-bg);
  color: var(--ppp-green);
}
.ppp-loan-status--partial {
  background: var(--ppp-amber-bg);
  color: var(--ppp-amber);
}

/* Forgiveness Bar */
.ppp-loan-bar-wrap {
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.375rem;
}
.ppp-loan-bar {
  height: 100%;
  background: var(--ppp-green);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.ppp-loan-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ppp-green);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Loan Details Grid */
.ppp-loan-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.ppp-loan-detail {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ppp-loan-detail-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ppp-loan-detail-value {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Footnote */
.ppp-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   Partners & Funders Block
   Grant funding relationships (Form 990)
   ======================================== */

/* Variables */
.partners-block {
  --partners-received: oklch(0.55 0.2 250);
  --partners-received-bg: oklch(0.55 0.2 250 / 0.1);
  --partners-given: oklch(0.55 0.15 160);
  --partners-given-bg: oklch(0.55 0.15 160 / 0.1);
}

.partners-block {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.partners-block-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Header */
.partners-block-header {
  margin-bottom: 1.5rem;
}
.partners-block-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.partners-block-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.partners-block-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
}
.partners-block-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Summary stats */
.partners-block-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.partners-block-stat {
  text-align: center;
}
.partners-block-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.partners-block-stat-value--received {
  color: var(--partners-received);
}
.partners-block-stat-value--given {
  color: var(--partners-given);
}
.partners-block-stat-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.partners-block-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Two-column grid */
.partners-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.partners-block-grid--single {
  grid-template-columns: 1fr;
}
@media (max-width: 800px) {
  .partners-block-grid {
    grid-template-columns: 1fr;
  }
}

/* Section (funder or grantee column) */
.partners-block-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.partners-block-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.partners-block-section-title svg {
  color: var(--muted-foreground);
}
.partners-block-section-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* List */
.partners-block-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Item row */
.partners-block-item {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}
.partners-block-item-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bar-width, 0);
  background: var(--partners-received);
  opacity: 0.08;
  transition: width 0.3s ease;
}
.partners-block-item-bar--given {
  background: var(--partners-given);
}
.partners-block-item-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
}
.partners-block-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
}
.partners-block-item-avatar--funder {
  background: var(--partners-received-bg);
  color: var(--partners-received);
}
.partners-block-item-avatar--grantee {
  background: var(--partners-given-bg);
  color: var(--partners-given);
}
.partners-block-item-info {
  flex: 1;
  min-width: 0;
}
.partners-block-item-name {
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partners-block-item-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.partners-block-item-amount {
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* More link */
.partners-block-more {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 2px);
  margin-top: 0.375rem;
}

/* Marquee wrap */
.partners-block-marquee-wrap {
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Footnote */
.partners-block-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   Federal Funding Block (USAspending)
   ======================================== */
.fed-funding {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.fed-funding-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Header */
.fed-funding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.fed-funding-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fed-funding-icon {
  color: oklch(0.65 0.15 160);
  flex-shrink: 0;
}
.fed-funding-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.fed-funding-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}
.fed-funding-header-right {
  text-align: right;
}
.fed-funding-total {
  font-size: 1.75rem;
  font-weight: 700;
  color: oklch(0.65 0.15 160);
  display: block;
}
.fed-funding-total-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Summary cards */
.fed-funding-summary {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.fed-funding-summary-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.fed-funding-summary-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}
.fed-funding-summary-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Agency breakdown */
.fed-funding-agencies {
  margin-bottom: 1.5rem;
}
.fed-funding-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fed-funding-agency-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fed-funding-agency-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fed-funding-agency-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fed-funding-agency-name {
  font-weight: 500;
  font-size: 0.875rem;
}
.fed-funding-agency-amount {
  font-weight: 700;
  font-size: 0.875rem;
  color: oklch(0.65 0.15 160);
}
.fed-funding-bar-wrap {
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
}
.fed-funding-bar {
  height: 100%;
  background: oklch(0.65 0.15 160);
  border-radius: 3px;
  min-width: 2px;
}

/* Awards table */
.fed-funding-awards {
  margin-bottom: 0.5rem;
}
.fed-funding-table-wrap {
  overflow-x: auto;
}
.fed-funding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.fed-funding-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 2px solid var(--border);
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.fed-funding-th--num {
  text-align: right;
}
.fed-funding-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.fed-funding-table tbody tr:hover {
  background: var(--muted);
}
.fed-funding-table tbody tr:last-child td {
  border-bottom: none;
}
.fed-funding-row--top {
  background: oklch(0.65 0.15 160 / 0.05);
}
.fed-funding-agency-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: oklch(0.65 0.15 160 / 0.1);
  color: oklch(0.65 0.15 160);
  white-space: nowrap;
}
.fed-funding-td--id {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.fed-funding-td--type {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fed-funding-td--period {
  white-space: nowrap;
  font-size: 0.85rem;
}
.fed-funding-td--amount {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* More / footnote */
.fed-funding-more {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-align: center;
}
.fed-funding-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .fed-funding-header {
    flex-direction: column;
  }
  .fed-funding-header-right {
    text-align: left;
  }
  .fed-funding-td--type {
    display: none;
  }
}

/* ========================================
   EIDL Loans Block
   COVID-19 Economic Injury Disaster Loan
   ======================================== */

/* Variables */
.eidl {
  --eidl-accent: oklch(0.65 0.15 75);
  --eidl-accent-bg: oklch(0.65 0.15 75 / 0.1);
  --eidl-accent-border: oklch(0.65 0.15 75 / 0.3);
}

.eidl {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.eidl-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Header */
.eidl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.eidl-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.eidl-icon {
  color: var(--eidl-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.eidl-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.eidl-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Badge */
.eidl-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  background: var(--eidl-accent-bg);
  color: var(--eidl-accent);
}

/* Summary Cards */
.eidl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .eidl-cards { grid-template-columns: 1fr; }
}
.eidl-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.eidl-card--subsidy {
  background: var(--eidl-accent-bg);
  border-color: var(--eidl-accent-border);
}
.eidl-card-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.eidl-card--subsidy .eidl-card-icon {
  color: var(--eidl-accent);
}
.eidl-card-body { flex: 1; }
.eidl-card-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.eidl-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0.125rem 0 0;
}
.eidl-card-value--subsidy {
  color: var(--eidl-accent);
}
.eidl-card-pct {
  font-size: 0.75rem;
  color: var(--eidl-accent);
  font-weight: 500;
  margin: 0.125rem 0 0;
}

/* Loan Section */
.eidl-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* Loan List */
.eidl-loan-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.eidl-loan {
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

/* Loan Header */
.eidl-loan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.eidl-loan-amount {
  font-size: 1.25rem;
  font-weight: 700;
}
.eidl-loan-subsidy {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  background: var(--eidl-accent-bg);
  color: var(--eidl-accent);
}

/* Loan Details Grid */
.eidl-loan-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.eidl-loan-detail {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.eidl-loan-detail-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.eidl-loan-detail-value {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Loan Description */
.eidl-loan-desc {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Footnote */
.eidl-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   Lobbying Block (LDA Registrations)
   Senate Office of Public Records
   ======================================== */

/* Variables */
.lobbying {
  --lobbying-accent: oklch(0.55 0.15 160);
  --lobbying-accent-bg: oklch(0.55 0.15 160 / 0.1);
  --lobbying-accent-border: oklch(0.55 0.15 160 / 0.3);
}

.lobbying {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.lobbying-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Header */
.lobbying-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.lobbying-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.lobbying-icon {
  color: var(--lobbying-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.lobbying-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.lobbying-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Self-Lobbying Badge */
.lobbying-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.lobbying-badge--self {
  background: var(--lobbying-accent-bg);
  color: var(--lobbying-accent);
}

/* Summary Cards */
.lobbying-summary {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.lobbying-summary-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.lobbying-summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
.lobbying-summary-value--self {
  color: var(--lobbying-accent);
  font-size: 1.125rem;
}
.lobbying-summary-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Section title */
.lobbying-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lobbying-section-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Client List */
.lobbying-client-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.lobbying-client {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.15s;
}
.lobbying-client:hover {
  border-color: var(--lobbying-accent-border);
}
.lobbying-client--self {
  background: var(--lobbying-accent-bg);
  border-color: var(--lobbying-accent-border);
}

/* Client row content */
.lobbying-client-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.lobbying-client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}
.lobbying-client-avatar--self {
  background: var(--lobbying-accent-bg);
  color: var(--lobbying-accent);
}
.lobbying-client-info {
  flex: 1;
  min-width: 0;
}
.lobbying-client-name {
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobbying-client-registrant {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Count badge */
.lobbying-client-count-wrap {
  text-align: right;
  flex-shrink: 0;
}
.lobbying-client-count {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  color: var(--foreground);
}
.lobbying-client-count-label {
  font-size: 0.6rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}

/* Self tag */
.lobbying-client-self-tag {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--lobbying-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--lobbying-accent-bg);
  border: 1px solid var(--lobbying-accent-border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  margin-left: 0.25rem;
}

/* More link */
.lobbying-more {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Footnote */
.lobbying-footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .lobbying-header {
    flex-direction: column;
  }
  .lobbying-client-registrant {
    display: none;
  }
}
