/* Accessibility button and panel, in Hyler's green, navy and gold. Same options as WPC and T&C Greenhouse. */
@font-face {
  font-family: "Hyler A11y Icons";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("a11y-icons.woff2") format("woff2");
}

.a11y-i {
  display: inline-block;
  font-family: "Hyler A11y Icons";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.i-universal-access::before { content: "\f29a"; }
.i-text-height::before { content: "\f034"; }
.i-circle-half-stroke::before { content: "\f042"; }
.i-droplet::before { content: "\f043"; }
.i-palette::before { content: "\f53f"; }
.i-font::before { content: "\f031"; }
.i-underline::before { content: "\f0cd"; }
.i-person-walking::before { content: "\e551"; }
.i-arrow-pointer::before { content: "\f245"; }
.i-heading::before { content: "\f1dc"; }
.i-eye-slash::before { content: "\f070"; }
.i-text-width::before { content: "\f035"; }
.i-up-down::before { content: "\f338"; }
.i-language::before { content: "\f1ab"; }
.i-volume-high::before { content: "\f028"; }
.i-circle-stop::before { content: "\f28d"; }
.i-rotate-left::before { content: "\f2ea"; }
.i-xmark::before { content: "\f00d"; }

/* Floating button: same green, gold ring and size family as the chat and scroll-to-top buttons */
.a11y-btn {
  position: fixed;
  left: 22px;
  bottom: 43px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--gold, #c9a24a);
  border-radius: 50%;
  background: var(--green, #0b3d2e);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 41, 70, .3);
  transition: background .15s, color .15s;
}

.a11y-btn.is-right {
  left: auto;
  right: 22px;
  bottom: 184px;
}

.a11y-btn:hover,
.a11y-btn:focus-visible {
  background: var(--gold, #c9a24a);
  color: var(--navy, #102f4f);
}

.a11y-btn:focus-visible,
.a11y-card:focus-visible,
.a11y-close:focus-visible,
.a11y-note summary:focus-visible {
  outline: 3px solid var(--gold2, #f1d584);
  outline-offset: 3px;
}

.a11y-modal[hidden] {
  display: none !important;
}

.a11y-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 18px;
}

.a11y-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 31, .8);
}

.a11y-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 2px solid var(--gold, #c9a24a);
  border-radius: 17px;
  background: #fff;
  color: var(--ink, #17232d);
  box-shadow: 0 20px 60px rgba(4, 19, 31, .5);
}

.a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  background: var(--navy, #102f4f);
  color: #fff;
}

.a11y-title {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", Impact, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.a11y-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green, #0b3d2e);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.a11y-close:hover {
  background: var(--gold, #c9a24a);
  color: var(--navy, #102f4f);
}

.a11y-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.a11y-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 6px;
  border: 0;
  background: none;
  color: var(--ink, #17232d);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.a11y-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 3px solid var(--green, #0b3d2e);
  border-radius: 50%;
  color: var(--green, #0b3d2e);
  font-size: 1.4rem;
  transition: background .15s, color .15s, border-color .15s;
}

.a11y-card:hover .a11y-circle,
.a11y-card.is-active .a11y-circle {
  background: var(--green, #0b3d2e);
  color: #fff;
}

.a11y-card.is-active .a11y-circle {
  border-color: var(--gold, #c9a24a);
}

.a11y-label {
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
}

.a11y-sub {
  color: #4a5963;
  font-size: .78rem;
}

.a11y-translate {
  margin-top: .5rem;
  text-align: center;
}

.a11y-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dce3e7;
  font-size: .92rem;
}

.a11y-note summary {
  color: var(--navy, #102f4f);
  font-weight: 900;
  cursor: pointer;
}

.a11y-note p {
  margin: .75rem 0 0;
  color: #3d4b55;
}

.a11y-note a {
  color: var(--green, #0b3d2e);
  font-weight: 800;
}

@media (max-width: 700px) {
  .a11y-btn {
    left: 17px;
    bottom: 82px;
  }
  .a11y-btn.is-right {
    left: auto;
    right: 17px;
    bottom: 222px;
  }
  .a11y-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.chat-open .a11y-btn.is-right {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.a11y-open {
  overflow: hidden;
}

/* Preferences. Classes sit on <html> and are saved in the visitor's browser only. */
html.a11y-text-large { font-size: 115% !important; }
html.a11y-text-larger { font-size: 130% !important; }

html.a11y-high-contrast body {
  background: #fff !important;
  color: #000 !important;
}

html.a11y-high-contrast :is(.section:not(.dark), .soft, .faq, .breadcrumbs) :is(p, li, span, small, summary, label) {
  color: #000 !important;
}

html.a11y-high-contrast :is(.section:not(.dark), .soft, .faq, .breadcrumbs) a:not(.btn) {
  color: #0000ee !important;
}

html.a11y-high-contrast .dark,
html.a11y-high-contrast .dark :is(p, li, span, a, strong) {
  color: #fff !important;
}

html.a11y-dyslexia-font,
html.a11y-dyslexia-font *:not([class*="fa-"]):not(.a11y-i) {
  font-family: Verdana, Tahoma, Geneva, sans-serif !important;
  letter-spacing: .03em !important;
}

html.a11y-underline-links a { text-decoration: underline !important; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* Filters go on each page block instead of <body>, so the fixed buttons and the panel keep their place */
html.a11y-reduce-saturation body > :not(.a11y-btn):not(.a11y-modal) { filter: saturate(.5); }
html.a11y-monochrome body > :not(.a11y-btn):not(.a11y-modal) { filter: grayscale(1); }

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><path fill="black" stroke="white" stroke-width="1" d="M3 2l18 8-7.5 2.5L11 20z"/></svg>') 4 4, auto !important;
}

html.a11y-highlight-titles h1,
html.a11y-highlight-titles h2,
html.a11y-highlight-titles h3,
html.a11y-highlight-titles h4,
html.a11y-highlight-titles h5,
html.a11y-highlight-titles h6 {
  padding: 2px 6px;
  outline: 2px solid #997404;
  background: #fff3cd !important;
  color: #000 !important;
}

html.a11y-hide-images img { visibility: hidden; }

html.a11y-text-spacing body {
  letter-spacing: .05em !important;
  word-spacing: .15em !important;
}

html.a11y-line-height body,
html.a11y-line-height p,
html.a11y-line-height li { line-height: 2 !important; }

/* Google Translate, trimmed to a plain link in Hyler's green */
#google_translate_element {
  display: inline-block;
  height: 25px;
  margin: 0;
  padding: 0;
}
.goog-te-gadget { display: inline-block !important; }
.goog-te-gadget .goog-te-gadget-simple a {
  color: var(--green, #0b3d2e);
  font-size: 16px !important;
}
.goog-te-gadget-simple {
  background: transparent !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-tooltip.skiptranslate,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
