/* Monumental / Ashby: inset banners with a gentle scroll-driven pan.
   Replace the previous banner CSS with this entire file.
   Sizes use plain values + media queries (no clamp/min/var), because
   Ashby's CSS validator rejects those functions.
   Banner: 84vw wide (8vw gutter each side), capped at 1100px;
   height 23vw, kept between 180px and 320px. */
[class*="_topDescription_"] img,
[class*="_bottomDescription_"] img {
  display: block;
  box-sizing: border-box;
  width: 84vw;
  max-width: none !important;
  height: 23vw;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0;
  margin-left: calc(50% - 42vw);
  margin-right: calc(50% - 42vw);
}

/* Narrow screens: keep a 24px gutter and a 180px minimum height. */
@media (max-width: 782px) {
  [class*="_topDescription_"] img,
  [class*="_bottomDescription_"] img {
    height: 180px;
  }
}

@media (max-width: 299px) {
  [class*="_topDescription_"] img,
  [class*="_bottomDescription_"] img {
    width: calc(100vw - 48px);
    margin-left: calc(50% - 50vw + 24px);
    margin-right: calc(50% - 50vw + 24px);
  }
}

/* Wide screens: cap the width at 1100px. */
@media (min-width: 1310px) {
  [class*="_topDescription_"] img,
  [class*="_bottomDescription_"] img {
    width: 1100px;
    margin-left: calc(50% - 550px);
    margin-right: calc(50% - 550px);
  }
}

/* Very wide screens: cap the height at 320px. */
@media (min-width: 1392px) {
  [class*="_topDescription_"] img,
  [class*="_bottomDescription_"] img {
    height: 320px;
  }
}

/* Prevent horizontal scrolling from viewport-width images. */
html,
body {
  overflow-x: clip;
}

/* Progressive enhancement: unsupported browsers retain the static banner.
   Visitors requesting reduced motion also receive the static version. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [class*="_topDescription_"] img,
    [class*="_bottomDescription_"] img {
      animation: monumental-banner-pan 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes monumental-banner-pan {
  from {
    object-position: 50% 40%;
    transform: translateY(4px);
  }
  to {
    object-position: 50% 60%;
    transform: translateY(-4px);
  }
}

/* Visual category order, based on the published job links inspected on 2026-11-12.
   CSS cannot match heading text. Each group is recognized by any of its known jobs.
   Newly added jobs join their group's order while any known job remains visible.
   Unrecognized groups stay together at the end in their original relative order.
   Refresh these job IDs if all jobs in a category are replaced.
   This does not reorder the department dropdown, keyboard or screen-reader order.
   For permanent semantic ordering, configure ordering in the source job board. */
