/* Careers section of index.html. Sizes, weights and colours reuse the home page theme in css/index.css. */
.career-hero {
  background: var(--bg-dark);
  padding: 110px 24px;
  text-align: center;
}

.career-hero .brand-slogan {
  color: var(--white);
  padding-top: 0;
}

.career-hero .lede {
  max-width: 700px;
  margin: 15px auto 30px;
}

.career-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--side-gutter);
  text-align: center;
}

.career-section .details-paragraph {
  margin-bottom: 30px;
}

/* index.css has a:visited { color: inherit }, which would turn a visited
   button white on the dark hero. Restate the button colours for links. */
.career-page a.brand-details-button {
  display: inline-block;
  color: #000;
}

.career-page a.brand-details-button:hover {
  color: #fff;
}

.career-job {
  border: 1px solid #e9e9ea;
  padding: 30px;
  margin-bottom: 20px;
  text-align: left;
}

.career-job__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}

.career-job__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

/* Open/close animates the row height from 0fr to 1fr; the inner div must clip, or the text shows while closed. */
.career-job__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.career-job.is-open .career-job__details {
  grid-template-rows: 1fr;
}

.career-job__details > div {
  overflow: hidden;
}

.career-job__body {
  border-top: 1px solid #e9e9ea;
  margin-top: 25px;
  padding-top: 25px;
  font-size: 16px;
  line-height: 26px;
  color: var(--gray-dark);
}

.career-job__body strong {
  font-weight: 700;
  color: #2e2e2e;
}

/* The Word files' four heading sizes: 24pt, 18pt, 13.5pt, and bold at body size. */
.career-job__body .career-doc__h1,
.career-job__body .career-doc__h2,
.career-job__body .career-doc__h3,
.career-job__body .career-doc__h4 {
  font-weight: 700;
  color: #2e2e2e;
}

.career-job__body .career-doc__h1 {
  font-size: 28px;
  line-height: 38px;
}

.career-job__body .career-doc__h2 {
  font-size: 22px;
  line-height: 32px;
  margin-bottom: 15px;
}

.career-job__body .career-doc__h3 {
  font-size: 18px;
  margin: 25px 0 8px;
}

.career-job__body .career-doc__h4 {
  margin: 15px 0 6px;
}

.career-job__body p {
  margin: 0 0 10px;
}

.career-job__body ul,
.career-job__body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.career-job__tag {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

.career-job__title {
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
  margin: 10px 0;
}

.career-empty {
  font-size: 14px;
  color: #6b6b6c;
}

.career-form__title {
  margin-top: 10px;
}

.career-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  max-width: 800px;
  margin: 30px auto 0;
  text-align: left;
}

.career-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
}

.career-form input[type="text"],
.career-form input[type="tel"],
.career-form input[type="email"],
.career-form textarea {
  font: inherit;
  font-weight: 400;
  color: #000;
  border: 1px solid #e9e9ea;
  padding: 12px 14px;
  outline: none;
}

.career-form input:focus,
.career-form textarea:focus {
  border-color: #000;
}

.career-form textarea {
  resize: vertical;
}

/* Same look as .brand-details-button in css/index.css; the browser's own file button ignores the page font. */
.career-form input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  padding: 8px 20px;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.career-form input[type="file"]::file-selector-button:hover {
  color: #fff;
  background-color: #000;
}

.career-form input[type="checkbox"] {
  accent-color: #000;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.career-form__wide {
  grid-column: 1 / -1;
}

.career-form__note {
  margin: 0;
  font-size: 14px;
  color: #6b6b6c;
}

.career-form .career-form__consent {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.career-form__actions {
  text-align: center;
}

/* Spam trap: bots fill it, people never see it. FormSubmit drops any submission where it has a value. */
.career-form__honey {
  display: none;
}

/* Popup shown after sending; same border, type and button as the job cards. */
.career-form__sent {
  margin: auto; /* the site's global reset sets margin 0, which pins a dialog to the top-left */
  max-width: 520px;
  width: calc(100% - 48px);
  padding: 40px 30px;
  border: 1px solid #e9e9ea;
  text-align: center;
  color: var(--gray-dark);
}

.career-form__sent::backdrop {
  background: rgba(30, 33, 36, 0.6); /* --bg-dark; custom properties do not reach ::backdrop in every browser */
}

.career-form__sent .career-form__sent-title {
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
  color: #2e2e2e;
  margin: 0 0 10px;
}

.career-form__sent p {
  margin: 0 0 25px;
}

.career-form__error {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 15px 20px;
  border: 1px solid #000;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .career-hero {
    padding: 70px 24px;
  }
}

@media (max-width: 767px) {
  .career-hero {
    padding: 50px 24px;
  }

  .career-job {
    padding: 24px;
  }

  .career-job__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .career-job__actions {
    flex-wrap: wrap;
  }

  /* minmax(0, …): a plain 1fr track will not shrink below the file input's natural width. */
  .career-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* career.html has no dark hero band under the fixed header, so the page itself clears it. */
.career-page--standalone {
  margin-top: 60px;
}
