/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-careers.css
   ---------------------------------------------------------------------------
   Careers. The seventeenth distinct visual key:
     Home             teal filled eyebrow, expanding six-panel strip
     About            gold filled eyebrow, timeline on one rule
     Chairman         gold-on-dark eyebrow, letter on the dark ground
     Leadership       outlined eyebrow, portrait grid with no card boxes
     Sectors          rule-and-label eyebrow, alternating full-width rows
     Sector detail    dark filled eyebrow pill, one page as a tab set
     Companies        underlined eyebrow, filterable directory of crest cards
     Projects         vertical bar eyebrow, staggered grid, caption plates
     Project detail   bracketed eyebrow, long-form copy beside a sticky rail
     Global Presence  flanking rules, two-column evidence comparison
     Sustainability   diamond marker, quadrant and an empty report table
     News             highlighter band, front page and a date-first archive
     News detail      corner ticks, no banner, a measured column with breakouts
     Gallery          2x2 dot grid glyph, albums drawn as stacks of prints
     Gallery album    three-sided frame, a mosaic with a 2x2 lead tile
     Contact          trailing rule that fills the line, floating-label form
     Careers          a CHEVRON TAG - the label is no longer a rectangle or a
                      pill at all. Its trailing edge comes to a point and its
                      leading edge is notched, so the mark itself points the
                      way in. Every earlier eyebrow was a box, a rule or a
                      texture; this is the first cut SHAPE, and the only
                      clip-path in the build.

   And the page's own structural device is THE SPINE: a label set sideways in
   the margin beside each block, with a hairline running the block's height.
   Nothing else on the site uses writing-mode, and this page uses it for every
   section, so the margin reads like the tabs on a printed dossier.

   TWO THINGS THE SPINE TEACHES ABOUT DIRECTION
   1. clip-path is physical. Like transform and transform-origin it has no
      logical form, so the chevron is drawn once per direction - and, inside
      the rotated spine, once per direction again. Four short declarations,
      not one clever one.
   2. Logical properties rotate WITH writing-mode. Inside
      writing-mode:vertical-rl the inline axis is vertical, so the same
      `padding-inline` that put room either side of the horizontal tag puts
      room above and below the vertical one - and it swaps ends between the
      Arabic and English editions on its own, because in RTL the vertical
      inline axis runs bottom-to-top. The chevron has to follow it: the point
      sits at the BOTTOM in English and at the TOP in Arabic and Kurdish.

   WHAT THIS PAGE DOES NOT INVENT
   The reference design carries a "Careers" link in its footer and nothing
   else - no vacancy, no department, no hiring copy, no staff photograph. So
   no job, no salary, no closing date and no team claim is drafted here. The
   vacancy list is drawn EMPTY, which is its true state, and beside it sits
   one specimen record whose every value is a blank field: that is the list of
   things to send us, and it doubles as the shape the real listings will take.
   =========================================================================== */

.page-careers{
  --eyebrow-bg:var(--teal-tint);
  --eyebrow-fg:var(--teal-dp);
  --page-bg:var(--white);

  /* the chevron. One point, one notch, reused by both orientations. */
  --tag-point:.6875rem;
  --tag-notch:.5rem;

  /* the spine rail */
  --spine-w:3.25rem;
}

/* ---------------------------------------------------------------------------
   THE SEVENTEENTH EYEBROW — a cut chevron tag
   ---------------------------------------------------------------------------
   padding-inline carries the room the point and the notch need, so the text
   never sits under either. Both values are logical and mirror themselves; the
   clip-path underneath them does not, and is restated for RTL.
   --------------------------------------------------------------------------- */
.page-careers .eyebrow{
  border-radius:0;
  padding-inline:calc(var(--tag-notch) + .9375rem) calc(var(--tag-point) + .9375rem);
  clip-path:polygon(
    0 0,
    calc(100% - var(--tag-point)) 0,
    100% 50%,
    calc(100% - var(--tag-point)) 100%,
    0 100%,
    var(--tag-notch) 50%);
}
[dir="rtl"] .page-careers .eyebrow{
  clip-path:polygon(
    100% 0,
    var(--tag-point) 0,
    0 50%,
    var(--tag-point) 100%,
    100% 100%,
    calc(100% - var(--tag-notch)) 50%);
}
/* A border cannot be cut cleanly by clip-path - the mitre shows - so the
   on-dark variant drops core.css's hairline. It also drops the gold tint:
   this banner photograph is a sunset, and a translucent gold tag disappears
   into it. A dark ground reads against any part of any photograph. */
.page-careers .eyebrow--onDark{
  border:0;
  background:rgba(20,17,5,.55);
  color:var(--gold-lt);
}

/* the banner photograph is a tall frame, and the two figures in it sit in the
   upper half - so the wide crop is pulled up off centre */
.page-careers .page-hero__bg img{object-position:50% 38%}

