/*
 * website-explorer.css - the shared "marketplace" chrome for org-website /
 * community listing routes: a pill search box, a result-head strip (count +
 * sort + mobile filter trigger), a sticky filter rail, and a matching empty
 * state. Registered once from views/website/_listing-header.php, the single
 * choke point every listing route (org, community, and the platform browse
 * routes via views/collection/browse.php) already passes through.
 *
 * Built entirely from the site's own design tokens (web/css/variables.css +
 * the --website-* builder overrides in website-theme.css) - no hardcoded
 * colors - so it inherits whatever theme/palette the org or community has
 * chosen, in both light and dark mode. Never scoped under .website-body: a
 * community-rendered listing page (views/collection/browse.php,
 * CommunityCollectionHelper) runs under the platform's own views/layouts/main.php,
 * which never sets that class - see the same note in _listing-header.php.
 *
 * Card polish (radius, hover lift, shadow) is intentionally NOT duplicated
 * here - website-theme.css already themes every listing card via
 * .website-card-hover-accent + the --website-card-* / --website-radius-lg
 * builder variables. This file only adds the chrome those cards sit inside.
 */

/* --- Search box: plain input -> a rounded pill, matching the header search --- */
.website-listing-search .form-control {
    border-radius: var(--radius-full, 999px);
    padding: 0.65rem 1.25rem;
    border-color: var(--border-default, var(--color-secondary-200));
    box-shadow: var(--shadow-xs);
}
.website-listing-search .form-control:focus {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-primary, var(--color-primary-500)) 20%, transparent);
    border-color: var(--bs-primary, var(--color-primary-500));
}

/* --- Category chips: fuller pill treatment for the shared filter row ------ */
.shop-category-chip {
    border-radius: var(--radius-full, 999px);
    font-weight: var(--font-weight-medium, 500);
}

/* --- Search bar with a Location field (events/rentals only, the 'location'
 * knob): keyword + location + a visual "Explore" button in one pill,
 * matching the design's three-segment bar. Without the knob, the box stays
 * the single plain pill above - this modifier only applies when a second
 * input is actually present. ------------------------------------------- */
.website-listing-search--bar {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 0.42fr) auto;
    align-items: stretch;
    gap: 0;
    max-width: 720px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    border-radius: var(--radius-full, 999px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-1, 0.25rem);
}
.website-listing-search--bar .form-control {
    border: 0;
    box-shadow: none;
    border-radius: var(--radius-full, 999px);
}
.website-listing-search--bar .form-control:first-child {
    border-right: 1px solid var(--border-default, var(--color-secondary-100));
    border-radius: var(--radius-full, 999px) 0 0 var(--radius-full, 999px);
}
.website-listing-search--bar .form-control:focus {
    box-shadow: none;
}
.website-listing-search-submit {
    background-color: var(--bs-primary, var(--color-primary-600));
    color: var(--color-on-primary, #fff);
    border: 0;
    border-radius: var(--radius-full, 999px);
    padding: 0 var(--space-6, 1.5rem);
    font-weight: var(--font-weight-semibold, 600);
    white-space: nowrap;
}
.website-listing-search-submit:hover {
    background-color: color-mix(in srgb, var(--bs-primary, var(--color-primary-600)) 88%, black);
    color: var(--color-on-primary, #fff);
}

@media (max-width: 575.98px) {
    .website-listing-search--bar {
        grid-template-columns: 1fr;
        border-radius: var(--radius-xl, 0.75rem);
    }
    .website-listing-search--bar .form-control:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--border-default, var(--color-secondary-100));
        border-radius: var(--radius-xl, 0.75rem) var(--radius-xl, 0.75rem) 0 0;
    }
    .website-listing-search-submit {
        border-radius: 0 0 var(--radius-xl, 0.75rem) var(--radius-xl, 0.75rem);
        padding: var(--space-3, 0.75rem);
    }
}

