/* rb-multitool: PDF-Card Widget */

.rb-pdf-card {
    display: flex;
    align-items: center;
    gap: 1em;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    line-height: 1.4;
    cursor: pointer;
}

.rb-pdf-card:hover,
.rb-pdf-card:focus-visible {
    text-decoration: none;
}

.rb-pdf-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.2em;
}

.rb-pdf-card__thumb {
    flex: 0 0 4.5em;
    max-width: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rb-pdf-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rb-pdf-card__thumb svg {
    width: 100%;
    height: auto;
    max-height: 5.5em;
    display: block;
}

.rb-pdf-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    min-width: 0;
}

.rb-pdf-card__title {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    transition: color 0.18s ease;
}

.rb-pdf-card__meta {
    font-size: 0.85em;
    opacity: 0.9;
}

.rb-pdf-card--placeholder {
    border: 1px dashed #c0c4c8;
    padding: 1em 1.25em;
    color: #6b6b6b;
    background: #fafbfc;
}
