html.a11y-text-large {
  font-size: 125%;
}

html.a11y-text-larger {
  font-size: 150%;
}

html.a11y-spacing-comfortable main p,
html.a11y-spacing-comfortable main li,
html.a11y-spacing-comfortable main dt,
html.a11y-spacing-comfortable main dd {
  line-height: 1.6;
}

html.a11y-spacing-wide main p,
html.a11y-spacing-wide main li,
html.a11y-spacing-wide main dt,
html.a11y-spacing-wide main dd {
  line-height: 1.9;
}

html.a11y-underline-links main a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

html.a11y-pause-animations *,
html.a11y-pause-animations *::before,
html.a11y-pause-animations *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

html.a11y-larger-cursor a,
html.a11y-larger-cursor button,
html.a11y-larger-cursor input,
html.a11y-larger-cursor select,
html.a11y-larger-cursor textarea,
html.a11y-larger-cursor [role="button"],
html.a11y-larger-cursor [tabindex] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23000' d='M3 2l12 27 4-9 10 10 3-3-10-10 9-4z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' d='M3 2l12 27 4-9 10 10 3-3-10-10 9-4z'/%3E%3C/svg%3E") 2 2, pointer;
}

html.a11y-high-contrast {
  background: #fff !important;
  color: #000 !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 div,
html.a11y-high-contrast p,
html.a11y-high-contrast li,
html.a11y-high-contrast span,
html.a11y-high-contrast h1,
html.a11y-high-contrast h2,
html.a11y-high-contrast h3,
html.a11y-high-contrast h4 {
  color: #000 !important;
  background-color: #fff !important;
}

html.a11y-high-contrast a {
  color: #000 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
}

html.a11y-high-contrast .btn,
html.a11y-high-contrast .btn-primary,
html.a11y-high-contrast .btn--primary,
html.a11y-high-contrast .pc-header__cta,
html.a11y-high-contrast .pc-mobile-nav__cta,
html.a11y-high-contrast .pc-footer__cta {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

html.a11y-high-contrast *:focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 3px !important;
}

.pc-a11y-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10020;
}

.pc-a11y-widget__toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 0;
  background: #f97316;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.55);
}

.pc-a11y-widget__toggle svg {
  width: 26px;
  height: 26px;
}

.pc-a11y-widget__panel {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: 360px;
  max-height: min(76vh, 680px);
  overflow: auto;
  background: #fff;
  color: #111;
  border: 1px solid rgb(17 17 17 / 0.2);
  border-radius: 14px;
  box-shadow: 0 20px 38px -18px rgb(0 0 0 / 0.5);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.pc-a11y-widget__panel[hidden] {
  display: none !important;
}

.pc-a11y-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pc-a11y-widget__header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.pc-a11y-widget__close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgb(17 17 17 / 0.25);
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.pc-a11y-widget__intro {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.5;
}

.pc-a11y-widget__section {
  display: grid;
  gap: 8px;
}

.pc-a11y-widget__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.pc-a11y-widget__segmented {
  display: grid;
  gap: 6px;
}

.pc-a11y-widget__segmented button {
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgb(17 17 17 / 0.25);
  background: #fff;
  color: #111;
  cursor: pointer;
}

.pc-a11y-widget__segmented button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

.pc-a11y-widget__toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgb(17 17 17 / 0.14);
}

.pc-a11y-widget__toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: #f97316;
}

.pc-a11y-widget__footer {
  padding-top: 4px;
}

.pc-a11y-widget__reset {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgb(17 17 17 / 0.35);
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.pc-a11y-widget__toggle:focus-visible,
.pc-a11y-widget__close:focus-visible,
.pc-a11y-widget__segmented button:focus-visible,
.pc-a11y-widget__toggle-row:focus-within,
.pc-a11y-widget__reset:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

@media (max-width: 479px) {
  .pc-a11y-widget__panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    left: 0;
    bottom: 60px;
  }
}
