/* /startups — project search: filters over open slots, cards with the viewer's match.
   (Ported from the cabinet's former search page.) */

.srch { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---- filters ---- */
.srch__filters {
    position: sticky; top: 32px; display: flex; flex-direction: column; gap: 20px;
    padding: 24px; box-sizing: border-box; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.srch__field { display: flex; flex-direction: column; gap: 8px; }
.srch__label { font-size: 13px; line-height: 16px; font-weight: 500; color: #111827; }
.srch__input {
    width: 100%; height: 40px; padding: 0 12px; box-sizing: border-box; background: #fff;
    border: 1px solid #D7DFEA; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; color: #111827;
    transition: border-color .2s, box-shadow .2s;
}
.srch__input::placeholder { color: #94A3B8; }
.srch__input:focus { outline: none; border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }

.srch__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch__chip {
    min-height: 32px; padding: 0 12px; border: 1px solid #D7DFEA; border-radius: 8px; background: #fff;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #64748B; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.srch__chip:hover { background: #F5F7FA; color: #111827; }
.srch__chip { position: relative; display: inline-flex; align-items: center; }
.srch__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.srch__chip:has(input:checked) { background: #EEE9FF; border-color: #5F33E1; color: #5F33E1; }
.srch__chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }

.srch__check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #111827; cursor: pointer; }
.srch__check input { width: 18px; height: 18px; margin: 0; accent-color: #4F46E5; }

.srch__me { padding: 16px; border-radius: 12px; background: #EEE9FF; display: flex; flex-direction: column; gap: 4px; }
.srch__me p { margin: 0; }
.srch__me-title { font-size: 13px; font-weight: 600; color: #5F33E1; }
.srch__me-line { font-size: 14px; font-weight: 600; color: #111827; }
.srch__me-skills { font-size: 13px; color: #475467; }
.srch__hint { margin-top: 4px !important; font-size: 12px; color: #64748B; }

/* ---- results ---- */
.srch__results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.srch__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.srch__count { font-size: 18px; font-weight: 600; color: #111827; }
.srch__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #64748B; }
.srch__sort .srch__input { width: 170px; }

.srch__card {
    padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    display: flex; flex-direction: column; gap: 8px;
}
.srch__card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.srch__name { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: #111827; }
.srch__domain {
    padding: 4px 10px; border-radius: 999px; background: #EEE9FF; color: #5F33E1; font-size: 12px; font-weight: 600;
}
.srch__owner { margin-left: auto; font-size: 13px; font-weight: 500; color: #4F46E5; }
.srch__tagline { margin: 0; font-size: 14px; color: #64748B; }
.srch__slots-title { margin: 12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #94A3B8; }
.srch__slots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.srch__slot {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0;
    border-top: 1px solid #E7EAF2;
}
.srch__slot:first-child { border-top: 0; }
.srch__slot.is-taken { opacity: .55; }
.srch__slot-info { min-width: 0; }
.srch__slot-info p { margin: 0; }
.srch__slot-title { font-size: 15px; font-weight: 600; color: #111827; }
.srch__slot-note { margin-top: 2px !important; font-size: 13px; color: #64748B; }
.srch__slot-skills { margin-top: 6px !important; font-size: 13px; font-weight: 500; color: #111827; }
.srch__slot-why { margin-top: 2px !important; font-size: 12px; color: #64748B; }
.srch__slot-side { flex: none; display: flex; align-items: center; gap: 12px; }

.srch__match {
    padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.srch__match.is-good { background: #E7F8EE; border-color: #ABEFC6; color: #067647; }
.srch__match.is-mid { background: #FFF6E0; border-color: #FEDF89; color: #B54708; }
.srch__match.is-low { background: #FEE4E2; border-color: #FDA29B; color: #B42318; }
.srch__match.is-none { background: #F2F4F7; border-color: #E4E7EC; color: #475467; font-weight: 500; }
.srch__taken { font-size: 13px; color: #64748B; }

.srch__btn {
    height: 40px; padding: 0 16px; border: 1px solid #4F46E5; border-radius: 8px; background: #4F46E5; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.srch__btn:hover { background: #4338CA; border-color: #4338CA; }
.srch__btn--done, .srch__btn--done:hover { background: #fff; border-color: #D7DFEA; color: #64748B; cursor: default; }

.srch__empty {
    padding: 40px 24px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.srch__empty p { margin: 0; }
.srch__empty-title { font-size: 18px; font-weight: 600; color: #111827; }
.srch__empty .srch__btn { margin-top: 8px; }

@media screen and (max-width: 960px) {
    .srch { grid-template-columns: 1fr; }
    .srch__filters { position: static; }
}
@media screen and (max-width: 600px) {
    .srch__slot { flex-direction: column; align-items: flex-start; }
    .srch__card { padding: 16px; }
    .srch__slot-side { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
    .srch__slot-side .srch__btn { flex: 1 1 auto; }
    .srch__owner { margin-left: 0; width: 100%; }
    .srch__sort { width: 100%; }
    .srch__sort .srch__input { flex: 1; width: auto; }
}

.srch__name a { color: inherit; text-decoration: none; }
.srch__name a:hover { color: #5F33E1; }
.srch__domain--looking { background: #F4FFC2; color: #5F6F12; }
.srch__domain--muted { background: #EEF0F4; color: #5B6275; }
.srch__btn { display: inline-flex; align-items: center; text-decoration: none; }
.srch__me a, .srch__hint a { color: #5F33E1; }
.srch__filters .srch__input { appearance: auto; }
.srch { margin-top: 24px; }
