/* app.css: PER APP (parity-fleet.sh declares it per-app). This app's own classes, linked after base.css. Name them
   with the app's prefix so a shared class is never redefined per app, and colour them with the brand variables or
   neutrals only (a community's colour replaces the brand variables on its pages, membership PRD §6i.1). */

/* Dark text on the app's own light-grey dark brand: only where no community colour applies (PRD §6i.1). */
[data-bs-theme="dark"] body:not([data-brand="community"]) .bg-primary,
[data-bs-theme="dark"] body:not([data-brand="community"]) .text-bg-primary,
[data-bs-theme="dark"] body:not([data-brand="community"]) .bg-primary.text-white,
[data-bs-theme="dark"] body:not([data-brand="community"]) .bg-primary .text-white,
[data-bs-theme="dark"] body:not([data-brand="community"]) .sidebar-nav .nav-link.active,
[data-bs-theme="dark"] body:not([data-brand="community"]) .sidebar-nav .nav-link.active:hover,
[data-bs-theme="dark"] body:not([data-brand="community"]) .task-edit-form select[multiple] option:checked {
  color: #111827 !important;
}

::selection {
  background-color: #1f2937;
  color: #fff;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #2b2d31;
  color: #e3e5e8;
  border-color: #9ca3af;
  box-shadow: 0 0 0 0.25rem rgba(156, 163, 175, 0.35);
}

[data-bs-theme="dark"] .editor-wrapper:focus-within {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(156, 163, 175, 0.35) !important;
}
