/* ============================================
   BV Plan Documents Widget — v1.9.0
   4 Templates: classic, list, grid, horizontal
   ============================================ */

/* ── Wrapper (CSS Grid for columns) ── */
.bv-pd-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

/* ── Section (one per plan) ── */
.bv-pd-section {
    display: flex;
    flex-direction: column;
    order: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

/* ── Title ── */
.bv-pd-title {
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.3;
    transition: color 250ms ease;
}

/* ── Subtitle ── */
.bv-pd-subtitle {
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.5;
}

/* ── Card ── */
.bv-pd-card {
    display: flex;
    flex: 1;
    width: 100%;
    transition: all 250ms ease;
}

/* ── Card Content (inner wrapper) ── */
.bv-pd-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* ── Icon ── */
.bv-pd-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bv-pd-icon img {
    object-fit: contain;
    display: block;
    transition: all 250ms ease;
}

/* ── Links container ── */
.bv-pd-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* ── Individual Link Row ── */
a.bv-pd-link,
div.bv-pd-link {
    display: inline;
    text-decoration: none;
    line-height: 1.5;
    transition: all 250ms ease;
}

a.bv-pd-link:hover {
    text-decoration: none;
}

.bv-pd-link-primary {
    transition: color 250ms ease;
}

.bv-pd-link-secondary {
    transition: color 250ms ease;
}

/* ═══════════════════════════════════════════
   TEMPLATE: Classic
   Title above, card with icon + links side-by-side
   ═══════════════════════════════════════════ */

.bv-pd--classic .bv-pd-card {
    align-items: center;
}

.bv-pd--classic .bv-pd-card--no-icon {
    justify-content: center;
}

.bv-pd--classic .bv-pd-card--no-icon .bv-pd-card-content {
    align-items: center;
}

/* ═══════════════════════════════════════════
   TEMPLATE: List
   Title inside card, links stacked, no icon
   Clean minimal (like the screenshot)
   ═══════════════════════════════════════════ */

.bv-pd--list .bv-pd-card {
    flex-direction: column;
}

.bv-pd--list .bv-pd-card-content {
    align-items: inherit;
}

/* ═══════════════════════════════════════════
   TEMPLATE: Grid
   Multi-column cards, title inside, links below
   ═══════════════════════════════════════════ */

.bv-pd--grid .bv-pd-card {
    flex-direction: column;
    height: 100%;
}

.bv-pd--grid .bv-pd-icon {
    align-self: center;
}

/* ═══════════════════════════════════════════
   TEMPLATE: Horizontal
   Icon + title + links all in one wide row
   ═══════════════════════════════════════════ */

.bv-pd--horizontal .bv-pd-card {
    align-items: center;
}

.bv-pd--horizontal .bv-pd-card-content {
    flex-direction: column;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Classic + Horizontal: stack icon above links on mobile */
    .bv-pd--classic .bv-pd-card,
    .bv-pd--horizontal .bv-pd-card {
        flex-direction: column;
    }

    .bv-pd--classic .bv-pd-icon,
    .bv-pd--horizontal .bv-pd-icon {
        align-self: center;
    }
}
