/* ============================================================
   Turbo Law — Ashby Job Board Embed: Dark Theme
   Paste into Ashby Admin -> Job Boards -> Theme -> Custom CSS,
   Save, then hard-refresh the page (Cmd/Ctrl + Shift + R).
   ============================================================ */

:root {
  --colorPrimary900: #F06522 !important;
  --colorPrimary600: #F97316 !important;
  --colorAppBackground: #0B101E !important;
  --fontFamily: "Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", sans-serif !important;

  /* Shared tokens */
  --tlBorder: rgba(255, 255, 255, 0.08);
  --tlSurface: rgba(255, 255, 255, 0.03);
  --tlSurfaceHover: rgba(255, 255, 255, 0.06);
  --tlInput: #131B2F;
  --tlInputBorder: #374151;
  --tlText: #E5E9F0;
  --tlTextMuted: rgba(229, 233, 240, 0.65);
  --borderRadiusContainer: 12px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 8px;
}

/* ---- Headings: list view + detail title ---- */
.ashby-job-board-heading,
.ashby-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-heading,
.ashby-job-posting-header {
  color: #FFFFFF !important;
}
.ashby-job-board-heading-count,
.ashby-job-board-filters-label {
  color: var(--tlTextMuted) !important;
}

/* ---- Filters (list view) — force dark bg onto the control AND every child,
   so the collapsed box can't render white behind the white text ---- */
.ashby-job-board-filter,
.ashby-job-board-filter * {
  background-color: var(--tlInput) !important;
  color: #FFFFFF !important;
}
.ashby-job-board-filter,
.ashby-job-board-filter select,
.ashby-job-board-filter button,
.ashby-job-board-filter [role="button"] {
  border: 1px solid var(--tlInputBorder) !important;
  border-radius: var(--borderRadiusControl) !important;
}
.ashby-job-board-filter option {
  background-color: var(--tlInput) !important;
  color: #FFFFFF !important;
}

/* ---- Job cards (list view) ---- */
.ashby-job-posting-brief {
  background-color: var(--tlSurface) !important;
  border: 1px solid var(--tlBorder) !important;
  border-radius: var(--borderRadiusContainer) !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  transition: all 0.2s ease !important;
}
.ashby-job-posting-brief:hover {
  background-color: var(--tlSurfaceHover) !important;
  border-color: rgba(240, 101, 34, 0.4) !important;
}
.ashby-job-posting-brief-title { color: var(--colorPrimary900) !important; }
.ashby-job-posting-brief-details,
.ashby-job-posting-brief-details * { color: var(--tlTextMuted) !important; }

/* ---- Detail view: left meta sidebar as a dark card ---- */
.ashby-job-posting-left-pane {
  background-color: var(--tlSurface) !important;
  border: 1px solid var(--tlBorder) !important;
  border-radius: var(--borderRadiusContainer) !important;
  padding: 20px !important;
  color: var(--tlText) !important;
}

/* ---- Detail view: OVERVIEW — fix: kill the white on the inner content element ---- */
.ashby-job-posting-right-pane,
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-overview-tab * {
  background-color: transparent !important;
}
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-overview-tab * {
  color: var(--tlText) !important;
}
.ashby-job-posting-right-pane-overview-tab h1,
.ashby-job-posting-right-pane-overview-tab h2,
.ashby-job-posting-right-pane-overview-tab h3,
.ashby-job-posting-right-pane-overview-tab h4,
.ashby-job-posting-right-pane-overview-tab strong,
.ashby-job-posting-right-pane-overview-tab b {
  color: #FFFFFF !important;
}
.ashby-job-posting-right-pane-overview-tab a {
  color: var(--colorPrimary600) !important;
}

/* ---- Tabs (Overview / Application) ---- */
.ashby-job-posting-right-pane-tab-slider {
  border-bottom: 1px solid var(--tlBorder) !important;
}

/* ---- Back-to-all-jobs button ---- */
.ashby-job-board-back-to-all-jobs-button {
  background: transparent !important;
  color: var(--tlText) !important;
  border: 1px solid var(--tlBorder) !important;
  border-radius: var(--borderRadiusButton) !important;
}

/* ---- Application form ---- */
.ashby-application-form-container,
.ashby-application-form-section-container {
  background-color: transparent !important;
  color: var(--tlText) !important;
}
.ashby-application-form-question-title,
.ashby-application-form-section-header-title { color: #FFFFFF !important; }
.ashby-application-form-question-description,
.ashby-application-form-section-header-description,
.ashby-application-form-texting-consent-description { color: var(--tlTextMuted) !important; }

/* Inputs */
.ashby-application-form-container input,
.ashby-application-form-container textarea,
.ashby-application-form-container select {
  background-color: var(--tlInput) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--tlInputBorder) !important;
  border-radius: var(--borderRadiusControl) !important;
}
.ashby-application-form-container input::placeholder,
.ashby-application-form-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ---- "Autofill from resume" banner — fix: was rendering white ---- */
.ashby-application-form-autofill-pane *,
.ashby-application-form-autofill-input-base-layer,
.ashby-application-form-autofill-input-root,
.ashby-application-form-autofill-uploader {
  background-color: transparent !important;
}
.ashby-application-form-autofill-pane {
  background-color: var(--tlSurface) !important;
  border: 1px solid var(--tlBorder) !important;
  border-radius: var(--borderRadiusContainer) !important;
}
.ashby-application-form-autofill-input-title { color: #FFFFFF !important; }
.ashby-application-form-autofill-input-description { color: var(--tlTextMuted) !important; }

/* Resume dropzone */
.ashby-application-form-autofill-input-drag-layer {
  border: 1px dashed var(--tlBorder) !important;
}

/* ---- Submit button ---- */
.ashby-application-form-submit-button {
  background-color: var(--colorPrimary900) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--borderRadiusButton) !important;
}
.ashby-application-form-submit-button:hover {
  background-color: var(--colorPrimary600) !important;
}
