/* ============================================================================
   BARLIN GAMES — Site search (/search)
   ----------------------------------------------------------------------------
   Loaded only by livewire/public/search.blade.php, after game-ui.css.

   game-ui.css already owns everything this page shares with the directory: the
   `.gd` tokens and their dark flip, the page shell, the card grid, the game
   card, the filter rail's disclosure, the form fields, the buttons and the
   empty state. This sheet is only the chrome search needs that nothing else
   has — the hero and its box, the tab bar, the result-type sections, and the
   three row shapes (company, person, community review) the directory never
   draws.

   Everything here is `gs-` namespaced and scoped under `.gs`, so it cannot
   reach the directory, an article or a game page. No token is declared here:
   the colours all come from `.gd`, which means the header's theme toggle
   repaints this page with the rest of the site and there is no second palette
   to keep in sync.
   ========================================================================== */

/* ═══ HERO ═══════════════════════════════════════════════════════════════ */

.gs-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--gd-surface);
    border-bottom: 1px solid var(--gd-line);
}

/*
 * The backdrop is the key art of the best game the search found, so it is
 * different on every query and absent when the search found no game with art.
 * It sits on the right and fades out before it reaches the copy: the text is
 * the page, the art is atmosphere, and a wash that reached the headline would
 * trade legibility for decoration.
 */
.gs-hero-art {
    position: absolute; inset: 0 0 0 auto; width: min(58%, 820px); z-index: -1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}
.gs-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }

/* A second wash under the copy column, so a bright piece of art cannot reach
   under the headline. Painted in the surface colour rather than a fixed white,
   which is what lets the same rule serve both themes. */
.gs-hero.has-art::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg,
        var(--gd-surface) 0%, var(--gd-surface) 36%,
        color-mix(in srgb, var(--gd-surface) 72%, transparent) 54%,
        transparent 76%);
}
/* color-mix is well supported but not universal; a browser without it gets the
   two solid stops above and loses only the soft edge, never the legibility. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .gs-hero.has-art::before {
        background: linear-gradient(90deg, var(--gd-surface) 0%, var(--gd-surface) 44%, transparent 78%);
    }
}

.gs-hero-in { padding: 46px 20px 38px; }
.gs-hero-copy { max-width: 720px; min-width: 0; }

.gs-h1 {
    font-size: clamp(34px, 4.2vw, 52px); font-weight: 900;
    letter-spacing: -.035em; line-height: 1.02; color: var(--gd-ink);
}
.gs-sub { margin-top: 10px; font-size: 16px; color: var(--gd-muted); max-width: 54ch; }

/* ── The box ────────────────────────────────────────────────────────────── */

.gs-box {
    position: relative; display: flex; align-items: center; gap: 8px;
    margin-top: 24px; padding: 7px 7px 7px 46px;
    background: var(--gd-raise); border: 1px solid var(--gd-line);
    border-radius: 16px; box-shadow: var(--gd-shadow);
    transition: border-color .18s var(--gd-ease), box-shadow .18s var(--gd-ease);
}
.gs-box:focus-within { border-color: var(--gd-red); box-shadow: var(--gd-shadow-lg); }
.gs-box-i { position: absolute; left: 15px; color: var(--gd-faint); pointer-events: none; }

.gs-box-in {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: none; outline: none;
    font: inherit; font-size: 16px; font-weight: 600; color: var(--gd-ink);
    padding: 11px 0;
}
.gs-box-in::placeholder { color: var(--gd-faint); font-weight: 500; }
/* The UA's own clear affordance would sit beside this page's, which is the one
   that actually resets the component's state. */
.gs-box-in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.gs-box-x {
    display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px;
    border: 0; border-radius: 10px; background: none; color: var(--gd-faint); cursor: pointer;
    transition: background .16s var(--gd-ease), color .16s var(--gd-ease);
}
.gs-box-x:hover { background: var(--gd-line-soft); color: var(--gd-ink); }

