/* ==========================================================================
   stat-block.css — Option C: centered stacked, top border accent
   ========================================================================== */
 
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
 
    background-color: var(--sb-card-bg, #ffffff);
    border: 1px solid #e0e0e0;
    border-top: 6px solid var(--sb-badge-bg, #0044B5);
    border-radius: 8px;
 
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    width: 100%;
 
    /* Uniform height when used in a flex/grid row */
    height: 100%;
    
}
 
/* ── Icon ──────────────────────────────────────────────────────────────── */
.stat-block__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
 
.stat-block__icon-svg,
.stat-block__icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
 
/* ── Text content ──────────────────────────────────────────────────────── */
.stat-block__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
 
/* ── Number ────────────────────────────────────────────────────────────── */
.stat-block__badge {
    font-size: clamp(3rem, 7vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sb-badge-bg, #0044B5);
 
    /* No background — number IS the color */
    background: none;
    padding: 0;
    border-radius: 0;
}
 
/* ── Label ─────────────────────────────────────────────────────────────── */
.stat-block__label {
    margin: 0;
    color: var(--sb-label-fg, #221E1F);
    font-size: clamp(1.8rem, 3vw, 2.0rem);
    font-weight: 400;
    line-height: 1.45;
}
 
/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .stat-block {
        padding: 1rem;
    }
 
    .stat-block__icon-svg,
    .stat-block__icon-img {
        width: 48px;
        height: 48px;
    }
}

/* ── Animations ─────────────────────────────────────────────────────────── */
.stat-block {
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease;
}

.stat-block:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-block-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.stat-block-link,
.stat-block-link:hover,
.stat-block-link:focus,
.stat-block-link:visited,
.stat-block-link:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: inherit !important;
    -webkit-text-decoration: none !important;
}