/* ================================================================
   CONFUT — Accessibility & Utilities Panel
   Tokens: DESIGN.md (azul-escuro #0a2647 · verde-musgo #0e665d)
   Motion: cubic-bezier(0.22,1,0.36,1) · prefers-reduced-motion
   ================================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --a11y-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --a11y-ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
  --a11y-speed:       0.26s;
  --a11y-speed-fast:  0.14s;

  /* Paleta (DESIGN.md) */
  --a11y-navy:        #0a2647;
  --a11y-navy-deep:   #061830;
  --a11y-teal:        #0e665d;
  --a11y-teal-bright: #159a8c;
  --a11y-teal-soft:   rgba(14, 102, 93, 0.10);
  --a11y-white:       #ffffff;

  /* Superfícies */
  --a11y-panel-bg:    #eef2f8;
  --a11y-surface:     #ffffff;
  --a11y-card-border: rgba(10, 38, 71, 0.09);

  /* Tipografia */
  --a11y-text:        #0a2647;
  --a11y-text-muted:  rgba(10, 38, 71, 0.48);

  /* Sombra */
  --a11y-shadow-panel:
    0 20px 56px rgba(4, 12, 24, 0.32),
    0 0 0 1px rgba(10, 38, 71, 0.06);
  --a11y-card-shadow: 0 1px 8px rgba(10, 38, 71, 0.05);
  --a11y-card-shadow-hover: 0 6px 20px rgba(10, 38, 71, 0.09);

  /* Raios (DESIGN.md) */
  --a11y-radius-lg:   12px;
  --a11y-radius-md:   8px;
  --a11y-radius-sm:   4px;
  --a11y-radius-pill: 999px;

  /* FAB flutuantes (idioma, WhatsApp, voltar ao topo) */
  --fab-accent:         #25d366;
  --fab-accent-hover:   #1db954;
  --fab-shadow:         rgba(37, 211, 102, 0.36);
  --fab-shadow-hover:   rgba(37, 211, 102, 0.48);
  --wa-green:           var(--fab-accent);
  --wa-green-hover:     var(--fab-accent-hover);

  /* FAB stack (acessibilidade + WhatsApp) */
  --a11y-fab-size:    61px;
  --a11y-fab-gap:     12px;
  --a11y-fab-bottom:  24px;
  --a11y-fab-left:    20px;
}

/* FAB flutuantes — cor por evento / site */
body.confut-macro-site {
  --fab-accent: #0a957f;
  --fab-accent-hover: #0bb894;
  --fab-shadow: rgba(10, 149, 127, 0.38);
  --fab-shadow-hover: rgba(10, 149, 127, 0.52);
}