.gs-box-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    flex: 0 0 auto; padding: 12px 26px; border: 0; border-radius: 12px;
    background: var(--gd-red); color: #fff; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.01em;
    transition: background .18s var(--gd-ease), transform .18s var(--gd-ease);
}
.gs-box-go:hover { background: var(--gd-red-dark); transform: translateY(-1px); }
.gs-box-go:active { transform: translateY(0); }
/* The icon is the whole button on a phone, where the word does not fit. */
.gs-box-go-i { display: none; }

/* ── Popular chips ──────────────────────────────────────────────────────── */

.gs-pop { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gs-pop-l { font-size: 13px; font-weight: 700; color: var(--gd-muted); margin-right: 2px; }
.gs-pop-c {
    padding: 6px 13px; border-radius: 999px;
    background: var(--gd-raise); border: 1px solid var(--gd-line);
    font-size: 13px; font-weight: 650; color: var(--gd-body);
    transition: border-color .16s var(--gd-ease), color .16s var(--gd-ease);
}
.gs-pop-c:hover { border-color: var(--gd-red); color: var(--gd-red); }

/* ═══ TAB BAR ════════════════════════════════════════════════════════════ */

/*
 * Sticks UNDER the site header, not over it: .bh-nav is 84px tall, sticky at
 * top:0 and z-index 60, so the bar offsets by its height and sits below it in
 * the stack. The three breakpoints below track the header's own (76 / 70px) —
 * a wrong offset here leaves a gap the page scrolls through, or hides the
 * first tab behind the logo.
 */
.gs-tabs {
    position: sticky; top: 84px; z-index: 30;
    background: var(--gd-surface); border-bottom: 1px solid var(--gd-line);
}
/* Scrolls sideways on narrow screens rather than wrapping to two rows, and
   says so: the fade on the right edge is the only honest way to show that
   there are tabs past the cut. */
.gs-tabs-in {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 9px 20px;
    /* The last tab fades out at the right edge instead of being chopped, so a
       bar that scrolls looks like one. The mask is on the scroll container, so
       it stays at the viewport edge as the tabs move under it. */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}
.gs-tabs-in::-webkit-scrollbar { display: none; }
/* Nothing is cut off once every tab fits, so neither should the fade be. */
@media (min-width: 1100px) {
    .gs-tabs-in { -webkit-mask-image: none; mask-image: none; }
}

.gs-tab {
    display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
    padding: 10px 15px; border: 1px solid transparent; border-radius: 12px;
    background: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--gd-muted);
    white-space: nowrap;
    transition: background .16s var(--gd-ease), color .16s var(--gd-ease), border-color .16s var(--gd-ease);
}
.gs-tab .gd-i { color: var(--gd-faint); transition: color .16s var(--gd-ease); }
.gs-tab:hover { background: var(--gd-line-soft); color: var(--gd-ink); }
.gs-tab:hover .gd-i { color: var(--gd-body); }

.gs-tab-n {
    font-size: 12px; font-weight: 800; color: var(--gd-muted);
    background: var(--gd-line-soft); padding: 2px 8px; border-radius: 999px;
}

