.nxb-simple-pods {
    --nxb-simple-pods-gap: 1.5rem;
    --nxb-simple-pods-border: #d9dde3;
    --nxb-simple-pods-surface: #fff;
    --nxb-simple-pods-text: #252525;
    --nxb-simple-pods-muted: #555;
    --nxb-simple-pods-accent: #e86513;
    width: min(100%, 90rem);
    margin-inline: auto;
    container: nxb-simple-pods / inline-size;
}

.nxb-simple-pods__grid {
    display: grid;
    grid-template-columns: repeat(var(--nxb-simple-pods-columns, 3), minmax(0, 1fr));
    gap: var(--nxb-simple-pods-gap);
    align-items: stretch;
}

.nxb-simple-pods__card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--nxb-simple-pods-border);
    border-radius: .75rem;
    background: var(--nxb-simple-pods-surface);
    color: var(--nxb-simple-pods-text);
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08);
}

.nxb-simple-pods__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef0f3;
}

.nxb-simple-pods__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nxb-simple-pods__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
}

.nxb-simple-pods__card--no-media .nxb-simple-pods__content {
    min-height: 100%;
}

.nxb-simple-pods__heading {
    margin: 0;
    color: inherit;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
}

.nxb-simple-pods__text {
    margin: .75rem 0 0;
    color: var(--nxb-simple-pods-muted);
    line-height: 1.6;
}

.nxb-simple-pods__text > :first-child { margin-top: 0; }
.nxb-simple-pods__text > :last-child { margin-bottom: 0; }
.nxb-simple-pods__text p,
.nxb-simple-pods__text ul,
.nxb-simple-pods__text ol { margin: 0 0 .85rem; }
.nxb-simple-pods__text li + li { margin-top: .25rem; }
.nxb-simple-pods__text a { color: inherit; text-underline-offset: .15em; }

.nxb-simple-pods__link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: .7rem 1.1rem;
    border: 2px solid var(--nxb-simple-pods-accent);
    border-radius: .35rem;
    background: var(--nxb-simple-pods-accent);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.nxb-simple-pods__text + .nxb-simple-pods__link {
    margin-top: 1.25rem;
}

.nxb-simple-pods__link:hover {
    filter: brightness(.92);
}

.nxb-simple-pods__link:focus-visible {
    outline: 3px solid #252525;
    outline-offset: 3px;
}

@container nxb-simple-pods (max-width: 63.99rem) {
    .nxb-simple-pods--columns-3 .nxb-simple-pods__grid,
    .nxb-simple-pods--columns-4 .nxb-simple-pods__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container nxb-simple-pods (max-width: 37.49rem) {
    .nxb-simple-pods__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nxb-simple-pods__link {
        transition: none;
    }
}
