/* Widget Preferensi Aksesibilitas — PPID BPMP Lampung */

.a11y-root {
  --a11y-navy: #062B5C;
  --a11y-blue: #0B5ED7;
  --a11y-blue-dark: #0848A8;
  --a11y-gold: #D9A62E;
  --a11y-panel-w: min(520px, calc(100vw - 1rem));
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.a11y-fab {
  position: fixed;
  z-index: 9990;
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(145deg, #0B5ED7 0%, #0848A8 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 94, 215, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.a11y-fab:hover { box-shadow: 0 14px 32px rgba(11, 94, 215, 0.55); }
.a11y-fab:focus-visible {
  outline: 3px solid var(--a11y-gold);
  outline-offset: 3px;
}
.a11y-fab i,
.a11y-fab svg {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 1.55rem;
  line-height: 1;
}

.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(3, 31, 70, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.a11y-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.a11y-panel {
  position: fixed;
  z-index: 9992;
  width: var(--a11y-panel-w);
  max-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(6, 43, 92, 0.28);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.a11y-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.a11y-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--a11y-navy);
  color: #fff;
}
.a11y-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.a11y-close:hover { background: rgba(255,255,255,0.12); }
.a11y-close i { color: #fff; font-size: 0.9rem; }
.a11y-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.a11y-kbd {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.a11y-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: var(--a11y-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.a11y-statement:hover { background: var(--a11y-blue-dark); }
.a11y-statement i { color: #fff; font-size: 1rem; }

.a11y-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem 0.55rem;
  background: #fff;
  border-bottom: 1px solid #E3EAF4;
}
.a11y-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  min-height: 3.15rem;
  min-width: 0;
  padding: 0.4rem 0.55rem 0.3rem;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  background: transparent;
  color: #64748B;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
  transition: color 0.15s ease, background 0.15s ease;
}
.a11y-tab-label {
  display: block;
  width: 100%;
  line-height: 1.45;
  padding: 0.15rem 0 0;
}
.a11y-tab-indicator {
  display: block;
  width: calc(100% - 0.35rem);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  flex-shrink: 0;
}
.a11y-tab:hover {
  color: var(--a11y-navy);
  background: #F8FAFC;
}
.a11y-tab.is-active {
  background: #F4F8FD;
  color: var(--a11y-blue);
  box-shadow: none;
}
.a11y-tab.is-active .a11y-tab-indicator {
  background: var(--a11y-blue);
}

.a11y-tab-panel { display: none; }
.a11y-tab-panel.is-active { display: block; }

.a11y-body {
  overflow-y: auto;
  padding: 1rem 1rem 1.15rem;
  background: #F4F8FD;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #E3EAF4;
  border-radius: 0.75rem;
  margin-bottom: 0.65rem;
}
.a11y-row-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--a11y-navy);
}
.a11y-row-label i {
  width: 1.25rem;
  text-align: center;
  color: var(--a11y-blue);
}

.a11y-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.a11y-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.a11y-switch span {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
}
.a11y-switch span::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  left: 0.2rem;
  top: 0.175rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.a11y-switch input:checked + span { background: var(--a11y-blue); }
.a11y-switch input:checked + span::after { transform: translateX(1.2rem); }
.a11y-switch input:focus-visible + span {
  outline: 2px solid var(--a11y-gold);
  outline-offset: 2px;
}

.a11y-profile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #E3EAF4;
  border-radius: 0.75rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--a11y-navy);
  text-align: left;
}
.a11y-profile-toggle i:first-child { color: var(--a11y-blue); margin-right: 0.35rem; }
.a11y-profile-toggle .fa-chevron-down {
  font-size: 0.75rem;
  opacity: 0.6;
  color: #64748B;
}
.a11y-profile-list {
  display: none;
  margin: -0.35rem 0 0.65rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #E3EAF4;
  border-radius: 0.75rem;
}
.a11y-profile-list.is-open { display: block; }
.a11y-profile-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
}
.a11y-profile-item:hover,
.a11y-profile-item.is-active {
  background: #EEF4FB;
  color: var(--a11y-navy);
}
.a11y-profile-item i {
  width: 1.1rem;
  text-align: center;
  color: var(--a11y-blue);
  flex-shrink: 0;
}

.a11y-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.75rem;
  padding: 0.65rem 0.5rem;
  background: #EEF2F7;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.a11y-tile:hover { background: #E5ECF6; }
.a11y-tile.is-on {
  border-color: var(--a11y-blue);
  background: #E8F1FD;
}
.a11y-tile > i {
  font-size: 1.2rem;
  color: var(--a11y-navy);
  line-height: 1;
}
.a11y-tile > span:not(.a11y-tile-label):not(.a11y-step-val) {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--a11y-navy);
  line-height: 1.35;
  padding: 0 0.15rem;
}

