/* Careers page: search box, optional filters and the list of open jobs, in Brookshire's own colours
   (teal #4E9E8F, blue #0083A9) and fonts (Mulish, Bitter for headings). */

.careers-search { margin: 0 0 1.5rem; padding: 1.5rem; border-radius: 14px; background: #f3f8f7; }
.careers-search-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
.careers-label { display: block; margin: 0; }
.careers-label > span { display: block; margin-bottom: .4rem; color: #212529; font-weight: 700; font-size: 1rem; }
.careers-label small { color: #5a6570; font-weight: 400; font-size: .9rem; }
.careers-search .form-control, .careers-search .form-select { border-color: #c9d6d3; border-radius: 10px; font-size: 1.05rem; }
.careers-search .form-control:focus, .careers-search .form-select:focus { border-color: #4E9E8F; box-shadow: 0 0 0 .2rem rgba(78, 158, 143, .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: #212529; font-size: 1.1rem; font-weight: 600; }
.careers-clear, .careers-widen { padding: 0; border: 0; background: none; color: #0083A9; font-weight: 700; text-decoration: underline; cursor: pointer; }
.careers-clear[hidden] { display: none; }
.careers-widen { font-size: 1rem; margin-left: .25rem; }

.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 #e3ebe9; }
.careers-job:first-child { border-top: 1px solid #e3ebe9; }
.careers-job-info { min-width: 0; }
.careers-job-title { margin: 0 0 .25rem; color: #212529; font-family: Bitter, serif; font-size: 1.35rem; font-weight: 700; 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: #2f6f63; font-weight: 600; }

.careers-apply { display: inline-block; flex: 0 0 auto; padding: .7rem 1.6rem; border-radius: 999px; background: #4E9E8F; color: #fff; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: background-color .2s; }
.careers-apply:hover, .careers-apply:focus-visible { background: #0083A9; color: #fff; }
.careers-apply:focus-visible, .careers-clear:focus-visible, .careers-widen:focus-visible { outline: 3px solid #0083A9; outline-offset: 3px; }

.careers-fallback { padding: 1.5rem; border-radius: 14px; background: #f3f8f7; }
.careers-fallback[hidden] { display: none; }
.careers-fallback p { margin: 0 0 1rem; font-size: 1.1rem; }
.careers-updated { margin: 1.25rem 0 0; color: #5a6570; font-size: .95rem; }

@media (max-width: 991.98px) {
  .careers-search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .careers-keyword { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .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-apply { transition: none; } }

/* The top of the page: a Brookshire photo, the headline, the live number of open jobs and the roles
   being hired for right now (both filled from the job list). */
.careers-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 600px; margin-top: 90px; padding: 3.5rem 0; background: #1f5f55 url(/assets/images/gallery/brookshire-resident-and-nurse-smiling.jpg) 100% 12% / cover no-repeat; color: #fff; }
.careers-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 74, 66, .96) 0%, rgba(20, 74, 66, .88) 38%, rgba(20, 74, 66, .25) 70%, rgba(20, 74, 66, 0) 100%); }
.careers-hero .container { position: relative; }
.careers-eyebrow { display: inline-block; margin-bottom: 1rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.careers-hero-title { margin: 0 0 1rem; color: #fff; font-family: Bitter, serif; font-weight: 900; 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: #1f5f55; font-weight: 800; font-size: 1.1rem; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.careers-hero-cta:hover, .careers-hero-cta:focus-visible { color: #0083A9; }
.careers-hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.careers-hero-cta small { color: #4E9E8F; font-weight: 700; 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-label { color: rgba(255, 255, 255, .85); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.careers-roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.careers-hiring:has(.careers-roles:empty) { display: none; }
.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-weight: 800; font-size: 1rem; cursor: pointer; transition: background-color .2s, color .2s; }
.careers-role:hover, .careers-role:focus-visible { background: #fff; color: #1f5f55; outline: none; }
@media (max-width: 991.98px) {
  .careers-hero { min-height: 0; background-position: 70% center; }
  .careers-hero::before { background: linear-gradient(180deg, rgba(20, 74, 66, .6) 0%, rgba(20, 74, 66, .93) 55%); }
}
@media (max-width: 575.98px) {
  .careers-hero { margin-top: 70px; padding: 2.5rem 0; }
  .careers-hero-lead { font-size: 1.15rem; }
  .careers-hero-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .careers-role { transition: none; } }