body.confut-usa-refactor,
body.event-usa {
  --fab-accent: var(--usa-event-accent, #e32131);
  --fab-accent-hover: var(--usa-event-accent-hover, #c41a28);
  --fab-shadow: rgba(227, 33, 49, 0.38);
  --fab-shadow-hover: rgba(227, 33, 49, 0.52);
}

body.confut-sudamericana-refactor,
body.confut-sudamericana-theme,
body.event-sudamericana {
  --fab-accent: var(--suda-accent-hover, #21931b);
  --fab-accent-hover: #1a7a16;
  --fab-shadow: rgba(33, 147, 27, 0.38);
  --fab-shadow-hover: rgba(33, 147, 27, 0.52);
}

body.confut-nordeste-theme,
body.event-nordeste {
  --fab-accent: var(--confut-nordeste-secondary, #ff9800);
  --fab-accent-hover: #d97900;
  --fab-shadow: rgba(255, 152, 0, 0.38);
  --fab-shadow-hover: rgba(255, 152, 0, 0.52);
}

body.confut-euro-refactor,
body.event-euro {
  --fab-accent: var(--euro-event-accent, #e27b0c);
  --fab-accent-hover: var(--euro-event-accent-hover, #c96a0a);
  --fab-shadow: rgba(226, 123, 12, 0.38);
  --fab-shadow-hover: rgba(226, 123, 12, 0.52);
}

@supports (color: oklch(60% 0.03 177)) {
  :root {
    --a11y-teal:        oklch(39% 0.1 177);
    --a11y-teal-bright: oklch(60% 0.11 177);
    --a11y-teal-soft:   oklch(39% 0.1 177 / 0.10);
    --a11y-card-border: oklch(28% 0.05 255 / 0.09);
  }
}


/* ── Trigger ─────────────────────────────────────────────────── */
.a11y-trigger {
  position: fixed;
  bottom: var(--a11y-fab-bottom);
  left: var(--a11y-fab-left);
  z-index: 999999;
  width: var(--a11y-fab-size);
  height: var(--a11y-fab-size);
  border-radius: var(--a11y-radius-pill);
  background: var(--fab-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--a11y-white);
  box-shadow: 0 4px 16px var(--fab-shadow);
  transition:
    transform var(--a11y-speed-fast) var(--a11y-ease),
    background var(--a11y-speed-fast) ease,
    box-shadow var(--a11y-speed-fast) ease;
}

.a11y-trigger:hover {
  background: var(--fab-accent-hover);
  box-shadow: 0 7px 24px var(--fab-shadow-hover);
  transform: translateY(-2px);
}

.a11y-trigger:active {
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.a11y-trigger:focus-visible {
  outline: 2px solid var(--fab-accent-hover);
  outline-offset: 3px;
}

.a11y-trigger-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
  /* Recolore o SVG laranja → branco */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}


/* ── Overlay ─────────────────────────────────────────────────── */
.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.48);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--a11y-speed) var(--a11y-ease),
    visibility var(--a11y-speed) var(--a11y-ease);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.a11y-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ── Painel ──────────────────────────────────────────────────── */
html.a11y-panel-open,
body.a11y-panel-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.a11y-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(560px, calc(100vw - 16px));
  height: 100vh;
  height: 100dvh;
  background: var(--a11y-panel-bg);
  z-index: 999999;
  border-radius: 0 var(--a11y-radius-lg) var(--a11y-radius-lg) 0;
  box-shadow: var(--a11y-shadow-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--a11y-speed) var(--a11y-ease-expo);
}

.a11y-panel.open {
  transform: translateX(0);
}

/* Scroll */
.a11y-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--a11y-panel-bg);
}

.a11y-panel-scroll::-webkit-scrollbar {
  width: 4px;
}

.a11y-panel-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.a11y-panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(10, 38, 71, 0.16);
  border-radius: var(--a11y-radius-pill);
}


/* Hero - technical control header */
.a11y-panel-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  background: #0A2647;
  border-bottom: 1px solid rgba(14, 102, 93, 0.72);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.a11y-panel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, rgba(10, 38, 71, 0) 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, rgba(10, 38, 71, 0) 1px) 0 0 / 18px 18px,
    radial-gradient(ellipse at 85% 0%, rgba(14, 102, 93, 0.22) 0%, rgba(10, 38, 71, 0) 58%);
  opacity: 0.82;
  pointer-events: none;
}

.a11y-panel-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 14px;
  right: 54px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(14, 102, 93, 0.62), rgba(255, 255, 255, 0));
  opacity: 0.48;
  pointer-events: none;
}

/* Single row: title + languages + close */
.a11y-panel-titlebar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.a11y-panel-titlegroup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-hero-iconwrap {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--a11y-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(10, 38, 71, 0.22);
}

.a11y-panel-hero-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.a11y-panel-hero-title {
  min-width: 0;
  margin: 0;
  font-family: var(--confut-font-display-family, "Alibaba Sans", system-ui, sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: #FFFFFF;
  position: relative;
  padding-bottom: 7px;
  text-wrap: balance;
}

.a11y-panel-hero-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  border-radius: var(--a11y-radius-pill);
  background: linear-gradient(90deg, #0E665D, #FFFFFF);
  box-shadow: 0 0 12px rgba(14, 102, 93, 0.5);
}

.a11y-panel-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--a11y-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 38, 71, 0.34);
  color: rgba(255, 255, 255, 0.74);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--a11y-speed-fast) ease,
    border-color var(--a11y-speed-fast) ease,
    box-shadow var(--a11y-speed-fast) ease,
    color var(--a11y-speed-fast) ease,
    transform var(--a11y-speed-fast) ease;
}

.a11y-panel-close:hover {
  background: rgba(14, 102, 93, 0.26);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(14, 102, 93, 0.32);
  transform: translateY(-1px);
}

.a11y-panel-close:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.a11y-panel-close svg {
  width: 15px;
  height: 15px;
}

