/* WEB PORTAL Accessibility: the menu (copied from the CINDY Accessibility plugin) and the effects it switches.
   The panel takes the WEB PORTAL theme's design tokens (assets/css/site.css), with their values as fallbacks. */

.ala-root {
	--ala-ink: var(--c-ink, #1C1533);
	--ala-ground: var(--c-paper, #FCFBFE);
	--ala-surface: var(--c-white, #FFFFFF);
	--ala-line: var(--c-line, #E3DDEF);
	--ala-soft: var(--c-ink-2, #4B4565);
	--ala-copper: var(--c-purple, #5A3D9A);
	--ala-focus: var(--c-violet, #6B5CB0);
	--ala-shadow: 0 12px 40px rgba(28, 21, 51, 0.18);
	--ala-hair: 1px;
	--ala-strong: 2px;
	--ala-min: 44px;
	font-family: var(--font-body, "Noto Sans Hebrew", Arial, sans-serif);
	color: var(--ala-ink);
	line-height: 1.4;
}
.ala-root *, .ala-root *::before, .ala-root *::after { box-sizing: border-box; }
.ala-root button { margin: 0; font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* a hover only where there is a real pointer (on a phone it stays lit after the tap), on the controls whose look
   does not already change with their state */
@media (hover: hover) and (pointer: fine) {
	.ala-root :is(.ala-seg__btn[aria-pressed="false"], .ala-step:not(:disabled), .ala-reset, .ala-map__open, .ala-map__item, .ala-close):hover { background: var(--ala-ground); }
	.ala-root :is(.ala-switch, .ala-sec__btn):hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
}
.ala-root :focus-visible { outline: 3px solid var(--ala-focus); outline-offset: 2px; }

/* the round button, bottom left */
/* under .ala-root, so its "button { color: inherit }" does not paint the icon ink on ink */
.ala-root .ala-toggle {
	position: fixed; left: var(--al-float-edge, 20px); bottom: var(--al-float-bottom, 20px); z-index: 999999;
	display: flex; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 56px; padding: 0;
	border: var(--ala-strong) solid var(--ala-ground); border-radius: 999px;
	background: var(--ala-ink); color: var(--ala-ground); box-shadow: var(--ala-shadow);
}
.ala-root .ala-toggle { transition: transform 0.1s ease-out; }
.ala-root .ala-toggle:active:not(.is-moving) { transform: scale(0.96); }
.ala-toggle svg { flex: none; width: 28px; height: 28px; }
.ala-toggle .ala-toggle__move { display: none; width: 20px; height: 20px; }

/* the panel above it (the button's 56px and 20px more), 380px wide, the rest of the screen's height less 40px; the
   title row stays at the top while it scrolls */
.ala-panel {
	position: fixed; left: var(--al-float-edge, 20px); bottom: calc(var(--al-float-bottom, 20px) + 76px); z-index: 999999;
	width: 380px; max-width: calc(100vw - 40px); max-height: calc(100vh - var(--al-float-bottom, 20px) - 116px); overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 28px; padding: 0 24px 24px;
	border: var(--ala-hair) solid var(--ala-line); background: var(--ala-surface); box-shadow: var(--ala-shadow);
	text-align: right;
}
.ala-panel[hidden] { display: none; }
/* a drawer: it slides in from the left edge, out of the button (owner, 2026-11-05), and back out when closed;
   assets/js/accessibility.js keeps it shown until the slide ends */
.ala-panel {
	transform: translateX(calc(-100% - var(--al-float-edge, 20px) - 24px));
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.ala-panel.is-in { transform: none; }
.ala-head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: var(--ala-min); margin: 0 -24px; padding: 20px 24px 12px; background: var(--ala-surface); border-bottom: var(--ala-hair) solid var(--ala-line);
}
.ala-title { margin: 0; font-family: inherit; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ala-ink); }
.ala-root .ala-close { display: grid; place-items: center; width: var(--ala-min); height: var(--ala-min); padding: 0; border: 0; background: transparent; }
.ala-close svg { width: 18px; height: 18px; }

.ala-sec { display: flex; flex-direction: column; gap: 12px; }
.ala-sec__title { margin: 0; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ala-ink); }
.ala-sec__hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ala-soft); }
/* a folding section (owner, 2026-11-04): the title is a button across the panel with a + / − square at its end */
.ala-root .ala-sec__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: var(--ala-min); padding: 0;
	border: 0; background: transparent; font: inherit; text-align: right;
}
.ala-sec__icon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 4px; background: var(--ala-ink); }
.ala-sec__icon::before, .ala-sec__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--ala-surface); }
.ala-sec__icon::after { transform: rotate(90deg); }
.ala-sec__btn[aria-expanded="true"] .ala-sec__icon::after { display: none; }
.ala-sec__body { display: flex; flex-direction: column; gap: 12px; }
.ala-sec__body[hidden] { display: none; }

