/* ================================================
   IRIS Software Group — Ashby Job Board CSS
   Brand colours:
     Navy:    #0f2350
     Blue:    #00aeef
     Red:     #e8174b
     Purple:  #8b5cf6
     Amber:   #f59e0b
     Light bg:#f4f3ef
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

/* ── Global variables ── */
:root {
  --colorPrimary900:      #0f2350;
  --colorPrimary600:      #00aeef;
  --colorAppBackground:   #f4f3ef;
  --borderRadiusContainer: 12px;
  --borderRadiusControl:   8px;
  --borderRadiusButton:    8px;
  --fontFamily:            'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --widthMaxJobBoard:      860px;
}

/* ── Job board heading ── */
.ashby-job-board-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: #0f2350;
  margin-bottom: 8px;
}

/* Job count pill */
.ashby-job-board-heading-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: #0f2350;
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Filters ── */
.ashby-job-board-filters-label {
  font-size: 13px;
  font-weight: 500;
  color: #0f2350;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ashby-job-board-filter {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1px solid #d6d3cc;
  border-radius: 8px;
  background: #ffffff;
  color: #1a1917;
  padding: 8px 12px;
  transition: border-color 0.15s;
}

.ashby-job-board-filter:focus {
  outline: none;
  border-color: #00aeef;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.ashby-job-board-reset-filters-label {
  font-size: 13px;
  color: #00aeef;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Department & team headings ── */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #0f2350;
  border-bottom: 2px solid #e8174b;
  padding-bottom: 6px;
  margin-bottom: 12px;
  margin-top: 32px;
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  font-size: 14px;
  font-weight: 500;
  color: #5a5855;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  margin-top: 20px;
}

/* ── Job listing cards ── */
.ashby-job-posting-brief {
  background: #ffffff;
  border: 1px solid #e2e0da;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.ashby-job-posting-brief:hover {
  border-color: #00aeef;
  box-shadow: 0 2px 12px rgba(0, 174, 239, 0.12);
}

.ashby-job-posting-brief-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f2350;
}

.ashby-job-posting-brief-details {
  font-size: 13px;
  color: #7a7875;
  margin-top: 4px;
}

.ashby-job-posting-brief-list {
  margin-top: 8px;
}

/* ── Individual job posting ── */
.ashby-job-posting-header {
  background: #0f2350;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ashby-job-posting-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.ashby-job-posting-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 8px;
}

.ashby-job-posting-left-pane {
  font-size: 14px;
  color: #4a4844;
  line-height: 1.8;
}

.ashby-job-posting-right-pane {
  background: #ffffff;
  border: 1px solid #e2e0da;
  border-radius: 12px;
  overflow: hidden;
}

/* Tabs */
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5a5855;
  padding: 12px 20px;
  transition: color 0.15s;
}

.ashby-job-posting-right-pane-tab-slider {
  background: #0f2350;
  height: 3px;
  border-radius: 2px;
}

/* Back button */
.ashby-job-board-back-to-all-jobs-button {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0f2350;
  background: transparent;
  border: 1px solid #d6d3cc;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  background: #f4f3ef;
  border-color: #0f2350;
}

/* ── Application form ── */
.ashby-application-form-container {
  padding: 24px;
}

.ashby-application-form-section-header-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: #0f2350;
  margin-bottom: 4px;
}

.ashby-application-form-section-header-description {
  font-size: 13px;
  color: #7a7875;
  margin-bottom: 16px;
}

.ashby-application-form-question-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1917;
  margin-bottom: 4px;
}

.ashby-application-form-question-description {
  font-size: 12px;
  color: #9a9893;
  margin-bottom: 6px;
}

.ashby-application-form-field-entry {
  margin-bottom: 18px;
}

/* Submit button */
.ashby-application-form-submit-button {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: #0f2350;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.ashby-application-form-submit-button:hover {
  background: #1a3a7a;
}

.ashby-application-form-submit-button:active {
  transform: scale(0.98);
}

/* Success message */
.ashby-application-form-success-container {
  background: #eaf3de;
  border: 1px solid #c0dd97;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  color: #3b6d11;
  text-align: center;
}

/* Failure message */
.ashby-application-form-failure-container {
  background: #fcebeb;
  border: 1px solid #f7c1c1;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  color: #a32d2d;
}

/* Autofill */
.ashby-application-form-autofill-input-root {
  background: #eef6fb;
  border: 1px dashed #00aeef;
  border-radius: 12px;
  padding: 18px;
}

.ashby-application-form-autofill-input-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f2350;
}

.ashby-application-form-autofill-input-description {
  font-size: 13px;
  color: #5a5855;
  margin-top: 4px;
}
