/* ==========================================================================
   WCAG 2.1 AA remediation layer — loaded last so it overrides theme styles.
   ========================================================================== */

/* Visually hidden but available to assistive technology */
.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;
}

/* 2.4.1 Bypass Blocks — skip link, visible on focus */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 2147483647;
  padding: 12px 18px;
  background: #000;
  color: #fff !important;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
}
.skip-link:focus {
  top: 8px;
}
#main-content:focus {
  outline: none;
}

/* 2.4.7 Focus Visible / 1.4.11 — two-tone ring visible on any background */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
/* Fallback for browsers without :focus-visible */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* 1.4.10 Reflow — media never overflows its container */
img,
video,
iframe,
table {
  max-width: 100%;
}
img {
  height: auto;
}
.table-responsive-a11y {
  width: 100%;
  overflow-x: auto;
}

/* 2.2.2 — static replacement for the old <marquee> risk disclaimer */
.risk-disclaimer {
  margin: 0;
  padding: 6px 12px;
  background-color: #00695c;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.risk-disclaimer p {
  display: inline;
  margin: 0 6px;
  color: #fff;
}
#sebi {
  text-align: left;
}

/* Header "Call Us" label (was an infinite colour-cycling animation) */
.awesome {
  color: #313131 !important;
  -webkit-animation: none !important;
  animation: none !important;
}

/* Links styled as buttons in the header (replace <a><button></button></a>) */
a.btn.btn-primary,
a.btn.btn-primary:visited {
  color: #fff;
}
.btn-success {
  background-color: #2d7a2d !important;
  border-color: #256325 !important;
  color: #fff !important;
}
.btn-default[data-text="Contact"] {
  color: #fff !important;
}

/* Inner-page title banners: white title on light photos needed a darker veil */
.pageInfoBg .cover {
  background-color: rgba(0, 0, 0, 0.5);
}
.pageTitle h1,
.pageTitle h1 .textlightBlue {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Main navigation bar background (axe computes against this element) */
.headerstyletw .sticky.scrollHeaderWrapper,
.headerBgtw {
  background-color: #00796b;
}

/* Theme tabs (red.css set near-black text on teal) — clear active state */
.nav-tabs > li > a,
.nav-tabs > li > a:visited {
  color: #fff !important;
  background-color: #00796b !important;
}
.nav-tabs > li > a:hover {
  color: #fff !important;
  background-color: #00574d !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #00574d !important;
  background-color: #fff !important;
  border: 2px solid #00796b !important;
  text-decoration: underline;
}

/* Plain .btn submit buttons sit on the teal theme colour */
input.btn[type="submit"]:not([class*="btn-"]),
button.btn[type="submit"]:not([class*="btn-"]),
input.btn[type="reset"]:not([class*="btn-"]) {
  color: #fff !important;
  background-color: #00796b;
}

/* Main navigation — keyboard / touch operable disclosure menus */
.mainNav .navTabs > li > a[role="button"],
.responsiveMainNav .navTabs > li > a[role="button"] {
  cursor: pointer;
}
nav > ul > li.submenu-open > .sub_menu3,
nav > ul > li:focus-within > .sub_menu3 {
  display: block;
}
nav > ul > li.submenu-dismissed > .sub_menu3,
nav > ul > li.submenu-dismissed:hover > .sub_menu3 {
  display: none !important;
}
nav > ul > li > .sub_menu3 > ul > li:focus-within > .drop_down {
  display: block;
}
/* Preview titles in the mega menu were <h3>; now styled text (not headings) */
nav > ul > li > .sub_menu3 > ul > li > .drop_down > .f_down p.h3 {
  text-transform: capitalize;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  font-family: inherit;
  line-height: 1.4;
}
.responsiveMainNav .navTabs > li > .sub_menu3 {
  display: none;
  position: static;
  min-width: 0;
  min-height: 0;
  width: 100%;
  box-shadow: none;
}
.responsiveMainNav .navTabs > li.submenu-open > .sub_menu3 {
  display: block;
}
.responsiveMainNav .sub_menu3 > ul {
  width: 100%;
  float: none;
}
.responsiveMainNav .sub_menu3 .drop_down {
  display: none !important;
}
#responsiveMainNavToggler {
  min-width: 44px;
  min-height: 44px;
  text-align: center;
}

/* Off-canvas free-trial sidebar: not focusable while closed */
.w3-sidebar#mySidebar {
  visibility: hidden;
}
.w3-sidebar#mySidebar.is-open {
  visibility: visible;
}

/* Form labels that were previously empty */
.form-label-a11y {
  display: block;
  margin-bottom: 4px;
  color: #222;
  font-weight: bold;
}
.form-label-a11y.on-dark {
  color: #fff;
}

/* 1.4.1 Use of Color — underline links inside body copy */
main p a,
main li a:not(.btn),
.footer p a {
  text-decoration: underline;
}

/* 1.4.12 Text Spacing — let containers grow with user spacing overrides */
.drop_down,
.f_down,
.sub_menu3 {
  height: auto;
}

/* 2.2.2 / 2.3 — respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Native radios/checkboxes are visible, so the theme's decorative label:after
   indicator duplicated them once inputs got proper <label for> (1.3.1) */
input[type="checkbox"] + label:after,
input[type="radio"] + label:after,
.check + label:after,
.radio + label:after {
  display: none !important;
}

/* 1.4.11 — form field boundaries at least 3:1 */
.form-control,
.formControl input,
.formControl select,
.formControl textarea {
  border-color: #767676;
}

/* Hidden in-page newsletter section: hide from first paint (footer rule loads late) */
section#newslatter {
  display: none;
}
