/* Careers: docs/design/Careers.dc.html and Mobile-Careers.dc.html.
   The job page is not in the design and follows the same visual language. */

/* Hero that sticks and shrinks once the page is scrolled (site.js adds .is-compact). */
.careers-hero { position: sticky; top: 0; z-index: 20; transition: box-shadow .3s ease; }
.careers-hero .page-hero__inner { transition: padding .35s ease; }
.careers-hero .page-hero__copy { transition: gap .35s ease; }
.careers-hero h1 { overflow: hidden; text-overflow: ellipsis; transition: font-size .35s ease; }
.careers-hero .badge, .careers-hero .page-hero__copy p { max-height: 200px; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
.careers-hero.is-compact { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.careers-hero.is-compact .page-hero__inner { padding-top: 18px; padding-bottom: 18px; }
.careers-hero.is-compact .page-hero__copy { gap: 0; }
.careers-hero.is-compact h1 { font-size: 28px; white-space: nowrap; }
.careers-hero.is-compact h1 .d-br { display: none; }
.careers-hero.is-compact .badge, .careers-hero.is-compact .page-hero__copy p { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.careers-hero.is-compact .page-hero__art { display: none; }
.careers-hero.is-measuring, .careers-hero.is-measuring * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .careers-hero, .careers-hero * { transition: none !important; }
}

/* Open positions */
.jobs { background: var(--paper); }
.jobs__inner { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 40px; }
.jobs__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.jobs__heading { display: flex; flex-direction: column; gap: 16px; }
.role-count { font-size: 15px; color: var(--text); }
.job-list { display: flex; flex-direction: column; gap: 20px; }
.job-card { background: var(--ink); border: 1.5px solid var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.job-card__main { display: flex; flex-direction: column; gap: 14px; flex: 1 1 520px; min-width: 0; }
.job-card__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card__chip { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--yellow); padding: 6px 12px; border-radius: 999px; }
.job-card__chip--type { color: var(--blue); background: var(--blue-tint); }
.job-card h3 { font-family: var(--display); font-size: 26px; font-weight: 600; color: #FFFFFF; }
.job-card__meta { display: flex; gap: 24px; flex-wrap: wrap; }
.job-card__meta span, .job-hero__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dark-text-soft); }
.job-card__meta .icon, .job-hero__meta .icon { color: var(--yellow); }
.jobs__cv { font-size: 16px; color: var(--text); }
.jobs__cv a { font-weight: 600; }

/* Why join us */
.benefits { background: #FFFFFF; }
.benefits__inner { max-width: 1200px; margin: 0 auto; padding: 104px 24px 112px; display: flex; flex-direction: column; gap: 48px; }
.benefit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.benefit__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.benefit h3 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.benefit p { font-size: 16px; line-height: 1.6; color: var(--text); }

/* Job page */
.job-hero { background: var(--ink); color: #FFFFFF; }
.job-hero__inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.job-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.job-hero__meta { display: flex; gap: 24px; flex-wrap: wrap; }
.job-details__inner { max-width: 1200px; margin: 0 auto; padding: 88px 24px 96px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.job-body { flex: 1 1 620px; min-width: 0; }
.job-overview { flex: 1 1 320px; background: var(--paper); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.job-overview h2 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.job-overview dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.job-overview dt { font-size: 14px; color: var(--text); }
.job-overview dd { margin: 0; font-size: 17px; font-weight: 600; }
.job-overview .btn { justify-content: center; }

/* Application form dialog */
.apply { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 28px; padding: 0; color: var(--ink); overflow: auto; }
.apply::backdrop { background: rgba(0, 0, 0, 0.55); }
.apply__box { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.apply__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.apply__head h2 { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.3; }
.apply__close { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-input); background: #FFFFFF; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.apply__text { font-size: 15px; line-height: 1.6; color: var(--text); }
.apply__form { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1024px) {
  .jobs__inner { padding-bottom: 64px; }
  .benefits__inner { padding-top: 72px; padding-bottom: 72px; }
  .benefit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-details__inner { padding: 56px 24px 64px; gap: 32px; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .job-card__main { flex-basis: 340px; }
}

@media (max-width: 699px) {
  .careers-hero { top: 64px; }
  .careers-hero .page-hero__inner { padding: 28px 20px; gap: 16px; }
  .careers-hero.is-compact { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
  .careers-hero.is-compact .page-hero__inner { padding-top: 12px; padding-bottom: 12px; gap: 0; }
  .careers-hero.is-compact h1 { font-size: 22px; }

  .jobs__inner { padding: 56px 20px; gap: 24px; }
  .jobs__header { flex-wrap: nowrap; gap: 12px; }
  .jobs__heading { gap: 10px; }
  .role-count { font-size: 13px; flex: none; }
  .job-card { border: 0; border-radius: 22px; padding: 22px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .job-card__main { flex: none; }
  .job-card__chips { gap: 6px; }
  .job-card__chip { font-size: 12px; padding: 5px 10px; }
  .job-card h3 { font-size: 22px; line-height: 1.3; }
  .job-card__meta { flex-direction: column; gap: 8px; }
  .job-card__meta span { font-size: 14px; }
  .job-card__meta .icon { width: 16px; height: 16px; }
  .job-card .btn { justify-content: center; height: 52px; width: 100%; box-sizing: border-box; padding: 0; margin-top: 4px; }
  .jobs__cv { font-size: 14px; line-height: 1.6; }

  .benefits__inner { padding: 56px 20px; gap: 24px; }
  .benefit-cards { gap: 10px; }
  .benefit { border-radius: 18px; padding: 16px; gap: 8px; }
  .benefit__icon { width: 40px; height: 40px; border-radius: 12px; }
  .benefit__icon .icon { width: 22px; height: 22px; }
  .benefit h3 { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
  .benefit p { font-size: 13px; line-height: 1.5; }

  .job-hero__inner { padding: 40px 20px; gap: 16px; }
  .job-hero .btn { justify-content: center; height: 52px; width: 100%; box-sizing: border-box; padding: 0; }
  .job-details__inner { padding: 40px 20px 56px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .job-body, .job-overview { flex: none; }
  .job-overview { padding: 22px; }
}
