/* חיפוש בתפריט */
.msearch { width: 100%; max-width: 560px; margin-top: 8px; }
.msearch__in {
  width: 100%; min-height: var(--control-h); padding: 0 48px 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong); background: var(--surface) no-repeat right 16px center / 20px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4535' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  font-size: 1rem; color: var(--text);
}
.msearch__in::placeholder { color: var(--text-3); opacity: 1; }
.msearch__in:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.msearch__msg { font-size: var(--fs-s); color: var(--text-2); margin-top: 6px; }
.msearch__msg:empty { display: none; }

/* כפתור ותפריט נגישות */
.a11y-btn {
  position: fixed; z-index: 70; left: 12px; bottom: calc(96px + var(--safe-b)); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #1f4fbf; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (min-width: 1024px) { .a11y-btn { bottom: 20px; } }
.a11y-panel {
  position: fixed; z-index: 71; left: 12px; bottom: calc(152px + var(--safe-b)); width: min(280px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); border-radius: var(--r-l); padding: 14px; box-shadow: var(--sh-float); display: grid; gap: 8px;
}
@media (min-width: 1024px) { .a11y-panel { bottom: 76px; } }
.a11y-title { font-weight: 800; font-size: var(--fs-l); }
.a11y-list { display: grid; gap: 6px; }
.a11y-list button, .a11y-reset {
  min-height: var(--tap); border-radius: var(--r-m); border: 1.5px solid var(--border-strong); background: var(--surface);
  font-weight: 700; text-align: start; padding: 0 14px; color: var(--text);
}
.a11y-list button[aria-pressed="true"] { background: var(--selected); color: var(--on-selected); border-color: var(--selected); }
.a11y-list button[aria-pressed="true"]::after { content: " ✓"; }
.a11y-reset { text-align: center; background: var(--surface-sunk); }
.a11y-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; color: var(--text); }
.a11y-panel :focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* מצבי נגישות */
html.a11y-big { font-size: 125%; }
html.a11y-contrast { --text-2: #24160d; --text-3: #24160d; --border: #24160d; --border-strong: #24160d; --paper: #fff; --paper-2: #fff; --surface-page: #fff; --surface-sunk: #f1f1f1; }
html.a11y-contrast body, html.a11y-contrast .sheet, html.a11y-contrast .info { background: #fff; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 2px; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .hero__embers { display: none; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; }

/* באנר עוגיות */
.consent-bar {
  position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(12px + var(--safe-b)); max-width: 560px; margin-inline: auto;
  background: var(--surface); color: var(--text); border-radius: var(--r-l); padding: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); display: grid; gap: 12px;
}
.consent-bar p { font-size: var(--fs-s); line-height: 1.55; }
.consent-bar a { font-weight: 700; color: var(--accent); }
.consent-bar__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-bar .btn { min-height: var(--tap); }

/* כפתור הנגישות בפינת הסרגל העליון — קטן, תמיד שם, לא מפריע */
.a11y-btn--bar {
  position: relative; inset: auto; z-index: auto; flex: none; width: 34px; height: 34px;
  margin-inline-start: 2px; box-shadow: 0 0 0 2px rgba(244, 237, 226, .25);
}
.a11y-btn--bar svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .a11y-btn--bar { bottom: auto; } }
.a11y-panel--bar { top: calc(var(--topbar-h) + var(--safe-t) + 6px); bottom: auto; left: 12px; }
@media (min-width: 1024px) { .a11y-panel--bar { bottom: auto; } }
/* בדפי המידע (בלי סרגל עליון): פינה תחתונה, קטן */
.a11y-btn:not(.a11y-btn--bar) { width: 40px; height: 40px; bottom: calc(16px + var(--safe-b)); }
.a11y-btn:not(.a11y-btn--bar) svg { width: 22px; height: 22px; }
.a11y-panel:not(.a11y-panel--bar) { bottom: calc(64px + var(--safe-b)); }
