/* Shared careers module — public index, openings, and application forms */

.careers-index-section {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.careers-index-section .section-title {
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.careers-index-section .section-title h1 {
    margin-bottom: 0.65rem;
}

.careers-index-section .section-title .subheadline {
    margin: 0;
    color: var(--text-subheadline, var(--text-secondary, #64748b));
    font-size: 1.05rem;
    line-height: 1.55;
}

.careers-openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.careers-opening-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: var(--border-width-surface, 1px) solid var(--border-color-surface, var(--border-color, #e5e7eb));
    border-radius: var(--border-radius-featured, 12px);
    padding: 1.35rem 1.4rem 1.5rem;
    background: var(--form-bg, #fff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.careers-opening-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.careers-opening-card h2 a {
    color: inherit;
    text-decoration: none;
}

.careers-opening-card h2 a:hover,
.careers-opening-card h2 a:focus-visible {
    color: var(--accent, var(--color-accent, #2563eb));
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.careers-opening-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.92rem;
}

.careers-opening-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.75rem;
    opacity: 0.65;
}

.careers-opening-excerpt {
    color: var(--text-paragraph, var(--text-primary, #374151));
    line-height: 1.6;
}

.careers-opening-excerpt > *:last-child {
    margin-bottom: 0;
}

.careers-opening-card .btn,
.careers-opening-card .btn-secondary,
.careers-opening-card .btn-primary {
    align-self: flex-start;
    margin-top: auto;
}

.careers-opening-detail {
    max-width: 48rem;
    margin: 0 auto 1.5rem;
}

.careers-opening-detail > p:first-child a {
    color: var(--accent, var(--color-accent, #2563eb));
    font-weight: 600;
    text-decoration: none;
}

.careers-opening-detail > p:first-child a:hover,
.careers-opening-detail > p:first-child a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.careers-opening-description {
    margin-top: 1rem;
}

.careers-apply-shell {
    max-width: 42rem;
    margin: 2rem auto 0;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: var(--border-width-surface, 1px) solid var(--border-color-surface, var(--border-color, #e5e7eb));
    border-radius: var(--border-radius-featured, 14px);
    background: var(--form-bg, #fff);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.careers-general-apply {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.careers-apply-section {
    width: 100%;
}

.careers-apply-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.careers-apply-header h2 {
    margin: 0 0 0.55rem;
    color: var(--text-headline, var(--color-primary, #111827));
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.careers-apply-header p {
    margin: 0;
    color: var(--text-subheadline, var(--text-secondary, #64748b));
    line-height: 1.55;
}

.careers-apply-form.contact-form {
    width: 100%;
}

.careers-apply-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
}

.careers-apply-form .form-group label {
    display: block;
    margin: 0;
    font-weight: 600;
    color: var(--text-headline, var(--color-primary, #111827));
    line-height: 1.35;
}

.careers-apply-form .form-group .required {
    color: var(--accent, var(--color-accent, #dc2626));
}

.careers-apply-form .form-group input,
.careers-apply-form .form-group textarea,
.careers-apply-form .form-group select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.78rem 0.9rem;
    border: var(--border-width-input, 1px) solid var(--border-color-input, var(--border-color, #cbd5e1));
    border-radius: var(--border-radius-input, 8px);
    font: inherit;
    font-size: 1rem;
    line-height: 1.45;
    background: var(--input-bg, var(--form-bg, #fff));
    color: var(--text-headline, var(--color-primary, #111827));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.careers-apply-form .form-group textarea {
    min-height: 9rem;
    resize: vertical;
}

.careers-apply-form .form-group input::placeholder,
.careers-apply-form .form-group textarea::placeholder {
    color: var(--text-secondary, #94a3b8);
    opacity: 0.95;
}

.careers-apply-form .form-group input:focus,
.careers-apply-form .form-group textarea:focus,
.careers-apply-form .form-group select:focus {
    outline: none;
    border-color: var(--accent, var(--color-accent, #2563eb));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--color-accent, #2563eb)) 18%, transparent);
}

.careers-apply-form .compliance-notice {
    margin: 0.25rem 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary, var(--text-paragraph, #64748b));
}

.careers-apply-form .compliance-notice a {
    color: var(--accent, var(--color-accent, #2563eb));
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.careers-apply-form .compliance-notice a:hover,
.careers-apply-form .compliance-notice a:focus-visible {
    color: var(--accent-hover, var(--color-accent_hover, var(--accent, #1d4ed8)));
}

.careers-apply-form .btn-primary {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--border-radius-input, 8px);
}

.careers-alert {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.careers-alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.careers-alert p {
    margin: 0;
    line-height: 1.5;
}

.careers-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.careers-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.careers-empty {
    color: var(--text-secondary, #64748b);
    text-align: center;
    padding: 2.5rem 0;
}

@media (max-width: 640px) {
    .careers-apply-shell {
        padding: 1.15rem 1rem 1.35rem;
        border-radius: 12px;
    }

    .careers-apply-header {
        text-align: left;
        margin-bottom: 1.35rem;
    }
}
