/* 2.4.6 — literal sweep: a literal whose value IS a token became it; the rest is a value this
   file paints by hand and is counted in the report. The names are global-2026.css's own aliases (2.4.2); a value only the system holds is written --pui-*. */
/* =========================================================================
   PAGE: CAREERS — page-specific CSS. Linked from the Blade view's
   @section('css') as /css/new/careers.css. All rules scoped under
   .page-careers. Shared tokens, nav, footer, the page eyebrow, the
   overflow-x/min-width rules, and the blob all live in
   /public/css/new/global-2026.css — do NOT redeclare them here.

   Eyebrow, hero (intro + team photo), Explore positions (filters + the
   DYNAMIC jobs list), plus tablet + mobile responsive overrides.

   Breakpoints (project-wide):
     mobile  : width < 768
     tablet  : 768 .. 1023
     desktop : width >= 1024  (Figma artboard 1512, content 1296)
   ========================================================================= */

/* ---------- Anti-cascade overrides (defeat layout.min.css + bootstrap.min.css) ---------- */
/* 2.4.2 — guard: the page's anti-cascade resets (`button`, `a:link…`) outrank a one-class component (0,1,1 / 0,2,1 over
   0,1,0); they now skip any element carrying a pui- class (inside :where(), so their specificity is unchanged — D60) and the package paints its own. */
.page-careers a:where(:not([class*="pui-"])):link,
.page-careers a:where(:not([class*="pui-"])):visited,
.page-careers a:where(:not([class*="pui-"])):hover,
.page-careers a:where(:not([class*="pui-"])):focus,
.page-careers a:where(:not([class*="pui-"])):active { color: inherit; text-decoration: none; }

.page-careers button:where(:not([class*="pui-"])) {
  font-family: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.page-careers img { display: block; max-width: 100%; }

.page-careers .container {
  width: 1320px;
  max-width: 1320px;
  padding-left: var(--pui-space-12);
  padding-right: var(--pui-space-12);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}


/* ---------- Sticky footer: footer sits at viewport bottom on short pages ---------- */
.page-careers {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-careers .careers-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--page-top);   /* the eyebrow's line — --page-top in global-2026.css (132 / 116 / 96), no per-breakpoint line */
  padding-bottom: 0;
}
.page-careers .careers-main > div.container:first-of-type {
  margin-bottom: var(--pui-space-64);
}
/* The footer comes from @include('blocks.footer-2026') (a .footer-2026 wrapper),
   not the prototype's old .footer-wrap. margin-top:auto pushes it to the bottom. */
.page-careers .careers-main > .footer-2026 {
  margin-top: auto;
}

/* Eyebrow uses the global .page-eyebrow class (global-2026.css) — do not fork. */

/* ===========================================================
   HERO — intro copy (left) + team photo w/ red gradient (right)
   =========================================================== */
.page-careers .careers-hero {
  display: flex;
  align-items: flex-start;
  gap: 27px;
  margin-bottom: var(--pui-space-64);
}
.page-careers .careers-hero__text {
  flex: 0 0 638px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.page-careers :where(.careers-hero__text) > .pui-text--headline-small {
  margin: 0;
}
.page-careers :where(.careers-hero__text) > .pui-text--body-large {
  margin: 0;
  color: var(--pui-text-subtle);
}
/* Layered media block (mirrors about-us .team-card__photo): the container clips
   the B&W photo to the rounded corners, the ::after paints the red→pink glow.
   Aspect-ratio matches the Figma GradientCover instance at each breakpoint
   (desktop 634×422 / tablet 770×360 / mobile 370×220) — see ::after below. */
.page-careers .careers-hero__media {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  aspect-ratio: 634 / 422;
  border-radius: var(--pui-radius-32);
  overflow: hidden;
}
.page-careers .careers-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Red→pink glow laid over the (black & white) photo via CSS — never baked into
   the file. Exact Figma gradient (Card/Media/GradientCover/Red): focal at
   82% / 106% of the box, radial red→magenta→pink→transparent ramp. Stop alphas
   are the Figma stop opacities folded with the layer's 0.88 opacity, so the
   wash matches the design 1:1 at full strength. */
.page-careers .careers-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(124% 128% at 86% 109%,
    color-mix(in srgb, var(--pui-color-red-400) 88%, transparent)  0%,
    rgba(229, 44, 56, 0.82)  5.77%,
    rgba(229, 52, 79, 0.76)  11.54%,
    rgba(230, 66, 125, 0.64) 23.08%,
    rgba(232, 96, 216, 0.41) 46.15%,
    rgba(244, 175, 236, 0.20) 73.08%,
    color-mix(in srgb, var(--pui-color-neutral-0) 0%, transparent)   100%);
}