.ala-group { display: flex; flex-direction: column; gap: 8px; }
.ala-label { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* a row with a label and a − value + stepper */
.ala-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: var(--ala-hair) solid var(--ala-line); }
.ala-row:first-of-type { border-top: var(--ala-hair) solid var(--ala-line); }
.ala-row__label { font-size: 16px; }
.ala-stepper { display: flex; flex: none; align-items: center; border: var(--ala-hair) solid var(--ala-line); }
/* sizes under .ala-root: its "button { font: inherit }" would win over a single class */
.ala-root .ala-step { display: grid; place-items: center; width: var(--ala-min); height: var(--ala-min); padding: 0; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.ala-step:disabled { opacity: 0.35; cursor: default; }
.ala-value { min-width: 76px; font-size: 15px; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }

.ala-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ala-root .ala-seg__btn { min-height: var(--ala-min); padding: 0 6px; border: var(--ala-hair) solid var(--ala-ink); background: transparent; font-size: 14px; }
.ala-seg__btn[aria-pressed="true"] { background: var(--ala-ink); color: var(--ala-surface); }

.ala-list { margin: 0; padding: 0; list-style: none; border-top: var(--ala-hair) solid var(--ala-line); }
.ala-row + .ala-list { border-top: 0; }
.ala-list li { margin: 0; border-bottom: var(--ala-hair) solid var(--ala-line); }
.ala-root .ala-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0; border: 0; background: transparent; font-size: 16px; text-align: right; }
/* the switch: off with the knob at the start (right), on in ink with the knob at the end */
.ala-switch__track { position: relative; flex: none; width: 48px; height: 24px; border-radius: 999px; background: var(--ala-line); transition: background-color 0.2s; }
.ala-switch__knob { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: right 0.2s; }
.ala-switch[aria-pressed="true"] .ala-switch__track { background: var(--ala-ink); }
.ala-switch[aria-pressed="true"] .ala-switch__knob { right: 27px; }

/* the page map: the page's areas and headings, h2 and h3 set in from the edge */
.ala-root .ala-map__open { min-height: var(--ala-min); padding: 0 16px; border: var(--ala-hair) solid var(--ala-ink); background: transparent; font-size: 15px; text-align: center; }
.ala-map { margin: 0; padding: 0; list-style: none; border-top: var(--ala-hair) solid var(--ala-line); }
.ala-map[hidden] { display: none; }
.ala-map li { margin: 0; border-bottom: var(--ala-hair) solid var(--ala-line); }
.ala-root .ala-map__item { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: var(--ala-min); padding: 10px 0; border: 0; background: transparent; font-size: 15px; text-align: right; }
.ala-map__item--h2 { padding-inline-start: 14px !important; }
.ala-map__item--h3 { padding-inline-start: 28px !important; }
.ala-map__kind { flex: none; min-width: 56px; font-size: 12px; color: var(--ala-soft); }

.ala-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ala-root .ala-reset { min-height: var(--ala-min); padding: 0 24px; border: var(--ala-hair) solid var(--ala-ink); background: transparent; font-size: 16px; }
.ala-statement { display: inline-flex; align-items: center; min-height: var(--ala-min); font-size: 14px; color: var(--ala-copper); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.ala-switch__track, .ala-switch__knob, .ala-root .ala-toggle, html.ala-slide .ala-root .ala-toggle, .ala-panel, .ala-root::before { transition: none !important; }
}

/* a phone: a tab on the left edge (owner, 2026-11-05, "option B"), a third of the way down or where the visitor dragged it:
   --ala-t, its top edge in px, kept under the header and above WhatsApp. Flat against the edge and round on the
   inner side. Placed in svh, the small screen height that stays put
   while the browser's address bar slides away: a share of the screen (top: 50%) changed with it and ran the other way
   on every scroll. The vh line is the fallback for browsers without svh. A long press shows the move handle
   (assets/js/accessibility.js). The panel is a sheet over the whole screen. */
