/* ============================================================
   flyExclusive — job openings components (.lux-job-*)

   WHY THIS IS NOT IN luxury.css
   Every one of these rules is used by exactly two page types, both of
   them GENERATED (job-openings.html and job-openings/*.html, written by
   tools/build_job_openings.py). Putting them in luxury.css would mean
   shipping them to ~100 hand-maintained pages that will never use them,
   and — the real cost — bumping `luxury.css?v=` on all of those pages
   every time a job-listing style is tweaked. Here, the generator owns
   the <link> tag and its own cache-buster, so a styling change touches
   this file and 31 generated files and nothing else.

   The `lux-` prefix is deliberate anyway: this IS the same system. It
   uses luxury.css's tokens (--fe-*, --lux-font) and none of its own, so
   luxury.css must load first. There is a pointer comment in luxury.css
   so anyone hunting for `.lux-job-` markup finds their way here.
   ============================================================ */

/* ---------- layout: filter rail left, roles right ----------
   The rail is rendered server-side with its counts in the HTML, so the page
   is complete and every role reachable before any script runs. */
.lux-job-layout{
  display:grid;
  grid-template-columns:minmax(190px,232px) minmax(0,1fr);
  gap:clamp(2rem,4vw,4rem);
  align-items:start
}

.lux-job-rail{
  position:sticky;
  /* clears the fixed site header when the list is long enough to scroll */
  top:calc(clamp(1rem,2.2vw,1.75rem) * 2 + 48px + 16px);
  display:flex;flex-direction:column;gap:clamp(1.5rem,2.6vw,2.1rem)
}

.lux-job-facet__head{
  font-family:var(--lux-font);font-size:10.5px;font-weight:600;
  letter-spacing:var(--lux-track-eyebrow);text-transform:uppercase;
  color:var(--fe-slate);margin:0 0 .7rem;
  padding-bottom:.6rem;border-bottom:1px solid var(--fe-line)
}
.lux-job-facet__opts{display:flex;flex-direction:column}

/* A facet option is a quiet row, not a chip: at 12 categories a row of pills
   would wrap into a block that competes with the listing itself. */
.lux-job-facet__opts button{
  display:flex;align-items:baseline;justify-content:space-between;gap:.75em;
  width:100%;text-align:left;
  font-family:var(--lux-font);font-size:13px;font-weight:400;
  /* unselected options sit back in slate so the one navy line reads as the
     selection on its own — no marker needed in the gutter */
  color:var(--fe-slate);background:none;border:0;
  padding:6px 0;cursor:pointer;
  transition:color .2s ease
}
.lux-job-facet__opts button span{
  font-size:11px;font-weight:600;color:var(--fe-slate);
  font-variant-numeric:tabular-nums
}
.lux-job-facet__opts button:hover{color:var(--fe-blue-600)}
.lux-job-facet__opts button[aria-pressed="true"]{
  font-weight:600;color:var(--fe-navy-900)
}
.lux-job-facet__opts button[aria-pressed="true"] span{color:var(--fe-navy-900)}
/* Employment types with nothing in them stay visible and inert: "Part Time 0"
   tells a candidate something a hidden button cannot. */
.lux-job-facet__opts button:disabled{
  color:var(--fe-line);cursor:default;pointer-events:none
}
.lux-job-facet__opts button:disabled span{color:var(--fe-line)}
.lux-job-facet__opts button:focus-visible{outline:2px solid var(--fe-blue);outline-offset:2px}

.lux-job-clear{
  align-self:start;
  font-family:var(--lux-font);font-size:10.5px;font-weight:600;
  letter-spacing:var(--lux-track-eyebrow);text-transform:uppercase;
  color:var(--fe-blue-600);background:none;border:0;
  border-bottom:1px solid currentColor;padding:0 0 2px;cursor:pointer
}
.lux-job-clear[hidden]{display:none}

.lux-job-count{
  font-family:var(--lux-font);font-size:11px;font-weight:600;
  letter-spacing:var(--lux-track-eyebrow);text-transform:uppercase;
  color:var(--fe-slate);margin:0 0 clamp(.9rem,1.6vw,1.2rem)
}

/* Narrow-screen disclosure. Shown by the script that wires it, so a no-JS
   phone keeps the rail open rather than losing the filters entirely. */
.lux-job-railtoggle{
  display:none;
  font-family:var(--lux-font);font-size:11px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--fe-navy);background:none;border:1px solid var(--fe-navy);
  padding:12px 20px;cursor:pointer;width:100%;text-align:left
}
.lux-job-railtoggle[hidden]{display:none}
.lux-job-railtoggle[aria-expanded="true"]{background:var(--fe-navy);color:#fff}

@media (max-width:860px){
  .lux-job-layout{grid-template-columns:1fr;gap:clamp(1.2rem,3vw,1.8rem)}
  .lux-job-railtoggle:not([hidden]){display:block}
  /* Two or three abreast rather than one long column: measured at 390px, three
     stacked facet lists pushed the first role 1,809px down the page. */
  .lux-job-rail{
    position:static;top:auto;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:1.4rem 1.6rem
  }
  .lux-job-rail.is-collapsed{display:none}
  /* the clear button is a grid child here, so give it its own row */
  .lux-job-clear{grid-column:1/-1}
}

/* ---------- the list: hairline rows, no images ----------
   Modelled on .lux-program-list, but a job has no photograph and does
   have a fact line, so the second column carries the facts instead of
   media and the row keeps the same hairline rhythm. */
.lux-job-list{
  list-style:none;margin:0;padding:0;width:100%;
  /* the closing rule belongs to the list, NOT to li:last-child. :last-child
     matches the last element in the DOM whether or not it is displayed, so
     with row-level filtering a hidden final row would take the bottom
     hairline with it. */
  border-bottom:1px solid var(--fe-line)
}
.lux-job-list > li{border-top:1px solid var(--fe-line)}
.lux-job-list > li[hidden]{display:none}

.lux-job-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(1.25rem,4vw,3rem);
  padding:clamp(1.2rem,2.4vw,1.8rem) 0;
  text-decoration:none;color:inherit
}
.lux-job-title{
  font-family:var(--lux-font);font-weight:400;
  font-size:clamp(1.1rem,1.8vw,1.45rem);
  line-height:1.3;letter-spacing:-.01em;
  color:var(--fe-navy);margin:0;
  transition:color .4s var(--ease-smooth,cubic-bezier(.25,.1,.25,1))
}
.lux-job-meta{
  font-family:var(--lux-font);font-size:12.5px;font-weight:400;
  line-height:1.6;color:var(--fe-slate);margin:.4rem 0 0
}
/* the separator is generated, so the markup carries no stray bullets to
   read out and a missing fact cannot leave a dangling dot */
