/* =====================================================================
   a11y.css - accessibility styles (WCAG 2.2 AA)
   Loaded after style.css / camera.css so that it overrides them.
   Each block names the WCAG success criterion it covers.
   ===================================================================== */

/* ---- 2.4.1 Bypass Blocks: "Skip to main content" link ---------------- */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10000;
  background: #b32d31;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}
main:focus {
  outline: none;
}

/* ---- text that is only for screen readers ----------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 2.4.7 / 1.4.11 visible focus indicator ---------------------------
   White ring + red halo is visible on the light header and on the dark
   content/footer areas (both parts reach 3:1 against their background). */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus,
#toTop:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #b32d31;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ---- 1.4.3 Contrast (minimum) -----------------------------------------
   Old body text #7a7a7a on #232323 = 3.5:1, on #373737 = 2.7:1.
   #c4c4c4 gives 8.9:1 on #232323, 6.9:1 on #373737, 6.6:1 on #393939. */
body {
  color: #c4c4c4;
}
aside li a {
  color: #c4c4c4;
}
aside li a:hover,
aside li a:focus {
  color: #ffffff;
}
.nav-collapse_ .nav ul li a {
  color: #d6d6d6;                 /* was #5f5f5f on #2e2e2e = 2.1:1, now 9:1 */
}
@media (max-width: 767px) {
  .nav-collapse_ .nav li a {
    color: #d6d6d6;               /* mobile menu items */
  }
}
.contact-form .error,
.contact-form .empty {
  color: #ffb3ad;                 /* was #9d261d on #232323 = 2.2:1, now 8.3:1 */
}

/* 1.4.3 / 1.4.11 contact-form fields: text was #7a7a7a on #393939 (2.7:1) */
.contact-form input,
.contact-form textarea {
  color: #f0f0f0;
  background-color: #393939;
  border: 1px solid #8a8a8a;
}
/* 1.4.1 links inside running text are underlined, not identified by colour alone */
main p a,
main address a,
main td a,
main blockquote a,
footer p a {
  text-decoration: underline;
}

/* ---- 2.4.6 / 1.3.1 heading structure -----------------------------------
   The logo is no longer an <h1>; every page has one visible <h1>
   (.page-title) and the former <h4>/<h5> section titles are <h2>
   elements that keep the old look through the .h4 / .h5 classes. */
.navbar_ .brand {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-transform: none;
  float: left;
}
.page-title {
  font-size: 26px;
  margin: 75px 0 23px 0;
}
.page-title-home {
  margin: 30px 0 20px 0;
}
.page-index .numeral-list {
  margin-top: 0;
}
.h4 {
  font-size: 22px;
  margin: 75px 0 23px 0;
}
.h4.indent-1 {
  margin: 33px 0 22px 0;
}
.h4.indent-2 {
  margin: 35px 0 21px 0;
}
.h5 {
  font-size: 18px;
}
.h5 > span {
  display: block;
  margin-top: -4px;
}
.numeral-list li .h5 {
  margin: 2px 0 0 0;
}
.numeral-list li .h5 > span {
  display: inline;
}
@media (min-width: 1200px) {
  .numeral-list li .h5 > span {
    display: block;
    margin-top: -4px;
  }
}
.faq-q {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: none;
  color: #ffffff;
  line-height: 18px;
  margin: 18px 0 6px 0;
}
.list-testimonials li .author {
  float: right;
  display: inline-block;
  font-size: 12px;
  color: #ffffff;
}
.list-plain {
  list-style: none;
  margin: 0 0 18px 0;
}

/* ---- 2.4.4 "read more" links on the home page --------------------------
   They used to appear on mouse hover only; now they also appear when the
   link (or anything in the box) has keyboard focus. */
.numeral-list li a:focus,
.numeral-list li:focus-within a {
  display: block;
}

/* ---- 2.1.1 / 4.1.2 mobile menu toggle is now a <button> ---------------- */
.navbar_ button.btn-navbar {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
@media (max-width: 767px) {
  /* a collapsed menu is removed from the tab order (not just 0px high) */
  .nav-collapse_.collapse:not(.in):not(.collapsing) {
    visibility: hidden;
  }
}

/* ---- 2.2.2 Pause, Stop, Hide: home-page slider ------------------------- */
.slider .span12 {
  position: relative;
}
.slider-pause {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1001;
  background: #232323;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
}
.slider-pause:hover {
  background: #b32d31;
}
.camera_commands {
  display: none !important;       /* the plugin's own mouse-only play/stop icons */
}
.camera_prev:focus,
.camera_next:focus {
  outline: 3px solid #ffffff;
  box-shadow: 0 0 0 6px #b32d31;
}
@media (prefers-reduced-motion: reduce) {
  .camera_caption.fadeIn,
  .camera_caption.fadeIn > div {
    -webkit-animation: none !important;
    animation: none !important;
  }
}

/* ---- 3.3.1 / 3.3.2 / 4.1.2 / 4.1.3 contact form ------------------------ */
button.link {
  background: none;
  border: 0;
  padding: 0;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  display: inline-block;
  margin-top: 31px;
}
.form-404 input {
  color: #f0f0f0;
  background-color: #393939;
  border: 1px solid #8a8a8a;
}
.form-404 button.btn {
  float: right;
  margin: 0;
  cursor: pointer;
}
button.link:hover {
  text-decoration: underline;
}
.contact-form .form-note {
  margin: 0 0 12px 0;
}
.contact-form .field {
  margin: 0 0 16px 0;
  overflow: hidden;
}
.contact-form label {
  display: block;
  min-height: 0;
  overflow: visible;
  width: auto;
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
}
.contact-form input {
  float: none;
  display: block;
}
.contact-form textarea {
  float: none;
  display: block;
  height: 180px;
}
.contact-form .error {
  display: none;
  float: none;
  margin: 5px 0 0 0;
  font-size: 12px;
  line-height: 16px;
  min-width: 0;
}
.contact-form .error.is-visible {
  display: block;
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border: 2px solid #ffb3ad;
}
.contact-form .form-summary {
  display: none;
  background: #3b1a1a;
  border: 2px solid #ffb3ad;
  color: #ffffff;
  padding: 10px 14px;
  margin: 0 0 16px 0;
}
.contact-form .form-summary.is-visible {
  display: block;
}
.contact-form .form-summary p {
  margin: 0;
}
.contact-form .form-summary ul {
  margin: 6px 0 0 18px;
}
.contact-form .form-summary a {
  color: #ffb3ad;
  text-decoration: underline;
}
.contact-form .success {
  display: none;
  color: #ffffff;
  background: #1f3b1f;
  border: 2px solid #9be29b;
  padding: 10px 14px;
  margin: 0 0 16px 0;
}
.contact-form .pull-right .link {
  margin: 10px 0 0 20px;
}

/* ---- 1.4.10 Reflow / 1.3.1 data tables on the contact page ------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.data-table caption {
  color: #ffffff;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  padding: 0 0 8px 0;
  font-family: "Times New Roman", Times, serif;
  text-transform: uppercase;
}
.data-table th,
.data-table td {
  border: 1px solid #6a6a6a;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  color: #e0e0e0;
}
.data-table th {
  color: #ffffff;
  background: #2e2e2e;
}
address span {
  width: 83px;
}