/* Legacy wrapper kept for compatibility with older injected panels. */
.a11y-panel-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Language segmented control */
.a11y-lang-list {
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  background: #0A2647;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--a11y-radius-md);
  padding: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(10, 38, 71, 0.26),
    0 0 18px rgba(14, 102, 93, 0.12);
}

.a11y-lang-list::before {
  content: attr(aria-label);
  font-family: var(--confut-font-display-family, "Alibaba Sans", system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  margin: 0 6px 0 5px;
  flex-shrink: 0;
}

.a11y-lang-card {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 28px;
  border-radius: 6px;
  background: rgba(10, 38, 71, 0);
  border: 1px solid rgba(255, 255, 255, 0);
  cursor: pointer;
  transition:
    background var(--a11y-speed-fast) ease,
    border-color var(--a11y-speed-fast) ease,
    box-shadow var(--a11y-speed-fast) ease,
    transform var(--a11y-speed-fast) ease;
}

.a11y-lang-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.a11y-lang-card.active {
  background: #0E665D;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 16px rgba(14, 102, 93, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.a11y-panel-hero .a11y-lang-card:focus-visible,
.a11y-panel-hero .a11y-panel-close:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(14, 102, 93, 0.34);
}

.a11y-lang-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  display: block;
}

.a11y-lang-name,
.a11y-lang-check {
  display: none;
}

/* ── Conteúdo ────────────────────────────────────────────────── */

/* Seção — !important para sobrepor body.dark-scheme section do tema */
.a11y-section {
  margin: 0 14px 10px !important;
  background: var(--a11y-surface) !important;
  color: #0A2647 !important;
  border-radius: var(--a11y-radius-lg) !important;
  border: 1px solid var(--a11y-card-border) !important;
  padding: 16px 14px 14px !important;
  box-shadow: var(--a11y-card-shadow) !important;
}

.a11y-panel-scroll > .a11y-section:first-of-type {
  margin-top: 14px !important;
}

.a11y-section--reset {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Título da seção */
.a11y-section-title {
  margin: 0 0 12px;
  font-family: var(--confut-font-display-family, "Alibaba Sans", system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A2647 !important;
}


/* ── Grid de cards ───────────────────────────────────────────── */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Stepper: linha inteira */
.a11y-grid--content .a11y-card--stepper {
  grid-column: 1 / -1;
}


/* ── Card base ───────────────────────────────────────────────── */
.a11y-card {
  min-height: 88px;
  padding: 12px 10px 10px;
  border-radius: var(--a11y-radius-md);
  background: var(--a11y-panel-bg);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--a11y-speed-fast) var(--a11y-ease),
    border-color var(--a11y-speed-fast) ease,
    background var(--a11y-speed-fast) ease,
    box-shadow var(--a11y-speed-fast) ease;
}

.a11y-card:hover {
  background: #e8edf5;
  border-color: rgba(10, 38, 71, 0.12);
  box-shadow: var(--a11y-card-shadow-hover);
  transform: translateY(-1px);
}

.a11y-card:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.08s;
}

/* Estado ativo */
.a11y-card.active {
  background: var(--a11y-navy);
  border-color: var(--a11y-navy);
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.22);
}

.a11y-card.active .a11y-card-icon {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
  color: #7dd8cf;
}

.a11y-card.active .a11y-card-label {
  color: #fff;
}

/* Ícone do card */
.a11y-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--a11y-radius-md);
  background: var(--a11y-teal-soft);
  border: 1px solid rgba(14, 102, 93, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--a11y-teal);
  flex-shrink: 0;
  transition:
    background var(--a11y-speed-fast) ease,
    color var(--a11y-speed-fast) ease;
}

.a11y-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Label */
.a11y-card-label {
  color: var(--a11y-text);
  font-family: var(--confut-font-display-family, "Alibaba Sans", system-ui, sans-serif);
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color var(--a11y-speed-fast) ease;
}

/* Badge */
.a11y-card-badge {
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--a11y-radius-pill);
  background: rgba(10, 38, 71, 0.06);
  border: 1px solid var(--a11y-card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--a11y-text);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: auto;
}


/* ── Stepper — layout horizontal compacto ────────────────────── */
.a11y-card--stepper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 12px;
  gap: 10px;
  text-align: left;
}

