/* ============================================================
   Superpower Health  —  Ashby Job Board
   Clean / Vercel-style with Inter.

   Selectors are scoped only to .ashby-* classes, :root, and
   at-rules to satisfy Ashby's CSS validator.
   ============================================================ */


/* Inter from Google Fonts. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");


/* ---------- Tokens -------------------------------------------------- */

:root {
    --colorPrimary900: #000000;
    --colorPrimary600: #171717;

    --widthMaxJobBoard: 880px;
    --borderRadiusContainer: 8px;
    --borderRadiusControl: 6px;
    --borderRadiusButton: 6px;

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

    --sp-mono:
        ui-monospace,
        SFMono-Regular,
        "SF Mono",
        Menlo,
        Consolas,
        monospace;

    --colorAppBackground: #ffffff;
    --sp-bg-subtle:      #fafafa;

    --sp-border:        #eaeaea;
    --sp-border-strong: #d4d4d4;

    --sp-text:        #000000;
    --sp-text-muted:  #666666;
    --sp-text-subtle: #999999;

    --sp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sp-dur:  150ms;

    /* Layered transparent shadows beat solid borders for depth. */
    --sp-shadow-card:
        0 1px 1px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    --sp-shadow-card-hover:
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        0 8px 20px -4px rgba(0, 0, 0, 0.08);
    --sp-shadow-focus: 0 0 0 3px rgba(0, 0, 0, 0.12);
}


/* ---------- Root: smoothing + numerics ------------------------------ */
/* Applied to the widest allowed wrappers on each page type. */

.ashby-job-board-heading,
.ashby-job-posting-brief-list,
.ashby-job-posting-header,
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane,
.ashby-application-form-container {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    text-rendering: optimizeLegibility;
}


/* ---------- Alignment normalization --------------------------------- */
/* Target: every visible element at page+24, matching Open Positions
   (which sits in _titles_ with 24px margin).

   _content_ has 12px padding → its children start at page+12.
     _filtersContainer_ adds its own 12px padding → page+24 already.
     _departments_ has no extra padding → still page+12, needs +12.

   So: filter children get margin 0; department children get margin 12. */

/* Universal: just sizing — no margin/padding overrides. */
.ashby-job-board-heading,
.ashby-job-board-heading-count,
.ashby-job-board-filters-label,
.ashby-job-board-filter,
.ashby-job-board-reset-filters-label,
.ashby-job-posting-brief-list,
.ashby-job-posting-brief,
.ashby-job-posting-brief-title,
.ashby-job-posting-brief-details,
.ashby-department-heading,
.ashby-job-posting-brief-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
    box-sizing: border-box !important;
}

/* Children of _filtersContainer_ already sit at page+24 (stacked
   12px padding from _content_ + _filtersContainer_). Zero margin
   keeps them aligned with Open Positions. */
.ashby-job-board-filters-label,
.ashby-job-board-filter,
.ashby-job-board-reset-filters-label {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Children of _departments_ sit at page+12 (_content_ padding only).
   Add 12px margin so they land at page+24, matching Open Positions. */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-list {
    margin-left: 12px !important;
    margin-right: 12px !important;
}

/* Items with no internal padding requirement: zero them so visible
   content sits flush against the shifted edge. (.ashby-job-board-filter
   is excluded — it needs 8px 36px 8px 12px for the caret SVG.) */
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label,
.ashby-job-posting-brief-list,
.ashby-department-heading,
.ashby-job-posting-brief-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ashby-job-posting-brief-list {
    list-style: none;
}

.ashby-job-board-filters-label {
    display: block;
    margin-bottom: 8px !important;
}

/* Cards live INSIDE the (already-shifted) brief-list, so they
   inherit the 12px shift. Don't apply it again. */
.ashby-job-posting-brief {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 18px 56px 18px 20px !important;
}

/* Card inner content — flush against the card's own padding. */
.ashby-job-posting-brief-title,
.ashby-job-posting-brief-details {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* ---------- Job board: heading + filters ---------------------------- */

.ashby-job-board-heading {
    font-family: var(--fontFamily);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--sp-text);
    margin: 0 0 24px;
}

.ashby-job-board-heading-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sp-mono);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--sp-text-muted);
    background: var(--sp-bg-subtle);
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 8px;
    vertical-align: middle;
    transform: translateY(-2px); /* optical alignment with heading cap-height */
    letter-spacing: 0;
}

