@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

a.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
a.skip:focus {
  top: 12px;
}

.a11y-root {
  font-family: "Wix Madefor Text", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
  color: #111;
}
body .a11y-root,
body .a11y-root * {
  letter-spacing: normal;
  word-spacing: normal;
  font-family: "Wix Madefor Text", "Helvetica Neue", sans-serif;
}

body .a11y-root .a11y-launcher {
  background: #111;
  color: #fff;
  border-color: #111;
}
.a11y-launcher {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}
.a11y-launcher svg { display: block; flex: none; }
.a11y-launcher:hover { background: #000; }
body:has(.gdpr-cookie-bar:not([hidden])) .a11y-launcher {
  bottom: calc(8.5rem + env(safe-area-inset-bottom));
}
@media (max-width: 799px) {
  .a11y-launcher { width: 56px; padding: 0; }
  .a11y-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body:has(.gdpr-cookie-bar:not([hidden])) .a11y-launcher {
    bottom: calc(12.5rem + env(safe-area-inset-bottom));
  }
}

.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 91;
  background: rgba(17, 17, 17, 0.28);
}
.a11y-backdrop[hidden],
.a11y-dialog[hidden],
.a11y-guide[hidden] { display: none !important; }

.a11y-dialog {
  position: fixed;
  z-index: 92;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 24px));
  max-height: min(80vh, 640px);
  margin: 0;
  padding: 0;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  animation: a11y-in 160ms ease-out;
}
body:has(.gdpr-cookie-bar:not([hidden])) .a11y-dialog {
  bottom: calc(8.5rem + 68px + env(safe-area-inset-bottom));
  max-height: min(70vh, 640px);
}
@media (max-width: 799px) {
  body:has(.gdpr-cookie-bar:not([hidden])) .a11y-dialog {
    bottom: calc(12.5rem + 68px + env(safe-area-inset-bottom));
  }
}
@keyframes a11y-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .a11y-dialog { animation: none; }
}

