.sample-download-section {
    margin-block: 1rem;
}

.sample-download-heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.sample-download-grid {
    display: grid;
    /* Reserve empty tracks for short groups and cap wide rows at five cards. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(12rem, calc((100% - 2rem) / 5))), 1fr));
    gap: 0.5rem;
}

.sample-download-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 10px 12px;
    height: 100%;
    box-sizing: border-box;
}

.sample-download-grid > .card {
    container-type: inline-size;
}

@container (max-width: 16rem) {
    .sample-download-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sample-download-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sample-download-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.sample-download-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.sample-detector-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
    cursor: help;
}

.sample-detector-tooltip .tooltip-inner {
    max-width: min(22rem, 85vw);
    text-align: left;
}

.sample-detector-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    width: max-content;
    max-width: 100%;
    max-height: min(18rem, 45vh);
    overflow: auto;
    gap: 0.15rem 0.75rem;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    overflow-wrap: anywhere;
}
