/*
  Bootstrap 5 compatibility for older page markup.
  Added Nov 2026 when the site moved from Bootstrap 3.3.7 / 4.1.3 to 5.3.9.
  Bootstrap 5 dropped these classes; older pages still use them.
  Pure CSS: no JavaScript, nothing here is a security concern.
*/

/* ---- Keep the site's existing look ------------------------------------
   The old pages loaded Bootstrap 3.3.7 and then a locally edited Bootstrap
   4.1.3 together. These rules reproduce what that mix produced, so moving
   to Bootstrap 5 does not change sizes, colours or spacing. */

/* Bootstrap 3 set a 10px root size; all rem-based sizes on the site assume it */
html { font-size: 10px; }

/* Bootstrap 4 colour variables (some page stylesheets use var(--teal) etc.;
   the old Bootstrap file redefined them after the page's own CSS) */
:root {
  --blue: #007bff; --indigo: #6610f2; --purple: #6f42c1; --pink: #e83e8c; --red: #dc3545;
  --orange: #fd7e14; --yellow: #ffc107; --green: #28a745; --teal: #20c997; --cyan: #17a2b8;
  --white: #fff; --gray: #6c757d; --gray-dark: #343a40; --primary: #007bff; --secondary: #6c757d;
  --success: #28a745; --info: #17a2b8; --warning: #ffc107; --danger: #dc3545; --light: #f8f9fa; --dark: #343a40;
  --breakpoint-xs: 0; --breakpoint-sm: 576px; --breakpoint-md: 768px; --breakpoint-lg: 992px; --breakpoint-xl: 1200px;
}

/* Bootstrap 4 fixed heading sizes (Bootstrap 5 scales them with window width below 1200px) */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }
/* Bootstrap 3 margins for the heading classes (Bootstrap 4 only zeroed the heading elements) */
.h1, .h2, .h3 { margin-top: 20px; }
.h4, .h5, .h6 { margin-top: 10px; }

/* Browser-default list indent (Bootstrap 5 reduces it to 2rem) */
ol, ul { padding-left: 40px; }

/* Bootstrap 4 horizontal rule */
hr { color: gray; opacity: 1; height: 0; overflow: visible; margin: 1rem 0; border: 0; border-top: 1px solid rgba(0, 0, 0, .1); }

/* Bootstrap 4 links: not underlined until hover */
a { color: #007bff; text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }

/* Bootstrap 4 gutters were 30px; Bootstrap 5 uses 1.5rem (15px at a 10px root) */
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl,
.row { --bs-gutter-x: 30px; }
@media (min-width: 1400px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1140px; }
}

