/* ═══════════════════════════════════════════════════════════════════════════
   COLOUR THEMES (2026-09-30) — the palette button in the top bar, its menu, and the wordmark switch for the
   light menus. Each theme's colours are in themes/<slug>.css (generated by gen_themes.php), light mode only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* the wordmark: paper letters on a dark menu, ink letters on a light one (Apricot, Sunflower, Rose) */
body:not(.qb-rail-light) aside.navbar-vertical lottie-player.qb-logo-ink,
body.theme-dark aside.navbar-vertical lottie-player.qb-logo-ink { display: none !important; }
body.qb-rail-light:not(.theme-dark) aside.navbar-vertical lottie-player.qb-logo-paper { display: none !important; }

/* the menu */
.qb-theme-menu { width: 316px; max-width: calc(100vw - 24px); padding: 12px !important; border-radius: 14px !important; }
.qb-theme-menu-title { margin: 0 6px 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 700; }
.qb-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.qb-theme-swatch { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 13px; line-height: 1.2; text-align: start; cursor: pointer; }
.qb-theme-swatch:hover { background: rgba(127, 127, 127, 0.1); }
.qb-theme-swatch:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.qb-theme-swatch[aria-pressed="true"] { border-color: currentColor; font-weight: 600; }
.qb-theme-chip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-shrink: 0; width: 24px; height: 24px; overflow: hidden; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.qb-theme-note { margin: 10px 6px 2px; font-size: 12px; line-height: 1.4; opacity: 0.72; }

/* the Theme button (2026-09-30): dark mode + colour theme in one; just a chip in the member's colours, the same square as the globe */
.qb-theme-trigger .qb-theme-chip { width: 16px; height: 16px; border-radius: 50%; } /* = the globe icon's drawn circle */

.qb-mode-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 2px 14px; padding: 4px; border-radius: 12px; background: rgba(127, 127, 127, 0.13); }
.qb-mode { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 9px; color: inherit !important; font-size: 14px; text-decoration: none !important; opacity: 0.72; }
.qb-mode:hover, .qb-mode:focus-visible { opacity: 1; }
body:not(.theme-dark) .qb-mode-light,
body.theme-dark .qb-mode-dark { background: #FFFFFF; color: #101C19 !important; font-weight: 600; opacity: 1; box-shadow: 0 0 0 1px rgba(16, 28, 25, 0.12); }
.qb-theme-sub { margin: 0 6px 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.66; }
