/* AETERNO Inclusive Access Layer v1 */

:root {
  --a11y-focus: #00d4be;
  --a11y-panel-bg: #0c0c18;
  --a11y-panel-border: rgba(201, 168, 76, 0.28);
}

.a11y-skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10001;
  background: #c9a84c;
  color: #04040a;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.a11y-skip-link:focus {
  top: 12px;
}

#aeterno-a11y-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.a11y-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  background: rgba(12, 12, 24, 0.96);
  color: #c9a84c;
  border: 1px solid var(--a11y-panel-border);
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}

.a11y-launcher:hover,
.a11y-launcher:focus-visible {
  border-color: #c9a84c;
  outline: 2px solid var(--a11y-focus);
  outline-offset: 2px;
}

.a11y-panel {
  position: fixed;
  right: 18px;
  bottom: 64px;
  z-index: 10000;
  width: min(320px, calc(100vw - 24px));
  background: var(--a11y-panel-bg);
  border: 1px solid var(--a11y-panel-border);
  padding: 16px;
  color: #f0ede6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00d4be;
  margin: 0 0 10px;
  font-weight: 500;
}

.a11y-panel p {
  margin: 0 0 12px;
  color: rgba(240, 237, 230, 0.72);
  font-size: 11px;
}

.a11y-panel label {
  display: block;
  margin: 10px 0 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.85);
}

.a11y-panel select,
.a11y-panel button {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: #f0ede6;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.a11y-panel select:focus-visible,
.a11y-panel button:focus-visible {
  outline: 2px solid var(--a11y-focus);
  outline-offset: 2px;
}

.a11y-panel .a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.a11y-panel .a11y-toggle-row button {
  width: auto;
  min-width: 88px;
}

.a11y-panel .a11y-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  font-size: 10px;
  color: rgba(240, 237, 230, 0.55);
}

.a11y-chart-summary {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(240, 237, 230, 0.78);
  line-height: 1.5;
}

body.a11y-high-contrast {
  --gold: #ffd86b;
  --cyan: #4dfff0;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 216, 107, 0.45);
  background: #000 !important;
  color: #fff !important;
}

body.a11y-high-contrast .hc-form-card,
body.a11y-high-contrast .hc-dashboard,
body.a11y-high-contrast nav,
body.a11y-high-contrast .module-card,
body.a11y-high-contrast .a11y-panel {
  background: #05050a !important;
  border-color: rgba(255, 216, 107, 0.5) !important;
}

body.a11y-mode-hands-free .hc-btn,
body.a11y-mode-hands-free button,
body.a11y-mode-hands-free .nav-cta,
body.a11y-mode-hands-free .hc-consent-actions button {
  min-height: 48px;
  min-width: 48px;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.a11y-mode-hands-free input,
body.a11y-mode-hands-free select,
body.a11y-mode-hands-free textarea {
  min-height: 48px;
  font-size: 16px;
}

body.a11y-mode-visual-alerts .hc-toast {
  display: block !important;
  border: 2px solid #00d4be;
  box-shadow: 0 0 0 4px rgba(0, 212, 190, 0.25);
  font-size: 14px;
  font-weight: 500;
}

body.a11y-mode-visual-alerts .hc-toast[data-ok="false"] {
  border-color: #fca5a5;
  box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.25);
}

body.a11y-mode-screen-reader *:focus-visible {
  outline: 3px solid var(--a11y-focus);
  outline-offset: 3px;
}

.a11y-voice-bar {
  display: none;
  margin-top: 10px;
  gap: 8px;
}

body.a11y-mode-hands-free .a11y-voice-bar {
  display: flex;
}

.a11y-voice-bar button {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
