/* GAON - jobs. Styles for the markup the job shortcodes print; everything
   built from Elementor elements is styled in the templates themselves.

   Fluid sizes are one clamp() each, anchored to the 360 and 1440 frames, the
   same rule as the kit. Colours are the Figma values except where the Figma
   pairing fails WCAG AA for text of that size; those are noted inline. */

.gjob-sr{
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Meta row: division / location / field ---------------------------------- */

.gjob-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.78em;               /* 38.18 / 21.46 */
  row-gap: .4em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  /* Card strip. #646464 on the #D7D7D7 strip is 4.1:1; #555 is 5.1:1. */
  color: #555555;
  font-size: clamp(11.92px, 8.74px + .883vw, 21.46px);
}
.gjob-meta__item{
  display: inline-flex;
  align-items: center;
  gap: .32em;                       /* 6.94 / 21.46 */
  white-space: nowrap;
}
.gjob-meta .gjob-meta__icon{ display: block; flex: none; block-size: .81em; inline-size: auto; }
.gjob-meta__item_division .gjob-meta__icon{ block-size: .84em; }
.gjob-meta__item_field .gjob-meta__icon{ block-size: .755em; }

.gjob-meta_light{
  justify-content: center;
  color: #FFFFFF;
  font-size: clamp(12.32px, 9.27px + .846vw, 21.46px);
}
.gjob-meta_light .gjob-meta__item_division .gjob-meta__icon{ block-size: .81em; }

@media (max-width: 767px){
  .gjob-meta{ column-gap: 1em; justify-content: center; }
  .gjob-meta_light{ column-gap: .75em; }
}

/* Job body --------------------------------------------------------------- */

