/* jobs pages: overview, listing, application form */

.lm-jobs {
  --lm-blue: #003b91;
  --lm-navy: #001e49;
  --lm-ink: #1c2433;
  --lm-muted: #5d6778;
  --lm-line: #e3e8f0;
  --lm-soft: #f4f7fb;
  color: var(--lm-ink);
  padding: 56px 0 80px;
}

#pageTitle .lm-jobs-eyebrow {
  display: block;
  margin: 26px 0 -18px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#pageTitle .lm-jobs-header-sub {
  margin: -14px 0 24px;
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  line-height: 1.5;
}

#pageTitle .lm-jobs-header-badges { margin: -10px 0 26px; }

.lm-jobs a:not(.btn) { color: var(--lm-blue); }
.lm-jobs a:not(.btn):hover { color: var(--lm-navy); text-decoration: underline; }

/* badges */
.lm-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.lm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--lm-blue);
  background: #e8eef8;
  white-space: nowrap;
}
.lm-badge .fa { opacity: .75; }
#pageTitle .lm-badge { color: #fff; background: rgba(255, 255, 255, .14); }

/* overview */
.lm-jobs-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  color: var(--lm-navy);
}

.lm-jobs-section-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--lm-navy);
}

.lm-jobs-roles-note { margin: 0 0 24px; color: var(--lm-muted); }
.lm-jobs-roles-footer { margin: 8px 0 0; color: var(--lm-muted); font-size: 15px; }

.lm-job-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.lm-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid var(--lm-line);
  border-top: 4px solid var(--lm-blue);
  transition: box-shadow .2s, transform .2s;
}
.lm-job-card:hover { box-shadow: 0 10px 30px rgba(0, 30, 73, .12); transform: translateY(-2px); }
.lm-job-card-division { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lm-muted); }
.lm-job-card h3 { margin: 8px 0 2px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.lm-jobs .lm-job-card h3 a { color: var(--lm-navy); text-decoration: none; }
/* whole card clickable */
.lm-job-card h3 a::after { content: ""; position: absolute; inset: 0; }
.lm-job-card-subtitle { margin: 0 0 12px; color: var(--lm-blue); font-weight: 400; }
.lm-job-card-summary { flex: 1; margin: 0 0 18px; color: var(--lm-muted); font-size: 15px; line-height: 1.55; }
.lm-job-card .lm-badges { margin-bottom: 18px; }
.lm-job-card-more { font-weight: 500; color: var(--lm-blue); }
.lm-job-card:hover .lm-job-card-more .fa { transform: translateX(3px); }
.lm-job-card-more .fa { transition: transform .2s; margin-left: 4px; }

.lm-jobs-empty { padding: 28px; background: var(--lm-soft); border: 1px solid var(--lm-line); }
.lm-jobs-empty p { margin: 0; }

.lm-jobs-culture { max-width: 760px; margin: 64px auto 0; }

.lm-jobs-cta {
  margin-top: 56px;
  padding: 32px;
  text-align: center;
  color: #fff;
  background: var(--lm-navy);
}
.lm-jobs-cta h3 { margin: 0 0 18px; color: #fff; font-size: 22px; }
.lm-jobs-cta .btn { margin: 4px; }

/* long-form copy */
.lm-prose { font-size: 17px; line-height: 1.7; }
.lm-prose h2 { margin: 40px 0 14px; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--lm-navy); }
.lm-prose > h2:first-child { margin-top: 0; }
.lm-prose h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; color: var(--lm-navy); }
.lm-prose p { margin: 0 0 16px; }
.lm-prose strong { font-weight: 500; color: var(--lm-navy); }
.lm-prose ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.lm-prose ul li { position: relative; margin-bottom: 10px; padding-left: 24px; }
.lm-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--lm-blue);
}

/* listing */
.lm-job-aside { position: sticky; top: 100px; }
.lm-job-aside-box { padding: 24px; background: var(--lm-soft); border: 1px solid var(--lm-line); }
.lm-job-aside-box + .lm-job-aside-box { margin-top: 16px; background: #fff; }
.lm-job-aside h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--lm-muted); }
.lm-job-facts { margin: 0 0 20px; padding: 0; list-style: none; }
.lm-job-facts li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--lm-line); font-size: 15px; }
.lm-job-facts li:last-child { border-bottom: none; }
.lm-job-facts .fa { width: 16px; margin-top: 4px; color: var(--lm-blue); text-align: center; }
.lm-job-aside p { margin: 0 0 8px; font-size: 15px; color: var(--lm-muted); }
.lm-job-aside .lm-subject { display: block; margin-top: 4px; color: var(--lm-ink); font-weight: 400; }

