/* ============================================================
   TRADEPOST — ASHBY JOB BOARD
   Ashby → Settings → Job Board → Custom CSS
   ============================================================ */

:root {
  --tp-purple:      #7100FF;
  --tp-purple-deep: #5A00CC;
  --tp-black:       #000000;
  --tp-white:       #FFFFFF;
  --tp-green:       #4CAF50;
  --tp-raspberry:   #FF2157;
  --tp-gray-80:     #333333;
  --tp-gray-70:     #4D4D4D;
  --tp-gray-50:     #808080;
  --tp-gray-20:     #CCCCCC;
  --tp-gray-10:     #E6E6E6;
  --tp-gray-05:     #F2F2F2;
  --tp-canvas:      #FCFCFC;

  --colorPrimary900: var(--tp-purple-deep);
  --colorPrimary600: var(--tp-purple);
  --colorAppBackground: var(--tp-canvas);

  --widthMaxJobBoard: 1000px;
  --borderRadiusContainer: 16px;
  --borderRadiusControl: 12px;
  --borderRadiusButton: 999px;

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

/* ============================================================
   BOARD HEADING + FILTERS
   ============================================================ */

.ashby-job-board-heading {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tp-black);
}

.ashby-job-board-heading-count { display: none; }

.ashby-job-board-filters-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-gray-50);
}

.ashby-job-board-reset-filters-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-purple);
  cursor: pointer;
}

.ashby-job-board-filter,
.ashby-job-board-filter select {
  background: var(--tp-gray-05);
  border: none;
  border-radius: 999px;
  color: var(--tp-black);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ============================================================
   DEPARTMENT HEADINGS
   ============================================================ */

.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  font-size: 1.375rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--tp-black) !important;
  margin: 2.5rem 0 0.75rem;
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tp-gray-50);
}

/* ============================================================
   POSTING ROWS
   .ashby-job-posting-brief IS the card; title and details are
   siblings inside it. Style the wrapper, reset the children.
   ============================================================ */

.ashby-job-posting-brief {
  position: relative;
  background: var(--tp-gray-05);
  border: none;
  border-radius: var(--borderRadiusContainer);
  padding: 1.35rem 1.5rem;
  margin-bottom: 0.875rem !important;
  overflow: hidden;
  transition: background 0.12s ease;
}

/* Children stay plain — no fill, no radius, no pseudo-elements. */
.ashby-job-posting-brief > * {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.ashby-job-posting-brief > *::after,
.ashby-job-posting-brief::after {
  content: none;
}

.ashby-job-posting-brief:hover {
  background: var(--tp-gray-10);
}

.ashby-job-posting-brief-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tp-black);
  margin-bottom: 0.3rem;
}

.ashby-job-posting-brief-details {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tp-gray-50);
}

/* ============================================================
   POSTING PAGE — HEADER
   ============================================================ */

.ashby-job-posting-header,
.ashby-job-posting-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--tp-black);
  margin-bottom: 3rem !important;
  padding-bottom: 0 !important;
}

/* Both panes start at the same y so the tabs sit level with
   the first sidebar item. */
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ashby-job-board-back-to-all-jobs-button {
  background: var(--tp-gray-05);
  border: none;
  border-radius: 999px;
  color: var(--tp-gray-70);
  font-weight: 600;
  transition: background 0.12s ease;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  background: var(--tp-gray-10);
  color: var(--tp-black);
}

/* ============================================================
   LEFT PANE = metadata sidebar (Location, Comp, etc.)
   NOT the job description.
   ============================================================ */

.ashby-job-posting-left-pane h2,
.ashby-job-posting-left-pane h3,
.ashby-job-posting-left-pane strong {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--tp-black);
}

.ashby-job-posting-left-pane {
  font-size: 0.9375rem;
  color: var(--tp-gray-70);
}

/* ============================================================
   RIGHT PANE = tabs + the actual job description
   ============================================================ */

.ashby-job-posting-right-pane {
  background: var(--tp-white);
  border: none;
  border-radius: var(--borderRadiusContainer);
}

/* Apply button — flat, no hover state at all. */
.ashby-job-posting-right-pane button,
.ashby-job-posting-right-pane a[role="button"] {
  transition: none !important;
}

