.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 24px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    border: 1px solid LightGray;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.25s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    box-shadow: 0 0 0 3px #007bff40;
}

.checklist-card {
    display: flex;
    flex-direction: column;
    background: Snow;
}

.empty-card {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: WhiteSmoke;
}

.card-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.card-body::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2em; /* height of the fade area */
    z-index: 1; /* keep the fade container above other content */
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, Transparent 0%, Snow 100%);
}

.card-name {
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.metric-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 16px;
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-label {
    display: block;
    font-size: smaller;
    color: DarkGray;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    display: block;
    font-size: larger;
    font-weight: bold;
}
