/* ══ One rep max calculator (loaded after calc.css) ══ */
.calc-form .two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
}

.calc-form .two.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.calc [hidden] {
    display: none !important;
}

.sel optgroup {
    background: #161b21;
    color: var(--muted);
    font-style: normal;
}

.score-value {
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left bottom;
}

.score-value.pop {
    transform: scale(1.04);
}

.formula-box {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.formula-box strong {
    display: block;
    color: #fff;
    font-weight: 600;
}

#resultTotal {
    display: block;
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--muted);
}

.formula-box p {
    margin: 6px 0 10px;
    font-size: 0.94rem;
    color: var(--body);
}

.formula-math {
    display: block;
    padding: 12px 14px;
    background: var(--panel);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--gold);
    word-break: break-word;
}

.formula-w {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.calc-app {
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

/* Reference table with words, not numbers: left-aligned and wrapping */
.std--text th,
.std--text td,
.std--text thead th {
    padding-right: 14px;
    text-align: left;
    white-space: normal;
    vertical-align: top;
}

@media (max-width: 619px) {
    .std--text thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .std--text tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .std--text tbody th,
    .std--text td {
        display: block;
        padding: 0;
        border: none;
    }

    .std--text td {
        margin-top: 2px;
        color: var(--muted);
    }

    .std--text td:nth-child(2) {
        color: #e6e9eb;
    }
}