.ashby-job-posting-right-pane button:hover,
.ashby-job-posting-right-pane button:focus,
.ashby-job-posting-right-pane button:active,
.ashby-job-posting-right-pane a[role="button"]:hover,
.ashby-job-posting-right-pane a[role="button"]:active {
  background: var(--tp-purple) !important;
  color: var(--tp-white) !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.ashby-job-posting-right-pane-tab-slider {
  border-bottom: 1px solid var(--tp-gray-10);
}

.ashby-job-posting-right-pane-overview-tab {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tp-gray-80);
}

/* JD section headers: Your Role / What We Look For / Compensation */
.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 {
  font-size: 1.375rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--tp-black) !important;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.ashby-job-posting-right-pane-overview-tab p {
  margin: 0 0 1.1rem;
}

.ashby-job-posting-right-pane-overview-tab ul {
  padding-left: 1.25rem;
  margin: 1rem 0 1.5rem;
}

.ashby-job-posting-right-pane-overview-tab li {
  margin-bottom: 0.8rem;
  padding-left: 0.15rem;
}

.ashby-job-posting-right-pane-overview-tab li::marker {
  color: var(--tp-purple);
}

.ashby-job-posting-right-pane-overview-tab strong,
.ashby-job-posting-right-pane-overview-tab b {
  color: var(--tp-black);
  font-weight: 700;
}

.ashby-job-posting-right-pane-overview-tab a {
  color: var(--tp-purple);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */

.ashby-application-form-section-header-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-black);
}

.ashby-application-form-section-header-description,
.ashby-application-form-question-description,
.ashby-application-form-texting-consent-description {
  font-size: 0.875rem;
  color: var(--tp-gray-50);
}

.ashby-application-form-question-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tp-black);
}

.ashby-application-form-field-entry input,
.ashby-application-form-field-entry textarea,
.ashby-application-form-field-entry select {
  background: var(--tp-gray-05);
  border: none;
  border-radius: var(--borderRadiusControl);
  color: var(--tp-black);
  font-size: 0.9375rem;
  transition: box-shadow 0.12s ease;
}

.ashby-application-form-field-entry input:focus,
.ashby-application-form-field-entry textarea:focus,
.ashby-application-form-field-entry select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--tp-black);
}

.ashby-application-form-field-entry input::placeholder,
.ashby-application-form-field-entry textarea::placeholder {
  color: var(--tp-gray-50);
}

.ashby-application-form-autofill-input-root {
  background: var(--tp-gray-05);
  border: 1.5px dashed var(--tp-gray-20);
  border-radius: var(--borderRadiusContainer);
}

.ashby-application-form-autofill-input-root[data-state="drag"] {
  border-color: var(--tp-purple);
}

.ashby-application-form-autofill-input-title {
  font-weight: 700;
  color: var(--tp-black);
}

.ashby-application-form-autofill-input-description { color: var(--tp-gray-50); }
.ashby-application-form-autofill-input-icon { color: var(--tp-purple); }

.ashby-application-form-submit-button {
  background: var(--tp-purple);
  color: var(--tp-white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--borderRadiusButton);
  padding: 0.85rem 2rem;
  transition: none !important;
}

/* No hover state — stays flat on hover, focus, and press. */
.ashby-application-form-submit-button:hover,
.ashby-application-form-submit-button:focus,
.ashby-application-form-submit-button:active {
  background: var(--tp-purple) !important;
  color: var(--tp-white) !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.ashby-application-form-success-container {
  background: rgba(76,175,80,0.08);
  border-left: 4px solid var(--tp-green);
  border-radius: var(--borderRadiusControl);
  padding: 1rem 1.25rem;
}

.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container {
  background: rgba(255,33,87,0.07);
  border-left: 4px solid var(--tp-raspberry);
  border-radius: var(--borderRadiusControl);
  padding: 1rem 1.25rem;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {
  .ashby-job-board-heading { font-size: 2rem; }
  .ashby-job-posting-header,
  .ashby-job-posting-heading { font-size: 1.75rem; }
  .ashby-job-posting-brief { padding: 1.15rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
