#content:has(> .content-bottom > [data-mendeleeff-calculators]) {
    display: flex;
    flex-direction: column;
}

#content > .article_description:has(~ .content-bottom > [data-mendeleeff-calculators]) {
    order: 1;
    margin-top: 32px;
}

[data-mendeleeff-calculators] > section,
#content > .article_description #kak-polzovatsya {
    scroll-margin-top: 80px;
}

[data-mendeleeff-calculators] > section + section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .13);
}

[data-mendeleeff-calculators] > section > .heading {
    margin: 0 0 16px;
}

[data-mendeleeff-calculators] > section > .row-flex {
    row-gap: 16px;
}

[data-mendeleeff-calculators] .mendeleeff-calculator-column {
    display: flex;
}

[data-mendeleeff-calculators] .mendeleeff-calculator-card {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, .08);
}

[data-mendeleeff-calculators] .mendeleeff-calculator-card > h3 {
    margin-top: 0;
}

[data-mendeleeff-calculators] .mendeleeff-calculator-card > h3 + p {
    margin-bottom: 18px;
}

[data-mendeleeff-calculators] .mendeleeff-field-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

[data-mendeleeff-calculators] .mendeleeff-field-group > legend {
    margin: 0 0 8px;
    border: 0;
    font-size: 1em;
    font-weight: 600;
}

[data-mendeleeff-calculators] .mendeleeff-catalog-link {
    text-decoration: underline;
    text-underline-offset: .15em;
}

[data-mendeleeff-calculators] .mendeleeff-catalog-link:is(:hover, :focus-visible, :active) {
    text-decoration-thickness: 2px;
}

[data-mendeleeff-calculators] .mendeleeff-catalog-link:focus-visible {
    /* UniShop2 suppresses link outlines with !important. */
    outline: 2px solid currentColor !important;
    outline-offset: 3px;
}

[data-mendeleeff-calculators] .mendeleeff-catalog-link > i {
    margin-inline-start: .35em;
    font-size: .85em;
}

[data-mendeleeff-calculators] .mendeleeff-catalog-action {
    margin-bottom: 18px;
}

[data-mendeleeff-calculators] .mendeleeff-result-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

[data-mendeleeff-calculators] .mendeleeff-copy-result {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #23527c;
}

.mendeleeff-clipboard-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

[data-mendeleeff-calculators] .mendeleeff-calculator-card > :last-child,
[data-mendeleeff-calculators] .mendeleeff-calculator-card form > :last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    [data-mendeleeff-calculators] > section,
    #content > .article_description #kak-polzovatsya {
        scroll-margin-top: 20px;
    }

    [data-mendeleeff-calculators] > section + section {
        margin-top: 24px;
        padding-top: 20px;
    }

    [data-mendeleeff-calculators] .mendeleeff-calculator-card {
        padding: 14px;
    }
}
