/*
 * Bootstrap 3 look on Bootstrap 5
 * --------------------------------
 * The site was designed on Bootstrap 3.3. Bootstrap 5 changes the default
 * type sizes, spacing, container widths and component styles. This file
 * puts the Bootstrap 3 values back so the design stays the same, while the
 * pages use Bootstrap 5 markup and JavaScript.
 *
 * Load order: bootstrap.min.css, then this file, then custom.css.
 * Breakpoints are unchanged from Bootstrap 3: 768px, 992px and 1200px
 * (Bootstrap 5's md, lg and xl).
 */

/* Base type and links */
:root {
  --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.42857143;
  --bs-body-color: #333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-link-color: #337ab7;
  --bs-link-color-rgb: 51, 122, 183;
  --bs-link-hover-color: #23527c;
  --bs-link-hover-color-rgb: 35, 82, 124;
  --bs-border-color: #ddd;
}

a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.nav-link:hover, .nav-link:focus,
.dropdown-item:hover, .dropdown-item:focus,
.navbar-brand:hover, .navbar-brand:focus,
.btn:hover, .btn:focus,
.carousel-control:hover, .carousel-control:focus { text-decoration: none; }

p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: 40px; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
small, .small { font-size: 85%; }
hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; color: #eee; opacity: 1; }
iframe { border: revert; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit;
}
h1, h2, h3, .h1, .h2, .h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6, .h4, .h5, .h6 { margin-top: 10px; margin-bottom: 10px; }
h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
  font-weight: 400; line-height: 1; color: #777;
}
h1 small, h2 small, h3 small { font-size: 65%; }
h4 small, h5 small, h6 small { font-size: 75%; }

.text-muted { color: #777 !important; }

.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; }

/* Grid: Bootstrap 3 container widths and 30px gutters */
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
@media (min-width: 576px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }
.row > [class*="col"] { position: relative; min-height: 1px; }
/* In Bootstrap 3 anything inside a row that is not a column had no side padding */
.row > :not([class*="col"]):not([class*="offset"]) { padding-left: 0; padding-right: 0; }

/* Buttons */
.btn {
  --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.42857143; --bs-btn-border-radius: 4px; --bs-btn-font-weight: 400;
  white-space: nowrap;
}
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }

/* Caret and the two Glyphicons the site uses (font files are in /fonts) */
.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;
}
.dropdown-toggle::after { display: none; }

@font-face {
  font-family: "Glyphicons Halflings";
  src: url("../fonts/glyphicons-halflings-regular.woff2") format("woff2"),
       url("../fonts/glyphicons-halflings-regular.woff") format("woff"),
       url("../fonts/glyphicons-halflings-regular.ttf") format("truetype");
}
.glyphicon {
  position: relative; top: 1px; display: inline-block; font-family: "Glyphicons Halflings";
  font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased;
}
.glyphicon-chevron-left:before { content: "\e079"; }
.glyphicon-chevron-right:before { content: "\e080"; }

