/* =========================
   ACCESSIBILITY CORE
   ========================= */

/* (Font scaling removed) */


/* =========================
   BASE TYPOGRAPHY
   ========================= */

/* Base text */
body {
	font-size: 1rem;
}

/* Headings */
h1 {
	font-size: 2.2rem;
}

h2 {
	font-size: 1.8rem;
}

h3 {
	font-size: 1.4rem;
}

/* Exclude slider animations */
.tp-caption {
	font-size: initial !important;
}

/* =========================
   FLOATING TOGGLE
   ========================= */

#a11y-toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: #004aad;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	z-index: 9999;
}

#a11y-toggle:focus {
	outline: 3px solid #ff9800;
	outline-offset: 3px;
}

/* =========================
   MENU
   ========================= */

#a11y-menu {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 230px;
	background: #ffffff;
	border: 2px solid #004aad;
	border-radius: 8px;
	display: none;
	flex-direction: column;
	padding: 10px;
	z-index: 9999;
}

#a11y-menu button {
	background: none;
	border: none;
	padding: 10px;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	color: #000;
}

#a11y-menu button:hover,
#a11y-menu button:focus {
	background: #e3f2fd;
	outline: 2px solid #004aad;
}

/* =========================
   HIGH CONTRAST MODE
   ========================= */

.high-contrast {
	background: #000 !important;
	color: #fff !important;
}

.high-contrast * {
	background-color: transparent !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
}

.high-contrast a {
	color: #00ffff !important;
	text-decoration: underline !important;
}

.high-contrast button,
.high-contrast .btn {
	background: #ffffff !important;
	color: #000000 !important;
	border: 2px solid #ffffff !important;
}

.high-contrast img {
	filter: brightness(0.9) contrast(1.2);
}

/* =========================
   FOCUS STYLES
   ========================= */

:focus {
	outline: 3px solid #ff9800;
	outline-offset: 2px;
}

.high-contrast :focus {
	outline: 3px solid #00ffff;
}
