/* 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). */

:root,
[data-bs-theme="light"] {
  --ochre: #d97706;
  --ochre-text: #1f1300;
}

[data-bs-theme="dark"] {
  --ochre: #fbbf24;
  --ochre-text: #1f1300;
}

.btn-ochre {
  --bs-btn-color: var(--ochre-text);
  --bs-btn-bg: var(--ochre);
  --bs-btn-border-color: var(--ochre);
  --bs-btn-hover-color: var(--ochre-text);
  --bs-btn-hover-bg: var(--ochre);
  --bs-btn-hover-border-color: var(--ochre);
  --bs-btn-active-color: var(--ochre-text);
  --bs-btn-active-bg: var(--ochre);
  --bs-btn-active-border-color: var(--ochre);
  --bs-btn-focus-shadow-rgb: 217, 119, 6;
}

.btn-ochre:hover { filter: brightness(0.94); }

.constraint-rule {
  border-left: 2px solid var(--ochre);
  padding-left: 1rem;
}

.pull-quote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
}

[data-bs-theme="dark"] .pull-quote { border-left-color: var(--brand-bright); }

.journal {
  line-height: 1.8;
}

::selection {
  background-color: var(--brand);
  color: #fff;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #2b2d31;
  color: #e3e5e8;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-bright-rgb), 0.25);
}
