/* ==========================================================================
   Runtime font switcher.
   The site hardcodes 'Amiri' in many rules, so overrides use !important and
   are keyed off <html data-font="...">. "default" (no attribute) = untouched.
   Font Awesome icons are excluded so they keep rendering.
   ========================================================================== */

/* Shared exclusion list: icon elements + the switcher widget itself */
html[data-font="sans"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.fsw):not(.fsw *),
html[data-font="serif"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.fsw):not(.fsw *),
html[data-font="readable"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.fsw):not(.fsw *) {
	font-family: var(--site-font) !important;
}

html[data-font="sans"]     { --site-font: 'Noto Sans', Verdana, Arial, sans-serif; }
html[data-font="serif"]    { --site-font: Georgia, 'Times New Roman', Times, serif; }
html[data-font="readable"] { --site-font: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif; }

/* ---- Widget ---- */
.fsw {
	position: relative;
	display: inline-block;
	z-index: 99990;
	font: normal 14px/1.2 Arial, Helvetica, sans-serif;
	color: #102050;
}

/* Header slot (next to "contact us") */
#fsw-mount {
	display: inline-block;
	vertical-align: middle;
	margin-right: 12px;
}

.fsw-toggle {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 32px;
	padding: 0 12px;
	border: 2px solid #102050;
	border-radius: 16px;
	background: #ffffff;
	color: #102050;
	font: 700 16px/1 Georgia, serif;
	cursor: pointer;
}

.fsw-label {
	font: 700 14px/1 Arial, Helvetica, sans-serif;
	text-transform: lowercase;
}

/* Floating fallback for pages without #fsw-mount */
.fsw--floating {
	position: fixed;
	left: 14px;
	bottom: 14px;
}

.fsw--floating .fsw-toggle {
	box-shadow: 0 2px 8px rgba(16, 32, 80, .25);
}

.fsw-toggle:hover,
.fsw-toggle:focus-visible,
.fsw-toggle[aria-expanded="true"] {
	background: #102050;
	color: #ffffff;
}

.fsw-toggle:focus-visible,
.fsw-opt:focus-visible {
	outline: 3px solid #67b6ee;
	outline-offset: 2px;
}

.fsw-menu {
	position: absolute;
	right: 0;
	top: 40px;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #ffffff;
	border: 1px solid #102050;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(16, 32, 80, .3);
}

.fsw--floating .fsw-menu {
	left: 0;
	right: auto;
	top: auto;
	bottom: 42px;
}

.fsw-menu[hidden] { display: none; }

.fsw-opt {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #102050;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
}

.fsw-opt:hover { background: #eaf3fb; }

.fsw-opt[aria-pressed="true"] {
	background: #102050;
	color: #ffffff;
}

.fsw-opt[aria-pressed="true"]::after { content: " \2713"; }

@media print { .fsw { display: none; } }
