/* /funds, the fund directory, and /funds/<slug>, one fund's record. */

.nyc-funds-head .nyc-title { margin-bottom: 12px; }
.nyc-funds-head .nyc-asof { margin-top: 10px; }

/* filters */
.nyc-fund-search { flex: 2 1 16rem; min-width: 0; }
.nyc-fund-search .nyc-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nyc-fund-route-toggle .nyc-choice { min-height: 44px; }
.nyc-fund-toolbar .nyc-toolbar-actions { align-self: center; }

/* results */
.nyc-funds-results { margin-top: 32px; }
.nyc-count { font-size: 0.8125rem; color: var(--muted); }
.nyc-count .nyc-num { color: var(--fg); }
.nyc-tnum { font-variant-numeric: tabular-nums; }
.nyc-fund-box { margin-top: 14px; overflow-x: auto; border-top: 1px solid var(--border); }
.nyc-fund-table { width: 100%; min-width: 56rem; border-collapse: collapse; font-size: 0.8125rem; }
.nyc-fund-table th, .nyc-fund-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-weight: 400; color: var(--label); }
.nyc-fund-table th:first-child, .nyc-fund-table td:first-child { padding-left: 0; }
.nyc-fund-table th:last-child, .nyc-fund-table td:last-child { padding-right: 0; }
.nyc-fund-table thead th { padding-top: 12px; padding-bottom: 12px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nyc-fund-table .nyc-col-check { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nyc-fund-table td.nyc-col-check { color: var(--fg); }
.nyc-fund-table .nyc-absent { white-space: nowrap; }
.nyc-fund-name { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.nyc-fund-name a { color: var(--fg); text-decoration: none; }
.nyc-fund-name a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nyc-fund-sub { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.nyc-fund-site, .nyc-fund-route { white-space: nowrap; }
.nyc-fund-sectors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nyc-fund-more { align-self: center; font-size: 0.75rem; color: var(--muted); }
.nyc-empty-body { margin-top: 6px; }

/* sources */
.nyc-source { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: var(--radius); background: var(--hover); color: var(--label); font-size: 0.6875rem; white-space: nowrap; }
.nyc-source-first { background: var(--accent-soft); color: var(--accent); }
.nyc-nowrap { white-space: nowrap; }

/* one fund */
.nyc-fund-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.nyc-fund-hero-copy { flex: 1 1 28rem; min-width: 0; }
.nyc-fund-hero .nyc-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12; }
.nyc-fund-summary { margin-top: 14px; }
.nyc-fund-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nyc-fund-actions .btn { min-height: 48px; }

.nyc-fund-facts { margin-top: 40px; }
.nyc-fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 16px; margin: 0; }
.nyc-fact-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.nyc-fact-card dt { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nyc-fact-card dd { margin: 0; }
.nyc-fact-value { font-size: 1.25rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.nyc-fact-card .nyc-fact-source { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.nyc-stale { margin-left: 8px; letter-spacing: 0; text-transform: none; }

.nyc-rels { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.nyc-rels-grid { display: grid; gap: 32px 40px; margin: 0; }
.nyc-rel dt { font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.nyc-rel dd { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.6; }
.nyc-rel .nyc-badges > li { min-width: 0; max-width: 100%; }
.nyc-rel .nyc-badge { white-space: normal; }
.nyc-rel-address { display: block; color: var(--muted); }
.nyc-rel-link { font-weight: 600; }

.nyc-fund-missing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 40px; padding: 20px 24px; border: 1px dashed rgba(250, 246, 235, 0.3); border-radius: var(--radius); font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

.nyc-sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.nyc-sources > summary { cursor: pointer; font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.nyc-sources > summary:hover { color: var(--accent); }
.nyc-source-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 12px 40px; margin: 20px 0 0; font-size: 0.8125rem; line-height: 1.6; }
.nyc-source-key > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; gap: 12px; }
.nyc-source-key dd { margin: 0; color: var(--muted); }
.nyc-sources-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.75rem; line-height: 1.6; color: var(--muted); }
.nyc-sources-list li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 4px 24px; }
.nyc-sources-record { margin-top: 16px; font-size: 0.75rem; color: var(--muted); }

.nyc-notfound-link { margin-top: 32px; font-weight: 600; }

@media (min-width: 640px) {
  .nyc-rels-grid { grid-template-columns: 1fr 1fr; }
  .nyc-rel-wide { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .nyc-sources-list li { grid-template-columns: minmax(0, 1fr); }
}
