.jobs-page [hidden] {
  display: none !important;
}

.jobs-page .hc-nav__links a.is-active::after {
  right: 0;
}

.jobs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 4.4vw, 4.75rem) 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(8, 13, 16, .05) 50%, transparent calc(50% + 1px)),
    var(--hc-paper);
}

.jobs-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(34vw, 31rem);
  height: 1px;
  background: var(--hc-teal);
  content: "";
}

.jobs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .62fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.jobs-hero__copy {
  padding-left: clamp(0rem, 3vw, 3.75rem);
}

.jobs-hero__copy h1 {
  max-width: 48rem;
  margin: 0 0 1.4rem;
  font-family: var(--hc-serif);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .8;
}

.jobs-hero__copy h1 em {
  color: var(--hc-teal);
  font-weight: 400;
}

.jobs-hero__copy > p:not(.hc-kicker) {
  max-width: 42rem;
  margin-bottom: 1.65rem;
  color: #39484f;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
}

.jobs-hero__visual {
  position: relative;
  width: min(100%, 28rem);
  margin: 0;
  padding: 0 0 2.75rem 1.5rem;
  justify-self: end;
}

.jobs-hero__image {
  position: relative;
  height: clamp(20rem, 29vw, 27rem);
  overflow: hidden;
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
  background: var(--hc-stone);
}

.jobs-hero__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 13, 16, .16));
  content: "";
}

.jobs-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}

.jobs-hero__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 4rem;
  align-items: center;
  color: var(--hc-white);
  background: rgba(8, 13, 16, .96);
  font-size: .66rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.jobs-hero__visual figcaption :not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.jobs-vacancies {
  padding-block: clamp(3.75rem, 6vw, 6.5rem);
  background: var(--hc-white);
}

.jobs-vacancies__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .55fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: 2rem;
}

.jobs-vacancies__head h2 {
  margin: 0;
  font-family: var(--hc-serif);
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.jobs-vacancies__head > p {
  margin: 0 0 .45rem;
  color: #53636a;
}

.jobs-filters {
  display: grid;
  grid-template-columns: minmax(13rem, 1.3fr) repeat(3, minmax(10rem, 1fr)) auto;
  align-items: end;
  gap: .65rem;
  margin-bottom: .9rem;
  padding: .85rem;
  color: var(--hc-white);
  background: var(--hc-ink-soft);
}

.jobs-filters label {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.jobs-filters label > span {
  color: rgba(255, 255, 255, .68);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jobs-filters input,
.jobs-filters select {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  padding: .5rem .7rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 0;
  color: var(--hc-white);
  background: #1d292e;
}

.jobs-filters input::placeholder {
  color: rgba(255, 255, 255, .48);
}

.jobs-filters select option {
  color: var(--hc-ink);
  background: var(--hc-white);
}

.jobs-filters__clear {
  min-height: 2.65rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(255, 255, 255, .52);
  color: var(--hc-white);
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.jobs-filters__clear:hover {
  color: var(--hc-ink);
  background: var(--hc-cyan);
}

.jobs-results-status {
  margin: 0 0 1rem;
  color: #68767c;
  font-size: .78rem;
}

.jobs-feed-status {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 8rem;
  padding: 1.5rem;
  border-top: 1px solid var(--hc-line);
  border-bottom: 1px solid var(--hc-line);
  color: #526169;
}

.jobs-feed-status p {
  margin: 0;
}

.jobs-feed-status__mark {
  width: .8rem;
  height: .8rem;
  border: 2px solid rgba(41, 189, 211, .28);
  border-top-color: var(--hc-teal);
  border-radius: 50%;
  animation: jobs-spin .8s linear infinite;
}

@keyframes jobs-spin {
  to { transform: rotate(360deg); }
}

.jobs-vacancy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hc-ink);
  border-left: 1px solid var(--hc-line);
}

.jobs-vacancy-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  min-width: 0;
  padding: clamp(1.35rem, 2.1vw, 1.9rem);
  border-right: 1px solid var(--hc-line);
  border-bottom: 1px solid var(--hc-line);
  background: var(--hc-white);
}

.jobs-vacancy-card:nth-child(4n + 2),
.jobs-vacancy-card:nth-child(4n + 3) {
  background: #f4f6f6;
}

.jobs-vacancy-card__label {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 .85rem;
  padding: .3rem .5rem;
  border: 1px solid var(--hc-teal);
  color: #147e8f;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.jobs-vacancy-card h3 {
  min-width: 0;
  margin: 0;
  font-family: var(--hc-serif);
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.jobs-vacancy-card__location {
  align-self: start;
  margin: .18rem 0 0 1.2rem;
  color: #526269;
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}

.jobs-vacancy-card__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 .85rem;
  border-top: 1px solid var(--hc-line);
  border-left: 1px solid var(--hc-line);
}

.jobs-vacancy-card__meta div {
  min-width: 0;
  padding: .55rem .7rem;
  border-right: 1px solid var(--hc-line);
  border-bottom: 1px solid var(--hc-line);
}

.jobs-vacancy-card__meta dt {
  margin-bottom: .18rem;
  color: #6a787e;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jobs-vacancy-card__meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .85rem;
  font-weight: 700;
}

.jobs-vacancy-card__summary {
  grid-column: 1 / -1;
  max-width: 42rem;
  margin: 0 0 .78rem;
  color: #526169;
  font-size: .9rem;
}

.jobs-vacancy-card__action {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding-block: .35rem;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}

.jobs-vacancy-card__action:hover {
  color: #147e8f;
}

.jobs-state {
  padding: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--hc-ink);
  border-bottom: 1px solid var(--hc-line);
  background: #f5f7f7;
}

