/* ═══════════════════════════════════════════════════════════════════════════
   brand_select.css — <select> of the views_new pages in the Brand theme. Loaded by partials/brand_theme.php on
   every page, together with modal-select.css / modal-select.js.
     phones (< 900px): the select opens the bottom sheet of modal-select.js — here moved onto the Brand tokens
     desktop:           the normal browser select; its open list follows the theme (light / dark) as far as browsers allow
   Selectors start with html:root so they win over the page stylesheets whatever their load order.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Desktop: normal select, list in the theme colours ── */
html:root { color-scheme: light; }
html:root[data-theme="dark"] { color-scheme: dark; }
html:root select option, html:root select optgroup { background-color: var(--surface); color: var(--text); }
html:root select option:disabled { color: var(--muted); }

/* ── Phones: bottom sheet (modal-select.js) ── */
html:root .msl-overlay.is-open { background: color-mix(in srgb, #000 45%, transparent); }
html:root .msl-sheet { background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-family: var(--font, inherit); }
html:root .msl-sheet__handle::before { background: var(--border-2, var(--border)); }
html:root .msl-sheet__header { border-bottom-color: var(--border); }
html:root .msl-sheet__title { color: var(--text); }
html:root .msl-sheet__close { background: var(--surface-2); color: var(--muted); }
html:root .msl-sheet__close:active { background: var(--surface-3); }
html:root .msl-sheet__search-wrap { background: var(--surface); }
html:root .msl-sheet__search { background-color: var(--surface-2); border-color: var(--border); color: var(--text); border-radius: var(--radius-sm, 8px); }
html:root .msl-sheet__search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
html:root .msl-sheet__search::placeholder { color: var(--muted); }
html:root .msl-sheet__option { color: var(--text); border-radius: 8px; }
html:root .msl-sheet__option:active, html:root .msl-sheet__option.is-hovered { background: var(--surface-2); }
html:root .msl-sheet__option.is-selected { color: var(--primary-2); font-weight: 600; background: color-mix(in srgb, var(--primary) 12%, transparent); }
html:root .msl-sheet__option.is-disabled { color: var(--muted); }
html:root .msl-sheet__empty { color: var(--muted); }
