/*
 * Grid block — scoped styles
 *
 * Whyso Design System — auto-generated from the Whyso hub.
 * Project: Contenze Test
 * Generated: 2026-05-10T14:58:03+00:00
 *
 * Scoped to .grid — relies on tokens.css being loaded.
 * One breakpoint maximum (structural layout shifts only — never size or
 * colour, those come from the fluid scales in tokens.css).
 */

.grid {
    padding-block: var(--space-2xl);
    /* Surface default — overridden by [data-surface] variants below */
    background: var(--color-bg);
    color: var(--color-text);
}

.grid__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Surface variants */

.grid[data-bg="light"] {
    background: var(--color-bg);
    color: var(--color-text);
}

.grid[data-bg="alt"] {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.grid[data-bg="dark"] {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

/* Columns (driven by --columns inline style on the section) */
.grid .grid__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

/* Responsive layout — structural only, single breakpoint */
@media (min-width: 48rem) {
    .grid .grid__inner { grid-template-columns: repeat(var(--columns, 1), 1fr); }
}


/* ------------------------------------------------------------------
 * Block polish — from preview_sample.extra_css
 * Plus CSS for every component + animation the block references.
 * Matches byte-for-byte what /library preview inlines, so the
 * deployed block renders the same on a real WordPress site.
 * ------------------------------------------------------------------ */

/* --- preview_sample.extra_css --- */
.grid__inner > * + * { margin-top: var(--space-xl); }
.grid__header { text-align: center; max-width: 60ch; margin-inline: auto; }
.grid__heading { font-size: var(--text-3xl); margin-bottom: var(--space-xs); }
.grid__intro { color: var(--color-text-muted); }
.grid__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); justify-content: center; }
.grid__item { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: var(--space-md) var(--space-sm); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.grid__item-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent, var(--brand-neutral-200)); }
.grid__item-label { font-size: var(--text-base); font-weight: 600; line-height: 1.3; max-width: 18ch; margin: 0; }
.grid__item-text { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 28ch; margin: 0; }
.grid__item-text:empty { display: none; }
