/* SimplyCooking נגישות — always-on fixes, toolbar UI, and the html.sc-a11y-* modes. */

:root {
	--sc-a11y-brand: #1a5d3a;
	--sc-a11y-focus: #ffbf00;
}

/* ---------- Visually hidden, still read by screen readers ---------- */
.sc-a11y-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- 2.4.1 skip links ---------- */
.sc-a11y-skip-link {
	position: fixed;
	top: -200px;
	right: 8px;
	z-index: 1000000;
	padding: 12px 18px;
	background: #000;
	color: #fff !important;
	font: 700 18px/1.3 Arial, "Helvetica Neue", sans-serif;
	text-decoration: underline;
	border: 3px solid var(--sc-a11y-focus);
	border-radius: 4px;
}
.sc-a11y-skip-link:focus {
	top: 8px;
	outline: none;
}
[tabindex="-1"]:focus:not(:focus-visible) {
	outline: none;
}

/* ---------- 2.4.7 visible focus everywhere (theme/bootstrap resets outline) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--sc-a11y-focus) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #000 !important;
}

/* ---------- Keyboard access to Melissa's hover-only dropdowns (2.1.1) ---------- */
.sf-menu li:focus-within > ul,
.sf-menu li.sc-a11y-open > ul {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* ---------- 2.3.3 / 2.2.2 respect OS "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Comment form labels ---------- */
.sc-a11y-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}
.sc-a11y-req {
	font-weight: 400;
	font-size: 0.9em;
}

/* ---------- Footer statement link ---------- */
.sc-a11y-footer-bar {
	padding: 14px 16px;
	text-align: center;
	font-size: 15px;
}
.sc-a11y-footer-bar a {
	text-decoration: underline;
}

/* =================================================================
   Toolbar
   ================================================================= */
.sc-a11y-root {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	direction: rtl;
	font: 16px/1.4 Arial, "Helvetica Neue", sans-serif;
	color: #111;
	/* immune to the zoom/filter modes */
	zoom: 1 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}
.sc-a11y-side-left { left: 16px; }
.sc-a11y-side-right { right: 16px; }

.sc-a11y-open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--sc-a11y-brand);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.sc-a11y-open:hover {
	filter: brightness(1.15);
}

.sc-a11y-panel {
	position: absolute;
	bottom: 64px;
	width: 320px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	padding: 16px;
	background: #fff;
	color: #111;
	border: 2px solid var(--sc-a11y-brand);
	border-radius: 10px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
	text-align: right;
}
.sc-a11y-side-left .sc-a11y-panel { left: 0; }
.sc-a11y-side-right .sc-a11y-panel { right: 0; }
.sc-a11y-panel[hidden] { display: none; }

.sc-a11y-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.sc-a11y-title {
	margin: 0 !important;
	font: 700 20px/1.3 Arial, sans-serif !important;
	color: #111 !important;
}
.sc-a11y-root button {
	font: inherit;
	color: #111;
	text-transform: none;
	letter-spacing: normal;
}
.sc-a11y-close {
	width: 40px;
	height: 40px;
	border: 1px solid #555;
	border-radius: 6px;
	background: #fff;
	font-size: 26px !important;
	line-height: 1;
	cursor: pointer;
}

.sc-a11y-size {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 8px;
	background: #f2f2f2;
	border-radius: 8px;
}
.sc-a11y-size-label {
	flex: 1;
	font-weight: 700;
}
.sc-a11y-size button {
	min-width: 44px;
	height: 44px;
	border: 1px solid #555;
	border-radius: 6px;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}
.sc-a11y-size-value {
	min-width: 48px;
	text-align: center;
	font-weight: 700;
}

.sc-a11y-tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 12px !important;
	padding: 0 !important;
	list-style: none !important;
}
.sc-a11y-tools li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.sc-a11y-tools li::before { content: none !important; }
.sc-a11y-tool {
	width: 100%;
	min-height: 52px;
	padding: 6px 8px;
	border: 1px solid #555;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	font-size: 14px !important;
	cursor: pointer;
}
.sc-a11y-tool:hover { background: #f2f2f2; }
.sc-a11y-tool[aria-pressed="true"] {
	background: var(--sc-a11y-brand);
	border-color: var(--sc-a11y-brand);
	color: #fff;
}
.sc-a11y-tool[aria-pressed="true"]::before {
	content: "✓ ";
}

.sc-a11y-panel-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
}
.sc-a11y-panel-foot a {
	color: #0b4d8c !important;
	text-decoration: underline !important;
}
.sc-a11y-reset {
	width: 100%;
	min-height: 44px;
	border: 2px solid #111;
	border-radius: 8px;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}