@media (max-width: 781px) {
	/* a slim tab (owner, 2026-11-05: "less dead space, less prominent"): 30 by 48 on screen with a hairline ring and a
	   soft shadow, while ::after keeps the touch area at 44 by 56 (the store's touch floor) */
	.ala-root .ala-toggle {
		left: 0; bottom: auto;
		/* by default its centre at a third of the screen, the upper part (owner, 2026-11-05, from a screenshot) */
		top: clamp(130px, var(--ala-t, calc(32vh - 24px)), calc(100vh - 140px));
		top: clamp(130px, var(--ala-t, calc(32svh - 24px)), calc(100svh - 140px));
		width: 30px; height: 48px; padding: 0; border-width: var(--ala-hair); border-left: 0; border-radius: 0 24px 24px 0; transform-origin: left center;
		box-shadow: 0 4px 12px rgba(28, 21, 51, 0.18);
		touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
		transition: width 0.18s, box-shadow 0.18s, transform 0.1s ease-out;
	}
	.ala-root .ala-toggle::after { content: ""; position: absolute; inset: -4px -14px -4px 0; }
	.ala-toggle svg { width: 18px; height: 18px; }
	.ala-root .ala-toggle.is-moving { width: 56px; box-shadow: 0 16px 44px rgba(28, 21, 51, 0.32); cursor: grabbing; }
	.ala-toggle.is-moving .ala-toggle__move { display: block; width: 18px; height: 18px; }
	/* the drawer: the full height on the left, the page dimmed beside it, the tab riding on its edge as the handle that
	   pulled it out (owner, 2026-11-05: "as if the tab opens"); a tap on the tab or the dimmed page closes it */
	.ala-root { --ala-dw: min(calc(100vw - 56px), 420px); }
	.ala-panel { inset: 0 auto 0 0; width: var(--ala-dw); max-width: none; max-height: none; border-width: 0 var(--ala-hair) 0 0; transform: translateX(-100%); }
	.ala-panel.is-in { transform: none; }
	.ala-root::before {
		content: ""; position: fixed; inset: 0; z-index: 999998; background: rgba(28, 21, 51, 0.45);
		opacity: 0; pointer-events: none; transition: opacity 0.32s ease;
	}
	html.ala-open .ala-root::before { opacity: 1; pointer-events: auto; }
	html.ala-slide .ala-root .ala-toggle { transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), width 0.18s, box-shadow 0.18s; }
	html.ala-open .ala-root .ala-toggle { transform: translateX(var(--ala-dw)); box-shadow: 4px 4px 12px rgba(28, 21, 51, 0.18); }
	html.ala-open .ala-root .ala-toggle:active { transform: translateX(var(--ala-dw)) scale(0.96); }
	html.ala-open, html.ala-open body { overflow: hidden; }
}

/* ---------- the effects (classes on <html>, set by the menu) ---------- */

/* light contrast: white grounds, black text and lines, a strong blue focus */
html.ala-contrast-high {
	--c-paper: #fff; --c-white: #fff; --c-mist: #fff; --c-mist-2: #fff; --c-pink-soft: #fff; --c-header-bg: #fff;
	--c-ink: #000; --c-ink-2: #000; --c-ink-3: #000; --c-line: #000; --c-line-strong: #000;
	--c-purple: #2E1D60; --c-violet: #2E1D60; --c-pink-ink: #000;
	--c-focus: rgba(0, 71, 255, 0.5);
}
/* dark contrast: black grounds, white text, light lines and yellow accents */
html.ala-contrast-dark {
	--c-paper: #000; --c-white: #111; --c-mist: #111; --c-mist-2: #1a1a1a; --c-pink-soft: #1a1a1a; --c-header-bg: #000;
	--c-ink: #fff; --c-ink-2: #e6e6e6; --c-ink-3: #e6e6e6; --c-line: #8c8c8c; --c-line-strong: #bfbfbf;
	--c-purple: #ffd27a; --c-violet: #ffd27a; --c-pink-ink: #ffd27a;
	--c-night: #000; --c-night-2: #111; --c-on-night: #fff; --c-on-night-2: #e6e6e6;
	--c-focus: rgba(255, 210, 122, 0.6);
	color-scheme: dark;
}
/* the theme's own dark areas (the hero, the loader, the header and its menu, the call-to-action panel, the before/after
   strip, the footer) already have light text on dark grounds: they keep the theme's colours in dark contrast */
html.ala-contrast-dark :is(.hx, .loader, .hdr, .hdr-menu, .cta-panel, .ba, .ftr) {
	--c-paper: #FCFBFE; --c-white: #FFFFFF; --c-mist: #F4F1FA; --c-mist-2: #E9E4F5; --c-pink-soft: #FCEBF4; --c-header-bg: rgba(252, 251, 254, 0.86);
	--c-ink: #1C1533; --c-ink-2: #4B4565; --c-ink-3: #6A6482; --c-line: #E3DDEF; --c-line-strong: #CFC7E2;
	--c-purple: #5A3D9A; --c-violet: #6B5CB0; --c-pink-ink: #9C2767;
	--c-night: #140E28; --c-night-2: #211941; --c-on-night: #F3F0FA; --c-on-night-2: #BDB6D6;
}
/* inverted, grayscale and the colour saturation: one filter on <html> itself (the root is the one element whose filter
   keeps fixed headers and drawers in place); the menu's button, panel and label are turned back so they read as they
   are. The counter-filter sits on the fixed elements themselves: on their wrapper it would make the wrapper, at the end
   of the page, their containing block and drop them to the page's bottom */
