/* TEMPORARY until launch: the "האתר בהקמה" access-code gate (notice.js). Brand ink and green, fixed
   values like the consent banner: the app's colour variables are RGB triplets
   and the landing page's are hex. */
html.notice-open { overflow: hidden; }
/* Nothing behind the gate is seen: hidden from the first paint (notice.js
   sets the class in <head>), which also takes it out of screen readers. */
html.notice-open body > *:not(.bm-notice) { visibility: hidden !important; }
.bm-notice {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #0d1b2a;
  direction: rtl;
  animation: bm-notice-in 160ms ease-out;
}
.bm-notice[hidden] { display: none; }
.bm-notice-box {
  width: 100%;
  max-width: 460px;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #13263a;
  color: #eaf0f5;
  border: 1px solid rgba(234, 240, 245, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font: 400 15.5px/1.6 Heebo, system-ui, sans-serif;
}
.bm-notice h2 { margin: 0 0 8px; font: 700 21px/1.3 Rubik, Heebo, system-ui, sans-serif; }
.bm-notice p { margin: 0 0 10px; }
.bm-notice label { display: block; margin: 6px 0 6px; font: 700 15px Rubik, Heebo, system-ui, sans-serif; }
/* 16px or more, or iPhone zooms the page when the field is focused. */
.bm-notice input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(234, 240, 245, 0.4);
  background: #0d1b2a;
  color: #eaf0f5;
  font: 500 18px/1 Rubik, Heebo, system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-align: center;
  direction: ltr;
}
.bm-notice input[aria-invalid='true'] { border-color: #ff8a80; }
.bm-notice-err { min-height: 1.6em; margin: 6px 0 0; color: #ff8a80; font-weight: 700; font-size: 14.5px; }
.bm-notice button {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #2bd98a;
  color: #0d1b2a;
  font: 700 16px Rubik, Heebo, system-ui, sans-serif;
  cursor: pointer;
}
.bm-notice button:focus-visible, .bm-notice input:focus-visible { outline: 2px solid #2bd98a; outline-offset: 3px; }
@keyframes bm-notice-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bm-notice { animation: none; } }
html.a11y-still .bm-notice { animation: none; }
