/* ===== Menu de acessibilidade ===== */
.acc-root, .acc-root * { box-sizing: border-box; }
.acc-root { position: fixed; bottom: 20px; z-index: 999999; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4; }
.acc-pos-left { left: 20px; }
.acc-pos-right { right: 20px; }

.acc-fab {
	width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
	background: #0b4fd6; color: #fff; cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 12px rgba(0,0,0,.4);
}
.acc-fab svg { width: 32px; height: 32px; fill: currentColor; }
.acc-fab:hover { background: #083aa3; }

.acc-panel {
	position: absolute; bottom: 70px; width: 320px; max-width: calc(100vw - 40px);
	max-height: calc(100vh - 110px); overflow-y: auto;
	background: #fff; color: #111; border: 2px solid #0b4fd6; border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0,0,0,.35); padding: 14px;
}
.acc-pos-left .acc-panel { left: 0; }
.acc-pos-right .acc-panel { right: 0; }
.acc-panel[hidden] { display: none; }

.acc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.acc-title { font-size: 18px; font-weight: 700; margin: 0; color: #0b4fd6; }
.acc-sec { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #444; margin: 12px 0 6px; }

.acc-root button { font-family: inherit; font-size: 15px; cursor: pointer; }
.acc-close { background: none; border: 0; font-size: 24px; line-height: 1; color: #111; padding: 4px 8px; }

.acc-row { display: flex; align-items: center; gap: 8px; }
.acc-row .acc-val { flex: 1; text-align: center; font-weight: 700; }
.acc-btn {
	background: #f1f4fb; color: #111; border: 2px solid #c5d0ea; border-radius: 10px;
	padding: 10px 8px; text-align: center; min-height: 44px;
}
.acc-btn:hover { background: #e2e9f8; }
.acc-btn[aria-pressed="true"] { background: #0b4fd6; border-color: #0b4fd6; color: #fff; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-full { grid-column: 1 / -1; width: 100%; }
.acc-reset { background: #fff; border-color: #b00020; color: #b00020; margin-top: 12px; width: 100%; font-weight: 700; }
.acc-reset:hover { background: #fdeaed; }

.acc-root :focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }

/* Link "Pular para o conteúdo" */
.acc-skip {
	position: fixed; top: -100px; left: 10px; z-index: 1000000; background: #0b4fd6; color: #fff !important;
	padding: 12px 18px; border-radius: 8px; font: 700 16px Arial, sans-serif; text-decoration: none;
}
.acc-skip:focus { top: 10px; }

/* ===== Modos ===== */

/* Alto contraste */
html.acc-contrast body *:not(.acc-root):not(.acc-root *):not([vw]):not([vw] *) {
	background-color: #000 !important; background-image: none !important;
	color: #fff !important; border-color: #fff !important; text-shadow: none !important;
}
html.acc-contrast body a:not(.acc-root a),
html.acc-contrast body a:not(.acc-root a) * { color: #ffeb3b !important; }

/* Inverter / cinza */
html.acc-invert { filter: invert(1) hue-rotate(180deg); }
html.acc-invert img, html.acc-invert video, html.acc-invert picture, html.acc-invert iframe { filter: invert(1) hue-rotate(180deg); }
html.acc-gray { filter: grayscale(1); }
html.acc-invert.acc-gray { filter: invert(1) hue-rotate(180deg) grayscale(1); }

/* Destacar links */
html.acc-links body a:not(.acc-root a) {
	text-decoration: underline !important; background: #ffeb3b !important; color: #000 !important;
	outline: 2px solid #000; outline-offset: 1px;
}

/* Fonte para dislexia */
html.acc-dyslexia body *:not(.acc-root):not(.acc-root *) {
	font-family: "OpenDyslexic", "Comic Sans MS", "Comic Neue", Verdana, sans-serif !important;
	letter-spacing: .04em; word-spacing: .1em;
}

/* Espaçamento de texto */
html.acc-spacing body *:not(.acc-root):not(.acc-root *) {
	line-height: 1.9 !important; letter-spacing: .06em !important; word-spacing: .18em !important;
}

/* Cursor grande */
html.acc-bigcursor, html.acc-bigcursor * {
	cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M4 2 L4 28 L11 21 L16 33 L21 31 L16 20 L25 20 Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* Pausar animações */
html.acc-noanim *, html.acc-noanim *::before, html.acc-noanim *::after {
	animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* Guia de leitura */
.acc-guidebar {
	display: none; position: fixed; left: 0; right: 0; height: 56px; top: 40%;
	background: rgba(255, 235, 59, .25); border-top: 3px solid #000; border-bottom: 3px solid #000;
	pointer-events: none; z-index: 999998;
}
html.acc-guide .acc-guidebar { display: block; }

.acc-hint { font-size: 13px; color: #444; margin: 8px 0 0; }