/* --- Themed searcher (nav_presentation 'bar_bg' etc): once a background is
 * configured, views/website/_listing-header-content.php adds
 * search-bar-has-card (+ a search-bar-bg-* token or search-bar-bg-custom) to
 * THIS SAME element - web/css/search-bar.css already paints that pair (it's
 * the Search builder section's own searcher card), but --bar's own hardcoded
 * fill/border/shadow above would otherwise still win on every property they
 * both set: same 1-class specificity, so it would come down to registration
 * order. This compound selector (2 classes) settles it unconditionally by
 * mirroring search-bar.css's own .search-bar-has-card declaration verbatim -
 * not by unsetting it, which would leave the wrong (transparent) fill if this
 * rule ever loaded after search-bar.css instead of before it. The plain
 * (non-bar) .website-listing-search carries no competing fill of its own, so
 * .search-bar-has-card's single-class rule applies there untouched. */
.website-listing-search--bar.search-bar-has-card {
    background: var(--search-bar-bg, transparent);
    border: var(--website-card-border, none);
    box-shadow: var(--website-card-shadow, var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15)));
    padding: var(--search-bar-card-pad, 1.25rem);
}

/* --- Content position ('search_pos' knob): 'bottom' and 'float' both need
 * the band's content block to occupy the band's FULL height instead of its
 * own shrink-to-fit size - ListingHeroWidget centers a single flex item with
 * align-items:center, so .listing-header__content is normally only as tall
 * as its own content. :has() scopes the stretch to ONLY a band that actually
 * carries one of these modifiers, so every other hero (the overwhelming
 * majority) is byte-identical to before this rule existed. */
.listing-header--hero:has(.website-listing-search--bottom),
.listing-header--hero:has(.website-listing-search--float) {
    align-items: stretch;
}
.listing-header--hero:has(.website-listing-search--bottom) > .listing-header__content,
.listing-header--hero:has(.website-listing-search--float) > .listing-header__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* 'float' additionally lets the search box hang below the band's own bottom
 * edge - the mirror of the Search section's own float-over-previous-section
 * knob (which pulls UP over the section above; this pulls DOWN below the
 * band). translateY (not margin) because the box already sits flush with the
 * band's true bottom edge courtesy of the stretch + flex-end above - a
 * margin there would only eat into the container's own padding, not push the
 * box past the band. views/website/_listing-header.php passes
 * allowOverflow to ListingHeroWidget for this mode so .listing-header--hero's
 * own overflow:hidden does not clip it; z-index keeps it above whatever
 * comes right after the band (the Featured strip or the result grid),
 * intentionally - the same "a floated element overlaps its neighbour, z-index
 * settles who's on top" trade-off .website-boost-strip--overlap already
 * makes below. */
.website-listing-search--float {
    transform: translateY(var(--website-listing-search-float, 3rem));
    position: relative;
    z-index: 4;
}

/* --- Explorer band style (nav_presentation 'band_style'): a brighter
 * eyebrow, an oversized title and a widened search bar over the banner -
 * the reference marketplace-listing composition. Classic (the default for
 * every existing row) gets none of this: these rules only fire under the
 * --explorer modifier views/website/_listing-header.php adds. Room is left
 * at the band's bottom for the Featured strip to overlap into (see
 * .website-boost-strip--overlap below). The --explorer modifier applies
 * whether or not a banner is on (Explorer with Banner=None is a valid,
 * plain-background combination), so the light-on-dark eyebrow tint is
 * scoped to .listing-header--hero (only present when a band actually
 * renders) rather than to --explorer alone - ListingHeroWidget's own CSS
 * scopes its h1/.lead white-text override the same way. ------------------ */
.listing-header--hero.website-listing-header--explorer .website-listing-eyebrow {
    color: rgba(255, 255, 255, 0.85);
}
.website-listing-header--explorer .website-section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}
.website-listing-header--explorer .website-listing-subtitle {
    max-width: 640px;
    font-size: var(--font-size-lg, 1.125rem);
}
.website-listing-header--explorer .website-listing-search {
    max-width: 720px;
}
.website-listing-header--explorer .website-listing-search--bar {
    max-width: 860px;
}

/* --- Featured strip ('boost' knob): a promoted row above the category
 * pills / result head, pulled slightly over the hero's bottom edge like the
 * design's boost-zone card. -------------------------------------------- */