.ashby-job-board-filters-label {
    font-family: var(--fontFamily);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sp-text-muted);
}

.ashby-job-board-filter {
    font-family: var(--fontFamily);
    background-color: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: var(--borderRadiusControl);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--sp-text);
    cursor: pointer;
    transition:
        border-color     var(--sp-dur) var(--sp-ease),
        background-color var(--sp-dur) var(--sp-ease),
        box-shadow       var(--sp-dur) var(--sp-ease);
}

.ashby-job-board-filter:hover {
    border-color: var(--sp-border-strong);
}

.ashby-job-board-filter:focus,
.ashby-job-board-filter:focus-within {
    outline: none;
    border-color: var(--sp-text);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.ashby-job-board-reset-filters-label {
    font-family: var(--fontFamily);
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition:
        color                  var(--sp-dur) var(--sp-ease),
        text-decoration-color  var(--sp-dur) var(--sp-ease);
}

.ashby-job-board-reset-filters-label:hover {
    color: var(--sp-text);
    text-decoration-color: currentColor;
}


/* ---------- Department / team headings ------------------------------ */
/* No dividers. Just bold labels with breathing room above. */

.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
    font-family: var(--fontFamily);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--sp-text);
    text-transform: none;
    margin: 40px 0 12px;
    padding-bottom: 0;
    border: none;
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
    font-family: var(--fontFamily);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--sp-text);
    text-transform: none;
    margin: 24px 0 8px;
    padding-bottom: 0;
    border: none;
}


/* ---------- Job posting briefs (the list) --------------------------- */

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

.ashby-job-posting-brief {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: var(--borderRadiusContainer);
    padding: 18px 56px 18px 20px;
    margin-bottom: 8px !important;
    cursor: pointer;
    transition-property: border-color, background, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: var(--sp-ease);
}

.ashby-job-posting-brief:hover {
    border-color: var(--sp-border-strong);
    background: #ffffff;
    box-shadow: var(--sp-shadow-card-hover);
    transform: translateY(-1px);
}

.ashby-job-posting-brief:active {
    transform: scale(0.996) translateY(0);
    transition-duration: 80ms;
}

.ashby-job-posting-brief:focus-visible {
    outline: none;
    border-color: var(--sp-border-strong);
    box-shadow: var(--sp-shadow-card-hover), var(--sp-shadow-focus);
}

/* Ashby's base CSS strips border-top off the first card in each
   department section (._container_…:first-child { border-top: 0 }).
   That made the top of every section's first card look cropped.
   Restore it. !important is required because Ashby's selector has
   higher specificity than .ashby-job-posting-brief:first-child. */
.ashby-job-posting-brief:first-child {
    border-top: 1px solid var(--sp-border) !important;
}

.ashby-job-posting-brief:first-child:hover,
.ashby-job-posting-brief:first-child:focus-visible {
    border-top-color: var(--sp-border-strong) !important;
}

/* Sliding arrow on hover. */
.ashby-job-posting-brief::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    color: var(--sp-text-subtle);
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%) translateX(-4px);
    opacity: 0;
    transition:
        opacity   var(--sp-dur) var(--sp-ease),
        transform var(--sp-dur) var(--sp-ease),
        color     var(--sp-dur) var(--sp-ease);
}

.ashby-job-posting-brief:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: var(--sp-text);
}

.ashby-job-posting-brief-title {
    font-family: var(--fontFamily);
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 6px;
}

.ashby-job-posting-brief-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-family: var(--fontFamily);
    font-size: 13px;
    font-weight: 400;
    color: var(--sp-text-muted);
}


/* ---------- Job posting (detail page) ------------------------------- */

.ashby-job-board-back-to-all-jobs-button {
    font-family: var(--fontFamily);
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-text-muted);
    padding: 8px 0;
    transition: color var(--sp-dur) var(--sp-ease);
}

.ashby-job-board-back-to-all-jobs-button:hover {
    color: var(--sp-text);
}

.ashby-job-posting-header {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--sp-border);
}

