/* Shared accessibility preferences for the public website and dashboard. */

[hidden] {
  display: none !important;
}

html[data-a11y-font-size="112"] {
  font-size: 112.5%;
}

html[data-a11y-font-size="125"] {
  font-size: 125%;
}

html[data-a11y-font-size="150"] {
  font-size: 150%;
}

html[data-a11y-readable-font="true"] body,
html[data-a11y-readable-font="true"] button,
html[data-a11y-readable-font="true"] input,
html[data-a11y-readable-font="true"] select,
html[data-a11y-readable-font="true"] textarea {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
}

html[data-a11y-line-spacing="true"] body,
html[data-a11y-line-spacing="true"] p,
html[data-a11y-line-spacing="true"] li,
html[data-a11y-line-spacing="true"] label,
html[data-a11y-line-spacing="true"] blockquote,
html[data-a11y-line-spacing="true"] td,
html[data-a11y-line-spacing="true"] th {
  line-height: 1.9 !important;
}

html[data-a11y-line-spacing="true"] p,
html[data-a11y-line-spacing="true"] ul,
html[data-a11y-line-spacing="true"] ol,
html[data-a11y-line-spacing="true"] blockquote {
  margin-bottom: 1.35em !important;
}

html[data-a11y-letter-spacing="true"] body,
html[data-a11y-letter-spacing="true"] button,
html[data-a11y-letter-spacing="true"] input,
html[data-a11y-letter-spacing="true"] select,
html[data-a11y-letter-spacing="true"] textarea {
  letter-spacing: 0.055em !important;
  word-spacing: 0.12em !important;
}

html[data-a11y-underline-links="true"] a:not(.fas-a11y-trigger):not(.fas-a11y-profile):not(.fas-a11y-reset) {
  text-decoration: underline !important;
  text-decoration-thickness: 0.13em !important;
  text-underline-offset: 0.2em !important;
}

html[data-a11y-focus="true"] :focus-visible {
  outline: 0.25rem solid #ffbf00 !important;
  outline-offset: 0.25rem !important;
  box-shadow: 0 0 0 0.42rem #111111 !important;
}

html[data-a11y-large-cursor="true"],
html[data-a11y-large-cursor="true"] body,
html[data-a11y-large-cursor="true"] body * {
  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 fill='white' stroke='black' stroke-width='2' d='M3 2l20 18h-9l5 9-5 2-5-10-6 6z'/%3E%3C/svg%3E") 3 2, default !important;
}

html[data-a11y-large-cursor="true"] :where(a, button, input, select, textarea, summary, label, [role="button"], [tabindex]):not([tabindex="-1"]) {
  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 fill='%23ffdf42' stroke='black' stroke-width='2' d='M3 2l20 18h-9l5 9-5 2-5-10-6 6z'/%3E%3C/svg%3E") 3 2, pointer !important;
}

html[data-a11y-reduce-motion="true"] {
  scroll-behavior: auto !important;
}

html[data-a11y-reduce-motion="true"] *,
html[data-a11y-reduce-motion="true"] *::before,
html[data-a11y-reduce-motion="true"] *::after {
  scroll-behavior: auto !important;
  animation-delay: 0ms !important;
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-delay: 0ms !important;
  transition-duration: 1ms !important;
}

/* High contrast mode uses existing design variables first, then reinforces
   common content surfaces and controls that use hard coded colours. */
html[data-a11y-contrast="true"] body {
  --ink: #ffffff;
  --muted: #f1f1f1;
  --surface: #000000;
  --surface-soft: #111111;
  --surface-warm: #111111;
  --line: #ffffff;
  --white: #000000;
  --primary: #ffdf42;
  --primary-dark: #ffdf42;
  --secondary: #ffffff;
  --accent: #ffdf42;
  --primary-color: #ffdf42;
  --secondary-color: #ffffff;
  --link-color: #ffdf42;
  --bg-light: #000000;
  --text-dark: #ffffff;
  --text-muted: #f1f1f1;
  --border: #ffffff;
  --danger: #ff8a8a;
  --warning: #ffdf42;
  --info: #7dd3fc;
  --success: #86efac;
  background: #000000 !important;
  color: #ffffff !important;
}

html[data-a11y-contrast="true"] :where(
  .site-topbar,
  .site-header,
  .primary-nav,
  .submenu,
  .site-footer,
  .footer-bottom-wrap,
  .sidebar,
  .top-navbar,
  .page-container,
  .card,
  .stat-card,
  .table-card,
  .table-container,
  .modal-content,
  .login-card,
  .review-card,
  .tour-card,
  .guide-card,
  .journey-choice-card,
  .audience-card-grid article,
  .faq-list details,
  .analytics-consent,
  form,
  fieldset
) {
  border-color: #ffffff !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-a11y-contrast="true"] :where(h1, h2, h3, h4, h5, h6, p, li, label, legend, small, strong, span, td, th) {
  color: inherit;
}

html[data-a11y-contrast="true"] a {
  color: #ffdf42 !important;
}

