/* Shared website/editor presentation for the native product and solution blocks. */
.ds-product-overview .product-grid { grid-template-columns: minmax(0, 1fr); }
.ds-product-overview .product-card { display: grid; grid-template-columns: minmax(190px, 32%) minmax(0, 1fr); }
.ds-product-overview .product-card__media { min-height: 230px; height: 100%; background-size: contain; background-repeat: no-repeat; }
.ds-product-overview .product-card__body { min-width: 0; }
.ds-product-introduction > .wp-block-group { margin-block: 0 28px; }
.editorial-topics .editorial-topic__image { display: block; width: 100%; height: 160px; object-fit: contain; margin: 0 0 18px; background: #fff; }
.ds-editorial-card-grid { gap: 22px; margin-block: 28px; align-items: stretch; }
.ds-editorial-card-grid > .wp-block-group { min-width: 0; height: 100%; margin: 0; }
.ds-editorial-model-card, .ds-editorial-recommendation-card { padding: 22px; border: 1px solid var(--line, #dce2e6); background: #fff; }
.ds-editorial-model-card .wp-block-image, .ds-editorial-recommendation-card .wp-block-image { margin: 0 0 18px; }
.ds-editorial-model-card .wp-block-image img, .ds-editorial-recommendation-card .wp-block-image img { width: 100%; height: 180px; object-fit: contain; }
.ds-editorial-model-card .ds-model-card__title, .ds-editorial-recommendation-card > .wp-block-heading { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.4; }
.ds-editorial-model-card > p { margin: 0 0 14px; font-size: .92rem; line-height: 1.65; }
.ds-editorial-model-card > :last-child, .ds-editorial-recommendation-card > :last-child { margin-bottom: 0; }
.ds-editorial-card-grid a:focus-visible { outline: 3px solid var(--blue, #004c93); outline-offset: 4px; }
.ds-native-page-heading .ds-editorial-heading-cover { margin: 0; min-height: 300px; padding: clamp(28px, 5vw, 64px); }
.ds-editorial-heading-cover .wp-block-cover__inner-container { min-width: 0; }
.ds-editorial-heading-cover :is(.wp-block-post-title, .wp-block-heading, .eyebrow, .wp-block-post-excerpt, p):not(.has-text-color) { color: inherit; }
.ds-editorial-heading-cover .editorial-lead { color: inherit; }
.ds-editorial-heading-cover .wp-block-post-title { margin-block: 12px 20px; }
.ds-editorial-heading-cover .wp-block-post-excerpt { margin-bottom: 0; }

.ds-safety-models .ds-safety-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
}
.ds-safety-model-grid > .ds-safety-model-card {
    display: grid;
    grid-template-rows: 180px 1fr auto;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid var(--line, #dce2e6);
    background: #fff;
}
.ds-safety-model-grid > .ds-safety-model-card > :is(.wp-block-image, .wp-block-heading, .wp-block-buttons) {
    width: 100%;
    margin: 0;
}
.ds-safety-model-grid .ds-safety-model-card > .wp-block-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
}
.ds-safety-model-grid .ds-safety-model-card:not(:has(> .wp-block-image img))::before {
    content: "";
    min-height: 180px;
    background: #f3f5f7 url("../images/category-placeholder.png") center / contain no-repeat;
}
.ds-safety-model-grid .ds-safety-model-card > .wp-block-image:not(:has(img)) { display: none; }
.ds-safety-model-grid .ds-safety-model-card > .wp-block-heading {
    font-size: 1.125rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ds-safety-model-grid .ds-safety-model-card > .wp-block-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: .5rem;
}
.ds-safety-model-grid .wp-block-button__link {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 44px;
    padding: 8px;
    font-size: .9rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}
@supports (grid-template-rows: subgrid) {
    .ds-safety-model-grid > .ds-safety-model-card {
        grid-row: span 4;
        grid-template-rows: subgrid;
    }
    .ds-safety-model-grid .ds-safety-model-card > .wp-block-buttons {
        grid-row: span 2;
        grid-template-rows: subgrid;
    }
}

.ds-safety-model-heading h2 {
    max-width: 930px;
    margin-block: 0 12px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.5rem);
    overflow-wrap: anywhere;
}
.ds-safety-model-detail .wp-block-column > .wp-block-image {
    margin: 0;
    text-align: center;
}
.ds-safety-model-detail .wp-block-column > .wp-block-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
}
.ds-safety-model-detail :is(ul, ol) > li { margin-block: 0; }
@media (max-width: 781px) {
    .ds-safety-model-detail .wp-block-column:has(> .wp-block-image:only-child) { order: -1; }
}

@media (max-width: 700px) {
    .ds-product-overview .product-card { grid-template-columns: minmax(0, 1fr); }
    .ds-product-overview .product-card__media { min-height: 200px; }
    .ds-editorial-model-card, .ds-editorial-recommendation-card { padding: 18px; }
    .ds-native-page-heading .ds-editorial-heading-cover { min-height: 260px; padding: 24px 20px; }
}