.a11y-tile-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--a11y-navy);
  line-height: 1.35;
  padding: 0 0.15rem;
}

.a11y-tile-step {
  cursor: default;
  min-height: 6rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.a11y-tile-step:hover { background: #EEF2F7; }

.a11y-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.15rem;
}
.a11y-stepper button {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 9999px;
  background: var(--a11y-navy);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.a11y-stepper button:hover {
  background: var(--a11y-blue);
  transform: scale(1.05);
}
.a11y-stepper button i {
  font-size: 0.75rem;
  color: #fff !important;
  line-height: 1;
  pointer-events: none;
}
.a11y-step-val {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--a11y-navy);
  min-width: 2.6rem;
  text-align: center;
}

.a11y-tile-select {
  cursor: default;
  gap: 0.25rem;
}
.a11y-tile-select select {
  width: 100%;
  padding: 0.15rem 0.1rem;
  font-size: 0.58rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-radius: 0.3rem;
  background: #fff;
  color: var(--a11y-navy);
  cursor: pointer;
}

.a11y-move-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 2px solid var(--a11y-navy);
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--a11y-navy);
  font-family: inherit;
}
.a11y-move-toggle i:first-child { margin-right: 0.35rem; color: var(--a11y-blue); }

.a11y-move-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.a11y-move-grid.is-open { display: grid; }

.a11y-move-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  background: #EEF2F7;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--a11y-navy);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.a11y-move-btn.is-active,
.a11y-move-btn:hover {
  border-color: var(--a11y-blue);
  background: #E8F1FD;
}
.a11y-move-btn i {
  width: 0.95rem;
  text-align: center;
  color: var(--a11y-blue);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.a11y-action-btn i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.a11y-widget-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.a11y-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  background: #fff;
  border: 2px solid #B91C1C;
  border-radius: 0.6rem;
  color: #B91C1C;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.a11y-action-btn:hover { background: #FEF2F2; }

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.a11y-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.5rem;
  padding: 0.65rem 0.45rem;
  background: #EEF2F7;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.a11y-card:hover { background: #E5ECF6; }
.a11y-card.is-on {
  border-color: var(--a11y-blue);
  background: #E8F1FD;
}
.a11y-card-ico {
  font-size: 1.35rem;
  color: var(--a11y-navy);
  line-height: 1;
}
.a11y-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--a11y-navy);
  line-height: 1.25;
}
.a11y-card select {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.2rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-radius: 0.35rem;
  background: #fff;
  color: var(--a11y-navy);
  cursor: pointer;
}
.a11y-card select:focus {
  outline: 2px solid var(--a11y-blue);
  outline-offset: 1px;
}

.a11y-foot {
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-top: 1px solid #E3EAF4;
  text-align: center;
}
.a11y-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.a11y-reset:hover { color: var(--a11y-navy); }
.a11y-report {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--a11y-navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.a11y-report:hover { background: #031F46; color: #fff; }

.a11y-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 31, 70, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.a11y-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.a11y-modal-box {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.a11y-modal-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--a11y-navy);
}
.a11y-modal-box p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
}
.a11y-modal-close {
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--a11y-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Reading mask overlay */
#a11yReadingMask {
  position: fixed;
  inset: 0;
  z-index: 9980;
  pointer-events: none;
  display: none;
}
html.a11y-mask-on #a11yReadingMask { display: block; }
#a11yReadingMask::before,
#a11yReadingMask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
}
#a11yReadingMask::before { top: 0; height: var(--a11y-mask-top, 40%); }
#a11yReadingMask::after { bottom: 0; top: var(--a11y-mask-bottom, 50%); }

#a11yReadGuide {
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  background: #D9A62E;
  box-shadow: 0 0 12px rgba(217, 166, 46, 0.8);
  z-index: 9981;
  pointer-events: none;
  display: none;
  transform: translateY(-50%);
}
html.a11y-read-guide #a11yReadGuide { display: block; }

#a11yMagnifier {
  position: fixed;
  z-index: 9982;
  max-width: 200px;
  padding: 0.45rem 0.6rem;
  background: #062B5C;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  pointer-events: none;
  display: none;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

#a11ySlowCursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #D9A62E;
  border: 3px solid #062B5C;
  z-index: 9983;
  pointer-events: none;
  display: none;
}

