/* Dryft job board */

/* Hide the filters that have only one option (every role is full time and on-site). */
div:has(> select.ashby-job-board-filter[name="employmentType"]),
div:has(> select.ashby-job-board-filter[name="workplaceType"]),
select.ashby-job-board-filter[name="employmentType"],
select.ashby-job-board-filter[name="workplaceType"] {
  display: none !important;
}

/* Department order: Engineering, Product, Business, Operations, Marketing, Other.
   Ashby lists departments alphabetically; each department is found by a posting link it contains.
   Update the posting IDs when postings are added or removed. Unknown departments go last. */
div:has(> h2.ashby-department-heading) { display: flex; flex-direction: column; }
h2.ashby-department-heading, .ashby-job-posting-brief-list { order: 90; }
/* 1. Engineering */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="572fe2dc-1f15-476e-9e1b-df60ddd3205d"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="fd239018-febd-4fd7-910a-4f0f1b7208cd"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="3f1c261d-9b65-412b-9f17-34b8968bdd78"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="352183c7-98bc-4626-bc80-b13cfaf005d4"]),
.ashby-job-posting-brief-list:has(a[href*="572fe2dc-1f15-476e-9e1b-df60ddd3205d"]),
.ashby-job-posting-brief-list:has(a[href*="fd239018-febd-4fd7-910a-4f0f1b7208cd"]),
.ashby-job-posting-brief-list:has(a[href*="3f1c261d-9b65-412b-9f17-34b8968bdd78"]),
.ashby-job-posting-brief-list:has(a[href*="352183c7-98bc-4626-bc80-b13cfaf005d4"]) { order: 1; }
/* 2. Product */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="d6c64e84-8285-4337-947b-fa29de5fa1c6"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="549054ae-25af-401f-8d79-8de62924ff7c"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="6a16733e-bb05-40dc-8c25-449c1fd8af81"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="16a68334-23db-4f99-a01d-6941945e86db"]),
.ashby-job-posting-brief-list:has(a[href*="d6c64e84-8285-4337-947b-fa29de5fa1c6"]),
.ashby-job-posting-brief-list:has(a[href*="549054ae-25af-401f-8d79-8de62924ff7c"]),
.ashby-job-posting-brief-list:has(a[href*="6a16733e-bb05-40dc-8c25-449c1fd8af81"]),
.ashby-job-posting-brief-list:has(a[href*="16a68334-23db-4f99-a01d-6941945e86db"]) { order: 2; }
/* 3. Business */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="60c6f0b3-059a-435f-841b-a3944bc722fd"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="bf34b4bb-142e-4cb5-a01d-e63b4c245c2b"]),
.ashby-job-posting-brief-list:has(a[href*="60c6f0b3-059a-435f-841b-a3944bc722fd"]),
.ashby-job-posting-brief-list:has(a[href*="bf34b4bb-142e-4cb5-a01d-e63b4c245c2b"]) { order: 3; }
/* 4. Operations */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="94db8639-2bbc-4a5c-acb9-f1b4f61a9796"]),
.ashby-job-posting-brief-list:has(a[href*="94db8639-2bbc-4a5c-acb9-f1b4f61a9796"]) { order: 4; }
/* 5. Marketing */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="647da8bd-9f32-4e99-a3c6-50892b4564d4"]),
.ashby-job-posting-brief-list:has(a[href*="647da8bd-9f32-4e99-a3c6-50892b4564d4"]) { order: 5; }
/* 6. Other */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="aa0aaa74-2681-4c2c-a714-c1ebffacd48a"]),
.ashby-job-posting-brief-list:has(a[href*="aa0aaa74-2681-4c2c-a714-c1ebffacd48a"]) { order: 6; }
/* The first section keeps its original distance from the filters (flex stops the margin collapse). */
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="572fe2dc-1f15-476e-9e1b-df60ddd3205d"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="fd239018-febd-4fd7-910a-4f0f1b7208cd"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="3f1c261d-9b65-412b-9f17-34b8968bdd78"]),
h2.ashby-department-heading:has(+ .ashby-job-posting-brief-list a[href*="352183c7-98bc-4626-bc80-b13cfaf005d4"]) { margin-top: 16px; }
