/* Careers. template-careers.php
 *
 * One template, ACF flexible sections. Tab bar, hero: section-tabs.css,
 * hero-capability.css. Tokens from tokens.css. Read More and Spotlight
 * live here until another page needs them, then move to components/.
 */

.hlb-careers {
  --hlb-careers-col:      800px;
  --hlb-careers-wide:     1120px;
  --hlb-careers-panel-bg: #EFF1F5; /* Live panel gray */
  --hlb-careers-ease:     cubic-bezier(.4, 0, .2, 1);
  --hlb-careers-shadow:   0 12px 32px rgba(8, 53, 88, 0.14);
  --hlb-careers-overhang: 120px;

  /* White like the old pages. Theme body is light gray */
  background: var(--hlb-white);
  color: var(--hlb-ink);
  font-family: var(--hlb-font-body);
}

/* --- Section shell --- */

.hlb-careers-section {
  padding: 64px var(--hlb-gutter);
}

/* First section under the tabs, last one before the prefooter */
.hlb-careers-band:not(.hlb-careers-band ~ .hlb-careers-band) > .hlb-careers-section:first-child {
  padding-top: 80px;
}

.hlb-careers-band:last-child > .hlb-careers-section:last-child {
  padding-bottom: 112px;
}

/* Old WPBakery section fade: white to light gray */
.hlb-careers-band--fade {
  background: linear-gradient(to bottom, rgba(191, 199, 214, 0) 48%, rgba(191, 199, 214, 0.25) 100%);
}

.hlb-careers-band--fade > .hlb-careers-section:last-child {
  padding-bottom: 96px;
}

.hlb-careers-section__inner {
  max-width: var(--hlb-careers-col);
  margin: 0 auto;
}

.hlb-careers-section__inner--wide {
  max-width: var(--hlb-careers-wide);
}

/* Two-column text runs wider, like the old 10/12 row */
.hlb-careers-section__inner--cols {
  max-width: 1000px;
}

.hlb-careers-section__inner--panel {
  max-width: 960px;
}

.hlb-careers-section__inner--openings {
  max-width: 980px;
}

/* --- Type --- */

