/*------------------------------------*\

# GLOBAL VARIABLES

\*------------------------------------*/

:root {
  --color-primary: hsl(207 43% 27%);
  --color-secondary: hsl(194 56% 28%);
  --color-accent: hsl(337 75% 45%);
  --color-neutral: hsl(207 10% 35%);
  --color-table-header: hsl(218 25% 45%);
  --color-table-stripe: hsl(220 23% 95%);
}

/*------------------------------------*\

# COLORS

\*------------------------------------*/

.color-primary {
  color: var(--color-primary);
}
.color-secondary {
  color: var(--color-secondary);
}
.color-accent {
  color: var(--color-accent);
}
.color-neutral {
  color: var(--color-neutral);
}

/*------------------------------------*\

# HERO

\*------------------------------------*/

.hero {
  background-color: var(--color-accent);
  display: grid;
  min-height: max(300px, 50vh);
}

.hero > * {
  min-height: 0;
  min-width: 0;
}

.hero-content {
  color: #fff;
  place-self: center;
  padding: var(--space-5);
  max-width: 50ch;
}

.hero-image {
  background-image: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-bottom: var(--space-5);
}

.hero-form {
  background: hsl(0 0% 100% / 90%);
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px hsl(0 0% 0% / 25%);
  padding: var(--space-3) var(--space-5) var(--space-5);
  display: grid;
  margin: auto;
  overflow-x: auto;
  max-inline-size: min(100% - 3rem, 45ch);
}

.hero-form :is(label, button) {
  margin-top: var(--space-3);
}

@media (min-width: 65em) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    place-self: center end;
  }

  .hero-image {
    background-image: url('/careers/assets/images/hero.webp');
    display: grid;
    padding: 0 var(--space-7);
  }
}

@media (min-width: 75em) {
  .hero-form {
    margin: unset;
    place-self: center start;
  }
}

@media print {
  .hero {
    display: block;
    min-height: auto;
  }
  .hero-content {
    margin-inline: auto;
    max-width: min(100% - 3rem,var(--width-container, 1240px));
    padding-inline: 0;
  }
  .hero-image {
    display: none;
  }
}

/*------------------------------------*\

# TABLE

\*------------------------------------*/

thead {
  background-color: var(--color-table-header);
  color: #fff;
}

tbody tr:nth-child(2n) {
  background-color: var(--color-table-stripe);
}

.table-stack caption a {
  display: inline-block;
  padding-block-end: 0.33rem;
}

.table-stack tbody a {
  display: block;
  padding-block: 0.33rem;
  text-decoration: none;
}

.table-stack thead {
  display: none;
}

.table-stack thead th {
  text-align: left;
}

.table-stack tbody td {
  display: grid;
  gap: 0 1rem;
  vertical-align: top;
}

.table-stack tbody td:before {
  content: attr(data-header);
  font-weight: 600;
}

@media (min-width: 45em) {
  .table-stack tbody a {
    padding-block: revert;
  }
  .table-stack tbody td {
    grid-template-columns: 0.75fr 1fr;
  }
}

@media (min-width: 65em) {
  .table-stack thead {
    display: table-header-group;
  }

  .table-stack tbody td {
    display: table-cell;
  }

  .table-stack tbody td:before {
    display: none;
  }
}

.table-labels {
  background-color: var(--color-table-header);
}

.table-labels ol {
  padding-left: 1.75rem;
}

.header-divider {
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-gap: 1rem;
  text-align: center;
}

.header-divider::before,
.header-divider::after {
  content: '';
  align-self: center;
  border-top: 2px solid currentColor;
}
.link-return {
  background-color: #000;
  color: #fff;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 1rem;
}
.link-return:focus {
  color: #f7ffc2;
  outline: none;
}
@media (hover: hover) {
  .table-stack a:hover {
    text-decoration: underline;
  }
  .link-return:hover {
    color: #f7ffc2;
  }
}
