/* Mobile-first medical and fitness tools – visual language follows MyCalcPlanet. */
.health-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:14px;align-items:start;margin-top:12px}
.health-tool-panel,.health-results{min-width:0;border:1px solid #dce4ec;border-radius:16px;background:#fff;padding:20px;box-shadow:0 5px 24px #172b430a}
.health-tool-panel h2{margin:0 0 8px;font-size:17px;line-height:1.35}.health-tool-panel>p{margin:0 0 14px;color:#52647a;font-size:12px}
.health-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.health-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#334960;font-size:12px;font-weight:650}
.health-field input,.health-field select,.health-units select{display:block;width:100%;min-width:0;min-height:46px;border:1px solid #c8d3df;border-radius:9px;background:#fbfcfe;padding:9px 10px;color:#172b43;font-size:16px}
.health-field input:focus-visible,.health-field select:focus-visible{outline:3px solid #a4d8d4;outline-offset:1px}
.health-units{display:flex;justify-content:flex-end;margin-bottom:13px}.health-units label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650}.health-units select{width:auto;min-width:124px;font-size:13px}
.health-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.health-actions>button{min-height:46px;border-radius:9px;padding:10px 15px;font-weight:700;font-size:13px}.health-actions .primary{flex:1}.health-secondary{background:#f3f6f9;color:#31516a;border:1px solid #d8e2ea}
.health-results{background:linear-gradient(140deg,#154b4f,#0e353b);color:white;border-color:#0e4149;scroll-margin-top:10px}.health-label{display:block;color:#bce5d7;font-size:12px;font-weight:700}.health-main-result{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:7px}.health-primary{font-size:clamp(29px,3.9vw,42px);font-weight:800;line-height:1.3;overflow-wrap:anywhere}.health-unit{font-size:13px;color:#cde7df}.health-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:17px}.health-metric{padding:11px;border-radius:9px;background:#ffffff12;border:1px solid #ffffff24;min-width:0}.health-metric span{display:block;color:#d2e5e1;font-size:11px}.health-metric strong{display:block;color:#fff;font-size:14px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.health-explain{color:#dbebe6;font-size:12px;line-height:1.7;margin:14px 0 0}.health-results.health-error .health-primary{font-size:17px;color:#ffbec8}
.health-docs{margin-top:24px;max-width:930px}.health-docs section{margin:0 0 20px;padding:17px 20px;background:#fff;border:1px solid #e0e8ef;border-radius:12px}.health-docs h2{font-size:18px;margin:0 0 10px}.health-docs p,.health-docs li{font-size:13px;color:#52647a;line-height:1.8}.health-docs ol{padding-inline-start:22px}.health-docs details{padding:10px 0;border-bottom:1px solid #e1e8ee}.health-docs details:last-child{border:0}.health-docs summary{cursor:pointer;font-size:13px;font-weight:700;min-height:34px;color:#243f57}.health-related{display:flex;gap:8px;flex-wrap:wrap}.health-related a{display:inline-flex;padding:9px 12px;background:#e9f3f0;color:#075c68;border:1px solid #cde2dd;border-radius:9px;font-size:12px;font-weight:700}
.health-family{margin-top:19px}.health-family h2{font-size:18px;margin:0 0 10px}.health-family .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.health-family .calc-card{min-height:116px;padding:13px 12px 32px}.health-family .calc-card small{font-size:11px}.health-family .calc-card .tileicon{display:none}
@media(max-width:760px){.health-layout{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:8px}.health-tool-panel,.health-results{padding:15px}.health-form-grid{gap:9px}.health-results{position:static}.health-details{gap:8px}.health-docs{margin-top:15px}.health-family .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pagehead .ptop p{max-width:48ch}.health-docs section{padding:15px}}
@media(max-width:420px){.health-form-grid{grid-template-columns:1fr 1fr}.health-field:has([type=date]),.health-field:has(select){grid-column:1/-1}.health-actions .primary{width:auto}.health-actions .health-secondary{flex:0 1 auto}.health-metric{padding:9px}.health-primary{font-size:30px}.health-tool-panel h2{font-size:16px}}
/* Lightweight category navigation and a non-diagnostic visual aid. */
.health-home-category{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:4px 0 18px}
.health-category-link,.health-existing-related a{display:inline-flex;min-height:42px;align-items:center;gap:7px;border:1px solid #b5d6ce;border-radius:11px;background:#e8f4ef;color:#0a5f59;padding:8px 14px;font-weight:750;font-size:13px;line-height:1.35}
.health-category-link.muted{background:white;color:#425c70;border-color:#d4e1e8}
.health-existing-related{margin:16px 0 0}
.health-bf-scale{margin-top:18px}.health-bf-meter{position:relative;height:14px;background:linear-gradient(90deg,#6ca9a3,#54bd90 30%,#e0c26d 65%,#d78d81 100%);border-radius:99px}
.health-bf-meter i{position:absolute;top:-5px;left:0;height:24px;width:5px;border-radius:3px;background:#fff;border:1px solid #285457;box-shadow:0 0 0 2px #23515844}
.health-bf-scale p{color:#dcebe5;font-size:11px;line-height:1.5;margin:10px 0 0}
@media(max-width:420px){.health-tool-panel{padding:13px}.health-results{padding:14px}.health-home-category{margin-bottom:12px}.health-category-link{min-height:40px;padding-inline:11px}.health-actions{gap:6px}.health-actions>button{padding-inline:10px}}