.website-boost-strip {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    border-radius: var(--radius-xl, 0.75rem);
    box-shadow: var(--shadow-md);
    padding: var(--space-5, 1.25rem);
    margin-bottom: var(--space-8, 2rem);
}

/* --- Themed panel (nav_presentation 'boost_bg' etc) - same class/var
 * pattern the searcher card uses (web/css/search-bar.css's --search-bar-*
 * custom properties), reused under a --boost-strip-* namespace so the
 * Featured panel offers the exact same token set (Light/Dark/Surface/
 * Primary/Secondary/Glass/Glass dark/Transparent + any brand hex) without a
 * parallel set of rules. Default ('' - no card classes at all) leaves the
 * plain var(--bg-primary) fill above completely untouched. --------------- */
.website-boost-strip.website-boost-strip-has-card {
    background: var(--boost-strip-bg, var(--bg-primary));
    color: var(--boost-strip-fg, inherit);
    padding: var(--boost-strip-pad, var(--space-5, 1.25rem));
}
.website-boost-strip-has-card .website-boost-eyebrow,
.website-boost-strip-has-card .website-boost-note {
    color: var(--boost-strip-fg, var(--text-muted));
}
.website-boost-strip-has-card .website-boost-heading,
.website-boost-strip-has-card .website-boost-copy strong {
    color: var(--boost-strip-fg, inherit);
}
.website-boost-strip-bg-none {
    background: transparent;
    box-shadow: none;
    border: 1px solid color-mix(in srgb, var(--boost-strip-fg, #000000) 20%, transparent);
}
.website-boost-strip-bg-glass,
.website-boost-strip-bg-glass-dark {
    -webkit-backdrop-filter: blur(var(--boost-strip-blur, 12px)) saturate(160%);
    backdrop-filter: blur(var(--boost-strip-blur, 12px)) saturate(160%);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.12));
}
.website-boost-strip-bg-light {
    --boost-strip-bg: color-mix(in srgb, #ffffff calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
    --boost-strip-fg: #18181b;
}
.website-boost-strip-bg-dark {
    --boost-strip-bg: color-mix(in srgb, #18181b calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
    --boost-strip-fg: #fafafa;
}
.website-boost-strip-bg-surface {
    --boost-strip-bg: color-mix(in srgb, var(--website-bg, var(--bg-primary)) calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
    --boost-strip-fg: var(--website-fg, var(--text-primary));
}
.website-boost-strip-bg-primary {
    --boost-strip-bg: color-mix(in srgb, var(--color-primary-600) calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
    --boost-strip-fg: #ffffff;
}
.website-boost-strip-bg-secondary {
    --boost-strip-bg: color-mix(in srgb, var(--color-secondary-600) calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
    --boost-strip-fg: #ffffff;
}
.website-boost-strip-bg-glass {
    --boost-strip-bg: rgba(255, 255, 255, var(--boost-strip-bg-alpha, 0.7));
    --boost-strip-fg: #18181b;
}
.website-boost-strip-bg-glass-dark {
    --boost-strip-bg: rgba(24, 24, 27, var(--boost-strip-bg-alpha, 0.55));
    --boost-strip-fg: #fafafa;
}
/* --boost-strip-bg / -fg for the custom-hex token are set inline
 * (views/website/_boost-strip.php) - this only re-applies the opacity blend
 * on top of that inline value, same pattern as search-bar.css's
 * .search-bar-bg-custom. */
.website-boost-strip-bg-custom {
    --boost-strip-bg: color-mix(in srgb, var(--boost-strip-bg, var(--bg-primary)) calc(var(--boost-strip-bg-alpha, 1) * 100%), transparent);
}

/* --- Panel surface ('boost_surface' knob) - corner radius / elevation only,
 * independent of the background group above. Default (no modifier) keeps
 * the plain card look every existing row already has. ------------------- */
.website-boost-strip--surface-flat {
    box-shadow: none;
    border-color: var(--border-default, var(--color-secondary-200));
}
.website-boost-strip--surface-raised {
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
    border: 0;
}
.website-boost-strip--surface-sharp {
    border-radius: var(--radius-sm, 0.125rem);
}
.website-boost-strip--surface-soft {
    border-radius: var(--radius-2xl, 1rem);
}
.website-boost-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-3, 0.75rem);
    margin-bottom: var(--space-4, 1rem);
}
.website-boost-eyebrow {
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-1, 0.25rem);
}
.website-boost-heading {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl, 1.25rem);
    margin: 0;
}
.website-boost-note {
    color: var(--text-muted);
    white-space: nowrap;
}
.website-boost-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 1rem);
}
.website-boost-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    border: 1px solid var(--border-default, var(--color-secondary-200));
    border-radius: var(--radius-lg, 0.5rem);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 200ms var(--ease-in-out, ease), transform 200ms var(--ease-in-out, ease);
}
.website-boost-card:hover {
    color: inherit;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.website-boost-image-wrap {
    position: relative;
    display: block;
    background-color: var(--bg-secondary);
}
.website-boost-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.website-boost-badge {
    position: absolute;
    top: var(--space-2, 0.5rem);
    left: var(--space-2, 0.5rem);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full, 999px);
}
.website-boost-copy {
    padding: var(--space-3, 0.75rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    min-width: 0;
}
.website-boost-copy strong {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-medium, 500);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.website-boost-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1, 0.25rem);
}

