.mc_content {
    height: auto;
    padding-left: 0;
    padding-right: 0;
    color: white;
    box-sizing: border-box;
    position: relative;

}

h1 {
    font-size: 40px;
    line-height: 110%;
}

@media screen and (max-width: 650px) { 
    h1 {
        font-size: 34px;
    }
}


h2 {
    font-size: 30px;
}

@media screen and (max-width: 650px) { 
    h2 {
        font-size: 25px;
    }
}

h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0px;
}

content p {
    margin-top: 8px;
}

.mc_calctitle {
    margin-top: 20px;
    margin-bottom: 40px;
}

@media screen and (max-width: 1100px) {
    .mc_calctitle {
        margin-top: 48px;
    }
}

.mc_top_container {
    width: 100%;
    background-color: transparent;
}

.mc_top_unified {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* align label inset with mc_top card horizontal padding */
    --mc_label_inset: 20px;
    --mc_label_clearance: 30px;
    --mc_section_pad_y: 24px;
    --mc_column_gap: 32px;
    --mc_stack_gap: 12px;
    /* mirrors .mc_input_column padding-left; tags use this for top */
    --mc_input_column_pad_left: 0;
}

.mc_top_unified .mc_equation_section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding-top: calc(var(--mc_label_inset) + var(--mc_label_clearance));
    padding-bottom: calc(var(--mc_section_pad_y) + 26px);
    margin-bottom: 0;
}

.mc_top_unified .mc_equation_inner {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--mc_stack_gap);
}

