.db-anchor {
    display: block;
    position: relative;
    top: -6rem;
    visibility: hidden;
    height: 0;
}

.db-supporters,
.db-impact {
    display: inline-block;
    font-weight: 600;
}

.db-progress {
    --db-color: #BB2649;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 32rem;
}

.db-progress-top,
.db-progress-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.db-progress-top strong {
    font-size: 1.5rem;
    color: inherit;
}

.db-progress-top span {
    font-weight: 700;
    color: var(--db-color);
}

.db-progress-bottom {
    font-size: 0.9rem;
    opacity: 0.75;
}

.db-bar {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.db-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--db-color);
}

.db-campaigns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .db-campaigns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Doubled class beats Elementor's ".e-paragraph-base a" reset when the shortcode sits in a text widget. */
.db-campaigns .db-campaign {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #efe2e4;
    border-radius: 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.db-campaigns .db-campaign:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(46, 22, 29, 0.12);
}

.db-campaign-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fbf7f5;
}

.db-campaign-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-campaign-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.5rem 1.5rem;
}

.db-campaign-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #bb2649;
}

.db-campaign-title {
    font-size: 1.2rem;
    line-height: 1.45;
    color: #2a1d21;
    word-break: keep-all;
}

.db-campaign-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6e5f63;
    word-break: keep-all;
}

.db-campaign-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.9rem;
}

.db-campaign-foot .db-supporters {
    color: #2a1d21;
}

.db-campaign-more {
    font-weight: 700;
    color: #bb2649;
}

/* With an odd count the newest campaign spans the full row; from tablet up it lays out image left, text right. */
.db-campaigns--lead .db-campaign:first-child {
    grid-column: 1 / -1;
}

.db-campaigns--lead .db-campaign:first-child .db-campaign-title {
    font-size: 1.45rem;
}

@media (min-width: 768px) {
    .db-campaigns--lead .db-campaign:first-child {
        flex-direction: row;
    }

    .db-campaigns--lead .db-campaign:first-child .db-campaign-media {
        flex: 0 0 60%;
        aspect-ratio: auto;
        min-height: 20rem;
    }

    .db-campaigns--lead .db-campaign:first-child .db-campaign-body {
        justify-content: center;
        gap: 0.75rem;
        padding: 2.5rem;
    }

    .db-campaigns--lead .db-campaign:first-child .db-campaign-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .db-campaigns--lead .db-campaign:first-child .db-campaign-excerpt {
        -webkit-line-clamp: 4;
        font-size: 1rem;
    }

    .db-campaigns--lead .db-campaign:first-child .db-campaign-foot {
        margin-top: 0.5rem;
    }
}