.lm-job-apply-bottom { margin-top: 40px; padding: 28px; text-align: center; background: var(--lm-soft); border: 1px solid var(--lm-line); }
.lm-job-apply-bottom p { margin: 0 0 16px; color: var(--lm-muted); }

.lm-jobs .btn-lm-apply,
.lm-jobs .btn-lm-apply:link,
.lm-jobs .btn-lm-apply:visited {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--lm-blue);
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s;
}
.lm-jobs .btn-lm-apply:hover,
.lm-jobs .btn-lm-apply:focus { color: #fff; background: var(--lm-navy); text-decoration: none; }
.lm-jobs .btn-lm-apply.btn-block { display: block; width: 100%; text-align: center; }
.lm-jobs .btn-lm-ghost,
.lm-jobs .btn-lm-ghost:link,
.lm-jobs .btn-lm-ghost:visited { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .5); }
.lm-jobs .btn-lm-ghost:hover { background: rgba(255, 255, 255, .12); }

.lm-back-link { display: inline-block; margin-bottom: 24px; font-size: 15px; }

.lm-mobile-apply { display: none; margin-bottom: 32px; }

@media (max-width: 991px) {
  .lm-job-aside { position: static; margin-top: 40px; }
  .lm-mobile-apply { display: block; }
  #pageTitle .lm-jobs-eyebrow { margin-bottom: -10px; }
}