@supports selector(:has(*)) {
  [class*="_departments_"]:has(> .ashby-department-heading + .ashby-job-posting-brief-list) {
    display: flex;
    flex-direction: column;
  }

  [class*="_departments_"] > .ashby-department-heading,
  [class*="_departments_"] > .ashby-job-posting-brief-list {
    order: 100;
  }

  /* 1. Hardware Engineering */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/31f5ebe3-65cf-4bd4-b93b-ff1816607a00"],
      a[href$="/1c764dae-66ad-45d9-befd-a96d922f7b2d"],
      a[href$="/e1188959-774d-4fe8-aac6-872c42338f90"],
      a[href$="/5f03d400-5768-4976-a6f9-2f9cf43efb07"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/31f5ebe3-65cf-4bd4-b93b-ff1816607a00"],
      a[href$="/1c764dae-66ad-45d9-befd-a96d922f7b2d"],
      a[href$="/e1188959-774d-4fe8-aac6-872c42338f90"],
      a[href$="/5f03d400-5768-4976-a6f9-2f9cf43efb07"]
  )) {
    order: 1;
  }

  /* 2. Software Engineering */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/8c6037b8-30aa-4c1b-a155-b0fd18a32ee7"],
      a[href$="/e8f23c1d-ae03-49c6-b63a-cd260babeef7"],
      a[href$="/11231d30-a833-4a35-8f04-be92dfef380f"],
      a[href$="/706a2266-f50f-4da6-97b3-0b8b89ba1011"],
      a[href$="/06d447db-9dd6-412e-881e-1b4914bfb0a3"],
      a[href$="/1dec36d8-c26f-432d-8c79-9e4c3d0df18f"],
      a[href$="/22e68743-67a2-4e88-8101-8b2d9b6247ac"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/8c6037b8-30aa-4c1b-a155-b0fd18a32ee7"],
      a[href$="/e8f23c1d-ae03-49c6-b63a-cd260babeef7"],
      a[href$="/11231d30-a833-4a35-8f04-be92dfef380f"],
      a[href$="/706a2266-f50f-4da6-97b3-0b8b89ba1011"],
      a[href$="/06d447db-9dd6-412e-881e-1b4914bfb0a3"],
      a[href$="/1dec36d8-c26f-432d-8c79-9e4c3d0df18f"],
      a[href$="/22e68743-67a2-4e88-8101-8b2d9b6247ac"]
  )) {
    order: 2;
  }

  /* 3. Machine Shop */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/98341214-6e67-4101-8cb7-bf1f53774e25"],
      a[href$="/86ae21e3-bb01-4821-a6c6-ee9cd23fb878"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/98341214-6e67-4101-8cb7-bf1f53774e25"],
      a[href$="/86ae21e3-bb01-4821-a6c6-ee9cd23fb878"]
  )) {
    order: 3;
  }

  /* 4. Field Deployments */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/f8d7af69-7e54-4d9c-bd79-1b9206edf098"],
      a[href$="/00752a36-8a0c-4f6b-b5db-7f63b1822710"],
      a[href$="/d92a32b3-5489-458b-b7ba-6c615fc30923"],
      a[href$="/e089fa4a-08e8-4a6c-a629-bbdaa2e52daa"],
      a[href$="/2c02fb3c-5250-4c80-9ec5-48f1f8a48e73"],
      a[href$="/62fa3ccc-49fd-432d-b2cf-70c170bc581e"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/f8d7af69-7e54-4d9c-bd79-1b9206edf098"],
      a[href$="/00752a36-8a0c-4f6b-b5db-7f63b1822710"],
      a[href$="/d92a32b3-5489-458b-b7ba-6c615fc30923"],
      a[href$="/e089fa4a-08e8-4a6c-a629-bbdaa2e52daa"],
      a[href$="/2c02fb3c-5250-4c80-9ec5-48f1f8a48e73"],
      a[href$="/62fa3ccc-49fd-432d-b2cf-70c170bc581e"]
  )) {
    order: 4;
  }

  /* 5. Deployment Ops */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/a1f0dacf-ae18-4b11-a24c-5437c9dab65b"],
      a[href$="/d94d53ea-be5f-4005-97c4-8bad9bd32e16"],
      a[href$="/6f3c32cd-6fa8-4a90-8bd3-047c6e0aab9a"],
      a[href$="/32852739-3ce4-4f33-aba3-76b5ab8d7f3e"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/a1f0dacf-ae18-4b11-a24c-5437c9dab65b"],
      a[href$="/d94d53ea-be5f-4005-97c4-8bad9bd32e16"],
      a[href$="/6f3c32cd-6fa8-4a90-8bd3-047c6e0aab9a"],
      a[href$="/32852739-3ce4-4f33-aba3-76b5ab8d7f3e"]
  )) {
    order: 5;
  }

  /* 6. Company Operations */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/34e7b7fb-59e9-463f-9bec-7f2157ff2e0b"],
      a[href$="/fcdd4b5b-39c6-4148-8b20-8b014586070b"],
      a[href$="/1d240204-4d13-4dc1-a266-4a3687459d77"],
      a[href$="/248588dc-bea2-4f71-b7b8-2dd2dbfb5f36"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/34e7b7fb-59e9-463f-9bec-7f2157ff2e0b"],
      a[href$="/fcdd4b5b-39c6-4148-8b20-8b014586070b"],
      a[href$="/1d240204-4d13-4dc1-a266-4a3687459d77"],
      a[href$="/248588dc-bea2-4f71-b7b8-2dd2dbfb5f36"]
  )) {
    order: 6;
  }

  /* 7. No Department */
  [class*="_departments_"] > .ashby-department-heading:has(+ .ashby-job-posting-brief-list :is(
      a[href$="/bcbed947-a414-4c7c-b6e2-61440f4e9ecf"]
  )),
  [class*="_departments_"] > .ashby-job-posting-brief-list:has(:is(
      a[href$="/bcbed947-a414-4c7c-b6e2-61440f4e9ecf"]
  )) {
    order: 7;
  }
}
