/* Brand fonts — loaded from /static/fonts/ */

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 400;
  font-style: normal;
  src: url("/static/fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 500;
  font-style: normal;
  src: url("/static/fonts/OpenSans-Medium.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 600;
  font-style: normal;
  src: url("/static/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 700;
  font-style: normal;
  src: url("/static/fonts/OpenSans-Bold.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 400;
  font-style: italic;
  src: url("/static/fonts/OpenSans-Italic.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-weight: 300;
  font-style: normal;
  src: url("/static/fonts/OpenSans-Light.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "FbAspaklarya";
  font-weight: 400;
  font-style: normal;
  src: url("/static/fonts/FbAspaklarya-Regular.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "FbAspaklarya";
  font-weight: 700;
  font-style: normal;
  src: url("/static/fonts/FbAspaklarya-Bold.otf") format("opentype");
  font-display: block;
}

/* Global RTL tweaks */
body {
  font-family: "Open Sans Hebrew", "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus ring.
   This rule used to be `outline: none`, which removed the browser's focus
   indicator from EVERY element on EVERY screen and put nothing in its place:
   462 focusable controls on the archive, none of them showing where the
   keyboard was. Fields carrying Tailwind's `focus:ring-*` still drew their own
   ring, so the loss was invisible to anyone testing with a mouse.
   Elements that draw their own ring opt out through `focus:outline-none`,
   which is a class+pseudo selector and therefore outranks this one. */
:focus-visible {
  outline: 2px solid #2D6A4F;
  outline-offset: 2px;
}

/* Skip link: off-screen until it is focused, then a real button at the top
   right. Without it every keyboard pass starts with the full header. */
/* Clipped, not pushed off-screen: an off-screen offset inside an RTL document
   adds its own horizontal scroll, which is the opposite of helpful. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 60;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  right: 1rem;
  top: 0.75rem;
  background: #ffffff;
  color: #1B4332;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: 2px solid #2D6A4F;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}


/* Date inputs — make the whole field open the calendar */
input[type="date"] {
  position: relative;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
