/* StudioWeb Ramp: menu de acessibilidade. Os modos ficam em classes no <html> (ramp-*) e nunca alteram o próprio menu */

/* ------------------------------------------------------------------ pular para o conteúdo */
.sw-ramp-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 2147483647;
	padding: 12px 18px;
	border-radius: 8px;
	background: #000;
	color: #fff !important;
	font: 600 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform .15s;
}
.sw-ramp-skip:focus {
	transform: none;
	outline: 3px solid #ffbf00;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ botão e painel */
.sw-ramp,
.sw-ramp * {
	box-sizing: border-box;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	text-transform: none;
}
.sw-ramp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.sw-ramp-toggle {
	position: fixed;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ramp-size);
	height: var(--ramp-size);
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--ramp-color);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	cursor: pointer;
	transition: transform .3s ease, box-shadow .2s;
}
.sw-ramp-toggle svg {
	width: 62%;
	height: 62%;
	fill: currentColor;
}
.sw-ramp-toggle:hover {
	transform: scale(1.06);
}
.sw-ramp-toggle:focus-visible,
.sw-ramp-panel :focus-visible {
	outline: 3px solid #ffbf00 !important;
	outline-offset: 2px;
}
.sw-ramp-toggle[aria-expanded="true"] {
	transform: rotateY(180deg);
}
.sw-ramp--right-bottom .sw-ramp-toggle { right: var(--ramp-offset); bottom: var(--ramp-offset); }
.sw-ramp--left-bottom .sw-ramp-toggle { left: var(--ramp-offset); bottom: var(--ramp-offset); }
.sw-ramp--right-center .sw-ramp-toggle { right: var(--ramp-offset); top: calc(50% - var(--ramp-size) / 2); }
.sw-ramp--left-center .sw-ramp-toggle { left: var(--ramp-offset); top: calc(50% - var(--ramp-size) / 2); }

.sw-ramp-panel {
	position: fixed;
	z-index: 2147483001;
	display: flex;
	flex-direction: column;
	width: min(440px, calc(100vw - 24px));
	max-height: calc(100vh - var(--ramp-size) - var(--ramp-offset) * 2 - 16px);
	border-radius: 16px;
	background: #f3f4f7;
	color: #1d2327;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	font-size: 14px !important;
	line-height: 1.3 !important;
	overflow: hidden;
	animation: sw-ramp-in .2s ease;
}
.sw-ramp-panel[hidden] {
	display: none;
}
@keyframes sw-ramp-in {
	from { opacity: 0; transform: translateY(12px); }
}
.sw-ramp--right-bottom .sw-ramp-panel { right: var(--ramp-offset); bottom: calc(var(--ramp-offset) + var(--ramp-size) + 12px); }
.sw-ramp--left-bottom .sw-ramp-panel { left: var(--ramp-offset); bottom: calc(var(--ramp-offset) + var(--ramp-size) + 12px); }
.sw-ramp--right-center .sw-ramp-panel { right: calc(var(--ramp-offset) + var(--ramp-size) + 12px); top: 50%; transform: translateY(-50%); max-height: calc(100vh - 24px); animation: none; }
.sw-ramp--left-center .sw-ramp-panel { left: calc(var(--ramp-offset) + var(--ramp-size) + 12px); top: 50%; transform: translateY(-50%); max-height: calc(100vh - 24px); animation: none; }

.sw-ramp-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 14px 14px 18px;
	background: var(--ramp-color);
	color: #fff;
}
.sw-ramp-head h2 {
	flex: 1;
	margin: 0 !important;
	color: inherit !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}