/* --fe-line is 1.2:1 on white — as a hairline that is the point, but a 12px
   glyph in it is invisible, so the dot takes the text colour at half weight */
.lux-job-meta span + span::before{content:"·";margin:0 .55em;opacity:.55}

.lux-job-cta{
  display:inline-flex;align-items:center;gap:.5em;justify-self:end;
  font-family:var(--lux-font);font-size:10.5px;font-weight:600;
  letter-spacing:var(--lux-track-eyebrow);text-transform:uppercase;
  color:var(--fe-blue-600);white-space:nowrap
}
.lux-job-cta svg{
  width:1.05em;height:1.05em;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform .45s var(--ease-smooth,cubic-bezier(.25,.1,.25,1))
}
.lux-job-row:hover .lux-job-cta svg,
.lux-job-row:focus-visible .lux-job-cta svg{transform:translateX(4px)}
.lux-job-row:hover .lux-job-title,
.lux-job-row:focus-visible .lux-job-title{color:var(--fe-navy-900)}

.lux-job-flag,
.lux-job-new{
  display:inline-block;vertical-align:.15em;margin-left:.7em;
  font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:2px 7px;white-space:nowrap
}
.lux-job-flag{color:var(--fe-blue-600);border:1px solid var(--fe-blue-400)}
/* "New" must not read as the same thing as "Priority" — a role can be both,
   and two identical outlines side by side say nothing. This one is filled. */
.lux-job-new{color:#fff;background:var(--fe-success);border:1px solid var(--fe-success)}

.lux-job-empty{
  font-family:var(--lux-font);font-size:14px;color:var(--fe-slate);
  padding:clamp(2rem,5vw,3.5rem) 0;margin:0;text-align:center
}
.lux-job-empty[hidden]{display:none}

@media (max-width:700px){
  .lux-job-row{grid-template-columns:1fr;gap:.75rem;padding:1.3rem 0}
  .lux-job-cta{justify-self:start}
}

/* ---------- detail page ---------- */
.lux-job-head{margin:0 0 clamp(1.6rem,3vw,2.4rem)}
.lux-job-head h1{margin:.5rem 0 0}
.lux-job-head .lux-job-meta{font-size:14px;margin-top:.9rem}

/* The description is Paycom's WYSIWYG output. The generator strips every
   attribute off it, but the Webflow export's GLOBAL element styles still
   apply (p{font-family:'Open Sans';font-weight:300;line-height:200%},
   li{margin-left:36px}), so imported copy renders in the wrong face
   unless it is shielded. :where() keeps specificity at zero so anything
   deliberate still wins. */
.lux-job-prose{max-width:70ch}
.lux-job-prose :where(p),
.lux-job-prose :where(li){
  font-family:var(--lux-font);font-size:15px;font-weight:400;
  line-height:1.75;color:var(--fe-ink);max-width:none
}
.lux-job-prose :where(p){margin:0 0 1.1em}
.lux-job-prose :where(h2),
.lux-job-prose :where(h3),
.lux-job-prose :where(h4){
  font-family:var(--lux-font);font-weight:400;
  font-size:clamp(1.05rem,1.6vw,1.3rem);line-height:1.3;
  letter-spacing:-.01em;color:var(--fe-navy);
  margin:2.2em 0 .7em
}
.lux-job-prose :where(*:first-child){margin-top:0}
.lux-job-prose :where(ul),
.lux-job-prose :where(ol){margin:0 0 1.4em;padding-left:1.2em}
.lux-job-prose :where(li){margin:0 0 .5em;padding-left:.2em}
.lux-job-prose :where(strong){font-weight:600;color:var(--fe-navy)}
.lux-job-prose :where(a){color:var(--fe-blue-600);text-decoration:underline}
.lux-job-prose :where(table){display:block;overflow-x:auto;max-width:100%}

/* the apply row repeats at the foot of the description — the postings run
   to 8,800 characters and the top button is long gone by then */
.lux-job-apply{
  display:flex;align-items:center;gap:clamp(1rem,2.5vw,1.75rem);
  flex-wrap:wrap;margin-top:clamp(2rem,4vw,3rem);
  padding-top:clamp(1.5rem,3vw,2rem);border-top:1px solid var(--fe-line)
}
.lux-job-apply p{
  font-family:var(--lux-font);font-size:12.5px;color:var(--fe-slate);
  margin:0;max-width:44ch
}