@media screen and (min-width: 900px) {
    .mc_top_unified {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        --mc_input_column_pad_left: var(--mc_column_gap);
    }

    .mc_top_unified .mc_equation_section {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        margin-bottom: 0;
        border-bottom: none;
        padding-right: var(--mc_column_gap);
    }

    .mc_top_unified .mc_input_column {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
}

.mc_equation_wrap {
    color: white;
    font-size: 20px;
}

.mc_top_unified .mc_input_column {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    min-height: 220px;
    padding-bottom: var(--mc_section_pad_y);
    padding-left: var(--mc_input_column_pad_left);
}

.mc_top_unified .mc_input_section {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.mc_top_unified .mc_input_body {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding-top: 31px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.mc_top_unified .mc_input_column > .mc_uppercont {
    flex-shrink: 0;
    align-self: flex-end;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: auto;
    margin: 8px 0 0;
}

/* absolute labels; top matches .mc_input_column padding-left */
.mc_top_unified .mc_equation_section > .tag,
.mc_top_unified .mc_input_section > .tag {
    position: absolute;
    top: 0px;
    z-index: 1;
    margin: 0;
    scroll-margin-top: 0;
}

.mc_top_unified .mc_upperbutton {
    margin-top: 0;
}

.mc_top_unified .mc_inputrow {
    width: 100%;
}

.mc_upperbuttons {
    width: auto;
    display: flex;
    justify-content: flex-end;
}

.mc_upperbutton {
    width: auto;
    height: fit-content;
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 11px;
    border-radius: 4px;
    border-color: white;
    border-width: 2px;
    border-bottom-width: 0px;
    border-top-width: 0px;
    border-style: solid;
    opacity: 0.8;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, supported by most modern browsers */
}

.mc_upperbutton:hover {
    opacity: 1;
    cursor: pointer;
}

.mc_ub_calc {
    margin-left: 16px;
}

.mc_inputrow {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

@media screen and (max-width: 450px) { 
    .mc_inputrow {
        flex-direction: column;
        box-sizing: border-box;
    }
}

.mc_variabletitle {
    width: 70%;
}

@media screen and (max-width: 1000px) { 
    .mc_variabletitle {
        font-size: 16px;
    }
}

@media screen and (max-width: 450px) { 
    .mc_variabletitle {
        width: 90%;
        margin-bottom: 4px;
    }
}

.v_m {
    opacity: 0.7;
    margin-left: 10px;
}

.mc_input {
    width: 30%;
    margin-left: 10px;
    height: 22px;
    border-top-width: 0px;
    border-bottom-width: 1px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-color: white;
    border-style: solid;
    background-color: transparent;
    outline: none;
    color: white;
    border-radius: 5px;
    padding-left: 14px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

@media screen and (max-width: 450px) { 
    .mc_input {
        width: calc(100% - 100px);
        margin-left: 0px;
        margin-right: 10px;
    }
}

.mc_middle_container {
    margin-top: 50px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    overflow-x: auto;
    /* match section label spacing with .mc_top_unified */
    --mc_label_inset: 20px;
    --mc_label_clearance: 30px;
    --mc_section_pad_y: 24px;
}

.mc_middle_container .mc_middle_section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: calc(var(--mc_label_inset) + var(--mc_label_clearance));
    padding-bottom: var(--mc_section_pad_y);
}

.mc_middle_container .mc_extrawaiting_outer {
    padding-top: 8px;
}

.mc_middle_container .mc_middle_section > .tag {
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0;
    scroll-margin-top: 0;
}

.mc_middle_container::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width: 1000px) { 
    .mc_middle_container {
        margin-top: 36px;
    }
}

    .mc_jsoutput_container_top {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

        .mc_waiting {
            width: 151px;
            padding-left: 20px;
            padding-right: 20px;
            padding-top: 5px;
            padding-bottom: 5px;
            background-color: transparent;
            border-color: white;
            border-style: solid;
            border-width: 0px;
            border-right-width: 3px;
            border-left-width: 3px;
            border-radius: 5px;
            opacity: 0.7;
            margin-top: 10px;
            margin-bottom: 10px;
        }
    
    .mc_jsoutput_container_bottom {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .mc_extrawaiting_outer {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

            .mc_extrawaiting {
                margin-bottom: 44px;
                height: 25px;
            }

                .plotcnv {
                    width: 100%;
                    height: 400px;
                }

        .mc_jsoutput_container_under {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

            .extrarow {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: center;
            }

.mc_docs_region {
    width: 100%;
    margin-top: 60px;
    margin-bottom: 30px;
}

.mc_docs_region.mc_docs_region_in_sidebar {
    margin-top: 0;
}

.mc_docs_body {
    height: auto;
}

    .mc_docs_body h1 {
        margin-bottom: 0px;
    }

    .mc_docs_region.mc_docs_region_in_sidebar .mc_docs_body > h1:first-of-type {
        margin-top: 0.2em;
    }

    .mc_docs_body h2 {
        margin-bottom: 0px;
        font-weight: 500;
        font-size: 28px;
    }

    @media screen and (max-width: 650px) { 
        .mc_docs_body h2 {
            font-size: 26px;
        }
    }
    
    @media screen and (max-width: 450px) { 
        .mc_docs_body h2 {
            font-size: 22px;
        }
    }

.mc_containers {
    border-radius: 10px;
    height: auto;
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-color: white;
    border-style: solid;
    background-color: rgb(12, 10, 43, 0.4);
    padding-left: 34px;
    padding-right: 34px;
}

/* match .card-lite + CommentsSection wrap for the equation/inputs shell and result panel */
.mc_containers.mc_top_unified,
.mc_containers.mc_middle_container {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 20px 6px;
}

@media screen and (max-width: 600px) { 
    .mc_containers {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mc_containers.mc_top_unified,
    .mc_containers.mc_middle_container {
        padding: 20px 20px 6px;
    }
}

@media screen and (max-width: 400px) { 
    .mc_containers {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mc_containers.mc_top_unified,
    .mc_containers.mc_middle_container {
        padding: 20px 16px 6px;
    }

    .mc_top_unified.mc_containers,
    .mc_middle_container.mc_containers {
        --mc_label_inset: 16px;
    }
}