/* Explorer band style pulls the strip up over the band's bottom edge, the
 * "boost-zone card" look the design comment above has always described but
 * this modifier was never written for. z-index: 4 is required, not
 * cosmetic - .listing-header--hero has z-index: auto (no stacking context
 * of its own), so its descendants (.listing-header__overlay z-2,
 * .listing-header__content z-3 - ListingHeroWidget's own CSS) compete
 * globally with this strip; 4 must stay ahead of both. */
.website-boost-strip--overlap {
    position: relative;
    z-index: 4;
    /* --website-boost-strip-overlap (nav_presentation 'boost_float_px'),
     * inline on .website-boost-strip when set (views/website/_boost-strip.php) -
     * already wrapped in its own --wb-space-scale calc() there, so this only
     * ever sees a complete length. Falls back to the original fixed token
     * for every row that never touched the knob.
     *
     * The band before the strip (.website-listing-header, web/css/website-theme.css)
     * keeps its own margin-bottom: var(--space-12), and the two margins
     * collapse - so the pull has to cancel that margin first, or the strip
     * merely closes most of the gap and never actually crosses the band's
     * bottom edge. */
    margin-top: calc(-1 * (var(--space-12, 3rem) + var(--website-boost-strip-overlap, var(--space-10, 2.5rem))));
}
@media (max-width: 767.98px) {
    .website-boost-strip--overlap {
        margin-top: var(--space-4, 1rem);
    }
}

@media (max-width: 991.98px) {
    .website-boost-track {
        grid-template-columns: 1fr 1fr;
    }
    .website-boost-card:nth-child(3) {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .website-boost-strip-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .website-boost-track {
        grid-template-columns: 1fr;
    }
    .website-boost-card:nth-child(3) {
        display: grid;
    }
}

/* --- Result head: count/sort strip above the grid -------------------------- */
.website-result-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    margin-bottom: var(--space-6, 1.5rem);
}
.website-result-head-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    flex-wrap: wrap;
}
.website-sort-select-wrap {
    min-width: 0;
}
.website-sort-select {
    border-radius: var(--radius-lg, 0.5rem);
    border-color: var(--border-default, var(--color-secondary-200));
    font-weight: var(--font-weight-medium, 500);
}
.website-rail-toggle {
    border-radius: var(--radius-full, 999px);
}

/* --- Workspace: sticky rail + results, matching the design's 260px column - */
.website-listing-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--space-7, 1.75rem);
    align-items: start;
}
.website-listing-results {
    min-width: 0;
}

