/*!
 * bs5-compat.css
 * ---------------------------------------------------------------------------
 * Compatibility layer added when upgrading this theme's core library from
 * Bootstrap 4.1.0 -> Bootstrap 5.3.3 (see media/js/bs5-compat-shim.js for the
 * companion JS shim).
 *
 * Bootstrap 5 dropped a few CSS rules that older markup in this codebase
 * still relies on. Rather than hand-edit every one of the ~65 view files
 * that use these classes, we restore just the handful of declarations that
 * were actually depended on, scoped narrowly so we don't reintroduce any
 * other Bootstrap 4 behavior.
 *
 * Load this AFTER bootstrap.min.css and BEFORE style.css/customize.css so
 * theme overrides still win.
 * ---------------------------------------------------------------------------
 */

/* Bootstrap 4 gave every .form-group a bottom margin; Bootstrap 5 removed
   .form-group entirely in favor of utility classes (mb-3, etc). This app
   uses .form-group across ~65 view files without also adding mb-3, so
   without this rule form fields collapse together with no spacing. */
.form-group {
  margin-bottom: 1rem;
}

/* Bootstrap 5 changed the base link style from no-underline (Bootstrap 4's
   default) to underline-by-default. This theme's style.css only strips the
   underline on specific scoped selectors (nav links, buttons-as-links,
   etc), not globally, because it never had to under Bootstrap 4. Restore
   the old global default so plain links across the app don't suddenly
   show an underline. Class-scoped rules in style.css/customize.css still
   win over this since they're more specific than a bare `a` selector. */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
