/* ==========================================================================
   Brand overrides for Bootstrap 5.1.3 (loaded from the CDN in inc/scripts.php).
   Bootstrap hard-codes its blue (#0d6efd / #0a58ca) with no CSS variables, so it
   can only be overridden. Enqueued AFTER Bootstrap. Brand navy: #2A3654.
   See docs/bootstrap-audit.md for why Bootstrap is still loaded.
   ========================================================================== */

:root { --ti-brand-navy: #2A3654; --ti-brand-navy-deep: #1D2640; }

/* Links */
a,
a:hover,
a:focus,
.link-primary,
.link-primary:hover,
.link-primary:focus,
.btn-link,
.btn-link:hover,
.nav-link,
.nav-link:hover,
.nav-link:focus,
.page-link,
.page-link:hover,
.page-link:focus { color: var(--ti-brand-navy); }

/* Filled components */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled,
.progress-bar,
.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate,
.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.page-item.active .page-link,
.list-group-item.active {
  background-color: var(--ti-brand-navy);
  border-color: var(--ti-brand-navy);
}
.btn-primary,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.page-item.active .page-link { color: #fff; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active { background-color: var(--ti-brand-navy-deep); border-color: var(--ti-brand-navy-deep); color: #fff; }

/* Outline button */
.btn-outline-primary { color: var(--ti-brand-navy); border-color: var(--ti-brand-navy); }
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active { color: #fff; background-color: var(--ti-brand-navy); border-color: var(--ti-brand-navy); }
.btn-outline-primary:disabled,
.btn-outline-primary.disabled { color: var(--ti-brand-navy); }

/* Borders and focus rings that use the blue */
.border-primary { border-color: var(--ti-brand-navy) !important; }
.form-control:focus,
.form-select:focus { border-color: var(--ti-brand-navy); box-shadow: 0 0 0 .25rem rgba(42, 54, 84, .25); }
.form-check-input:focus { border-color: var(--ti-brand-navy); box-shadow: 0 0 0 .25rem rgba(42, 54, 84, .25); }
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-link:focus { box-shadow: 0 0 0 .25rem rgba(42, 54, 84, .35); }
.page-link:focus { box-shadow: 0 0 0 .25rem rgba(42, 54, 84, .25); }
