/* ==========================================================================
   vd-search.css — the homepage search bar (2026-10-30)

   Loaded AFTER vd-components.css. Consumes the Palette A tokens defined in
   main.css (--uae-*, --r-*, --shadow-*) and DEFINES NO COLOUR OF ITS OWN —
   same contract as vd-components.css, and here it is load-bearing twice over:

     1. Night mode. vd-theme-dark.css is GENERATED by scripts/build_dark_theme.php
        from main.css, vd-components.css, vd-primitives.css and vd-dashboard.css.
        This file is not one of its sources, so a literal colour written here
        would have no dark counterpart and would stay light on a dark page.
        Driven by tokens, the theme block already handles it and the generator
        never needs to learn about this file.
     2. Re-theming. One edit in main.css moves this with everything else.

   Two tokens must not be used, per the night-mode notes in CLAUDE.md:
   `background: var(--uae-ink)` (a heading colour, light at night) and
   `color: var(--uae-primary)` (a fill colour, ~3.1:1 as text at night).
   Fills use --uae-ink-surface, green TEXT uses --uae-primary-ink.

   The bar sits on the hero, which is flat --uae-ink-surface, so it is a
   --uae-surface card on dark in both themes.

   RTL: logical properties throughout (padding-inline, inset-inline-start,
   margin-inline-end). rtl-style.css knows nothing about these classes and
   does not need to — the bar flips from the dir attribute alone.
   ========================================================================== */

/* ------------------------------------------------------------- the clip */
/* .jp-hero is `overflow: hidden` (main.css), which cut the suggestion panel
   off two rows in. Lifted for the hero that carries this bar only — the class
   is set in includes/search.blade.php, so no other hero is affected.

   Safe here because the thing that clip exists for, .jp-hero__bg, is
   `position: absolute; inset: 0` and so cannot overflow its own box anyway. */
.vd-hero--pop { overflow: visible; }

/* --------------------------------------------------------------- shell */
.vds {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    text-align: start;
}

/* `.vd-hero__search form` in vd-components.css is `margin: 0` at (0,2,1), so
   the plain `.vds` rule above at (0,1,0) lost and the bar sat flush LEFT in a
   940px parent — 760px wide with 180px of air on one side only, which reads as
   a layout bug rather than a narrow bar.

   Matched on specificity rather than fought with !important: this selector is
   also (0,2,1) and vd-search.css is linked after vd-components.css, so it wins
   the tie on source order. The rule above still stands on its own if this
   component is ever used outside the hero. */
.vd-hero__search form.vds { margin-inline: auto; }

.vds__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --------------------------------------------------------------- the bar */
.vds__bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 9px;
    padding-inline-start: 14px;
    background: var(--uae-surface);
    border: 1px solid var(--uae-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(var(--uae-ink-rgb), .28), var(--shadow-card);
    transition: box-shadow .18s ease, border-color .18s ease;
}

.vds__bar:focus-within {
    border-color: var(--uae-primary);
    box-shadow: 0 0 0 3px rgba(var(--uae-primary-rgb), .15), var(--shadow-pop);
}

/* While the panel is open the bar and the panel draw one shape, the way the
   jQuery UI bar does on the other seven pages (main.css, .vd-ac-open). */
.vds.is-open .vds__bar {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
}

.vds__seg {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.vds__seg--q {
    position: relative;
    flex: 1;
    padding-inline: 12px;
}

.vds__seg--loc { position: relative; }

.vds__seg--end { gap: 4px; }

.vds__rule {
    flex: none;
    inline-size: 1px;
    block-size: 26px;
    background: var(--uae-line);
}

.vds__ico {
    flex: none;
    inline-size: 18px;
    block-size: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--uae-muted);
}

.vds__input {
    flex: 1;
    min-width: 0;
    padding-block: 12px;
    padding-inline: 0;
    border: 0;
    background: none;
    color: var(--uae-ink);
    font-size: 16px;
    line-height: 1.4;
}

