/* Riverbed Surveys layer-toggle option has multi-line label content (title,
   subtitle, risk swatches), so the default vertical-centered checkbox floats
   next to the middle of the whole block instead of the "Riverbed Surveys"
   title. Pin it to the top of that option only -- the other layer-toggle
   options are single-line and stay centered via the inline labelStyle. */
#layer-toggle .dash-options-list-option-wrapper:first-child .dash-options-list-option,
#layer-toggle > label:first-child {
    align-items: flex-start !important;
}

#layer-toggle .dash-options-list-option-wrapper:first-child .dash-options-list-option-checkbox,
#layer-toggle > label:first-child input[type="checkbox"] {
    margin-top: 3px;
}

/* "?" info badge next to each layer-toggle label -- pure CSS hover tooltip, no
   click handling needed (and none wanted, since these labels sit inside the
   checkbox's <label> and a click would toggle the layer). */
.layer-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid #888;
    color: #888;
    font-size: 10px;
    line-height: 1;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
}

.layer-info-icon .layer-info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: #1b3a5c;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.layer-info-icon:hover .layer-info-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Riverbed Surveys tooltip has a longer explanation plus a 3-line risk
   breakdown, so it needs more width than the default 200px box to stay
   readable instead of turning into a tall, narrow column. */
.layer-info-icon .layer-info-tooltip-wide {
    width: 300px;
}
