/* =============================================================================
   General
   ========================================================================== */

.accessibility {
  /* Sizes in px: the widget keeps its size and place when visitors enlarge the text */
  --accessibility-toggle: var(--accessibility-size, 48px);
  --accessibility-gap: 16px;
  --accessibility-shadow: 0 8px 32px rgba(var(--c-neutral-darkest, 0, 0, 0), 0.25);
  /* Color from the backend module, otherwise the one of the site template */
  --accessibility-primary: var(--accessibility-color, rgb(var(--c-primary, 0, 0, 0)));
  --accessibility-primary-dark: var(--accessibility-color-dark, rgb(var(--c-primary-dark, var(--c-primary, 0, 0, 0))));
  --accessibility-text: rgb(var(--c-neutral-darkest, 0, 0, 0));
  --accessibility-muted: rgb(var(--c-neutral-dark, 75, 75, 75));
  --accessibility-background: rgb(var(--c-neutral-lightest, 255, 255, 255));
  --accessibility-surface: rgb(var(--c-neutral-lighter, 240, 240, 240));
  --accessibility-line: rgb(var(--c-neutral-light, 200, 200, 200));
  /* Above the button of the CCM19 cookie banner (48 x 48 px, 40 px from the bottom, 15 px from the side,
     40 px from 1025 px on), its place can be changed in the backend module (--accessibility-cookie-*).
     The distances of the backend module (--accessibility-offset-*) come first, then those of the site
     template (--accessibility-left, --accessibility-bottom) */
  --accessibility-cookie-bottom-s: var(--accessibility-cookie-bottom, 40px);
  --accessibility-cookie-side-s: var(--accessibility-cookie-side, 15px);
  --accessibility-left-s: var(--accessibility-offset-side, var(--accessibility-left, var(--accessibility-cookie-side-s)));
  --accessibility-bottom-s: var(--accessibility-offset-bottom, var(--accessibility-bottom, calc(var(--accessibility-cookie-bottom-s) + 48px + var(--accessibility-gap))));

  position: fixed;
  z-index: calc(var(--z-popup, 60000) + 1);
  bottom: var(--accessibility-bottom-s);
  left: var(--accessibility-left-s);
  font-family: var(--f-family, inherit);
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 1025px) {
  .accessibility {
    --accessibility-cookie-side-s: var(--accessibility-cookie-side, 40px);
  }
}

/* Cookie button on the other side or none: the button sits as low as the cookie button would */
.accessibility.-cookie-none,
.accessibility.-right.-cookie-left,
.accessibility.-left.-cookie-right {
  --accessibility-bottom-s: var(--accessibility-offset-bottom, var(--accessibility-bottom, var(--accessibility-cookie-bottom-s)));
}

/* Button on the right: the same distances, measured from the right edge. The button stays on the side of the
   site, the visitor only moves the panel (data-accessibility-position on html) */
.accessibility.-right {
  right: var(--accessibility-left-s);
  left: auto;
}

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

/* Holds the SVG filters only; display: none would switch them off in Firefox */
.accessibility__filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.accessibility__icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

/* Site templates style every button globally (min-width, padding, colors, hover, pseudo icons).
   The :not(#\#) on the button rules lifts them above such selectors without matching anything else */