/* Widget positions */
.a11y-root .a11y-fab,
.a11y-root .a11y-panel { position: fixed; }
.a11y-pos-br .a11y-fab { right: 1.25rem; bottom: 1.25rem; left: auto; top: auto; }
.a11y-pos-br .a11y-panel { right: 1rem; bottom: 5.5rem; left: auto; top: auto; }
.a11y-pos-bc .a11y-fab { left: 50%; bottom: 1.25rem; right: auto; top: auto; transform: translateX(-50%); }
.a11y-pos-bc .a11y-panel { left: 50%; bottom: 5.5rem; right: auto; top: auto; transform: translateX(-50%); }
.a11y-pos-bl .a11y-fab { left: 1.25rem; bottom: 1.25rem; right: auto; top: auto; }
.a11y-pos-bl .a11y-panel { left: 1rem; bottom: 5.5rem; right: auto; top: auto; }
.a11y-pos-cl .a11y-fab { left: 1.25rem; top: 50%; bottom: auto; right: auto; transform: translateY(-50%); }
.a11y-pos-cl .a11y-panel { left: 5rem; top: 50%; bottom: auto; right: auto; transform: translateY(-50%); }
.a11y-pos-tl .a11y-fab { left: 1.25rem; top: 1.25rem; bottom: auto; right: auto; }
.a11y-pos-tl .a11y-panel { left: 1rem; top: 5.5rem; bottom: auto; right: auto; }
.a11y-pos-tc .a11y-fab { left: 50%; top: 1.25rem; bottom: auto; right: auto; transform: translateX(-50%); }
.a11y-pos-tc .a11y-panel { left: 50%; top: 5.5rem; bottom: auto; right: auto; transform: translateX(-50%); }
.a11y-pos-tr .a11y-fab { right: 1.25rem; top: 1.25rem; bottom: auto; left: auto; }
.a11y-pos-tr .a11y-panel { right: 1rem; top: 5.5rem; bottom: auto; left: auto; }
.a11y-pos-cr .a11y-fab { right: 1.25rem; top: 50%; bottom: auto; left: auto; transform: translateY(-50%); }
.a11y-pos-cr .a11y-panel { right: 5rem; top: 50%; bottom: auto; left: auto; transform: translateY(-50%); }
.a11y-root.is-fab-hidden .a11y-fab { display: none !important; }

/* Page accessibility modes */
html { --a11y-font-pct: 100; --a11y-lh-pct: 100; --a11y-ls-pct: 100; --a11y-zoom-pct: 100; }
html body {
  font-size: calc(100% * var(--a11y-font-pct) / 100);
  line-height: calc(1.5 * var(--a11y-lh-pct) / 100);
  letter-spacing: calc(0em + (var(--a11y-ls-pct) - 100) * 0.001em);
}
html.a11y-content-scale body { zoom: calc(var(--a11y-zoom-pct) / 100); }

html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert img,
html.a11y-invert video { filter: invert(1) hue-rotate(180deg); }

