/* ═════════════════════════════════════════════════════════════════
   Docs doc-cards — link-only cards for the General section

   Like the part cards, but with a title and description instead of
   a module call and a copy button.
   ═════════════════════════════════════════════════════════════════ */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.doc-card {
    background: #faf7fa;
    border: 1px solid var(--purple-white);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.doc-card:hover {
    box-shadow: 0 4px 16px rgba(107, 63, 105, 0.15);
    transform: translateY(-2px);
}

.doc-card__title {
    padding: 0.8rem 0.75rem 0.3rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.doc-card__title a {
    color: var(--purple-dark);
    text-decoration: none;
}

.doc-card__title a:hover {
    color: var(--purple-mid);
}

.doc-card__text {
    flex: 1;
    padding: 0.25rem 0.75rem 0.8rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--purple-mid);
    margin: 0;
}

.doc-card__actions {
    border-top: 1px solid var(--purple-white);
}

.doc-card__actions .part-card__page {
    border-top: none;
}

/* card videos: same fit as card images */
.part-card__img video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}
