:root {
  --bild-bg: #000000;
  --bild-card: #0a0a0a;
  --bild-border: rgba(255, 255, 255, 0.18);
  --bild-border-subtle: rgba(255, 255, 255, 0.08);
  --bild-border-hover: #8BC53F;
  --bild-text: #ffffff;
  --bild-muted: rgba(255, 255, 255, 0.6);
  --bild-accent: #8BC53F;
}

/* ---------- Global ---------- */
html, body {
  background: var(--bild-bg) !important;
  color: var(--bild-text) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Kill white header bar on hosted board ---------- */
/* Ashby uses CSS modules with hashed class names like _navContainer_gm7mg_36.
   Target by the stable prefix via attribute-contains selectors. */
body > header,
header,
nav,
[class*="navContainer"],
[class*="_nav"],
[class*="navLogoLink"],
[class*="navLogoWordmark"],
[class*="header"],
[class*="Header"],
[class*="navbar"],
[class*="Navbar"] {
  background: var(--bild-bg) !important;
  background-color: var(--bild-bg) !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Nav list reset — force full width and center logo */
ul[class*="navContainer"] {
  list-style: none !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}
/* Pin back-to-jobs button to the left so it doesn't push the logo off-center */
.ashby-job-board-back-to-all-jobs-button {
  position: absolute !important;
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
ul[class*="navContainer"] > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Kill empty li siblings that offset the logo */
ul[class*="navContainer"] > li:empty {
  display: none !important;
}
[class*="navLogoLink"] {
  display: inline-flex !important;
}
[class*="navLogoWordmarkImage"] {
  max-height: 44px !important;
  width: auto !important;
}

/* ---------- Buttons ---------- */
/* Default: outlined pill in accent color (Weave-style).
   Exclude back-to-all-jobs link so its hover doesn't clash. */
button[class*="_button_"]:not(.ashby-job-board-back-to-all-jobs-button),
[class*="_button_"][class*="_primary_"]:not(.ashby-job-board-back-to-all-jobs-button) {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bild-accent) !important;
  border: 1.5px solid var(--bild-accent) !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  cursor: pointer !important;
}
button[class*="_button_"]:not(.ashby-job-board-back-to-all-jobs-button) *,
[class*="_button_"][class*="_primary_"]:not(.ashby-job-board-back-to-all-jobs-button) * {
  color: var(--bild-accent) !important;
}
button[class*="_button_"]:not(.ashby-job-board-back-to-all-jobs-button):hover,
[class*="_button_"][class*="_primary_"]:not(.ashby-job-board-back-to-all-jobs-button):hover {
  background: var(--bild-accent) !important;
  color: #000 !important;
}
button[class*="_button_"]:not(.ashby-job-board-back-to-all-jobs-button):hover *,
[class*="_button_"][class*="_primary_"]:not(.ashby-job-board-back-to-all-jobs-button):hover * {
  color: #000 !important;
}

/* Back-to-all-jobs button: just the arrow, no button chrome.
   Max-specificity rules with attribute selector to win every cascade. */
[class~="ashby-job-board-back-to-all-jobs-button"],
[class~="ashby-job-board-back-to-all-jobs-button"]:hover,
[class~="ashby-job-board-back-to-all-jobs-button"]:focus,
[class~="ashby-job-board-back-to-all-jobs-button"]:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--bild-accent) !important;
  padding: 8px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
[class~="ashby-job-board-back-to-all-jobs-button"]:hover {
  opacity: 0.7 !important;
}
[class~="ashby-job-board-back-to-all-jobs-button"] *,
[class~="ashby-job-board-back-to-all-jobs-button"]:hover * {
  color: var(--bild-accent) !important;
  fill: var(--bild-accent) !important;
  stroke: var(--bild-accent) !important;
  background: transparent !important;
}

/* The big "Apply for this Job" CTA uses _greedy_ modifier (full width) —
   give it solid fill to differentiate from upload buttons */
button[class*="_greedy_"],
a[class*="_greedy_"],
[class*="_button_"][class*="_greedy_"] {
  background: var(--bild-accent) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--bild-accent) !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  text-decoration: none !important;
}
button[class*="_greedy_"] *,
[class*="_button_"][class*="_greedy_"] * {
  color: #ffffff !important;
}
button[class*="_greedy_"]:hover,
[class*="_button_"][class*="_greedy_"]:hover {
  opacity: 0.9 !important;
  background: var(--bild-accent) !important;
}

