/* Careers public UI — list, detail, apply form. Loaded after styles.css so
   Tailwind utilities still win in the cascade where they matter. */

.careers-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    padding: 2rem;
    justify-content: center;
}

.careers-empty,
.careers-error {
    grid-column: 1 / -1;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(11, 14, 20, 0.6);
    text-align: center;
    margin-top: 1.5rem;
}

.careers-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.95), rgba(10, 13, 20, 0.95));
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.careers-card:hover,
.careers-card:focus-visible {
    border-color: rgba(239, 153, 15, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -45px rgba(0, 0, 0, 0.9);
    outline: none;
}

.careers-card-body {
    padding: 1.6rem;
}

.careers-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: #94a3b8;
    align-items: center;
}

/* Job detail typography — mirrors blog-prose but a touch tighter for
   short-form structured copy. */
.job-prose {
    color: #cbd5e1;
    line-height: 1.7;
}

.job-prose h2,
.job-prose h3 {
    color: #fff;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
}

.job-prose h2 { font-size: 1.6rem; }
.job-prose h3 { font-size: 1.25rem; }
.job-prose p { margin: 0.6em 0; }
.job-prose ul,
.job-prose ol { margin: 0.6em 0 0.6em 1.4em; padding-left: 0.4em; }
.job-prose li { margin: 0.25em 0; }
.job-prose strong { color: #fff; }
.job-prose a { color: #EF990F; text-decoration: underline; text-underline-offset: 3px; }
.job-prose code { background: rgba(255, 255, 255, 0.05); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.95em; }

/* Apply form */
.apply-form {
    display: block;
}

.apply-label {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.apply-required {
    color: #EF990F;
}

.apply-input,
.apply-file {
    width: 100%;
    background: rgba(11, 14, 20, 0.85);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.7rem 0.95rem;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.apply-input:focus,
.apply-file:focus {
    outline: none;
    border-color: #EF990F;
    background: rgba(11, 14, 20, 0.95);
    box-shadow: 0 0 0 3px rgba(239, 153, 15, 0.15);
}

.apply-file {
    padding: 0.55rem 0.95rem;
}

.apply-file::file-selector-button {
    background: rgba(239, 153, 15, 0.15);
    color: #f1f5f9;
    border: 1px solid rgba(239, 153, 15, 0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    margin-inline-end: 0.8rem;
    cursor: pointer;
    font: inherit;
}

.apply-file-name {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1.1em;
}

.apply-message {
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.apply-message[data-kind="info"] {
    background: rgba(45, 127, 249, 0.12);
    border-color: rgba(45, 127, 249, 0.3);
    color: #93c5fd;
}

.apply-message[data-kind="success"] {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.apply-message[data-kind="error"] {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* Visually-hidden honeypot input — same trick the chat widget uses. */
.pchat-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