/* ===========================================================
   EXPLORE POSITIONS — heading + filters + jobs list
   =========================================================== */
.page-careers :where(.careers-positions) > .pui-text--headline-small {
  margin: 0 0 23px;
}

/* ---------- Filters ---------- */
.page-careers .job-filters {
  margin: 0 0 var(--pui-space-24);   /* B — on the scale (was 23) */
}
.page-careers .job-filters__row {
  display: flex;
  align-items: center;
  gap: var(--pui-space-16);   /* C2 — Fedor, 2026-09-25: the dropdowns 16 apart, space/16 by name (B had put the row on space/24) */
}

/* shadcn-style dropdown filter — Radix DropdownMenu behaviour reproduced in
   vanilla JS/CSS. The pill is the trigger; options live in an animated popover.
   Selecting an item sets .job-select[data-value], which the filter JS reads.
   `.job-select[data-state="open"|"closed"]` drives the open/close animation. */
.page-careers .job-select {
  position: relative;
  flex: 0 0 199px;
  width: 199px;
}
.page-careers .pui-select {
  justify-content: space-between;
  width: 100%;
  text-align: left;
  /* R — request 19 shipped: the fill is .pui-select--filled */
  /* B — the trigger (36 tall — the site's 55, D41; padding 8 / 12 — the site's 10 / 8 / 10 / 16; surface/page — the site's surface/card tint, stated; a 1 px border/default line — the site's #e5e5e5; radius 8; 14 Regular; elevation/flat; hover border/strong, the ring on focus and while open) is .pui-select; `width: 100%`, the space-between and `text-align: left` stay */
}
.page-careers .pui-select__chevron {
  /* C2 — the chevron is the kit's 16 px glyph in text/muted (.pui-select__chevron); the site's 10 × 6 file size went with step C's swap (Fedor's find) — its turn on open stays */
  transition: transform var(--pui-motion-move) var(--pui-motion-easing);
}
.page-careers .job-select[data-state="open"] .pui-select__chevron { transform: rotate(180deg); }

/* Popover = shadcn DropdownMenuContent: rounded border, white bg, shadow-md,
   p-1; animates fade-in-0 + zoom-in-95 + slide-in-from-top-2 on open (reverse
   on close), transform-origin top. */
.page-careers .pui-select-menu {
  position: absolute;
  top: calc(100% + 4px);   /* shadcn sideOffset */
  left: 0;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--pui-motion-state) var(--pui-motion-easing),
    transform 0.15s var(--pui-motion-easing-enter),
    visibility 0s linear 0.15s;
  /* B — the menu (surface/page, border/default, radius 8, padding 4, elevation/floating — the site's shadcn 0 4 6 pair, stated; rows stacked at 0 — the site's gap 2) is .pui-select-menu; the placing (absolute, 4 px under the trigger), the 280 cap, the scroll, the column and the site's open/close motion stay */
}
.page-careers .job-select[data-state="open"] .pui-select-menu {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--pui-motion-state) var(--pui-motion-easing),
    transform 0.15s var(--pui-motion-easing-enter),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .page-careers .pui-select-menu,
  .page-careers .job-select[data-state="open"] .pui-select-menu {
    transition: visibility 0s;
    transform: none;
  }
}

/* Search field — white box, neutral/300 border, dark "Search offers" button. */
.page-careers :where(.job-filters__row) > .pui-input-group {
  flex: 1 1 0;
  min-width: 0;
  /* B — the box (36 min — the site's 55, D41; padding 3 / 3 / 3 / 11 — the site's 9.5 / 8 / 9.5 / 16; gap 8; surface/page; a 1 px border/default line — the site's neutral/300, stated; radius 8; elevation/flat; the ring on focus-within) is .pui-input-group; `flex` and `min-width` stay — the row's layout */
}
.page-careers :where(.job-filters__row) .pui-input-group__button {
  flex: 0 0 auto;
  /* B — the button is the kit's small primary Button inside the group (28 tall at radius 4 with the 4 inset, D47; 12 Medium — the site's 14; action/primary/bg — the site's neutral/600 grey was no Button variant, stated: beside an input the button is the black one, D59) */
}
/* B — the hover is the kit's */

