/* Small accessibility additions; the original theme controls visual styling. */
.mobile-menu-toggle:focus-visible, a:focus-visible, button:focus-visible,
.carousel-indicators li:focus-visible { outline: 3px solid #e9a34a; outline-offset: 3px; }
.header-codes-set:focus-within .header-codes-wrap { display: block; }
.contact-status { margin: 1rem 0; padding: 1rem; border: 1px solid #203b7b; }
.contact-status.error { border-color: #a32b2b; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .carousel-item, .slick-track { transition: none !important; }
}

/* Fit all seven page links in the retained theme's desktop header. */
@media (min-width: 1200px) {
  header.banner nav.nav-primary { display: block; }
  header.banner .nav { display: flex; justify-content: flex-end; align-items: center; padding: 1.1rem 0 0; }
  header.banner nav.nav-primary .nav li.menu-item { padding: 1rem .65rem; white-space: nowrap; }
}
@media (max-width: 1199px) {
  header.banner nav.nav-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  body { padding-bottom: 56px; }
}
.mobile-menu-wrapper { z-index: 99; overflow-y: auto; }
.mobile-menu-wrapper ul.menu { width: 100%; max-height: calc(100% - 90px); overflow-y: auto; }
.mobile-menu-wrapper ul.menu a { display: inline-block; padding: .3rem .7rem; }
.jobs-skip { position: absolute; left: -10000px; }
.jobs-skip:focus { left: 1rem; top: 1rem; z-index: 101; background: #fff; padding: 1rem; }
.jobs-section { padding-top: 3rem; padding-bottom: 2rem; }
.jobs-filters { background: #f7f7f7; border: 1px solid #e5e5e5; margin-bottom: 2rem; }
.jobs-search-panel { padding: 1.5rem; background: #eee; }
.jobs-search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.jobs-search-fields > div { min-width: 0; }
.jobs-search-fields label { display: block; font-weight: 600; margin-bottom: .4rem; }
.jobs-search-fields input { width: 100%; min-height: 48px; border: 1px solid #ccc; padding: .65rem .75rem; border-radius: 3px; background: #fff; color: #222; }
.jobs-filters input:focus-visible { outline: 3px solid #00339e; outline-offset: 3px; }
.jobs-filters input[type=checkbox] { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: #146bcd; }
.jobs-remote { display: flex; align-items: center; gap: .4rem; margin: .8rem 0 1.1rem calc(50% + .625rem); color: #222; cursor: pointer; }
.jobs-button { display: inline-block; padding: .75rem 1.2rem; min-height: 48px; background: #00339e; border: 1px solid #00339e; color: #fff; text-align: center; font-weight: 600; cursor: pointer; }
.jobs-button:hover, .jobs-button:focus { background: #1e1756; color: #fff; text-decoration: underline; }
.jobs-search-button { display: block; width: 100%; min-height: 44px; padding: .5rem 1rem; background: #ada579; border-color: #968c59; border-radius: 4px; color: #171709; }
.jobs-search-button:hover, .jobs-search-button:focus { background: #9b9264; color: #111; text-decoration: none; }
.jobs-type-filters { min-width: 0; border: 0; padding: 0; margin: 0; }
.jobs-type-filters legend { float: none; width: 100%; margin: 0; padding: .8rem 1.25rem .4rem; font-size: .9rem; font-weight: 600; color: #555; }
.jobs-type-filters legend span { font-weight: 400; margin-left: .5rem; }
.jobs-type-options { display: flex; flex-wrap: wrap; }
.jobs-type-options label { display: flex; gap: .4rem; align-items: center; padding: .8rem 1rem; min-height: 48px; margin: 0; border-right: 1px solid #e9e9e9; color: #222; cursor: pointer; }
.jobs-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.25rem; border-top: 1px solid #e5e5e5; }
.jobs-selection-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.jobs-selection-actions[hidden] { display: none; }
.jobs-selection-actions button { border: 0; background: transparent; padding: .4rem 0; color: #5b5128; text-decoration: underline; cursor: pointer; }
.jobs-section a.jobs-reset { color: #5b5128; padding: .4rem 0; margin-left: auto; }
.jobs-results-heading { font-size: 1.2rem; margin-bottom: 1rem; }
.jobs-list { list-style: none; padding: 0; margin: 0; }
.jobs-list li { border-top: 1px solid #e9e9e9; }
.jobs-list li:last-child { border-bottom: 1px solid #e9e9e9; }
.jobs-section a:not(.jobs-button) { color: #00339e; text-decoration: underline; text-underline-offset: .15em; }
.jobs-section a.jobs-row { display: grid; grid-template-columns: 44px minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; padding: 1.6rem 1rem; color: #161616; text-decoration: none; }
.jobs-row:hover { background: #f7f7f7; }
.jobs-row:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.jobs-row:focus-visible { outline-offset: -3px; background: #f7f7f7; }
.jobs-company-logo { width: 44px; height: 44px; object-fit: contain; }
.jobs-list h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; margin: 0 0 .35rem; text-transform: uppercase; overflow-wrap: anywhere; }
.jobs-company { color: #666; font-weight: 600; font-size: 1.05rem; margin: 0; }
.jobs-location { color: #666; margin: 0; font-size: 1.05rem; }
.jobs-meta { text-align: right; }
.jobs-tags { display: flex; flex-direction: column; gap: .2rem; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.jobs-type-orange { color: #b84e0c; }
.jobs-type-green { color: #487b12; }
.jobs-type-blue { color: #2564a0; }
.jobs-type-teal { color: #15756b; }
.jobs-posted { display: block; color: #6b6b6b; margin-top: .45rem; font-size: 1rem; }
.job-detail .jobs-tags { flex-direction: row; flex-wrap: wrap; gap: .4rem 1rem; }
.jobs-pagination { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.jobs-pagination a { padding: .75rem .5rem; }
.jobs-notice { padding: 1.5rem; border-left: 4px solid #00339e; background: #f4f5f8; }
.jobs-notice h2, .jobs-notice h3 { font-size: 1.5rem; }
/* The reference detail page uses Outfit body text and Rubik headings. */
@font-face { font-family: 'MEC Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/outfit-regular.ttf') format('truetype'); }
@font-face { font-family: 'MEC Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/outfit-bold.ttf') format('truetype'); }
@font-face { font-family: 'MEC Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/rubik-bold.ttf') format('truetype'); }
.job-detail { width: 100%; margin: 2rem auto; overflow-wrap: anywhere; color: #000; font-family: 'MEC Outfit', sans-serif; font-size: 18px; line-height: 1.6; }
.job-detail > header { padding: 0; margin-bottom: 1.75rem; border: 0; }
.job-detail > header h2 { font-family: 'MEC Rubik', sans-serif; color: #000; font-size: clamp(2rem, 3.35vw, 3rem); font-weight: 700; line-height: 1.2; text-transform: uppercase; margin: 0 0 2rem; }
.job-published { margin: 0 0 1.75rem; }
.job-facts { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.job-facts .jobs-tags { flex-direction: row; flex-wrap: wrap; gap: .6rem; font-size: 18px; line-height: 1.4; font-weight: 400; }
.job-facts .jobs-tags span { padding: .45rem .65rem; background: #b84e0c; color: #fff; }
.job-facts .jobs-tags .jobs-type-green { background: #487b12; }
.job-facts .jobs-tags .jobs-type-blue { background: #2564a0; }
.job-facts .jobs-tags .jobs-type-teal { background: #15756b; }
.job-facts .jobs-location { color: #746b3e; font-size: 18px; margin: 0; }
.job-facts .jobs-posted { color: #686868; font-size: 18px; margin: 0; }
.job-facts .fa { color: #777; margin-right: .2rem; }
.job-company-panel { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem; min-height: 128px; margin: 0 0 2.5rem; border: 1px solid #e9e9e9; box-shadow: 0 2px 2px rgba(0,0,0,.05); }
.job-company-panel img { width: 64px; height: 64px; object-fit: contain; }
.job-company-panel p { margin: 0; font-weight: 700; font-size: 20px; }
.job-description { line-height: 1.65; }
.job-description p { margin: 0 0 1.25rem; }
.job-description strong, .job-description b { font-weight: 700; }
.job-description h2, .job-description h3, .job-description h4, .job-description h5, .job-description h6 { font-family: 'MEC Rubik', sans-serif; color: #000; font-weight: 700; line-height: 1.4; margin: 1.8rem 0 1rem; }
.job-description h2 { font-size: 1.6rem; }
.job-description h3 { font-size: 1.4rem; }
.job-description ul, .job-description ol { padding-left: 2rem; margin: 0 0 1.5rem; }
.job-description li { padding-left: .2rem; margin-bottom: .25rem; }
.jobs-apply { margin-top: 1.5rem; }
.job-detail .jobs-apply .jobs-button { padding: .85rem 2.5rem; border-radius: 4px; background: #ada579; border-color: #968c59; color: #171709; font-family: 'MEC Outfit', sans-serif; font-size: 18px; font-weight: 400; text-transform: uppercase; text-decoration: none; }
.job-detail .jobs-apply .jobs-button:hover, .job-detail .jobs-apply .jobs-button:focus { background: #9b9264; color: #111; }
@media (max-width: 575px) {
  header.banner .brand img { max-width: 100%; height: auto; }
  .now-hiring .page-header-heading-wrapper { padding: 1.5rem 2rem; }
  .now-hiring .page-header-heading-wrapper h1 { font-size: 2rem; line-height: 1.2; }
  .now-hiring .general-page-top-section { padding: 2rem 1rem; }
  .now-hiring .general-page-top-section h2 { margin-bottom: 1.5rem; }
  .jobs-section { padding-top: 2rem; }
  .jobs-search-panel { padding: 1rem; }
  .jobs-search-fields { grid-template-columns: 1fr; gap: .8rem; }
  .jobs-remote { margin-left: 0; }
  .jobs-type-options label { flex: 1 1 50%; padding: .65rem .75rem; font-size: .9rem; }
  .jobs-type-filters legend { padding-left: .75rem; }
  .jobs-type-filters legend span { display: block; margin-left: 0; }
  .jobs-filter-actions { padding: .5rem .75rem; font-size: .85rem; flex-wrap: wrap; }
  .jobs-section a.jobs-row { grid-template-columns: 32px minmax(0, 1fr); gap: .6rem .8rem; padding: 1.25rem .4rem; }
  .jobs-company-logo { width: 32px; height: 32px; }
  .jobs-row .jobs-location, .jobs-row .jobs-meta { grid-column: 2; }
  .jobs-meta { text-align: left; }
  .jobs-row .jobs-tags { flex-direction: row; flex-wrap: wrap; gap: .2rem .75rem; font-size: .95rem; }
  .jobs-list h3 { font-size: 1.05rem; }
  .jobs-company, .jobs-row .jobs-location { font-size: .95rem; }
  .job-detail { font-size: 17px; }
  .job-detail > header h2 { font-size: 2rem; margin-bottom: 1.25rem; }
  .job-facts { gap: .8rem; }
  .job-facts .jobs-tags, .job-facts .jobs-location, .job-facts .jobs-posted { font-size: 16px; }
  .job-company-panel { padding: 1rem; gap: 1rem; min-height: 108px; margin-bottom: 1.75rem; }
  .job-company-panel img { width: 48px; height: 48px; }
  .job-company-panel p { font-size: 18px; }
  .job-detail .jobs-apply .jobs-button { max-width: 100%; }
}

@media (min-width: 576px) and (max-width: 991px) {
  .jobs-section a.jobs-row { grid-template-columns: 36px minmax(0, 1.5fr) minmax(0, 1fr); gap: .6rem 1rem; }
  .jobs-company-logo { width: 36px; height: 36px; }
  .jobs-row .jobs-location { grid-column: 2; }
  .jobs-row .jobs-meta { grid-column: 3; grid-row: 1 / span 2; }
}
