/* Normalize all calculator guide text, then increase the common 14px baseline by 25%. */
.calculator-guide,
.calculator-guide * {
    font-size: 17.5px !important;
}

.calculator-guide {
    line-height: 1.7;
}

/* Align explanatory paragraphs and list copy consistently across calculator pages. */
.calculator-guide p,
.calculator-guide li {
    text-align: justify;
    text-justify: inter-word;
}

.text-sm {
    line-height: 1.60rem;
}

/* Add extra breathing room only to the calorie activity factor descriptions. */
.activity-levels > li {
    line-height: 1.9;
}

/* Keep wrapped formula descriptions and equations from running together. */
.formula-details p,
.formula-details li {
    line-height: 1.5;
}

.calculator-tool {
    font-size: 20px !important;
}

/* Make calculator controls comfortable to tap on phones. */
.calculator-tool button,
.calculator-tool input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.calculator-tool select {
    min-height: 44px;
    touch-action: manipulation;
}

.calculator-tool input[type="radio"],
.calculator-tool input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

.calculator-tool .text-xs { font-size: 15px !important; }
.calculator-tool .text-sm { font-size: 17.5px !important; }
.calculator-tool .text-base { font-size: 20px !important; }
.calculator-tool .text-lg { font-size: 22.5px !important; }
.calculator-tool .text-xl { font-size: 25px !important; }
.calculator-tool .text-2xl { font-size: 30px !important; }
.calculator-tool .text-3xl { font-size: 37.5px !important; }
.calculator-tool .calc-font-11 { font-size: 13.75px !important; }

/* Keep only the interactive calculator visible inside the embeddable view. */
body.embed-mode {
    min-height: 0;
}

.embed-calculator-heading {
    padding: 0.5rem 1rem 0;
    color: #e2e8f0;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
}

body.embed-mode #embed-calculator-shell {
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.embed-mode #embed-calculator-shell > div {
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

body.embed-mode .calculator-tool {
    max-width: 100%;
}

body.embed-mode .calculator-guide {
    display: none !important;
}

.embed-powered-by {
    padding: 0.25rem 1rem 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.embed-powered-by a {
    color: #67e8f9;
    font-weight: 700;
    text-decoration: underline;
}

/* Preserve the guide size set above inside the calculator's outer wrapper. */
.calculator-tool .calculator-guide,
.calculator-tool .calculator-guide * {
    font-size: 17.5px !important;
}

.bmi-chart {
    max-height: 340px;
}
