/** GP8 Accessibility v1.0.0 */

:root {
  --gp8-scale: 1;
  --gp8-page-bg: initial;
  --gp8-page-text: inherit;
  --gp8-link: inherit;
  --gp8-border: currentColor;
  --gp8-focus: #ffbf47;
}

html.gp8-font-100 { --gp8-scale: 1; }
html.gp8-font-120 { --gp8-scale: 1.2; }
html.gp8-font-140 { --gp8-scale: 1.4; }
html.gp8-font-160 { --gp8-scale: 1.6; }

html.gp8-enabled body {
  font-size: calc(100% * var(--gp8-scale)) !important;
}

html.gp8-enabled .gp8-scalable-text:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  font-size: calc(var(--gp8-base-font-size) * var(--gp8-scale)) !important;
}

html.gp8-enabled body,
html.gp8-enabled #allrecords {
  background-color: var(--gp8-page-bg) !important;
  color: var(--gp8-page-text) !important;
}

html.gp8-enabled :where(p, li, td, th, label, input, textarea, select, button, a, blockquote, figcaption) {
  font-size: inherit;
}

html.gp8-theme-black-white {
  --gp8-page-bg: #ffffff;
  --gp8-page-text: #000000;
  --gp8-link: #0000cc;
  --gp8-border: #000000;
  color-scheme: light;
}

html.gp8-theme-white-black {
  --gp8-page-bg: #000000;
  --gp8-page-text: #ffffff;
  --gp8-link: #ffff00;
  --gp8-border: #ffffff;
  color-scheme: dark;
}

html.gp8-theme-blue {
  --gp8-page-bg: #9dd1ff;
  --gp8-page-text: #062a4d;
  --gp8-link: #001f7a;
  --gp8-border: #062a4d;
  color-scheme: light;
}

html.gp8-theme-beige {
  --gp8-page-bg: #f7efd2;
  --gp8-page-text: #4b2e14;
  --gp8-link: #6b1f00;
  --gp8-border: #4b2e14;
  color-scheme: light;
}

html[class*="gp8-theme-"]:not(.gp8-theme-normal) body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  color: var(--gp8-page-text) !important;
  border-color: var(--gp8-border) !important;
  text-shadow: none !important;
  box-shadow: none;
}

html[class*="gp8-theme-"]:not(.gp8-theme-normal) body :where(section, article, header, footer, nav, main, aside, div):not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  background-color: var(--gp8-page-bg) !important;
}

html[class*="gp8-theme-"]:not(.gp8-theme-normal) body a:not(#gp8-accessibility-root *) {
  color: var(--gp8-link) !important;
}

html[class*="gp8-theme-"]:not(.gp8-theme-normal) body :where(input, textarea, select, button):not(#gp8-accessibility-root *) {
  background: var(--gp8-page-bg) !important;
  color: var(--gp8-page-text) !important;
  border: 2px solid var(--gp8-border) !important;
}

html.gp8-readable-font body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
}

html.gp8-letter-spacing body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

html.gp8-line-height body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  line-height: 1.7 !important;
}

html.gp8-line-height body :where(p, ul, ol, blockquote):not(#gp8-accessibility-root *) {
  margin-bottom: 1.2em !important;
}

html.gp8-underline-links body a:not(#gp8-accessibility-root *) {
  text-decoration: underline !important;
  text-decoration-thickness: 0.12em !important;
  text-underline-offset: 0.18em !important;
}

html.gp8-highlight-headings body :where(h1, h2, h3, h4, h5, h6):not(#gp8-accessibility-root *) {
  outline: 3px solid currentColor !important;
  outline-offset: 4px !important;
  padding: 0.15em 0.25em !important;
}

html.gp8-highlight-controls body :where(a, button, input, select, textarea, [role="button"], [tabindex]):not(#gp8-accessibility-root *) {
  outline: 3px solid currentColor !important;
  outline-offset: 3px !important;
}

html.gp8-disable-animations *,
html.gp8-disable-animations *::before,
html.gp8-disable-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

html.gp8-large-cursor body,
html.gp8-large-cursor body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2l20 18-9 1 5 8-4 2-5-9-7 6z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 3 2, default !important;
}

html.gp8-large-cursor body :where(a, button, label, select, summary, [role="button"], [onclick]):not(#gp8-accessibility-root *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2l20 18-9 1 5 8-4 2-5-9-7 6z' fill='%23ffeb3b' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 3 2, pointer !important;
}

html.gp8-hide-backgrounds body *:not(#gp8-accessibility-root):not(#gp8-accessibility-root *) {
  background-image: none !important;
}

html.gp8-images-grayscale body img:not(#gp8-accessibility-root *) {
  filter: grayscale(1) !important;
}

html.gp8-images-hidden body img:not(#gp8-accessibility-root *) {
  display: none !important;
}

.gp8-image-placeholder {
  display: none;
  border: 2px dashed currentColor;
  padding: 0.75em;
  margin: 0.25em 0;
  font: inherit;
  line-height: 1.4;
  background: transparent;
  color: inherit;
}

html.gp8-images-hidden .gp8-image-placeholder {
  display: inline-block;
}

html.gp8-enabled body :focus-visible:not(#gp8-accessibility-root *) {
  outline: 4px solid var(--gp8-focus) !important;
  outline-offset: 4px !important;
}

.gp8-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  transform: translateY(-180%);
  padding: 12px 16px;
  border: 3px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font: 700 16px/1.3 Arial, sans-serif;
  text-decoration: none;
}

