.ynpr-ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(260px, calc((100% - 40px) / 3))), 1fr));
    gap: 20px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 1306px;
    margin-inline: auto;
}
.ynpr-ps-grid.ynpr-ps-columns-2 { max-width: 864px; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(260px, calc((100% - 20px) / 2))), 1fr)); }
.ynpr-ps-grid.ynpr-ps-columns-1 { max-width: 422px; grid-template-columns: 1fr; }
.ynpr-ps-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 0;
    width: 100%;
    max-width: 422px;
    margin-inline: auto;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--ynpr-ps-outline);
    border-radius: 16px;
    background: var(--ynpr-ps-background);
    color: var(--ynpr-ps-text);
    font-family: var(--ynpr-ps-font, inherit);
    text-align: center;
    overflow-wrap: anywhere;
}
.ynpr-ps-card .ynpr-ps-image { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 0; margin: 0; object-fit: contain; }
.ynpr-ps-card .ynpr-ps-title { width: 100%; max-width: 360px; margin: 0; padding: 0; color: inherit; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; font-weight: 700; }
.ynpr-ps-card .ynpr-ps-description { width: 100%; max-width: 360px; color: inherit; font-size: var(--ynpr-ps-description-size, 18px); line-height: 1.55; }
.ynpr-ps-card .ynpr-ps-description p { font-size: inherit; line-height: inherit; }
.ynpr-ps-card .ynpr-ps-title,
.ynpr-ps-card .ynpr-ps-description,
.ynpr-ps-card .ynpr-ps-description p,
.ynpr-ps-card a.ynpr-ps-button { font-family: inherit; }
.ynpr-ps-description > :first-child { margin-top: 0; }
.ynpr-ps-description > :last-child { margin-bottom: 0; }
.ynpr-ps-description a { color: inherit; text-decoration: underline; }
.ynpr-ps-card a.ynpr-ps-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; box-sizing: border-box; border: 0; border-radius: 999px; background: var(--ynpr-ps-button); color: var(--ynpr-ps-button-text); font-size: 15px; line-height: 1.4; font-weight: 700; text-decoration: none; box-shadow: none; }
.ynpr-ps-card a.ynpr-ps-button:hover { filter: brightness(1.15); }
.ynpr-ps-grid > .ynpr-ps-card > a.ynpr-ps-button { margin-top: auto; }
.ynpr-ps-card a.ynpr-ps-button:focus-visible { outline: 2px solid var(--ynpr-ps-text); outline-offset: 4px; }