.hlb-careers .hlb-careers-heading {
  margin: 0 0 28px;
  color: var(--hlb-navy);
  font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--hlb-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hlb-careers .hlb-careers-heading--center {
  text-align: center;
}

.hlb-careers .hlb-careers-lead {
  margin: 0 0 28px;
  color: var(--hlb-turquoise-text);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}

.hlb-careers-prose {
  font-size: 16px;
  line-height: 1.7;
}

.hlb-careers .hlb-careers-prose > :first-child {
  margin-top: 0;
}

.hlb-careers .hlb-careers-prose > :last-child {
  margin-bottom: 0;
}

.hlb-careers .hlb-careers-prose p {
  margin: 0 0 1.1em;
}

.hlb-careers .hlb-careers-prose h3 {
  margin: 1.8em 0 0.6em;
  color: var(--hlb-navy);
  font: 400 17px/1.3 var(--hlb-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hlb-careers .hlb-careers-prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
  list-style: disc;
}

.hlb-careers .hlb-careers-prose li {
  margin: 0 0 0.5em;
  padding: 0;
}

.hlb-careers .hlb-careers-prose li::marker {
  color: var(--hlb-turquoise);
}

/* Wysiwyg links, same role as links.css */
.hlb-careers .hlb-careers-prose a {
  color: var(--hlb-link-fg);
  text-decoration: underline;
  text-decoration-color: var(--hlb-link-accent);
  text-decoration-thickness: var(--hlb-link-thin);
  text-underline-offset: var(--hlb-link-offset);
  transition: color var(--hlb-speed) var(--hlb-ease);
}

.hlb-careers .hlb-careers-prose a:hover {
  color: var(--hlb-link-fg-hover);
}

.hlb-careers .hlb-careers-prose a:focus-visible {
  outline: 2px solid var(--hlb-link-focus);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .hlb-careers .hlb-careers-prose--text {
    columns: 2;
    column-gap: 56px;
  }

  /* One long paragraph splits across both columns, like the old page */
  .hlb-careers .hlb-careers-prose--text {
    column-fill: balance;
    orphans: 3;
    widows: 3;
  }

  .hlb-careers .hlb-careers-prose--lists ul {
    columns: 2;
    column-gap: 48px;
  }

  .hlb-careers .hlb-careers-prose--lists li {
    break-inside: avoid;
  }
}

/* Uppercase arrow link: panels, cards, bio */
.hlb-careers .hlb-careers-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 400 13px/1.2 var(--hlb-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Button arrow outside a button: arrow links, panel CTA, Join rows.
   Same 46px box, 1px weight and head as .hlb-button, drawn 1:1 so the head
   never scales. Rest and hover copy buttons.css: shaft stretches, head travels */
.hlb-careers-arrow-link .hlb-button__arrow,
.hlb-careers-panel__cta .hlb-button__arrow,
.hlb-careers-join__status .hlb-button__arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 8px;
  margin-right: -10px;
  overflow: visible;
  fill: none;
}

.hlb-careers-arrow-link .hlb-button__arrow-shaft,
.hlb-careers-arrow-link .hlb-button__arrow-head,
.hlb-careers-panel__cta .hlb-button__arrow-shaft,
.hlb-careers-panel__cta .hlb-button__arrow-head,
.hlb-careers-join__status .hlb-button__arrow-shaft,
.hlb-careers-join__status .hlb-button__arrow-head {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

.hlb-careers-arrow-link .hlb-button__arrow-shaft,
.hlb-careers-panel__cta .hlb-button__arrow-shaft,
.hlb-careers-join__status .hlb-button__arrow-shaft {
  transform-origin: left center;
  transform: scaleX(0.778);
}

.hlb-careers-arrow-link .hlb-button__arrow-head,
.hlb-careers-panel__cta .hlb-button__arrow-head,
.hlb-careers-join__status .hlb-button__arrow-head {
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-10px);
}

.hlb-careers-arrow-link:hover .hlb-button__arrow-shaft,
.hlb-careers-arrow-link:focus-visible .hlb-button__arrow-shaft,
.hlb-careers-panel__cta:hover .hlb-button__arrow-shaft,
.hlb-careers-panel__cta:focus-visible .hlb-button__arrow-shaft,
.hlb-careers-join__link:hover .hlb-button__arrow-shaft,
.hlb-careers-join__link:focus-visible .hlb-button__arrow-shaft {
  transform: scaleX(1);
}

.hlb-careers-arrow-link:hover .hlb-button__arrow-head,
.hlb-careers-arrow-link:focus-visible .hlb-button__arrow-head,
.hlb-careers-panel__cta:hover .hlb-button__arrow-head,
.hlb-careers-panel__cta:focus-visible .hlb-button__arrow-head,
.hlb-careers-join__link:hover .hlb-button__arrow-head,
.hlb-careers-join__link:focus-visible .hlb-button__arrow-head {
  transform: translateX(0);
}

.hlb-careers .hlb-careers-actions {
  margin: 32px 0 0;
}

/* --- Statement --- */

.hlb-careers .hlb-careers-statement__text {
  margin: 0;
}

.hlb-careers-statement--lead .hlb-careers-statement__text {
  color: var(--hlb-turquoise-text);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
}

.hlb-careers-statement--closing .hlb-careers-statement__text {
  color: var(--hlb-ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
}

.hlb-careers-statement--center {
  text-align: center;
}

.hlb-careers-statement .hlb-careers-statement__text + .hlb-careers-prose {
  margin-top: 32px;
  text-align: left;
}

/* --- Text and Image --- */

.hlb-careers-ti__grid {
  display: grid;
  gap: 32px;
}

.hlb-careers-ti__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hlb-careers-ti__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }

  /* Image lines up with the heading, not the middle of the text */
  .hlb-careers-ti__media {
    margin-top: 8px;
  }

  .hlb-careers-ti--image-right .hlb-careers-ti__media {
    order: 2;
  }

  .hlb-careers-ti--no-image .hlb-careers-ti__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--hlb-careers-col);
    margin: 0 auto;
  }
}

/* Heading in the text column, beside the image. Narrower than a full-width
   section, so one step down from 30px and balanced to two even lines */
.hlb-careers .hlb-careers-ti__text > .hlb-careers-heading {
  margin-bottom: 20px;
  font-size: clamp(20px, 1.8vw, 24px);
  text-wrap: balance;
}

@media (min-width: 900px) {
  /* Image top meets the heading cap line, not 8px under it */
  .hlb-careers-ti__grid:has(.hlb-careers-ti__text > .hlb-careers-heading) .hlb-careers-ti__media {
    margin-top: 0;
  }
}