.accessibility__toggle:not(#\#),
.accessibility__close:not(#\#),
.accessibility__tile:not(#\#),
.accessibility__profile:not(#\#),
.accessibility__side:not(#\#),
.accessibility__reset:not(#\#) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  letter-spacing: normal;
  font: inherit;
  text-align: center;
  text-shadow: none;
  text-transform: none;
  transform: none;
  transition: none;
  cursor: pointer;
}

.accessibility__toggle:not(#\#)::before,
.accessibility__toggle:not(#\#)::after,
.accessibility__close:not(#\#)::before,
.accessibility__close:not(#\#)::after,
.accessibility__tile:not(#\#)::before,
.accessibility__tile:not(#\#)::after,
.accessibility__profile:not(#\#)::before,
.accessibility__profile:not(#\#)::after,
.accessibility__side:not(#\#)::before,
.accessibility__side:not(#\#)::after,
.accessibility__reset:not(#\#)::before,
.accessibility__reset:not(#\#)::after {
  content: none;
}

.accessibility__toggle:focus-visible,
.accessibility__close:focus-visible,
.accessibility__tile:focus-visible,
.accessibility__profile:focus-visible,
.accessibility__side:focus-visible,
.accessibility__reset:focus-visible,
.accessibility__link:focus-visible {
  outline: 3px solid var(--accessibility-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--accessibility-background);
}

/* =============================================================================
   Toggle
   ========================================================================== */

.accessibility__toggle:not(#\#) {
  position: relative;
  width: var(--accessibility-toggle);
  height: var(--accessibility-toggle);
  /* Square with a white border and shadow like the button of the CCM19 cookie banner below it */
  border: 1px solid #fff;
  color: #fff;
  background: var(--accessibility-primary);
  box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.5);
}

.accessibility__toggle:not(#\#):hover {
  color: #fff;
  background: var(--accessibility-primary-dark);
}

.accessibility__toggle .accessibility__icon {
  width: calc(var(--accessibility-toggle) * 0.75);
  height: calc(var(--accessibility-toggle) * 0.75);
}

/* Check in the corner while settings are on */
.accessibility__badge {
  display: flex;
  position: absolute;
  top: -7px;
  right: -7px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  color: #fff;
  background: rgb(var(--c-neutral-darkest, 0, 0, 0));
}

.accessibility__badge[hidden] {
  display: none;
}

.accessibility__toggle .accessibility__badge .accessibility__icon {
  width: 12px;
  height: 12px;
}

/* =============================================================================
   Panel: a modal <dialog> in the top layer at the edge of the website (see the end of the file).
   Bar in the main color at the top, light gray ground, white cards for the groups
   ========================================================================== */

.accessibility__panel {
  position: fixed;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: var(--accessibility-shadow);
  font-family: var(--f-family, inherit);
  font-size: 16px;
  line-height: 1.5;
}

.accessibility__panel[open] {
  display: flex;
  flex-direction: column;
}

/* The page stays visible, so changes show right away */
.accessibility__panel::backdrop {
  background: transparent;
}

/* Column: the footer at its end sticks to the bottom (margin-top auto when the content is short) */
.accessibility__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px;
}

/* =============================================================================
   Groups and tiles: white cards with a heading bar in the main color, light gray tiles
   ========================================================================== */

.accessibility__group {
  margin: 16px 0 0;
  padding: 14px;
  background: var(--accessibility-background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.accessibility__heading {
  margin: 0 0 12px;
  padding: 0 0 0 8px;
  border-left: 3px solid var(--accessibility-primary);
  color: var(--accessibility-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: var(--f-weight-b, 700);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accessibility__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accessibility__item {
  display: flex;
  margin: 0;
  padding: 0;
}

.accessibility__item[hidden] {
  display: none;
}

.accessibility__item::before,
.accessibility__item::after {
  content: none;
}

/* Same build in every tile: icon at the top, room for a name of two lines (one line in its middle), the level
   bars at the bottom. min-height fits all three, so tiles with and without bars are equally high */
.accessibility__tile:not(#\#) {
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 108px;
  padding: 14px 10px 10px;
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px transparent;
  font-size: 13px;
  line-height: 1.25;
  /* Long words break at the soft hyphens of the labels (e.g. Farbseh-schwäche) */
  hyphens: manual;
  overflow-wrap: break-word;
}

.accessibility__tile .accessibility__icon {
  width: 32px;
  height: 32px;
  color: var(--accessibility-primary);
}

.accessibility__tile:not(#\#):hover {
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px var(--accessibility-primary);
}

.accessibility__tile:not(#\#)[aria-pressed='true'] {
  color: #fff;
  background: var(--accessibility-primary);
  box-shadow: none;
}

.accessibility__tile:not(#\#)[aria-pressed='true']:hover {
  background: var(--accessibility-primary-dark);
}

.accessibility__tile[aria-pressed='true'] .accessibility__icon {
  color: inherit;
}

.accessibility__name {
  font-weight: var(--f-weight-sb, 600);
}

.accessibility__tile .accessibility__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
}

.accessibility__state {
  font-size: 12px;
}

/* Check in the corner of an active tile */
.accessibility__check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
}

.accessibility__tile[aria-pressed='true'] .accessibility__check {
  display: block;
}

.accessibility__tile .accessibility__check .accessibility__icon {
  width: 14px;
  height: 14px;
}

/* Levels as bars, filled up to the chosen one */
.accessibility__steps {
  display: flex;
  gap: 3px;
  margin-top: auto;
}

.accessibility__step {
  width: 14px;
  height: 4px;
  background: var(--accessibility-line);
}

.accessibility__step.-active {
  background: var(--accessibility-primary);
}

.accessibility__tile[aria-pressed='true'] .accessibility__step {
  background: rgba(255, 255, 255, 0.4);
}

.accessibility__tile[aria-pressed='true'] .accessibility__step.-active {
  background: #fff;
}

/* =============================================================================
   Profiles: rows with icon, name, the settings they switch on and a switch
   ========================================================================== */

.accessibility__group.-profiles .accessibility__tiles {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.accessibility__profile:not(#\#) {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px transparent;
  text-align: left;
}

.accessibility__profile:not(#\#):hover,
.accessibility__profile:not(#\#)[aria-pressed='true'] {
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px var(--accessibility-primary);
}

.accessibility__symbol {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--accessibility-primary);
  background: var(--accessibility-background);
}

.accessibility__profile[aria-pressed='true'] .accessibility__symbol {
  color: #fff;
  background: var(--accessibility-primary);
}

.accessibility__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.accessibility__profile .accessibility__name {
  font-size: 15px;
  line-height: 1.3;
}

.accessibility__description {
  color: var(--accessibility-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Switch: square track with a square knob, right when on */
.accessibility__switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  background: var(--accessibility-line);
}

.accessibility__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease-out;
}

.accessibility__profile[aria-pressed='true'] .accessibility__switch {
  background: var(--accessibility-primary);
}

.accessibility__profile[aria-pressed='true'] .accessibility__switch::after {
  transform: translateX(18px);
}

/* =============================================================================
   Head: title and intro on the left, the close button on the right, in line with the groups.
   Notes at the end of the body; footer always in reach: statement link on the left, reset on the right
   ========================================================================== */

/* Bar in the main color at the top: title and intro in white, close in white on the right */
.accessibility__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  margin-bottom: 2px;
  padding: 14px 20px;
  color: #fff;
  background: var(--accessibility-primary);
}

.accessibility__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.accessibility__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: var(--f-weight-b, 700);
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

.accessibility__intro {
  margin: 2px 0 0;
  padding: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

/* Close: small white square on the bar */
.accessibility__close:not(#\#) {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--accessibility-primary);
  background: #fff;
}

.accessibility__close:not(#\#):hover {
  color: #fff;
  background: var(--accessibility-text);
}

.accessibility__close:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px var(--accessibility-text);
}

.accessibility__close .accessibility__icon {
  width: 22px;
  height: 22px;
}

.accessibility__notes {
  margin-top: 16px;
}

.accessibility__note {
  margin: 2px 0 0;
  padding: 0;
  color: var(--accessibility-muted);
  font-size: 12px;
  line-height: 1.4;
}

.accessibility__footer {
  position: sticky;
  z-index: 1;
  bottom: 0;
  flex: none;
  margin: auto -20px 0;
  padding: 12px 20px;
  background: var(--accessibility-background);
  box-shadow: 0 -1px 0 var(--accessibility-line);
}

/* Side of the panel: two buttons joined like a switch, styled like the tiles, the corners
   of the buttons of the site template (--b-radius-s). Only with the panel at the side (up to 1599 px) */
.accessibility__position {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.accessibility__label {
  color: var(--accessibility-text);
  font-size: 14px;
  font-weight: var(--f-weight-sb, 600);
}

.accessibility__sides {
  display: flex;
  gap: 2px;
}

.accessibility__side:not(#\#) {
  min-width: 80px;
  padding: 8px 16px;
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px transparent;
  font-size: 14px;
  font-weight: var(--f-weight-sb, 600);
  line-height: 1.4;
}

.accessibility__side:not(#\#):first-child {
  border-radius: var(--b-radius-s, 0) 0 0 var(--b-radius-s, 0);
}

.accessibility__side:not(#\#):last-child {
  border-radius: 0 var(--b-radius-s, 0) var(--b-radius-s, 0) 0;
}

.accessibility__side:not(#\#):hover {
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px var(--accessibility-primary);
}

.accessibility__side:not(#\#)[aria-pressed='true'] {
  color: #fff;
  background: var(--accessibility-primary);
  box-shadow: none;
  cursor: default;
}

/* Room between the notes and the footer */
.accessibility__notes {
  padding-bottom: 20px;
}

.accessibility__actions {
  display: flex;
  align-items: center;
  gap: 12px 14px;
}

.accessibility__actions .accessibility__reset {
  margin-left: auto;
}

.accessibility__link:not(#\#) {
  color: var(--accessibility-text);
  font-size: 14px;
  font-weight: var(--f-weight-sb, 600);
  letter-spacing: normal;
  text-decoration: underline;
  text-transform: none;
  text-underline-offset: 0.2em;
}

.accessibility__link:not(#\#):hover {
  color: var(--accessibility-primary);
}

/* Like the tiles and the side switch: gray, a frame in the color of the site on hover, the corners of the
   buttons of the site template (--b-radius-s) */
.accessibility__reset:not(#\#) {
  flex: none;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--b-radius-s, 0);
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px transparent;
  font-size: 14px;
  font-weight: var(--f-weight-sb, 600);
  line-height: 1.4;
}

.accessibility__reset:not(#\#):hover {
  color: var(--accessibility-text);
  background: var(--accessibility-surface);
  box-shadow: inset 0 0 0 2px var(--accessibility-primary);
}

.accessibility__reset .accessibility__icon {
  width: 18px;
  height: 18px;
  color: var(--accessibility-primary);
}

.accessibility__reset:not(#\#):disabled {
  color: var(--accessibility-muted);
  background: var(--accessibility-surface);
  box-shadow: none;
  cursor: default;
}

.accessibility__reset:disabled .accessibility__icon {
  color: inherit;
}

/* =============================================================================
   Panel at the edge of the website:
   - laptops, tablets, phones (up to 1599 px): over the full height at the edge of the button
     (left or right), the rest of the website stays visible
   - big screens (from 1600 px): at the bottom over the full width, at most half the window high,
     the setting groups side by side
   ========================================================================== */

@media (max-width: 1599px) {
  .accessibility .accessibility__panel {
    inset: 0 auto 0 0;
    width: min(440px, 100vw - 32px);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    box-shadow: 8px 0 32px rgba(var(--c-neutral-darkest, 0, 0, 0), 0.25);
  }

  /* Button on the right or the visitor's choice: the panel comes in from the right edge */
  html[data-accessibility-position='right'] .accessibility .accessibility__panel,
  html:not([data-accessibility-position]) .accessibility.-right .accessibility__panel {
    inset: 0 0 0 auto;
    box-shadow: -8px 0 32px rgba(var(--c-neutral-darkest, 0, 0, 0), 0.25);
  }

  /* Slides in quickly and settles softly, slides out more slowly back to its edge and fades */
  .accessibility .accessibility__panel[open] {
    --accessibility-from: -100%;
    animation: accessibility-drawer-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html[data-accessibility-position='right'] .accessibility .accessibility__panel[open],
  html:not([data-accessibility-position]) .accessibility.-right .accessibility__panel[open] {
    --accessibility-from: 100%;
  }

  .accessibility .accessibility__panel[open].-closing {
    animation: accessibility-drawer-out 0.5s cubic-bezier(0.55, 0, 0.75, 0.3) forwards;
  }
}

@keyframes accessibility-drawer-in {
  from {
    transform: translateX(var(--accessibility-from));
    opacity: 0.4;
  }
}

@keyframes accessibility-drawer-out {
  to {
    transform: translateX(var(--accessibility-from));
    opacity: 0;
  }
}

@media (max-width: 599px) {
  .accessibility .accessibility__note.-shortcut {
    display: none;
  }

  .accessibility .accessibility__head {
    padding: 12px;
  }

  .accessibility .accessibility__body {
    padding: 0 12px;
  }

  .accessibility .accessibility__group {
    margin-top: 12px;
    padding: 12px;
  }

  .accessibility .accessibility__tiles {
    gap: 8px;
  }

  .accessibility .accessibility__footer {
    margin-inline: -12px;
    padding: 12px;
  }
}

@media (min-width: 1600px) {
  .accessibility {
    /* In vw: the same in every element that uses it */
    --accessibility-sheet-inline: max(24px, (100vw - 1800px) / 2);
  }

  .accessibility .accessibility__panel {
    inset: auto 0 0;
    width: 100%;
    max-height: 50vh;
    max-height: 50dvh;
    box-shadow: 0 -8px 32px rgba(var(--c-neutral-darkest, 0, 0, 0), 0.25);
  }

  .accessibility .accessibility__panel[open] {
    animation: accessibility-sheet-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .accessibility .accessibility__panel[open].-closing {
    animation: accessibility-sheet-out 0.5s cubic-bezier(0.55, 0, 0.75, 0.3) forwards;
  }

  /* Head in one row: title and intro on the left, close on the right */
  .accessibility .accessibility__head {
    align-items: center;
    padding: 8px var(--accessibility-sheet-inline);
  }

  .accessibility .accessibility__titles {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 16px;
  }

  .accessibility .accessibility__intro {
    margin: 0;
  }

  /* Profiles over the full width, below them the setting groups and the footer in the free space beside them */
  .accessibility .accessibility__body {
    flex-flow: row wrap;
    align-items: stretch;
    gap: 0 16px;
    padding: 0 var(--accessibility-sheet-inline) 16px;
  }

  .accessibility .accessibility__group.-profiles {
    flex: 1 0 100%;
  }

  .accessibility .accessibility__group.-profiles .accessibility__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Profiles: short, the full list stays in the accessible description */
  .accessibility .accessibility__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Setting groups side by side, each in one row as wide as its tiles */
  .accessibility .accessibility__settings {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0 16px;
  }

  .accessibility .accessibility__group:not(.-profiles) .accessibility__tiles {
    grid-template-columns: none;
    grid-auto-columns: 100px;
    grid-auto-flow: column;
  }

  .accessibility .accessibility__tile:not(#\#) {
    min-height: 100px;
    padding: 12px 8px 8px;
    font-size: 12px;
  }

  /* Notes in the last row, below the footer */
  .accessibility .accessibility__notes {
    flex: 1 0 100%;
    order: 1;
    margin-top: 12px;
    padding-bottom: 0;
  }

  .accessibility .accessibility__note {
    display: inline;
    margin: 0 16px 0 0;
  }

  /* Footer in the free space beside the setting groups, at the right edge. It fills that space (at least
     260 px, otherwise it moves to a row of its own); how wide it is decides the layout of the actions below */
  .accessibility .accessibility__footer {
    position: static;
    flex: 1 0 260px;
    align-self: flex-end;
    margin: 16px 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    container-type: inline-size;
  }

  .accessibility .accessibility__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .accessibility .accessibility__actions .accessibility__reset {
    margin-left: 0;
  }

  /* Footer in a row of its own: button and link side by side at the left edge, the button first */
  @container (min-width: 520px) {
    .accessibility .accessibility__actions {
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      gap: 12px 24px;
    }

    .accessibility .accessibility__actions .accessibility__reset {
      order: -1;
    }
  }

  /* On the gray of the panel instead of the white footer: white like the boxes of the groups */
  .accessibility .accessibility__reset:not(#\#),
  .accessibility .accessibility__reset:not(#\#):hover,
  .accessibility .accessibility__reset:not(#\#):disabled {
    background: var(--accessibility-background);
  }
  /* Panel at the bottom: no side to choose */
  .accessibility .accessibility__position {
    display: none;
  }
}

@keyframes accessibility-sheet-in {
  from {
    transform: translateY(100%);
    opacity: 0.4;
  }
}

@keyframes accessibility-sheet-out {
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accessibility .accessibility__panel[open],
  .accessibility .accessibility__panel[open].-closing {
    animation: none;
  }

  .accessibility__switch::after {
    transition: none;
  }
}

/* =============================================================================
   Windows high contrast
   ========================================================================== */

@media (forced-colors: active) {
  .accessibility__toggle:not(#\#),
  .accessibility__panel,
  .accessibility__tile:not(#\#),
  .accessibility__profile:not(#\#),
  .accessibility__side:not(#\#),
  .accessibility__reset:not(#\#),
  .accessibility__switch {
    border: 1px solid CanvasText;
  }

  .accessibility__tile:not(#\#)[aria-pressed='true'],
  .accessibility__profile[aria-pressed='true'] .accessibility__switch {
    border-color: Highlight;
    color: HighlightText;
    background: Highlight;
  }

  .accessibility__step,
  .accessibility__switch::after {
    background: CanvasText;
  }

  .accessibility__step.-active,
  .accessibility__tile:not(#\#)[aria-pressed='true'] .accessibility__step.-active {
    background: Highlight;
  }

  .accessibility__toggle:focus-visible,
  .accessibility__close:focus-visible,
  .accessibility__tile:focus-visible,
  .accessibility__profile:focus-visible,
  .accessibility__side:not(#\#)[aria-pressed='true'] {
    border-color: Highlight;
    color: HighlightText;
    background: Highlight;
  }

  .accessibility__side:focus-visible,
  .accessibility__reset:focus-visible,
  .accessibility__link:focus-visible {
    outline-color: Highlight;
  }
}