.gs-tab.is-on { background: var(--gd-red); color: #fff; }
.gs-tab.is-on .gd-i { color: #fff; }
.gs-tab.is-on .gs-tab-n { background: rgba(255, 255, 255, .22); color: #fff; }

/* An empty bucket stays clickable — its tab leads to an honest "nothing here"
   rather than vanishing and leaving the reader to wonder whether it was looked
   at — but it is quieted so it does not compete with the ones that found
   something. */
.gs-tab.is-empty:not(.is-on) { opacity: .5; }

/* ═══ BODY ═══════════════════════════════════════════════════════════════ */

.gs-layout {
    display: grid; grid-template-columns: 274px minmax(0, 1fr);
    gap: 26px; padding: 26px 20px 64px; align-items: start;
}
.gs-layout.is-bare { grid-template-columns: minmax(0, 1fr); }

/* Below the header AND the tab bar, both of which are already stuck. */
.gs-rail { position: sticky; top: 156px; min-width: 0; }

/*
 * The rail is a <details> with no `open` attribute, so it is collapsed by
 * default — which is what a phone wants. From the two-column breakpoint up
 * there is a column reserved for it and nothing to save, so the panel is
 * forced open and the summary stops being a control: author `display` beats
 * the UA's `details:not([open]) > *:not(summary) { display: none }`.
 */
@media (min-width: 981px) {
    .gs-rail .gd-filters-b { display: flex !important; }
    .gs-rail .gd-filters-h { cursor: default; }
    .gs-rail .gd-filters-h > .gd-filters-caret { display: none; }
}

/*
 * The second half of forcing it open, and the half that actually does the work
 * in a current browser.
 *
 * Overriding `display` on the panel used to be enough, because a closed
 * <details> hid its body with `display: none` in the UA sheet. Chrome 131
 * changed that: the body now lives in a `::details-content` pseudo-element
 * carrying `content-visibility: hidden`, which no `display` on the child can
 * reach. Measured at 1280px, the rail rendered as a bare "Filters" bar with an
 * empty box under it.
 *
 * Both rules are kept and they are deliberately separate: a browser that does
 * not know `::details-content` drops this one and is still served by the
 * `display` override above, and an unknown pseudo-element in its own rule
 * cannot invalidate anything else.
 */
@media (min-width: 981px) {
    .gs-rail .gd-filters-box::details-content {
        content-visibility: visible;
        block-size: auto;
    }
}

/*
 * And below it, the disclosure has to be re-armed. game-ui.css's own narrow
 * rule sets `.gd-filters-b { display: grid }` for the directory, which beats
 * the UA's "hide the body of a closed <details>" and left this panel standing
 * open with a toggle that did nothing. Scoped to .gs-rail, so the directory's
 * rail keeps the behaviour it was written for.
 */
@media (max-width: 980px) {
    .gs-rail .gd-filters-box:not([open]) .gd-filters-b { display: none; }
}

.gs-reset {
    margin-left: auto; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 750; color: var(--gd-red);
}
.gs-reset:hover { text-decoration: underline; }
/* The caret follows the Reset button when one is present, so the two never
   share the same `margin-left: auto` slot. */
.gs-reset + .gd-filters-caret { margin-left: 10px; }

.gs-rail-g { display: flex; flex-direction: column; gap: 8px; }
.gs-rail-h {
    font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--gd-muted);
}
.gs-rail-list { display: flex; flex-direction: column; gap: 2px; }
.gs-rail-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 11px; border: 0; border-radius: 9px; background: none; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 650; color: var(--gd-body); text-align: left;
    transition: background .16s var(--gd-ease), color .16s var(--gd-ease);
}
.gs-rail-opt b { font-size: 12px; font-weight: 800; color: var(--gd-faint); }
.gs-rail-opt:hover { background: var(--gd-line-soft); color: var(--gd-ink); }
.gs-rail-opt.is-on { background: var(--gd-red-soft); color: var(--gd-red); }
.gs-rail-opt.is-on b { color: var(--gd-red); }

.gs-years { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.gs-years > span { color: var(--gd-faint); font-weight: 700; }

/* ── Checkbox facets ────────────────────────────────────────────────────
   Genre and platform are multi-select, because "RPG or Action" is the
   question a reader actually has and a <select> cannot ask it. */

.gs-rail-g { border: 0; padding: 0; margin: 0; min-width: 0; }
.gs-rail-g legend { padding: 0; }

.gs-checks { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; max-height: 266px; overflow-y: auto; }
/* A scrollbar inside a 274px rail is noise; the list already caps itself. */
.gs-checks { scrollbar-width: thin; }

.gs-check {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 6px 8px; border-radius: 8px; min-width: 0;
    font-size: 13.5px; font-weight: 600; color: var(--gd-body);
    transition: background .14s var(--gd-ease), color .14s var(--gd-ease);
}
.gs-check:hover { background: var(--gd-line-soft); color: var(--gd-ink); }
.gs-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The native box, recoloured rather than replaced: it keeps its own focus
   ring, its keyboard behaviour and its indeterminate state for free. */
.gs-check input {
    flex: 0 0 auto; width: 16px; height: 16px; margin: 0;
    accent-color: var(--gd-red); cursor: pointer;
}
.gs-check:has(input:checked) { color: var(--gd-ink); font-weight: 700; }

.gs-find { margin-top: 8px; }
.gs-find .gd-input { padding-left: 34px; }
.gs-find .gd-i { position: absolute; left: 11px; color: var(--gd-faint); pointer-events: none; }

.gs-more {
    margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 750; color: var(--gd-red); text-align: left;
}
.gs-more:hover { text-decoration: underline; }

.gs-none { font-size: 13px; color: var(--gd-muted); padding: 2px 0; }

/* ── Active filter chips ────────────────────────────────────────────────
   Every filter in play, including the ones whose rail group the open tab
   does not show — a filter the reader cannot see is a filter they cannot
   undo. */

.gs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.gs-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 10px 6px 11px; border-radius: 999px; cursor: pointer;
    background: var(--gd-surface); border: 1px solid var(--gd-line);
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--gd-ink);
    transition: border-color .16s var(--gd-ease), color .16s var(--gd-ease);
}
.gs-chip:hover { border-color: var(--gd-red); color: var(--gd-red); }
.gs-chip .gd-i { color: var(--gd-faint); }
.gs-chip:hover .gd-i { color: var(--gd-red); }
.gs-chip-k { font-weight: 600; color: var(--gd-muted); }

