/* ------------------------------------
TOOLTIP STYLES
-------------------------------------*/

.tooltip-trigger {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    vertical-align: middle;
    color: inherit;
}

.tooltip-trigger svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
}

.tooltip-content {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    max-width: 220px;
    z-index: 1000;
}

.tooltip-content.active {
    display: block;
}

/*-------------------------------------
FIELDSET / LEGEND (ACCESSIBILITY ONLY)
-------------------------------------*/

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*-------------------------------------
RESULTS DISPLAY
-------------------------------------*/

#results output strong {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0a0; /* green for positive */
}

#results output[aria-live] {
    display: inline-block;
    min-width: 4ch;
    text-align: left;
}

/*-------------------------------------
FOCUS STATES
-------------------------------------*/

input:focus,
button:focus,
.tooltip-trigger:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}