/* ==========================================================================
   Walk-in search — the bar in the .wi-eh hero, plus the result header.
   Added 2026-11-30. Pushed by walkins/list.blade.php through @stack("styles"),
   which layouts/app.blade.php prints after vd-search.css — so the source-order
   ties below resolve this way round, and no page outside the walk-in module
   pays for a sheet it cannot use.

   It owns as little as possible. The bar, the panel, the group headings and
   the option rows are the .vds* classes from vd-search.css, which the layout
   links unconditionally — this file only places that control inside the dark
   walk-in hero and adds the two states the job bar has no equivalent of: a
   clear button, and the "N matching" header over the list.

   NO LITERAL COLOURS, by rule. scripts/build_dark_theme.php reads main.css,
   vd-components.css, vd-primitives.css and vd-dashboard.css only, so a hex
   here would have no night counterpart and would survive into dark mode
   unchanged. Tokens and rgba() of the token RGBs, exactly as vd-search.css
   does it.
   ========================================================================== */

/* ------------------------------------------------------------------ the bar */

/* Left-aligned and narrower than the job bar: the walk-in hero's h1, accent
   and intro are all flush with the container's inline start, and a centred
   760px bar under them reads as a different page's furniture. .vds is
   (0,1,0) and so is this, so it wins on source order — this sheet is pushed
   through @stack('styles'), which the layout prints after vd-search.css. */
.vds--wi {
    max-width: 620px;
    margin-inline: 0;
    margin-block: 18px 4px;
}

/* The magnifier sits inside the bar, before the field, rather than on the
   submit button alone: on the dark hero the white bar needs to say what it is
   before it is focused. The button keeps its own glyph for the action. */
.wi-search__ic {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 20px;
    margin-inline-end: 10px;
    color: var(--uae-muted);
    font-size: 15px;
}

.vds--wi .vds__bar:focus-within .wi-search__ic { color: var(--uae-primary-ink); }

/* Chrome and Safari draw their own clear glyph on type=search, which would
   sit beside ours and do a different thing (it empties the field without
   navigating). */
.vds--wi .vds__input::-webkit-search-cancel-button,
.vds--wi .vds__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.wi-search__clear {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 30px;
    block-size: 30px;
    margin-inline-end: 4px;
    border-radius: var(--r-pill);
    background: var(--uae-sand);
    color: var(--uae-muted);
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.wi-search__clear:hover,
.wi-search__clear:focus-visible {
    background: var(--uae-primary-wash);
    color: var(--uae-primary-ink);
    text-decoration: none;
}

/* The active day, under the bar on the dark hero. White-on-ink by the same
   licence vd-search.css takes for its hero chips: this sits on
   --uae-ink-surface, which is dark in BOTH themes, so a theme token here
   would hand light mode night's colours and vice versa. rgba() of white is
   the one correct answer and the generator leaves it alone. */
.wi-search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

.wi-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-block: 5px;
    padding-inline: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
}

.wi-search__chip > i { color: var(--uae-primary-on-dark, #4cae7e); font-size: 12px; }

.wi-search__chip a {
    display: grid;
    place-items: center;
    inline-size: 18px;
    block-size: 18px;
    margin-inline-end: -4px;
    border-radius: var(--r-pill);
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.wi-search__chip a:hover,
.wi-search__chip a:focus-visible {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* A hint under the bar, on the dark hero. Not a placeholder: the placeholder
   disappears the moment anyone types, and this is the line that says the
   search is scoped to the page you are on. */
.wi-search__note {
    max-width: 620px;
    margin: 0 0 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 12.5px;
}

.wi-search__note strong { color: rgba(255, 255, 255, .92); font-weight: 600; }

.vds--wi .vds__empty i { margin-inline-end: 6px; color: var(--uae-primary-ink); }

/* Font Awesome inside an option row's icon chip. vd-search.css sizes an
   inline <svg> there; the walk-in module draws in FA throughout, and mixing
   the two in one list is the "stroke icon in a row of solid glyphs" problem
   the icon-sprite notes warn about. */
.vds--wi .vds__opt-ic i { font-size: 12.5px; }

/* ------------------------------------------------- the result header + empty */

/* Sits at the top of the listing column, on --uae-sand. */
.wi-qres {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-block-end: 16px;
}

.wi-qres__n { margin: 0; color: var(--uae-ink); font-size: 16px; font-weight: 700; }
.wi-qres__n em { font-style: normal; color: var(--uae-primary-ink); }

.wi-qres__clear {
    color: var(--uae-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wi-qres__clear:hover { color: var(--uae-primary-ink); }

.wi-qempty__h { margin: 0 0 6px; font-size: 19px; }
.wi-qempty__p { margin: 0 0 14px; color: var(--uae-body); }

/* The way out of an empty result: what IS on, as chips. A dead end with a
   "no results" line and nothing else is the one state this search must not
   ship with — the walk-in set is small enough that a plausible query returns
   nothing most days. */
.wi-qempty__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.wi-qempty__chips a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-block: 7px;
    padding-inline: 13px;
    border: 1px solid var(--uae-line);
    border-radius: var(--r-pill);
    background: var(--uae-surface);
    color: var(--uae-ink);
    font-size: 13.5px;
    text-decoration: none;
}

.wi-qempty__chips a:hover { border-color: var(--uae-primary); color: var(--uae-primary-ink); }
.wi-qempty__chips i { color: var(--uae-primary-ink); font-size: 12px; }
.wi-qempty__chips b { color: var(--uae-muted); font-weight: 400; }

/* --------------------------------------------------------------- phone */

@media (max-width: 767.98px) {
    .vds--wi {
        max-width: none;
        margin-block: 14px 2px;
    }

    .vds--wi .vds__bar { padding: 7px; padding-inline-start: 12px; }
    .wi-search__ic { margin-inline-end: 8px; }

    /* THE SUBMIT BUTTON STAYS. vd-search.css hides .vds__go below 768 at
       (0,1,0), which is right for the job bar — that bar collapses to one row
       and leans on implicit form submission, with a location control and a
       Filters sheet still competing for the width. This bar has one field and
       nothing else in the row, so hiding the only affordance leaves a white
       box with a magnifier that looks like decoration. It measured as exactly
       that at 375 before this rule.

       (0,2,0) against (0,1,0), so it wins on specificity rather than on file
       order — this is an override of a deliberate rule, not a tie. */
    .vds--wi .vds__go {
        display: grid;
        inline-size: 42px;
        block-size: 42px;
        border-radius: 12px;
    }

    /* 16px or iOS zooms the page on focus. vd-search.css already sets it on
       .vds__input; restated because a phone-only override of font-size here
       would be the easy way to break it. */
    .vds--wi .vds__input { font-size: 16px; }

    .wi-search__note { max-width: none; }
}
