/* === AGGREGATE LANDING PAGES (grants by type, eligibility, state) === */
.agg-hero { padding: 24px 0 40px; }
.agg-sub { font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-muted); max-width: 620px; margin-bottom: 24px; }
.agg-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.agg-stat-number { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.agg-stat-label { font-size: var(--type-ui); color: var(--text-faint); margin-top: 4px; }

.agg-filters { padding: 20px 0; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: var(--site-nav-current-offset); z-index: 90; transition:top 180ms ease; }
.filter-nav { display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; }
.filter-pill { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; font-size: var(--type-ui); font-weight: 500; padding: 7px 14px; border-radius: 22px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
.filter-pill:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.filter-pill.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.stacking-tip h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--orange-dark); }

.agg-results { padding: 48px 0; }
.agg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.agg-result-note { margin: 24px 0 0; color: var(--text-muted); font-size: var(--type-body); line-height: var(--leading-body); }
.agg-result-note a { font-weight: 600; }
.agg-city-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.agg-city-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.agg-city-card h3 a { color: var(--heading); }
.agg-city-card h3 a:hover { color: var(--blue); }
.agg-count { font-size: var(--type-ui); font-weight: 600; color: var(--green); margin-bottom: 12px; }
.agg-programs { margin: 0 0 12px 16px; font-size: var(--type-ui); }
.agg-programs li { margin-bottom: 6px; line-height: 1.4; }
.agg-programs a { color: var(--blue); }
.agg-see-all { font-size: var(--type-ui); font-weight: 600; color: var(--blue); }

.agg-cta p { color: var(--text-muted); max-width: 480px; margin: 0 auto 24px; }

@media (max-width: 768px) {
  .agg-stats { gap: 24px; }
  .agg-grid { grid-template-columns: 1fr; }
  .agg-cta .btn { display: block; margin: 8px auto; max-width: 260px; text-align: center; }
  .page-aggregate .city-compare-table { font-size: var(--type-ui); }
  .page-aggregate .city-compare-table th,
  .page-aggregate .city-compare-table td { padding: 10px 11px; }
}
.page-aggregate .aggregate-comparison-cue { display: none; margin: 0 0 10px; color: var(--text-faint); font-size: var(--type-ui); }
.page-aggregate .aggregate-comparison-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.page-aggregate .aggregate-comparison-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.page-aggregate .aggregate-comparison-scroll .city-compare-table { min-width: 720px; }
@media (max-width: 768px) {
  .page-aggregate .aggregate-comparison-cue { display: block; }
}
@media print {
  .page-aggregate .aggregate-comparison-cue { display: none !important; }
  .page-aggregate .aggregate-comparison-scroll { overflow: visible; }
  .page-aggregate .aggregate-comparison-scroll .city-compare-table { min-width: 0; }
}
html.text-resized .agg-filters { position: static; }
.agg-hero-icon { width:1.1em; height:1.1em; vertical-align:-0.12em; color:var(--orange); }