.ashby-job-posting-heading {
    font-family: var(--fontFamily);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--sp-text);
    margin: 0 0 12px;
}

.ashby-job-posting-left-pane {
    font-family: var(--fontFamily);
    font-size: 15px;
    line-height: 1.65;
    color: var(--sp-text);
}

.ashby-job-posting-left-pane h2,
.ashby-job-posting-left-pane h3 {
    font-family: var(--fontFamily);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 28px 0 10px;
}

.ashby-job-posting-left-pane p {
    margin: 0 0 14px;
}

.ashby-job-posting-left-pane ul,
.ashby-job-posting-left-pane ol {
    padding-left: 20px;
    margin: 0 0 16px;
}

.ashby-job-posting-left-pane li {
    margin-bottom: 6px;
}

.ashby-job-posting-left-pane a {
    color: var(--sp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--sp-dur) var(--sp-ease);
}

.ashby-job-posting-left-pane a:hover {
    color: var(--sp-text-muted);
}

.ashby-job-posting-left-pane code {
    font-family: var(--sp-mono);
    font-size: 13px;
    background: var(--sp-bg-subtle);
    border: 1px solid var(--sp-border);
    border-radius: 4px;
    padding: 1px 6px;
}

.ashby-job-posting-right-pane {
    font-family: var(--fontFamily);
}


/* ---------- Tabs ---------------------------------------------------- */

/* The tablist container (nav element). */
nav.ashby-job-posting-right-pane-tab-slider {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    border-bottom: 1px solid var(--sp-border);
    margin-bottom: 24px;
}

/* The animated active-tab indicator (span element) shares the same
   class as the nav. Undo the layout/border that incorrectly leaked
   onto it from the shared class — let Ashby's own JS-driven
   positioning take over. */
span.ashby-job-posting-right-pane-tab-slider {
    display: revert;
    border: none;
    margin: 0;
    padding: 0;
    gap: 0;
    background: var(--sp-text);
}

.ashby-job-posting-right-pane-application-tab,
.ashby-job-posting-right-pane-overview-tab {
    font-family: var(--fontFamily);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 4px;
    margin-right: 0;
    margin-bottom: -1px; /* overlap the slider's 1px border so the
                            active tab's 2px underline replaces it cleanly */
    color: var(--sp-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        color        var(--sp-dur) var(--sp-ease),
        border-color var(--sp-dur) var(--sp-ease);
}

.ashby-job-posting-right-pane-application-tab:hover,
.ashby-job-posting-right-pane-overview-tab:hover {
    color: var(--sp-text);
}

.ashby-job-posting-right-pane-application-tab[aria-selected="true"],
.ashby-job-posting-right-pane-overview-tab[aria-selected="true"] {
    color: var(--sp-text);
    border-bottom-color: var(--sp-text);
}


/* ---------- Application form ---------------------------------------- */

.ashby-application-form-container {
    font-family: var(--fontFamily);
    padding: 4px 0;
}

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

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

.ashby-application-form-section-header-title {
    font-family: var(--fontFamily);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sp-text);
    margin: 0 0 4px;
}

.ashby-application-form-section-header-description {
    font-family: var(--fontFamily);
    font-size: 13px;
    line-height: 1.55;
    color: var(--sp-text-muted);
}

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

.ashby-application-form-question-title {
    display: block;
    font-family: var(--fontFamily);
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-text);
    margin-bottom: 6px;
}

.ashby-application-form-question-description {
    font-family: var(--fontFamily);
    font-size: 12px;
    line-height: 1.55;
    color: var(--sp-text-muted);
    margin-bottom: 8px;
}


/* Inputs scoped under field entry. */

.ashby-application-form-field-entry input,
.ashby-application-form-field-entry textarea,
.ashby-application-form-field-entry select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--fontFamily);
    color: var(--sp-text);
    background: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: var(--borderRadiusControl);
    transition:
        border-color var(--sp-dur) var(--sp-ease),
        box-shadow   var(--sp-dur) var(--sp-ease);
}

.ashby-application-form-field-entry input:hover,
.ashby-application-form-field-entry textarea:hover,
.ashby-application-form-field-entry select:hover {
    border-color: var(--sp-border-strong);
}