.gjob-text,
.gjob-reqs{
  font-family: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 13.31px + .4685vw, 20.06px);
  color: #1E1E1E;
  text-align: start;
}
.gjob-text{ line-height: 1.25; }
.gjob-text p{ margin: 0 0 .75em; }
.gjob-text p:last-child{ margin-block-end: 0; }
.gjob-text a{ color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gjob-text ul{ margin: 0 0 .75em; padding-inline-start: 1.2em; }

.gjob-reqs{
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.795;               /* 36 / 20.06 */
}
.gjob-reqs li{ display: flex; gap: .3em; }
.gjob-reqs li::before{ content: "+"; flex: none; }

@media (max-width: 767px){
  .gjob-text{ line-height: 1.473; }  /* 22.1 / 15 */
  .gjob-reqs{ line-height: 1.98; }   /* 29.7 / 15 */
}

/* Filters ---------------------------------------------------------------- */

.gjob-filters{
  --gjob-field-h: clamp(42.8px, 30.73px + 3.352vw, 79px);
  --gjob-radius: clamp(6.3px, 4.55px + .487vw, 11.56px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 13.67px + 1.2vw, 31px);
  margin: 0;
  font-family: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
}
.gjob-filters__row{
  display: flex;
  align-items: stretch;
  gap: 18px;
}
/* Widths are the Figma proportions of the 1320 row, not pixel widths. */
.gjob-select_division{ flex: 382 1 0; }
.gjob-select_location{ flex: 342 1 0; }
.gjob-select_field{ flex: 286.7 1 0; }
.gjob-filters__submit{ flex: 255 1 0; }

.gjob-select{ position: relative; display: block; min-inline-size: 0; margin: 0; }
.gjob-select select{
  -webkit-appearance: none;
  appearance: none;
  display: block;
  inline-size: 100%;
  block-size: var(--gjob-field-h);
  margin: 0;
  padding-block: 0;
  padding-inline: 1.5em 3em;
  border: 1.156px solid #A8A8A8;
  border-radius: var(--gjob-radius);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg width='13' height='7' viewBox='0 0 13 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.740234 0.739868L6.13063 5.27166L11.521 0.739868' stroke='%231E1E1E' stroke-width='1.47971' stroke-miterlimit='10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-position: left 1.45em center;
  background-size: .6em auto;
  box-shadow: 5.78px 4.624px 28.785px 0 rgba(0,0,0,.03);
  font-family: inherit;
  font-size: clamp(12px, 8.85px + .874vw, 21.44px);
  line-height: 1.2;
  color: #1E1E1E;
  text-align: start;
  cursor: pointer;
  transition: border-color .15s ease;
}
html[dir="ltr"] .gjob-select select{ background-position: right 1.45em center; }
/* The unselected label. Figma's #B4B4B4 is 2:1 on white; #767676 is 4.5:1. */
.gjob-select select.is-empty{ color: #767676; }
.gjob-select select option{ color: #1E1E1E; }
.gjob-select select:hover{ border-color: #1E1E1E; }
.gjob-select select:focus-visible{ outline: 2px solid #1E1E1E; outline-offset: 3px; }

.gjob-filters .gjob-filters__submit{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.03em;                      /* 65 / 21.44 */
  min-inline-size: 0;
  block-size: var(--gjob-field-h);
  margin: 0;
  padding-inline: 1em;
  border: 0;
  border-radius: var(--gjob-radius);
  background-color: #1E1E1E;
  color: #CDCDCD;
  font-family: inherit;
  font-size: clamp(12px, 8.85px + .874vw, 21.44px);
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  filter: drop-shadow(5.78px 4.624px 14.392px rgba(0,0,0,.03));
  transition: background-color .2s ease;
}
.gjob-filters__submit img{ display: block; inline-size: .6em; block-size: auto; transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.gjob-filters .gjob-filters__submit:hover,
.gjob-filters .gjob-filters__submit:focus{ background-color: #000000; color: #CDCDCD; }
.gjob-filters__submit:hover img{ transform: translate(-3px, 3px); }
.gjob-filters__submit:focus-visible{ outline: 2px solid #1E1E1E; outline-offset: 3px; }

.gjob-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gjob-chip{
  display: inline-flex;
  align-items: center;
  gap: .574em;
  padding: .287em .574em;
  border: 1.15px solid #D2D2D2;
  border-radius: clamp(6px, 4.17px + .509vw, 11.5px);
  background-color: rgba(135,166,231,.22);
  color: #1E1E1E;
  font-size: clamp(11px, 7.99px + .836vw, 20.03px);
  line-height: 1.105;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.gjob-chip img{ display: block; inline-size: .4em; block-size: auto; flex: none; }
.gjob-chip:hover{ background-color: rgba(135,166,231,.38); color: #1E1E1E; }
.gjob-chip:focus-visible{ outline: 2px solid #1E1E1E; outline-offset: 2px; }

@media (max-width: 767px){
  .gjob-filters__row{
    flex-direction: column;
    gap: 20px;
    inline-size: min(100%, 57.5vw);
    min-inline-size: 207px;
    margin-inline: auto;
  }
  .gjob-select_division,
  .gjob-select_location,
  .gjob-select_field,
  .gjob-filters__submit{ flex: none; }
  .gjob-filters .gjob-filters__submit{
    justify-content: space-between;
    padding-inline: 22px;
    margin-block-start: -6px;
  }
  .gjob-chips{ justify-content: center; }
  /* No 300 weight for small Hebrew text. */
  .gjob-chip{ font-weight: 400; }
}

/* Sort ------------------------------------------------------------------- */

.gjob-sort{
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: #6A6A6A;
  font-family: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
  font-size: clamp(11px, 8.15px + .7917vw, 19.55px);
  line-height: 1.353;
  text-decoration: none;
  white-space: nowrap;
}
.gjob-sort strong{ font-weight: 800; color: #272727; }
.gjob-sort img{ display: block; inline-size: .46em; block-size: auto; transition: transform .2s ease; }
.gjob-sort.is-oldest img{ transform: rotate(180deg); }
.gjob-sort:hover{ color: #272727; }
.gjob-sort:focus-visible{ outline: 2px solid #1E1E1E; outline-offset: 3px; }

/* Application form: the chosen file's name, printed by jobs.js ------------ */

.gjob-file-name{
  display: block;
  margin-block-start: 6px;
  font-family: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1E1E1E;
  word-break: break-all;
}
.gjob-file-name:empty{ display: none; }

@media (prefers-reduced-motion: reduce){
  .gjob-filters__submit img,
  .gjob-sort img{ transition: none; }
}

/* Application form -------------------------------------------------------
   Hooked on the css ids the job template gives its fields (#cv, label[for=cv]).
   The icons live here and not in the template: Elementor's style sanitiser
   strips the encoded characters a data: URI needs. */

label[for="cv"]::before{
  content: "";
  flex: none;
  inline-size: .82em;
  block-size: .76em;
  background: url("data:image/svg+xml,%3Csvg width='18' height='17' viewBox='0 0 18 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.8398 3.83857L9.22431 0.198865L8.88537 0L6.09526 4.20663L8.13052 2.19994V11.8188C8.13052 12.0818 8.53526 12.328 8.78608 12.322C9.02134 12.3164 9.40176 12.0626 9.40176 11.8188V2.19994L11.9969 4.76714C12.6122 5.16286 13.2765 4.43316 12.8398 3.83857Z' fill='%231E1E1E'/%3E%3Cpath d='M0.0244827 13.3584C0.169231 14.9376 1.48433 16.2383 3.06182 16.3201H14.5082C16.1885 16.181 17.4103 14.8599 17.508 13.1803C17.5383 12.6639 17.5814 11.2498 17.4889 10.7964C17.3417 10.0763 16.3381 10.14 16.2376 10.7815C15.984 12.3981 16.9171 14.7239 14.3893 15.0403L3.02912 15.0335C0.952791 14.6718 1.34956 12.9045 1.33081 11.3886C1.32842 11.1929 1.31885 11.0017 1.29652 10.818C1.20999 10.1104 0.18598 10.0971 0.0244827 10.7988C0.0799103 11.6235 -0.0500851 12.5457 0.0244827 13.3584Z' fill='%231E1E1E'/%3E%3Cpath d='M5.43093 4.86176L6.09526 4.20663L8.13052 2.19994V11.8188C8.13052 12.0818 8.53526 12.328 8.78608 12.322C9.02134 12.3164 9.40176 12.0626 9.40176 11.8188V2.19994L11.9969 4.76714C12.6122 5.16286 13.2765 4.43316 12.8398 3.83857L9.22431 0.198865L8.88537 0H8.60743C8.49857 0.0641499 8.40686 0.115871 8.30837 0.199266C7.04191 1.27297 5.91183 2.76767 4.65296 3.87866C4.2219 4.44278 4.79292 5.15124 5.43093 4.86176Z' fill='%231E1E1E'/%3E%3C/svg%3E") no-repeat center / contain;
}
form:has(#cv) .e-form-submit-button-base::after{
  content: "";
  flex: none;
  inline-size: .56em;
  block-size: .56em;
  background: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.56268 1.03174V11.9671H11.4199' stroke='%23DDDDDD' stroke-width='1.12478'/%3E%3Cpath d='M12.5137 0.40686L0.562894 11.8109' stroke='%23DDDDDD' stroke-width='1.12478'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
form:has(#cv) .e-form-submit-button-base:hover::after{ transform: translate(-3px, 3px); }
@media (prefers-reduced-motion: reduce){
  form:has(#cv) .e-form-submit-button-base::after{ transition: none; }
}

/* Filters, chips and sort link reload the page with #jobs, so the visitor
   lands back on the list instead of the top. The offset clears the fixed header. */
#jobs{ scroll-margin-top: 110px; }
@media (max-width: 767px){ #jobs{ scroll-margin-top: 84px; } }