html[data-a11y-contrast="true"] :where(button, .button, .btn, input, select, textarea, summary, [role="button"]) {
  border: 0.125rem solid #ffffff !important;
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-a11y-contrast="true"] :where(button, .button, .btn, summary, [role="button"]):hover,
html[data-a11y-contrast="true"] :where(button, .button, .btn, summary, [role="button"]):focus-visible {
  border-color: #ffdf42 !important;
  background: #ffdf42 !important;
  color: #000000 !important;
}

html[data-a11y-contrast="true"] input::placeholder,
html[data-a11y-contrast="true"] textarea::placeholder {
  color: #dedede !important;
  opacity: 1;
}

html[data-a11y-contrast="true"] img,
html[data-a11y-contrast="true"] video {
  outline: 0.125rem solid #ffffff;
}

body.fas-a11y-panel-open {
  overflow: hidden !important;
}

.fas-a11y {
  --fas-a11y-green: #087f35;
  --fas-a11y-dark: #10251a;
  --fas-a11y-yellow: #ffdf42;
  --fas-a11y-panel-bg: #ffffff;
  --fas-a11y-text: #18231c;
  --fas-a11y-muted: #59675e;
  --fas-a11y-border: #d4ded7;
  position: relative;
  z-index: 2147483000;
  font-family: Arial, Verdana, Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: normal;
  word-spacing: normal;
}

.fas-a11y *,
.fas-a11y *::before,
.fas-a11y *::after {
  box-sizing: border-box;
}

.fas-a11y-trigger {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2147483002;
  display: inline-flex;
  min-width: 3.75rem;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border: 0.18rem solid #ffffff;
  border-radius: 999px;
  background: var(--fas-a11y-green);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font: 700 0.88rem/1 Arial, Verdana, sans-serif;
}

.fas-a11y-trigger:hover,
.fas-a11y-trigger:focus-visible {
  background: var(--fas-a11y-dark);
  color: #ffffff;
  transform: translateY(-0.12rem);
}

.fas-a11y-trigger svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.fas-a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483003;
  background: rgba(3, 12, 7, 0.68);
  backdrop-filter: blur(0.18rem);
}

.fas-a11y-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483004;
  display: flex;
  width: min(35rem, 100%);
  max-width: 100vw;
  flex-direction: column;
  overflow: hidden;
  border-left: 0.16rem solid var(--fas-a11y-border);
  background: var(--fas-a11y-panel-bg);
  box-shadow: -1.2rem 0 3.5rem rgba(0, 0, 0, 0.26);
  color: var(--fas-a11y-text);
}

.fas-a11y-panel-header,
.fas-a11y-panel-footer {
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem;
  background: #f5f9f6;
}

.fas-a11y-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.08rem solid var(--fas-a11y-border);
}

.fas-a11y-panel-header h2 {
  margin: 0;
  color: var(--fas-a11y-dark);
  font: 800 clamp(1.35rem, 3vw, 1.7rem)/1.2 Arial, Verdana, sans-serif;
}

.fas-a11y-eyebrow {
  margin: 0 0 0.28rem;
  color: var(--fas-a11y-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fas-a11y-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0.1rem solid var(--fas-a11y-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--fas-a11y-dark);
  font-size: 1.85rem;
  line-height: 1;
}

.fas-a11y-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.2rem 1.25rem 2rem;
}

.fas-a11y-intro {
  margin: 0 0 1.25rem;
  color: var(--fas-a11y-muted);
  font-size: 0.95rem;
}

.fas-a11y-section {
  min-width: 0;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.fas-a11y-section legend {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--fas-a11y-dark);
  font-size: 1rem;
  font-weight: 800;
}

.fas-a11y-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.fas-a11y-profile {
  display: grid;
  min-height: 5.2rem;
  align-content: center;
  gap: 0.22rem;
  padding: 0.8rem;
  border: 0.11rem solid var(--fas-a11y-border);
  border-radius: 0.85rem;
  background: #ffffff;
  color: var(--fas-a11y-text);
  text-align: left;
}

.fas-a11y-profile strong {
  color: inherit;
  font-size: 0.88rem;
}

.fas-a11y-profile span {
  color: var(--fas-a11y-muted);
  font-size: 0.75rem;
}

.fas-a11y-profile[aria-pressed="true"] {
  border-color: var(--fas-a11y-green);
  background: #eaf7ef;
  box-shadow: 0 0 0 0.13rem rgba(8, 127, 53, 0.18);
  color: #075b28;
}

.fas-a11y-size-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.fas-a11y-size-options button {
  display: grid;
  min-height: 4.4rem;
  place-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem;
  border: 0.11rem solid var(--fas-a11y-border);
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--fas-a11y-dark);
  font-weight: 800;
}

.fas-a11y-size-options button:nth-child(2) > span:first-child {
  font-size: 1.15rem;
}

.fas-a11y-size-options button:nth-child(3) > span:first-child {
  font-size: 1.3rem;
}