.gs-chipclear {
    border: 0; background: none; cursor: pointer; padding: 6px 2px;
    font: inherit; font-size: 12.5px; font-weight: 750; color: var(--gd-red);
}
.gs-chipclear:hover { text-decoration: underline; }

/* ── Toolbar ────────────────────────────────────────────────────────────── */

.gs-results { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.gs-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: var(--gd-r);
    background: var(--gd-surface); border: 1px solid var(--gd-line);
}
.gs-count { font-size: 14px; color: var(--gd-muted); }
.gs-count b { color: var(--gd-ink); font-weight: 800; }
.gs-sort { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--gd-muted); }
.gs-sort .gd-input { width: auto; min-width: 140px; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.gs-sec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gs-sec-h { display: flex; align-items: center; gap: 10px; }
.gs-sec-i { color: var(--gd-red); }
.gs-sec-h h2 { font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.gs-sec-h h2 span { color: var(--gd-faint); font-weight: 700; }

.gs-viewall {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 750; color: var(--gd-red);
}
.gs-viewall:hover { gap: 9px; }
.gs-viewall .gd-i { transition: transform .18s var(--gd-ease); }

.gs-pager { margin-top: 8px; }

/* ═══ ARTICLE CARDS ══════════════════════════════════════════════════════ */

.gs-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.gs-art {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--gd-surface); border: 1px solid var(--gd-line);
    border-radius: var(--gd-r); overflow: hidden;
    transition: transform .2s var(--gd-ease), box-shadow .2s var(--gd-ease), border-color .2s var(--gd-ease);
}
.gs-art:hover { transform: translateY(-3px); box-shadow: var(--gd-shadow-lg); border-color: var(--gd-red-ring); }

.gs-art-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--gd-line-soft); overflow: hidden; }
.gs-art-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--gd-ease); }
.gs-art:hover .gs-art-art img { transform: scale(1.05); }
.gs-art-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gd-faint); }

.gs-art-kind {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 10px; border-radius: 7px;
    background: var(--gd-red); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}