.sw-ramp-head select {
	width: auto;
	height: auto;
	margin: 0;
	padding: 4px 6px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .95);
	color: #1d2327;
	font-size: 13px !important;
}
.sw-ramp-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: inherit;
	font-size: 22px !important;
	line-height: 1 !important;
	cursor: pointer;
}
.sw-ramp-close:hover {
	background: rgba(255, 255, 255, .35);
}
.sw-ramp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.sw-ramp-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	min-height: 96px;
	margin: 0;
	padding: 12px 6px 10px;
	border: 2px solid transparent;
	border-radius: 12px;
	background: #fff;
	color: #1d2327;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	transition: border-color .15s, background-color .15s;
}
.sw-ramp-tile:hover {
	border-color: color-mix(in srgb, var(--ramp-color) 45%, transparent);
}
.sw-ramp-tile[aria-pressed="true"] {
	border-color: var(--ramp-color);
	background: color-mix(in srgb, var(--ramp-color) 10%, #fff);
}
.sw-ramp-tile svg {
	flex: none;
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sw-ramp-tile[aria-pressed="true"] svg {
	stroke: var(--ramp-color);
}
.sw-ramp-steps {
	display: flex;
	gap: 3px;
	margin-top: auto;
}
.sw-ramp-steps i {
	width: 14px;
	height: 4px;
	border-radius: 2px;
	background: #d0d3da;
}
.sw-ramp-steps i.on {
	background: var(--ramp-color);
}
.sw-ramp-tile .sw-ramp-value {
	font-size: 11px !important;
	color: #50575e;
}
.sw-ramp-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px 14px;
	border-top: 1px solid #dcdfe5;
	font-size: 12px !important;
}
.sw-ramp-foot a {
	color: #1d2327 !important;
	text-decoration: underline !important;
}
.sw-ramp-reset {
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: #1d2327;
	color: #fff;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
}
.sw-ramp-reset:hover {
	background: #000;
}
.sw-ramp-hint {
	width: 100%;
	color: #50575e;
}

@media (max-width: 575px) {
	.sw-ramp .sw-ramp-panel {
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 0 !important;
		width: 100%;
		max-height: 82vh;
		border-radius: 16px 16px 0 0;
		transform: none;
	}
	.sw-ramp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ------------------------------------------------------------------ modos (no <html>) */
html.ramp-line-1 body :not(.sw-ramp, .sw-ramp *) { line-height: 1.8 !important; }
html.ramp-line-2 body :not(.sw-ramp, .sw-ramp *) { line-height: 2.2 !important; }
html.ramp-line-3 body :not(.sw-ramp, .sw-ramp *) { line-height: 2.6 !important; }

html.ramp-letter-1 body :not(.sw-ramp, .sw-ramp *) { letter-spacing: .06em !important; word-spacing: .12em !important; }
html.ramp-letter-2 body :not(.sw-ramp, .sw-ramp *) { letter-spacing: .12em !important; word-spacing: .24em !important; }
html.ramp-letter-3 body :not(.sw-ramp, .sw-ramp *) { letter-spacing: .18em !important; word-spacing: .36em !important; }

/* Ícones (Font Awesome, Bootstrap Icons, dashicons) continuam com a fonte deles */
html.ramp-family-legible body :not(.sw-ramp, .sw-ramp *, i, [class*="fa-"], [class^="bi-"], [class*=" bi-"], [class*="icon"], [class*="dashicons"], code, pre, kbd) { font-family: "Ramp Legible", Verdana, Arial, sans-serif !important; }
html.ramp-family-dyslexic body :not(.sw-ramp, .sw-ramp *, i, [class*="fa-"], [class^="bi-"], [class*=" bi-"], [class*="icon"], [class*="dashicons"], code, pre, kbd) { font-family: "Ramp Dyslexic", "Comic Sans MS", Verdana, sans-serif !important; }

/* Contraste: fundo sólido só na página e nas barras (cabeçalho, menus, rodapé, janelas); o resto fica transparente,
   para não cobrir imagens de sliders e fundos em camadas */
html.ramp-contrast-dark body,
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *):is(header, nav, footer, dialog, .dropdown-menu, .modal-content, .offcanvas, .navbar, .fixed-top, .sticky-top, [class*="sticky"], button, input, select, textarea, .btn, .card, .alert, table, [class*="cookie"], [class*="popup"], [class*="modal"], [class*="fixed"]) {
	background-color: #000 !important;
}
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *, img, picture, video, iframe, svg, svg *, canvas) {
	color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *, img, picture, video, iframe, svg, svg *, canvas, header, nav, footer, dialog, .dropdown-menu, .modal-content, .offcanvas, .navbar, .fixed-top, .sticky-top, [class*="sticky"], button, input, select, textarea, .btn, .card, .alert, table, [class*="cookie"], [class*="popup"], [class*="modal"], [class*="fixed"]) {
	background-color: transparent !important;
}
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *):is(a, a *) { color: #ffff00 !important; text-decoration: underline !important; }
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *):is(button, input, select, textarea, .btn) { border: 2px solid #fff !important; }
/* Bordas só onde elas aparecem: setas de menu feitas com bordas transparentes continuam setas */
html.ramp-contrast-dark body :not(.sw-ramp, .sw-ramp *):is(hr, table, th, td, .card, .alert, .border, [class*="border-"], .list-group-item, .dropdown-menu) { border-color: #fff !important; }

html.ramp-contrast-light body,
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *):is(header, nav, footer, dialog, .dropdown-menu, .modal-content, .offcanvas, .navbar, .fixed-top, .sticky-top, [class*="sticky"], button, input, select, textarea, .btn, .card, .alert, table, [class*="cookie"], [class*="popup"], [class*="modal"], [class*="fixed"]) {
	background-color: #fff !important;
}
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *, img, picture, video, iframe, svg, svg *, canvas) {
	color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *, img, picture, video, iframe, svg, svg *, canvas, header, nav, footer, dialog, .dropdown-menu, .modal-content, .offcanvas, .navbar, .fixed-top, .sticky-top, [class*="sticky"], button, input, select, textarea, .btn, .card, .alert, table, [class*="cookie"], [class*="popup"], [class*="modal"], [class*="fixed"]) {
	background-color: transparent !important;
}
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *):is(a, a *) { color: #0000c8 !important; text-decoration: underline !important; }
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *):is(button, input, select, textarea, .btn) { border: 2px solid #000 !important; }
html.ramp-contrast-light body :not(.sw-ramp, .sw-ramp *):is(hr, table, th, td, .card, .alert, .border, [class*="border-"], .list-group-item, .dropdown-menu) { border-color: #000 !important; }

html.ramp-links body :not(.sw-ramp, .sw-ramp *):is(a, [role="link"]) {
	outline: 2px solid #ffbf00 !important;
	outline-offset: 1px;
	background-color: #fff3c4 !important;
	color: #000 !important;
	text-decoration: underline !important;
}
html.ramp-headings body :not(.sw-ramp, .sw-ramp *):is(h1, h2, h3, h4, h5, h6, [role="heading"]) {
	outline: 2px dashed var(--ramp-color) !important;
	outline-offset: 4px;
}
html.ramp-focus body :not(.sw-ramp, .sw-ramp *):focus,
html.ramp-focus body :not(.sw-ramp, .sw-ramp *):focus-visible {
	outline: 4px solid #ffbf00 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 8px rgba(0, 0, 0, .7) !important;
}

html.ramp-cursor-white,
html.ramp-cursor-white * {
	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='M4 2l15 11.2-6.4.9 3.9 7.4-2.8 1.5-3.9-7.5L4 20z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important;
}
html.ramp-cursor-black,
html.ramp-cursor-black * {
	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='M4 2l15 11.2-6.4.9 3.9 7.4-2.8 1.5-3.9-7.5L4 20z' fill='%23000' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important;
}

html.ramp-images body :not(.sw-ramp, .sw-ramp *):is(img, picture, video, svg[role="img"], figure > iframe) { visibility: hidden !important; }
html.ramp-images body :not(.sw-ramp, .sw-ramp *) { background-image: none !important; }

html.ramp-animations *,
html.ramp-animations *::before,
html.ramp-animations *::after {
	animation-play-state: paused !important;
	animation-iteration-count: 1 !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* ------------------------------------------------------------------ guia, máscara, descrição e leitura */
.sw-ramp-guide {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147482990;
	height: 10px;
	margin-top: -5px;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
	background: #ffbf00;
	pointer-events: none;
}
.sw-ramp-mask {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147482990;
	background: rgba(0, 0, 0, .6);
	pointer-events: none;
}
.sw-ramp-mask--top { top: 0; }
.sw-ramp-mask--bottom { bottom: 0; }
.sw-ramp-tip {
	position: fixed;
	z-index: 2147483002;
	max-width: 320px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
}
html.ramp-speak body :not(.sw-ramp, .sw-ramp *):is(p, li, h1, h2, h3, h4, h5, h6, td, th, figcaption, blockquote, a, button, label, dt, dd):hover {
	outline: 2px dotted var(--ramp-color);
	outline-offset: 2px;
	cursor: help;
}
.sw-ramp-speaking {
	outline: 3px solid #ffbf00 !important;
	background-color: #fff3c4 !important;
	color: #000 !important;
}

/* VLibras aberto pelo menu: o botão azul do governo fica escondido */
html.ramp-vlibras-menu #vlibras-access-wrapper {
	display: none !important;
}

@media print {
	.sw-ramp,
	.sw-ramp-skip,
	.sw-ramp-guide,
	.sw-ramp-mask {
		display: none !important;
	}
}

@media (hover: none) {
	.sw-ramp-hint {
		display: none;
	}
}
