/* =========================================================================
   ATLEAN WORLD · OPEN JOBS
   Same language as the home page: no boxes, hairlines between rows, type does
   the work. Banner (map + "A" mark + title), one search line, quiet filters,
   then the list.
   ========================================================================= */

.aw-jobsp {
  --aw-max: 1240px;
  --aw-gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --aw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --aw-dur: 0.4s;
  display: block;
  overflow-x: hidden; overflow-x: clip;   /* closed menus near the right edge never widen the page */
  font-family: var(--site-font);
  color: var(--aw-body);
  background: #fff;
}
@supports (transition-timing-function: linear(0, 1)) {
  .aw-jobsp {
    --aw-ease: linear(0, 0.0369, 0.1219, 0.2275, 0.3374, 0.4422, 0.5372, 0.6204, 0.6916, 0.7513, 0.8009, 0.8414, 0.8743, 0.9008, 0.922, 0.9389, 0.9523, 0.9628, 0.9711, 0.9776, 0.9826, 0.9866, 0.9897, 0.992, 0.9939, 0.9953, 0.9964, 0.9972, 0.9979, 0.9984, 1);
  }
}
.aw-jobsp *, .aw-jobsp *::before, .aw-jobsp *::after { box-sizing: border-box; }
.aw-jobsp :focus-visible { outline: 3px solid var(--aw-navy); outline-offset: 3px; }
.aw-jobsp .aw-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.aw-jobsp [hidden] { display: none !important; }
.aw-jwrap { width: min(100% - 2 * var(--aw-gutter), var(--aw-max)); margin-inline: auto; }

/* =========================================================================
   1. BANNER · the map, the "A" mark, the title. No frame, it fades into the page.
   ========================================================================= */
.aw-jbanner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(17rem, 40vw, 30rem);
  padding: 3rem var(--aw-gutter);
  background-color: #f2f5fc;
  background-image:
    radial-gradient(ellipse 42% 38% at 50% 52%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 100%),   /* quiet halo so the title reads over the routes */
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 70%, #fff 100%),   /* dissolves into the white below */
    url("../../media/banners/jobs.jpg");                                 /* path is relative to this CSS file */
  background-size: cover;
  background-position: center;
  text-align: center;
}
.aw-jbanner__inner { display: grid; justify-items: center; gap: 1.25rem; }
.aw-jbanner__mark { display: block; width: clamp(2.5rem, 4.5vw, 3.25rem); height: auto; }
.aw-jbanner__title {
  margin: 0; font-family: var(--site-font);
  font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  color: var(--aw-ink); text-wrap: balance;
}
.aw-jbanner__title span { display: block; }

/* =========================================================================
   2. SEARCH + FILTERS
   One search line with a hairline under it, then the filters as plain text
   with a chevron. A filter in use turns navy and bold.
   ========================================================================= */
.aw-jlist { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(5rem, 9vw, 9rem); }
.aw-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 2rem; }

.aw-filter { position: relative; display: block; }
.aw-filter--search {
  flex: 1 0 100%;
  display: flex; align-items: center; gap: 0.85rem;
  border-bottom: 1px solid var(--aw-pale);
  transition: border-color var(--aw-dur) var(--aw-ease);
}
.aw-filter--search:focus-within { border-color: var(--aw-navy); }
.aw-filter--search svg { flex: none; color: var(--aw-muted); }
.aw-filter--search input {
  flex: 1; min-width: 0; height: 4rem; margin: 0; padding: 0; border: 0; border-radius: 0;
  font: inherit; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.012em;
  color: var(--aw-ink); background: transparent; -webkit-appearance: none; appearance: none;
}
.aw-filter--search input:focus { outline: none; }
.aw-filter--search input::placeholder { color: var(--aw-muted); opacity: 1; }
.aw-filter--search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- filter menus (built by jobs.js) ---------------------------------------------------- */
.aw-dd { position: relative; }
.aw-dd__btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 3rem; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--aw-body); white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color var(--aw-dur) var(--aw-ease), transform 0.1s ease-out;
}
.aw-dd__btn:hover, .aw-dd.is-open .aw-dd__btn { color: var(--aw-ink); }
.aw-dd__btn:active { transform: scale(0.97); }
.aw-dd__btn:focus-visible { outline: 3px solid var(--aw-navy); outline-offset: 2px; border-radius: 4px; }
.aw-dd.is-set .aw-dd__btn { font-weight: 650; color: var(--aw-ink); }
.aw-dd__badge {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.35rem; padding: 0 0.4rem;
  border-radius: 999px; background: var(--aw-navy); color: #fff;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.01em;
}
.aw-dd__chev { flex: none; color: var(--aw-muted); transition: transform var(--aw-dur) var(--aw-ease), color var(--aw-dur) var(--aw-ease); }
.aw-dd.is-open .aw-dd__chev { transform: rotate(180deg); color: var(--aw-ink); }
.aw-dd.is-set .aw-dd__chev { color: var(--aw-ink); }

