.elc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
    /* Vaste kaartafmeting, gedeeld met Brandgevaarmeter (FWI) en Luchtkwaliteit
       Kempen: dezelfde breedte en dezelfde hoogte. Alle drie tegelijk aanpassen
       kan via Extra CSS, bv.:
       :root { --wsk-card-width: 400px; --wsk-card-height: 540px; } */
    width: 100%;
    max-width: var(--wsk-card-width, 420px);
    min-height: var(--wsk-card-height, 520px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d2327;
    box-sizing: border-box;
}

.elc-card * {
    box-sizing: border-box;
}

.elc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3a3f47;
}

.elc-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
}

.elc-card-info-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.elc-card-info {
    width: 20px;
    height: 20px;
    line-height: 18px;
    border-radius: 50%;
    border: 1px solid #c7cad1;
    background: #f7f7f7;
    color: #6a6f78;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.elc-card-info:hover {
    background: #eceef0;
}

/* Popover zweeft onder de "?"-knop: verschijnt bij hover (muis), bij
   focus (toetsenbord) en via .is-open (klik/touch, geregeld in card.js). */
.elc-card-info-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-width: min(260px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #eceef0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #3a3f47;
    text-align: left;
    z-index: 30;
}

.elc-card-info-wrap:hover .elc-card-info-popover,
.elc-card-info-wrap:focus-within .elc-card-info-popover,
.elc-card-info-wrap.is-open .elc-card-info-popover {
    display: block;
}

.elc-card-info-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #eceef0;
    border-top: 1px solid #eceef0;
    transform: rotate(45deg);
}

.elc-card-info-popover strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #1d2327;
}

.elc-card-info-popover p {
    margin: 0;
}

.elc-card-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.elc-card-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    background: #9aa0a8; /* overschreven per status via inline style */
}

.elc-card-badge-text {
    min-width: 0;
}

.elc-card-status {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.elc-card-desc {
    font-size: 13px;
    color: #4a4f57;
    line-height: 1.4;
}

.elc-card-sub {
    font-size: 12px;
    color: #8a8f98;
    margin-top: 4px;
}

.elc-card-updated {
    font-size: 11px;
    color: #b0b4bb;
    text-align: center;
    margin-top: 2px;
}

.elc-card-divider {
    border: none;
    border-top: 1px solid #eceef0;
    margin: 16px 0;
}

/* Het staafgrafiekje krijgt de overtollige kaarthoogte, zodat de kaart even
   hoog is als de andere twee zonder een leeg gat in het midden. */
.elc-card-mini-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.elc-card-mini-days {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #8a8f98;
    margin-bottom: 4px;
}

.elc-card-mini-chart {
    width: 100%;
    display: block;
    flex: 1 1 auto;
    min-height: 40px;
}

.elc-card-mini-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 11px;
    color: #8a8f98;
    margin-top: 4px;
}

.elc-card-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #fde9b0;
    display: inline-block;
}

.elc-card-stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.elc-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.elc-card-stat-label {
    font-size: 11px;
    color: #8a8f98;
    margin-bottom: 2px;
    text-align: center;
}

.elc-card-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.elc-card-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f1f2f4;
    color: #3a3f47;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    transition: background 0.15s ease;
}

.elc-card-link-btn:hover {
    background: #e5e7eb;
    color: #1d2327;
}

.elc-card-footer {
    text-align: center;
    font-size: 11px;
    color: #b0b4bb;
}
