/* ============================================================
   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: #F5F5F5 !important;
  --fontFamily: "Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", sans-serif !important;

  /* Light theme tokens */
  --tlBorder: rgba(11, 16, 30, 0.08);
  --tlSurface: #fff;
  --tlSurfaceHover: #F9FAFB;
  --tlInput: #000;
  --tlInputBorder: #D1D5DB;

  /* Turbo Law corporate dark colors */
  --tlText: #0B101E;
  --tlTextMuted: #5B6474;
  --tlHeading: #0B101E;

  --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: #000 !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: #000 !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: #000000 !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: 12px 0 0 12px !important;
  padding: 20px !important;
  color: var(--tlText) !important;
}

.ashby-job-posting-right-pane>div {

  border-radius: 0 12px 12px 0;
  border-top: 1px solid var(--tlBorder) !important;
  border-bottom: 1px solid var(--tlBorder) !important;
  border-right: 1px solid var(--tlBorder) !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: #000000 !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: #fff !important;
  color: var(--tlText) !important;
  border: 1px solid var(--tlBorder) !important;
  border-radius: var(--borderRadiusButton) !important;
}

.ashby-job-board-back-to-all-jobs-button > svg:hover {
  fill: var(--colorPrimary600) !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: #000000 !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: #fff !important;
  color: #000000 !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: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.ashby-application-form-autofill-input-title {
  color: #000000 !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: #fff !important;
  border: none !important;
  border-radius: var(--borderRadiusButton) !important;
  width: calc(100% - 24px);
  margin-left: 12px;
  margin-bottom: 12px !important;
}

.ashby-application-form-submit-button:hover {
  background-color: var(--colorPrimary600) !important;
}

.ashby-application-form-container {
  padding-bottom: 0 !important;
}