:root {
  --a11y-focus-outline: 3px solid rgba(255, 73, 0, 0.9);
  --a11y-focus-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.a11y-skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100000;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  transform: translateY(-140%);
  transition: transform 0.15s ease;
}

.a11y-skip-link:focus,
.a11y-skip-link:focus-visible {
  transform: translateY(0);
  outline: var(--a11y-focus-outline);
  outline-offset: var(--a11y-focus-offset);
}

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

html[data-a11y-mode="1"] body {
  line-height: 1.7;
}

/* Better text contrast in a11y mode */
html[data-a11y-mode="1"] body {
  color: #111 !important;
}

html[data-a11y-mode="1"] .text-muted {
  color: #495057 !important;
}

html[data-a11y-mode="1"] ::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

/* Make primary (orange) text/links darker for contrast */
html[data-a11y-mode="1"] .text-primary,
html[data-a11y-mode="1"] a.text-primary {
  color: #b45309 !important;
}

html[data-a11y-mode="1"] .btn-primary {
  background-color: #b45309 !important;
  border-color: #b45309 !important;
}

html[data-a11y-mode="1"] .btn-light {
  color: #111 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

html[data-a11y-mode="1"] a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Touch targets: keep it scoped to common interactive UI */
html[data-a11y-mode="1"] .navbar .nav-link,
html[data-a11y-mode="1"] .dropdown-item,
html[data-a11y-mode="1"] .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

html[data-a11y-mode="1"] .a11y-high-contrast {
  filter: contrast(1.12);
}

html.a11y-focus-enabled :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--a11y-focus-outline) !important;
  outline-offset: var(--a11y-focus-offset) !important;
}

.a11y-toggle-link {
  cursor: pointer;
}

/* Always-visible accessibility control for mouse, keyboard and touch users. */
.a11y-floating-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100001;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #0875c9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.a11y-floating-toggle:hover,
.a11y-floating-toggle.is-active {
  background: #005da8;
}

.a11y-floating-toggle svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a11y-floating-toggle:focus-visible {
  outline: 3px solid #ff4900;
  outline-offset: 4px;
}

