/* Shared species-map options and live-fire layout.
   Keeps controls close to the species facts, prevents an inner rail scrollbar,
   and gives range/fire switches one quiet, consistent visual language. */

/* Interactive map state changes can alter overlay copy while a switch has
   focus. Exclude the explorer from browser scroll anchoring so those DOM
   updates never move the page viewport. The map note is absolutely positioned
   and does not participate in the explorer's document flow. */
.ofi-bornean-map-explorer {
    overflow-anchor: none;
}

.ofi-bornean-map-secondary-controls {
    margin-top: 1.75rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--ofi-color-border-soft);
    gap: .65rem;
}

.ofi-bornean-map-secondary-heading {
    margin: 0 0 .1rem;
    color: var(--ofi-color-text-muted);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
}

.ofi-bornean-map-secondary-toggles {
    gap: .65rem;
}

.ofi-bornean-map-toggle {
    min-height: 24px;
}

.ofi-bornean-map-toggle__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
}

.ofi-bornean-map-toggle__meta {
    color: var(--ofi-color-text-muted);
    font-size: .64rem;
    font-weight: 400;
    line-height: 1.25;
}

.ofi-bornean-map-toggle__track {
    border-color: #d8d5d1;
    background: #f5f4f2;
}

.ofi-bornean-map-toggle.is-active .ofi-bornean-map-toggle__track {
    border-color: rgba(219, 121, 60, .38);
    background: rgba(219, 121, 60, .13);
}

.ofi-bornean-map-toggle.is-active .ofi-bornean-map-toggle__thumb {
    background: var(--ofi-color-brand-orange);
}

.ofi-bornean-map-status {
    min-height: .92rem;
}

.ofi-bornean-map-secondary-source,
.ofi-bornean-map-secondary-link {
    opacity: .78;
}

/* Keep the source note subordinate to the geography itself. */
.ofi-map-note:not(.ofi-map-note--legend) {
    width: 205px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .82);
    font-size: .6875rem;
    line-height: 1.35;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ofi-map-note:not(.ofi-map-note--legend) strong {
    font-weight: 700;
}

@media (min-width: 901px) {
    /* Let the whole explorer grow with its content instead of creating a
       second scrollbar inside the information rail. */
    .ofi-bornean-map-layout {
        height: auto;
        min-height: 700px;
    }

    .ofi-bornean-map-stage {
        min-height: 700px;
    }

    .ofi-bornean-map-rail {
        height: auto;
        overflow-y: visible;
        border-left-color: #d7d2cc;
    }

    .ofi-bornean-map-rail__facts {
        display: block;
    }

    .ofi-bornean-map-rail__facts > div {
        padding: .85rem 0 1rem;
        border-top-color: rgba(32, 32, 32, .09);
    }

    .ofi-bornean-map-rail__facts dt {
        margin-bottom: .25rem;
    }

    .ofi-bornean-map-rail__facts > [data-ofi-fire-overlay-control] {
        margin-top: 0;
    }
}