.sc-a11y-note {
	margin: 12px 0 0 !important;
	font-size: 13px !important;
	color: #444 !important;
}

@media (max-width: 480px) {
	.sc-a11y-root { bottom: 12px; }
	.sc-a11y-side-left { left: 10px; }
	.sc-a11y-side-right { right: 10px; }
	.sc-a11y-open { width: 46px; height: 46px; }
	.sc-a11y-panel { bottom: 56px; }
}

/* =================================================================
   Modes — html.sc-a11y-<tool>. Colour filters target body children
   except the toolbar so it stays usable and position:fixed survives.
   ================================================================= */

html.sc-a11y-grayscale body > *:not(#sc-a11y-root) {
	filter: grayscale(100%);
}

html.sc-a11y-contrast body,
html.sc-a11y-contrast body *:not(#sc-a11y-root):not(#sc-a11y-root *) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.sc-a11y-contrast body a:not(#sc-a11y-root *),
html.sc-a11y-contrast body a *:not(#sc-a11y-root *) {
	color: #ffff00 !important;
}
html.sc-a11y-contrast body img,
html.sc-a11y-contrast body video {
	background-color: transparent !important;
}

html.sc-a11y-dark body,
html.sc-a11y-dark body *:not(#sc-a11y-root):not(#sc-a11y-root *) {
	background-color: #121212 !important;
	background-image: none !important;
	color: #f0f0f0 !important;
	border-color: #888 !important;
}
html.sc-a11y-dark body a:not(#sc-a11y-root *) {
	color: #8ecbff !important;
}

html.sc-a11y-light body,
html.sc-a11y-light body *:not(#sc-a11y-root):not(#sc-a11y-root *) {
	background-color: #fff !important;
	background-image: none !important;
	color: #000 !important;
	text-shadow: none !important;
}
html.sc-a11y-light body a:not(#sc-a11y-root *) {
	color: #0645ad !important;
}

html.sc-a11y-links a:not(#sc-a11y-root *) {
	text-decoration: underline !important;
	text-underline-offset: 3px;
	outline: 2px dashed currentColor !important;
	outline-offset: 2px;
	font-weight: 700 !important;
}

html.sc-a11y-headings :is(h1, h2, h3, h4, h5, h6):not(#sc-a11y-root *) {
	outline: 3px solid var(--sc-a11y-brand) !important;
	outline-offset: 3px;
	text-decoration: underline !important;
}

html.sc-a11y-font body *:not(#sc-a11y-root *):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not([class*="icon"]):not(i) {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* 1.4.12 text-spacing values */
html.sc-a11y-spacing body *:not(#sc-a11y-root):not(#sc-a11y-root *) {
	line-height: 1.5 !important;
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}
html.sc-a11y-spacing body p:not(#sc-a11y-root *) {
	margin-bottom: 2em !important;
}

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

html.sc-a11y-cursor,
html.sc-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 2 L6 40 L16 30 L23 46 L30 43 L23 27 L38 27 Z' fill='%23000' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 6 2, auto !important;
}

html.sc-a11y-focus *:focus {
	outline: 4px solid #ff00aa !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 7px #000 !important;
}

html.sc-a11y-noimages body img:not(#sc-a11y-root *),
html.sc-a11y-noimages body video:not(#sc-a11y-root *),
html.sc-a11y-noimages body picture:not(#sc-a11y-root *) {
	visibility: hidden !important;
}
html.sc-a11y-noimages body *:not(#sc-a11y-root *) {
	background-image: none !important;
}

.sc-a11y-guide-bar {
	position: fixed;
	left: 0;
	right: 0;
	height: 14px;
	margin-top: -7px;
	z-index: 999998;
	pointer-events: none;
	background: rgba(255, 191, 0, 0.35);
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
}

@media print {
	.sc-a11y-root,
	.sc-a11y-skip,
	.sc-a11y-guide-bar { display: none !important; }
}