.gp8-skip-link:focus {
  transform: translateY(0);
}

html.gp8-panel-open {
  overflow: hidden !important;
}

#gp8-accessibility-root,
#gp8-accessibility-root * {
  box-sizing: border-box;
}

#gp8-accessibility-root {
  --gp8-z-index: 2147483000;
  --gp8-offset-x: 20px;
  --gp8-offset-y: 20px;
  --gp8-ui-bg: #ffffff;
  --gp8-ui-text: #111111;
  --gp8-ui-muted: #5b6470;
  --gp8-ui-border: #c8ced6;
  --gp8-ui-accent: #1458d4;
  --gp8-ui-accent-contrast: #ffffff;
  --gp8-ui-focus: #ffbf47;
  position: relative;
  z-index: var(--gp8-z-index);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--gp8-ui-text);
}

#gp8-accessibility-root button,
#gp8-accessibility-root input {
  font: inherit;
}

.gp8-launcher {
  position: fixed;
  right: var(--gp8-offset-x);
  bottom: var(--gp8-offset-y);
  z-index: calc(var(--gp8-z-index) + 2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 32px));
  min-height: 52px;
  padding: 10px 16px;
  border: 3px solid #000000;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.gp8-position-left .gp8-launcher {
  right: auto;
  left: var(--gp8-offset-x);
}

.gp8-launcher--embedded {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
}

.gp8-launcher:hover {
  background: #f2f4f7;
}

.gp8-launcher:focus-visible,
#gp8-accessibility-root button:focus-visible,
#gp8-accessibility-root input:focus-visible {
  outline: 4px solid var(--gp8-ui-focus);
  outline-offset: 3px;
}

.gp8-launcher__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 32px;
  border-radius: 5px;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
}

.gp8-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--gp8-z-index);
  background: rgba(0, 0, 0, 0.62);
}

.gp8-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: calc(var(--gp8-z-index) + 1);
  display: flex;
  flex-direction: column;
  width: min(540px, 100vw);
  height: 100dvh;
  border-left: 3px solid #111111;
  background: var(--gp8-ui-bg);
  color: var(--gp8-ui-text);
  box-shadow: -16px 0 44px rgba(0, 0, 0, 0.35);
}

.gp8-position-left .gp8-panel {
  right: auto;
  left: 0;
  border-right: 3px solid #111111;
  border-left: 0;
  box-shadow: 16px 0 44px rgba(0, 0, 0, 0.35);
}

.gp8-panel[hidden],
.gp8-overlay[hidden] {
  display: none !important;
}

.gp8-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 2px solid var(--gp8-ui-border);
}

.gp8-panel__title {
  margin: 0;
  color: var(--gp8-ui-text);
  font-size: 24px;
  line-height: 1.2;
}

.gp8-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 2px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.gp8-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.gp8-group {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.gp8-group__title {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--gp8-ui-text);
  font-size: 19px;
  font-weight: 700;
}

.gp8-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gp8-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.gp8-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.gp8-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 2px solid var(--gp8-ui-border);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  text-align: center;
}

.gp8-choice input:checked + span {
  border-color: var(--gp8-ui-accent);
  background: var(--gp8-ui-accent);
  color: var(--gp8-ui-accent-contrast);
}

.gp8-choice input:focus-visible + span {
  outline: 4px solid var(--gp8-ui-focus);
  outline-offset: 3px;
}

.gp8-toggle-list {
  display: grid;
  gap: 10px;
}

.gp8-toggle {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  border: 2px solid var(--gp8-ui-border);
  border-radius: 8px;
  cursor: pointer;
}

.gp8-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.gp8-toggle__control {
  position: relative;
  display: block;
  width: 46px;
  height: 28px;
  border: 2px solid #697380;
  border-radius: 999px;
  background: #dfe3e8;
}

.gp8-toggle__control::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.gp8-toggle input:checked + .gp8-toggle__control {
  border-color: var(--gp8-ui-accent);
  background: var(--gp8-ui-accent);
}

.gp8-toggle input:checked + .gp8-toggle__control::after {
  transform: translateX(18px);
}

.gp8-toggle input:focus-visible + .gp8-toggle__control {
  outline: 4px solid var(--gp8-ui-focus);
  outline-offset: 3px;
}

.gp8-toggle__label {
  min-width: 0;
  color: #111111;
  font-weight: 700;
}

.gp8-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 2px solid var(--gp8-ui-border);
  background: #ffffff;
}

.gp8-reset,
.gp8-done {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.gp8-reset {
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
}

.gp8-done {
  border: 2px solid var(--gp8-ui-accent);
  background: var(--gp8-ui-accent);
  color: var(--gp8-ui-accent-contrast);
}

.gp8-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .gp8-launcher {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 8px 11px;
  }

  .gp8-position-left .gp8-launcher {
    right: auto;
    left: 12px;
  }

  .gp8-launcher__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .gp8-panel {
    width: 100vw;
    border-right: 0;
    border-left: 0;
  }

  .gp8-panel__header,
  .gp8-panel__body,
  .gp8-panel__footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .gp8-choice-grid {
    grid-template-columns: 1fr;
  }

  .gp8-panel__footer {
    flex-direction: column-reverse;
  }

  .gp8-reset,
  .gp8-done {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gp8-accessibility-root *,
  #gp8-accessibility-root *::before,
  #gp8-accessibility-root *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  #gp8-accessibility-root,
  .gp8-skip-link,
  .gp8-image-placeholder {
    display: none !important;
  }
}