/* Two or three images, overlapped */
.hlb-careers-stack {
  position: relative;
  aspect-ratio: 1 / 0.95;
  margin: 0 4% 0 0;
}

.hlb-careers-stack .hlb-careers-ti__img {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  box-shadow: var(--hlb-careers-shadow);
}

.hlb-careers-stack .hlb-careers-ti__img:nth-child(1) {
  top: 0;
  left: 0;
}

.hlb-careers-stack--3 .hlb-careers-ti__img:nth-child(2) {
  top: 16%;
  right: 0;
}

.hlb-careers-stack--3 .hlb-careers-ti__img:nth-child(3) {
  bottom: 0;
  left: 14%;
}

.hlb-careers-stack--2 .hlb-careers-ti__img:nth-child(2) {
  right: 0;
  bottom: 0;
}

/* --- Expandable list --- */

.hlb-careers-list .hlb-careers-prose + .hlb-more,
.hlb-careers-list .hlb-careers-prose + .hlb-careers-prose {
  margin-top: 32px;
}

/* --- Panel --- */

/* Old site panel: gray box, deep soft shadow, ink link with full underline */
.hlb-careers-panel__box {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 9vw, 130px);
  background: var(--hlb-careers-panel-bg);
  box-shadow: 0 24px 60px rgba(33, 31, 33, 0.12);
}

.hlb-careers .hlb-careers-panel .hlb-careers-lead {
  margin-bottom: 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
  text-align: center;
}

.hlb-careers .hlb-careers-panel .hlb-careers-lead + .hlb-careers-prose {
  margin-top: 28px;
}

.hlb-careers .hlb-careers-panel__link {
  margin: 36px 0 0;
  text-align: center;
}

/* Underline runs under text and arrow, slides out on hover */
.hlb-careers .hlb-careers-panel__cta,
.hlb-careers .hlb-careers-panel__cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  color: var(--hlb-ink);
  font: 400 16px/1.2 var(--hlb-font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-size .3s var(--hlb-careers-ease),
    color var(--hlb-speed) var(--hlb-ease);
}

.hlb-careers .hlb-careers-panel__cta:hover {
  background-position: right bottom;
  background-size: 0 1px;
  color: var(--hlb-ink);
}

.hlb-careers .hlb-careers-panel__cta:focus-visible {
  outline: 2px solid var(--hlb-navy);
  outline-offset: 4px;
}

/* --- Link cards --- */

