/* Careers page: photo header, search box, optional job-type filter and this location's open jobs,
   in this site's own colours (blue #1D698B, mint #D3F5DF, light blue #ebf3f7) and font (Gilroy). */

/* The header: the words on deep blue, the site's photo on the right fading softly into it. The site
   menu floats over the top of it in white, as it does over the photo banners on the other pages. */
.careers-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 640px; padding: 170px 0 4rem; background: #154f69; color: #fff; text-align: left; }
.careers-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52%; background-repeat: no-repeat; background-size: cover; background-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.careers-hero .container { position: relative; z-index: 1; width: 100%; padding: 0 2rem; }
.careers-eyebrow { display: inline-block; margin-bottom: 1rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.careers-hero-title { margin: 0 0 1rem; color: #fff; font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.05; }
.careers-hero-lead { max-width: 34rem; margin: 0 0 2rem; color: rgba(255, 255, 255, .92); font-size: 1.35rem; line-height: 1.5; }
.careers-hero-cta { display: inline-flex; align-items: center; gap: .75rem; padding: 1rem 2rem; border-radius: 999px; background: #fff; color: #1D698B; font-weight: 600; font-size: 1.1rem; line-height: 1.3; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.careers-hero-cta:hover, .careers-hero-cta:focus-visible { background: #D3F5DF; color: #154f69; text-decoration: none; }
.careers-hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.careers-hero-cta small { color: #3d87a8; font-weight: 600; font-size: .95rem; }
.careers-hero-cta small:empty { display: none; }
.careers-hiring { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; max-width: 44rem; margin-top: 2rem; }
.careers-hiring:has(.careers-roles:empty) { display: none; }
.careers-hiring-label { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.careers-roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.careers-role { padding: .45rem 1.05rem; border: 2px solid rgba(255, 255, 255, .8); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.4; cursor: pointer; transition: background-color .2s, color .2s; }
.careers-role:hover, .careers-role:focus-visible { background: #fff; color: #1D698B; outline: none; }

/* The search. */
.careers-jobs { padding: 3rem 0 4rem; background: #fff; text-align: left; }
.careers-jobs .container { padding: 0 2rem; }
.careers-search { margin: 0 0 1.5rem; padding: 1.5rem; border-radius: 15px; background: #ebf3f7; scroll-margin-top: 130px; }
.careers-search-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
.careers-label { display: block; margin: 0; }
.careers-label > span { display: block; margin-bottom: .4rem; color: #2b3a42; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.careers-label small { color: #5a6570; font-weight: 300; font-size: .9rem; }
.careers-search .form-control { height: auto; padding: .6rem 1rem; border-color: #c4d7e0; border-radius: 10px; color: #2b3a42; font-family: inherit; font-size: 1.05rem; line-height: 1.5; }
.careers-search .form-control:focus { border-color: #1D698B; box-shadow: 0 0 0 .2rem rgba(29, 105, 139, .25); }
.careers-search-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; }
.careers-count { margin: 0; color: #2b3a42; font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.careers-clear { padding: 0; border: 0; background: none; color: #1D698B; font-family: inherit; font-weight: 600; font-size: 1rem; text-decoration: underline; cursor: pointer; }
.careers-clear[hidden] { display: none; }

/* The jobs. */
.careers-list { margin: 0; padding: 0; list-style: none; }
.careers-job { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #dbe7ed; }
.careers-job:first-child { border-top: 1px solid #dbe7ed; }
.careers-job-info { min-width: 0; }
.careers-job-title { margin: 0 0 .25rem; color: #23313a; font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.careers-job-meta, .careers-job-place { margin: 0; color: #5a6570; font-size: 1rem; line-height: 1.5; }
.careers-job-meta { color: #1D698B; font-weight: 600; }
.careers-apply { display: inline-block; flex: 0 0 auto; padding: .7rem 1.6rem; border-radius: 15px; background: #1D698B; color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.4; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s; }
.careers-apply:hover, .careers-apply:focus-visible { background: #D3F5DF; color: #1D698B; text-decoration: none; }
.careers-apply:focus-visible, .careers-clear:focus-visible { outline: 3px solid #1D698B; outline-offset: 3px; }
.careers-fallback { padding: 1.5rem; border-radius: 15px; background: #ebf3f7; }
.careers-fallback[hidden] { display: none; }
.careers-fallback p { margin: 0 0 1rem; color: #2b3a42; font-size: 1.1rem; line-height: 1.5; }

@media (max-width: 991.98px) {
  .careers-hero { min-height: 0; padding-top: 150px; }
  .careers-hero::before { left: 0; width: auto; -webkit-mask-image: none; mask-image: none; }
  .careers-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 79, 105, .6) 0%, rgba(21, 79, 105, .93) 55%); }
}
@media (max-width: 575.98px) {
  .careers-hero { padding: 140px 0 2.5rem; }
  .careers-hero .container, .careers-jobs .container { padding: 0 1rem; }
  .careers-hero-lead { font-size: 1.15rem; }
  .careers-hero-cta { width: 100%; justify-content: center; }
  .careers-jobs { padding: 2rem 0 3rem; }
  .careers-search { padding: 1rem; }
  .careers-search-row { grid-template-columns: minmax(0, 1fr); }
  .careers-job { flex-direction: column; align-items: flex-start; }
  .careers-apply { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .careers-role, .careers-apply { transition: none; } }

/* This site's photo. */
.careers-hero::before { background-image: url(../images/careers-photo.jpg); background-position: 55% 40%; }
