.rlp-library {
    --rlp-primary: #145da0;
    --rlp-primary-dark: #0c3f70;
    --rlp-text: #17212b;
    --rlp-muted: #667085;
    --rlp-border: #e4e7ec;
    --rlp-surface: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--rlp-text);
}

.rlp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.rlp-filter,
.rlp-page {
    appearance: none;
    border: 1px solid var(--rlp-border);
    border-radius: 999px;
    background: var(--rlp-surface);
    color: var(--rlp-text);
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    padding: 10px 17px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.rlp-filter:hover,
.rlp-filter:focus-visible,
.rlp-filter.is-active {
    border-color: var(--rlp-primary);
    background: var(--rlp-primary);
    color: #fff;
}

.rlp-list {
    display: grid;
    gap: 22px;
}

.rlp-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    overflow: hidden;
    border: 1px solid var(--rlp-border);
    border-radius: 16px;
    background: var(--rlp-surface);
    box-shadow: 0 8px 28px rgba(16, 24, 40, .06);
}

.rlp-cover a,
.rlp-cover img,
.rlp-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.rlp-cover img {
    min-height: 230px;
    object-fit: cover;
}

.rlp-placeholder {
    min-height: 230px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e9f3fb, #cbe3f6);
    color: var(--rlp-primary);
}

.rlp-document-icon {
    font-size: 54px;
    line-height: 1;
}

.rlp-content {
    align-self: center;
    padding: 28px 30px;
}

.rlp-categories {
    margin-bottom: 8px;
    color: var(--rlp-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rlp-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.25;
}

.rlp-title a {
    color: inherit;
    text-decoration: none;
}

.rlp-title a:hover,
.rlp-title a:focus-visible {
    color: var(--rlp-primary);
}

.rlp-subtitle {
    margin: 0 0 13px;
    color: var(--rlp-muted);
    font-weight: 600;
}

.rlp-description,
.rlp-description p {
    margin: 0;
    color: var(--rlp-muted);
    line-height: 1.7;
}

.rlp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.rlp-download,
.rlp-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none;
}

.rlp-download {
    background: var(--rlp-primary);
    color: #fff;
}

.rlp-download:hover,
.rlp-download:focus-visible {
    background: var(--rlp-primary-dark);
    color: #fff;
}

.rlp-read-more {
    border: 1px solid var(--rlp-border);
    color: var(--rlp-text);
}

.rlp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.rlp-page:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.rlp-page-status,
.rlp-empty,
.rlp-error {
    color: var(--rlp-muted);
}

.rlp-library.is-loading .rlp-results {
    min-height: 180px;
    opacity: .45;
    pointer-events: none;
}

@media (max-width: 680px) {
    .rlp-card {
        grid-template-columns: 1fr;
    }

    .rlp-cover img,
    .rlp-placeholder {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .rlp-content {
        padding: 22px;
    }

    .rlp-pagination {
        flex-wrap: wrap;
    }
}
