/* ============================================================
   Location Hub — Policy Math
   File: assets/css/hub/hub-policy-math.css
   Scope: .hub-policy-math__* classes only
   Reusable numeric cards (cream): deductible math, two-policy
   splits, SOL clocks. Each rendered card = label + body + an
   optional large highlight figure. Default OFF; opt-in per page.
   ============================================================ */

.hub-policy-math {
    background: var(--hub-cream);
    color: var(--hub-navy);
    padding: var(--hub-section-pad) 0;
}

.hub-policy-math__header {
    text-align: center;
    max-width: 825px;
    margin: 0 auto 50px;
}

.hub-policy-math__heading {
    font-family: var(--hub-font-serif);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--hub-navy);
    margin: 0;
}

.hub-policy-math__intro {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    margin: 16px 0 0;
}

.hub-policy-math__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 33px;
    align-items: stretch;
}

.hub-policy-math__card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-policy-math__card-label {
    font-family: var(--hub-font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hub-navy);
    opacity: 0.6;
}

.hub-policy-math__card-body {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--hub-navy);
    margin: 0;
    flex: 1;
}

.hub-policy-math__card-body a {
    color: inherit;
    text-decoration: underline;
}

.hub-policy-math__card-number {
    font-family: var(--hub-font-serif);
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--hub-blue);
}

@media (max-width: 768px) {
    .hub-policy-math__grid {
        grid-template-columns: 1fr;
    }
    .hub-policy-math__card {
        padding: 28px 24px;
    }
    /* Mobile: center policy-math card content for stacked layout. */
    .hub-policy-math__card-label,
    .hub-policy-math__card-body,
    .hub-policy-math__card-number {
        text-align: center;
    }
}


/* ============================
   MONTANA ONLY — figure-led cards
   Number + unit lead the card (visual order only; DOM unchanged),
   pill labels, tighter hierarchy. Scoped to body.hub-mt so NJ and
   future hubs keep the original label-first layout.
   ============================ */

.hub-mt .hub-policy-math__card {
    border: 1px solid rgba(3, 0, 47, 0.06);
    box-shadow: 0 2px 12px rgba(3, 0, 47, 0.05);
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-mt .hub-policy-math__card:hover {
    box-shadow: 0 10px 28px rgba(3, 0, 47, 0.10);
    transform: translateY(-2px);
}

.hub-mt .hub-policy-math__card-number {
    order: -2;
    font-size: 52px;
    line-height: 1.05;
    text-align: center;
}

.hub-mt .hub-policy-math__card-unit {
    order: -1;
    font-family: var(--hub-font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--hub-grey-dark);
    margin: 0 0 10px;
    text-align: center;
}

.hub-mt .hub-policy-math__card-label {
    align-self: center;
    background: rgba(71, 104, 218, 0.10);
    color: var(--hub-blue);
    opacity: 1;
    border-radius: var(--hub-radius-pill);
    padding: 5px 12px;
    font-size: 12px;
}

.hub-mt .hub-policy-math__card-body {
    color: var(--hub-grey-dark);
    font-size: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .hub-mt .hub-policy-math__card-label {
        align-self: center;
    }
    .hub-mt .hub-policy-math__card-unit {
        text-align: center;
    }
}