/* Ícone inline: menor */
.a11y-card--stepper .a11y-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.a11y-card--stepper .a11y-card-icon svg {
  width: 15px;
  height: 15px;
}

/* Label: alinhado à esquerda, flex */
.a11y-card--stepper .a11y-card-label {
  flex: 1;
  text-align: left;
  font-size: 0.82rem;
  align-self: center;
}

/* Stepper controles */
.a11y-stepper {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: auto;
  padding: 0;
  grid-template-columns: unset;
}

.a11y-stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--a11y-radius-sm);
  border: 1.5px solid var(--a11y-card-border);
  background: var(--a11y-surface);
  color: var(--a11y-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--a11y-speed-fast) ease,
    border-color var(--a11y-speed-fast) ease,
    transform 0.1s ease;
}

.a11y-stepper-btn:hover {
  background: var(--a11y-navy);
  border-color: var(--a11y-navy);
  color: #fff;
}

.a11y-stepper-btn:active {
  transform: scale(0.92);
}

.a11y-stepper-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.a11y-stepper-value {
  height: 30px;
  min-width: 36px;
  padding: 0 8px;
  border-radius: var(--a11y-radius-sm);
  background: var(--a11y-surface);
  border: 1.5px solid var(--a11y-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a11y-text);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}


/* ── Reset ───────────────────────────────────────────────────── */
.a11y-reset-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--a11y-radius-md);
  border: 1.5px solid rgba(14, 102, 93, 0.3) !important;
  background: var(--a11y-teal) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--confut-font-display-family, "Alibaba Sans", system-ui, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(14, 102, 93, 0.24) !important;
  transition:
    background var(--a11y-speed-fast) ease,
    box-shadow var(--a11y-speed-fast) ease,
    transform var(--a11y-speed-fast) ease;
}

.a11y-reset-btn:hover {
  background: var(--a11y-teal-bright) !important;
  box-shadow: 0 5px 18px rgba(14, 102, 93, 0.38) !important;
  transform: translateY(-1px);
}

.a11y-reset-btn:active {
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.a11y-reset-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}


/* ── Estados de foco ─────────────────────────────────────────── */
.a11y-lang-card:focus-visible,
.a11y-panel-close:focus-visible,
.a11y-card:focus-visible,
.a11y-stepper-btn:focus-visible,
.a11y-reset-btn:focus-visible {
  outline: 2px solid var(--a11y-teal-bright);
  outline-offset: 2px;
}


/* ── WhatsApp float ──────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: calc(var(--a11y-fab-bottom) + var(--a11y-fab-size) + var(--a11y-fab-gap));
  left: var(--a11y-fab-left);
  z-index: 999999;
  width: var(--a11y-fab-size);
  height: var(--a11y-fab-size);
  border-radius: var(--a11y-radius-pill);
  background: var(--fab-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--fab-shadow);
  text-decoration: none;
  transition:
    transform var(--a11y-speed-fast) var(--a11y-ease),
    box-shadow var(--a11y-speed-fast) ease,
    background var(--a11y-speed-fast) ease;
}

.wa-float:hover {
  background: var(--fab-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 24px var(--fab-shadow-hover);
}

.wa-float:active {
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.wa-float:focus-visible {
  outline: 2px solid var(--fab-accent-hover);
  outline-offset: 3px;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Macro: oculta #back-to-top legado quando existe o botão do footer Confut */
body:has(#confut-back-to-top) #back-to-top {
  display: none !important;
}

/* Voltar ao topo — mesma cor dos FABs por evento */
body #back-to-top.show {
  display: block !important;
}

body #back-to-top,
body .confut-footer__back-to-top--fixed {
  background: var(--fab-accent) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px var(--fab-shadow) !important;
  color: #ffffff !important;
}

body #back-to-top:hover,
body .confut-footer__back-to-top--fixed:hover,
body .confut-footer__back-to-top--fixed.is-visible:hover {
  background: var(--fab-accent-hover) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 7px 24px var(--fab-shadow-hover) !important;
  color: #ffffff !important;
}

body #back-to-top:before,
body .confut-footer__back-to-top--fixed .confut-footer__back-icon,
body .confut-footer__back-to-top--fixed i {
  color: #ffffff !important;
}

