/* stylelint-disable */

/**
 * Ashby Embed CSS Overrides for ClickUp
 *
 * Based on Ashby's official CSS scaffold, customized to match
 * the ClickUp JobListings component styling and Figma design.
 */

/* ==========================================================================
   CSS Variables - ClickUp Design Tokens
   ========================================================================== */

   :root {
    /* Primary colors - ClickUp Purple */
    --colorPrimary900: #1d1b3e;
    --colorPrimary600: #7b68ee;
    --colorPrimaryHover: #6647f0;

    /* Container width */
    --widthMaxJobBoard: 1080px;

    /* Border radius - ClickUp rounded style */
    --borderRadiusContainer: 18px;
    --borderRadiusControl: 8px;
    --borderRadiusButton: 8px;

    /* Font family - ClickUp's font stack */
    --fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
      "Droid Sans", "Helvetica Neue", sans-serif;

    /* Background color */
    --colorAppBackground: transparent;

    /* Border colors */
    --colorBorderDefault: #e8e8e8;

    /* Text colors */
    --colorTextPrimary: #333333;
    --colorTextTertiary: #838383;
    --colorArrowDefault: #bbbbbb;
    --colorArrowHover: #6647f0;

    /* Container spacing overrides */
    --container-padding: 0;
    --filter-container-padding: 0;
  }

  /* ==========================================================================
     Job Board - Main Heading
     ========================================================================== */

  .ashby-job-board-heading {
    /* Completely hide/remove the parent _titles_ud4nd_34 container */
    display: none !important;
  }

  .ashby-job-board-heading-count {
    font-weight: 600;
    color: #6b7280;
  }

  /* ==========================================================================
     Job Board - Filters
     ========================================================================== */

  .ashby-job-board-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    background-color: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    letter-spacing: -0.15px;
    color: #8d8d8d !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* Add custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.66667 5.33333C4.48986 5.33333 4.32029 5.2631 4.19526 5.13807L0.195262 1.13807C-0.0650875 0.877722 -0.0650875 0.455612 0.195262 0.195263C0.455612 -0.0650873 0.877722 -0.0650876 1.13807 0.195262L4.66667 3.72386L8.19526 0.195263C8.45561 -0.0650871 8.87772 -0.0650868 9.13807 0.195263C9.39842 0.455612 9.39842 0.877722 9.13807 1.13807L5.13807 5.13807C5.01305 5.2631 4.84348 5.33333 4.66667 5.33333Z' fill='%238D8D8D'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 6px !important;
    padding-right: 32px !important;
  }

  /* Force the filter container to have no padding by targeting all filters */
  .ashby-job-board-filter:first-of-type {
    /* This targets the first filter and can affect parent container */
    transform: translateX(0);
    position: relative;
  }

  /* Use CSS that might cascade up to remove container padding */
  .ashby-job-board-filter:nth-child(1) {
    margin-top: 0 !important;
  }

  .ashby-job-board-filter:last-of-type {
    margin-bottom: 0 !important;
  }

  /* Remove padding from filter container by targeting the filter's parent context */
  .ashby-job-board-filter:first-child {
    margin-left: 0;
  }

  .ashby-job-board-filter:last-child {
    margin-right: 0;
  }

  .ashby-job-board-filter:hover {
    border-color: #d0d0d0 !important;
    background-color: #ffffff !important;
  }

  .ashby-job-board-filter:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #7b68ee !important;
    background-color: #ffffff !important;
  }

  .ashby-job-board-filter:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #7b68ee !important;
    background-color: #ffffff !important;
  }

  .ashby-job-board-filters-label,
  .ashby-job-board-reset-filters-label {
    display: none;
  }

  /* Remove padding from filter container by targeting its children */
  .ashby-job-board-filters-label {
    /* Target the parent container through this child */
    margin: 0 !important;
    padding: 0 !important;
  }

  .ashby-job-board-reset-filters-label {
    /* Target the parent container through this child */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Target any container that holds filters - this might affect the _filtersContainer */
  .ashby-job-board-filter:first-child {
    /* If filters are in a container, this targets the container indirectly */
    transform: translateX(0); /* This can sometimes force container recalculation */
  }

  /* Alternative: Use CSS that affects the layout context */
  .ashby-job-board-heading + * {
    /* Target the element that comes after the heading (likely the filter container) */
    padding: 0 !important;
    margin-top: 0;
  }

  /* Target the filter container more aggressively */
  .ashby-job-board-heading + * * {
    /* Target all elements inside the container after the heading */
    padding: 0 !important;
  }

  /* Use the hidden elements to target their parent containers */
  .ashby-job-board-filters-label:first-child,
  .ashby-job-board-reset-filters-label:first-child {
    /* When these are first children, affect parent */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  /* Use CSS that might affect the parent _titles_ud4nd_34 container */
  .ashby-job-board-heading:only-child {
    /* When heading is the only child, this might affect parent styling */
    margin: 0;
    padding: 0;
  }

  /* Try to hide the existing dropdown icon by targeting the filter container */
  .ashby-job-board-filter + * {
    /* Target the element after the filter (likely the icon container) */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* ==========================================================================
     Department Headings
     ========================================================================== */

  .ashby-department-heading {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    color: var(--colorTextTertiary);
    font-family: "Sometype Mono", monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 auto;
  }

  .ashby-department-heading:first-child {
    margin-top: 0;
  }

  .ashby-department-heading-level {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--colorBorderDefault);
    color: var(--colorTextTertiary);
    font-family: "Sometype Mono", monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
  }

  /* ==========================================================================
     Job Posting Brief (Job List View)
     ========================================================================== */

  .ashby-job-posting-brief-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    background-color: #ffffff;
  }

  .ashby-job-posting-brief-list > a {
    border-bottom: 1px solid var(--Core-Border-Default, #E8E8E8);
  }

  .ashby-job-posting-brief-list > a:last-child {
    border-bottom: none;
  }

  .ashby-job-posting-brief {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--colorBorderDefault);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 0;
    box-shadow: none;
    min-height: auto;
    height: auto;
    position: relative;
  }

  .ashby-job-posting-brief:last-child {
    border-bottom: none;
  }

  .ashby-job-posting-brief:hover {
    padding-right: 0;
    background-color: transparent;
  }

  .ashby-job-posting-brief:focus,
  .ashby-job-posting-brief:focus-visible {
    outline: 2px solid var(--colorPrimary600);
    outline-offset: 2px;
  }

  /* Add arrow using ::after pseudo-element on the main brief element */
  .ashby-job-posting-brief::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='14' viewBox='0 0 17 14' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.41074 13.0893C9.08531 12.7638 9.08531 12.2362 9.41074 11.9107L13.8215 7.5H0.833333C0.373096 7.5 0 7.1269 0 6.66667C0 6.20643 0.373096 5.83333 0.833333 5.83333H13.8215L9.41074 1.42259C9.08531 1.09715 9.08531 0.569515 9.41074 0.244078C9.73618 -0.0813593 10.2638 -0.0813593 10.5893 0.244078L16.4226 6.07741C16.748 6.40285 16.748 6.93049 16.4226 7.25592L10.5893 13.0893C10.2638 13.4147 9.73618 13.4147 9.41074 13.0893Z' fill='%23BBBBBB'/%3E%3C/svg%3E");
    display: block;
    width: 17px;
    height: 14px;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .ashby-job-posting-brief:hover::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='14' viewBox='0 0 17 14' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.41074 13.0893C9.08531 12.7638 9.08531 12.2362 9.41074 11.9107L13.8215 7.5H0.833333C0.373096 7.5 0 7.1269 0 6.66667C0 6.20643 0.373096 5.83333 0.833333 5.83333H13.8215L9.41074 1.42259C9.08531 1.09715 9.08531 0.569515 9.41074 0.244078C9.73618 -0.0813593 10.2638 -0.0813593 10.5893 0.244078L16.4226 6.07741C16.748 6.40285 16.748 6.93049 16.4226 7.25592L10.5893 13.0893C10.2638 13.4147 9.73618 13.4147 9.41074 13.0893Z' fill='%236647f0'/%3E%3C/svg%3E");
  }

  .ashby-job-posting-brief-details {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
    margin-top: 0;
  }

  .ashby-job-posting-brief-details p {
    color: var(--Core-Text-Tertiary, #838383);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    letter-spacing: -0.32px;
  }

  .ashby-job-posting-brief-title {
    display: block;
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.32px;
    text-decoration: none;
    width: 280px;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333;
    /* Text md/Medium */
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.32px;
  }

  .ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
    text-decoration: none;
  }

  /* Use the title element to also display location if needed */
  .ashby-job-posting-brief-title::after {
    content: attr(data-location);
    color: var(--colorTextTertiary);
    font-weight: 400;
    margin-left: 24px;
    white-space: nowrap;
  }

  .ashby-job-posting-brief-department-heading {
    color: var(--colorTextTertiary);
    font-family: "Sometype Mono", monospace;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
  }

  .ashby-job-posting-brief-department-heading-level {
    color: var(--colorTextTertiary);
    font-family: "Sometype Mono", monospace;
    font-weight: 500;
    font-size: 14px;
  }

  /* ==========================================================================
     Job Posting Full View
     ========================================================================== */

  .ashby-job-board-back-to-all-jobs-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--borderRadiusControl);
    background-color: #ffffff;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 22px;
  }

  .ashby-job-board-back-to-all-jobs-button:hover {
    background-color: #f3f4f6;
    border-color: rgba(0, 0, 0, 0.2);
    color: #111827;
  }

  .ashby-job-board-back-to-all-jobs-button:focus {
    outline: 2px solid var(--colorPrimary600);
    outline-offset: 2px;
  }

  .ashby-job-board-back-to-all-jobs-button svg {
    fill: var(--colorPrimary600) !important;
  }

  .ashby-job-posting-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .ashby-job-posting-heading {
    margin: 0;
    color: #111827;
    font-weight: 600;
    font-size: 26px;
    line-height: 2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  }

  .ashby-job-posting-left-pane {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
  }

  .ashby-job-posting-right-pane {
    background-color: #ffffff;
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
  }
  .ashby-job-posting-right-pane a {
    --spacingSmall: 30px;
  }
  .ashby-job-posting-right-pane a:hover {
    border-bottom: 0 !important;
  }

  .ashby-job-posting-right-pane-tab-slider {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--colorBorderDefault);
  }

  .ashby-job-posting-right-pane-overview-tab {
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .ashby-job-posting-right-pane-application-tab {
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  /* ==========================================================================
     Application Form
     ========================================================================== */

  .ashby-application-form-container {
    padding: 24px;
    background-color: #ffffff;
    border-radius: var(--borderRadiusContainer);
  }

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

  .ashby-application-form-question-title {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
  }

  .ashby-application-form-question-description {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
  }

  .ashby-application-form-section-container {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .ashby-application-form-section-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .ashby-application-form-section-header {
    margin-bottom: 20px;
  }

  .ashby-application-form-section-header-title {
    margin: 0 0 8px;
    color: #111827;
    font-weight: 700;
    font-size: 18px;
  }

  .ashby-application-form-section-header-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
  }

  .ashby-application-form-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--borderRadiusButton);
    background-color: var(--colorPrimary600);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .ashby-application-form-submit-button:hover {
    background-color: #5b48ce;
  }

  .ashby-application-form-submit-button:focus {
    outline: 2px solid var(--colorPrimary600);
    outline-offset: 2px;
  }

  .ashby-application-form-submit-button:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
  }

  .ashby-application-form-success-container {
    padding: 24px;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    color: #065f46;
    text-align: center;
  }

  .ashby-application-form-failure-container {
    padding: 24px;
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 12px;
    color: #991b1b;
    text-align: center;
  }

  .ashby-application-form-blocked-application-container {
    padding: 24px;
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    color: #92400e;
  }

  /* ==========================================================================
     Application Form - Auto-fill / Resume Upload
     ========================================================================== */

  .ashby-application-form-autofill-uploader {
    margin-bottom: 24px;
  }

  .ashby-application-form-autofill-pane {
    padding: 20px;
    border-radius: 12px;
  }

  .ashby-application-form-autofill-input-root {
    padding: 20px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background-color: #f9fafb;
    text-align: center;
    transition: all 0.2s ease;
  }

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

  .ashby-application-form-autofill-input-root[data-state="pending"] {
    border-color: #d1d5db;
    background-color: #f3f4f6;
  }

  .ashby-application-form-autofill-input-base-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ashby-application-form-autofill-input-drag-layer[data-state="active"] {
    display: block;
  }

  .ashby-application-form-autofill-input-drag-layer[data-state="hidden"] {
    display: none;
  }

  .ashby-application-form-autofill-input-pending-layer[data-state="active"] {
    display: block;
  }

  .ashby-application-form-autofill-input-pending-layer[data-state="hidden"] {
    display: none;
  }

  .ashby-application-form-autofill-input-title {
    margin-bottom: 8px;
    color: #111827;
    font-weight: 600;
    font-size: 16px;
  }

  .ashby-application-form-autofill-input-description {
    color: #6b7280;
    font-size: 14px;
  }

  .ashby-application-form-autofill-input-icon {
    color: var(--colorPrimary600);
    margin-bottom: 12px;
  }

  .ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
    color: #10b981;
    margin-top: 12px;
  }

  .ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
    color: #ef4444;
    margin-top: 12px;
  }

  /* ==========================================================================
     Survey Form
     ========================================================================== */

  .ashby-survey-form-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* ==========================================================================
     Text Message Consent
     ========================================================================== */

  .ashby-application-form-texting-consent-description {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
  }

  /* ==========================================================================
     Responsive Styles
     ========================================================================== */

  @media (max-width: 768px) {
    .ashby-job-board-heading {
      font-size: 28px;
    }

    .ashby-job-posting-brief-list {
      display: flex;
      flex-direction: column;
    }

    .ashby-job-posting-brief {
      padding: 16px 8px;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      position: relative;
      margin: 0;
    }

    .ashby-job-posting-brief::after {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      margin-left: 0;
      margin-right: 0;
    }

    .ashby-job-posting-brief-title {
      font-size: 16px;
      width: 100%;
      line-height: 20px;
      padding-right: 30px;
    }

    .ashby-job-posting-brief-details {
      margin-left: 0;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .ashby-job-posting-brief:hover {
      padding-right: 8px;
    }

    .ashby-department-heading {
      margin: 24px 0 0 0;
      padding: 8px 0;
    }

    .ashby-job-board-filter {
      min-width: 100%;
      width: 100%;
    }

    .ashby-job-posting-heading {
      font-size: 20px;
    }

    .ashby-application-form-container {
      padding: 16px;
    }
  }
