/* Isolated visitor accessibility preferences. Default/off state is inert. */

.klcch-a11y-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.klcch-a11y-trigger__icon {
  display: block;
  width: 17px;
  height: 17px;
}

.klcch-a11y-trigger:hover,
.klcch-a11y-trigger:focus,
.klcch-a11y-trigger.is-active {
  color: var(--color-brand-blue, #204a8a);
}

.klcch-a11y-trigger:focus-visible,
.klcch-a11y-panel button:focus-visible,
.klcch-a11y-option__input:focus-visible + .klcch-a11y-option__switch {
  outline: var(--focus-ring-width, 3px) solid var(--color-focus-ring, #0b1f3a);
  outline-offset: var(--focus-ring-offset, 3px);
}

.klcch-a11y-trigger--mobile {
  display: none;
}

.mobile-menu__actions .klcch-a11y-trigger {
  display: none !important;
}

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

.klcch-a11y-panel {
  position: fixed;
  top: var(--klcch-a11y-panel-top, calc(var(--wp-adminbar-offset, 0px) + 88px));
  right: max(18px, calc((100vw - var(--max-width, 1120px)) / 2));
  z-index: 1200;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100dvh - var(--klcch-a11y-panel-top, 88px) - 18px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #b7b7b7;
  border-radius: 8px;
  color: #222222;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.24);
  font-family: var(--font-family-body, Verdana, sans-serif);
  font-size: 1rem;
  line-height: 1.4;
}

.klcch-a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d6d6d6;
}

.klcch-a11y-panel__title {
  margin: 0;
  color: #222222;
  font-family: var(--font-family-heading, "Museo Sans", Verdana, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.klcch-a11y-panel__close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #7b7b7b;
  border-radius: 50%;
  color: #222222;
  background: #ffffff;
  cursor: pointer;
}

.klcch-a11y-panel__close svg {
  width: 18px;
  height: 18px;
}

.klcch-a11y-panel__options {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.klcch-a11y-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 12px 2px;
  border-bottom: 1px solid #e2e2e2;
  cursor: pointer;
}

.klcch-a11y-option__label {
  min-width: 0;
  color: #222222;
  font-family: var(--font-family-heading, "Museo Sans", Verdana, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.klcch-a11y-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.klcch-a11y-option__switch {
  position: relative;
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
  border: 2px solid #666666;
  border-radius: 999px;
  background: #ffffff;
}

.klcch-a11y-option__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #555555;
  transition: transform 160ms ease, background-color 160ms ease;
}

.klcch-a11y-option__input:checked + .klcch-a11y-option__switch {
  border-color: #204a8a;
  background: #204a8a;
}

.klcch-a11y-option__input:checked + .klcch-a11y-option__switch::after {
  background: #ffffff;
  transform: translateX(20px);
}

.klcch-a11y-panel__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.klcch-a11y-panel__reset {
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid #204a8a;
  border-radius: 4px;
  color: #204a8a;
  background: #ffffff;
  font: 700 0.9rem/1.2 var(--font-family-heading, "Museo Sans", Verdana, sans-serif);
  cursor: pointer;
}

.klcch-a11y-panel__reset:hover,
.klcch-a11y-panel__reset:focus {
  color: #ffffff;
  background: #204a8a;
}

/* High Contrast changes tokens only while the visitor preference is enabled. */
html.klcch-a11y-high-contrast {
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-surface: #f1f1f1;
  --color-text: #111111;
  --color-text-gray: #2f2f2f;
  --color-brand-green: #315d14;
  --color-brand-army: #315d14;
  --color-brand-army-aa: #315d14;
  --color-brand-blue: #003b73;
  --color-brand-emerald: #006a65;
  --color-brand-emerald-aa: #005b57;
  --color-brand-light-gray: #9a9a9a;
  --color-brand-ice: #f4fbff;
  --color-focus-ring: #000000;
  --color-brand-green-rgb: 49 93 20;
  --color-brand-army-rgb: 49 93 20;
  --color-brand-blue-rgb: 0 59 115;
  --color-brand-emerald-rgb: 0 106 101;
}

html.klcch-a11y-high-contrast body {
  color: var(--color-text);
  background-color: var(--color-bg);
}

html.klcch-a11y-high-contrast :focus-visible {
  outline-color: var(--color-focus-ring) !important;
  outline-width: 3px !important;
}

/* Color Safe adds non-color state cues without filtering logos or photography. */
html.klcch-a11y-color-safe main a[href]:not(.button):not(.cta):not([class*="card"]),
html.klcch-a11y-color-safe .row-footer a[href]:not(.button):not(.cta),
html.klcch-a11y-color-safe .header-nav a[href] {
  text-decoration-line: underline !important;
  text-decoration-thickness: 0.1em !important;
  text-underline-offset: 0.18em !important;
}

html.klcch-a11y-color-safe [aria-current="page"],
html.klcch-a11y-color-safe [aria-selected="true"],
html.klcch-a11y-color-safe [aria-pressed="true"] {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 112.5% is large enough to be useful while preserving the approved layout. */
html.klcch-a11y-larger-text {
  --font-size-root: clamp(15.75px, 10.35px + 0.84375vw, 18px);
}

/* Give enlarged desktop navigation enough room without changing the default header. */
html.klcch-a11y-larger-text .site-header__inner {
  max-width: min(1360px, calc(100% - 36px));
}

html.klcch-a11y-larger-text .career-values .columns .column {
  min-width: 0;
}

html.klcch-a11y-reduce-motion {
  scroll-behavior: auto !important;
}

html.klcch-a11y-reduce-motion .klcch-a11y-option__switch::after {
  transition: none;
}

@media (max-width: 1024px) {
  .nav-item--accessibility {
    display: none !important;
  }

  .klcch-a11y-trigger--mobile {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .klcch-a11y-trigger--mobile .klcch-a11y-trigger__icon {
    width: 20px;
    height: 20px;
  }

  .klcch-a11y-panel {
    right: 18px;
  }
}

/* One pixel above the theme breakpoint, the new icon needs tighter desktop gaps. */
@media (min-width: 1025px) and (max-width: 1099px) {
  html:not(.klcch-a11y-larger-text) .header-nav__list {
    column-gap: var(--gap18, 18px);
  }

  html:not(.klcch-a11y-larger-text) .header-nav__list--secondary {
    column-gap: var(--gap12, 12px);
    padding-inline: var(--gap12, 12px);
  }
}

/* Enlarged labels use the existing compact navigation before they can collide. */
@media (min-width: 1025px) and (max-width: 1200px) {
  html.klcch-a11y-larger-text body.has-mobile-menu .site-header__inner {
    grid-template-columns: auto auto;
    gap: var(--gap12, 12px);
    width: 100%;
    max-width: 100%;
    padding: var(--gap12, 12px) var(--gap18, 18px);
  }

  html.klcch-a11y-larger-text body.has-mobile-menu .header-nav,
  html.klcch-a11y-larger-text body.has-mobile-menu .mega-panels {
    display: none;
  }

  html.klcch-a11y-larger-text body.has-mobile-menu .header-menu-toggle {
    display: inline-flex;
  }

  html.klcch-a11y-larger-text body.has-mobile-menu .header-actions .header-cta {
    display: none;
  }

  html.klcch-a11y-larger-text .site-header.is-nav-open {
    height: 100vh;
    overflow-y: auto;
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.98);
  }

  html.klcch-a11y-larger-text body.has-mobile-menu .mobile-menu:not([hidden]) {
    display: block;
  }

  html.klcch-a11y-larger-text .klcch-a11y-trigger--mobile {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  html.klcch-a11y-larger-text .klcch-a11y-trigger--mobile .klcch-a11y-trigger__icon {
    width: 20px;
    height: 20px;
  }

  html.klcch-a11y-larger-text .klcch-a11y-panel {
    right: 18px;
  }
}

@media (max-width: 480px) {
  .klcch-a11y-panel {
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--klcch-a11y-panel-top, 82px) - 12px);
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .klcch-a11y-option__switch::after {
    transition: none;
  }
}