.vds__input:focus { outline: none; box-shadow: none; }

.vds__input::placeholder { color: var(--uae-muted); opacity: 1; }

/* The ghost placeholder, once vd-search.js is running. It hides the real
   placeholder and draws "Search jobs: <typed role>" plus a caret in its place.
   `has-ghost` is set by the script, so with no JS the real placeholder shows. */
.vds.has-ghost .vds__input::placeholder { color: transparent; }

.vds__ghost {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 39px;
    translate: 0 -50%;
    display: flex;
    align-items: center;
    gap: 6px;
    max-inline-size: calc(100% - 44px);
    overflow: hidden;
    pointer-events: none;
    font-size: 16px;
    white-space: nowrap;
}

/* Hidden the moment anything is typed. While the field is empty the caret
   keeps blinking, which is what makes it read as a prompt rather than as text
   somebody already entered. */
.vds.has-text .vds__ghost { display: none; }

.vds__ghost-static { color: var(--uae-muted); }
.vds__ghost-rota { color: var(--uae-body); font-weight: 600; }

.vds__ghost-caret {
    display: inline-block;
    inline-size: 1.5px;
    block-size: 1.05em;
    background: var(--uae-primary-ink);
    animation: vds-blink 1.1s steps(2, start) infinite;
}

@keyframes vds-blink { to { visibility: hidden; } }

/* The no-JS control. vd-search.js hides it and renders .vds__locbtn instead;
   until then this IS the location picker and has to look deliberate. */
.vds__select {
    max-width: 170px;
    padding-block: 11px;
    padding-inline: 2px 4px;
    border: 0;
    background: none;
    color: var(--uae-body);
    font-size: 15px;
    cursor: pointer;
}

.vds__select:focus { outline: none; }

/* --------------------------------------------------------- the go button */
.vds__go {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--uae-primary);
    color: var(--uae-surface);
    cursor: pointer;
    transition: background .15s ease, scale .12s ease;
}

.vds__go:hover, .vds__go:focus-visible { background: var(--uae-primary-deep); color: var(--uae-surface); }
.vds__go:active { scale: .95; }