/* ---------- Jobs list (DYNAMIC) ---------- */
.page-careers .jobs-list {
  display: flex;
  flex-direction: column;
  /* Reset Bootstrap reboot's ul { padding-left: 2rem } which otherwise leaks a
     ~32px left gutter onto the openings list. */
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-careers .jobs-list__item { display: block; }
/* The filter sets [hidden] on non-matching rows. The .jobs-list__item rule
   above (specificity 0,2,1) would otherwise beat the UA `[hidden]{display:none}`
   (0,1,0) and keep them visible — so re-assert the hide at higher specificity. */
.page-careers .jobs-list__item[hidden],
.page-careers :where(.jobs-list) > .pui-text--body-medium[hidden] { display: none; }

.page-careers .job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pui-space-24);
  padding: var(--pui-space-32);
  border-bottom: 2px solid var(--pui-border-default);   /* B2 — Fedor's veto of the Item mapping (decisions.json, 2026-09-25): the openings stay his design — the site's own row on tokens: space/32 inset, space/24 gap, the 2 px border/default line under each row (the FAQ's rule); no kit component, no request */
}

.page-careers .job-row__info {
  gap: var(--pui-space-12);   /* B — the site's own gap between title and location, on the scale (was 11; the Item's texts sit at 2 — its title and description are 14 / 12) */
  display: flex;
  flex-direction: column;
  min-width: 0;   /* B2 — the site's own column (the Item's texts went with the veto); the 12 gap stays on the scale */
}
.page-careers :where(.job-row__info) > .pui-text--body-medium {
  color: var(--pui-text-default);
}
.page-careers .job-row__loc {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-careers :where(.job-row__loc) > .pui-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 20px;
}
.page-careers :where(.job-row__loc) > .pui-text--body-small {
  color: var(--pui-text-subtle);
}
.page-careers .job-row__arrow {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--pui-motion-easing-enter);
}
.page-careers .job-row__arrow .pui-icon { width: 16px; height: 16px; }
/* On hover the arrow glides to the right edge of the row (the 32px padding is
   the exact travel distance, so it lands flush with the divider line end). */
.page-careers .job-row:hover .job-row__arrow { transform: translateX(var(--pui-space-32)); }   /* B2 — the travel is the row's inset again, 32 */

.page-careers :where(.jobs-list) > .pui-text--body-medium {
  padding: var(--pui-space-32);   /* B2 — aligned with the rows' inset, 32 again */
  color: var(--pui-text-subtle);
}

/* =========================================================================
   TABLET — 768 .. 1023
   ========================================================================= */
@media (max-width: 1023px) {
  .page-careers .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--pui-space-32);
    padding-right: var(--pui-space-32);
  }

  .page-careers .careers-main > div.container:first-of-type { margin-bottom: var(--pui-space-48); }

  /* Hero stacks: copy on top, full-width photo below. */
  .page-careers .careers-hero {
    flex-direction: column;
    align-items: stretch;
    gap: var(--pui-space-32);
    margin-bottom: var(--pui-space-48);
  }
  .page-careers .careers-hero__text { flex: 1 1 auto; }
  .page-careers .careers-hero__media { flex: 1 1 auto; aspect-ratio: 770 / 360; }

  .page-careers :where(.careers-positions) > .pui-text--headline-small { margin-bottom: var(--pui-space-24); }

  /* 3 selects share the top row; search wraps to its own full-width row. */
  .page-careers .job-filters__row {
    flex-wrap: wrap;
    gap: var(--pui-space-16);
  }
  .page-careers .job-select {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .page-careers :where(.job-filters__row) > .pui-input-group {
    flex: 1 1 100%;
  }

  .page-careers .job-row { padding: var(--pui-space-24); }   /* B2 — the site's tablet inset, by name */
}

/* =========================================================================
   MOBILE — <768
   ========================================================================= */