body .confut-footer__back-to-top--fixed:focus-visible {
  outline: 2px solid var(--fab-accent-hover);
  outline-offset: 3px;
}


/* ── Classes de estado no body ───────────────────────────────── */
body.a11y-readable-font,
body.a11y-readable-font * {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

body.a11y-bold-text *:not(script):not(style) {
  font-weight: bold !important;
}

body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M7 2l12 11.2-5.8.5 3.3 7.3-2.2 1-3.2-7.4L7 18.5V2' fill='%230a2647' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important;
}

body.a11y-align-left *    { text-align: left    !important; }
body.a11y-align-center *  { text-align: center  !important; }
body.a11y-align-justify * { text-align: justify !important; }

body.a11y-color-light { filter: brightness(1.06) contrast(1.04); }
body.a11y-color-high  { filter: contrast(1.25)   saturate(1.05); }
body.a11y-color-mono  { filter: grayscale(1); }

body.a11y-hide-images img   { visibility: hidden !important; }
body.a11y-highlight-links a { text-decoration: underline 2px solid currentColor !important; }

body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
}


/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .a11y-panel {
    width: min(500px, calc(100vw - 14px));
  }
}

@media (max-width: 767.98px) {
  .a11y-panel {
    width: calc(100vw - 10px);
    border-radius: 0 var(--a11y-radius-lg) var(--a11y-radius-lg) 0;
  }

  .a11y-panel-hero {
    padding: 10px;
    gap: 0;
  }

  .a11y-panel-titlebar {
    gap: 7px;
    min-height: 36px;
  }

  .a11y-panel-titlegroup {
    gap: 8px;
  }

  .a11y-hero-iconwrap {
    width: 30px;
    height: 30px;
    border-radius: var(--a11y-radius-md);
  }

  .a11y-panel-hero-icon {
    width: 18px;
    height: 18px;
  }

  .a11y-panel-hero-title {
    font-size: 0.9rem;
    line-height: 1.05;
    padding-bottom: 6px;
  }

  .a11y-panel-hero-title::after {
    width: 36px;
  }

  .a11y-panel-close {
    width: 32px;
    height: 32px;
  }

  .a11y-lang-list {
    width: auto;
    min-height: 32px;
    overflow-x: visible;
    scrollbar-width: auto;
    padding: 2px;
  }

  .a11y-lang-list::before {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    margin: 0 4px;
  }

  .a11y-lang-card {
    width: 27px;
    height: 27px;
  }

  .a11y-lang-flag {
    font-size: 15px;
  }

  .a11y-lang-list::-webkit-scrollbar {
    display: none;
  }

  .a11y-section {
    margin: 0 10px 8px !important;
    padding: 14px 12px 12px !important;
  }

  .a11y-panel-scroll > .a11y-section:first-of-type {
    margin-top: 12px !important;
  }

  .a11y-grid {
    gap: 7px;
  }

  .a11y-card {
    min-height: 80px;
    padding: 10px 8px 8px;
    gap: 7px;
  }

  .a11y-card-icon {
    width: 34px;
    height: 34px;
  }

  .a11y-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .a11y-card-label {
    font-size: 0.74rem;
  }

}

@media (max-width: 379.98px) {
  .a11y-panel-hero {
    padding: 9px;
  }

  .a11y-panel-titlebar {
    gap: 6px;
  }

  .a11y-panel-hero-title {
    font-size: 0.8rem;
  }

  .a11y-panel-close {
    width: 30px;
    height: 30px;
  }

  .a11y-lang-list::before {
    font-size: 0.52rem;
    margin: 0 3px;
  }

  .a11y-lang-card {
    width: 25px;
    height: 26px;
  }

  .a11y-lang-flag {
    font-size: 14px;
  }
}


/* ── prefers-reduced-motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .a11y-panel,
  .a11y-overlay,
  .a11y-trigger,
  .a11y-card,
  .a11y-reset-btn,
  .wa-float,
  .a11y-panel-close,
  .a11y-stepper-btn,
  .a11y-lang-card {
    transition-duration: 0.01ms !important;
  }
}


/* ── Impressão ───────────────────────────────────────────────── */
@media print {
  .a11y-trigger,
  .a11y-panel,
  .a11y-overlay,
  .wa-float {
    display: none !important;
  }
}