/* the panel grows out of its button: scale + fade from the top-left corner, critically damped */
.aw-dd__panel {
  position: absolute; z-index: 30; top: calc(100% + 0.35rem); left: -0.75rem;
  width: max-content; min-width: 15rem; max-width: min(22rem, calc(100vw - 2 * var(--aw-gutter)));
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(25, 51, 96, 0.08), 0 12px 32px -8px rgba(25, 51, 96, 0.28), 0 2px 6px rgba(25, 51, 96, 0.06);
  transform-origin: top left;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.96);
  transition: opacity 0.2s var(--aw-ease), transform 0.35s var(--aw-ease), visibility 0s linear 0.35s;
}
.aw-dd.is-flipped .aw-dd__panel { left: auto; right: -0.75rem; transform-origin: top right; }
.aw-dd.is-open .aw-dd__panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.2s var(--aw-ease), transform 0.35s var(--aw-ease), visibility 0s;
}
.aw-dd__list { margin: 0; padding: 0; list-style: none; max-height: min(20rem, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.aw-dd__list:focus { outline: none; }
.aw-dd__opt {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 2.75rem; padding: 0.4rem 0.75rem; border-radius: 0.65rem;
  font-size: 1rem; color: var(--aw-ink); cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--aw-ease);
}
.aw-dd__opt:hover, .aw-dd__opt:focus { outline: none; background: var(--aw-tint); }
.aw-dd__opt:focus-visible { box-shadow: inset 0 0 0 2px var(--aw-navy); }
.aw-dd__opt:active { background: var(--aw-pale); transition-duration: 0.05s; }
.aw-dd__text { flex: 1; }
.aw-dd__n { font-size: 0.875rem; color: var(--aw-muted); font-variant-numeric: tabular-nums; }

/* round check: an empty ring that fills navy, the tick draws itself in */
.aw-dd__check {
  flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--aw-light); color: #fff;
  transition: background-color 0.25s var(--aw-ease), box-shadow 0.25s var(--aw-ease), transform 0.1s ease-out;
}
.aw-dd__check svg { width: 0.8rem; height: 0.8rem; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.3s var(--aw-ease); }
.aw-dd__opt:active .aw-dd__check { transform: scale(0.9); }
.aw-dd__opt[aria-selected="true"] .aw-dd__check { background: var(--aw-navy); box-shadow: inset 0 0 0 1.5px var(--aw-navy); }
.aw-dd__opt[aria-selected="true"] .aw-dd__check svg { stroke-dashoffset: 0; transition-delay: 0.05s; }
.aw-dd__opt[aria-selected="true"] .aw-dd__text { font-weight: 600; }

.aw-dd__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.3rem; padding: 0.35rem 0.35rem 0.1rem 0.75rem; border-top: 1px solid var(--aw-pale);
}
.aw-dd__reset, .aw-dd__done {
  margin: 0; padding: 0.55rem 0.4rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--aw-ink);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.aw-dd__reset { padding-left: 0; font-weight: 500; color: var(--aw-muted); }
.aw-dd__reset:disabled { opacity: 0.4; cursor: default; }
.aw-dd__done { padding: 0.55rem 1rem; border-radius: 999px; background: var(--aw-navy); color: #fff; transition: transform 0.1s ease-out; }
.aw-dd__done:active { transform: scale(0.96); }
.aw-dd__reset:focus-visible, .aw-dd__done:focus-visible { outline: 3px solid var(--aw-navy); outline-offset: 2px; border-radius: 999px; }

.aw-jbar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0.75rem;
}
.aw-jcount { margin: 0; font-size: 0.9375rem; color: var(--aw-muted); }
.aw-jclear {
  margin: 0; padding: 0.5rem 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--aw-ink);
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.25em;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