/* --- Filter rail ------------------------------------------------------------ */
.website-filter-rail {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    border-radius: var(--radius-xl, 0.75rem);
    padding: var(--space-5, 1.25rem);
    align-self: start;
    position: sticky;
    top: var(--space-5, 1.25rem);
}
.website-filter-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3, 0.75rem);
}
.website-filter-rail-title {
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    margin: 0;
}
.website-rail-close {
    display: none;
}
.website-filter-group {
    padding: var(--space-3, 0.75rem) 0;
    border-top: 1px solid var(--border-default, var(--color-secondary-100));
}
.website-filter-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.website-filter-group-label {
    display: block;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    margin-bottom: var(--space-2, 0.5rem);
}
.website-filter-check {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-1, 0.25rem) 0;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-secondary, var(--text-primary));
    cursor: pointer;
}
.website-filter-range {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    cursor: default;
}
.website-filter-range input[type="range"] {
    width: 100%;
    accent-color: var(--bs-primary, var(--color-primary-500));
}
.website-filter-range output {
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-sm, 0.875rem);
    min-width: 2.5rem;
    text-align: right;
}
.website-filter-clear {
    display: block;
    width: 100%;
    margin-top: var(--space-3, 0.75rem);
    padding: var(--space-2, 0.5rem);
    border: 0;
    background: none;
    color: var(--bs-primary, var(--color-primary-600));
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-sm, 0.875rem);
    text-align: center;
    border-radius: var(--radius-md, 0.375rem);
}
.website-filter-clear:hover {
    background-color: var(--bg-secondary);
}

/* --- Empty state: a dashed panel, matching the design's empty-result card -- */
.website-listing-empty {
    text-align: center;
    padding: var(--space-10, 2.5rem) var(--space-5, 1.25rem);
    border: 1px dashed var(--border-default, var(--color-secondary-300));
    border-radius: var(--radius-xl, 0.75rem);
}

@media (max-width: 991.98px) {
    .website-listing-workspace {
        grid-template-columns: 1fr;
    }
    .website-filter-rail {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(340px, 88vw);
        max-width: 88vw;
        height: 100%;
        z-index: 1050;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--duration-200, 200ms) var(--ease-in-out, ease);
        box-shadow: var(--shadow-2xl);
    }
    .website-filter-rail.open {
        transform: translateX(0);
    }
    .website-rail-close {
        display: inline-flex;
    }
}

[data-bs-theme="dark"] .website-filter-rail {
    background-color: var(--bg-secondary);
}

/* --- Offers band: the marketplace switcher (a pill per sibling offer route
 * plus an optional scope pill row), directly under the hero / Featured strip
 * - see views/website/_listing-offers-band.php. Eyebrow/title styling mirrors
 * .website-boost-eyebrow / .website-boost-heading (same visual language),
 * just at the page-header scale rather than the strip scale. --------------- */