/* ---------------------------------------------------------------------------
   THE SPINE
   ---------------------------------------------------------------------------
   Below 62rem the tag is an ordinary eyebrow above the block. From 62rem it
   moves into a narrow leading column, turns sideways, and the column carries
   a hairline down the whole height of the block.
   --------------------------------------------------------------------------- */
.spine{display:grid;gap:var(--s-1)}
.spine__body{min-width:0}

@media (min-width:62rem){
  .spine{
    grid-template-columns:var(--spine-w) minmax(0,1fr);
    column-gap:clamp(1.5rem,1rem + 1.5vw,2.75rem);
  }
  /* stretch is the grid default and is wanted here: it is what makes the
     hairline run the full height of the block rather than the tag's */
  .spine__tab{
    display:flex;justify-content:center;
    border-inline-end:.0625rem solid var(--line);
  }
  .spine__tab .eyebrow{
    writing-mode:vertical-rl;
    text-orientation:mixed;
    margin:0;                       /* core.css gives the eyebrow a bottom margin */
    align-self:flex-start;
  }
  /* Rotated, the chevron has to point along the vertical inline axis. In
     English that axis runs downwards, so the point is at the bottom. */
  .page-careers .spine__tab .eyebrow{
    clip-path:polygon(
      0 0,
      50% var(--tag-notch),
      100% 0,
      100% calc(100% - var(--tag-point)),
      50% 100%,
      0 calc(100% - var(--tag-point)));
  }
  /* In Arabic and Kurdish the vertical inline axis runs upwards, so the tag
     begins at the bottom and the point belongs at the top. */
  [dir="rtl"] .page-careers .spine__tab .eyebrow{
    clip-path:polygon(
      0 100%,
      50% calc(100% - var(--tag-notch)),
      100% 100%,
      100% var(--tag-point),
      50% 0,
      0 var(--tag-point));
  }
}

/* ---------------------------------------------------------------------------
   AREAS — the seven sectors, read as places the work happens
   ---------------------------------------------------------------------------
   Rows, not cards. Seven equal names with nothing ranked above another,
   because the design does not say which of them is hiring.
   --------------------------------------------------------------------------- */
.areas{background:var(--white)}
.areas__title{margin:0 0 var(--s-3)}
.areas__lead{color:var(--muted);max-width:min(46rem,100%);margin:0}

.areas__list{
  list-style:none;margin:clamp(1.75rem,1.25rem + 1.5vw,2.75rem) 0 0;padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));
  column-gap:clamp(1.5rem,1rem + 2vw,3rem);
}
.area a{
  display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);
  padding-block:clamp(.875rem,.75rem + .5vw,1.125rem);
  border-top:.0625rem solid var(--line);
  font-family:var(--ff-head, inherit);font-weight:600;
  font-size:var(--fs-h4);color:var(--ink);
  transition:color var(--dur-fast) var(--ease);
}
/* The name slides, the arrow slides further, and neither does it by animating
   padding - a padding transition relays out the row on every frame. transform
   only composites, and it is the reason .area__name exists as an element at
   all rather than being a bare text node. */
.area__name{
  transition:transform var(--dur-fast) var(--ease);
}
.area a svg{
  flex:0 0 auto;width:1rem;height:1rem;
  fill:none;stroke:currentColor;stroke-width:2;
  color:var(--gold);
  transition:transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
/* transform has no logical axis, so every nudge is named per direction */
.area a:hover{color:var(--gold-dk)}
.area a:hover .area__name{transform:translateX(.375rem)}
.area a:hover svg{transform:translateX(.25rem);color:var(--gold-dk)}
[dir="rtl"] .area a:hover .area__name{transform:translateX(-.375rem)}
[dir="rtl"] .area a:hover svg{transform:translateX(-.25rem) scaleX(-1)}
[dir="rtl"] .area a svg{transform:scaleX(-1)}

.areas__note{
  margin:clamp(1.5rem,1.25rem + 1vw,2rem) 0 0;
  font-size:var(--fs-sm);color:var(--muted);max-width:60ch;
}
/* the "see the companies" link sits on its own line under the note, rather
   than mid-sentence where its trailing arrow would read as punctuation */
.areas__more{margin:var(--s-2) 0 0}

/* ---------------------------------------------------------------------------
   VACANCIES — an empty list, and the specimen that would fill it
   --------------------------------------------------------------------------- */
.openings{background:var(--cream)}
.openings__title{margin:0 0 var(--s-3)}

/* the empty state. Not a spinner, not an error - a statement. */
.board-empty{
  display:grid;gap:var(--s-1);
  padding:clamp(1.5rem,1.25rem + 2vw,2.5rem);
  background:var(--white);
  border:.0625rem solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-1);
}
.board-empty__head{
  margin:0;font-family:var(--ff-head, inherit);font-weight:600;
  font-size:var(--fs-h4);color:var(--ink);
}
.board-empty__text{margin:0;font-size:var(--fs-sm);color:var(--muted);max-width:62ch}

