/* assets/nbsx/pages/career-services.css — templates/career-services.php
   (blueprint v2 §5 "Careers", pages 63 / 65). Loaded after core.css and
   pages.css by inc/nbsx-enqueue.php.

   Screens: hero (light, page kit) → #strength (warm, the three primary
   numerals — this page's one gradient) → #outcomes (light, four secondary
   stats) → #services (warm, three .nbsx-pair photo + text rows) →
   #employers (light, hairline logo grid + the plain-text name list) →
   nbsx-intakes (ink).

   Everything is namespaced .nbsx-careers__*; the only rules that touch a
   shared class are the id-scoped heading resets below, which exist purely to
   undo the legacy bundle and change nothing outside this page's sections.
   Motion: transform / opacity, plus the paint-only exceptions of §3.9
   (background-size for the caption underline, filter/opacity on the logos).
   No !important, no box-shadow on content, no height/width transitions. */

/* ══ headings: undo the legacy element rules, scoped to this page ══════════
   The old bundle (assets/css/main.min.css, still loaded site-wide) styles the
   bare elements — `h1,h2,h3,h4,h5,h6{color:var(--clr-blue);font-family:
   "Epiloque"}` (a typo family with no @font-face) and `h1{color:var
   (--clr-white);text-transform:uppercase}` — and an element rule beats an
   inherited value. So a rebuilt page hero renders WHITE ON WHITE, uppercase,
   and every heading falls back to the browser's sans-serif instead of
   Epilogue. core.css owns the real fix (it sets the family and colour on
   .nbsx-sec, which the element rules override, so the same thing happens on
   the homepage today); until that lands this page restores colour, family and
   case for its OWN headings, keyed to its own section ids so that nothing
   outside this page changes and the eventual core fix is a no-op here. */
#careers-hero .nbsx-pagehero__h1,
#strength .nbsx-h2,
#outcomes .nbsx-h2,
#services .nbsx-h2,
#services .nbsx-pair__h,
#employers .nbsx-h2,
#employers .nbsx-h2--s{color:var(--fg);font-family:inherit;text-transform:none}

/* ══ shared bits ═══════════════════════════════════════════════════════════ */
.nbsx-careers__head{margin-bottom:48px}

/* ══ #strength — the three primary numerals ════════════════════════════════
   3px indigo rule on the tile's left edge, gradient numeral (core
   .nbsx-num--xl), 16px caption whose underline slides in on hover. */
.nbsx-careers__primary{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gutter)}
.nbsx-careers__primary-item{min-width:0}
.nbsx-careers__tile{position:relative;display:block;padding:6px 0 6px 24px;color:inherit;text-decoration:none}
.nbsx-careers__rule{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--indigo);transform:scaleY(0);transform-origin:top center;transition:transform .4s var(--ease);transition-delay:calc(var(--i,0)*80ms)}
.nbsx-careers__strength.is-in .nbsx-careers__rule{transform:none}
.nbsx-careers__figure{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.18em;min-height:1em}
.nbsx-careers__num{display:inline-block}
.nbsx-careers__unit{font-size:var(--t-num-m);font-weight:200;line-height:1;letter-spacing:-.01em;color:var(--fg)}
.nbsx-careers__cap{display:inline-block;font-size:16px;line-height:1.4;color:var(--fg);margin-top:12px;max-width:28ch;background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;transition:background-size .25s var(--ease)}
a.nbsx-careers__tile:hover .nbsx-careers__cap,
a.nbsx-careers__tile:focus-visible .nbsx-careers__cap{background-size:100% 1px}
.nbsx-careers__source{margin:32px 0 0;max-width:68ch}

