/* =========================================================
   MICROMART — ASHBY JOB BOARD
   ========================================================= */


/* =========================================================
   1. Brand / Ashby tokens
   ========================================================= */

:root {
  --mm-bg: #ffffff;
  --mm-surface: #ffffff;
  --mm-text: #0b0f14;
  --mm-dark-green: #08372e;
  --mm-link: #139051;
  --mm-muted: #5b6472;
  --mm-subtle: #8a93a3;
  --mm-border: #e6e9ee;

  --mm-brand: #98edb1;
  --mm-brand-hover: #adf5c2;

  --mm-radius: 16px;
  --mm-radius-control: 8px;

  /* Ashby variables */
  --colorAppBackground: #ffffff;
  --colorPrimary900: #08372e;
  --colorPrimary600: #139051;

  --widthMaxContent: 1024px;
  --widthMaxJobBoard: var(--widthMaxContent);

  --borderRadiusContainer: 16px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 8px;

  --fontFamily:
    "Gotham",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}


/* =========================================================
   2. Gotham
   ========================================================= */

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("https://res.cloudinary.com/kitchenmate/raw/upload/v1719527427/Fonts/Gotham-Bold.woff2")
    format("woff2");
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("https://res.cloudinary.com/kitchenmate/raw/upload/v1719527427/Fonts/Gotham-Medium.woff2")
    format("woff2");
}

@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("https://res.cloudinary.com/kitchenmate/raw/upload/v1719527428/Fonts/Gotham-Book.woff2")
    format("woff2");
}