@media (max-width: 767px) {
  .page-careers .container { padding-left: var(--pui-space-16); padding-right: var(--pui-space-16); }

  .page-careers .careers-main > div.container:first-of-type { margin-bottom: var(--pui-space-32); }

  .page-careers .careers-hero {
    gap: var(--pui-space-24);
    margin-bottom: var(--pui-space-40);
  }
  .page-careers .careers-hero__media { border-radius: 20px; aspect-ratio: 370 / 220; }

  .page-careers :where(.careers-positions) > .pui-text--headline-small {
    margin-bottom: var(--pui-space-20);
  }

  /* Stack every filter control full width. */
  .page-careers .job-filters__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--pui-space-12);
  }
  .page-careers .job-select,
  .page-careers :where(.job-filters__row) > .pui-input-group {
    flex: 1 1 auto;
    width: 100%;
  }

  .page-careers .job-row { padding: var(--pui-space-20) var(--pui-space-16); gap: var(--pui-space-16); }   /* B2 — the site's mobile inset and gap, by name */
  .page-careers :where(.careers-hero__text) > .pui-text--body-large { font-size: var(--pui-type-body-medium-font-size); }   /* the size pin stays (request 61) — restored 2026-10-05 */
}

/* =========================================================================
   APPLY BLOCK — duplicated from the career-detail page (cd-apply) so the
   careers hub carries the same "Apply for this job" form above the footer.
   The `.cd-apply*` layout and the shared button/form/checkbox library below
   are copied VERBATIM from career-detail.css (the library is forked per page —
   see that file's header note; global-2026.css doesn't carry it yet). The form
   success message is the shared global-2026.css standard (`.form-success-msg*`).
   ⚠ Same form as the detail page: it POSTs to /careers/apply, which the backend
   has NOT wired yet — see the view's form comment.
   ========================================================================= */

/* Separate the apply card from the jobs list above (the detail page relies on
   .cd-body's margin-bottom instead; the hub has the jobs list directly above). */
.page-careers .cd-apply { margin-top: var(--pui-space-64); }

.cd-apply {
  background: var(--pui-surface-card);
  border-radius: var(--pui-radius-32);
  padding: var(--pui-space-32);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pui-space-32);
  overflow: clip;
  scroll-margin-top: 120px;
}
.cd-apply__intro {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:where(.cd-apply__intro) > .pui-text--headline-small {
  margin: 0;
}
:where(.cd-apply__intro) > .pui-text--title-small {
  margin: 0;
  color: var(--pui-text-subtle);
}
/* "Email us: <address>" line under the apply intro — mirrors the echo-ai page's
   .cta-email (Poppins Medium 22 / neutral-600, 22px below the copy above it).
   Link colour + underline set explicitly: this page's `a` reset kills both, and
   layout.min.css adds `body a { text-decoration: none !important }`. */
:where(.cd-apply__intro) > .pui-text--body-large {
  margin: 22px 0 0;
  color: var(--pui-text-muted);
}
:where(.cd-apply__intro) > .pui-text--body-large a {
  color: inherit;
  text-decoration: underline !important;
  text-underline-position: from-font;
}
.cd-apply > .form-card {
  flex: 0 0 604px;
  max-width: 604px;
  /* F — the card is the form's own (blocks/form-2026: .form-card.pui-card.pui-card--plain — the white card on the tinted band); the page keeps its width in the row */
}

/* F — the form (.ui-form, the spam trap, the file control) is stated once, in global-2026.css § FORM; this page's copy went (2026-09-28). The form itself is blocks/form-2026; the paint is the kit's. */

/* Apply block responsive — mirrors career-detail.css. */
@media (max-width: 1023px) {
  .cd-apply { flex-direction: column; gap: var(--pui-space-24); }
  .cd-apply > .form-card { flex: 0 0 auto; width: 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  .cd-apply { padding: var(--pui-space-16); gap: var(--pui-space-12); }
  /* F — the card's inset on a phone is the form card's own (global-2026.css) */
}

/* C — the ink of every glyph the kit does not paint itself, bound by name (the file's colour → its token; 2026-09-25). Glyphs inside a
   kit slot (.pui-card__icon, .pui-badge, .pui-icon-button, .pui-input-group__icon, .pui-select__chevron, .pui-nav-link__caret, .pui-form-result__icon) take the kit's ink. */
.page-careers :where(.job-row__loc) > .pui-icon { color: var(--pui-color-red-300); }
/* F — the file control's glyph (neutral/300, 14) is stated with the file control, in global-2026.css § FORM */

/* STEP 12 (2026-09-28) — a design-system part carries the design system's classes only; this page reaches a part through the block that holds it
   and states only what is the page's (a width in a row, a place in a grid, a picture's ratio). */
/* STEP 12 · TOKENS — the site's alias names became the design system's; a typed value that equals a token is the token */
