.results-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.layout-switch:not([hidden]) {
    display: flex;
    gap: 4px;
}

.layout-switch button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    cursor: pointer;
}

.layout-switch svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.layout-switch button[aria-pressed="true"] {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
}

html[data-card-columns="1"] .event-grid--launch {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-inline: auto;
}

html[data-card-columns="2"] .event-grid--launch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 21rem) {
    html[data-card-columns="2"] .event-grid--launch {
        grid-template-columns: 1fr;
    }
}