.hlb-careers .hlb-careers-cards__list,
.hlb-careers .hlb-careers-card {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hlb-careers .hlb-careers-card::before,
.hlb-careers .hlb-careers-card::after {
  content: none !important;
}

.hlb-careers .hlb-careers-cards__list {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .hlb-careers .hlb-careers-cards__list {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
}

.hlb-careers .hlb-careers-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 340px;
  padding: 48px 36px !important;
  overflow: hidden;
  isolation: isolate;
  background: var(--hlb-navy);
  color: var(--hlb-white);
}

/* Parallax on CSS scroll timelines. parallax.js sets --hlb-parallax (speed)
   and html.hlb-parallax-css. Runs with the scroll, so no iOS stutter.
   Travel matches the JS: speed x 70vh each way, half on phones */
:root {
  --hlb-parallax-travel: 70vh;
}

@media (max-width: 767px) {
  :root {
    --hlb-parallax-travel: 35vh;
  }
}

@keyframes hlb-parallax {
  from { transform: translate3d(0, calc(var(--hlb-parallax, 0) * var(--hlb-parallax-travel)), 0); }
  to   { transform: translate3d(0, calc(var(--hlb-parallax, 0) * var(--hlb-parallax-travel) * -1), 0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hlb-parallax-css [data-hlb-parallax] {
      animation: hlb-parallax linear both;
      animation-timeline: view();
      animation-range: cover;
      will-change: transform;
    }
  }
}

/* Background art, oversized so parallax never shows an edge. Light tint only */
.hlb-careers-card__bg {
  position: absolute;
  top: -15%;
  right: 0;
  bottom: -15%;
  left: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(8, 53, 88, 0.35), rgba(8, 53, 88, 0.1)),
    var(--hlb-careers-card-bg, none) center / cover no-repeat;
}

/* Cards end a gray band: they hang over its bottom edge, like the old page */
.hlb-careers-band--fade > .hlb-careers-cards:last-child {
  display: flow-root; /* Keeps the negative margin inside, so the gray ends mid card */
  padding-bottom: 0;
}

.hlb-careers-band--fade > .hlb-careers-cards:last-child .hlb-careers-cards__list {
  position: relative;
  z-index: 1;
  margin-bottom: calc(var(--hlb-careers-overhang) * -1) !important;
}

.hlb-careers-band--fade:has(> .hlb-careers-cards:last-child) + .hlb-careers-band > .hlb-careers-section:first-child {
  padding-top: calc(64px + var(--hlb-careers-overhang));
}

.hlb-careers .hlb-careers-card__title {
  margin: 0;
  color: var(--hlb-mint);
  font: 500 20px/1.3 var(--hlb-font-body);
  letter-spacing: 0;
  text-transform: none;
}

.hlb-careers .hlb-careers-card__text {
  margin: 0;
  color: var(--hlb-white);
  font-size: 15px;
  line-height: 1.6;
}

.hlb-careers .hlb-careers-card__link,
.hlb-careers .hlb-careers-card__link:visited {
  margin-top: auto;
  color: var(--hlb-white);
  text-decoration: none;
}

.hlb-careers .hlb-careers-card__link:hover {
  color: var(--hlb-mint);
}

.hlb-careers .hlb-careers-card__link:focus-visible {
  outline: 2px solid var(--hlb-white);
  outline-offset: 4px;
}

/* --- Read More --- */
/* Clip only once JS is ready, so no-JS shows everything */

.hlb-more {
  --hlb-more-max: 240px;
}

.hlb-more--list {
  --hlb-more-max: 320px;
}

/* Text and Image extra paragraphs: two lines peek out */
.hlb-more--peek {
  --hlb-more-max: 3.4em;

  margin-top: 1.1em;
}

/* Fade is a mask on the text, not a white box, so any background works.
   Registered so the fade height can ease away on open */
@property --hlb-more-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.hlb-more.is-ready .hlb-more__content {
  --hlb-more-fade: 110px;

  max-height: var(--hlb-more-max);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hlb-more-fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hlb-more-fade)), transparent 100%);
  transition:
    max-height .55s var(--hlb-careers-ease, ease),
    --hlb-more-fade .35s ease;
}

.hlb-more.is-open .hlb-more__content {
  --hlb-more-fade: 0px;
}

.hlb-more.is-static .hlb-more__content {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Text link look. Theme styles button, so beat it */
.hlb-careers .hlb-more__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 16px 0 0;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: var(--hlb-ink);
  font: 400 15px/1.4 var(--hlb-font-body);
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color var(--hlb-speed) var(--hlb-ease);
}

.hlb-careers .hlb-more__toggle[hidden] {
  display: none;
}

.hlb-careers .hlb-more__toggle:hover {
  color: var(--hlb-turquoise-text);
}

.hlb-careers .hlb-more__toggle:focus-visible {
  outline: 2px solid var(--hlb-navy);
  outline-offset: 4px;
}

/* Button arrow pointing down: 1px shaft, round 3.2px chevron */
.hlb-more__arrow {
  flex: 0 0 auto;
  width: 8px;
  height: 14px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform .55s var(--hlb-careers-ease, ease);
}

.hlb-more__arrow-head {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hlb-more.is-open .hlb-more__arrow {
  transform: rotate(180deg);
}

/* --- Current Openings --- */

.hlb-careers .hlb-openings__jump ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 0 !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid var(--hlb-coral);
  list-style: none !important;
}

.hlb-careers .hlb-openings__jump li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hlb-careers .hlb-openings__jump li::before {
  content: none !important;
}

