/* Fan Pajamas - Careers page styles.
 *
 * Extracted from the approved "Careers.html" mockup. Loaded only on the Careers page; the
 * mockup namespaces its rules under `.careers-page` and a body_class filter adds that class for
 * this page only, so nothing here leaks sitewide. Header/footer rules already live site-wide in
 * fp-header-footer.css and are not duplicated here.
 *
 * FILE ORDER MATTERS and is deliberate (same discipline as fp-about.css):
 *   1. base reset / shared primitives
 *   2. Elementor container reset  <- BEFORE the design rules, so each design rule re-establishes
 *                                    its own padding/gap/display/flex-direction and wins the tie
 *                                    by coming later
 *   3. the mockup design rules (structural selectors adapted where Elementor's real markup
 *      differs from the mockup's raw HTML - see inline notes)
 *   4. media queries
 *   5. theme-override layer       <- AFTER everything, with !important, because elessi-theme
 *                                    stylesheets load after this file
 *
 * Lessons carried over from building the About page in this same session:
 *   - Every `.e-con` (Elementor Container) defaults to flex-direction:column even when its own
 *     rule says `display:flex` - any container meant to lay out row-wise needs `flex-direction:
 *     row` restated explicitly, or its children silently stack instead of sitting side by side.
 *   - Elementor always wraps widget content one level deeper than the mockup's own markup
 *     (`.elementor-widget-text-editor` > <p>, not <p> itself), which breaks any `>` direct-child
 *     selector in the mockup CSS - rewritten to plain descendant space below.
 *   - Elementor's own `.e-con-full{--width:100%}` stretches any *Container* meant to float at
 *     its intrinsic size (badges/overlays) - the roster-label badge is built as raw HTML instead
 *     of a Container for exactly this reason, matching the working fan-card-top/bottom pattern.
 *   - A blanket `span/strong/div{line-height:1.55}` override is NOT used here; only `p` gets a
 *     low-specificity base restatement, so every component's own tighter/looser line-height
 *     (already in the design layer below) wins on specificity+order without a fight.
 *   - Icon widgets always render as a `<div>` wrapper, never a `<span>` - any mockup selector
 *     that depended on the icon holder being literally `<span>` (`span:first-child`, bare
 *     `span`) is rewritten to a dedicated class applied via _css_classes.
 */

/* ---------- 1. base ---------- */
:root {
  --navy: #061e4a;
  --navy-800: #12336a;
  --ink: #24334d;
  --red: #f7192d;
  --orange: #ff7919;
  --yellow: #ffc323;
  --surface: #f6f8fd;
  --brand-tint: #e9eff9;
  --white: #ffffff;
  --line: #d8e1f0;
  --container: 1344px;
  --shadow: 0 24px 58px rgba(6, 30, 74, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.55;
}
body, button, input { font-family: "Manrope", Arial, sans-serif; }
/* dynamic.css (elessi-theme) styles bare `p` directly (Jost font / line-height 1.6) and loads
   after this file, so its win-on-specificity has to be pre-empted here. Placed early (not in the
   override layer at the end) and kept to ONE extra class of specificity on purpose: every
   component-specific p rule below it in section 3 is the same or higher specificity and comes
   later in the file, so it still wins the cascade. */
.careers-page p { font-family: "Manrope", Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
h1, h2, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 20px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(4.25rem, 5.25vw, 5.75rem); line-height: 0.91; }
h2 { font-size: clamp(3.2rem, 4.4vw, 4.8rem); line-height: 0.94; }
h3, h4 { margin-top: 0; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.speed-line {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 45%, var(--orange) 45% 80%, var(--yellow) 80%);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}
.speed-line-short { width: 108px; height: 4px; }
.speed-line-long { width: 330px; margin-bottom: 24px; }
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); box-shadow: 0 10px 24px rgba(6, 30, 74, 0.16); color: white; }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 14px 28px rgba(6, 30, 74, 0.22); }
.button-gold { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid rgba(247,25,45,.42); outline-offset: 3px; }

/* ---------- 2. Elementor container reset -------------------------------- */
/* Every Container ships 10px padding and a 20px flex gap by default. This design is
   padding/margin-driven, so clear both here - early, at low specificity, so each design rule
   below re-establishes its own values and wins on load order. */
.careers-page .e-con { padding: 0; gap: 0; }

/* Containers the mockup renders as plain blocks. The grid/flex ones declare their own display
   in the design rules below and override this on load order. */