/* ══ #outcomes — the four secondary stats ═════════════════════════════════ */
.nbsx-careers__cta{justify-self:end}
.nbsx-careers__secondary{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px var(--gutter)}
.nbsx-careers__secondary-item{min-width:0;padding-top:20px;border-top:1px solid var(--hair)}
.nbsx-careers__stat{display:block;color:inherit;text-decoration:none}
.nbsx-careers__stat-num{display:block}
.nbsx-careers__stat-cap{display:inline-block;font-size:14px;line-height:1.4;color:var(--muted);margin-top:8px;max-width:28ch;background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;transition:background-size .25s var(--ease)}
a.nbsx-careers__stat:hover .nbsx-careers__stat-cap,
a.nbsx-careers__stat:focus-visible .nbsx-careers__stat-cap{background-size:100% 1px}

/* ══ #services — help__items 0–2, photo + text ════════════════════════════ */
.nbsx-careers__svc{scroll-margin-top:160px}
.nbsx-careers__svc-media{aspect-ratio:4/3}
.nbsx-careers__svc-n{margin-bottom:16px;color:var(--muted);font-variant-numeric:tabular-nums}
.nbsx-careers__svc-body{max-width:56ch}

/* ══ #employers — hairline logo grid + the plain-text name list ═══════════ */
.nbsx-careers__logos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border-top:1px solid var(--hair);border-left:1px solid var(--hair)}
.nbsx-careers__logo{height:88px;border-right:1px solid var(--hair);border-bottom:1px solid var(--hair);opacity:0;transform:translateY(12px);transition:opacity .5s var(--ease),transform .5s var(--ease);transition-delay:calc(var(--i,0)*30ms)}
.nbsx-careers__logos.is-in .nbsx-careers__logo{opacity:1;transform:none}
.nbsx-careers__logo-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:14px}
a.nbsx-careers__logo-link:focus-visible{outline-offset:-3px}
.nbsx-careers__logo img{display:block;width:auto;height:auto;max-height:34px;max-width:72%;object-fit:contain;filter:grayscale(1);opacity:.55;transition:filter .2s var(--ease),opacity .2s var(--ease)}
.nbsx-careers__logo-link:hover img,
.nbsx-careers__logo-link:focus-visible img{filter:none;opacity:1}

.nbsx-careers__names{margin-top:64px;padding-top:32px;border-top:1px solid var(--hair)}
.nbsx-careers__namelist{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px var(--gutter)}
.nbsx-careers__name{font-size:var(--t-small);line-height:1.4;color:var(--muted);min-width:0}

/* ══ tablet ≤1024 ════════════════════════════════════════════════════════ */
@media (max-width:1024px){
  .nbsx-careers__head{margin-bottom:40px}
  .nbsx-careers__num{font-size:64px}
  .nbsx-careers__secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nbsx-careers__logos{grid-template-columns:repeat(5,minmax(0,1fr))}
  .nbsx-careers__namelist{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nbsx-careers__svc{scroll-margin-top:152px}
}

/* ══ mobile ≤700 ═════════════════════════════════════════════════════════ */
@media (max-width:700px){
  .nbsx-careers__head{margin-bottom:32px}
  .nbsx-careers__primary{grid-template-columns:minmax(0,1fr);gap:32px}
  .nbsx-careers__num{font-size:56px}
  .nbsx-careers__secondary{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
  .nbsx-careers__cta{justify-self:stretch}
  .nbsx-careers__source{margin-top:24px}
  .nbsx-careers__logo{height:76px}
  .nbsx-careers__logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nbsx-careers__names{margin-top:48px}
  .nbsx-careers__namelist{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nbsx-careers__svc{scroll-margin-top:140px}
  .nbsx-careers__svc-body{max-width:none}
}

/* ══ reduced motion — final state on load, nothing tweens ════════════════ */
@media (prefers-reduced-motion:reduce){
  .nbsx-careers__rule{transform:none;transition:none}
  .nbsx-careers__logo{opacity:1;transform:none;transition:none}
  .nbsx-careers__logo img,
  .nbsx-careers__cap,
  .nbsx-careers__stat-cap{transition:none}
}