@media (max-width: 576px) {
  .a11y-floating-toggle {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

/* iOS tap/focus highlight on category toggles (keep keyboard focus via :focus-visible) */
.menu-group .menu-group-item .category-title {
  -webkit-tap-highlight-color: transparent;
}

.menu-group .menu-group-item .category-title,
.menu-group .menu-group-item .category-title * {
  color: #372b27 !important;
}

.menu-group .menu-group-item .category-title:hover,
.menu-group .menu-group-item .category-title:active,
.menu-group .menu-group-item .category-title:focus {
  background: transparent !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.a11y-floating-toggle {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.a11y-floating-toggle {
  width: clamp(48px, 5vw, 58px) !important;
  height: clamp(48px, 5vw, 58px) !important;
}
.a11y-floating-toggle img {
  width: 50% !important;
  height: 50% !important;
}
.a11y-floating-toggle.is-dragged {
  transform: none !important;
}
@media (max-width: 576px) {
  .a11y-floating-toggle {
    width: clamp(46px, 14vw, 54px) !important;
    height: clamp(46px, 14vw, 54px) !important;
  }
}

.a11y-settings-panel {
  position: fixed;
  right: 86px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2147483001;
  width: min(390px, calc(100vw - 110px));
  color: #151515;
  background: #f7f7f7;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-family: Arial, sans-serif;
}
.a11y-settings-panel[hidden] { display: none !important; }
.a11y-settings-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:#fff; border-bottom:1px solid #ddd; }
.a11y-settings-header h2 { margin:0; font-size:22px; font-weight:600; }
.a11y-settings-close { border:0; background:transparent; color:#f4511e; font-size:36px; line-height:24px; cursor:pointer; padding:0 2px; }
.a11y-settings-content { padding:20px 16px 16px; }
.a11y-settings-content h3 { margin:0 0 18px; font-size:20px; }
.a11y-setting-row { display:flex; align-items:center; justify-content:space-between; min-height:62px; margin:0 0 16px; padding:10px 12px; background:#fff; border:1px solid #c8c8c8; border-radius:14px; font-size:18px; font-weight:600; line-height:1.1; cursor:pointer; }
.a11y-setting-row input { position:absolute; opacity:0; pointer-events:none; }
.a11y-setting-row i { position:relative; width:44px; height:28px; flex:0 0 44px; border:2px solid #888; border-radius:18px; background:#fff; }
.a11y-setting-row i:after { content:''; position:absolute; width:19px; height:19px; left:3px; top:3px; border-radius:50%; background:#999; transition:.15s; }
.a11y-setting-row input:checked + i { background:#ff4b18; border-color:#ff4b18; }
.a11y-setting-row input:checked + i:after { left:20px; background:#fff; }
.a11y-font-card { padding:12px 10px 10px; background:#fff; border:1px solid #c8c8c8; border-radius:14px; }
.a11y-font-card strong { display:block; font-size:18px; margin-bottom:12px; }
.a11y-font-controls { display:flex; align-items:center; gap:8px; }
.a11y-font-controls button { width:34px; height:34px; border:2px solid #888; border-radius:50%; background:#fff; font-size:28px; line-height:22px; font-weight:bold; cursor:pointer; }
.a11y-font-controls input { flex:1; accent-color:#ff4b18; }
.a11y-font-labels { display:flex; justify-content:space-between; font-size:17px; font-weight:600; margin-top:8px; }
.a11y-font-labels output { display:none; }
html[data-a11y-high-contrast="1"] body { filter: contrast(1.25); }
html[data-a11y-monochrome="1"] body { filter: grayscale(1); }
html[data-a11y-font-scale="1"] body { font-size: calc(1em * var(--a11y-font-scale)); }
@media (max-width:576px) { .a11y-settings-panel { right:74px; width:calc(100vw - 90px); } .a11y-settings-header h2 { font-size:18px; } .a11y-settings-content h3 { font-size:18px; } .a11y-setting-row { font-size:16px; } }

.a11y-settings-backdrop { position:fixed; inset:0; z-index:2147483000; background:rgba(20,20,24,.58); }
.a11y-settings-backdrop[hidden] { display:none !important; }
.a11y-settings-panel-v2 {
  left:50% !important; right:auto !important; top:50% !important; transform:translate(-50%,-50%) !important;
  width:min(970px, calc(100vw - 32px)) !important; max-height:calc(100vh - 32px); overflow:auto;
  border:1px solid #e1e1e1 !important; border-radius:26px !important; background:#fff !important;
  box-shadow:0 24px 70px rgba(0,0,0,.32) !important; font-family:Arial,sans-serif !important;
}
.a11y-settings-panel-v2 .a11y-settings-header { padding:26px 42px !important; border-bottom:1px solid #ececec !important; background:#fff !important; justify-content:flex-start !important; gap:28px; }
.a11y-settings-panel-v2 .a11y-title-icon,.a11y-settings-panel-v2 .a11y-row-icon,.a11y-settings-panel-v2 .a11y-font-icon { display:flex; align-items:center; justify-content:center; flex:0 0 auto; border-radius:50%; background:#fff0e9; color:#f15a24; font-weight:bold; }
.a11y-settings-panel-v2 .a11y-title-icon { width:80px; height:80px; font-size:42px; }
.a11y-settings-panel-v2 .a11y-settings-header h2 { font-size:42px !important; color:#10162d; font-weight:700 !important; }
.a11y-settings-panel-v2 .a11y-settings-close { margin-left:auto; color:#74777d !important; font-size:52px !important; font-weight:300; }
.a11y-settings-panel-v2 .a11y-settings-content { padding:36px 48px 42px !important; }
.a11y-settings-panel-v2 .a11y-settings-content h3 { margin:0 0 10px !important; color:#10162d; font-size:34px !important; }
.a11y-settings-panel-v2 .a11y-intro { margin:0 0 30px; max-width:800px; color:#777980; font-size:24px; line-height:1.35; }
.a11y-settings-panel-v2 .a11y-setting-row { min-height:132px !important; margin-bottom:20px !important; padding:22px 28px !important; border:1px solid #e8e5e3 !important; border-radius:28px !important; box-shadow:0 3px 12px rgba(0,0,0,.04); font-size:26px !important; }
.a11y-settings-panel-v2 .a11y-setting-row > span:not(.a11y-row-icon) { display:flex; flex-direction:column; flex:1; margin-left:28px; }
.a11y-settings-panel-v2 .a11y-setting-row strong { color:#10162d; font-size:28px; }
.a11y-settings-panel-v2 .a11y-setting-row small,.a11y-settings-panel-v2 .a11y-font-subtitle { margin-top:8px; color:#777980; font-size:24px; font-weight:400; }
.a11y-settings-panel-v2 .a11y-row-icon { width:76px; height:76px; font-size:38px; }
.a11y-settings-panel-v2 .a11y-setting-row i { width:92px !important; height:52px !important; border:0 !important; background:#aeb1b5 !important; }
.a11y-settings-panel-v2 .a11y-setting-row i:after { width:42px !important; height:42px !important; left:5px !important; top:5px !important; background:#fff !important; }
.a11y-settings-panel-v2 .a11y-setting-row input:checked + i { background:#f15a24 !important; }
.a11y-settings-panel-v2 .a11y-setting-row input:checked + i:after { left:45px !important; }
.a11y-settings-panel-v2 .a11y-font-card { position:relative; padding:28px 28px 22px !important; border:1px solid #e8e5e3 !important; border-radius:28px !important; }
.a11y-settings-panel-v2 .a11y-font-icon { width:76px; height:76px; margin-bottom:14px; color:#f15a24; font-size:34px; }
.a11y-settings-panel-v2 .a11y-font-card strong { display:block; color:#10162d; font-size:28px; }
.a11y-settings-panel-v2 .a11y-font-controls { gap:24px; margin-top:26px; }
.a11y-settings-panel-v2 .a11y-font-controls button { width:58px; height:58px; font-size:38px; }
.a11y-settings-panel-v2 .a11y-font-controls input { height:12px; accent-color:#f15a24; }
.a11y-settings-panel-v2 .a11y-font-labels { font-size:24px; color:#777980; margin-top:14px; }
@media (max-width:700px) { .a11y-settings-panel-v2 .a11y-settings-header { padding:18px 20px !important; gap:14px; } .a11y-settings-panel-v2 .a11y-title-icon { width:52px; height:52px; font-size:28px; } .a11y-settings-panel-v2 .a11y-settings-header h2 { font-size:24px !important; } .a11y-settings-panel-v2 .a11y-settings-content { padding:24px 20px !important; } .a11y-settings-panel-v2 .a11y-settings-content h3 { font-size:24px !important; } .a11y-settings-panel-v2 .a11y-intro { font-size:17px; } .a11y-settings-panel-v2 .a11y-setting-row { min-height:94px !important; padding:14px 16px !important; border-radius:20px !important; } .a11y-settings-panel-v2 .a11y-row-icon { width:52px; height:52px; } .a11y-settings-panel-v2 .a11y-setting-row strong { font-size:19px; } .a11y-settings-panel-v2 .a11y-setting-row small,.a11y-settings-panel-v2 .a11y-font-subtitle { font-size:16px; } .a11y-settings-panel-v2 .a11y-setting-row i { width:64px !important; height:38px !important; } .a11y-settings-panel-v2 .a11y-setting-row i:after { width:30px !important; height:30px !important; } .a11y-settings-panel-v2 .a11y-setting-row input:checked + i:after { left:29px !important; } }

.a11y-floating-toggle.is-dragged {
  left: var(--a11y-button-left) !important;
  top: var(--a11y-button-top) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.a11y-floating-toggle {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.a11y-floating-toggle:not(.is-dragged) { right: 72px !important; }
@media (max-width: 576px) {
  .a11y-floating-toggle:not(.is-dragged) { right: 58px !important; }
}

.locale-picker-form {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.navbar .nav-locale-picker .locale-picker-form select.locale-picker,
.nav-locale-picker .locale-picker-form select.form-select.locale-picker,
.locale-picker-form select.form-select.locale-picker {
  display: block !important;
  width: auto !important;
  min-width: 118px !important;
  max-width: 180px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0.32rem 2rem 0.32rem 0.8rem !important;
  border: 1px solid rgba(255, 73, 0, 0.34) !important;
  border-radius: 999px !important;
  color: #372b27 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  background-color: #fff !important;
  box-shadow: 0 8px 18px rgba(55, 43, 39, 0.08) !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  background-image: none !important;
}

.navbar .nav-locale-picker .locale-picker-form select.locale-picker:hover,
.nav-locale-picker .locale-picker-form select.form-select.locale-picker:hover,
.locale-picker-form select.form-select.locale-picker:hover {
  border-color: rgba(255, 73, 0, 0.5) !important;
  box-shadow: 0 10px 22px rgba(55, 43, 39, 0.11) !important;
}

.navbar .nav-locale-picker .locale-picker-form select.locale-picker:focus,
.nav-locale-picker .locale-picker-form select.form-select.locale-picker:focus,
.locale-picker-form select.form-select.locale-picker:focus {
  border-color: #ff4900 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 73, 0, 0.18) !important;
  outline: 0 !important;
}

.nav-locale-picker {
  display: flex;
  align-items: center;
}

@media (max-width: 767.98px) {
  .nav-locale-picker {
    justify-content: flex-start;
    padding: 0.4rem 0 0.8rem;
  }
}