.careers-page .container,
.careers-page .careers-hero-copy, .careers-page .roster-board,
.careers-page .careers-section-intro, .careers-page .value-card,
.careers-page .openings-copy, .careers-page .openings-panel,
.careers-page .application-intro, .careers-page .application-form-card,
.careers-page .process-step { display: block; }

/* Every `.e-con` defaults to flex-direction:column - restated to row wherever the design means
   a horizontal row, so children sit side by side instead of silently stacking. */
.careers-page .work-item,
.careers-page .application-form-heading { flex-direction: row; }

/* ---------- 3. design ---------- */
.careers-page main { overflow: hidden; }
.careers-page .careers-kicker {
  margin-bottom: 9px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.careers-page .careers-heading-line {
  display: block;
  width: 116px;
  height: 4px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--red) 0 44%, var(--orange) 44% 77%, var(--yellow) 77%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.careers-page .careers-hero {
  position: relative;
  min-height: 650px;
  background:
    radial-gradient(circle at 79% 27%, rgba(255,195,35,.26), transparent 18%),
    linear-gradient(120deg, var(--surface) 0 58%, #e4ecf8 58% 100%);
}
.careers-page .careers-hero::after {
  position: absolute;
  top: 40px;
  /* `right` restated as `left` - see `.openings-section::before` note above. Defensive fix
     even though this one measured correctly, for consistency. */
  left: calc(100% - 300px);
  width: 410px;
  height: 280px;
  background: linear-gradient(163deg, var(--red) 0 25%, transparent 25% 36%, var(--orange) 36% 62%, transparent 62% 73%, var(--yellow) 73% 96%, transparent 96%);
  content: "";
  opacity: .95;
  transform: rotate(-8deg);
}
.careers-page .careers-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 650px;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 82px;
}
.careers-page .careers-hero-copy { padding: 72px 0; }
.careers-page .careers-hero-copy h1 { max-width: 640px; margin: 20px 0 17px; }
/* mockup: `.careers-hero-copy > p:not(.careers-kicker)` - Elementor wraps the <p> one level
   deeper (.elementor-widget-text-editor), so the `>` never matches; rewritten to descendant. */
.careers-page .careers-hero-copy p:not(.careers-kicker) {
  max-width: 590px;
  margin-bottom: 27px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}
.careers-page .careers-hero-visual { position: relative; display: grid; min-height: 470px; place-items: center; }
.careers-page .roster-board {
  position: relative;
  z-index: 2;
  width: min(470px, 96%);
  min-height: 390px;
  padding: 38px;
  border: 8px solid white;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: 17px 19px 0 var(--orange), var(--shadow);
  color: white;
  transform: rotate(2deg);
}
.careers-page .roster-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.careers-page .roster-top span:first-child { color: var(--yellow); font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.careers-page .roster-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 800;
}
.careers-page .roster-board h2 { margin: 29px 0 24px; font-size: clamp(3.1rem, 4.4vw, 4.6rem); }
.careers-page .roster-list { display: grid; gap: 11px; padding: 0; margin: 0; list-style: none; }
.careers-page .roster-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  color: #d9e1ef;
  font-size: .77rem;
  font-weight: 700;
}
.careers-page .roster-list strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--navy);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: .95rem;
  font-style: italic;
}
.careers-page .roster-label {
  position: absolute;
  z-index: 4;
  right: -4px;
  bottom: 24px;
  min-width: 185px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 30px rgba(6,30,74,.14);
}
.careers-page .roster-label strong { display: block; margin-bottom: 2px; color: var(--red); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
/* Elementor wraps this raw-HTML div one level deeper than the mockup (inside the Text-Editor
   widget's own wrapper), which changes how the browser resolves this absolutely-positioned
   badge's shrink-to-fit width just enough to wrap this line early - nowrap keeps it matching
   the mockup's one-line rendering regardless. */
.careers-page .roster-label span { color: var(--ink); font-size: .73rem; font-weight: 800; white-space: nowrap; }

.careers-page .work-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 max(32px, calc((100vw - var(--container)) / 2));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  list-style: none;
}
/* mockup: `.work-strip li` - each item is an Elementor Container (real Icon widget child), so
   the structural <li> selector is rewritten to the `.work-item` class it's built with. */