/* Navbar */
.navbar {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start;
  min-height: 50px; margin-bottom: 20px; padding: 0; border: 1px solid transparent;
}
.navbar > .container { align-items: flex-start; }
.navbar-header { display: flex; align-items: flex-start; flex: 1 1 100%; }
.navbar-brand {
  display: block; height: 50px; padding: 15px; margin-right: 0;
  font-size: 18px; line-height: 20px; color: #777; white-space: normal;
}
.navbar-toggle.navbar-toggler {
  margin: 8px 15px 8px auto; padding: 9px 10px; font-size: inherit; line-height: inherit;
  color: inherit; background: transparent; border: 1px solid transparent; border-radius: 4px;
}
.navbar-toggle.navbar-toggler:focus { box-shadow: none; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-collapse { padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; }
.navbar .navbar-nav { margin: 7.5px -15px; }
.navbar .navbar-nav .nav-link { padding: 10px 15px; line-height: 20px; }
.navbar .navbar-nav .nav-link.active { color: inherit; }
.navbar-nav .dropdown-menu { top: 100%; }

/* Bootstrap 3 colours */
.navbar-default .navbar-brand, .navbar-default .navbar-nav .nav-link { color: #777; }
.navbar-default .navbar-nav .nav-link:hover, .navbar-default .navbar-nav .nav-link:focus,
.navbar-default .navbar-nav .show > .nav-link { color: #333; background: transparent; }
.navbar-default .navbar-collapse { border-color: #e7e7e7; }
.navbar-inverse { background-color: #222; border-color: #080808; }
.navbar-inverse .navbar-brand, .navbar-inverse .navbar-nav .nav-link { color: #9d9d9d; }
.navbar-inverse .navbar-nav .nav-link:hover, .navbar-inverse .navbar-nav .nav-link:focus { color: #fff; }
.navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; }
.navbar-inverse .navbar-collapse { border-color: #101010; }
.navbar.fixed-top { border-width: 0 0 1px; }

/* Phone menu: dropdowns open inline, as in Bootstrap 3 */
@media (max-width: 767.98px) {
  .container > .navbar-header, .container > .navbar-collapse { margin-right: -15px; margin-left: -15px; }
  .navbar-nav .dropdown-menu {
    position: static; float: none; width: auto; margin-top: 0;
    background-color: transparent; border: 0; box-shadow: none;
  }
  .navbar-nav .dropdown-menu .dropdown-item { padding: 5px 15px 5px 25px; line-height: 20px; }
  .navbar-default .navbar-nav .dropdown-menu .dropdown-item { color: #777; }
}

@media (min-width: 768px) {
  .navbar { border-radius: 4px; }
  .navbar.fixed-top { border-radius: 0; }
  .navbar-header { flex: 0 0 auto; }
  .navbar > .container .navbar-brand { margin-left: -15px; }
  .navbar-toggle.navbar-toggler { display: none; }
  .navbar-collapse { border-top: 0; }
  .navbar .navbar-nav { margin: 0; }
  .navbar .navbar-nav.navbar-right { margin-right: -15px; }
  .navbar .navbar-nav .nav-link { padding: 15px; }
  .navbar-right .dropdown-menu { right: 0; left: auto; }
  .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
}

/* Dropdown menus */
.dropdown-menu {
  --bs-dropdown-min-width: 160px; --bs-dropdown-padding-y: 5px; --bs-dropdown-spacer: 2px;
  --bs-dropdown-font-size: 14px; --bs-dropdown-color: #333;
  --bs-dropdown-border-color: rgba(0, 0, 0, .15); --bs-dropdown-border-radius: 4px;
  --bs-dropdown-item-padding-x: 20px; --bs-dropdown-item-padding-y: 3px;
  --bs-dropdown-link-color: #333; --bs-dropdown-link-hover-color: #262626; --bs-dropdown-link-hover-bg: #f5f5f5;
  --bs-dropdown-link-active-color: #fff; --bs-dropdown-link-active-bg: #337ab7;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.dropdown-item { line-height: 1.42857143; }

/* Carousel: Bootstrap 3 controls, dot indicators and caption spacing */
.carousel-control { font-size: 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.carousel-control .glyphicon { font-size: 20px; width: 20px; height: 20px; }
.carousel-indicators {
  position: absolute; bottom: 10px; left: 50%; right: auto; z-index: 15; display: block;
  width: 60%; max-width: none; margin: 0 0 0 -30%; padding: 0; text-align: center; list-style: none;
}
.carousel-indicators [data-bs-target] {
  display: inline-block; box-sizing: border-box; flex: none; width: 10px; height: 10px; margin: 1px;
  padding: 0; text-indent: -999px; cursor: pointer; background-color: transparent;
  border: 1px solid #fff; border-radius: 10px; opacity: 1;
}
.carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #fff; }
@media (min-width: 768px) {
  .carousel-control .glyphicon { font-size: 30px; width: 30px; height: 30px; }
  .carousel-caption { padding-bottom: 30px; }
  .carousel-indicators { bottom: 20px; }
}

/* Bootstrap 3 left <button class="btn"> with the browser's grey button colour */
button.btn { --bs-btn-bg: ButtonFace; --bs-btn-color: #333; }

/* Columns placed directly inside another column (no row) kept their 15px padding in Bootstrap 3 */
:not(.row) > [class^="col-"], :not(.row) > [class*=" col-"] { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
/* ...and, as in Bootstrap 3, only floated from their own breakpoint up */
:not(.row) > :is(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12) { float: left; }
@media (min-width: 768px) { :not(.row) > [class*="col-md-"] { float: left; } }
@media (min-width: 992px) { :not(.row) > [class*="col-lg-"] { float: left; } }
@media (min-width: 1200px) { :not(.row) > [class*="col-xl-"] { float: left; } }

/*
 * Below a column's breakpoint, Bootstrap 3 columns were ordinary stacked blocks,
 * so the space between a paragraph and the next heading collapsed into one gap.
 * Bootstrap 5 rows are always flexbox, which adds the two gaps together.
 * These rules make a row behave like a plain block until one of its columns
 * actually sits side by side, which keeps the original spacing.
 */
@media (max-width: 767.98px) {
  .row:not(:has(> :is(.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12))) { display: flow-root; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .row:not(:has(> :is(.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, [class*="col-md-"]))) { display: flow-root; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .row:not(:has(> :is(.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, [class*="col-md-"], [class*="col-lg-"]))) { display: flow-root; }
}

/*
 * Navbar with a .container inside it (inc/nav.html): in Bootstrap 3 the
 * menu's clearfix cleared the floated header, so the header's bottom margin
 * added to the bar's height, which a flex container does not do.
 */
@media (min-width: 768px) {
  .navbar > .container:has(> .navbar-header + .navbar-collapse) { padding-bottom: 20px; }
}

/* Bootstrap 3 made every slide image responsive, even without .img-responsive */
.carousel-inner > .carousel-item > a > img, .carousel-inner > .carousel-item > img {
  display: block; max-width: 100%; height: auto; line-height: 1;
}