.hlb-openings__jump a {
  --hlb-link-fg: var(--hlb-navy);
  --hlb-link-fg-hover: var(--hlb-blue);

  font: 400 13px/1.4 var(--hlb-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hlb-openings__count {
  color: var(--hlb-slate);
}

.hlb-openings__group {
  padding-top: 56px;
  scroll-margin-top: 24px;
}

.hlb-careers .hlb-openings__heading {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hlb-rule);
  color: var(--hlb-navy);
  font: 400 15px/1.3 var(--hlb-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hlb-careers .hlb-openings__empty {
  margin: 0;
  padding: 28px 0 0;
  color: var(--hlb-slate);
  font-size: 16px;
}

.hlb-careers .hlb-openings__note {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--hlb-coral);
  color: var(--hlb-slate);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* Job */
.hlb-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head  apply"
    "body  apply";
  column-gap: clamp(28px, 5vw, 96px);
  padding: 36px 0;
}

.hlb-job + .hlb-job {
  border-top: 1px solid var(--hlb-rule);
}

.hlb-job__head {
  grid-area: head;
}

.hlb-job__apply {
  grid-area: apply;
  align-self: start;
}

.hlb-job__body {
  grid-area: body;
  max-width: 64ch;
  margin-top: 24px;
}

.hlb-careers .hlb-job__eyebrow {
  margin: 0 0 10px;
  color: var(--hlb-turquoise-text);
  font: 400 12px/1.3 var(--hlb-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hlb-careers .hlb-job__title {
  margin: 0;
  color: var(--hlb-ink);
  font: 500 clamp(20px, 2vw, 24px)/1.3 var(--hlb-font-body);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 767px) {
  .hlb-job {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "body"
      "apply";
  }

  .hlb-job__apply {
    margin-top: 24px;
  }
}

/* --- Testimonials, Spotlight carousel --- */
/* JS off: cards stack, arrows hidden. JS on (.is-ready): every card shares one
   grid cell so the section is as tall as the longest quote and never jumps.
   data-pos is set by spotlight.js: 0 in focus, -1/1 one step back, -2/2 two
   steps back, far hidden behind */

.hlb-careers .hlb-spot {
  overflow-x: clip;
}

.hlb-spot {
  --hlb-spot-w: 860px;
  --hlb-spot-peek-1: 36%;
  --hlb-spot-peek-2: 58%;
  --hlb-spot-ease: cubic-bezier(.22, .61, .36, 1);
}

.hlb-spot__stage {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--hlb-spot-w);
  margin: 0 auto;
}

.hlb-spot.is-ready .hlb-spot__stage {
  display: grid;
  touch-action: pan-y;
}

/* Photo is a pro card tile (0.8, 2022 file 200 x 250), never stretched to the
   card. Card height comes from the longest quote, photo centers beside it */
.hlb-spot__card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--hlb-white);
  box-shadow: 0 24px 60px -24px rgba(8, 53, 88, .28), 0 2px 6px rgba(8, 53, 88, .06);
}

.hlb-spot__card--no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.hlb-spot.is-ready .hlb-spot__card {
  grid-area: 1 / 1;
  z-index: var(--hlb-spot-z, 1);
  opacity: var(--hlb-spot-o, 1);
  transform: translateX(var(--hlb-spot-x, 0)) scale(var(--hlb-spot-s, 1));
  transition:
    transform .7s var(--hlb-spot-ease),
    opacity .5s var(--hlb-spot-ease),
    box-shadow .7s var(--hlb-spot-ease);
}

/* White veil fades the cards behind */
.hlb-spot.is-ready .hlb-spot__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--hlb-white);
  opacity: var(--hlb-spot-dim, 0);
  pointer-events: none;
  transition: opacity .7s var(--hlb-spot-ease);
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="0"] {
  --hlb-spot-z: 5;
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="-1"],
.hlb-spot.is-ready .hlb-spot__card[data-pos="1"] {
  --hlb-spot-x: var(--hlb-spot-peek-1);
  --hlb-spot-s: .84;
  --hlb-spot-z: 4;
  --hlb-spot-dim: .68;
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="-2"],
.hlb-spot.is-ready .hlb-spot__card[data-pos="2"] {
  --hlb-spot-x: var(--hlb-spot-peek-2);
  --hlb-spot-s: .7;
  --hlb-spot-z: 3;
  --hlb-spot-dim: .78;
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="-1"] {
  --hlb-spot-x: calc(var(--hlb-spot-peek-1) * -1);
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="-2"] {
  --hlb-spot-x: calc(var(--hlb-spot-peek-2) * -1);
}

.hlb-spot.is-ready .hlb-spot__card[data-pos="far"] {
  --hlb-spot-s: .6;
  --hlb-spot-o: 0;
  --hlb-spot-dim: 1;
  pointer-events: none;
}

.hlb-spot.is-ready .hlb-spot__card:not([data-pos="0"]) {
  box-shadow: 0 12px 30px -18px rgba(8, 53, 88, .25);
  cursor: pointer;
}

