.fund-detail-page {
  background:
    radial-gradient(circle at top right, rgba(200, 170, 80, 0.12), transparent 26%),
    linear-gradient(180deg, #07070c 0%, #06060a 100%);
  color: var(--text-primary);
}

.fund-page-main {
  padding: 0 20px 36px;
  display: grid;
  gap: 18px;
}

.fund-header {
  align-items: flex-end;
  gap: 16px;
}

.fund-back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.fund-back-link:hover,
.fund-filing-link:hover {
  color: var(--gold);
}

.fund-header-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(200, 170, 80, 0.18);
  background:
    linear-gradient(135deg, rgba(200, 170, 80, 0.08), rgba(200, 170, 80, 0.02) 40%, rgba(13, 13, 20, 0.96) 100%);
}

.fund-header-card-copy h2 {
  margin: 6px 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.fund-kicker {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.fund-header-card-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.fund-header-chip {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(8, 8, 13, 0.72);
}

.fund-header-chip-label {
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fund-header-card-actions {
  display: flex;
  align-items: center;
}

.fund-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fund-stats .card {
  min-width: 0;
  background: #0d0d14;
  border: 1px solid rgba(200, 170, 80, 0.1);
  border-top: 2px solid #c8aa50;
}

.fund-reconciliation-banner {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.fund-reconciliation-banner.banner-green {
  color: #c3f4db;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.fund-reconciliation-banner.banner-yellow {
  color: #f8db92;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.fund-reconciliation-banner.banner-amber {
  color: #ffd3a3;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.24);
}

.fund-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.fund-panel {
  min-height: 100%;
}

.fund-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fund-table-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: min(320px, 100%);
}

.fund-table-tools .search-box {
  width: min(320px, 100%);
}

.fund-table-count {
  color: var(--text-secondary);
  font-size: 11px;
}

.fund-table-section,
.fund-bbg-tile {
  margin-top: 0;
}

.fund-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.fund-table th:nth-child(6),
.fund-table th:nth-child(7),
.fund-table th:nth-child(8),
.fund-table th:nth-child(9),
.fund-table th:nth-child(10),
.fund-table td:nth-child(6),
.fund-table td:nth-child(7),
.fund-table td:nth-child(8),
.fund-table td:nth-child(9),
.fund-table td:nth-child(10) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

.fund-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
}

.fund-mix-bar {
  display: flex;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fund-mix-segment {
  min-width: 0;
  transition: opacity 160ms ease;
}

.fund-mix-segment:hover {
  opacity: 0.88;
}

.fund-mix-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 14px;
}

.fund-mix-legend-row {
  display: grid;
  grid-template-columns: 12px minmax(90px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.fund-mix-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.valuation-level-mix,
.maturity-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.valuation-level-row,
.maturity-row {
  display: grid;
  grid-template-columns: minmax(48px, auto) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.valuation-level-track,
.maturity-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.valuation-level-fill,
.maturity-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(200, 170, 80, 0.5), rgba(200, 170, 80, 0.95));
  transition: width 420ms ease;
}

.fund-row-subtle {
  color: var(--text-secondary);
  font-size: 11px;
}

.fund-holdings-fmv-positive {
  color: #3ddc97;
  font-weight: 700;
}

.fund-holdings-fmv-negative {
  color: #ff5c7a;
  font-weight: 700;
}

.fund-bbg-tile {
  padding: 18px 20px;
  border: 1px solid rgba(110, 168, 255, 0.18);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.1), rgba(13, 13, 20, 0.96));
}

.fund-bbg-copy {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.fund-bbg-label {
  color: #6ea8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fund-error {
  margin: 20px 0;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-left: 3px solid var(--risk-critical);
  border-radius: 6px;
  padding: 16px;
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .fund-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fund-grid-two {
    grid-template-columns: 1fr;
  }

  .fund-header-card {
    flex-direction: column;
  }

  .fund-header-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fund-page-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fund-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fund-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fund-header-card-meta,
  .fund-mix-legend {
    grid-template-columns: 1fr;
  }

  .fund-panel-header {
    flex-direction: column;
  }

  .fund-table-tools {
    align-items: stretch;
  }

  .fund-table-tools .search-box {
    width: 100%;
  }
}
