/* Library integration: layout only. Color tokens remain owned by knowledge.css. */
.vd-library-grid {
    margin-top: 1.25rem;
}

.vd-resource-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.vd-resource-card[hidden] {
    display: none;
}

.vd-reader td code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vd-reader-aside ul {
    margin: 0;
    padding-inline-start: 1.15rem;
}

.vd-reader-aside hr {
    margin-block: 1.25rem;
}

/* Keep library actions above decorative layers without changing the palette. */
.vd-reader-aside {
    z-index: 2;
}

.vd-reader-aside a,
.vd-test-commercial-action {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.vd-page--library .vd-content-section::before {
    pointer-events: none;
}

/* The complete catalog card opens its internal record. Independent action
   buttons stay above the stretched link. */
.vd-resource-card {
    position: relative;
}

.vd-resource-primary-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vd-resource-actions {
    position: relative;
    z-index: 2;
}

.vd-resource-actions a {
    position: relative;
    z-index: 3;
}
