/* stylelint-disable */

/*
 * Forge Job Board Custom Styles for Ashby
 * Brand Colors:
 * - Primary Dark: #0F0E0D (near black)
 * - Background: #FAFAFA (off-white)
 * - Footer/Dark BG: #18181B
 * - Text Primary: #18181B
 * - Text Secondary: #A1A1AA
 * - Accent Blue: #0284C7
 * - Accent Green: #047857
 * - Accent Orange: #EA580C
 * - Accent Purple: #6D28D9
 *
 * Typography:
 * - Headings: GeneralSans-Variable, sans-serif
 * - Body: Inter, sans-serif
 */

:root {
    /* Primary colors - using Forge's near-black for primary actions */
    --colorPrimary900: #0F0E0D;
    --colorPrimary600: #18181B;

    /* Max widths */
    --widthMaxJobBoard: 900px;

    /* Border radius - Forge uses subtle rounded corners */
    --borderRadiusContainer: 12px;
    --borderRadiusControl: 8px;
    --borderRadiusButton: 9999px; /* Forge uses pill-shaped buttons */

    /* Font families - matching Forge's typography */
    --fontFamily: "Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Helvetica", "Arial", sans-serif;

    /* Background color */
    --colorAppBackground: #FAFAFA;

    /* Custom Forge variables */
    --forge-text-primary: #18181B;
    --forge-text-secondary: #A1A1AA;
    --forge-text-muted: #71717A;
    --forge-border: #E4E4E7;
    --forge-card-bg: #F4F4F5;
    --forge-accent-blue: #0284C7;
    --forge-accent-green: #047857;
    --forge-accent-orange: #EA580C;
    --forge-accent-purple: #6D28D9;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Job Board Heading */
.ashby-job-board-heading {
    font-family: "GeneralSans-Variable", "Inter", sans-serif;
    font-weight: 600;
    color: var(--forge-text-primary);
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Job count badge */
.ashby-job-board-heading-count {
    color: var(--forge-text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

/* ============================================
   FILTERS
   ============================================ */

.ashby-job-board-filter {
    background-color: #FFFFFF;
    border: 1px solid var(--forge-border);
    border-radius: var(--borderRadiusControl);
    color: var(--forge-text-primary);
    font-family: var(--fontFamily);
    font-size: 0.875rem;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ashby-job-board-filter:hover {
    border-color: var(--forge-text-secondary);
}

.ashby-job-board-filter:focus {
    border-color: var(--colorPrimary900);
    box-shadow: 0 0 0 3px rgba(15, 14, 13, 0.1);
    outline: none;
}

.ashby-job-board-filters-label {
    color: var(--forge-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ashby-job-board-reset-filters-label {
    color: var(--forge-accent-blue);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ashby-job-board-reset-filters-label:hover {
    color: #0369A1;
}

/* ============================================
   JOB POSTING CARDS
   ============================================ */

.ashby-job-posting-brief {
    background-color: #FFFFFF;
    border: 1px solid var(--forge-border);
    border-radius: var(--borderRadiusContainer);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ashby-job-posting-brief:hover {
    border-color: #D4D4D8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.ashby-job-posting-brief-title {
    font-family: "GeneralSans-Variable", "Inter", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--forge-text-primary);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
    color: var(--colorPrimary900);
}

.ashby-job-posting-brief-details {
    color: var(--forge-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

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

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

.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
    font-family: "GeneralSans-Variable", "Inter", sans-serif;
    font-weight: 600;
    color: var(--forge-text-primary);
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--forge-border);
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
    color: var(--forge-accent-green);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* ============================================
   JOB POSTING PAGE
   ============================================ */

.ashby-job-posting-header {
    margin-bottom: 24px;
    margin-top: 16px;
}

.ashby-job-posting-heading {
    font-family: "GeneralSans-Variable", "Inter", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--forge-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-left: 24px;
}

.ashby-job-posting-left-pane {
    background-color: var(--forge-card-bg);
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
}

.ashby-job-posting-right-pane {
    background-color: #FFFFFF;
    border-radius: var(--borderRadiusContainer);
    border: 1px solid var(--forge-border);
    margin-top: 48px;
}

.ashby-job-posting-right-pane-tab-slider {
    background-color: var(--forge-card-bg);
    border-radius: var(--borderRadiusButton);
    padding: 4px;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
    border-radius: var(--borderRadiusButton);
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Apply for this Job button - match Submit Application style */
.ashby-job-posting-right-pane-overview-tab a[href*="application"],
.ashby-job-posting-right-pane button,
.ashby-job-posting-left-pane ~ * button,
button[class*="primary"],
a[class*="primary"],
.ashby-job-posting-right-pane a[role="button"],
.ashby-job-posting-right-pane-overview-tab button {
    background-color: #18181B !important;
    color: #FFFFFF !important;
    border: 1px solid #18181B !important;
    border-radius: 8px !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 32px !important;
    transition: all 0.2s ease;
    cursor: pointer;
    width: auto !important;
    max-width: 280px !important;
    display: block !important;
    margin: 24px auto 32px auto !important;
}

.ashby-job-posting-right-pane-overview-tab a[href*="application"]:hover,
.ashby-job-posting-right-pane button:hover,
button[class*="primary"]:hover,
a[class*="primary"]:hover,
.ashby-job-posting-right-pane a[role="button"]:hover,
.ashby-job-posting-right-pane-overview-tab button:hover {
    background-color: #3F3F46 !important;
    border-color: #3F3F46 !important;
    color: #FFFFFF !important;
}

/* Back button - compact pill with proper alignment */
.ashby-job-board-back-to-all-jobs-button {
    background-color: #18181B !important;
    color: #FFFFFF !important;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    transition: background-color 0.2s ease;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    width: auto !important;
    max-width: fit-content !important;
    margin-left: 24px !important;
    margin-bottom: 16px !important;
}

/* Force arrow icon to be white */
.ashby-job-board-back-to-all-jobs-button svg,
.ashby-job-board-back-to-all-jobs-button svg path,
.ashby-job-board-back-to-all-jobs-button * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

.ashby-job-board-back-to-all-jobs-button:hover {
    background-color: #3F3F46 !important;
    color: #FFFFFF !important;
}

.ashby-job-board-back-to-all-jobs-button:hover svg,
.ashby-job-board-back-to-all-jobs-button:hover svg path,
.ashby-job-board-back-to-all-jobs-button:hover * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

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

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

.ashby-application-form-section-container {
    margin-bottom: 32px;
}

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

.ashby-application-form-section-header-title {
    font-family: "GeneralSans-Variable", "Inter", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--forge-text-primary);
    margin-bottom: 4px;
}

.ashby-application-form-section-header-description {
    color: var(--forge-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

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

.ashby-application-form-question-title {
    font-weight: 500;
    color: var(--forge-text-primary);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.ashby-application-form-question-description {
    color: var(--forge-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Submit button - Forge style, centered with proper sizing */
.ashby-application-form-submit-button {
    background-color: #18181B !important;
    color: #FFFFFF !important;
    border: 1px solid #18181B !important;
    border-radius: 8px !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 32px;
    transition: all 0.2s ease;
    cursor: pointer;
    width: auto !important;
    max-width: 280px;
    display: block;
    margin: 24px auto 32px auto;
}

.ashby-application-form-submit-button:hover {
    background-color: #3F3F46 !important;
    border-color: #3F3F46 !important;
    color: #FFFFFF !important;
}

.ashby-application-form-submit-button:active {
    background-color: #27272A !important;
}

/* Success/Failure messages */
.ashby-application-form-success-container {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
    color: var(--forge-accent-green);
}

.ashby-application-form-failure-container {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
    color: #DC2626;
}

.ashby-application-form-blocked-application-container {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
    color: #D97706;
}

/* ============================================
   AUTOFILL (Resume Upload)
   ============================================ */

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

.ashby-application-form-autofill-input-root {
    background-color: var(--forge-card-bg);
    border: 2px dashed var(--forge-border);
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.ashby-application-form-autofill-input-root:hover {
    border-color: var(--forge-text-secondary);
    background-color: #F9FAFB;
}

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

.ashby-application-form-autofill-input-title {
    font-weight: 600;
    color: var(--forge-text-primary);
    margin-bottom: 4px;
}

.ashby-application-form-autofill-input-description {
    color: var(--forge-text-secondary);
    font-size: 0.875rem;
}

.ashby-application-form-autofill-input-icon {
    color: var(--forge-accent-purple);
    margin-bottom: 8px;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
    color: var(--forge-accent-green);
}

.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
    color: #DC2626;
}

/* ============================================
   TEXT CONSENT
   ============================================ */

.ashby-application-form-texting-consent-description {
    color: var(--forge-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 8px;
}

/* ============================================
   SURVEY FORM
   ============================================ */

.ashby-survey-form-container {
    background-color: var(--forge-card-bg);
    border-radius: var(--borderRadiusContainer);
    padding: 24px;
    margin-top: 24px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    :root {
        --widthMaxJobBoard: 100%;
    }

    .ashby-job-board-heading {
        font-size: 1.5rem;
    }

    .ashby-job-posting-heading {
        font-size: 1.5rem;
    }

    .ashby-job-posting-brief {
        padding: 16px 20px;
    }
}