/* --- the specimen record ------------------------------------------------- */
.specimen{
  margin-top:clamp(1.5rem,1.25rem + 1.5vw,2.25rem);
  background:var(--white);
  border:.0625rem solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
}
.specimen__tag{
  display:flex;align-items:center;gap:.5rem;
  margin:0;padding:.6875rem clamp(1.25rem,1rem + 1vw,1.75rem);
  font-size:var(--fs-xs);font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold-dk);background:var(--gold-tint);
  border-bottom:.0625rem dashed var(--gold);
}
/* Six fields, laid out so they never leave one stranded on a row of its own:
   one column, then two, then three - 6 divides by all of them. auto-fit would
   have given five columns and a widow at this width. */
.specimen__fields{
  margin:0;padding:clamp(1.25rem,1rem + 1vw,1.75rem);
  display:grid;gap:var(--s-3) var(--gutter);
  grid-template-columns:minmax(0,1fr);
}
@media (min-width:30rem){
  .specimen__fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:62rem){
  .specimen__fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.spec-field{display:grid;gap:.375rem}
.spec-field dt{
  font-size:var(--fs-xs);letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);
}
.spec-field dd{margin:0}

.specimen__brief{
  padding:0 clamp(1.25rem,1rem + 1vw,1.75rem) clamp(1.25rem,1rem + 1vw,1.75rem);
  border-top:.0625rem solid var(--line);
  padding-top:clamp(1.25rem,1rem + 1vw,1.75rem);
}
.specimen__brief dt{
  font-size:var(--fs-xs);letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:.5rem;
}
.specimen__brief dd{margin:0}
.specimen__brief p{
  margin:0;font-size:var(--fs-sm);color:var(--ink-2);max-width:70ch;
}

/* ---------------------------------------------------------------------------
   ROUTE — how an application travels, on one rail
   ---------------------------------------------------------------------------
   The numeral is a CSS counter, not typed into the markup: the list is an
   <ol>, so a screen reader already counts it, and the visible 01 / 02 / 03
   can never drift out of step with the order of the steps.
   --------------------------------------------------------------------------- */
.route-block{background:var(--white)}
.route-block__title{margin:0 0 var(--s-3)}

.route{
  counter-reset:step;
  list-style:none;margin:clamp(2rem,1.5rem + 2vw,3rem) 0 0;padding:0;
  position:relative;
  display:grid;gap:var(--s-4);
}
/* the rail. Vertical while the steps are stacked... */
.route::before{
  content:"";position:absolute;z-index:0;
  inset-block:1.375rem 1.375rem;
  inset-inline-start:1.375rem;
  width:.0625rem;background:var(--line);
}
.route__step{
  counter-increment:step;
  position:relative;z-index:1;
  padding-inline-start:4.25rem;
  min-height:2.75rem;
}
.route__mark{
  position:absolute;inset-inline-start:0;top:0;
  width:2.75rem;height:2.75rem;border-radius:50%;
  display:grid;place-items:center;
  background:var(--white);color:var(--teal-dp);
  box-shadow:inset 0 0 0 .0625rem var(--teal);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:var(--fs-sm);font-weight:700;
  font-variant-numeric:tabular-nums;
}
/* The numeral is Latin in every edition, so it is isolated - but the
   isolation goes on the PSEUDO-ELEMENT, never on .route__mark itself.
   inset-inline-start is resolved against the element's OWN direction, so
   direction:ltr on the disc would pin it to the left in the Arabic and
   Kurdish editions - putting step one's marker on the wrong side of its own
   column. Measured, not assumed: tools/qa-spine.js checks it. */
.route__mark::before{
  content:counter(step,decimal-leading-zero);
  direction:ltr;unicode-bidi:isolate;
}
.route__name{
  margin:0 0 .375rem;font-size:var(--fs-h4);color:var(--ink);
  padding-top:.375rem;
}
.route__text{margin:0;font-size:var(--fs-sm);color:var(--muted);max-width:44ch}

/* ...and horizontal once there is room for three abreast. The rail runs the
   full width of the block and the opaque discs sit on it. */
@media (min-width:48rem){
  .route{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gutter)}
  .route::before{
    inset-block:1.375rem auto;
    inset-inline:0;
    width:auto;height:.0625rem;
  }
  .route__step{padding-inline-start:0;padding-block-start:3.75rem}
  .route__name{padding-top:0}
}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .area a,.area__name,.area a svg{transition:none}
  .area a:hover .area__name{transform:none}
  .area a:hover svg{transform:none}
  [dir="rtl"] .area a:hover .area__name{transform:none}
  [dir="rtl"] .area a:hover svg{transform:scaleX(-1)}
}