.careers-page .work-strip .work-item {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
}
.careers-page .work-strip .work-item + .work-item { border-left: 1px solid var(--line); }
.careers-page .work-strip-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--red);
}
.careers-page .work-strip-icon svg { width: 20px; height: 20px; }
/* mockup: `.work-strip span:last-child` - rewritten to a dedicated class (see .work-item note). */
.careers-page .work-strip .work-label { font-size: .76rem; font-weight: 800; line-height: 1.35; }

.careers-page .careers-section { padding: 106px 0; }
.careers-page .careers-section-intro { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.careers-page .careers-section-intro p:not(.careers-kicker) { margin-bottom: 0; color: var(--ink); line-height: 1.75; }
.careers-page .careers-section-intro .careers-heading-line { margin-right: auto; margin-left: auto; }
.careers-page .values-section { background: white; }
.careers-page .values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.careers-page .value-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 30px 25px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 14px;
  background: var(--surface);
}
.careers-page .value-card:nth-child(2) { border-top-color: var(--orange); }
.careers-page .value-card:nth-child(3) { border-top-color: var(--yellow); }
.careers-page .value-card:nth-child(4) { border-top-color: var(--navy); }
.careers-page .value-number {
  display: block;
  margin-bottom: 31px;
  color: #dce4f0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 3.7rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}
.careers-page .value-card h3 { margin-bottom: 11px; font-size: 1rem; }
.careers-page .value-card p { margin-bottom: 0; color: var(--ink); font-size: .8rem; line-height: 1.7; }

.careers-page .areas-section { background: var(--brand-tint); }
.careers-page .areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.careers-page .area-card {
  display: grid;
  min-height: 210px;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 25px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 13px 30px rgba(6,30,74,.06);
}
.careers-page .area-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 17px;
  background: var(--navy);
  color: white;
}
.careers-page .area-card:nth-child(2) .area-icon { background: var(--red); }
.careers-page .area-card:nth-child(3) .area-icon { background: var(--orange); }
.careers-page .area-card:nth-child(4) .area-icon { background: #e6a500; }
.careers-page .area-icon svg { width: 35px; height: 35px; }
.careers-page .area-card h3 { margin-bottom: 8px; font-size: 1rem; }
.careers-page .area-card p { margin-bottom: 0; color: var(--ink); font-size: .8rem; line-height: 1.65; }
.careers-page .areas-note {
  max-width: 720px;
  padding: 14px 17px;
  margin: 28px auto 0;
  border-radius: 9px;
  background: rgba(6,30,74,.07);
  color: var(--ink);
  font-size: .72rem;
  line-height: 1.6;
  text-align: center;
}

.careers-page .openings-section {
  position: relative;
  background: var(--navy);
  color: white;
}
.careers-page .openings-section::before {
  position: absolute;
  top: -55px;
  /* `right` alone (no `left`) resolves to `left: 0` on elements carrying two shared classes
     (a generic section-utility class plus a specific one, e.g. `careers-section openings-
     section`) - same bug, same fix as `.pod-section::before` on the About page. */
  left: calc(100% - 310px);
  width: 380px;
  height: 195px;
  background: linear-gradient(164deg, var(--red) 0 31%, transparent 31% 40%, var(--orange) 40% 69%, transparent 69% 78%, var(--yellow) 78%);
  content: "";
  transform: rotate(-8deg);
}
.careers-page .openings-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 75px;
}
.careers-page .openings-copy .careers-kicker { color: var(--yellow); }
.careers-page .openings-copy p:not(.careers-kicker) { max-width: 530px; margin-bottom: 0; color: #bbc7dc; line-height: 1.8; }
.careers-page .openings-panel {
  padding: 39px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  background: rgba(255,255,255,.06);
}
.careers-page .opening-status {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 21px;
  border-radius: 999px;
  background: rgba(255,195,35,.13);
  color: var(--yellow);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.careers-page .opening-status::before { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); content: ""; }
.careers-page .openings-panel h3 {
  margin-bottom: 11px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2.35rem;
  font-style: italic;
}
.careers-page .openings-panel p { margin-bottom: 23px; color: #aebbd2; font-size: .82rem; line-height: 1.7; }
.careers-page .company-line {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.13);
}
/* mockup: `.company-line span:first-child` - the icon is a real Icon widget (Elementor always
   wraps it in a <div>, never <span>), so this is rewritten to a dedicated class. */
.careers-page .company-line-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--navy);
}
.careers-page .company-line small { display: block; color: #8395b5; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.careers-page .company-line strong { display: block; margin-top: 2px; font-size: .79rem; }

.careers-page .application-section {
  position: relative;
  background: var(--brand-tint);
}
.careers-page .application-section::after {
  position: absolute;
  /* same two-shared-classes bug/fix as `.openings-section::before` above. */
  left: calc(100% - 235px);
  bottom: 45px;
  width: 330px;
  height: 210px;
  background: linear-gradient(163deg, rgba(247,25,45,.12) 0 26%, transparent 26% 38%, rgba(255,121,25,.14) 38% 64%, transparent 64% 76%, rgba(255,195,35,.2) 76% 96%, transparent 96%);
  content: "";
  transform: rotate(-8deg);
}
.careers-page .application-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: 74px;
}
.careers-page .application-intro {
  position: sticky;
  top: 28px;
}
.careers-page .application-intro p:not(.careers-kicker) {
  margin-bottom: 25px;
  color: var(--ink);
  line-height: 1.8;
}
.careers-page .application-notes {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}
/* mockup: `.application-notes li` - rewritten to `.note-item` (real Container, icon + text). */
.careers-page .application-notes .note-item {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
}
/* mockup: `.application-notes span` - rewritten (real Icon widget, div wrapper not span). */
.careers-page .application-notes .note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--red);
}
.careers-page .application-notes svg { width: 17px; height: 17px; stroke-width: 2.2; }
.careers-page .application-form-card {
  position: relative;
  padding: 42px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--red);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 48px rgba(6,30,74,.11);
}
.careers-page .application-form-card::before {
  position: absolute;
  top: -7px;
  /* `right` alone (no `left`) resolves to `left: 0` on this element - same bug/fix as
     `.openings-section::before` above. */
  left: 64%;
  width: 36%;
  height: 7px;
  border-radius: 0 18px 0 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  content: "";
}
.careers-page .application-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.careers-page .application-form-heading h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2.65rem;
  font-style: italic;
  line-height: 1;
}
.careers-page .application-form-heading p { margin: 7px 0 0; color: var(--ink); font-size: .78rem; }
.careers-page .application-form-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
}
.careers-page .application-form-icon svg { width: 25px; height: 25px; }
/* Below this point the form is rendered by Contact Form 7 (via an Elementor Shortcode widget
   embedding `[contact-form-7 id="..."]`), templated in the CF7 form editor to reuse these same
   class names - CF7's own wrapper is `.wpcf7-form`, not the mockup's original `.application-form`. */
