﻿/* The site's changes to stock Bootswatch Flatly 5.3.8, which is loaded just before this file in every layout. */

/* Dark-grey links instead of Flatly's teal. Bootstrap 5.3 colours links from the -rgb variables
   (a { color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)) }), so both the hex and the -rgb
   values must be set; overriding only the hex leaves links teal. */
:root {
  --bs-link-color: #222222;
  --bs-link-color-rgb: 34, 34, 34;
  --bs-link-hover-color: #444444;
  --bs-link-hover-color-rgb: 68, 68, 68;
}

/* Keep the top nav's hover/active colours as they were under Flatly 5.2.3 (navy, white brand);
   Flatly 5.3.8 switched them to teal. */
.navbar-dark {
  --bs-navbar-hover-color: #2c3e50;
  --bs-navbar-active-color: #2c3e50;
  --bs-navbar-brand-hover-color: #fff;
}

/* Bootstrap 5.3 paints every table cell with --bs-table-bg (Flatly: the body background), which hides a
   background class set on the row, e.g. OutdoorEngine's red "bg-danger" clash rows (whose cells use
   text-light, so the text vanished). Let such rows' colour show through, as it did in 5.2. */
.table > :not(caption) > tr[class*="bg-"] > * {
  --bs-table-bg: transparent;
}