.hlb-spot.is-ready .hlb-spot__card:not([data-pos="0"]):hover {
  --hlb-spot-dim: .45;
}

/* Same frame as .hlb-pro-card__photo: navy with the blue glow */
.hlb-spot__photo {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 0.8;
  overflow: hidden;
  background-color: var(--hlb-navy);
  background-image: radial-gradient(116% 92.8% at 50% 92.7%, rgba(0, 98, 137, 0.5) 0%, rgba(0, 98, 137, 0) 100%);
}

.hlb-spot__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hlb-careers .hlb-spot__figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Same mark and size as the home page (Figma Group 76) */
.hlb-spot__mark {
  display: block;
  flex: 0 0 auto;
  width: 51px;
  height: 48px;
  fill: var(--hlb-coral);
}

.hlb-careers .hlb-spot__quote {
  margin: 20px 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  quotes: none;
}

.hlb-careers .hlb-spot__quote::before,
.hlb-careers .hlb-spot__quote::after {
  content: none !important;
}

.hlb-careers .hlb-spot__quote p {
  margin: 0;
  color: var(--hlb-ink);
  font: 500 clamp(16px, 1.3vw, 18px)/1.6 var(--hlb-font-body);
  font-style: normal;
}

.hlb-spot__cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hlb-spot__name {
  font-size: 15px;
  font-weight: 500;
}

.hlb-spot__title {
  color: var(--hlb-slate);
  font-size: 13px;
}

.hlb-careers .hlb-spot__bio {
  align-self: flex-start;
  margin-top: 16px;
}

/* Arrows: same button as .hlb-carousel__btn in carousel.css. 44px hit area,
   37px ring, 1.8 chevron, fills navy on hover */
.hlb-spot__controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hlb-spot__controls[hidden] {
  display: none;
}

.hlb-careers .hlb-spot__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hlb-navy);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hlb-spot__btn::before {
  content: "";
  position: absolute;
  width: 37px;
  height: 37px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color .18s ease;
}

.hlb-spot__btn svg {
  position: relative;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hlb-careers .hlb-spot__btn:hover {
  color: var(--hlb-white);
}

.hlb-spot__btn:hover::before {
  background-color: var(--hlb-navy);
  border-color: var(--hlb-navy);
}

.hlb-careers .hlb-spot__btn:focus-visible {
  outline: 2px solid var(--hlb-navy);
  outline-offset: 2px;
}

/* Phones: photo on top, neighbors peek at the edges */
@media (max-width: 759px) {
  .hlb-spot {
    --hlb-spot-peek-1: 9%;
  }

  .hlb-spot {
    --hlb-spot-pad: 20px;
    --hlb-spot-photo: 80px;
  }

  .hlb-spot.is-ready .hlb-spot__stage {
    max-width: calc(100% - 24px);
  }

  /* Short card so it fits a phone screen: small photo, mark beside it */
  .hlb-spot__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    row-gap: 16px;
    align-items: start;
    padding: var(--hlb-spot-pad);
  }

  .hlb-spot__photo {
    width: var(--hlb-spot-photo);
  }

  .hlb-careers .hlb-spot__figure {
    justify-content: flex-start;
  }

  .hlb-spot__mark {
    width: 32px;
    height: 30px;
  }

  .hlb-spot__card:not(.hlb-spot__card--no-photo) .hlb-spot__mark {
    position: absolute;
    top: var(--hlb-spot-pad);
    left: calc(var(--hlb-spot-pad) + var(--hlb-spot-photo) + 16px);
  }

  .hlb-careers .hlb-spot__card:not(.hlb-spot__card--no-photo) .hlb-spot__quote {
    margin-top: 0 !important;
  }

  .hlb-careers .hlb-spot__quote {
    margin-bottom: 16px !important;
  }

  .hlb-careers .hlb-spot__quote p {
    font-size: 15px;
    line-height: 1.5;
  }

  .hlb-careers .hlb-spot__bio {
    margin-top: 12px;
  }

  .hlb-spot.is-ready .hlb-spot__card[data-pos="-1"],
  .hlb-spot.is-ready .hlb-spot__card[data-pos="1"] {
    --hlb-spot-s: .92;
    --hlb-spot-dim: .72;
  }

  .hlb-spot.is-ready .hlb-spot__card[data-pos="-2"],
  .hlb-spot.is-ready .hlb-spot__card[data-pos="2"] {
    --hlb-spot-o: 0;
    pointer-events: none;
  }

  .hlb-spot__controls {
    margin-top: 28px;
  }
}