.gs-art-b { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; }
.gs-art-t { font-size: 15px; font-weight: 750; line-height: 1.35; }
.gs-art:hover .gs-art-t { color: var(--gd-red); }
.gs-art-x {
    font-size: 13px; line-height: 1.55; color: var(--gd-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gs-art-m { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--gd-muted); font-weight: 600; }
.gs-art-m > span + span::before { content: '·'; margin-right: 10px; color: var(--gd-faint); }

/* ═══ ROWS (companies, community reviews) ════════════════════════════════ */

.gs-rows { display: flex; flex-direction: column; gap: 12px; }

.gs-row {
    display: flex; align-items: center; gap: 16px; min-width: 0;
    padding: 16px 18px; border-radius: var(--gd-r);
    background: var(--gd-surface); border: 1px solid var(--gd-line);
    transition: transform .2s var(--gd-ease), box-shadow .2s var(--gd-ease), border-color .2s var(--gd-ease);
}
.gs-row:hover { transform: translateY(-2px); box-shadow: var(--gd-shadow-lg); border-color: var(--gd-red-ring); }

.gs-row-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gs-row-t { font-size: 15.5px; font-weight: 800; color: var(--gd-ink); letter-spacing: -.015em; }
.gs-row:hover .gs-row-t { color: var(--gd-red); }

.gs-row-m { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; font-weight: 650; color: var(--gd-muted); }
.gs-row-m > span + span::before { content: '·'; margin-right: 10px; color: var(--gd-faint); }
/* The role leads the line and is the one piece of meta worth colouring; it is
   always first, so the separator rule above never gives it a leading dot. */
.gs-row-k { color: var(--gd-red); }

.gs-row-x {
    font-size: 13px; line-height: 1.55; color: var(--gd-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.gs-row-go { flex: 0 0 auto; color: var(--gd-faint); transition: transform .18s var(--gd-ease), color .18s var(--gd-ease); }
.gs-row:hover .gs-row-go { color: var(--gd-red); transform: translateX(3px); }

/* ── Company ────────────────────────────────────────────────────────────── */

.gs-co-logo {
    display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px;
    border-radius: 14px; background: var(--gd-line-soft); border: 1px solid var(--gd-line);
    overflow: hidden;
}
.gs-co-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.gs-co-logo b { font-size: 24px; font-weight: 900; color: var(--gd-faint); }

.gs-co-stats { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.gs-co-stat { display: inline-flex; align-items: center; gap: 9px; }
.gs-co-stat .gd-i { color: var(--gd-red); }
.gs-co-stat > span {
    display: flex; flex-direction: column; line-height: 1.25;
    font-size: 11.5px; font-weight: 650; color: var(--gd-muted);
}
.gs-co-stat b { font-size: 14.5px; font-weight: 850; color: var(--gd-ink); }

/* ── Community review ───────────────────────────────────────────────────── */

.gs-cr-cover {
    display: block; width: 48px; height: 64px; flex: 0 0 48px;
    border-radius: 9px; overflow: hidden; background: var(--gd-line-soft);
}
.gs-cr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gs-cr-score {
    display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
    padding: 6px 11px; border-radius: 999px;
    background: var(--gd-line-soft); color: var(--gd-ink);
    font-size: 13px; font-weight: 850;
}
.gs-cr-score .gd-i { color: #F5A524; }

/* ═══ PEOPLE ═════════════════════════════════════════════════════════════ */

.gs-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; }

.gs-pp {
    display: flex; align-items: center; gap: 13px; min-width: 0;
    padding: 13px 15px; border-radius: var(--gd-r);
    background: var(--gd-surface); border: 1px solid var(--gd-line);
    transition: transform .2s var(--gd-ease), box-shadow .2s var(--gd-ease), border-color .2s var(--gd-ease);
}
.gs-pp:hover { transform: translateY(-2px); box-shadow: var(--gd-shadow-lg); border-color: var(--gd-red-ring); }

.gs-pp-av {
    display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 50%; overflow: hidden;
    background: var(--gd-line-soft); border: 1px solid var(--gd-line);
}
.gs-pp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-pp-av b { font-size: 17px; font-weight: 900; color: var(--gd-faint); }

.gs-pp-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-pp-t {
    font-size: 14px; font-weight: 780; color: var(--gd-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-pp:hover .gs-pp-t { color: var(--gd-red); }
.gs-pp-x {
    font-size: 12px; font-weight: 600; color: var(--gd-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-pp-at {
    font-size: 11.5px; font-weight: 650; color: var(--gd-faint);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══ RESPONSIVE ═════════════════════════════════════════════════════════
   By reflow: the rail drops below the tab bar as a disclosure, the hero art
   goes behind the copy instead of beside it, and the rows stack. Nothing is
   scaled down. */

@media (max-width: 1366px) {
    .gs-tabs { top: 76px; }
    .gs-rail { top: 148px; }
}

@media (max-width: 1180px) {
    .gs-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
    .gs-co-stats { gap: 16px; }
}

@media (max-width: 980px) {
    .gs-layout { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
    /* Stacked above the results, so sticking it would pin the filters over
       the list the reader is scrolling. */
    .gs-rail { position: static; }

    /* The company stats are the first thing to go: they are supporting
       evidence, and at this width keeping them would squeeze the name and the
       description that the reader is actually scanning. */
    .gs-co-stats { display: none; }
}

/*
 * The art goes BEHIND the copy, not beside it, as soon as the page stops being
 * two columns.
 *
 * It used to switch at 760px, which left 768–980px showing the desktop
 * side-by-side crop in a column far too narrow for it: measured at 768px the
 * mask's edge landed mid-sentence and the standfirst ran across the
 * artwork. Tied to the same 980px the layout itself collapses at, so the hero
 * and the body change shape together.
 */
@media (max-width: 980px) {
    .gs-hero-art { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: .3; }
    .gs-hero.has-art::before {
        background: linear-gradient(180deg,
            var(--gd-surface) 0%, color-mix(in srgb, var(--gd-surface) 82%, transparent) 60%, var(--gd-surface) 100%);
    }
    @supports not (background: color-mix(in srgb, red 50%, transparent)) {
        .gs-hero.has-art::before { background: var(--gd-surface); }
    }
}

@media (max-width: 760px) {
    .gs-hero-in { padding: 30px 16px 26px; }

    .gs-box { padding-left: 42px; }
    .gs-box-go { padding: 12px 14px; }
    .gs-box-go > span { display: none; }
    .gs-box-go-i { display: block; }

    .gs-tabs { top: 70px; }
    .gs-tabs-in { padding: 8px 16px; }
    .gs-layout { padding: 16px 16px 48px; }

    .gs-toolbar { padding: 12px 14px; }
    .gs-sort { margin-left: auto; }

    /* Rows become a thumbnail beside stacked text — the chevron goes, because
       the whole row is the link and a 16px glyph is not the tap target. */
    .gs-row { padding: 12px 14px; gap: 12px; align-items: flex-start; }
    .gs-row-go { display: none; }
    .gs-co-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 11px; }
    .gs-row-x { -webkit-line-clamp: 2; }

    .gs-arts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
    .gs-people { grid-template-columns: minmax(0, 1fr); }
}


/* ═══ REDUCED MOTION ═════════════════════════════════════════════════════
   Everything this sheet animates is decoration — a lift, a sheen, a nudge on
   an arrow. None of it carries meaning, so it all goes. */

@media (prefers-reduced-motion: reduce) {
    .gs-art, .gs-row, .gs-pp, .gs-box, .gs-box-go, .gs-tab,
    .gs-chip, .gs-check, .gs-rail-opt, .gs-pop-c, .gs-row-go,
    .gs-art-art img, .gs-viewall .gd-i {
        transition: none !important;
    }
    .gs-art:hover, .gs-row:hover, .gs-pp:hover, .gs-box-go:hover { transform: none; }
    .gs-art:hover .gs-art-art img { transform: none; }
    .gs-row:hover .gs-row-go { transform: none; }
    .gs-viewall:hover { gap: 6px; }
}