.careers-page .wpcf7 { display: contents; }
.careers-page .wpcf7-form { display: grid; gap: 17px; }
.careers-page .wpcf7-form label,
.careers-page .wpcf7-form input,
.careers-page .wpcf7-form select,
.careers-page .wpcf7-form textarea,
.careers-page .wpcf7-form button { margin: 0; }
.careers-page .application-field .wpcf7-form-control-wrap,
.careers-page .file-field .wpcf7-form-control-wrap { display: contents; }
.careers-page .wpcf7-not-valid-tip { display: block; margin-top: 4px; color: var(--red); font-size: .68rem; font-weight: 700; }
.careers-page .wpcf7-response-output { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--surface); font-size: .78rem; }
.careers-page .wpcf7-validation-errors, .careers-page .wpcf7-mail-sent-ng { border: 1px solid var(--red); color: var(--red); }
.careers-page .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.careers-page .application-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.careers-page .application-field { display: grid; gap: 7px; }
/* elessi-theme's own generic form styles (WooCommerce-derived) put a default bottom margin on
   label/input/select/textarea - it silently added to this grid's own `gap`, inflating every
   field's height. Reset it here since this design relies on `gap` alone for spacing. */
.careers-page .application-field label,
.careers-page .application-field input,
.careers-page .application-field select,
.careers-page .application-field textarea { margin: 0; }
.careers-page .application-field label { color: var(--navy); font-size: .7rem; font-weight: 800; }
.careers-page .application-field label span { color: var(--red); }
.careers-page .application-field input,
.careers-page .application-field select,
.careers-page .application-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #cbd6e7;
  border-radius: 9px;
  outline: 0;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: .82rem;
}
.careers-page .application-field select {
  /* Native <select> intrinsic auto-height ignores min-height's usual "floor" behavior in some
     engines once appearance:none is set - pin the exact height so it can't grow past it. */
  height: 52px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #667695 50%), linear-gradient(135deg, #667695 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.careers-page .application-field textarea { min-height: 134px; resize: vertical; }
.careers-page .application-field input::placeholder,
.careers-page .application-field textarea::placeholder { color: #8090ab; }
.careers-page .application-field input:focus,
.careers-page .application-field select:focus,
.careers-page .application-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(247,25,45,.1); }
.careers-page .file-field {
  position: relative;
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 13px;
  border: 1px dashed #aab9d1;
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}
.careers-page .file-field input { width: 100%; min-height: auto; padding: 0; border: 0; background: transparent; font-size: .75rem; }
.careers-page .file-field small { display: block; margin-top: 7px; color: #73829d; font-size: .64rem; }
/* mockup: `<label class="application-consent">`, checkbox + text as its 2 direct children.
   CF7's `[acceptance]` tag instead nests both several wrapper spans deep inside its OWN internal
   <label> - collapse the wrappers and make that inner <label> the actual grid. */
.careers-page .application-consent {
  color: var(--ink);
  font-size: .68rem;
  line-height: 1.55;
}
.careers-page .application-consent .wpcf7-form-control-wrap,
.careers-page .application-consent .wpcf7-acceptance,
.careers-page .application-consent .wpcf7-list-item { display: contents; }
.careers-page .application-consent label {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 10px;
}
/* Left as a real (block) grid item rather than collapsed to `contents` - grid auto-placement
   promoting a `contents` element's own children into the track sequence is unreliable across
   engines, so the safe fix is to just let this span itself occupy column 2 directly. */
.careers-page .application-consent .wpcf7-list-item-label { display: block; }
.careers-page .application-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); }
.careers-page .application-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 3px;
}
.careers-page .application-form-footer p { max-width: 360px; margin: 0; color: #71809b; font-size: .65rem; line-height: 1.55; }
.careers-page .application-submit {
  display: inline-flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 25px;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}
.careers-page .application-submit:hover { background: var(--navy-800); transform: translateY(-2px); }
.careers-page .application-submit svg { width: 19px; height: 19px; }

.careers-page .process-section { background: white; }
.careers-page .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.careers-page .process-step { position: relative; padding: 20px 27px 0; text-align: center; }
.careers-page .process-step + .process-step::before {
  position: absolute;
  top: 47px;
  left: -22%;
  width: 44%;
  border-top: 2px dashed #c8d3e5;
  content: "";
}
.careers-page .process-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 0 auto 21px;
  border: 6px solid white;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--line);
  color: white;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 800;
}
.careers-page .process-step:nth-child(2) .process-number { background: var(--orange); }
.careers-page .process-step:nth-child(3) .process-number { background: #e6a500; }
.careers-page .process-step:nth-child(4) .process-number { background: var(--navy); }
.careers-page .process-step h3 { margin-bottom: 8px; font-size: .91rem; }
.careers-page .process-step p { margin-bottom: 0; color: var(--ink); font-size: .75rem; line-height: 1.65; }
.careers-page .process-note { max-width: 720px; margin: 36px auto 0; color: #687794; font-size: .7rem; line-height: 1.6; text-align: center; }

.careers-page .careers-closing { padding: 90px 0; background: var(--red); color: white; text-align: center; }
.careers-page .careers-closing h2 { max-width: 810px; margin-right: auto; margin-left: auto; }
.careers-page .careers-closing p { max-width: 690px; margin: 0 auto 26px; color: rgba(255,255,255,.84); }

/* ---------- 4. responsive ---------- */
@media (max-width: 1120px) {
  .careers-page .careers-hero-grid { gap: 45px; }
  .careers-page .values-grid { grid-template-columns: 1fr 1fr; }
  .careers-page .openings-grid { gap: 48px; }
}
@media (max-width: 900px) {
  .careers-page .careers-hero { background: linear-gradient(180deg, var(--surface) 0 48%, #e4ecf8 48% 100%); }
  .careers-page .careers-hero-grid, .careers-page .openings-grid { grid-template-columns: 1fr; }
  .careers-page .careers-hero-copy { padding-bottom: 0; }
  .careers-page .careers-hero-visual { min-height: 500px; }
  .careers-page .work-strip { grid-template-columns: repeat(2, 1fr); }
  .careers-page .work-strip .work-item:nth-child(3) { border-left: 0; }
  .careers-page .work-strip .work-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .careers-page .areas-grid { grid-template-columns: 1fr; }
  .careers-page .application-layout { grid-template-columns: 1fr; }
  .careers-page .application-intro { position: static; }
  .careers-page .process-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .careers-page .process-step:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  /* This rule lives in the mockup's shared base CSS (not the careers-page-scoped block), and
     was missed when fp-careers.css was assembled - .container fell back to the 64px desktop
     gutter instead of 34px on mobile. */
  .container { width: min(calc(100% - 34px), var(--container)); }
  .careers-page .careers-section { padding: 76px 0; }
  .careers-page .careers-hero-grid { min-height: auto; }
  .careers-page .careers-hero-copy { padding: 58px 0 0; }
  .careers-page .careers-hero-copy p:not(.careers-kicker) { font-size: .95rem; }
  .careers-page .careers-hero-visual { min-height: 445px; }
  .careers-page .roster-board { min-height: 360px; padding: 28px 23px; border-width: 5px; box-shadow: 9px 11px 0 var(--orange), var(--shadow); }
  .careers-page .roster-label { right: 0; bottom: 4px; }
  .careers-page .work-strip { padding: 0 10px; }
  .careers-page .work-strip .work-item { min-height: 94px; flex-direction: column; gap: 7px; padding: 12px 8px; text-align: center; }
  .careers-page .work-strip .work-label { font-size: .66rem; }
  .careers-page .values-grid { grid-template-columns: 1fr; }
  .careers-page .area-card { min-height: auto; grid-template-columns: 65px 1fr; gap: 18px; padding: 25px 20px; }
  .careers-page .area-icon { width: 62px; height: 62px; }
  .careers-page .area-icon svg { width: 29px; height: 29px; }
  .careers-page .openings-panel { padding: 29px 22px; }
  .careers-page .application-form-card { padding: 30px 22px; }
  .careers-page .application-form-row { grid-template-columns: 1fr; }
  .careers-page .application-form-footer { align-items: stretch; flex-direction: column; }
  .careers-page .application-submit { width: 100%; }
  .careers-page .process-grid { grid-template-columns: 1fr; gap: 25px; }
  .careers-page .process-step + .process-step::before { display: none; }
  .careers-page .careers-closing { padding: 76px 0; }
  .careers-page .careers-closing .button { width: 100%; }
}

/* ---------- 5. elessi-theme override layer ------------------------------ */
/* dynamic.css styles `p` directly (Jost / line-height 1.6), style.css pins html+body to
   14.5px, and style-font-weight-500.css forces weight 500 on h1..h6/b/strong through a
   selector list long enough to out-specify a plain `html body h1` - so these are restated at
   `.elementor` scope with !important. Same pattern as fp-about.css. */
/* The theme's own generic `button{...}` rule (style.css/style-font-weight-500.css) forces
   uppercase, 2px letter-spacing and font-weight:500 onto every native <button> - the Elementor
   Button widget bridge below already neutralizes this for `.elementor-button`, but
   `.application-submit` is a plain <button> inside the raw-HTML form and needs the same reset. */
html body.careers-page .application-submit {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 800 !important;
}
/* `.roster-label` is raw HTML inside a Text-Editor widget, one level deeper than the mockup's
   own markup - and Elementor's own base CSS puts `position: relative` on every widget wrapper
   div, which becomes `.roster-label`'s containing block instead of `.careers-hero-visual`
   further up. `right`/`bottom` then resolve against the wrapper's own tiny content box, landing
   the badge ~300px too far left instead of at the roster-board's bottom-right corner (same bug,
   same fix as `.hero-stat` on the About page). Only the text-editor widget that's a direct child
   of `.careers-hero-visual` matches this (the roster-board is a Container, not this widget
   type), so this is safe and precise without needing a dedicated class. */
.careers-page .careers-hero-visual > .elementor-widget-text-editor { position: static; }

html:has(body.careers-page) { font-size: 16px !important; }
html body.careers-page {
  background: var(--surface) !important;
  color: var(--navy) !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}
html body.careers-page .elementor h1, html body.careers-page .elementor h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
  font-style: italic !important; font-weight: 800 !important; }
html body.careers-page .elementor h3, html body.careers-page .elementor h4 {
  font-family: "Manrope", Arial, sans-serif !important;
  font-style: normal !important; font-weight: 700 !important; line-height: 1.55; }
/* The h3's the mockup sets in the display face (Barlow Condensed). Only the form-heading one
   also pins line-height:1 in the mockup's own rule - openings-panel h3 relies on the inherited
   1.55, so it must NOT get the same line-height override. */
html body.careers-page .elementor .openings-panel h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
  font-style: italic !important; }
html body.careers-page .elementor .application-form-heading h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
  font-style: italic !important; line-height: 1; }
html body.careers-page .elementor strong { font-weight: 700 !important; }
html body.careers-page .elementor .value-number { font-weight: 800 !important; }

/* Icon widgets: same bridge as fp-about.css - collapse Elementor's wrapper layers so the
   mockup's own box + svg sizing rules reach the actual icon unchanged. */
.careers-page .work-strip-icon > .elementor-widget-container,
.careers-page .area-icon > .elementor-widget-container,
.careers-page .company-line-icon > .elementor-widget-container,
.careers-page .application-notes .note-icon > .elementor-widget-container,
.careers-page .application-form-icon > .elementor-widget-container,
.careers-page .elementor-widget-icon .elementor-icon-wrapper { display: contents; }
.careers-page .elementor-widget-icon .elementor-icon {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: inherit; color: inherit; background: transparent; border: 0; }
.careers-page .e-font-icon-svg { fill: currentColor; stroke: none; }

/* Buttons: same bridge as fp-about.css/fp-home.css - the `.button` class collides with the
   theme's own generic button rule, and Elementor nests the real <a> two wrappers deep. */
.careers-page .elementor-widget-button.button { display: inline-flex; border: 0; padding: 0;
  height: auto; font-size: inherit; border-radius: 0; background: transparent; box-shadow: none;
  text-transform: none; letter-spacing: normal; }
.careers-page .elementor-widget-button.button:hover { background: transparent !important;
  border-color: transparent !important; }
.careers-page .elementor-widget-button.button > .elementor-widget-container,
.careers-page .elementor-widget-button.button .elementor-button-wrapper { display: contents; }
.careers-page .elementor-widget-button.button a.elementor-button {
  display: inline-flex; min-height: 56px; align-items: center; justify-content: center;
  gap: 12px; padding: 0 30px; border: 2px solid transparent; border-radius: 10px;
  font-size: 1rem; line-height: 1.55; font-weight: 800 !important; text-decoration: none;
  text-transform: none !important; letter-spacing: normal !important; color: inherit;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.careers-page .elementor-widget-button.button a.elementor-button:hover { transform: translateY(-2px); }
.careers-page .elementor-widget-button.button-primary a.elementor-button {
  background: var(--navy); box-shadow: 0 10px 24px rgba(6, 30, 74, 0.16); color: white; }
.careers-page .elementor-widget-button.button-primary a.elementor-button:hover {
  background: var(--navy-800); box-shadow: 0 14px 28px rgba(6, 30, 74, 0.22); }
.careers-page .elementor-widget-button.button-gold a.elementor-button {
  background: var(--yellow); color: var(--navy); }
.careers-page .elementor-widget-button.button .elementor-button-content-wrapper { gap: 12px; }
.careers-page .elementor-widget-button.button .elementor-button-icon svg { width: 20px; height: 20px; }

/* Mirrors the mockup `a { color: inherit }`; un-!important so genuinely coloured links win. */
html body.careers-page .elementor a { color: inherit; }

/* Heading sizes: style.css ships its own h1/h2/h3 font-size rules through selectors long enough
   to beat a bare `h1`, so the design sizes have to be restated here at `html body.careers-page`
   specificity - exactly the same collision (and fix) as fp-home.css / fp-about.css. A media
   query adds no specificity, so the mobile sizes must be restated at this specificity too. */
html body.careers-page h1 { font-size: clamp(4.25rem, 5.25vw, 5.75rem) !important; line-height: .91 !important; }
html body.careers-page h2 { font-size: clamp(3.2rem, 4.4vw, 4.8rem) !important; line-height: .94 !important; }
html body.careers-page .elementor .roster-board h2 { font-size: clamp(3.1rem, 4.4vw, 4.6rem) !important; }
html body.careers-page .elementor .openings-panel h3 { font-size: 2.35rem !important; }
html body.careers-page .elementor .application-form-heading h3 { font-size: 2.65rem !important; }
@media (max-width: 640px) {
  html body.careers-page h1 { font-size: clamp(3.45rem, 15vw, 4.3rem) !important; }
  html body.careers-page h2 { font-size: clamp(3rem, 13vw, 3.8rem) !important; }
}
