/*
 * Accent-colour fixes on top of the template's style.css (loaded after it).
 *
 * style.css paints the open / active side-menu item with --danger-transparent,
 * a fixed pink (#fde9e9), whatever accent is chosen under Settings > Website
 * Settings > Appearance. Here it is a light tint of the accent itself
 * (the same tint the template already uses on hover), so it follows the setting.
 */
.sidebar {
  --menu-item-active-bg: rgba(var(--primary-rgb), 0.1);
}

/*
 * Main action buttons (.btn-primary) in the TnP 360 logo's orange, #fa5322 to
 * #fd8b03. Independent of the accent colour, which still drives the menu,
 * links and dashboard headers. White on these oranges is below 4.5:1, so the
 * label is bold with a faint shadow to keep it legible.
 */
.btn-primary,
.btn-primary:focus,
.btn-primary:focus-visible {
  color: #fff;
  background-color: #fa5322;
  background-image: linear-gradient(90deg, #fa5322 0%, #fd8b03 100%);
  background-origin: border-box;
  border-color: transparent;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show,
.btn-check:checked + .btn-primary,
.btn-check + .btn-primary:hover,
:not(.btn-check) + .btn-primary:active,
.btn-primary:first-child:active {
  color: #fff;
  background-color: #e8461a;
  background-image: linear-gradient(90deg, #e8461a 0%, #f07c00 100%);
  border-color: transparent;
}
.btn-primary:focus-visible { box-shadow: 0 0 0 0.25rem rgba(250, 83, 34, 0.35); }
.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-image: linear-gradient(90deg, #fa5322 0%, #fd8b03 100%);
  border-color: transparent;
  opacity: 0.55;
}
