.calculator-sticky {
    position: sticky;
    top: 1rem;
}

.max-w-760 {
    max-width: 760px;
}

.quick-note {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
    border: 1px solid rgba(13, 110, 253, 0.14);
    overflow-wrap: anywhere;
}

.metric-card {
    background: #f8f9fa;
    min-height: 78px;
}

.tax-breakdown-bar {
    --price-share: 95%;
    --tax-share: 5%;
    display: flex;
    min-height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #e9ecef;
}

.tax-breakdown-bar::before,
.tax-breakdown-bar::after {
    content: '';
    display: block;
    min-width: 5%;
}

.tax-breakdown-bar::before {
    width: var(--price-share);
    background: #0d6efd;
}

.tax-breakdown-bar::after {
    width: var(--tax-share);
    background: #ffc107;
}

.formula-box {
    min-height: 142px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: #212529;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.formula-inline {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    color: #212529;
    font-family: var(--bs-font-monospace);
}

.step-number {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .calculator-sticky {
        position: static;
    }
}

@media (max-width: 575.98px) {
    h1 {
        overflow-wrap: anywhere;
    }

    .formula-box {
        font-size: 0.83rem;
    }

    .table {
        min-width: 720px;
    }
}
