/* Language menu (all pages) + Arabic and French typography */
.langmenu { position: relative; font-size: 0.8rem; font-weight: 600; }
.langmenu > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 34px; padding: 0 0.7rem; border-radius: 999px;
  border: 1px solid color-mix(in oklab, currentColor 25%, transparent); cursor: pointer; user-select: none; white-space: nowrap; }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary svg { width: 16px; height: 16px; opacity: 0.75; }
.langmenu[open] > summary { background: color-mix(in oklab, currentColor 8%, transparent); }
.langmenu__list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 80; min-width: 9.5rem; margin: 0; padding: 6px; list-style: none;
  background: #fff; color: #1F1D1A; border: 1px solid rgba(31, 29, 26, 0.1); border-radius: 12px; box-shadow: 0 14px 40px -12px rgba(31, 29, 26, 0.35); }
.langmenu__list a { display: block; padding: 0.55rem 0.75rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.92rem; color: inherit; text-align: start; }
.langmenu__list a:hover { background: #F4F0E8; }
.langmenu__list a.is-on { background: #1F1D1A; color: #fff; }
.langmenu__list a[lang="he"] { font-family: "Noto Sans Hebrew", system-ui, sans-serif; }
.langmenu__list a[lang="ar"] { font-family: "Noto Sans Arabic", system-ui, sans-serif; }
@media (max-width: 700px) { .langmenu > summary { padding: 0 0.55rem; min-height: 38px; } }

/* Arabic: same rules as Hebrew (no italics, no capitals, no tracking), with its own face and roomier lines */
html[lang="ar"] { --sc-font-display: "Noto Sans Arabic", "Geist", system-ui, sans-serif; --sc-font-text: "Noto Sans Arabic", "Geist", system-ui, sans-serif;
  --display: "Noto Sans Arabic", "Geist", system-ui, sans-serif; --text: "Noto Sans Arabic", "Geist", system-ui, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .display { line-height: 1.3; }
html[lang="ar"] .body, html[lang="ar"] .lede { line-height: 1.85; }

/* ---------- accessibility menu (bottom, start side; the help chat sits on the end side) ---------- */
.a11y { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 59; font-family: inherit; }
.a11y__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #1F4FA0; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(20, 30, 60, 0.28); }
.a11y__btn svg { width: 28px; height: 28px; }
.a11y__btn:focus-visible, .a11y__panel button:focus-visible, .a11y__panel a:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }
.a11y__panel { position: absolute; bottom: 58px; inset-inline-start: 0; width: min(280px, calc(100vw - 36px)); background: #fff; color: #1F1D1A; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 14px; padding: 12px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.35); display: grid; gap: 6px; }
.a11y__panel[hidden] { display: none; }
.a11y__title { margin: 2px 4px 6px; font-weight: 700; font-size: 1rem; }
.a11y__opt { text-align: start; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.14); background: #fff; color: inherit; font: inherit; font-size: 0.95rem; cursor: pointer; }
.a11y__opt[aria-pressed="true"] { background: #1F4FA0; border-color: #1F4FA0; color: #fff; }
.a11y__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 0.85rem; }
.a11y__foot button { border: 0; background: none; font: inherit; color: #555; cursor: pointer; padding: 6px 4px; text-decoration: underline; }
.a11y__foot a { color: #1F4FA0; }

/* effects */
html.a11y-bigger { font-size: 118%; }
html.a11y-bigger body { font-size: 1.08em; }
html.a11y-contrast { --sc-canvas: #fff; --sc-surface: #f2f2f2; --sc-ink: #000; --sc-ink-soft: #000; --sc-accent: #8a2a08; --dark: #000; --dark-ink: #fff; --dark-soft: #fff;
  --bg: #fff; --ink: #000; --soft: #111; --line: #555; --line-strong: #000; }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast img { filter: contrast(1.1); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; background: #FFF3A0 !important; color: #000 !important; }
html.a11y-font, html.a11y-font * { font-family: Arial, "Noto Sans Hebrew", "Noto Sans Arabic", system-ui, sans-serif !important; font-style: normal !important; letter-spacing: 0.01em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- cookie notice ---------- */
.cookie { position: fixed; z-index: 61; bottom: 16px; left: 50%; translate: -50% 0; width: min(640px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px;
  background: #1F1D1A; color: #F5F1EA; border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 50px -14px rgba(0, 0, 0, 0.5); font-size: 0.9rem; line-height: 1.5; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #F2C9B3; text-decoration: underline; text-underline-offset: 2px; }
.cookie button { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #F5F1EA; color: #1F1D1A; font: inherit; font-weight: 600; cursor: pointer; }
.cookie button:focus-visible, .cookie a:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }
@media (max-width: 700px) {
  .cookie { bottom: 0; left: 0; translate: none; width: 100%; border-radius: 14px 14px 0 0; flex-direction: column; align-items: stretch; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  html.has-cookie .a11y, html.has-cookie .hc { display: none; }
  .a11y { inset-inline-start: 12px; bottom: 12px; }
  .a11y__btn { width: 46px; height: 46px; }
}
html.sketch-open .a11y, html.hc-open .a11y { display: none; }
@media print { .a11y, .cookie { display: none; } }