html.ala-contrast-inverted { --ala-f-contrast: invert(1) hue-rotate(180deg); }
html.ala-contrast-grayscale { --ala-f-contrast: grayscale(1); }
html.ala-sat-low { --ala-f-sat: saturate(0.4); }
html.ala-sat-high { --ala-f-sat: saturate(1.8); }
html:is(.ala-contrast-inverted, .ala-contrast-grayscale, .ala-sat-low, .ala-sat-high) { filter: var(--ala-f-contrast, ) var(--ala-f-sat, ); }
html.ala-contrast-inverted :is(.ala-toggle, .ala-panel, .ala-tip) { filter: invert(1) hue-rotate(180deg); }

html.ala-links body a:not(.ala-root a) { text-decoration: underline !important; text-underline-offset: 4px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.ala-headings :is(h1, h2, h3):not(.ala-root *) { outline: 2px solid #5A3D9A; outline-offset: 4px; background: #FCEBF4; color: #000 !important; }

/* a readable font: the body face everywhere and less letter spacing */
html.ala-readable { --font-display: Arial, "Noto Sans Hebrew", sans-serif; --font-body: Arial, "Noto Sans Hebrew", sans-serif; }
html.ala-readable body *:not(.ala-root, .ala-root *) { font-family: Arial, "Noto Sans Hebrew", sans-serif !important; }

/* text spacing in three steps, each above the store's own (its body text is set at 1.7); the first step is at least
   WCAG 1.4.12's values (line height 1.5, letters 0.12 em, words 0.16 em). Wide-set eyebrows come down to the step's
   value: the setting makes every text the same, readable spacing */
html.ala-lh-1 body :is(p, li, dd, dt, td, th, blockquote, label, figcaption, h1, h2, h3, h4, h5, h6, a, span):not(.ala-root, .ala-root *) { line-height: 1.8 !important; }
html.ala-lh-2 body :is(p, li, dd, dt, td, th, blockquote, label, figcaption, h1, h2, h3, h4, h5, h6, a, span):not(.ala-root, .ala-root *) { line-height: 2.1 !important; }
html.ala-lh-3 body :is(p, li, dd, dt, td, th, blockquote, label, figcaption, h1, h2, h3, h4, h5, h6, a, span):not(.ala-root, .ala-root *) { line-height: 2.5 !important; }
html.ala-ls-1 body *:not(.ala-root, .ala-root *) { letter-spacing: 0.12em !important; }
html.ala-ls-2 body *:not(.ala-root, .ala-root *) { letter-spacing: 0.18em !important; }
html.ala-ls-3 body *:not(.ala-root, .ala-root *) { letter-spacing: 0.24em !important; }
html.ala-ws-1 body *:not(.ala-root, .ala-root *) { word-spacing: 0.16em !important; }
html.ala-ws-2 body *:not(.ala-root, .ala-root *) { word-spacing: 0.24em !important; }
html.ala-ws-3 body *:not(.ala-root, .ala-root *) { word-spacing: 0.32em !important; }

/* the keyboard focus: a thick blue ring with a white edge on every focused element, mouse or keyboard */
html.ala-focus body *:focus { outline: 3px solid #0047ff !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px #fff !important; }

html.ala-cursor, html.ala-cursor * { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'40'%20height%3D'40'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M4%202l6.5%2019%202.6-8.1L21%2010.3z'%20fill%3D'black'%20stroke%3D'white'%20stroke-width%3D'1.4'%2F%3E%3C%2Fsvg%3E") 4 2, auto !important; }

html.ala-noanim, html.ala-noanim *, html.ala-noanim *::before, html.ala-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* the reading guide: a band across the screen at the pointer; the reading mask: the screen dimmed above and below it */
/* (the elements are .ala-ruler and .ala-shade: <html> itself carries ala-guide and ala-mask) */
.ala-ruler, .ala-shade { display: none; position: fixed; left: 0; right: 0; z-index: 999990; pointer-events: none; }
html.ala-guide .ala-ruler { display: block; top: calc(var(--ala-py, 50vh) - 7px); height: 14px; background: rgba(255, 210, 122, 0.35); border-block: 3px solid #1C1533; }
html.ala-mask .ala-shade { display: block; background: rgba(0, 0, 0, 0.6); }
html.ala-mask .ala-shade--top { top: 0; height: max(0px, calc(var(--ala-py, 50vh) - 70px)); }
html.ala-mask .ala-shade--bottom { top: calc(var(--ala-py, 50vh) + 70px); bottom: 0; }

/* the image description label */
.ala-tip { position: fixed; z-index: 999998; max-width: min(320px, calc(100vw - 16px)); padding: 8px 12px; background: #1C1533; color: #fff; font-size: 15px; line-height: 1.4; box-shadow: var(--ala-shadow); pointer-events: none; }
.ala-tip[hidden] { display: none; }

@media print {
	.ala-root { display: none; }
}
