/* Catalogue cards keep a full preview above naturally growing text. */
#plugin-list {
    align-items: stretch;
    grid-auto-rows: auto;
}

#plugin-list > li:not(.index-empty) {
    display: flex;
    min-width: 0;
}

#plugin-list .plugin-card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

#plugin-list .plugin-card-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
}

#plugin-list .plugin-cover {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
}

#plugin-list .plugin-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: clamp(12px, 1.4vw, 18px);
    object-fit: contain;
    object-position: center;
}

#plugin-list .plugin-card-copy {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

#plugin-list .plugin-card-copy :is(h2, p) {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

#plugin-list .plugin-systems {
    margin-top: auto;
}
