/*
 * After updating the CSS, upload it to the Ashby Admin Panel:
 * Go to: Ashby Account > Admin > Job Boards > Theme (Job Board) > Job Board Options > Custom CSS
 * Then upload this CSS file.
 */
 @font-face {
    font-family: 'Fustat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('https://foursquare.com/wp-content/themes/foursquare/assets/library/fonts/Fustat-VariableFont_wght.woff2') format('woff2'),
         url('https://foursquare.com/wp-content/themes/foursquare/assets/library/fonts/Fustat-VariableFont_wght.woff') format('woff');
}
body {
    --widthMaxContent: 1180px;
    --colorNeutral000: #000025;
    --colorNeutral800: #cbb8f7;
    --colorNeutral700: #ffffff;
    --fontFamily: "Fustat","sans-serif",arial;
}

/* Page Header Start */
body > div > div:first-child {
    background-color: #000025;
}
body > div > div:first-child a {
    color: #fff;
    outline: 0;
}
body > div > div:first-child p {
    color: inherit;
}
body > div > div:nth-child(1) > div:nth-child(2) {
    padding: 0;
}
/* Page Header End */

/* Page Content Wrapper Start */
body > div > div:nth-child(1) {
    max-width: var(--widthMaxContent);
    margin: 0 auto;
}
/* Page Content Wrapper End */

body > div > div:nth-child(1) > div:first-child {
    display: none;
}

/* Job Board Grid Item Heading Start */
.ashby-department-heading {
    margin-top: 0;
    margin-bottom: 5px;
}
.ashby-department-heading-level {
    font-size: 24px;
    line-height: 125%;
    font-weight: 300;
}
.ashby-job-posting-brief-title {
    font-size: 18px;
    line-height: 150%;
    font-weight: 500;
}
.ashby-job-posting-brief-details {
    font-size: 15px;
    line-height: 150%;
    font-weight: 300;
    margin-top: 5px;
}
/* Job Board Grid Item Heading End */

/* Job Board Grid Start */
body > div > div:nth-child(1) > div:nth-child(2) > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 0 20px;
    align-items: start;
}

.ashby-job-posting-brief-list {
    margin-bottom: 50px;
}

/* Job Board Grid First Column Start */
body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(3n+1),
.ashby-job-posting-brief-list:nth-of-type(3n+1) {
    grid-column: 1;
}
/* Job Board Grid First Column End */

/* Job Board Grid Second Column Start */
body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(3n+2),
.ashby-job-posting-brief-list:nth-of-type(3n+2) {
    grid-column: 2;
}
/* Job Board Grid Second Column End */

/* Job Board Grid Third Column Start */
body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(3n+3),
.ashby-job-posting-brief-list:nth-of-type(3n+3) {
    grid-column: 3;
}
/* Job Board Grid Third Column End */

/* ===== Row grouping (headings above boxes) ===== */

body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(-n+3) {
    grid-row: 1;
}
.ashby-job-posting-brief-list:nth-of-type(-n+3) {
    grid-row: 2;
}

body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(n+4):nth-of-type(-n+6) {
    grid-row: 3;
}
.ashby-job-posting-brief-list:nth-of-type(n+4):nth-of-type(-n+6) {
    grid-row: 4;
}

body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(n+7):nth-of-type(-n+9) {
    grid-row: 5;
}
.ashby-job-posting-brief-list:nth-of-type(n+7):nth-of-type(-n+9) {
    grid-row: 6;
}
/* Job Board Grid End */

.ashby-job-posting-brief {
    padding: 12px 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0);
    transition: all .3s ease;
}
.ashby-job-posting-brief:hover {
    background-color: #0e134f;
}

footer {
    margin-top: 0 !important;
}
footer > a { 
    display: none !important; 
}

/* 2 columns below 992px */
@media (max-width: 941px) {
    body > div > div:nth-child(1) > div:nth-child(2) > div {
        grid-template-columns: repeat(2, 1fr);
    }
  
    /* Reassign columns for 2-col mode */
    body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(2n+1),
    .ashby-job-posting-brief-list:nth-of-type(2n+1) {
      grid-column: 1;
    }
  
    body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(2n),
    .ashby-job-posting-brief-list:nth-of-type(2n) {
      grid-column: 2;
    }
  
    /* Group 1–2 departments (rows 1 & 2) */
    body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(-n+2) {
      grid-row: 1;
    }
    .ashby-job-posting-brief-list:nth-of-type(-n+2) {
      grid-row: 2;
    }
  
    /* Departments 3–4 (rows 3 & 4) */
    body > div > div:nth-child(1) > div:nth-child(2) > div > .ashby-department-heading:nth-of-type(n+3):nth-of-type(-n+4) {
      grid-row: 3;
    }
    .ashby-job-posting-brief-list:nth-of-type(n+3):nth-of-type(-n+4) {
      grid-row: 4;
    }

    .ashby-job-posting-brief {
        margin-top: 0;
    }
    .ashby-job-posting-brief-title {
        margin-top: 2px;
    }
}

/* 1 column below 768px */
@media (max-width: 717px) {
    body > div > div:nth-child(1) > div:nth-child(2) > div {
        display: block;
    }

    .ashby-job-posting-brief-list {
        margin-bottom: 30px;
    }    
}