/* ── Skip to content ── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #C4931A;
  color: #0D1A0E;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-to-content:focus {
  left: 0;
}

/* ── Floating toggle button ── */
.a11y-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0D1A0E;
  color: #C4931A;
  border: 2px solid #C4931A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.a11y-toggle svg { width: 26px; height: 26px; }
.a11y-toggle:hover { background: #1B3A1D; }

/* ── Panel ── */
.a11y-panel {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 9999;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  color: #0D1A0E;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  padding: 16px;
  display: none;
  font-family: 'Montserrat', sans-serif;
}
.a11y-panel.is-open { display: block; }
.a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DDD8CE;
}
.a11y-panel__title { font-weight: 700; font-size: 15px; }
.a11y-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #4C4C48;
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F0EBE3;
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
}
.a11y-row:last-of-type { border-bottom: none; }
.a11y-btn-group { display: flex; gap: 6px; }
.a11y-btn {
  background: #F0EBE3;
  border: 1px solid #DDD8CE;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #0D1A0E;
}
.a11y-btn:hover { background: #F5E8C2; }
.a11y-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: #DDD8CE;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.a11y-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s ease;
}
.a11y-switch[aria-pressed="true"] { background: #C4931A; }
.a11y-switch[aria-pressed="true"]::after { transform: translateX(18px); }
.a11y-reset {
  margin-top: 12px;
  width: 100%;
  background: #1B3A1D;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.a11y-reset:hover { background: #2A5230; }

/* ── Effect: readable font ── */
html.a11y-readable body,
html.a11y-readable p,
html.a11y-readable li,
html.a11y-readable a,
html.a11y-readable span,
html.a11y-readable div,
html.a11y-readable h1,
html.a11y-readable h2,
html.a11y-readable h3,
html.a11y-readable h4,
html.a11y-readable blockquote {
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.65 !important;
}

/* ── Effect: underline links ── */
html.a11y-underline-links a { text-decoration: underline !important; }

/* ── Effect: highlight links ── */
html.a11y-highlight-links a {
  background-color: #ffff00 !important;
  color: #000 !important;
  text-decoration: underline !important;
}

/* ── Effect: grayscale images ── */
html.a11y-grayscale img,
html.a11y-grayscale video { filter: grayscale(100%) !important; }

/* ── Effect: invert colors (images double-inverted back to normal) ── */
html.a11y-invert { filter: invert(100%) hue-rotate(180deg); background: #fff; }
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert svg,
html.a11y-invert picture { filter: invert(100%) hue-rotate(180deg); }

/* ── Effect: remove animations ── */
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ── Effect: high contrast ── */
html.a11y-high-contrast body { background: #000 !important; }
html.a11y-high-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-toggle):not(.a11y-toggle *) {
  background-color: #000 !important;
  color: #FFD700 !important;
  border-color: #FFD700 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-high-contrast img,
html.a11y-high-contrast video {
  filter: grayscale(40%) contrast(1.1);
  opacity: .9;
}
html.a11y-high-contrast a {
  color: #FFD700 !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  /* Lift toggle above the mobile sticky CTA bar (68px) */
  .a11y-toggle { bottom: 84px; }
  .a11y-panel { bottom: 148px; }
}

@media (max-width: 480px) {
  .a11y-panel { width: calc(100vw - 32px); right: 16px; }
}
