/* =========================================================
   Public mission search — /professionals/ hero form + /missions/ results
   Same vocabulary as the pro page: Barlow Condensed, black blocks,
   translucent cards (.duo-card), #1A56DB primary.
   ========================================================= */

/* ── Form (hero + results page) ── */
/* One white bar that reads as a sentence: "I am [profession ▾] [See the N missions →]" */
.msearch-form { width: 100%; max-width: 640px; margin: 10px 0 6px; }
.msearch-bar {
    display: flex; align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.msearch-bar:focus-within { box-shadow: 0 0 0 3px rgba(107,155,255,.5), 0 12px 40px rgba(0,0,0,.35); }
.msearch-prefix {
    flex: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem; font-weight: 300;
    color: #6b7280;
    margin-right: 6px;
    cursor: pointer;
}
.msearch-select {
    flex: 1; min-width: 0;
    padding: 12px 34px 12px 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem; font-weight: 600;
    color: #111827;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 0;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    text-overflow: ellipsis;
}
.msearch-select:focus { outline: none; }
.msearch-select option, .msearch-select optgroup { color: #111; background: #fff; }
/* .msearch-bar prefix: beats the landing's generic `.section button`
   (translucent white), which would make the button vanish on the white bar. */
.msearch-bar .msearch-submit {
    flex: none;
    white-space: nowrap; justify-content: center;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: .85rem;
    color: #fff;
    background: #1A56DB;
    border: 0;
    backdrop-filter: none;
    text-shadow: none;
}
.msearch-bar .msearch-submit:hover { background: #1e40af; color: #fff; }

.msearch-form--page { margin: 22px auto 0; }

/* ── Results page ── */
.msearch-page {
    background: #05070b;
    color: #fff;
    min-height: 100vh;
    padding: 120px 6% 90px;
    box-sizing: border-box;
}
.msearch-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.msearch-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    font-weight: 600; line-height: 1.1;
    margin: 0;
}

.msearch-results {
    max-width: 1180px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.msearch-card {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 26px;
}
.msearch-card--urgent { border-color: rgba(239,68,68,.45); }
.msearch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msearch-urgent {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #fca5a5; background: rgba(239,68,68,.15);
    padding: 3px 8px; border-radius: 99px;
}
.msearch-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem; font-weight: 600; line-height: 1.15;
    margin: 12px 0 4px;
}
.msearch-card-org {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem; font-weight: 300;
    color: rgba(255,255,255,.65);
    margin: 0 0 14px;
}
.msearch-card-meta {
    list-style: none; margin: 0 0 22px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.msearch-card-meta li {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .92rem;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.07);
    padding: 3px 10px; border-radius: 99px;
}
.msearch-apply { margin-top: auto; align-self: flex-start; }

.msearch-empty { max-width: 560px; margin: 0 auto; text-align: center; }
.msearch-empty p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem; font-weight: 300;
    color: rgba(255,255,255,.7);
    margin: 0 0 24px;
}

/* ── Apply dialog ── */
.msearch-dialog {
    max-width: 440px; width: calc(100% - 32px);
    padding: 30px 28px 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: #0d1117; color: #fff;
    box-sizing: border-box;
}
.msearch-dialog::backdrop { background: rgba(0,0,0,.65); }
.msearch-dialog h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem; font-weight: 600; margin: 0 0 10px;
}
.msearch-dialog p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem; font-weight: 300; line-height: 1.5;
    color: rgba(255,255,255,.7); margin: 0 0 22px;
}
.msearch-dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.msearch-dialog-actions a { justify-content: center; text-align: center; text-decoration: none; }
.msearch-dialog-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px;
    background: transparent; border: none; border-radius: 6px;
    color: rgba(255,255,255,.6); font-size: 15px; cursor: pointer;
}
.msearch-dialog-close:hover { color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 600px) {
    .msearch-bar { flex-wrap: wrap; border-radius: 16px; padding: 6px 6px 6px 18px; }
    .msearch-select { flex-basis: 0; }
    .msearch-bar .msearch-submit { flex: 1 1 100%; margin-top: 4px; border-radius: 12px; }
    .msearch-page { padding: 100px 16px 70px; }
    .msearch-card { padding: 22px; }
}