/* ---------- Form inputs ---------- */
.ashby-application-form-container input[type="text"],
.ashby-application-form-container input[type="email"],
.ashby-application-form-container input[type="tel"],
.ashby-application-form-container input[type="url"],
.ashby-application-form-container input[type="number"],
.ashby-application-form-container textarea,
.ashby-application-form-container select,
input[class*="_input_"],
textarea[class*="_input_"],
[class*="_textInput_"],
[class*="_textArea_"] {
  background: #050505 !important;
  color: var(--bild-text) !important;
  border: 1px solid var(--bild-border) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  width: 100% !important;
  transition: border-color 0.15s ease !important;
}
.ashby-application-form-container input::placeholder,
.ashby-application-form-container textarea::placeholder,
input[class*="_input_"]::placeholder,
[class*="_textInput_"]::placeholder {
  color: rgba(255,255,255,0.35) !important;
}
.ashby-application-form-container input:focus,
.ashby-application-form-container textarea:focus,
.ashby-application-form-container select:focus,
input[class*="_input_"]:focus,
[class*="_textInput_"]:focus {
  outline: none !important;
  border-color: var(--bild-accent) !important;
}

/* Field labels */
.ashby-application-form-question-title,
[class*="_fieldLabel_"],
[class*="_label_"] {
  color: var(--bild-text) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
.ashby-application-form-field-entry {
  margin-bottom: 20px !important;
}

/* Required asterisk */
[class*="_required_"],
.ashby-application-form-question-title span {
  color: var(--bild-accent) !important;
}

/* Yes/No buttons — shrink the default button padding for any button that's
   a direct child of a boolean field. Target by value attribute and role. */
button[value="Yes"],
button[value="No"],
button[aria-label="Yes"],
button[aria-label="No"],
[role="radiogroup"] button,
[class*="_yesNoInput"] button,
[class*="_booleanInput"] button {
  padding: 8px 20px !important;
  font-size: 14px !important;
  min-width: 64px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--bild-muted) !important;
  border: 1px solid var(--bild-border) !important;
  font-weight: 500 !important;
}
button[value="Yes"][aria-pressed="true"],
button[value="No"][aria-pressed="true"],
[role="radiogroup"] button[aria-pressed="true"],
[class*="_yesNoInput"] button[aria-pressed="true"],
[class*="_booleanInput"] button[aria-pressed="true"] {
  background: var(--bild-accent) !important;
  color: #fff !important;
  border-color: var(--bild-accent) !important;
}
[role="radiogroup"] {
  display: inline-flex !important;
  gap: 8px !important;
}

/* Resume drag-and-drop zone */
.ashby-application-form-autofill-input-root,
[class*="_dropzone_"],
[class*="_fileUpload_"] {
  background: #050505 !important;
  border: 1.5px dashed var(--bild-border) !important;
  border-radius: 12px !important;
  padding: 32px 24px !important;
  transition: border-color 0.15s ease !important;
}
.ashby-application-form-autofill-input-root:hover,
[class*="_dropzone_"]:hover {
  border-color: var(--bild-accent) !important;
}

