/* ==========================================================================
   YAZIO theme for the Ashby embedded job board (FE-1084).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;800&display=swap');

:root {
    /* Replace Ashby's washed blue with our black â€” drives tabs, links,
       radio/checkbox accents, upload CTAs and other "primary" accents. */
    --colorPrimary600: #0C0E0E;
    --colorPrimary900: #0C0E0E;

    --fontFamily: 'Noto Sans', 'Helvetica', 'Arial', sans-serif;

    --borderRadiusContainer: 16px;
    --borderRadiusControl: 12px;
    --borderRadiusButton: 16px;
    --borderWidthBold: 2px;
}

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--colorPrimary900);
    /* Let our page background (gradient) show through. */
    background-color: transparent;
}

/* --------------------------------------------------------------------------
   Job board (listing + filters)
   -------------------------------------------------------------------------- */

/* Our page renders its own H1 with the live count â€” hide the embed's. */
.ashby-job-board-heading {
    display: none;
}

.ashby-job-board-filter {
    color: var(--colorPrimary900);
    border-color: #DCE1E4;
}

.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
    color: #595F60;
}

.ashby-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-title,
.ashby-job-posting-heading {
    font-weight: 800;
}

.ashby-department-heading {
    margin-left: 0;
}

/* Desktop: transparent so the page gradient shows through. */
.ashby-job-posting-brief {
    border-radius: var(--borderRadiusControl, 12px);
    border-width: 0;
    background: transparent;
}

/* Mobile: white bg, 2px border, no shadow. */
@media (max-width: 895px) {
    button[class*='_filtersOpen'] {
        text-decoration: none;
    }

    div[class*='_filtersContainer'],
    .ashby-job-posting-brief {
        background-color: #ffffff;
        border: 2px solid #DCE1E4;
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   Application form
   -------------------------------------------------------------------------- */
.ashby-application-form-question-title {
    color: var(--colorPrimary900);
    font-weight: 700;
}

.ashby-application-form-question-description {
    color: #595f60;
}

/* Let our page background (gradient) show through. */
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane div[class*='_container'] {
    background-color: transparent;
}

.ashby-application-form-field-entry input[type='text'],
.ashby-application-form-field-entry input[type='email'],
.ashby-application-form-field-entry input[type='tel'],
.ashby-application-form-field-entry input[type='number'],
.ashby-application-form-field-entry input[aria-autocomplete='list'],
.ashby-application-form-field-entry textarea,
.ashby-application-form-field-entry select {
    color: var(--colorPrimary900);
    background: #ffffff;
    border: 2px solid #DCE1E4;
}

.ashby-application-form-field-entry input[type='text']:focus,
.ashby-application-form-field-entry input[type='email']:focus,
.ashby-application-form-field-entry input[type='tel']:focus,
.ashby-application-form-field-entry textarea:focus,
.ashby-application-form-field-entry select:focus {
    border-color: var(--colorPrimary900);
    outline: none;
}

.ashby-application-form-field-entry button[class*='_option'] {
    border: 2px solid #DCE1E4;
}

.ashby-application-form-container p a,
.ashby-job-posting-right-pane p a {
    text-decoration: underline;
    text-decoration-color: #DCE1E4;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Upload buttons
   Black instead of blue, no shadow.
   -------------------------------------------------------------------------- */

.ashby-application-form-autofill-input-base-layer button[class*='_ctaButton'],
.ashby-application-form-field-entry input[type='file'] ~ div[class*='_instructions'] > button {
    border-radius: var(--borderRadiusControl, 12px);
    box-shadow: none;
}

.ashby-application-form-autofill-input-base-layer button[class*='_ctaButton']:hover,
.ashby-application-form-field-entry input[type='file'] ~ div[class*='_instructions'] > button:hover {
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Submit button â€” styled like YettieActionButton (primary)
   -------------------------------------------------------------------------- */

.ashby-application-form-submit-button {
    background: #262828;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--borderRadiusButton, 16px);
    box-shadow: none;
}

.ashby-application-form-submit-button:hover,
button[class*='_primary']:hover {
    box-shadow: none !important;
}
