.rom-a11y-skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999999;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.rom-a11y-skip-link:focus { top: 12px; }

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}

.rom-a11y-toolbar {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 999998;
}

.rom-a11y-toggle {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #0b4f5b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.rom-a11y-icon { font-size: 18px; line-height: 1; }
.rom-a11y-hotkey { font-size: 12px; opacity: .9; background: rgba(255,255,255,.18); padding: 2px 6px; border-radius: 999px; }

.rom-a11y-panel {
  position: fixed;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: min(460px, calc(100vw - 16px));
  overflow: auto;
  background: #f5f5f5;
  border: 1px solid #0b4f5b;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  direction: rtl;
}

html[lang^="en"] .rom-a11y-panel,
body:not(.rtl) .rom-a11y-panel {
  direction: ltr;
}

.rom-a11y-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #003c45;
  color: #fff;
}

.rom-a11y-head strong { font-size: 32px; letter-spacing: .3px; font-weight: 800; }

.rom-a11y-close {
  border: 0;
  background: #efe9b0;
  color: #8b0000;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 78px;
  height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
}

.rom-a11y-close:hover {
  background: #f4efc7;
}

.rom-a11y-close:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
}

.rom-a11y-sec { border-top: 4px solid #003c45; padding: 12px; }

.rom-a11y-sec h4 {
  margin: 2px 0 10px;
  color: #8b0000;
  font-size: 24px;
  text-align: center;
}

.rom-a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rom-a11y-grid button {
  border: 1px solid #b8b8b8;
  border-radius: 6px;
  min-height: 86px;
  background: #fff;
  color: #0f172a;
  padding: 8px;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.rom-a11y-grid button.is-active { background: #dbeafe; border-color: #2563eb; }
.rom-a11y-grid button.is-reset { color: #8b0000; }

.rom-a11y-foot {
  border-top: 4px solid #003c45;
  padding: 12px;
  text-align: center;
  font-size: 18px;
  color: #0f172a;
}

html.rom-a11y-bigtext,
html.rom-a11y-bigtext body { font-size: 112%; }
html.rom-a11y-biggertext,
html.rom-a11y-biggertext body { font-size: 122%; }
html.rom-a11y-smalltext,
html.rom-a11y-smalltext body { font-size: 94%; }

html.rom-a11y-contrast-soft { filter: contrast(1.05) brightness(1.02); }
html.rom-a11y-contrast-high { filter: contrast(1.18) saturate(1.06); }
html.rom-a11y-contrast-invert { filter: invert(1) hue-rotate(180deg); }

html.rom-a11y-underline a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

html.rom-a11y-heading-highlight :is(h1,h2,h3,h4,h5,h6) {
  background: #fff59d;
  color: #111827;
  display: inline-block;
}

html.rom-a11y-image-highlight img {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

html.rom-a11y-readable-font,
html.rom-a11y-readable-font * {
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif !important;
}

html.rom-a11y-big-cursor,
html.rom-a11y-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 2l8 18l2-7l7-2z'/%3E%3C/svg%3E") 2 2, auto !important; }

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

.rom-accessibility-statement {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
}

@media (max-width: 700px) {
  .rom-a11y-head strong { font-size: 26px; }
  .rom-a11y-sec h4 { font-size: 20px; }
  .rom-a11y-grid button { min-height: 78px; font-size: 18px; }
}
