/*
 * Accessibility widget: the button/panel UI plus the effect classes
 * toggled on <html>. Font sizing uses rem-scaling (the theme's type
 * scale is rem/clamp-based, so bumping the root size scales
 * everything proportionally).
 */

/* ---- paletă (urmează light/dark) ---- */
:root { --moisil-accent: #9e0300; --moisil-accent-strong: #7a0200; --moisil-accent-ink: #fff; --moisil-bg: #fff; --moisil-bg-soft: #f7f7f7;
	--moisil-text: #222; --moisil-text-muted: #555; --moisil-border: #ddd; }
html[data-theme="dark"] { --moisil-bg: #1d1d1d; --moisil-bg-soft: #262626; --moisil-text: #e6e6e6; --moisil-text-muted: #aaa; --moisil-border: #3a3a3a; --moisil-accent-strong: #ff8a85; }

/* ---- widget UI ---- */

.moisil-a11y {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9990;
}

.moisil-a11y__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 999px;
	background: var(--moisil-accent, #0070b9);
	color: var(--moisil-accent-ink, #ffffff);
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(14, 20, 36, 0.25);
}



.moisil-a11y__button:hover {
	background: var(--moisil-accent-strong, #005a94);
	color: #fff;
}

.moisil-a11y__button:focus-visible {
	outline: 2px solid var(--moisil-accent-strong, #005a94);
	outline-offset: 3px;
}

.moisil-a11y__panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: min(280px, calc(100vw - 36px));
	background: var(--moisil-bg, #fff);
	color: var(--moisil-text, #0e1424);
	border: 1px solid var(--moisil-border, #dde6ef);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(14, 20, 36, 0.18);
	padding: 16px;
}

.moisil-a11y__title {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.moisil-a11y__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.moisil-a11y__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: left;
	color: var(--moisil-text, #0e1424);
	background: var(--moisil-bg-soft, #f4f8fc);
	border: 1px solid var(--moisil-border, #dde6ef);
	border-radius: 8px;
	cursor: pointer;
}

.moisil-a11y__option[aria-pressed='true'] {
	background: var(--moisil-accent, #0070b9);
	border-color: var(--moisil-accent, #0070b9);
	color: var(--moisil-accent-ink, #ffffff);
}

.moisil-a11y__option:focus-visible,
.moisil-a11y__reset:focus-visible {
	outline: 2px solid var(--moisil-accent-strong, #005a94);
	outline-offset: 2px;
}

.moisil-a11y__step {
	font-size: 0.75rem;
	font-weight: 800;
}

.moisil-a11y__reset {
	margin-top: 12px;
	width: 100%;
	padding: 8px 12px;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--moisil-text-muted, #56617a);
	background: none;
	border: 1px dashed var(--moisil-border, #dde6ef);
	border-radius: 8px;
	cursor: pointer;
}

.moisil-a11y__reset:hover {
	color: var(--moisil-text, #0e1424);
	border-color: var(--moisil-text-muted, #56617a);
}

@media print {
	.moisil-a11y {
		display: none;
	}
}

/* ---- effect classes on <html> ---- */

html.a11y-font-lg {
	font-size: 112.5%;
}

html.a11y-font-xl {
	font-size: 125%;
}

html.a11y-contrast body, html.a11y-contrast .entry-content, html.a11y-contrast .entry-content p, html.a11y-contrast .entry-content li,
html.a11y-contrast .moisil-card, html.a11y-contrast .moisil-team-card span, html.a11y-contrast .moisil-activity p, html.a11y-contrast .moisil-person p { color: #000 !important; }
html.a11y-contrast .entry-content a:not(.moisil-btn), html.a11y-contrast .moisil-latest-item h4 a { color: #0000b8 !important; text-decoration: underline !important; }
html.a11y-contrast .moisil-btn, html.a11y-contrast .moisil-topbar, html.a11y-contrast .moisil-date { background: #000 !important; border-color: #000 !important; color: #fff !important; }
html.a11y-contrast .moisil-card, html.a11y-contrast .moisil-team-card, html.a11y-contrast .moisil-activity, html.a11y-contrast .moisil-latest-item { border: 2px solid #000 !important; }
html.a11y-contrast[data-theme="dark"] body, html.a11y-contrast[data-theme="dark"] #page, html.a11y-contrast[data-theme="dark"] .site-content,
html.a11y-contrast[data-theme="dark"] .moisil-card, html.a11y-contrast[data-theme="dark"] .moisil-team-card, html.a11y-contrast[data-theme="dark"] .moisil-activity,
html.a11y-contrast[data-theme="dark"] .moisil-latest-item { background: #000 !important; }
html.a11y-contrast[data-theme="dark"] body, html.a11y-contrast[data-theme="dark"] .entry-content, html.a11y-contrast[data-theme="dark"] .entry-content p,
html.a11y-contrast[data-theme="dark"] .entry-content li, html.a11y-contrast[data-theme="dark"] h1, html.a11y-contrast[data-theme="dark"] h2,
html.a11y-contrast[data-theme="dark"] h3, html.a11y-contrast[data-theme="dark"] h4, html.a11y-contrast[data-theme="dark"] .moisil-team-card span,
html.a11y-contrast[data-theme="dark"] .moisil-activity p { color: #fff !important; }
html.a11y-contrast[data-theme="dark"] .entry-content a:not(.moisil-btn), html.a11y-contrast[data-theme="dark"] .moisil-latest-item h4 a { color: #ffff66 !important; }
html.a11y-contrast[data-theme="dark"] .moisil-card, html.a11y-contrast[data-theme="dark"] .moisil-team-card, html.a11y-contrast[data-theme="dark"] .moisil-activity,
html.a11y-contrast[data-theme="dark"] .moisil-latest-item { border-color: #fff !important; }

html.a11y-grayscale {
	filter: grayscale(1);
}

html.a11y-underline-links a {
	text-decoration: underline !important;
}

html.a11y-highlight-links a:not(.moisil-a11y__button) {
	background: #ffee00 !important;
	color: #000000 !important;
}

html.a11y-readable-font body {
	font-family: Arial, Helvetica, sans-serif !important;
	letter-spacing: 0.01em;
	word-spacing: 0.05em;
}

html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font h5,
html.a11y-readable-font h6 {
	font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-stop-motion *,
html.a11y-stop-motion *::before,
html.a11y-stop-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* ---- Bookmark tab (2026-11) ----
   The button is a "bookmark" fixed to the right edge just under the
   header, level with the page title, so it never covers text or the
   footer on any screen size. The panel opens below it. */
.moisil-a11y {
	top: calc(var(--moisil-a11y-top, 150px));
	right: 0;
	bottom: auto;
}

.moisil-a11y__button {
	width: 44px;
	height: 48px;
	border-radius: 12px 0 0 12px;
	box-shadow: -2px 4px 14px rgba(14, 20, 36, 0.18);
}

.moisil-a11y__button svg {
	width: 22px;
	height: 22px;
}

.moisil-a11y__panel {
	top: 56px;
	bottom: auto;
	right: 8px;
	max-height: calc(100vh - 170px);
	overflow: auto;
}

@media (max-height: 760px) {
	:root {
		--moisil-a11y-top: 130px;
	}
}

@media (max-width: 781px) {
	:root {
		--moisil-a11y-top: 120px;
	}
}

/* Astra pune padding pe <button>: îl anulăm ca să se vadă pictograma */
.moisil-a11y .moisil-a11y__button { padding: 0 !important; line-height: 1; }
.moisil-a11y__button svg { display: block; flex: none; fill: currentColor; color: #fff; }