.a11y-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px 18px;
  border-bottom: 1px solid #e7e7e7;
}
.a11y-dialog h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}
.a11y-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  cursor: pointer;
}
.a11y-close:hover { background: #f6f5f2; }
.a11y-dialog-body {
  overflow: auto;
  padding: 14px 18px 18px;
}
.a11y-root fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.a11y-root legend {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e5e5e;
  font-size: 0.75rem;
}
.a11y-root legend {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e5e5e;
}
body .a11y-root legend { letter-spacing: 0.08em; }
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.a11y-row-label { font-weight: 600; font-size: 0.95rem; }
.a11y-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fff;
}
.a11y-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.a11y-stepper button:hover { background: #f6f5f2; }
.a11y-stepper button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.a11y-value {
  min-width: 4.6rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.a11y-toggle,
.a11y-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 14px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.a11y-toggle:hover,
.a11y-reset:hover { background: #f6f5f2; }
body .a11y-root .a11y-toggle[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}
.a11y-toggle[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}
.a11y-toggle[aria-pressed="true"]::after { content: "On"; font-weight: 500; }
.a11y-toggle[aria-pressed="false"]::after { content: "Off"; font-weight: 500; color: #5e5e5e; }
.a11y-toggle[aria-pressed="true"]::after { color: #fff; }
.a11y-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.a11y-choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
body .a11y-root .a11y-choices label:has(input:checked) {
  background: #111;
  color: #fff;
  border-color: #111;
}
.a11y-choices label:has(input:checked) {
  background: #111;
  color: #fff;
  border-color: #111;
}
.a11y-choices input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #fff;
}
.a11y-reset { justify-content: center; background: #f6f5f2; }
.a11y-note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #5e5e5e;
}
.a11y-note a { color: #111; font-weight: 600; }
.a11y-root :focus-visible {
  outline: 3px solid #0c6efc;
  outline-offset: 2px;
}
.a11y-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.a11y-guide {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 80;
  height: 64px;
  margin-top: -32px;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.18),
    rgba(17, 17, 17, 0.18) 28px,
    transparent 28px,
    transparent 36px,
    rgba(17, 17, 17, 0.18) 36px
  );
  pointer-events: none;
}

@media (forced-colors: active) {
  .a11y-launcher,
  .a11y-dialog,
  .a11y-close,
  .a11y-root button,
  .a11y-root a,
  .a11y-root label {
    forced-color-adjust: auto;
    border: 1px solid ButtonText;
  }
  .a11y-root :focus-visible,
  a.skip:focus {
    outline: 2px solid Highlight;
  }
}

/*
 * Page adjustments. The widget keeps its own colors.
 *
 * Written against the Policy Monster design system (.pm-* classes, DESIGN.md). The
 * cookie bar (.gdpr-cookie-bar) is already white-on-black at AA and is left
 * alone, so its consent controls never change shape under the person using them.
 */

/* Text size. The design system sizes type in rem, so scaling the root scales
   the page, and rem-based spacing grows with it so 200% text still fits. */
html[data-a11y-text="110"] { font-size: 110%; }
html[data-a11y-text="125"] { font-size: 125%; }
html[data-a11y-text="150"] { font-size: 150%; }
html[data-a11y-text="175"] { font-size: 175%; }
html[data-a11y-text="200"] { font-size: 200%; }

html[data-a11y-leading="relaxed"] body { line-height: 1.8; }
html[data-a11y-leading="loose"] body { line-height: 2.2; }
html[data-a11y-leading="relaxed"] body :is(p, li, dd, td, label):not(.a11y-root *) { line-height: 1.8 !important; }
html[data-a11y-leading="loose"] body :is(p, li, dd, td, label):not(.a11y-root *) { line-height: 2.2 !important; }
html[data-a11y-tracking="mid"] body { letter-spacing: 0.06em; }
html[data-a11y-tracking="max"] body { letter-spacing: 0.12em; }
html[data-a11y-words="mid"] body { word-spacing: 0.08em; }
html[data-a11y-words="max"] body { word-spacing: 0.16em; }

/* Readable font: swap the design system's font tokens, so every component that
   reads them follows without an element list to keep in sync. Code stays mono. */
html[data-a11y-font="1"] {
  --pm-font-display: "Atkinson Hyperlegible", "Helvetica Neue", sans-serif;
  --pm-font-text: "Atkinson Hyperlegible", "Helvetica Neue", sans-serif;
}
html[data-a11y-font="1"] body {
  font-family: "Atkinson Hyperlegible", "Helvetica Neue", sans-serif;
}

html[data-a11y-align="left"] body :is(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption):not(.a11y-root *) {
  text-align: left !important;
}

/* --- High contrast: black on white, blue underlined links ------------------ */

html[data-a11y-contrast="high"] body {
  background: #fff !important;
  color: #000 !important;
}
html[data-a11y-contrast="high"] body :is(header, main, footer, section, article, aside, form, fieldset, legend, details, summary, figure, blockquote, dl, pre, div, p, li, dt, dd, h1, h2, h3, h4, h5, span, label, td, th, figcaption, nav, ul, ol, table, tr):not(.a11y-root, .a11y-root *, .gdpr-cookie-bar, .gdpr-cookie-bar *, .pm-skeleton, .pm-btn, .pm-btn *, [class*="scrim"], [class*="backdrop"], [class*="__fade"]) {
  background-color: #fff !important;
  background-image: none !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}
html[data-a11y-contrast="high"] body a:not(.a11y-root a, .gdpr-cookie-bar a, .pm-btn) {
  color: #0000ee !important;
  background-color: transparent !important;
  text-decoration: underline !important;
}
/* Buttons, and links styled as buttons, are one control type: one look. */
html[data-a11y-contrast="high"] body :is(button, .pm-btn):not(.a11y-root *, .a11y-launcher, .gdpr-cookie-bar *) {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
}
html[data-a11y-contrast="high"] body .pm-btn * { color: #fff !important; }
html[data-a11y-contrast="high"] body :is(input, textarea, select):not(.a11y-root *, .gdpr-cookie-bar *) {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

/* Placeholders stay visible as placeholders rather than vanishing into white. */
html[data-a11y-contrast="high"] body .pm-skeleton {
  background: #767676 !important;
}

/* --- Dark ------------------------------------------------------------------ */

html[data-a11y-contrast="dark"] body {
  background: #0e0e0e !important;
  color: #f4f4f4 !important;
}
html[data-a11y-contrast="dark"] body :is(header, main, footer, section, article, aside, form, fieldset, legend, details, summary, figure, blockquote, dl, pre, div, p, li, dt, dd, h1, h2, h3, h4, h5, span, label, td, th, figcaption, nav, ul, ol, table, tr):not(.a11y-root, .a11y-root *, .gdpr-cookie-bar, .gdpr-cookie-bar *, .pm-skeleton, .pm-btn, .pm-btn *, [class*="scrim"], [class*="backdrop"], [class*="__fade"]) {
  background-color: #0e0e0e !important;
  background-image: none !important;
  color: #f4f4f4 !important;
  border-color: #6b6b6b !important;
  box-shadow: none !important;
}
html[data-a11y-contrast="dark"] body a:not(.a11y-root a, .gdpr-cookie-bar a, .pm-btn) {
  color: #9ec1ff !important;
  background-color: transparent !important;
  text-decoration: underline !important;
}
html[data-a11y-contrast="dark"] body :is(button, .pm-btn):not(.a11y-root *, .a11y-launcher, .gdpr-cookie-bar *) {
  background: #f4f4f4 !important;
  color: #0e0e0e !important;
  border: 2px solid #f4f4f4 !important;
}
html[data-a11y-contrast="dark"] body .pm-btn * { color: #0e0e0e !important; }
html[data-a11y-contrast="dark"] body :is(input, textarea, select):not(.a11y-root *, .gdpr-cookie-bar *) {
  background: #1c1c1c !important;
  color: #f4f4f4 !important;
  border: 2px solid #9a9a9a !important;
}
html[data-a11y-contrast="dark"] body .pm-skeleton {
  background: #3a3a3a !important;
}

/* --- Both contrast modes: shapes that were drawn by shadow ---------------- */

/*
 * Contrast modes remove shadows and tinted fills, and anything whose outline
 * came only from those — cards, tiles, tags, floating toasts, the hero's
 * illustration — vanished into the page. Matched by naming pattern (BEM
 * blocks ending __card, __toast, …) as well as by component, so a new section
 * built the same way is covered without an edit here.
 */
html[data-a11y-contrast] body :is(
  .pm-card, .pm-alert, .pm-badge, .pm-empty, .pm-header, .pm-footer, .pm-sidebar, .pm-toast,
  [class*="__card"]:not([class*="__card-"]),
  [class*="__toast"]:not([class*="__toast-"]),
  [class*="__url"]:not([class*="__url-"]),
  [class*="__tag"]:not([class*="__tags"]),
  [class*="__badge"],
  [class*="__panel"],
  [class*="__tile"]
):not(.a11y-root, .a11y-root *, .gdpr-cookie-bar, .gdpr-cookie-bar *) {
  border: 2px solid currentColor !important;
}
/* Gradient fades are decoration that blends content into the page. Painted
   solid, they become a wall in front of whatever they were fading. */
html[data-a11y-contrast] body [class*="__fade"]:not(.a11y-root *) {
  display: none !important;
}
/* Placeholder bars (the hero's stand-in text lines) keep reading as placeholders. */
html[data-a11y-contrast="high"] body [class*="__line"]:not([class*="__lines"], .a11y-root *) {
  background: #767676 !important;
}
html[data-a11y-contrast="dark"] body [class*="__line"]:not([class*="__lines"], .a11y-root *) {
  background: #5a5a5a !important;
}
/* The launcher is near-black; on the dark theme it needs its own edge. */
html[data-a11y-contrast="dark"] .a11y-launcher {
  border-color: #f4f4f4 !important;
}

/* Grayscale on the root element. On any other element a filter becomes the
   containing block for fixed-position descendants, which detached toasts, the
   mobile sidebar and the cookie bar from the viewport. The root is exempt. */
html[data-a11y-gray="1"] {
  filter: grayscale(1);
}

html[data-a11y-links="1"] a:not(.a11y-root a, .gdpr-cookie-bar a) {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
  background-color: #fff3c4 !important;
  color: #000 !important;
}
html[data-a11y-headings="1"] :is(h1, h2, h3):not(.a11y-root *, .a11y-root) {
  outline: 3px solid #0c6efc;
  outline-offset: 4px;
}

html[data-a11y-cursor="1"] body,
html[data-a11y-cursor="1"] 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 d='M6 3 L6 26 L12.5 19.5 L18 30 L22.5 27.8 L17 17.5 L25 17.5 Z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
html[data-a11y-cursor="1"] :focus-visible {
  outline: 3px solid #0c6efc !important;
  outline-offset: 3px !important;
}
html[data-a11y-cursor="1"][data-a11y-contrast="high"] :focus-visible { outline-color: #000 !important; }
html[data-a11y-cursor="1"][data-a11y-contrast="dark"] :focus-visible { outline-color: #fff !important; }

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

/* Hide images: pictures and illustrations go; interface icons stay, because a
   menu or close button whose only visible content is its icon would otherwise
   become an empty box. */
html[data-a11y-images="hide"] body :is(img, video, picture, svg:not(.pm-icon)):not(.a11y-root *, .a11y-root) {
  opacity: 0 !important;
}
html[data-a11y-images="hide"] body :not(.a11y-root, .a11y-root *, .gdpr-cookie-bar, .gdpr-cookie-bar *) {
  background-image: none !important;
}