/* Autofill-from-resume banner — single border only */
.ashby-application-form-autofill-pane {
  background: #050505 !important;
  border: 1px solid var(--bild-border) !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin-bottom: 24px !important;
}
/* Kill borders on any nested wrapper inside the autofill pane */
.ashby-application-form-autofill-pane *,
.ashby-application-form-autofill-input-base-layer,
.ashby-application-form-autofill-input-drag-layer,
.ashby-application-form-autofill-input-pending-layer,
.ashby-application-form-autofill-input-description,
.ashby-application-form-autofill-input-title,
.ashby-application-form-autofill-input-form-alert,
.ashby-application-form-autofill-uploader {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Restore the Upload file button's border inside the autofill pane */
.ashby-application-form-autofill-pane button {
  border: 1.5px solid var(--bild-accent) !important;
}

/* ---------- Divider lines on job detail sidebar ---------- */
hr, [class*="_divider_"], [class*="_separator_"] {
  border: none !important;
  border-top: 1px solid var(--bild-border-subtle) !important;
  background: transparent !important;
  height: 1px !important;
  margin: 16px 0 !important;
}

/* ---------- Yes/No (and any small boolean button in a field) ---------- */
.ashby-application-form-field-entry button:not([class*="_greedy_"]) {
  padding: 8px 22px !important;
  font-size: 13px !important;
  min-width: 80px !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  border: 1px solid var(--bild-border) !important;
  background: transparent !important;
  color: var(--bild-muted) !important;
  font-weight: 500 !important;
  margin-right: 8px !important;
}
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-pressed="true"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-checked="true"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-selected="true"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_selected_"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_active_"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_checked_"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[data-selected="true"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[data-state="on"],
.ashby-application-form-field-entry button:not([class*="_greedy_"])[data-state="checked"] {
  background: var(--bild-accent) !important;
  color: #fff !important;
  border-color: var(--bild-accent) !important;
}
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-pressed="true"] *,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-checked="true"] *,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_selected_"] *,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_active_"] * {
  color: #fff !important;
}
.ashby-application-form-field-entry button:not([class*="_greedy_"]):not([aria-pressed="true"]):not([aria-checked="true"]):not([aria-selected="true"]):not([class*="_selected_"]):not([class*="_active_"]):not([class*="_checked_"]):not([data-state="on"]):not([data-state="checked"]):hover {
  border-color: var(--bild-accent) !important;
  color: var(--bild-accent) !important;
}
/* Selected + hover — identical to selected state, no hover change */
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-pressed="true"]:hover,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[aria-checked="true"]:hover,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_selected_"]:hover,
.ashby-application-form-field-entry button:not([class*="_greedy_"])[class*="_active_"]:hover {
  background: var(--bild-accent) !important;
  color: #fff !important;
  border-color: var(--bild-accent) !important;
  opacity: 1 !important;
}

/* ---------- Tabs (Overview / Application) ---------- */
a[class*="_tab_"],
[class*="_tab_"]:not([class*="_tabSlider_"]) {
  color: var(--bild-muted) !important;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 8px !important;
  text-decoration: none !important;
}
a[class*="_tab_"][class*="_active_"],
a[class*="_active_"] {
  color: var(--bild-accent) !important;
  border-bottom: 2px solid var(--bild-accent) !important;
}
a[class*="_tab_"] span,
a[class*="_active_"] span {
  color: inherit !important;
}

/* ---------- Hide filters entirely ---------- */
.ashby-job-board-filter,
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label,
[class*="filter"],
[class*="Filter"] {
  display: none !important;
}

a { color: var(--bild-accent) !important; text-decoration: none !important; }
a:hover { opacity: 0.85 !important; }

/* Job description prose links — bold, underlined, obvious.
   The description body lives in [class*="_descriptionText_"] and
   [class*="_description_"][role="tabpanel"] wrappers. */
[class*="_descriptionText_"] a:not([class*="_button_"]):not([class*="_greedy_"]),
[class*="_description_"] a:not([class*="_button_"]):not([class*="_greedy_"]):not([class*="_container_"]) {
  color: var(--bild-accent) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--bild-accent) !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1.5px !important;
}
[class*="_descriptionText_"] a:not([class*="_button_"]):not([class*="_greedy_"]):hover,
[class*="_description_"] a:not([class*="_button_"]):not([class*="_greedy_"]):not([class*="_container_"]):hover {
  color: #b4f000 !important;
  text-decoration-color: #b4f000 !important;
  text-decoration-thickness: 2px !important;
  opacity: 1 !important;
}

