/* Shared interaction safeguards for every Grow A Company web surface. */
*:focus-visible {
  outline: 3px solid #ffbf47 !important;
  outline-offset: 3px !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 14px;
  border: 2px solid #000;
  background: #fff;
  color: #000080;
  font: 700 14px/1.2 Arial, sans-serif;
  transform: translateY(-160%);
}

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

.visually-hidden {
  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;
}

input,
select,
textarea,
[contenteditable="true"] {
  user-select: text !important;
}

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

@media (forced-colors: active) {
  button,
  a,
  input,
  select,
  textarea,
  [role="button"] {
    forced-color-adjust: auto;
  }
}

html.a11y-readable-font,
html.a11y-readable-font * { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-underline-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 0.2em !important; }
html.a11y-grayscale { filter: grayscale(1) !important; }
html.a11y-high-contrast {
  filter: contrast(1.35) !important;
}
html.a11y-grayscale.a11y-high-contrast { filter: grayscale(1) contrast(1.35) !important; }
html.a11y-high-contrast body,
html.a11y-high-contrast main,
html.a11y-high-contrast section,
html.a11y-high-contrast article,
html.a11y-high-contrast .window-body {
  color: #000 !important;
}
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

.accessibility-launcher {
  position: static;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 2px solid #fff;
  border-right-color: #707070;
  border-bottom-color: #707070;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: none;
  cursor: pointer;
}

.accessibility-launcher img { display: block; width: 100%; height: 100%; object-fit: contain; }
.accessibility-launcher[aria-expanded="true"] { background: #fff; border-color: #000080; }

.accessibility-panel {
  position: fixed;
  right: 6px;
  top: 34px;
  z-index: 100001;
  width: min(360px, calc(100vw - 24px));
  max-height: min(650px, calc(100vh - 110px));
  overflow: auto;
  border: 3px solid #fff;
  border-right-color: #333;
  border-bottom-color: #333;
  background: #e8e8e8;
  color: #111;
  box-shadow: 6px 6px 22px rgba(0,0,0,.38);
  font: 15px/1.4 Arial, Helvetica, sans-serif;
}

.accessibility-panel[hidden] { display: none !important; }
.accessibility-panel * { box-sizing: border-box; }
.accessibility-panel-header { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #000080; color: #fff; }
.accessibility-panel-header h2 { flex: 1; margin: 0; color: inherit; border: 0; font-size: 18px; }
.accessibility-panel-close { width: 34px; height: 34px; border: 2px solid #fff; background: #c0c0c0; color: #000; font: 800 20px/1 Arial, sans-serif; cursor: pointer; }
.accessibility-panel-body { padding: 12px; }
.accessibility-panel-intro { margin: 0 0 12px; }
.accessibility-panel h3 { margin: 14px 0 7px; color: #000080; font-size: 15px; }
.accessibility-option,
.accessibility-reset {
  min-height: 44px;
  border: 2px solid #fff;
  border-right-color: #707070;
  border-bottom-color: #707070;
  background: #d4d4d4;
  color: #111;
  font: 700 14px/1.25 Arial, sans-serif;
  cursor: pointer;
}
.accessibility-option[aria-pressed="true"] { background: #000080; color: #fff; border-color: #000; }
.accessibility-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.accessibility-option { padding: 9px 7px; }
.accessibility-reset { width: 100%; margin-top: 12px; background: #fff; }
.accessibility-help { margin-top: 14px; padding-top: 12px; border-top: 1px solid #888; font-size: 13px; }
.accessibility-help p { margin: 0 0 8px; }
.accessibility-help a { color: #000080; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .accessibility-panel { right: 6px; top: 34px; width: calc(100vw - 12px); max-height: calc(100vh - 40px); }
}