.vds__go svg {
    inline-size: 20px;
    block-size: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ------------------------------------------------------- filters button */
.vds__filters {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-block: 9px;
    padding-inline: 12px;
    border: 0;
    border-radius: var(--r-control);
    background: none;
    color: var(--uae-body);
    font-size: 14.5px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.vds__filters:hover,
.vds__filters[aria-expanded="true"] { background: var(--uae-sand); color: var(--uae-ink); }

.vds__filters svg {
    inline-size: 18px;
    block-size: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--uae-muted);
}

.vds__filters-badge {
    display: grid;
    place-items: center;
    min-inline-size: 18px;
    block-size: 18px;
    padding-inline: 5px;
    border-radius: var(--r-pill);
    background: var(--uae-primary);
    color: var(--uae-surface);
    font-size: 11px;
    font-weight: 700;
}

/* ------------------------------------------------- JS-added: clear + kbd */
.vds__clear {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 26px;
    block-size: 26px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: none;
    color: var(--uae-muted);
    cursor: pointer;
}

.vds__clear:hover { background: var(--uae-sand); color: var(--uae-ink); }

.vds__clear svg {
    inline-size: 14px; block-size: 14px;
    fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

.vds__kbd {
    flex: none;
    display: inline-grid;
    place-items: center;
    min-inline-size: 22px;
    block-size: 22px;
    padding-inline: 6px;
    border: 1px solid var(--uae-line);
    border-block-end-width: 2px;
    border-radius: var(--r-control);
    background: var(--uae-sand);
    color: var(--uae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
}

.vds__bar:focus-within .vds__kbd,
.vds.has-text .vds__kbd { display: none; }

/* ------------------------------------------------- JS-added: location pop */
.vds__locbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 190px;
    padding-block: 10px;
    padding-inline: 10px;
    border: 0;
    border-radius: var(--r-control);
    background: none;
    color: var(--uae-body);
    font-size: 15px;
    cursor: pointer;
}

.vds__locbtn:hover,
.vds__locbtn[aria-expanded="true"] { background: var(--uae-sand); color: var(--uae-ink); }

.vds__locbtn.is-set { color: var(--uae-primary-ink); font-weight: 600; }

.vds__locbtn-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vds__caret {
    flex: none;
    inline-size: 14px; block-size: 14px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
    color: var(--uae-muted);
    transition: rotate .18s ease;
}

.vds__locbtn[aria-expanded="true"] .vds__caret { rotate: 180deg; }

.vds__pop {
    position: absolute;
    z-index: 60;
    inset-block-start: calc(100% + 10px);
    inset-inline-start: -6px;
    inline-size: min(340px, calc(100vw - 32px));
    padding: 14px;
    background: var(--uae-surface);
    border: 1px solid var(--uae-line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-pop);
}

.vds__pop-h {
    margin: 0 0 9px;
    color: var(--uae-muted);
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
}

.vds__popgrid { display: flex; flex-wrap: wrap; gap: 6px; }

.vds__poppill {
    padding-block: 6px;
    padding-inline: 12px;
    border: 1px solid var(--uae-line);
    border-radius: var(--r-pill);
    background: var(--uae-surface);
    color: var(--uae-body);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.vds__poppill:hover { border-color: var(--uae-primary); color: var(--uae-primary-ink); }

.vds__poppill[aria-pressed="true"] {
    background: var(--uae-primary-wash);
    border-color: var(--uae-primary);
    color: var(--uae-primary-ink);
    font-weight: 600;
}

/* --------------------------------------------------------- filters panel */
.vds__filters-pop {
    position: absolute;
    z-index: 58;
    inset-block-start: calc(100% + 10px);
    inset-inline: 0;
    max-block-size: min(460px, 64vh);
    display: flex;
    flex-direction: column;
    background: var(--uae-surface);
    border: 1px solid var(--uae-line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-pop);
    text-align: start;
}

.vds__fp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 13px;
    padding-inline: 16px 12px;
    border-block-end: 1px solid var(--uae-line);
}

.vds__fp-title { margin: 0 auto 0 0; font-size: 15px; font-weight: 650; color: var(--uae-ink); }

.vds__fp-x {
    display: grid; place-items: center;
    inline-size: 28px; block-size: 28px;
    padding: 0; border: 0; border-radius: var(--r-control);
    background: none; color: var(--uae-muted); cursor: pointer;
}
.vds__fp-x:hover { background: var(--uae-sand); color: var(--uae-ink); }
.vds__fp-x svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.vds__fp-body { overflow-y: auto; overscroll-behavior: contain; padding-inline: 16px; padding-block-end: 14px; }

.vds__fsec { padding-block-start: 14px; }
.vds__fsec + .vds__fsec { border-block-start: 1px solid var(--uae-line); }

.vds__fsec-h { margin: 0 0 9px; font-size: 13px; font-weight: 650; color: var(--uae-ink); }

.vds__pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* The pill IS the checkbox label, so it works with no JavaScript. */
.vds__pill {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    padding-block: 6px;
    padding-inline: 12px;
    border: 1px solid var(--uae-line);
    border-radius: var(--r-pill);
    background: var(--uae-surface);
    color: var(--uae-body);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.vds__pill:hover { border-color: var(--uae-primary); color: var(--uae-primary-ink); }

.vds__pill input { position: absolute; opacity: 0; pointer-events: none; }

.vds__pill:has(input:checked) {
    background: var(--uae-primary-wash);
    border-color: var(--uae-primary);
    color: var(--uae-primary-ink);
    font-weight: 600;
}

.vds__pill:has(input:focus-visible) { outline: 2px solid var(--uae-primary); outline-offset: 2px; }

.vds__pill-n { color: var(--uae-muted); font-size: 11.5px; }
.vds__pill:has(input:checked) .vds__pill-n { color: var(--uae-primary-ink); opacity: .75; }

/* In-demand trades: name over family. Two lines because the names are
   ambiguous on their own at this size — "Driver" and "Heavy Driver" are
   different licences, and the family line is what distinguishes them. */
.vds__pills--trade { gap: 7px; }

.vds__pill--trade {
    align-items: center;
    gap: 9px;
    padding-block: 7px;
    padding-inline: 11px 13px;
    border-radius: var(--r-card);
}

/* An inline <svg> has no intrinsic size — without an explicit one it lays out
   at 0x0 and font-size does nothing. Same trap as .vd-ico in vd-components. */
.vds__pill-ico {
    flex: none;
    inline-size: 17px;
    block-size: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--uae-muted);
}

.vds__pill--trade:hover .vds__pill-ico { color: var(--uae-primary-ink); }
.vds__pill--trade:has(input:checked) .vds__pill-ico { color: var(--uae-primary-ink); }

.vds__pill-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.vds__pill-t { font-size: 13.5px; line-height: 1.25; }

.vds__pill-fam {
    color: var(--uae-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

/* The family stays muted when selected rather than taking the brand colour:
   it is a category label, not part of what was chosen, and two green lines
   read as two selections. */
.vds__pill--trade:has(input:checked) .vds__pill-fam { color: var(--uae-muted); }

.vds__fp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 12px;
    padding-inline: 16px;
    border-block-start: 1px solid var(--uae-line);
    background: var(--uae-sand);
    border-end-start-radius: var(--r-card);
    border-end-end-radius: var(--r-card);
}

.vds__fp-clear {
    padding-block: 6px; padding-inline: 10px;
    border: 0; border-radius: var(--r-control);
    background: none; color: var(--uae-muted);
    font-size: 13px; cursor: pointer;
}
.vds__fp-clear:hover { background: var(--uae-surface); color: var(--uae-ink); }

.vds__fp-go {
    padding-block: 9px; padding-inline: 18px;
    border: 0; border-radius: var(--r-control);
    background: var(--uae-primary); color: var(--uae-surface);
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.vds__fp-go:hover { background: var(--uae-primary-deep); color: var(--uae-surface); }

/* --------------------------------------------------------------- panel */
.vds__panel {
    position: absolute;
    z-index: 55;
    inset-block-start: 100%;
    inset-inline: 0;
    max-block-size: min(420px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-block: 6px;
    background: var(--uae-surface);
    border: 1px solid var(--uae-line);
    border-block-start: 0;
    border-end-start-radius: 18px;
    border-end-end-radius: 18px;
    box-shadow: var(--shadow-pop);
}

.vds__grp + .vds__grp {
    margin-block-start: 4px;
    padding-block-start: 6px;
    border-block-start: 1px solid var(--uae-line);
}

.vds__grp-h {
    margin: 0;
    padding-block: 7px 5px;
    padding-inline: 18px;
    color: var(--uae-muted);
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
}

.vds__opt {
    display: flex;
    align-items: center;
    gap: 11px;
    inline-size: 100%;
    padding-block: 8px;
    padding-inline: 18px;
    border: 0;
    background: none;
    color: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    scroll-margin: 8px;
}

.vds__opt:hover, .vds__opt.is-active { background: var(--uae-primary-wash); text-decoration: none; }

.vds__opt-ic {
    flex: none;
    display: grid; place-items: center;
    inline-size: 28px; block-size: 28px;
    border-radius: var(--r-control);
    background: var(--uae-sand);
    color: var(--uae-muted);
}

.vds__opt.is-active .vds__opt-ic { background: var(--uae-surface); color: var(--uae-primary-ink); }

.vds__opt-ic svg {
    inline-size: 15px; block-size: 15px;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

.vds__opt-main { flex: 1; min-width: 0; }

.vds__opt-t {
    display: block; overflow: hidden;
    color: var(--uae-ink); font-size: 14px;
    text-overflow: ellipsis; white-space: nowrap;
}

.vds__opt-t mark { padding: 0; background: none; color: var(--uae-primary-ink); font-weight: 700; }

.vds__opt-sub {
    display: block; margin-block-start: 1px; overflow: hidden;
    color: var(--uae-muted); font-size: 12px;
    text-overflow: ellipsis; white-space: nowrap;
}

.vds__opt-tag {
    flex: none;
    padding-block: 2px; padding-inline: 7px;
    border: 1px solid var(--uae-line); border-radius: var(--r-pill);
    color: var(--uae-muted); font-size: 11px; white-space: nowrap;
}

.vds__empty {
    padding-block: 22px 24px; padding-inline: 18px;
    color: var(--uae-muted); font-size: 13px; text-align: center;
}

/* ------------------------------------------------------------ the chips */
.vds-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-block-start: 22px;
}

.vds-chiprow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.vds-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding-block: 8px;
    padding-inline: 16px;
    border: 1px solid var(--uae-line);
    border-radius: var(--r-pill);
    background: var(--uae-surface);
    color: var(--uae-body);
    font-size: 14px;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.vds-chip:hover,
.vds-chip:focus-visible {
    border-color: var(--uae-primary);
    color: var(--uae-primary-ink);
    text-decoration: none;
}

.vds-chip__n { color: var(--uae-muted); font-size: 12px; }
.vds-chip:hover .vds-chip__n { color: var(--uae-primary-ink); opacity: .7; }

/* Second row: the same pill, dashed and unfilled, so "where" reads as the
   quieter of the two rows without inventing a second colour.

   These are the only rules in this file that assume the hero's ink
   background, which is why they are scoped to .vd-hero--pop rather than
   written on .vds-chip itself — the chips would be unreadable on a light
   surface otherwise, and this component may well land on one later.

   They are also the only literal colour here, and deliberately so: the hero
   is --uae-ink-surface in BOTH themes (night points it at #0d1218, it never
   becomes light), so white-on-hero is correct in both and needs no dark
   counterpart. `.jp-hero { color: #fff }` in main.css is the same decision.
   Everything else in this file stays on tokens. */
.vd-hero--pop .vds-chiprow--alt .vds-chip {
    background: transparent;
    border-style: dashed;
    border-color: rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .93);
}

.vd-hero--pop .vds-chiprow--alt .vds-chip__n { color: rgba(255, 255, 255, .62); }

.vd-hero--pop .vds-chiprow--alt .vds-chip:hover,
.vd-hero--pop .vds-chiprow--alt .vds-chip:focus-visible {
    border-style: solid;
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.vd-hero--pop .vds-chiprow--alt .vds-chip:hover .vds-chip__n { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------- phone */
@media (max-width: 767.98px) {
    /* ONE ROW, like the reference. It used to wrap to two (query on top,
       location + filters + submit beneath), which made the bar 115px tall
       against the reference's 56px and pushed the chips and everything under
       them down by that much.

       Three things come out to buy the room: the location label (the globe
       says it), the "/" hint (there is no keyboard to press it on) and the
       word "Filters" (the sliders icon is the same control). */
    .vds__bar { flex-wrap: nowrap; padding: 7px; padding-inline-start: 10px; }

    .vds__seg--loc { order: 0; flex: none; }
    .vds__seg--q { order: 1; flex: 1; min-width: 0; }
    .vds__seg--end { order: 2; flex: none; }

    .vds__locbtn-txt { display: none; }
    .vds__locbtn { max-width: none; gap: 3px; padding-inline: 6px; }
    .vds__kbd { display: none; }
    .vds__filters-txt { display: none; }

    /* The no-JS control cannot collapse to an icon — it is the only thing
       naming the emirate until the script swaps it out — so it is narrowed
       rather than hidden. */
    .vds__select { max-width: 104px; font-size: 14px; }

    /* The keyboard's own Go key submits (one text field, so implicit
       submission applies), and the reference drops its button here for the
       same reason. Hidden rather than removed from the markup: a form with no
       submit button at all is a different, subtler implicit-submission case,
       and the button still has to be there for the no-JS path to be sure. */
    .vds__go { display: none; }

    .vds__ghost { inset-inline-start: 37px; font-size: 15px; }
    .vds__input { font-size: 16px; }   /* 16px: anything less and iOS zooms the page on focus */

    /* Stacked, the panel hangs off the bar's bottom rather than the field's,
       which is two rows away from the caret. Re-rounded for that reason. */
    .vds__panel {
        max-block-size: 56vh;
        border-block-start: 1px solid var(--uae-line);
        border-radius: var(--r-card);
        margin-block-start: 6px;
    }

    .vds.is-open .vds__bar {
        border-end-start-radius: 18px;
        border-end-end-radius: 18px;
    }

    /* ---------------------------------------------------------------------
       Filters becomes a full-screen sheet.

       As an absolutely-positioned dropdown its footer opened at y801-842 in an
       812px viewport — off the bottom of the screen AND underneath .mobilenav,
       which is fixed at the bottom with z-index 999. So the primary action,
       "Show jobs", was invisible on open and only reachable by scrolling the
       page, which nothing suggests you should do.

       Fixed positioning puts the footer against the bottom of the VIEWPORT
       instead, where it cannot be pushed off by the panel's own length.
       z-index clears .mobilenav deliberately: the sheet is modal, and the tab
       bar showing through the bottom of it would offer navigation that leaves
       a half-made filter selection behind.
       --------------------------------------------------------------------- */
    .vds__filters-pop {
        position: fixed;
        /* `inset: 0` alone IS the viewport box — no width/height needed, and
           it tracks the browser chrome hiding and showing for free. An
           explicit `block-size: 100dvh` here was both redundant and wrong:
           it resolved against the window rather than this box and painted the
           sheet at several times its measured size. */
        inset: 0;
        z-index: 1100;
        max-block-size: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vds__fp-head { padding-block: 15px; }
    .vds__fp-title { font-size: 16px; }

    .vds__fp-body { flex: 1 1 auto; }

    .vds__fp-foot {
        flex: none;
        border-radius: 0;
        /* Clear of the home indicator on a notched phone. */
        padding-block-end: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .vds__fp-go { padding-block: 12px; padding-inline: 22px; }

    /* Tap targets: 6px of padding is a 26px pill, under the 44px guidance and
       noticeably fiddly on a real phone with a dozen of them in a row. */
    .vds__pill { padding-block: 9px; padding-inline: 14px; font-size: 13.5px; }

    /* Wrapped, seven category chips stack seven rows deep and push the whole
       page below the fold — the names are long ("PropTech & Real Estate
       Software"), so two never fit side by side at 375px. One scrolling row
       each instead, which is also how the chips read: a list to flick through,
       not a block to parse.

       NO negative inline margin to bleed the row to the screen edge. It was
       tried: .vd-hero--pop lifts .jp-hero's overflow so the suggestion panel
       is not clipped, so a child wider than the container escapes the hero too
       and gives the whole PAGE a horizontal scrollbar. The last chip being cut
       off by the viewport already signals that the row scrolls. */
    .vds-chiprow {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-block-end: 2px;
    }

    .vds-chiprow::-webkit-scrollbar { display: none; }

    .vds-chip { flex: none; scroll-snap-align: start; }
}

@media (max-width: 480px) {
    .vds__filters-txt { display: none; }
    .vds__go { inline-size: 42px; block-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .vds__bar, .vds__caret, .vds__go, .vds-chip, .vds__pill { transition: none; }
    .vds__ghost-caret { animation: none; }
}

