/* CO-9213: clean (i) tooltip for calculator field labels -- a dark bubble
   above the trigger, shown on hover/keyboard-focus, replacing the native
   title="" attribute so copy can be longer and consistently styled. */
.calc-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    vertical-align: middle;
}
.calc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1670a7;
}
.calc-info-icon svg {
    width: 14px;
    height: 14px;
}
.calc-info .calc-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #4b4b4b;
    color: #fff;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.45;
    border-radius: 10px;
    padding: 9px 12px;
    width: max-content;
    max-width: 240px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1000;
    pointer-events: none;
}
.calc-info .calc-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #4b4b4b;
}
.calc-info:hover .calc-tip,
.calc-info:focus-within .calc-tip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* CO-9213: the result's V/mV toggle reuses the site-wide unit-dropdown click
   handling (clipboard-copy.js keys off the .input-unit/.units class names
   only), but those classes assume they're sitting inside a fixed-height
   input box -- override their absolute positioning for this plain-text
   result context instead. */
#nernstAnsUnitLabel.input-unit {
    position: static;
    display: inline-block;
    margin-left: 6px;
    cursor: pointer;
}
#nernstAnsUnitBox.units {
    position: absolute;
    top: 100%;
    right: auto;
    left: 0;
    margin-top: 4px;
}
/* the site-wide ".result > *:not(:first-child) { overflow-y: hidden }" rule
   (for wide results that need horizontal scrolling) clips the dropdown
   above since it hangs off this div -- this ID is more specific, so it
   wins without touching that shared rule. */
#nernstResultBody {
    overflow: visible;
}