.website-offers-band {
    margin-bottom: var(--space-5, 1.5rem);
}
.website-offers-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-4, 1rem);
    margin-bottom: var(--space-3, 0.75rem);
}
.website-offers-eyebrow {
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-1, 0.25rem);
}
.website-offers-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl, 2rem);
    font-weight: var(--font-weight-bold, 700);
    margin: 0;
}
.website-offers-intro {
    max-width: 26rem;
    color: var(--text-muted);
    margin: 0;
    text-align: right;
}
.website-offers-types {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-2, 0.5rem);
}
.website-offers-type {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full, 999px);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium, 500);
    text-decoration: none;
    transition: background-color 150ms var(--ease-in-out, ease), color 150ms var(--ease-in-out, ease), border-color 150ms var(--ease-in-out, ease);
}
.website-offers-type:hover {
    border-color: var(--bs-primary, var(--color-primary-500));
    color: var(--bs-primary, var(--color-primary-500));
    text-decoration: none;
}
.website-offers-type--active {
    background-color: var(--bs-primary, var(--color-primary-500));
    border-color: var(--bs-primary, var(--color-primary-500));
    color: var(--color-white, #fff);
}
.website-offers-type--active:hover {
    color: var(--color-white, #fff);
}
.website-offers-scope {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-3, 0.75rem);
}
.website-offers-scope-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full, 999px);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm, 0.875rem);
    cursor: pointer;
    transition: background-color 150ms var(--ease-in-out, ease), color 150ms var(--ease-in-out, ease), border-color 150ms var(--ease-in-out, ease);
}
.website-offers-scope-pill:has(input:checked) {
    background-color: var(--bs-primary, var(--color-primary-500));
    border-color: var(--bs-primary, var(--color-primary-500));
    color: var(--color-white, #fff);
}
.website-offers-divider {
    border-top: 1px solid var(--border-default, var(--color-secondary-200));
}
@media (max-width: 767.98px) {
    .website-offers-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .website-offers-intro {
        text-align: left;
        max-width: none;
    }
}

/* --- Server-form search (views/website/_listing-header-content.php
 * $searchForm): the /communities directory's keyword + access select + submit
 * bar. Reuses the --bar pill above; the select segment gets the same
 * borderless treatment as the inputs, and --form-plain (no select) collapses
 * the grid to two columns. ---------------------------------------------- */
.website-listing-search--form .form-select {
    border: 0;
    box-shadow: none;
    background-color: transparent;
    color: inherit;
    border-radius: 0;
}
.website-listing-search--form .form-select:focus {
    box-shadow: none;
}
.website-listing-search--form-plain {
    grid-template-columns: 1fr auto;
}
.website-listing-header--left .website-listing-search--form {
    margin-left: 0;
}
@media (max-width: 575.98px) {
    .website-listing-search--form .form-select {
        border-bottom: 1px solid var(--border-default, var(--color-secondary-100));
        padding: var(--space-3, 0.75rem) 1.25rem;
    }
    .website-listing-search--form-plain {
        grid-template-columns: 1fr;
    }
}

/* --- /communities directory section head (views/community/_directory-head.php)
 * - rides the .website-offers-* band styles; these only add the pill
 * separator between Show filters and categories and the note/sort sub-bar. */
.community-directory-pill-sep {
    align-self: stretch;
    width: 1px;
    margin: 0.35rem var(--space-1, 0.25rem);
    background-color: var(--border-default, var(--color-secondary-200));
}
.community-directory-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    flex-wrap: wrap;
    margin: var(--space-3, 0.75rem) 0 var(--space-6, 1.5rem);
}
.community-directory-subbar .website-sort-select {
    min-width: 11rem;
}

/* --- Explorer community card (CommunityCardWidget layout 'explorer'):
 * cover with an access badge, heading-font name, "By <org>", excerpt and a
 * hairline footer with members + recent-activity label. Tokens only, so it
 * follows the light/dark theme and the site palette. ------------------- */
.community-card-explorer {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-default, var(--color-secondary-200));
    border-radius: var(--website-radius-lg, var(--radius-xl, 0.75rem));
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 200ms var(--ease-in-out, ease), box-shadow 200ms var(--ease-in-out, ease);
}
.community-card-explorer:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.community-card-explorer-cover {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background-color: var(--bg-secondary);
}
.community-card-explorer-cover-link {
    position: absolute;
    inset: 0;
    display: block;
}
.community-card-explorer-cover-link img,
.community-card-explorer-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}
.community-card-explorer-cover img {
    object-fit: cover;
}
.community-card-explorer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}
.community-card-explorer-badges {
    position: absolute;
    top: var(--space-3, 0.75rem);
    left: var(--space-3, 0.75rem);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1, 0.25rem);
    pointer-events: none;
}
.community-card-explorer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full, 999px);
    background-color: rgba(255, 255, 255, 0.92);
    color: #1f2a24;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    box-shadow: var(--shadow-xs);
}
.community-card-explorer-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: var(--space-5, 1.25rem);
}
.community-card-explorer-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl, 1.25rem);
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.25;
    margin: 0 0 var(--space-1, 0.25rem);
}
.community-card-explorer-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.community-card-explorer-title a:hover {
    color: var(--bs-primary, var(--color-primary-600));
}
.community-card-explorer-by {
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-muted);
    margin-bottom: var(--space-3, 0.75rem);
}
.community-card-explorer-text {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-4, 1rem);
}
.community-card-explorer-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    margin-top: auto;
    padding-top: var(--space-3, 0.75rem);
    border-top: 1px solid var(--border-default, var(--color-secondary-200));
}
.community-card-explorer-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--space-3, 0.75rem);
    row-gap: 0.15rem;
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--text-muted);
}
.community-card-explorer-activity {
    color: var(--bs-primary, var(--color-primary-600));
    font-weight: var(--font-weight-medium, 500);
}