html.a11y-contrast-light body { background: #fff !important; color: #111 !important; }
html.a11y-contrast-dark body { background: #0a0a0a !important; color: #f5f5f5 !important; }
html.a11y-contrast-dark .site-header,
html.a11y-contrast-dark .site-footer,
html.a11y-contrast-dark main { background: #111 !important; color: #f5f5f5 !important; }

html.a11y-contrast-high body,
html.a11y-contrast-high .site-header,
html.a11y-contrast-high .site-footer,
html.a11y-contrast-high main {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast-high a { color: #FFE566 !important; text-decoration: underline !important; }

html.a11y-contrast-smart body { filter: contrast(1.2) saturate(1.1); }

html.a11y-large { font-size: 112.5%; }
html.a11y-xlarge { font-size: 125%; }

html.a11y-contrast body {
  background: #0a0a0a !important;
  color: #f5f5f5 !important;
}
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer,
html.a11y-contrast main,
html.a11y-contrast .bg-white,
html.a11y-contrast .bg-ppid-bg,
html.a11y-contrast .bg-ppid-light,
html.a11y-contrast .bg-ppid-card {
  background: #111 !important;
  color: #f5f5f5 !important;
}
html.a11y-contrast a { color: #FFE566 !important; }
html.a11y-contrast .text-navy,
html.a11y-contrast .text-ppid-text { color: #fff !important; }
html.a11y-contrast .text-ppid-muted { color: #d1d5db !important; }

html.a11y-dyslexia body {
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important;
  word-spacing: 0.12em;
}

html.a11y-readable body {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.05em;
}

html.a11y-align-right body { text-align: right !important; }
html.a11y-align-center body { text-align: center !important; }
html.a11y-align-left body { text-align: left !important; }

html.a11y-cursor-black,
html.a11y-cursor-black * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M4 4l20 8-8 2-2 8z'/%3E%3C/svg%3E") 4 4, auto !important; }
html.a11y-cursor-white,
html.a11y-cursor-white * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='1' d='M4 4l20 8-8 2-2 8z'/%3E%3C/svg%3E") 4 4, auto !important; }
html.a11y-cursor-slow,
html.a11y-cursor-slow * { cursor: none !important; }

html.a11y-hide-images img,
html.a11y-hide-images picture,
html.a11y-hide-images svg:not(.a11y-root svg) { visibility: hidden !important; }

html.a11y-mono { filter: grayscale(1); }
html.a11y-sat-high { filter: saturate(1.8); }
html.a11y-sat-low { filter: saturate(0.35); }
html.a11y-blue-filter { filter: sepia(0.25) hue-rotate(180deg); }

html.a11y-hl-links a {
  outline: 2px solid #D9A62E !important;
  background: rgba(217, 166, 46, 0.15) !important;
}
html.a11y-hl-headings h1,
html.a11y-hl-headings h2,
html.a11y-hl-headings h3,
html.a11y-hl-headings h4,
html.a11y-hl-headings h5,
html.a11y-hl-headings h6 {
  outline: 2px solid #0B5ED7 !important;
  background: rgba(11, 94, 215, 0.08) !important;
}
html.a11y-hl-hover *:hover { outline: 2px dashed #D9A62E !important; }
html.a11y-hl-focus *:focus { outline: 3px solid #D9A62E !important; outline-offset: 2px; }
html.a11y-focus-indicator *:focus-visible {
  outline: 4px solid #D9A62E !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(217, 166, 46, 0.35) !important;
}

html.a11y-content-filter .header-ornament,
html.a11y-content-filter .logo-partner,
html.a11y-content-filter .header-berakhlak,
html.a11y-content-filter .hero-partners-mobile { display: none !important; }

html[data-a11y-bg="white"] body { background: #fff !important; }
html[data-a11y-bg="cream"] body { background: #FFF8E7 !important; }
html[data-a11y-bg="dark"] body { background: #1a1a1a !important; }
html[data-a11y-bg="yellow"] body { background: #FFFDE7 !important; }

html[data-a11y-text="black"] body { color: #000 !important; }
html[data-a11y-text="navy"] body { color: #062B5C !important; }
html[data-a11y-text="white"] body { color: #fff !important; }

html[data-a11y-heading="navy"] h1,
html[data-a11y-heading="navy"] h2,
html[data-a11y-heading="navy"] h3,
html[data-a11y-heading="navy"] h4,
html[data-a11y-heading="navy"] h5,
html[data-a11y-heading="navy"] h6 { color: #062B5C !important; }
html[data-a11y-heading="gold"] h1,
html[data-a11y-heading="gold"] h2,
html[data-a11y-heading="gold"] h3,
html[data-a11y-heading="gold"] h4,
html[data-a11y-heading="gold"] h5,
html[data-a11y-heading="gold"] h6 { color: #D9A62E !important; }
html[data-a11y-heading="black"] h1,
html[data-a11y-heading="black"] h2,
html[data-a11y-heading="black"] h3,
html[data-a11y-heading="black"] h4,
html[data-a11y-heading="black"] h5,
html[data-a11y-heading="black"] h6 { color: #000 !important; }

html.a11y-read-mode .site-header,
html.a11y-read-mode .site-footer,
html.a11y-read-mode .a11y-root .a11y-fab {
  display: none !important;
}
html.a11y-read-mode main {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.25rem 3rem;
}
html.a11y-read-mode body { background: #fff !important; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html.a11y-cb-gray { filter: grayscale(1); }
html.a11y-cb-protanopia { filter: url("#a11yFilterProtanopia"); }
html.a11y-cb-deuteranopia { filter: url("#a11yFilterDeuteranopia"); }
html.a11y-cb-tritanopia { filter: url("#a11yFilterTritanopia"); }

html.a11y-voice-focus :focus {
  outline: 3px solid var(--a11y-gold) !important;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .a11y-panel {
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    max-height: calc(100vh - 6rem);
    transform: none !important;
  }
  .a11y-tabs {
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.45rem;
  }
  .a11y-tab {
    min-height: 2.85rem;
    padding: 0.35rem 0.35rem 0.25rem;
    font-size: 0.75rem;
    gap: 0.35rem;
  }
  .a11y-tab-label {
    padding-top: 0.1rem;
  }
  .a11y-pos-bc .a11y-panel,
  .a11y-pos-tc .a11y-panel,
  .a11y-pos-cl .a11y-panel,
  .a11y-pos-cr .a11y-panel { transform: none !important; }
  .a11y-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a11y-fab { right: 1rem !important; bottom: 1rem !important; left: auto !important; top: auto !important; transform: none !important; }
}