/* Local edits that were made inside the site's copy of bootstrap.css 4.1.3 */
.container-fluid { padding-right: 100px; padding-left: 100px; }
.navbar-brand { font-size: 2rem; }
.carousel-item { transition-duration: .9s; }
.bg-warning { background-color: #d8b030 !important; }
.bg-danger { background-color: #074889 !important; }
.bg-dark { background-color: #f4f4f4 !important; }
.text-info { color: #d8b030 !important; }
.text-footer { color: #27408b !important; }
/* The site removed Bootstrap 4's .btn-primary, so its edited Bootstrap 3 one showed through */
.btn-primary { color: #fff; background-color: #eff5fa; border-color: #2e6da4; }
.btn-primary:hover, .btn-primary:focus { color: #fff; background-color: #286090; border-color: #204d74; }

/* Local edits that were made inside the site's copy of bootstrap.min.css 3.3.7 */
.navbar-inverse .navbar-text { color: #000056; }

/* Bootstrap 3 base rules that Bootstrap 4 did not override */
td, th { padding: 0; }
button, input, optgroup, select, textarea { color: inherit; font-style: inherit; font-weight: inherit; }
/* Bootstrap 4 kept the native look of <select class="form-control">; Bootstrap 5 removes it */
select.form-control { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; }
label { display: inline-block; max-width: 100%; margin-bottom: .5rem; font-weight: 700; }
.navbar { margin-bottom: 20px; }
/* Bootstrap 4: a navbar's container loses its side padding while the navbar is collapsed */
.navbar-expand > .container, .navbar-expand > .container-fluid { padding-right: 0; padding-left: 0; }
@media (max-width: 575.98px) { .navbar-expand-sm > .container, .navbar-expand-sm > .container-fluid { padding-right: 0; padding-left: 0; } }
@media (max-width: 767.98px) { .navbar-expand-md > .container, .navbar-expand-md > .container-fluid { padding-right: 0; padding-left: 0; } }
@media (max-width: 991.98px) { .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { padding-right: 0; padding-left: 0; } }
@media (max-width: 1199.98px) { .navbar-expand-xl > .container, .navbar-expand-xl > .container-fluid { padding-right: 0; padding-left: 0; } }
.navbar-dark .navbar-toggler { color: rgba(255, 255, 255, .5); }
/* Carousel indicators are a list; Bootstrap 5.3 expects buttons and no longer hides list numbers */
.carousel-indicators { list-style: none; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.navbar-collapse { padding-right: 15px; padding-left: 15px; }

/* Bootstrap 4 defaults that Bootstrap 5 changed */
.navbar { --bs-navbar-padding-x: 1rem; }
.card { color: inherit; }

/* Bootstrap 4 tables: transparent, inherit text colour, padding on cells.
   (Bootstrap 5 paints a white background and black text, and its selector
   also hits rows when a page wraps a table in <div class="table">.) */
.table > :not(caption) > * > * { padding: 0; color: inherit; background-color: transparent; border-bottom-width: 0; box-shadow: none; }
.table td, .table th { padding: .75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.table-bordered, .table-bordered td, .table-bordered th { border: 1px solid #dee2e6; }
.table-bordered thead td, .table-bordered thead th { border-bottom-width: 2px; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, .05); }
/* ...but for plain table > tbody > tr > td markup, Bootstrap 3's more specific rules won */
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th,
.table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd; }
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; }
.table tbody + tbody { border-top: 2px solid #dee2e6; }
.table-bordered { border: 1px solid #ddd; }
.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #ddd; }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; }
.table-dark { color: #fff; background-color: #212529; }
.table-dark td, .table-dark th { border-color: #32383e; }

/* Old-style HTML table borders (<table rules="all">, <table border="1">).
   Bootstrap 5's base styles set every cell border to 0, which hid these grid lines. */
table[rules="all" i] td, table[rules="all" i] th { border: 1px solid; }
table[border]:not([border="0"]) td, table[border]:not([border="0"]) th { border: 1px inset; }
table[bordercolor="#000000"]:not([border="0"]) td, table[bordercolor="#000000"]:not([border="0"]) th { border-color: #000; }

/* Bootstrap 4 left name-only anchors (<a name="top">) uncoloured */
a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }

/* Bootstrap 4 grid capped columns with max-width. Some pages also load an
   old Bootstrap 3 grid (E-Resources header) whose widths would otherwise win. */
@media (min-width: 576px) {
  .col-sm-1 { max-width: 8.333333%; } .col-sm-2 { max-width: 16.666667%; } .col-sm-3 { max-width: 25%; }
  .col-sm-4 { max-width: 33.333333%; } .col-sm-5 { max-width: 41.666667%; } .col-sm-6 { max-width: 50%; }
  .col-sm-7 { max-width: 58.333333%; } .col-sm-8 { max-width: 66.666667%; } .col-sm-9 { max-width: 75%; }
  .col-sm-10 { max-width: 83.333333%; } .col-sm-11 { max-width: 91.666667%; } .col-sm-12 { max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { max-width: 8.333333%; } .col-md-2 { max-width: 16.666667%; } .col-md-3 { max-width: 25%; }
  .col-md-4 { max-width: 33.333333%; } .col-md-5 { max-width: 41.666667%; } .col-md-6 { max-width: 50%; }
  .col-md-7 { max-width: 58.333333%; } .col-md-8 { max-width: 66.666667%; } .col-md-9 { max-width: 75%; }
  .col-md-10 { max-width: 83.333333%; } .col-md-11 { max-width: 91.666667%; } .col-md-12 { max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { max-width: 8.333333%; } .col-lg-2 { max-width: 16.666667%; } .col-lg-3 { max-width: 25%; }
  .col-lg-4 { max-width: 33.333333%; } .col-lg-5 { max-width: 41.666667%; } .col-lg-6 { max-width: 50%; }
  .col-lg-7 { max-width: 58.333333%; } .col-lg-8 { max-width: 66.666667%; } .col-lg-9 { max-width: 75%; }
  .col-lg-10 { max-width: 83.333333%; } .col-lg-11 { max-width: 91.666667%; } .col-lg-12 { max-width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-1 { max-width: 8.333333%; } .col-xl-2 { max-width: 16.666667%; } .col-xl-3 { max-width: 25%; }
  .col-xl-4 { max-width: 33.333333%; } .col-xl-5 { max-width: 41.666667%; } .col-xl-6 { max-width: 50%; }
  .col-xl-7 { max-width: 58.333333%; } .col-xl-8 { max-width: 66.666667%; } .col-xl-9 { max-width: 75%; }
  .col-xl-10 { max-width: 83.333333%; } .col-xl-11 { max-width: 91.666667%; } .col-xl-12 { max-width: 100%; }
}
/* A stray empty link inside a .row must not take a full line (Bootstrap 5 sizes every .row child) */
.row > a:not([class*="col"]) { width: auto; padding-right: 0; padding-left: 0; }

/* Bootstrap 3 tabs look (orange active tab) for <ul class="nav nav-tabs"> */
.nav-tabs .nav-link { padding: 10px 15px; }
.nav-tabs .nav-link.h3 { margin-bottom: 10px; }
.nav-tabs .nav-item .nav-link.active { color: #f66606; background: #eee; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; }

/* Navbar as the old Bootstrap 3 + edited Bootstrap 4 mix rendered it */
.navbar-nav { font-size: 14px; }
.navbar { min-height: 50px; border: 1px solid transparent; }
@media (min-width: 768px) { .navbar { border-radius: 4px; } }
.navbar-brand { float: left; height: 50px; padding-left: 15px; padding-right: 15px; padding-top: .3125rem; padding-bottom: .3125rem; margin-right: 1rem; font-size: 1.25rem; line-height: inherit; }
.navbar-brand > img { display: block; }
@media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } }
.navbar-nav { margin: 7.5px -15px 0; }
.navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
@media (min-width: 768px) {
  .navbar-nav { margin: 0; }
  .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
}
.navbar-expand-lg .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
/* Bootstrap 4 navbar colours (beat the site's a:link rule like they used to) */
.navbar-dark .navbar-brand, .navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { color: #fff; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, .5); }
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { color: rgba(255, 255, 255, .75); }
.navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .nav-link.show { color: #fff; }
.navbar-light .navbar-brand, .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { color: rgba(0, 0, 0, .9); }
.navbar-light .navbar-nav .nav-link { color: rgba(0, 0, 0, .5); }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { color: rgba(0, 0, 0, .7); }
.navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .nav-link.show { color: rgba(0, 0, 0, .9); }

/* Bootstrap 4 .table-responsive made the element itself a full-width scrolling block */
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > .table-bordered { border: 0; }
/* Bootstrap 4 colour utilities and buttons (Bootstrap 5 changed several shades) */
.text-primary { color: #007bff !important; }
.text-success { color: #28a745 !important; }
.text-dark { color: #343a40 !important; }
.bg-primary { background-color: #007bff !important; }
.bg-success { background-color: #28a745 !important; }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-success:hover { color: #fff; background-color: #218838; border-color: #1e7e34; }
.btn-info { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }
.btn-info:hover { color: #fff; background-color: #138496; border-color: #117a8b; }
.btn-danger:hover { background-color: #c82333; border-color: #bd2130; }
.btn-secondary:hover { background-color: #5a6268; border-color: #545b62; }
.btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; }
.btn { border-radius: .25rem; }
.form-control { border-color: #ced4da; border-radius: .25rem; color: #495057; }
.bg-info { background-color: #17a2b8 !important; }

/* Bootstrap 3/4 padded every grid column, even outside a .row */
.col, .col-auto, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-sm, .col-sm-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md, .col-md-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg, .col-lg-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-xl, .col-xl-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 { position: relative; padding-right: 15px; padding-left: 15px; }
/* Bootstrap 4 .text-muted (Bootstrap 5.3 uses a translucent grey) */
.text-muted { color: #6c757d !important; }

/* ---- Classes Bootstrap 5 dropped -------------------------------------- */

/* Bootstrap 3/4 screen-reader class (Bootstrap 5 calls it .visually-hidden) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Bootstrap 3 panels */
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-default { border-color: #ddd; }
.panel-primary { border-color: #337ab7; }
.panel-heading {
  font-size: 16px;
  color: #e6ae55;
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; }
.panel-body { padding: 15px; background-color: #f7f7f7; }
.panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: #e6ae55; }
.panel > .table-responsive { margin-bottom: 0; border: 0; }
.panel > .table, .panel > .table-responsive > .table { margin-bottom: 0; }
/* Bootstrap 3 clearfix on block containers (keeps child margins inside) */
.container::before, .container::after, .container-fluid::before, .container-fluid::after,
.panel-body::before, .panel-body::after, .clearfix::before, .clearfix::after { content: " "; display: table; }
.container::after, .container-fluid::after, .panel-body::after, .clearfix::after { clear: both; }
.panel-info > .panel-heading { color: #31708f; background-color: #def2ff; border-color: #bce8f1; }

/* Bootstrap 3/4 helpers renamed in Bootstrap 5 */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.float-left { float: left !important; }
.float-right { float: right !important; }
.form-group { margin-bottom: 1rem; }
.btn-block { display: block; width: 100%; }
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus { color: #333; background-color: #e6e6e6; border-color: #adadad; }

/* Bootstrap 3 nav-tabs used <li class="active"> */
.nav-tabs > li > a { display: block; padding: .5rem 1rem; }