.fas-a11y-size-options button:nth-child(4) > span:first-child {
  font-size: 1.48rem;
}

.fas-a11y-size-options button[aria-pressed="true"] {
  border-color: var(--fas-a11y-green);
  background: var(--fas-a11y-green);
  color: #ffffff;
}

.fas-a11y-size-name {
  font-size: 0.68rem;
  font-weight: 700;
}

.fas-a11y-toggle-grid {
  display: grid;
  gap: 0.55rem;
}

.fas-a11y-toggle {
  display: grid;
  grid-template-columns: auto 2.55rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 4rem;
  padding: 0.7rem 0.8rem;
  border: 0.08rem solid var(--fas-a11y-border);
  border-radius: 0.78rem;
  background: #ffffff;
  color: var(--fas-a11y-text);
  cursor: pointer;
}

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

.fas-a11y-switch {
  position: relative;
  width: 2.55rem;
  height: 1.45rem;
  border: 0.1rem solid #748078;
  border-radius: 999px;
  background: #e7ece8;
}

.fas-a11y-switch::after {
  position: absolute;
  top: 0.16rem;
  left: 0.18rem;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: #4b574f;
  content: "";
  transition: transform 0.18s ease;
}

.fas-a11y-toggle input:checked + .fas-a11y-switch {
  border-color: var(--fas-a11y-green);
  background: var(--fas-a11y-green);
}

.fas-a11y-toggle input:checked + .fas-a11y-switch::after {
  background: #ffffff;
  transform: translateX(1.08rem);
}

.fas-a11y-toggle input:focus-visible + .fas-a11y-switch {
  outline: 0.2rem solid #ffbf00;
  outline-offset: 0.18rem;
}

.fas-a11y-toggle strong,
.fas-a11y-toggle small {
  display: block;
  color: inherit;
}

.fas-a11y-toggle strong {
  margin-bottom: 0.08rem;
  font-size: 0.87rem;
}

.fas-a11y-toggle small {
  color: var(--fas-a11y-muted);
  font-size: 0.73rem;
}

.fas-a11y-note {
  padding: 0.9rem 1rem;
  border-left: 0.25rem solid var(--fas-a11y-green);
  border-radius: 0.4rem;
  background: #eef7f1;
  color: var(--fas-a11y-dark);
}

.fas-a11y-note strong {
  color: inherit;
}

.fas-a11y-note p {
  margin: 0.25rem 0 0;
  color: #455249;
  font-size: 0.8rem;
}

.fas-a11y-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 0.08rem solid var(--fas-a11y-border);
}

.fas-a11y-status {
  margin: 0;
  color: var(--fas-a11y-muted);
  font-size: 0.78rem;
}

.fas-a11y-reset {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  border: 0.1rem solid var(--fas-a11y-dark);
  border-radius: 0.65rem;
  background: #ffffff;
  color: var(--fas-a11y-dark);
  font-weight: 800;
}

.fas-a11y :focus-visible {
  outline: 0.2rem solid #ffbf00 !important;
  outline-offset: 0.18rem !important;
  box-shadow: 0 0 0 0.18rem #111111 !important;
}

html[data-a11y-contrast="true"] .fas-a11y {
  --fas-a11y-panel-bg: #000000;
  --fas-a11y-text: #ffffff;
  --fas-a11y-muted: #f3f3f3;
  --fas-a11y-border: #ffffff;
  --fas-a11y-green: #ffdf42;
  --fas-a11y-dark: #ffffff;
}

html[data-a11y-contrast="true"] :where(
  .fas-a11y-panel,
  .fas-a11y-panel-header,
  .fas-a11y-panel-footer,
  .fas-a11y-profile,
  .fas-a11y-size-options button,
  .fas-a11y-toggle,
  .fas-a11y-close,
  .fas-a11y-reset,
  .fas-a11y-note
) {
  border-color: #ffffff !important;
  background: #000000 !important;
  color: #ffffff !important;
}

html[data-a11y-contrast="true"] .fas-a11y-profile[aria-pressed="true"],
html[data-a11y-contrast="true"] .fas-a11y-size-options button[aria-pressed="true"] {
  background: #ffdf42 !important;
  color: #000000 !important;
}

html[data-a11y-contrast="true"] .fas-a11y-trigger {
  border-color: #ffffff !important;
  background: #ffdf42 !important;
  color: #000000 !important;
}

@media (max-width: 46rem) {
  .fas-a11y-trigger {
    bottom: 0.8rem;
    left: 0.8rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    padding: 0.65rem;
  }

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

  .fas-a11y-panel {
    width: 100%;
  }

  .fas-a11y-profile-grid {
    grid-template-columns: 1fr;
  }

  .fas-a11y-panel-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .fas-a11y-reset {
    width: 100%;
  }
}

@media (max-width: 25rem) {
  .fas-a11y-size-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fas-a11y *,
  .fas-a11y *::before,
  .fas-a11y *::after {
    animation: none !important;
    transition: none !important;
  }
}