/* --- Phones --- */

@media (max-width: 699px) {
  .hlb-careers {
    --hlb-careers-overhang: 72px;
  }

  .hlb-careers .hlb-careers-card {
    min-height: 0;
  }

  .hlb-careers-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hlb-careers-band:not(.hlb-careers-band ~ .hlb-careers-band) > .hlb-careers-section:first-child {
    padding-top: 48px;
  }

  .hlb-careers-band:last-child > .hlb-careers-section:last-child {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hlb-more.is-ready .hlb-more__content,
  .hlb-more__arrow,
  .hlb-spot.is-ready .hlb-spot__card,
  .hlb-spot.is-ready .hlb-spot__card::after,
  .hlb-spot__btn::before,
  .hlb-careers-arrow-link .hlb-button__arrow-shaft,
  .hlb-careers-arrow-link .hlb-button__arrow-head,
  .hlb-careers-panel__cta .hlb-button__arrow-shaft,
  .hlb-careers-panel__cta .hlb-button__arrow-head,
  .hlb-careers-join__status .hlb-button__arrow-shaft,
  .hlb-careers-join__status .hlb-button__arrow-head {
    transition: none;
  }
}

/* --- Join Us. Panel box, intro left, group rows right --- */

.hlb-careers-join__box {
  display: grid;
  /* minmax(0) caps the track. Plain auto grew to the rows' no-wrap width and ran off phones */
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

/* Phones: count + arrow drop under the label when the row is tight */
@media (max-width: 599px) {
  .hlb-careers-join__box.hlb-careers-panel__box {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hlb-careers .hlb-careers-join__link,
  .hlb-careers .hlb-careers-join__link:visited {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .hlb-careers-join__status {
    margin-left: auto;
  }
}

@media (min-width: 900px) {
  .hlb-careers-join__box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
    padding-right: clamp(32px, 5vw, 64px);
    padding-left: clamp(32px, 5vw, 64px);
  }
}

.hlb-careers .hlb-careers-join__eyebrow {
  margin: 0 0 12px;
  color: var(--hlb-turquoise-text);
  font: 400 12px/1.3 var(--hlb-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hlb-careers-join .hlb-careers-heading {
  margin-bottom: 0;
  text-wrap: balance;
}

.hlb-careers-join .hlb-careers-heading + .hlb-careers-prose {
  margin-top: 16px;
}

.hlb-careers .hlb-careers-join__list,
.hlb-careers .hlb-careers-join__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.hlb-careers .hlb-careers-join__item::before,
.hlb-careers .hlb-careers-join__item::after {
  content: none !important;
}

.hlb-careers .hlb-careers-join__item {
  border-bottom: 1px solid rgba(33, 31, 33, 0.16);
}

.hlb-careers .hlb-careers-join__item:first-child {
  border-top: 1px solid rgba(33, 31, 33, 0.16);
}

.hlb-careers .hlb-careers-join__link,
.hlb-careers .hlb-careers-join__link:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: var(--hlb-ink);
  text-decoration: none;
}

.hlb-careers-join__label {
  font: 400 14px/1.35 var(--hlb-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--hlb-speed) var(--hlb-ease);
}

.hlb-careers-join__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: var(--hlb-ink);
  font-size: 15px;
  white-space: nowrap;
  transition: color var(--hlb-speed) var(--hlb-ease);
}

/* Label, count and arrow move together. Turquoise text on panel gray 4.7:1 */
.hlb-careers .hlb-careers-join__link:hover .hlb-careers-join__label,
.hlb-careers .hlb-careers-join__link:hover .hlb-careers-join__status,
.hlb-careers .hlb-careers-join__link:focus-visible .hlb-careers-join__label,
.hlb-careers .hlb-careers-join__link:focus-visible .hlb-careers-join__status {
  color: var(--hlb-turquoise-text);
}

.hlb-careers .hlb-careers-join__link:focus-visible {
  outline: 2px solid var(--hlb-navy);
  outline-offset: 2px;
}

/* Resume link on an empty group, Current Openings */
.hlb-openings__empty .hlb-link {
  margin-left: 6px;
}

/* Join Us stands alone: even air above and below */
.hlb-careers-join {
  padding-top: 96px;
  padding-bottom: 96px;
}