.jobs-state h3 {
  max-width: 38rem;
  margin: 0 0 1rem;
  font-family: var(--hc-serif);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.jobs-state > p:not(.hc-kicker) {
  max-width: 52rem;
  color: #4d5c63;
}

.jobs-state .hc-actions {
  margin-top: 1.5rem;
}

.jobs-state--failure {
  border-top-color: var(--hc-teal);
}

.jobs-filter-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  border: 1px solid var(--hc-line);
  color: #526169;
  text-align: center;
}

.jobs-types {
  padding-block: clamp(2.9rem, 4.7vw, 4.75rem);
  background: var(--hc-paper);
}

.jobs-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .5fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.jobs-section-head .hc-kicker {
  grid-column: 1 / -1;
  margin-bottom: -.5rem;
}

.jobs-section-head h2 {
  margin: 0;
  font-family: var(--hc-serif);
  font-size: clamp(2.65rem, 4.25vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.jobs-section-head > p:last-child {
  margin: 0;
  color: #4c5b62;
}

.jobs-types__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hc-ink);
}

.jobs-types__list article {
  min-width: 0;
  padding: clamp(1.75rem, 3vw, 3rem);
  border-right: 1px solid var(--hc-line);
}

.jobs-types__list article:first-child {
  border-left: 1px solid var(--hc-line);
}

.jobs-types__list h3 {
  margin-bottom: 1rem;
  font-family: var(--hc-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.jobs-types__list p {
  margin: 0;
  color: #526169;
}

.jobs-registration {
  padding-block: clamp(3.5rem, 5.5vw, 5.5rem);
  color: var(--hc-white);
  background: var(--hc-ink);
}

.jobs-registration__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
}

.jobs-registration h2 {
  margin: 0;
  font-family: var(--hc-serif);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .92;
}

.jobs-registration__grid > div:last-child > p {
  max-width: 39rem;
  color: rgba(255, 255, 255, .72);
}

.jobs-registration .hc-actions {
  margin-top: 1.5rem;
}

.jobs-link--light {
  color: var(--hc-white);
}

@media (max-width: 1120px) {
  .jobs-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-filters__clear {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .jobs-page .hc-nav__links a.is-active {
    color: var(--hc-white);
    box-shadow: inset 2px 0 0 var(--hc-cyan);
  }

  .jobs-hero {
    background: var(--hc-paper);
  }

  .jobs-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr);
    gap: 2rem;
  }

  .jobs-hero__copy {
    padding-left: 0;
  }

  .jobs-hero__visual {
    padding-left: 0;
  }

  .jobs-vacancies__head,
  .jobs-section-head,
  .jobs-registration__grid {
    grid-template-columns: 1fr;
  }

  .jobs-section-head .hc-kicker {
    grid-column: 1;
    margin-bottom: 0;
  }

  .jobs-vacancy-grid {
    grid-template-columns: 1fr;
  }

  .jobs-vacancy-card:nth-child(4n + 2),
  .jobs-vacancy-card:nth-child(4n + 3) {
    background: var(--hc-white);
  }

  .jobs-vacancy-card:nth-child(even) {
    background: #f4f6f6;
  }

  .jobs-types__list {
    grid-template-columns: 1fr;
  }

  .jobs-types__list article {
    border-bottom: 1px solid var(--hc-line);
    border-left: 1px solid var(--hc-line);
  }
}

@media (max-width: 600px) {
  .jobs-hero {
    padding: 2.35rem 0 3rem;
  }

  .jobs-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .jobs-hero__copy h1 {
    font-size: clamp(3.75rem, 19vw, 5rem);
  }

  .jobs-hero__copy .hc-button {
    width: 100%;
  }

  .jobs-hero__visual {
    display: none;
  }

  .jobs-vacancies {
    padding-block: 3.5rem;
  }

  .jobs-filters {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .jobs-filters__clear {
    width: 100%;
  }

  .jobs-vacancy-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .jobs-vacancy-card__location {
    margin: .55rem 0 0;
    text-align: left;
  }

  .jobs-vacancy-card__meta {
    grid-template-columns: 1fr;
  }

  .jobs-types__list article {
    padding: 1.65rem 1.5rem;
  }

  .jobs-registration__grid {
    gap: 1.5rem;
  }

  .jobs-registration .hc-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-registration .hc-button {
    width: 100%;
  }

  .jobs-registration .hc-text-link {
    align-self: flex-start;
  }

  .jobs-state {
    padding: 2rem 1.25rem;
  }

  .jobs-state .hc-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-state .hc-button {
    width: 100%;
  }

  .jobs-state .hc-text-link {
    align-self: flex-start;
  }
}

@media (max-width: 360px) {
  .jobs-hero__copy h1 {
    font-size: 3.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jobs-page *, .jobs-page *::before, .jobs-page *::after {
    scroll-behavior: auto !important;
  }

  .jobs-feed-status__mark {
    animation: none;
  }
}
