/* תוספות משותפות לכל עמודי האתר: תפריט נגישות צף, והודעת עוגיות עם הגדרות. */

/* ---------- תפריט נגישות ---------- */
.a11y-btn {
  position: fixed; z-index: 8990; left: 10px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid #FFFFFF;
  background: #1E90F0; color: #FFFFFF; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.a11y-btn svg { width: 30px; height: 30px; display: block; }
.a11y-btn--up { bottom: calc(92px + env(safe-area-inset-bottom)); }
.a11y-panel {
  position: fixed; z-index: 8991; left: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); width: min(280px, calc(100vw - 20px));
  padding: 14px; border-radius: 16px; background: #061631; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .9); font: 400 15px/1.5 Heebo, system-ui, sans-serif; direction: rtl; text-align: right;
}
.a11y-panel--up { bottom: calc(150px + env(safe-area-inset-bottom)); }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: #FFFFFF; text-align: right; }
.a11y-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; margin-bottom: 6px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: #0D1E42; color: #FFFFFF; font: 700 15px/1.2 Heebo, system-ui, sans-serif;
  cursor: pointer; text-align: right; touch-action: manipulation;
}
.a11y-panel button[aria-pressed="true"] { background: #FFC40C; color: #061631; border-color: #FFC40C; }
.a11y-panel button small { font-weight: 400; font-size: 13px; opacity: .85; }
.a11y-panel a { display: inline-block; margin-top: 6px; color: #FFE07A; text-decoration: underline; }
.a11y-btn:focus-visible, .a11y-panel button:focus-visible, .a11y-panel a:focus-visible, .ck button:focus-visible, .ck a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* מצבים שהתפריט מדליק */
html.a11y-contrast {
  --bg: #000000; --surface: #000000; --surface-2: #000000; --raised: #000000;
  --text: #FFFFFF; --ink: #FFFFFF; --muted: #FFFFFF; --ink-2: #FFFFFF; --dim: #FFFFFF;
  --line: #FFFFFF; --line-strong: #FFFFFF; --gold: #FFE600;
}
html.a11y-contrast, html.a11y-contrast body { background: #000000; }
html.a11y-contrast .sky { display: none; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span, html.a11y-contrast td, html.a11y-contrast th { color: #FFFFFF; }
html.a11y-contrast .btn--gold, html.a11y-contrast .btn { color: #000000; }
html.a11y-contrast .btn--gold span, html.a11y-contrast .btn span, html.a11y-contrast .tag--a { color: #000000; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-links a, html.a11y-links button, html.a11y-links [role="button"] { outline: 2px solid #FFE600; outline-offset: 2px; }
html.a11y-links a { text-decoration: underline; }

/* ---------- עוגיות ---------- */
.ck {
  position: fixed; z-index: 9000; inset: auto 0 0 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #061631; color: #FFFFFF; border-top: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 -12px 40px -10px rgba(0, 0, 0, .8);
  font: 400 14.5px/1.5 Heebo, system-ui, sans-serif; direction: rtl; text-align: right;
}
.ck[hidden] { display: none; }
.ck__in { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.ck p { margin: 0; color: #FFFFFF; }
.ck a { color: #FFE07A; text-decoration: underline; }
.ck__row { display: flex; gap: 8px; }
.ck button {
  flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #FFFFFF;
  font: 700 15px/1.2 Heebo, system-ui, sans-serif; cursor: pointer; touch-action: manipulation;
}
.ck button[data-ck="all"] { background: #FFC40C; color: #061631; border-color: #FFC40C; }
.ck__now { font-size: 13px; opacity: .85; }
@media (min-width: 700px) { .ck__in { grid-template-columns: 1fr auto; align-items: center; } .ck__row { min-width: 300px; } }

.cookie-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