html,
body {
  font-family:
    "Gotham",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;

  color: var(--mm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img[alt="Micromart"] {
  width: auto !important;
  height: 44px !important;
  max-width: 100% !important;
}

a[aria-label="Learn more about Ashby"] > span {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;
}


/* =========================================================
   3. Job board
   ========================================================= */

.ashby-job-posting-brief-list {
  padding-left: 10px !important;
}


/* =========================================================
   4. Department / category headings
   ========================================================= */

.ashby-department-heading {
  color: var(--mm-dark-green) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;

  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.ashby-department-heading-level {
  color: var(--mm-dark-green) !important;
}


/* =========================================================
   5. Job cards
   ========================================================= */

.ashby-job-posting-brief {
  box-shadow:
    inset 0 0 0 1px rgba(8, 55, 46, 0.06),
    rgba(0, 0, 0, 0.04) 0px 5px 22px 0px !important;

  align-items: center !important;

  border: 1px solid var(--mm-border) !important;
  border-radius: var(--mm-radius) !important;

  background: var(--mm-surface) !important;

  margin: 14px 0 !important;

  display: grid !important;
  clear: both;

  gap: 1px !important;
  row-gap: 8px !important;

  padding: 26px 22px 40px !important;
}

.ashby-job-posting-brief:hover {
  box-shadow:
    rgba(0, 0, 0, 0.04) 0px 5px 22px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px !important;
}


/* =========================================================
   6. Job titles
   ========================================================= */

.ashby-job-posting-brief-title {
  grid-column: 1 !important;
  grid-row: 1 !important;

  margin: 0 !important;
}

.ashby-job-posting-brief-title,
.ashby-job-posting-brief-title a {
  color: var(--mm-dark-green) !important;
  font-family: "Gotham", sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
  text-decoration: none !important;
}


/* =========================================================
   7. Job details / meta
   ========================================================= */

.ashby-job-posting-brief-details,
.ashby-job-posting-brief-details * {
  grid-column: 1 !important;
  grid-row: 2 !important;

  margin: 0 !important;

  color: var(--mm-muted) !important;

  text-transform: none !important;

  font-weight: 400 !important;

  font-size: 12px !important;
  line-height: 1.4 !important;
}


/* =========================================================
   8. Job-board filters
   ========================================================= */

.ashby-job-board-filter {
  border: 1px solid var(--mm-border) !important;
  border-radius: var(--mm-radius-control) !important;

  font-family: var(--fontFamily) !important;
}

.ashby-job-board-filters-label {
  color: var(--mm-text) !important;
  font-weight: 500 !important;
}

.ashby-job-board-reset-filters-label {
  color: var(--mm-link) !important;
}


/* =========================================================
   9. Individual job page
   ========================================================= */

.ashby-job-posting-heading {
  color: var(--mm-dark-green) !important;

  font-family: var(--fontFamily) !important;

  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 20px !important;
}

.ashby-job-posting-header {
  font-family: var(--fontFamily) !important;
}

.ashby-job-posting-description-container {
  color: var(--mm-text) !important;
}

.ashby-job-posting-description {
  color: var(--mm-text) !important;

  font-family: var(--fontFamily) !important;

  line-height: 1.62 !important;
}

.ashby-job-posting-description h2,
.ashby-job-posting-description h2 strong {
  font-weight: 600 !important;
}

.ashby-job-posting-description h2 {
  margin-bottom: 0.8rem !important;
}

.ashby-job-posting-description ul,
.ashby-job-posting-description ol {
  padding-left: 1.5em !important;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  color: var(--mm-muted) !important;
  transition: color 120ms ease !important;
}

[role="tab"][aria-selected="true"]
  .ashby-job-posting-right-pane-overview-tab,
[role="tab"][aria-selected="true"]
  .ashby-job-posting-right-pane-application-tab,
[role="tab"]:hover .ashby-job-posting-right-pane-overview-tab,
[role="tab"]:hover .ashby-job-posting-right-pane-application-tab,
[role="tab"]:focus-visible .ashby-job-posting-right-pane-overview-tab,
[role="tab"]:focus-visible .ashby-job-posting-right-pane-application-tab {
  color: var(--mm-dark-green) !important;
}

.ashby-job-posting-right-pane-tab-slider {
  background-color: var(--mm-dark-green) !important;
}


/* =========================================================
   10. Back to jobs
   ========================================================= */

.ashby-job-board-back-to-all-jobs-button {
  background-color: transparent !important;
  color: var(--mm-link) !important;
  box-shadow: none !important;

  font-family: var(--fontFamily) !important;
  font-weight: 500 !important;

  transition: color 120ms ease !important;
}

.ashby-job-board-back-to-all-jobs-button:hover,
.ashby-job-board-back-to-all-jobs-button:focus,
.ashby-job-board-back-to-all-jobs-button:active {
  background-color: transparent !important;
  color: var(--mm-dark-green) !important;
  box-shadow: none !important;
}

.ashby-job-board-back-to-all-jobs-button:hover svg,
.ashby-job-board-back-to-all-jobs-button:focus svg,
.ashby-job-board-back-to-all-jobs-button:active svg,
.ashby-job-board-back-to-all-jobs-button:hover svg *,
.ashby-job-board-back-to-all-jobs-button:focus svg *,
.ashby-job-board-back-to-all-jobs-button:active svg * {
  color: var(--mm-dark-green) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.ashby-job-board-back-to-all-jobs-button:focus-visible {
  outline: 3px solid rgba(8, 55, 46, 0.25) !important;
  outline-offset: 3px !important;
}


/* =========================================================
   11. Application form
   ========================================================= */

.ashby-application-form-container {
  font-family: var(--fontFamily) !important;
  color: var(--mm-text) !important;
}

.ashby-application-form-question-title {
  color: var(--mm-text) !important;
  font-weight: 500 !important;
}

.ashby-application-form-question-description {
  color: var(--mm-muted) !important;
}


/* =========================================================
   12. Application inputs
   ========================================================= */

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown,
.ashby-application-form-input-dropdown-select,
.ashby-application-form-input-file {
  border-radius: var(--mm-radius-control) !important;

  font-family: var(--fontFamily) !important;
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus {
  outline: 1px solid var(--mm-brand) !important;
  box-shadow: none !important;
}


/* =========================================================
   13. Submit / Apply button
   ========================================================= */

.ashby-job-posting-description-container button,
.ashby-application-form-submit-button {
  background-color: #98edb1 !important;

  color: #08372e !important;
  box-shadow: none !important;
  text-shadow: none !important;

  border: none !important;
  border-radius: 8px !important;

  padding: 12px 24px !important;

  font-family: var(--fontFamily) !important;

  font-weight: 600 !important;

  font-size: 1rem !important;
  line-height: 1rem !important;

  height: auto !important;

  transition: background-color 120ms ease !important;
}

.ashby-application-form-submit-button svg,
.ashby-application-form-submit-button svg path {
  fill: currentColor !important;
}

.ashby-job-posting-description-container button:hover,
.ashby-job-posting-description-container button:focus,
.ashby-application-form-submit-button:hover,
.ashby-application-form-submit-button:focus {
  background-color: #adf5c2 !important;

  color: #08372e !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.ashby-job-posting-description-container button:focus-visible,
.ashby-application-form-submit-button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.2) !important;
  outline-offset: 3px !important;
}


/* =========================================================
   14. Form sections
   ========================================================= */

.ashby-application-form-section-header-title {
  color: var(--mm-text) !important;

  font-weight: 600 !important;
}

.ashby-application-form-section-header-description {
  color: var(--mm-muted) !important;
}


/* =========================================================
   15. Desktop
   ========================================================= */

@media (min-width: 768px) {
  .ashby-job-posting-brief-list {
    padding-left: 30px !important;
  }

  .ashby-job-posting-brief {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;

    column-gap: 24px !important;
    row-gap: 8px !important;

    padding: 26px 22px !important;
  }
}


/* =========================================================
   16. Mobile
   ========================================================= */

@media (max-width: 767px) {
  .ashby-job-posting-brief-list {
    padding-left: 10px !important;
  }

  .ashby-job-posting-brief {
    padding: 26px 22px 40px !important;
  }

  .ashby-application-form-submit-button {
    width: 100% !important;
  }
}
