/* site.css — small overrides on top of Tailwind CDN. */

/* Segmented filter control: inactive pills blend into the grey track,
   the active one pops out white (like a tab switcher). */
.filter-btn {
    padding: 0.375rem 0.85rem;
    border-radius: 0.6rem;
    color: #64748b;
    font-weight: 500;
    transition: color .15s, background-color .15s, box-shadow .15s;
    white-space: nowrap;
}
.filter-btn:hover { color: #334155; }
.filter-btn.is-active {
    background: #ffffff;
    color: #155e63;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

/* Standalone "Has Trustpilot" toggle. */
.filter-toggle {
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.875rem;
    transition: all .15s;
    white-space: nowrap;
}
.filter-toggle:hover { border-color: #cbd5e1; }
.filter-toggle.is-active {
    background: #ecfeff;
    border-color: #0e7490;
    color: #155e63;
    font-weight: 600;
}
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
html { scroll-behavior: smooth; }

/* Whole-card click target: the brand link stretches over the card;
   interactive children (Trustpilot link, "show more" button) sit above it. */
.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.z-above { position: relative; z-index: 2; }

/* Collapsible licence codes: hidden extras rejoin the flex row when revealed. */
.lic-extra:not(.hidden) { display: contents; }