/* application form */
.lm-apply { max-width: 820px; margin: 0 auto; }
.lm-apply-intro { margin-bottom: 32px; color: var(--lm-muted); }
.lm-apply fieldset { margin: 0 0 36px; padding: 0; border: none; }
.lm-apply legend {
  width: 100%;
  margin: 0 0 20px;
  padding-bottom: 10px;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lm-navy);
  border-bottom: 2px solid var(--lm-line);
}
.lm-apply .form-group { margin-bottom: 22px; }
.lm-apply label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--lm-ink); }
.lm-apply label .lm-optional { font-weight: 300; color: var(--lm-muted); }
.lm-apply label .lm-required { color: #c62828; }
.lm-apply .form-control {
  height: auto;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lm-ink);
  border: 1px solid #cfd6e2;
  border-radius: 0;
  box-shadow: none;
}
.lm-apply .form-control:focus { border-color: var(--lm-blue); box-shadow: 0 0 0 3px rgba(0, 59, 145, .12); }
.lm-apply textarea.form-control { min-height: 140px; resize: vertical; }
.lm-apply .lm-field-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--lm-muted); }
.lm-apply .lm-field-hint .lm-counter { white-space: nowrap; }
.lm-apply .lm-field-hint .lm-counter.is-short { color: #b26a00; }
.lm-apply .has-error .form-control { border-color: #c62828; }
.lm-apply .lm-field-error { display: none; margin-top: 6px; font-size: 14px; color: #c62828; }
.lm-apply .has-error .lm-field-error { display: block; }
.lm-apply .lm-input-group { display: flex; align-items: stretch; }
.lm-apply .lm-input-group .form-control { flex: 1; }
.lm-apply .lm-input-addon { display: flex; align-items: center; padding: 0 14px; color: var(--lm-muted); background: var(--lm-soft); border: 1px solid #cfd6e2; border-left: none; }
.lm-apply .lm-links .form-control + .form-control { margin-top: 8px; }

.lm-dropzone {
  display: block;
  padding: 32px 20px;
  text-align: center;
  color: var(--lm-muted);
  background: var(--lm-soft);
  border: 2px dashed #b8c3d6;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lm-dropzone:hover,
.lm-dropzone.dragover,
.lm-file-input:focus-visible + .lm-dropzone { background: #e8eef8; border-color: var(--lm-blue); }
.lm-file-input:focus-visible + .lm-dropzone { outline: 3px solid var(--lm-blue); outline-offset: 2px; }
.lm-dropzone .fa { display: block; margin-bottom: 8px; font-size: 28px; color: var(--lm-blue); }
.lm-apply label.lm-dropzone { font-weight: 400; }

.lm-files { margin: 12px 0 0; padding: 0; list-style: none; }
.lm-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--lm-line); border-top: none; font-size: 15px; }
.lm-file:first-child { border-top: 1px solid var(--lm-line); }
.lm-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-file-size { color: var(--lm-muted); font-size: 13px; white-space: nowrap; }
.lm-file-state { white-space: nowrap; font-size: 13px; }
.lm-file-state.is-done { color: #2e7d32; }
.lm-file-state.is-failed { color: #c62828; }
.lm-file-progress { position: relative; width: 90px; height: 6px; background: var(--lm-line); }
.lm-file-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lm-blue); transition: width .2s; }
.lm-file button { padding: 0 4px; color: var(--lm-muted); background: none; border: none; font-size: 13px; }
.lm-file button:hover { color: var(--lm-ink); text-decoration: underline; }
.lm-file-error { width: 100%; color: #c62828; font-size: 13px; }

.lm-consent { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 24px; }
.lm-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; cursor: pointer; }
.lm-apply .lm-consent label { margin: 0; font-weight: 300; cursor: pointer; }

.lm-form-alert { display: none; margin-bottom: 20px; padding: 14px 16px; color: #8a1c1c; background: #fdecea; border-left: 4px solid #c62828; }
.lm-form-alert.is-visible { display: block; }
.lm-form-alert .btn { margin-top: 10px; }
.lm-autosave-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--lm-muted); }

.lm-apply .btn-lm-apply .spinner-border { border-top-color: #fff; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* captcha + success */
.lm-card-center { max-width: 620px; margin: 0 auto; padding: 40px 32px; text-align: center; background: var(--lm-soft); border: 1px solid var(--lm-line); }
.lm-card-center h2 { margin: 0 0 12px; font-size: 24px; color: var(--lm-navy); }
.lm-card-center p { color: var(--lm-muted); }
.lm-card-center .g-recaptcha { display: inline-block; margin-top: 12px; }
.lm-card-center .lm-form-alert { margin: 16px 0 0; text-align: left; }
.lm-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; font-size: 30px; color: #fff; background: #2e7d32; border-radius: 50%; }
.lm-card-center .lm-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lm-jobs .btn-lm-outline,
.lm-jobs .btn-lm-outline:link,
.lm-jobs .btn-lm-outline:visited { color: var(--lm-blue); background: transparent; border: 1px solid var(--lm-blue); }
.lm-jobs .btn-lm-outline:hover { color: #fff; background: var(--lm-blue); }

.lm-notice { margin-bottom: 32px; padding: 14px 18px; color: #6a4a00; background: #fff6e0; border-left: 4px solid #f0b400; }

/* contact form (contact page + domain-for-sale pages) */
.lm-contact-aside { margin-bottom: 32px; }
.lm-contact-aside h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--lm-navy); }
.lm-contact-aside h3 { margin: 28px 0 6px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--lm-muted); }
.lm-contact-aside p { margin: 0; color: var(--lm-ink); line-height: 1.6; }
.lm-contact-aside .fa { margin-right: 6px; color: var(--lm-blue); }
.lm-contact { max-width: none; }
.lm-contact-title { margin: 0 0 20px; font-size: 22px; font-weight: 700; color: var(--lm-navy); }
.lm-apply .lm-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--lm-ink); }
.lm-privacy-note { margin: 0 0 16px; font-size: 14px; color: var(--lm-muted); }
.lm-form-alert p { margin: 0 0 6px; font-weight: 500; }
.lm-form-alert ul { margin: 0; padding-left: 20px; }
.lm-jobs .lm-form-alert a:not(.btn) { color: #8a1c1c; text-decoration: underline; }
.lm-contact .g-recaptcha { display: inline-block; }
.lm-contact .lm-card-center { max-width: none; }
/* honeypot: off screen for people, still in the markup for bots */
.lm-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* links inside running text need more than colour to stand out (WCAG 1.4.1) */
.lm-jobs p a:not(.btn),
.lm-jobs li a:not(.btn),
.lm-jobs label a,
.lm-prose a { text-decoration: underline; text-underline-offset: 2px; }

/* pdf download next to the apply buttons */
.lm-jobs .lm-pdf-btn { margin-top: 10px; }
.lm-jobs .lm-pdf-btn .fa { margin-right: 6px; }
.lm-job-apply-bottom .lm-pdf-btn { margin: 0 0 0 8px; }
@media (max-width: 480px) {
  .lm-job-apply-bottom .btn { display: block; width: 100%; }
  .lm-job-apply-bottom .lm-pdf-btn { margin: 10px 0 0; }
}

/* projects page */
.lm-project + .lm-project { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--lm-line); }
.lm-project-category { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lm-blue); }
.lm-project-title { margin: 6px 0 8px; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--lm-navy); }
.lm-project-tagline { margin: 0 0 28px; font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--lm-blue); }
.lm-project-description h3 { margin-top: 32px; }
.lm-project-jobs { text-align: left; }
.lm-project-jobs h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--lm-navy); }
.lm-project-logo { margin-bottom: 16px; padding: 12px; background: #fff; border: 1px solid var(--lm-line); text-align: center; }
.lm-project-logo img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.lm-project-facts { margin: 0 0 20px; }
.lm-project-facts > div { padding: 9px 0; border-bottom: 1px solid var(--lm-line); }
.lm-project-facts > div:last-child { border-bottom: none; }
.lm-project-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--lm-muted); }
.lm-project-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--lm-ink); }
.lm-jobs .btn-lm-apply .fa-external-link { margin-left: 6px; font-size: 13px; }
@media (max-width: 991px) {
  .lm-project .lm-job-aside { margin-top: 32px; }
  .lm-project-logo img { max-width: 200px; }
}

