/*
 * Drive assist (FSD (Supervised)), issues #378 and #402: the ONE definition of how an FSD
 * (Supervised) figure looks, so the trip analysis header and every Journeys page (owner and
 * public) read the same (owner 2026-10-24: Journeys FSD colours exactly as trip details).
 *
 * Linked by App.razor and by PublicJourneyShell (served there under /j/assets/css/, so it obeys the
 * public page's CSP: no @import, no url()). Colours are the --cailo-assist tokens in tokens.css only;
 * light theme only (D-V2-4).
 */

/* An FSD (Supervised) figure: violet words with a short violet bar before them. The non-colour cue
   is the word itself. On a light surface the words take the text token and the bar the core violet. */
.fsd-figure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cailo-assist-text);
}

.fsd-figure::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--cailo-assist);
}

/* On a dark surface: the trip analysis header (#1A2332). */
.fsd-figure.on-dark {
    color: var(--cailo-assist-on-dark);
}

.fsd-figure.on-dark::before {
    background: var(--cailo-assist-on-dark);
}

/* The FSD (Supervised) map legend (drive-assist-overlay.js), on trip details and both journey maps.
   These rules used to be injected as an inline <style>, which the public page's CSP blocks. */
.cda-legend {
    background: var(--cailo-assist-legend-bg);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 2px 12px var(--cailo-assist-legend-shadow);
    font-family: var(--cailo-font-family-body);
    font-size: 11px;
    color: var(--cailo-assist-legend-text);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Never takes a click. Two classes, so it outranks Leaflet's .leaflet-control, which the public
   page links after this file. */
.leaflet-control.cda-legend {
    pointer-events: none;
}

.cda-lg {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cda-lg svg {
    flex-shrink: 0;
}
