/* Widget Styles: Accessibility Dock, Panel, Modes & VLibras Alignment (FSD Layer: widgets/accessibility-dock) */

/* Alto Contraste WCAG 2.1 AA */
body.is-high-contrast {
	--background: #000000;
	--foreground: #FFFFFF;
	--card: #0D0D0D;
	--card-foreground: #FFFFFF;
	--primary: #FFD700;
	--primary-foreground: #000000;
	--secondary: #141414;
	--muted-foreground: #E2E8F0;
	--border: #FFD700;
}

/* Espaçamento Amplo */
body.is-wide-spacing,
body.is-wide-spacing p,
body.is-wide-spacing li,
body.is-wide-spacing h1,
body.is-wide-spacing h2,
body.is-wide-spacing h3 {
	letter-spacing: 0.06em !important;
	line-height: 1.9 !important;
}

/* Destaque de Links */
body.is-highlight-links a {
	outline: 2px solid #D4A03E !important;
	outline-offset: 2px !important;
	text-decoration: underline !important;
}

/* Botão Lateral Direito de Acessibilidade alinhado ao VLibras */
.fc-a11y-tab-dock {
	position: fixed;
	right: 10px;
	top: calc(50% - 46px);
	transform: translateY(-50%);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(20, 102, 204, 0.35);
	border: none !important;
}

.fc-a11y-tab-btn {
	width: 40px;
	height: 40px;
	background: linear-gradient(180deg, #3282F6 0%, #1967D2 100%);
	color: #FFFFFF;
	border: none !important;
	border-radius: 8px;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.fc-a11y-tab-btn:hover,
.fc-a11y-tab-btn[aria-expanded="true"] {
	filter: brightness(1.08);
}

div[vw].enabled {
	right: 10px !important;
	top: 50% !important;
	margin-top: 4px !important;
	transform: none !important;
}

div[vw] [vw-access-button] {
	width: 40px !important;
	height: 40px !important;
}

/* Painel Lateral de Recursos de Acessibilidade */
.fc-a11y-drawer {
	position: fixed;
	right: 60px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99995;
	width: 320px;
	max-width: calc(100vw - 75px);
	background: var(--card);
	color: var(--foreground);
	border: 1px solid var(--border);
	border-radius: 20px;
	box-shadow: 0 20px 48px rgba(0, 20, 50, 0.26);
	overflow: hidden;
}

.fc-a11y-drawer[hidden],
.fc-reading-guide-bar[hidden] {
	display: none !important;
}

.fc-a11y-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: linear-gradient(180deg, #3282F6 0%, #1967D2 100%);
	color: #FFFFFF;
}

.fc-a11y-drawer__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
}

.fc-a11y-drawer__close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
	font-weight: 700;
	cursor: pointer;
}

.fc-a11y-drawer__body {
	padding: 16px 18px;
}

.fc-a11y-section-label {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
	margin-bottom: 8px;
}

.fc-a11y-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.fc-a11y-card-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 8px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--background);
	color: var(--foreground);
	cursor: pointer;
	transition: all 0.2s ease;
}

.fc-a11y-card-btn:hover,
.fc-a11y-card-btn[aria-pressed="true"] {
	background: #2575EB;
	border-color: #2575EB;
	color: #FFFFFF;
}

.fc-a11y-card-btn__icon {
	font-size: 1.05rem;
	font-weight: 800;
}

.fc-a11y-card-btn__label {
	font-size: 0.74rem;
	font-weight: 600;
}

.fc-a11y-reset-btn {
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--secondary);
	color: var(--foreground);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fc-a11y-reset-btn:hover {
	background: var(--border);
}

.fc-reading-guide-bar {
	position: fixed;
	left: 0;
	right: 0;
	height: 36px;
	background: rgba(212, 160, 62, 0.22);
	border-top: 2px solid #003A8C;
	border-bottom: 2px solid #D4A03E;
	pointer-events: none;
	z-index: 99980;
}