/* =========================================================================
   3. THE LIST · hairlines only. The whole row is the link; its hover wash
   reaches past the column, like the spotlight jobs on the home page.
   ========================================================================= */
.aw-jrows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--aw-pale); }
.aw-jrows:empty { display: none; }
.aw-jrow { border-bottom: 1px solid var(--aw-pale); }
.aw-jrow a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.4rem 2rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem) 0;
  color: inherit; text-decoration: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.aw-jrow a::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--aw-gutter) * -0.5);
  border-radius: 1.25rem; background: var(--aw-tint); opacity: 0;
  transition: opacity var(--aw-dur) var(--aw-ease);
}
.aw-jrow a:hover::before, .aw-jrow a:focus-visible::before { opacity: 1; }
.aw-jrow a:active::before { opacity: 1; background: var(--aw-pale); transition-duration: 0.1s; }   /* feedback on press */
.aw-jrow a:focus-visible { outline: none; }
.aw-jrow a:focus-visible::before { box-shadow: inset 0 0 0 3px var(--aw-navy); }

.aw-jrow__title {
  grid-column: 1; margin: 0;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.018em; font-weight: 600;
  color: var(--aw-ink); text-wrap: balance;
}
.aw-jrow__meta { grid-column: 1; display: flex; flex-wrap: wrap; column-gap: 1rem; margin: 0; font-size: 1rem; line-height: 1.45; color: var(--aw-muted); }
.aw-jrow__meta span { white-space: nowrap; }
.aw-jrow__lang { font-weight: 600; color: var(--aw-body); }
.aw-jrow__chev {
  grid-column: 2; grid-row: 1 / span 2; flex: none; color: var(--aw-ink);
  transition: transform var(--aw-dur) var(--aw-ease);
}
.aw-jrow a:hover .aw-jrow__chev, .aw-jrow a:focus-visible .aw-jrow__chev { transform: translateX(4px); }

.aw-jrow--skeleton { display: grid; gap: 0.75rem; padding: 1.75rem 0; animation: aw-jpulse 1.6s ease-in-out infinite; }
.aw-jrow--skeleton i { display: block; height: 1.1rem; border-radius: 0.55rem; background: var(--aw-tint); }
.aw-jrow--skeleton i:first-child { width: 46%; }
.aw-jrow--skeleton i:last-child { width: 30%; height: 0.85rem; }
@keyframes aw-jpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.aw-jempty { margin: 0; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--aw-pale); }
.aw-jempty p { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.014em; font-weight: 600; color: var(--aw-ink); }
.aw-jempty p + p { margin-top: 0.5rem; font-size: 1.0625rem; letter-spacing: 0; font-weight: 400; color: var(--aw-muted); }

/* =========================================================================
   Phones
   ========================================================================= */
@media (max-width: 43.6875rem) {
  .aw-filters { gap: 0 1.5rem; }
  .aw-filter--search input { height: 3.5rem; font-size: 1.125rem; }   /* >16px: iPhone does not zoom into the field */
  .aw-dd__btn { height: 2.75rem; }
  .aw-jrow a { gap: 0.35rem 1rem; }
  .aw-jrow__chev { align-self: start; margin-top: 0.2rem; }
}

/* =========================================================================
   User preferences
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .aw-dd__panel, .aw-dd.is-open .aw-dd__panel { transform: none; transition: opacity 0.15s linear, visibility 0s linear 0.15s; }
  .aw-dd__chev, .aw-dd__check svg, .aw-dd__check { transition: none; }
  .aw-dd__btn:active, .aw-dd__done:active, .aw-dd__opt:active .aw-dd__check { transform: none; }
  .aw-jrow--skeleton { animation: none; }
  .aw-jrow__chev, .aw-jrow a::before { transition: none; }
  .aw-jrow a:hover .aw-jrow__chev { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .aw-dd__panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .aw-dd__panel { box-shadow: 0 0 0 1px var(--aw-navy), 0 12px 32px -8px rgba(25, 51, 96, 0.28); }
  .aw-filter--search, .aw-jrows, .aw-jrow, .aw-jempty { border-color: var(--aw-navy); }
  .aw-jobsp { --aw-muted: #34496f; }
}