.ashby-application-form-field-entry input:focus,
.ashby-application-form-field-entry textarea:focus,
.ashby-application-form-field-entry select:focus {
    outline: none;
    border-color: var(--sp-text);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.ashby-application-form-field-entry textarea {
    min-height: 120px;
    line-height: 1.55;
    resize: vertical;
}


/* ---------- Resume autofill block ----------------------------------- */

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

.ashby-application-form-autofill-input-root {
    background: var(--sp-bg-subtle);
    border: 1px dashed var(--sp-border-strong);
    border-radius: var(--borderRadiusContainer);
    padding: 22px;
    transition:
        border-color var(--sp-dur) var(--sp-ease),
        background   var(--sp-dur) var(--sp-ease);
}

.ashby-application-form-autofill-input-root:hover {
    border-color: var(--sp-text-muted);
    background: #ffffff;
}

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

.ashby-application-form-autofill-input-root[data-state="pending"] {
    opacity: 0.7;
}

.ashby-application-form-autofill-input-title {
    font-family: var(--fontFamily);
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 4px;
}

.ashby-application-form-autofill-input-description {
    font-family: var(--fontFamily);
    font-size: 12px;
    line-height: 1.55;
    color: var(--sp-text-muted);
}

.ashby-application-form-autofill-input-icon {
    color: var(--sp-text);
}

.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
    font-family: var(--sp-mono);
    font-size: 12px;
    color: #cc0000;
    margin-top: 6px;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
    font-family: var(--sp-mono);
    font-size: 12px;
    color: #007a3d;
    margin-top: 6px;
}


/* ---------- Submit button ------------------------------------------- */

.ashby-application-form-submit-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--fontFamily);
    letter-spacing: -0.005em;
    color: #ffffff;
    background: var(--sp-text);
    border: 1px solid var(--sp-text);
    border-radius: var(--borderRadiusButton);
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition-property: opacity, transform, box-shadow;
    transition-duration: var(--sp-dur);
    transition-timing-function: var(--sp-ease);
}

.ashby-application-form-submit-button:hover {
    opacity: 0.88;
}

.ashby-application-form-submit-button:active {
    transform: scale(0.98);
    transition-duration: 60ms;
}

.ashby-application-form-submit-button:focus-visible {
    outline: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        var(--sp-shadow-focus);
}

.ashby-application-form-submit-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ---------- Texting consent + small copy ---------------------------- */

.ashby-application-form-texting-consent-description {
    font-family: var(--fontFamily);
    font-size: 11px;
    line-height: 1.55;
    color: var(--sp-text-subtle);
    margin-top: 10px;
}


/* ---------- Status containers --------------------------------------- */

.ashby-application-form-success-container,
.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container {
    font-family: var(--fontFamily);
    padding: 32px;
    background: var(--sp-bg-subtle);
    border: 1px solid var(--sp-border);
    border-radius: var(--borderRadiusContainer);
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sp-text);
}


/* ---------- Surveys (EEO etc.) -------------------------------------- */

.ashby-survey-form-container {
    font-family: var(--fontFamily);
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--sp-border);
}


/* ---------- Responsive ---------------------------------------------- */

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

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

    .ashby-job-posting-brief {
        padding: 16px 44px 16px 16px;
        border-color: transparent !important;
        /* Apple-esque layered shadow: tight contact + soft mid + wide
           atmospheric. Cool slate tint reads softer than pure black. */
        box-shadow:
            0 1px 1px rgba(16, 24, 40, 0.04),
            0 2px 6px -1px rgba(16, 24, 40, 0.05),
            0 8px 20px -4px rgba(16, 24, 40, 0.08),
            0 20px 40px -12px rgba(16, 24, 40, 0.10);
    }

    /* Override the first-child top-border restore on mobile —
       the shadow handles edge definition now. */
    .ashby-job-posting-brief:first-child {
        border-top-color: transparent !important;
    }

    .ashby-job-posting-brief::after {
        right: 16px;
    }

    .ashby-application-form-section-header-title {
        font-size: 16px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .ashby-job-posting-brief,
    .ashby-job-posting-brief::after,
    .ashby-application-form-submit-button,
    .ashby-job-board-filter {
        transition: none !important;
    }
}
