.conversion-steps {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.conversion-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.conversion-step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #0eb582;
    border-radius: 999px;
    background: #ecfbf6;
    color: #087a58;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
}

.conversion-step__content {
    min-width: 0;
    padding-top: 3px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}

.conversion-step__math {
    color: #2a374c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* In decimal → binary division rows, keep the quotient immediately after '='.
   The quotient column keeps its fixed width so every remainder stays aligned. */
.binary-division-line > :nth-child(5) {
    text-align: left !important;
}

.conversion-step__ok {
    margin-left: 6px;
    color: #087a58;
    font-weight: 800;
}

@media (max-width: 520px) {
    .conversion-step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    .conversion-step__badge {
        width: 28px;
        height: 28px;
        font-size: .82rem;
    }

    .conversion-step__content {
        padding-top: 1px;
        font-size: .96rem;
    }
}