/* home page */
.lm-home-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.lm-home-intro h2 { margin: 0 0 14px; font-size: 26px; font-weight: 700; color: var(--lm-navy); }
.lm-home-intro p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--lm-ink); }
.lm-home-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.lm-home-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 360px;
  padding: 28px 28px 26px;
  background: #fff;
  border: 1px solid var(--lm-line);
  border-top: 4px solid var(--lm-blue);
}
.lm-home-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lm-muted); }
.lm-home-card h2 { margin: 8px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--lm-navy); }
.lm-home-project-head { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.lm-home-project-head img { flex: none; width: 72px; height: auto; border: 1px solid var(--lm-line); }
.lm-home-project-head h2 { margin: 0 0 2px; }
.lm-home-tagline { margin: 0; color: var(--lm-blue); }
.lm-home-text { margin: 16px 0 0; color: var(--lm-ink); line-height: 1.65; }
.lm-home-jobs { margin: 16px 0 0; padding: 0; list-style: none; }
.lm-home-jobs li { border-top: 1px solid var(--lm-line); }
.lm-home-jobs li:last-child { border-bottom: 1px solid var(--lm-line); }
.lm-jobs .lm-home-jobs li a:not(.btn) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 11px 0; text-decoration: none; }
.lm-home-job-title { font-weight: 600; color: var(--lm-navy); }
.lm-jobs .lm-home-jobs a:hover .lm-home-job-title,
.lm-jobs .lm-home-jobs a:focus-visible .lm-home-job-title { color: var(--lm-blue); text-decoration: underline; }
.lm-home-job-meta { font-size: 14px; color: var(--lm-muted); }
.lm-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.lm-jobs .lm-home-link { font-weight: 600; }
.lm-home-contact { margin-top: 48px; }
.lm-home-contact p { margin: -6px 0 18px; color: rgba(255, 255, 255, .85); }
.lm-jobs-cta h2 { margin: 0 0 12px; color: #fff; font-size: 22px; font-weight: 700; }

/* responsive fixes */
.lm-badge { white-space: normal; }
.lm-jobs-cta .btn { white-space: normal; }
.lm-apply .lm-consent input { width: 24px; height: 24px; margin-top: 1px; }
@media (max-width: 767px) {
  .lm-jobs { padding: 36px 0 56px; }
  .lm-jobs-lead { font-size: 19px; margin-bottom: 32px; }
  .lm-jobs-cta { padding: 24px 18px; }
  .lm-jobs-cta .btn { display: block; width: 100%; margin: 0 0 10px; }
  .lm-jobs-cta .btn:last-child { margin-bottom: 0; }
  .lm-card-center { padding: 28px 18px; }
  .lm-home-card { padding: 22px 18px; }
  .lm-project-title { font-size: 28px; }
  .lm-prose { font-size: 16px; }
  .lm-prose h2 { font-size: 21px; }
}
