/* Shared styles for the static site. Page layouts are inline in each page. */
html { scroll-behavior: smooth; }
body { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #E9B949; outline-offset: 2px; }


@media (max-width: 640px) {
  main h1 { font-size: 38px !important; }
  main h2 { font-size: 28px !important; }
  #jm-cookies h2 { font-size: 19px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Accessibility menu ---------- */
#jm-a11y-btn { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 30px; background: #1C4FA0; border: 3px solid #FFFFFF; box-shadow: 0 4px 14px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
#jm-a11y-panel { position: fixed; left: 16px; bottom: 88px; z-index: 60; width: 340px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); overflow-y: auto; box-sizing: border-box; background: #FFFFFF; color: #0F2744; border-radius: 18px; box-shadow: 0 10px 34px rgba(0,0,0,0.35); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-family: Rubik, Arial, sans-serif; font-size: 16px; direction: rtl; }
#jm-a11y-panel[hidden] { display: none; }
.jm-a11y-head { display: flex; align-items: center; justify-content: space-between; }
.jm-a11y-head h2 { margin: 0; font-size: 20px !important; font-weight: 800; color: #0F2744; }
.jm-a11y-x { font: inherit; background: none; border: none; color: #0F2744; font-size: 22px; cursor: pointer; min-width: 44px; min-height: 44px; }
.jm-a11y-size { background: #F1EBDD; border: 2px solid #0F2744; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.jm-a11y-size-label { font-weight: 700; color: #0F2744; }
.jm-a11y-size-row { display: flex; align-items: center; gap: 10px; }
.jm-a11y-size-row button { font: inherit; font-size: 26px; font-weight: 700; width: 48px; height: 48px; border-radius: 24px; border: 2px solid #0F2744; background: #FFFFFF; color: #0F2744; cursor: pointer; }
#jm-a11y-pct { flex: 1; text-align: center; font-size: 22px; font-weight: 800; background: #FFFFFF; border-radius: 24px; padding: 8px 0; }
.jm-a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jm-a11y-opt { font: inherit; font-size: 15px; font-weight: 700; color: #0F2744; background: #F1EBDD; border: 2px solid #0F2744; border-radius: 14px; min-height: 84px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; }
.jm-a11y-opt[aria-pressed="true"] { background: #0F2744; color: #FFFFFF; border-color: #0F2744; }
.jm-a11y-reset { font: inherit; font-size: 16px; font-weight: 700; background: #FFFFFF; color: #0F2744; border: 1px solid #9FB1C6; border-radius: 12px; min-height: 46px; cursor: pointer; }
.jm-a11y-link { color: #0F2744 !important; font-weight: 700; text-align: center; }

/* Effects */
.jm-ul #jm-root a { text-decoration: underline !important; background: #FFF4B0 !important; color: #0F2744 !important; outline: 2px solid #D9A21B; }
.jm-hd #jm-root h1, .jm-hd #jm-root h2, .jm-hd #jm-root h3 { outline: 3px solid #E9B949; outline-offset: 4px; background: rgba(233,185,73,0.18); }
.jm-font #jm-root, .jm-font #jm-root * { font-family: Arial, "Helvetica Neue", sans-serif !important; }
.jm-ls #jm-root * { letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }
.jm-lh #jm-root * { line-height: 2 !important; }
.jm-anim *, .jm-anim *::before, .jm-anim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.jm-cur, .jm-cur * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8-7 2-3 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
.jm-inv #jm-root img { filter: invert(1) hue-rotate(180deg); }
#jm-guide { position: fixed; left: 0; right: 0; height: 40px; z-index: 55; pointer-events: none; background: rgba(233,185,73,0.18); border-top: 3px solid #E9B949; border-bottom: 3px solid #E9B949; }
