/**
 * Pipeline section groups — dashboard sub-tables (debt / equity mandates).
 * Block: .portal-pipeline-sections
 */

.portal-pipeline-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 0.35rem;
}

.portal-pipeline-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.portal-pipeline-section--audience-break {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, #d2dee8);
}

.portal-pipeline-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.15rem;
}

/* Audience group — Debt facilities / Equity mandates (readable, not whisper-small) */
.portal-pipeline-section__audience {
  margin: 0 0 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text, #14283c);
  opacity: 0.78;
}

/* Strategy band — Bridge, Development, Equity */
.portal-pipeline-section__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-text, #14283c);
}

.portal-pipeline-section__hint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted, #5e6d7e);
}

.portal-pipeline-section__card {
  min-width: 0;
}

.portal-pipeline-section__card .deals-table-wrap {
  margin-bottom: 0;
}

/* Section tables: sentence-case headers, Stripe/Apple hierarchy */
.portal-pipeline-section .deals-table--section {
  border-radius: 14px;
}

.portal-pipeline-section .deals-table--section thead th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted, #5e6d7e);
  background: rgba(20, 40, 60, 0.06);
  border-bottom: 1px solid var(--color-border, #d2dee8);
  padding: 11px 14px;
}

.portal-pipeline-section .deals-table--section thead th:first-child {
  font-weight: 600;
  color: var(--color-text, #14283c);
}

.portal-pipeline-section .deals-table--section tbody td {
  font-size: 0.875rem;
  font-weight: 400;
}

.portal-pipeline-section .deals-table--section tbody td.is-numeric {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.portal-pipeline-section .deals-table--section tbody td:first-child strong {
  font-weight: 600;
  color: var(--color-text, #14283c);
}

.portal-pipeline-section .deals-table--section tbody td:first-child .deal-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted, #5e6d7e);
}

body.theme-dark .portal-pipeline-section--audience-break {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .portal-pipeline-section__audience {
  color: var(--color-text, #e8eef4);
  opacity: 0.82;
}

body.theme-dark .portal-pipeline-section__title {
  color: var(--color-text, #e8eef4);
}

body.theme-dark .portal-pipeline-section__hint {
  color: var(--color-text-muted, #94a3b8);
}

body.theme-dark .portal-pipeline-section .deals-table--section thead th {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .portal-pipeline-section .deals-table--section thead th:first-child {
  color: #e2e8f0;
}

body.theme-dark .portal-pipeline-section .deals-table--section tbody td:first-child strong {
  color: #f1f5f9;
}
