/* DECISIONS.md R12-2/R12-4: styles specific to /map2d that map.css doesn't
   already provide. Everything else (mode zone, date picker, tool rail,
   legend, tools) is the shared map.css treatment. */

/* The degraded-quality banner is a full-width overlay pinned to the top of
   the map, so whenever it's showing it would sit on top of the status
   readout and the tool rail's first button. Push both below it. */
.map-page:has(> .map2d-notice-banner:not([hidden])) .map-status {
    top: 56px;
}

.map-page:has(> .map2d-notice-banner:not([hidden])) .map-rail-zone {
    top: 56px;
}

/* The permanent structural badge ("2D solve — no altitude") stays visually
   distinct from the flippable degraded-quality banner below — two separate
   UI elements, two different lifetimes (R12-2 condition 3). */
.map2d-badge-permanent {
    background-color: var(--accent-light);
}

/* Flippable-without-redeploy degraded-quality banner (R12-2 condition 2) —
   deliberately loud (full-width, warning color) since it communicates a real,
   current data-quality risk, not a cosmetic notice. */
.map2d-notice-banner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    padding: 10px 16px;
    background-color: var(--warn);
    color: var(--ink);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Strike click-popup styles: shared `.strike-popup` in map.css (loaded here too). */

/* Per-point geometry quality. 2D-only: the 3D popup has no GDOP row.
   Colours are the *-text status tokens, not the fill tokens — these carry
   text, and amber-as-text measured 1.39:1 against this surface. */
.strike-popup-gdop {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--r-xs);
    padding: 2px 7px;
    border: 1px solid transparent;
}

.strike-popup-gdop-good {
    color: var(--good-text);
    background: color-mix(in srgb, var(--good) 14%, transparent);
    border-color: color-mix(in srgb, var(--good) 32%, transparent);
}

.strike-popup-gdop-fair {
    color: var(--warn-text);
    background: color-mix(in srgb, var(--warn) 16%, transparent);
    border-color: color-mix(in srgb, var(--warn) 34%, transparent);
}

.strike-popup-gdop-weak {
    color: var(--critical-text);
    background: color-mix(in srgb, var(--critical) 14%, transparent);
    border-color: color-mix(in srgb, var(--critical) 32%, transparent);
}

/* Active state for the opt-in GDOP filter in the rail's Filters panel. */
.map-tool.active {
    background: var(--accent-deep);
    color: #fff;
    border-color: var(--accent-deep);
}

/* Day arrows, the weather time bar and the empty-window note are shared by the
   2D map family and live in map.css (2026-10-22). */
