﻿/* Grid container for cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Individual card */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .card-header .card-pretitle {
        opacity: 0.6;
        font-weight: bold;
    }

    .card-header .card-title {
        font-size: 1.2rem;
        font-weight: bold;
    }

/* “Read more” link */
.card-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #007acc;
    text-decoration: none;
    font-size: 0.9rem;
}

    .card-link:hover {
        text-decoration: underline;
    }

/* Body of card */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Each row in body */
.card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem;
}

    .card-row:nth-child(even) {
        background-color: #f9f9f9;
    }

.card-key {
    color: #737373;
}

.card-value {
    text-align: right;
}

.card-warning {
    color: var(--orange);
    font-weight: bold;
}