/** GP8 Accessibility v2.0.0-beta.1 */

: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-125 { --gp8-scale: 1.25; }
html.gp8-font-150 { --gp8-scale: 1.5; }
html.gp8-font-175 { --gp8-scale: 1.75; }

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: #fff;
  --gp8-ui-surface: #f4f6f8;
  --gp8-ui-text: #16191f;
  --gp8-ui-muted: #5c6573;
  --gp8-ui-border: #cbd2da;
  --gp8-ui-accent: #1559d6;
  --gp8-ui-accent-dark: #0c43ad;
  --gp8-ui-focus: #ffbf47;
  position: relative;
  z-index: var(--gp8-z-index);
  color: var(--gp8-ui-text);
  font: 16px/1.45 Arial, Helvetica, sans-serif;
}
#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) + 3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
  min-height: 56px;
  padding: 9px 17px 9px 10px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 32px rgba(0,0,0,.24);
  font-weight: 700;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease, background-color .16s ease;
}
.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: #f0f3f7; }
.gp8-is-open .gp8-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.96);
}
.gp8-launcher__icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  color: #fff;
}
.gp8-launcher__icon svg { width: 24px; height: 24px; fill: currentColor; }

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

.gp8-overlay { position: fixed; inset: 0; z-index: var(--gp8-z-index); background: rgba(9,13,20,.66); }
.gp8-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: calc(var(--gp8-z-index) + 2);
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  height: 100vh;
  height: 100dvh;
  border-left: 1px solid #111;
  background: var(--gp8-ui-bg);
  color: var(--gp8-ui-text);
  box-shadow: -18px 0 50px rgba(0,0,0,.32);
}
.gp8-position-left .gp8-panel { right: auto; left: 0; border-right: 1px solid #111; border-left: 0; box-shadow: 18px 0 50px rgba(0,0,0,.32); }
.gp8-panel[hidden], .gp8-overlay[hidden] { display: none !important; }

.gp8-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--gp8-ui-border);
  background: #fff;
}
.gp8-panel__title { margin: 0; color: var(--gp8-ui-text); font-size: 24px; line-height: 1.2; }
.gp8-close {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #1c2027;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.gp8-close:hover { background: var(--gp8-ui-surface); }
.gp8-panel__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 30px; }
.gp8-group { min-width: 0; margin: 0 0 26px; padding: 0 0 26px; border: 0; border-bottom: 1px solid #dfe4ea; }
.gp8-group:last-child { margin-bottom: 0; border-bottom: 0; }
.gp8-group__title { width: 100%; margin: 0 0 13px; 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, .gp8-toggle 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: 10px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-align: center;
}
.gp8-choice:hover span { border-color: #7b8795; background: #f8fafc; }
.gp8-choice input:checked + span { border-color: var(--gp8-ui-accent); background: var(--gp8-ui-accent); color: #fff; }
.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: 56px;
  padding: 9px 11px;
  border: 1px solid var(--gp8-ui-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.gp8-toggle:hover { background: #f8fafc; }
.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:#fff; box-shadow:0 1px 4px rgba(0,0,0,.35); transition:transform .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__label { min-width: 0; color: #111; font-weight: 700; }

.gp8-panel__footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(120px,.65fr);
  gap: 12px;
  padding: 15px 20px max(15px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--gp8-ui-border);
  background: #fff;
  box-shadow: 0 -8px 22px rgba(18,25,35,.08);
}
.gp8-reset, .gp8-done { min-height: 50px; padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.gp8-reset { border: 2px solid #111; background: #fff; color: #111; }
.gp8-reset:hover { background: #f0f3f7; }
.gp8-done { border: 2px solid var(--gp8-ui-accent); background: var(--gp8-ui-accent); color: #fff; }
.gp8-done:hover { border-color: var(--gp8-ui-accent-dark); background: var(--gp8-ui-accent-dark); }
.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:50px; padding:6px; }
  .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-panel__title { font-size:21px; }
  .gp8-choice-grid { grid-template-columns:1fr; }
  .gp8-panel__footer { grid-template-columns:1fr; }
  .gp8-done { grid-row:1; }
  .gp8-reset { grid-row:2; }
}
@media (prefers-reduced-motion:reduce) {
  #gp8-accessibility-root *, #gp8-accessibility-root *::before, #gp8-accessibility-root *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
@media print { #gp8-accessibility-root, .gp8-skip-link, .gp8-image-placeholder { display:none !important; } }


/* v2.2 collapsed launcher */
.gp8-launcher{transition:opacity .18s ease,transform .18s ease,visibility .18s ease,background-color .18s ease,width .22s ease,padding .22s ease,gap .22s ease,box-shadow .22s ease;}
.gp8-launcher--collapsed{width:56px;min-width:56px;padding:9px;border-radius:999px;gap:0;justify-content:center;box-shadow:0 10px 32px rgba(0,0,0,.24);}
.gp8-launcher--collapsed .gp8-launcher__text{opacity:0;width:0;overflow:hidden;white-space:nowrap;}
.gp8-launcher--collapsed .gp8-launcher__icon{flex:0 0 38px;margin:0;}
