/* ============================================================
   FILTERS.CSS
   The rankings page's search box, the Investment Stage discovery
   cards, and the Founding Era / Sector / Fund Size filter chips
   (including the shared .chip / .filter-chips components reused
   by other filter groups on the page).
   ============================================================ */
  /* ---------- SECTION LABEL ---------- */
  .section-label {
    padding: 56px 0 28px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .section-label h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 28px;
    margin: 0;
  }
  .section-label .note {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-dim);
  }

  /* ---------- SEARCH & FILTERS ---------- */
  .controls {
    padding-bottom: 24px;
  }
  .search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
  }
.search-input::placeholder { color: var(--ink-dim); }
  .search-input:focus {
    outline: none;
    border-color: var(--gold);
  }

  /* ---------- INVESTMENT STAGE DISCOVERY CARDS ---------- */
  .stage-discovery-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 4px 0 12px;
  }
  .stage-discovery-hint {
    text-transform: none;
    letter-spacing: normal;
    color: var(--hairline);
  }
  .stage-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
  }
  .stage-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .stage-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,162,39,0.2);
  }
  .stage-card:active {
    transform: translateY(-1px);
  }
  .stage-card.active {
    background: linear-gradient(135deg, rgba(201,162,39,0.14), rgba(201,162,39,0.03));
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(201,162,39,0.15), 0 0 0 1px var(--gold);
  }
  .stage-card-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
  }
  .stage-card:hover .stage-card-icon {
    transform: scale(1.12);
  }
  .stage-card-label {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
  }
  .stage-card.active .stage-card-label {
    color: var(--gold-bright);
  }
  .stage-card-count {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-dim);
    margin-top: 4px;
  }
  @media (max-width: 640px) {
    .stage-card-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stage-card { padding: 14px 8px; }
    .stage-card-icon { font-size: 22px; margin-bottom: 6px; }
    .stage-card-label { font-size: 11px; }
  }
  
  .filter-group-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin: 18px 0 8px;
  }
  .filter-group-label:first-of-type { margin-top: 4px; }
  .filter-hint {
    text-transform: none;
    letter-spacing: normal;
    color: var(--hairline);
  }
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .chip {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-dim);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: 10px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .chip:hover {
    border-color: var(--gold);
    color: var(--ink);
  }
  .chip.active {
    background: rgba(201,162,39,0.12);
    border-color: var(--gold);
    color: var(--gold-bright);
  }
  .no-results {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-dim);
    text-align: center;
    padding: 60px 0;
  }