/* ---------- Job Board container ---------- */
.ashby-job-posting-brief-list {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 880px !important;
  margin: 0 auto !important;
  padding: 48px 24px 80px !important;
}

/* ---------- Heading ("Open Positions (1)") — hidden ---------- */
.ashby-job-board-heading,
.ashby-job-board-heading-count {
  display: none !important;
}

/* ---------- Filter link ---------- */
.ashby-job-board-filter,
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
  color: var(--bild-accent) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

/* ---------- Department headings ("Engineering") ---------- */
.ashby-job-posting-brief-department-heading,
.ashby-department-heading {
  color: var(--bild-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 32px 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--bild-border) !important;
}

/* ---------- Job card ---------- */
.ashby-job-posting-brief {
  background: var(--bild-card) !important;
  border: 1px solid var(--bild-border) !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin-bottom: 12px !important;
  transition: border-color 0.2s ease, transform 0.2s ease !important;
}
.ashby-job-posting-brief:hover {
  border-color: var(--bild-border-hover) !important;
  transform: translateY(-1px);
}

.ashby-job-posting-brief-title {
  color: var(--bild-text) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: var(--bild-accent) !important;
}

.ashby-job-posting-brief-details {
  color: var(--bild-muted) !important;
  font-size: 14px !important;
}

/* ---------- Individual job posting page ---------- */
.ashby-job-posting-heading,
.ashby-job-posting-header {
  color: var(--bild-text) !important;
}

/* Force dark bg on BOTH panes and every nested element */
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane,
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab,
.ashby-job-posting-right-pane *,
.ashby-job-posting-left-pane * {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bild-text) !important;
}

/* Job description prose content */
.ashby-job-posting-right-pane-overview-tab p,
.ashby-job-posting-right-pane-overview-tab li,
.ashby-job-posting-right-pane-overview-tab span,
.ashby-job-posting-right-pane-overview-tab div {
  color: var(--bild-text) !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 h5,
.ashby-job-posting-right-pane-overview-tab h6 {
  color: var(--bild-text) !important;
}

/* Tab slider underline */
.ashby-job-posting-right-pane-tab-slider {
  background: var(--bild-accent) !important;
}

.ashby-job-board-back-to-all-jobs-button {
  color: var(--bild-accent) !important;
}

/* ---------- Aggressive: kill any white bg that Ashby renders ---------- */
main, main *, section, article,
[class*="container"],
[class*="Container"],
[class*="pane"],
[class*="Pane"],
[class*="content"],
[class*="Content"] {
  background-color: transparent !important;
}

/* ---------- Application form ---------- */
.ashby-application-form-container {
  background: transparent !important;
  border: none !important;
  color: var(--bild-text) !important;
  padding: 0 !important;
}
.ashby-application-form-section-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--bild-text) !important;
}
.ashby-application-form-section-header-title,
.ashby-application-form-question-title {
  color: var(--bild-text) !important;
}
.ashby-application-form-question-description,
.ashby-application-form-section-header-description {
  color: var(--bild-muted) !important;
}
.ashby-application-form-submit-button {
  background: var(--bild-accent) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
}
.ashby-application-form-submit-button:hover { opacity: 0.9; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .ashby-job-posting-brief-list { padding: 32px 16px 60px !important; }
  .ashby-job-board-heading { font-size: 26px !important; }

  /* Un-stick the Overview/Application tab bar on mobile so it doesn't
     overlap the job description. Also give the tab container a solid bg. */
  a[class*="_tab_"],
  [class*="_tab_"],
  [class*="_tabList_"],
  [class*="_tabs_"],
  [role="tablist"] {
    position: static !important;
    top: auto !important;
    background: var(--bild-bg) !important;
  }

  /* Add breathing room above the content panes so tabs never overlap */
  .ashby-job-posting-right-pane-overview-tab,
  .ashby-job-posting-right-pane-application-tab,
  .ashby-job-posting-right-pane {
    padding-top: 16px !important;
  }
}
