/* =====================================================================
   Panou de accesibilitate – tema „Litoral”
   Setările se aplică prin clase / variabile pe <html> (vezi js/a11y.js).
   ===================================================================== */

/* ---------- butonul plutitor */
.a11y-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 2147483000;
	width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
	background: #5b2be0; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab:focus-visible { outline: 3px solid #ffbf00; outline-offset: 3px; }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-fab .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #1ec27a; border: 2px solid #fff; display: none; }
html.a11y-on .a11y-fab .dot { display: block; }
#back-to-top { bottom: 86px !important; }

/* ---------- panoul */
.a11y-panel {
	position: fixed; right: 18px; bottom: 86px; z-index: 2147483001;
	width: min(380px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 110px));
	display: none; flex-direction: column;
	background: #fff; color: #111a26; border-radius: 14px; overflow: hidden;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .3); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: normal; text-align: left; filter: none !important; zoom: 1 !important;
}
.a11y-panel.open { display: flex; }
.a11y-panel * { box-sizing: border-box; }
.a11y-panel *:not(.fa) { font-family: inherit !important; letter-spacing: normal !important; line-height: 1.45 !important; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #5b2be0; color: #fff; }
.a11y-head h2 { margin: 0; font-size: 17px !important; font-weight: 700; color: #fff; }
.a11y-close { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.a11y-tabs { display: flex; border-bottom: 1px solid #e5e5ec; background: #f6f5fb; }
.a11y-tabs button { flex: 1; border: 0; background: none; padding: 11px 4px; font-size: 13px; font-weight: 600; color: #4a4a5a; cursor: pointer; border-bottom: 3px solid transparent; }
.a11y-tabs button[aria-selected="true"] { color: #5b2be0; border-bottom-color: #5b2be0; background: #fff; }
.a11y-body { overflow-y: auto; padding: 14px 16px; }
.a11y-tabpanel { display: none; }
.a11y-tabpanel.active { display: block; }
.a11y-row { margin-bottom: 14px; }
.a11y-row > label, .a11y-row > .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.a11y-row output { color: #5b2be0; font-variant-numeric: tabular-nums; }
.a11y-row input[type=range] { width: 100%; accent-color: #5b2be0; }
.a11y-row select { width: 100%; padding: 8px 10px; border: 1px solid #d5d5df; border-radius: 8px; background: #fff; color: #111; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggle { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 2px solid #e5e5ec; border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #222; text-align: left; min-height: 64px; }
.a11y-toggle i { font-size: 18px; color: #5b2be0; }
.a11y-toggle[aria-pressed="true"] { border-color: #5b2be0; background: #f0ebff; }
.a11y-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.a11y-seg button { padding: 8px 4px; border: 2px solid #e5e5ec; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; color: #222; }
.a11y-seg button[aria-pressed="true"] { border-color: #5b2be0; background: #f0ebff; color: #5b2be0; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #e5e5ec; background: #f6f5fb; font-size: 12px; color: #666; }
.a11y-reset { border: 0; background: #111a26; color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.a11y-tts { display: flex; gap: 8px; }
.a11y-tts button { flex: 1; padding: 10px; border-radius: 8px; border: 2px solid #5b2be0; background: #5b2be0; color: #fff; font-weight: 600; cursor: pointer; }
.a11y-tts button.secondary { background: #fff; color: #5b2be0; }
.a11y-note { font-size: 12px; color: #666; margin: 6px 0 0; }

/* ---------- efectele setărilor (aplicate pe <html>) */
/* mărime text: zoom pe conținut (tema are dimensiuni în px) */
html.a11y-zoom main, html.a11y-zoom .ticker, html.a11y-zoom .footer, html.a11y-zoom .nav, html.a11y-zoom .topbar { zoom: var(--a11y-zoom, 1); }
html.a11y-ls main *, html.a11y-ls .nav * { letter-spacing: var(--a11y-ls) !important; word-spacing: calc(var(--a11y-ls) * 2) !important; }
html.a11y-lh main *, html.a11y-lh .nav * { line-height: var(--a11y-lh) !important; }
html.a11y-font body *:not(.fa):not(.a11y-panel *) { font-family: var(--a11y-font) !important; }
html.a11y-align main p, html.a11y-align main h1, html.a11y-align main h2, html.a11y-align main h3, html.a11y-align main h4, html.a11y-align .article-body { text-align: var(--a11y-align) !important; }

/* contrast înalt: suprascrie variabilele temei */
html.a11y-contrast {
	--bg: #000; --surface: #000; --surface-2: #111; --ink: #fff; --ink-2: #fff; --muted: #e0e0e0;
	--line: #fff; --brand: #ffd400; --brand-ink: #ffd400; --accent: #ffd400; --nav: #000; --nav-ink: #fff; --nav-hover: #222;
}
html.a11y-contrast a { color: #ffd400 !important; text-decoration: underline !important; }
html.a11y-contrast .hero .overlay .caption { background: #000 !important; position: static; padding: 12px !important; }
html.a11y-contrast .thumb { border: 1px solid #fff; }
html.a11y-contrast .kicker, html.a11y-contrast .kicker-pill { color: #000 !important; background: #ffd400 !important; }
html.a11y-light {
	--bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-2: #000; --muted: #222;
	--line: #000; --brand: #0033cc; --brand-ink: #0033cc; --accent: #b00020; --nav: #fff; --nav-ink: #000; --nav-hover: #eee;
}
html.a11y-light .nav { border-bottom: 2px solid #000; }
html.a11y-light a { text-decoration: underline; }

/* filtre: pe fiecare copil al <body>, ca butonul și panoul să rămână neafectate și fixe */
html.a11y-filter body > *:not(.a11y-fab):not(.a11y-panel):not(.a11y-mask):not(.a11y-line) { filter: var(--a11y-filter); }

html.a11y-noimg main img, html.a11y-noimg main iframe, html.a11y-noimg .thumb { visibility: hidden; }
html.a11y-noimg .thumb { height: 0 !important; aspect-ratio: auto !important; min-height: 0; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links main a, html.a11y-links .nav a { outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-headings main h1, html.a11y-headings main h2, html.a11y-headings main h3, html.a11y-headings main h4 { outline: 3px solid var(--accent); outline-offset: 4px; background: rgba(255, 212, 0, .12); }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-noanim .ticker-viewport { overflow-x: auto; }
html.a11y-cursor, html.a11y-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 20-13 2 8 16-6 3-8-16-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-focus *:focus { outline: 4px solid #ffbf00 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #111 !important; }
html.a11y-highlight main p:hover, html.a11y-highlight main li:hover, html.a11y-highlight main h1:hover, html.a11y-highlight main h2:hover, html.a11y-highlight main h3:hover { background: rgba(255, 212, 0, .35); }

/* mască și linie de citire */
.a11y-mask { position: fixed; inset: 0; pointer-events: none; z-index: 2147482000; }
.a11y-mask::before, .a11y-mask::after { content: ""; position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .6); }
.a11y-mask::before { top: 0; height: var(--a11y-y-top, 40vh); }
.a11y-mask::after { top: var(--a11y-y-bottom, 60vh); bottom: 0; }
.a11y-line { position: fixed; left: 0; right: 0; height: 4px; background: #ffbf00; box-shadow: 0 0 0 2px #111; pointer-events: none; z-index: 2147482000; top: var(--a11y-y, 50vh); }

/* citire cu voce: paragraful curent */
.a11y-speaking { background: rgba(255, 212, 0, .35) !important; outline: 2px solid #ffbf00; border-radius: 4px; }

@media print { .a11y-fab, .a11y-panel, .a11y-mask, .a11y-line { display: none !important; } }
html.a11y-contrast .logo img, html.a11y-contrast .footer .about img { background: #fff; border-radius: 8px; padding: 4px 8px; }
