/* Shared by the website's product cards and the PageBuilder product variant. */
:is(.product-card, .editorial-card.editorial-card--product) {
    display: block;
    min-width: 0;
    min-height: 12.5rem;
    padding: 1.25rem;
    border: var(--editorial-border, 0);
    border-radius: var(--sbh-radius, .375rem);
    background: var(--editorial-surface, var(--sbh-white, #fff));
    box-shadow: var(--editorial-shadow, var(--sbh-shadow, 0 10px 30px rgba(25, 26, 32, .08)));
    color: var(--sbh-ink, #191a20);
    font-family: var(--sbh-card-font, "Inter", Arial, Helvetica, sans-serif);
    line-height: 1.625;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

:is(.product-card, .editorial-card.editorial-card--product):is(:hover, :focus-visible, :focus-within) {
    background: color-mix(in srgb, var(--sbh-brand, #e31e24) 92%, transparent);
    color: var(--sbh-white, #fff);
    transform: translateY(-2px);
}

:is(.product-card, .editorial-card.editorial-card--product):hover:not(:focus-visible) { outline: none; }
:is(.product-card, .editorial-card.editorial-card--product):focus-visible {
    outline: 2px solid var(--sbh-brand, #e31e24);
    outline-offset: 2px;
}

.product-card__logo, .editorial-card--product .editorial-card__image {
    display: block;
    width: auto;
    height: 2rem;
    max-width: min(11rem, 100%);
    object-fit: contain;
    object-position: left center;
}

:is(.product-card, .editorial-card.editorial-card--product) h3 {
    margin: 1rem 0 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.375;
    letter-spacing: -.025em;
    text-wrap: balance;
}

:is(.product-card, .editorial-card.editorial-card--product) p {
    margin: .5rem 0 0;
    color: inherit;
    font-size: .875rem;
    line-height: 1.625;
}

:is(.product-card, .editorial-card.editorial-card--product) a:not(.sbh-button) { color: inherit; }
.editorial-cards.editorial-cards--product { gap: 1rem; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.download-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--sbh-border, rgba(25, 26, 32, .08));
    border-radius: var(--sbh-radius, .375rem);
    background: var(--sbh-white, #fff);
    box-shadow: var(--sbh-shadow, 0 10px 30px rgba(25, 26, 32, .08));
    color: var(--sbh-ink, #191a20);
    font-family: var(--sbh-card-font, "Inter", Arial, Helvetica, sans-serif);
    line-height: 1.625;
}

.download-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    padding: .25rem;
    border-radius: var(--sbh-radius, .375rem);
    background: var(--sbh-brand, #e31e24);
    color: var(--sbh-white, #fff);
    font-size: .75rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.download-card__content { min-width: 0; }
.download-card h3 {
    margin: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1.375;
    font-weight: 800;
    overflow-wrap: anywhere;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.download-card__description, .download-card__file, .download-card__meta {
    margin: .35rem 0 0;
    color: var(--sbh-muted, rgba(25, 26, 32, .68));
    font-size: .875rem;
    line-height: 1.428571;
    overflow-wrap: anywhere;
}
.download-card__description { white-space: pre-line; }
.download-card__button { margin-top: 1rem; }

@media (max-width: 900px) {
    .download-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    :is(.product-card, .editorial-card.editorial-card--product) { transition: none; }
    :is(.product-card, .editorial-card.editorial-card--product):is(:hover, :focus-visible, :focus-within) { transform: none; }
}
