/*
 * Careers — static info page (EB-only).
 * Loaded AFTER legal.css from shared/pages/careers.blade.php.
 *
 * legal.css supplies the page shell (.legal-page / .legal-page__header /
 * .legal-body). This file adds only the two careers-specific pieces the
 * legal pages don't have: the responsive embedded video frame and the ADP
 * apply buttons. Brand-aware — accents use the --brand-* tokens so EB renders
 * pink and MM gold with no per-brand duplication. Never hardcode a brand hex.
 */

/* =================================================================
   1. EMBEDDED RECRUITING VIDEO (16:9, responsive)
   ================================================================= */
.careers-video {
    position: relative;
    width: 100%;
    max-width: 72ch; /* matches the .legal-body reading measure */
    margin: 0 0 2.5rem;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 2px;
    overflow: hidden;
}

.careers-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =================================================================
   2. ADP APPLY BUTTONS
   ================================================================= */
.careers-apply {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.careers-apply__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    /* The AA fill pair, not the accent (WAVE on /careers, 2026-09-01). */
    background: var(--brand-primary-fill, var(--brand-primary));
    color: var(--brand-on-primary, #fff);
    font-size: 0.9375rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 2px solid var(--brand-primary-fill, var(--brand-primary));
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}

.careers-apply__btn:hover,
.careers-apply__btn:focus-visible {
    background: transparent;
    /* Inverted state: the accent AS TEXT on white needs the AA text token. */
    color: var(--brand-accent-text, var(--brand-primary));
    border-color: var(--brand-accent-text, var(--brand-primary));
}

/* Spanish link as a secondary (outline) button. */
/* Outline variant. The accent AS TEXT on white is 3.58:1 and white on the raw
   accent fill is the same, so both states use the AA pair the solid button
   above already uses (WAVE, 2026-09-21). */
.careers-apply__btn--secondary {
    background: transparent;
    color: var(--brand-accent-text, var(--brand-primary));
    border-color: var(--brand-accent-text, var(--brand-primary));
}

.careers-apply__btn--secondary:hover,
.careers-apply__btn--secondary:focus-visible {
    background: var(--brand-primary-fill, var(--brand-primary));
    border-color: var(--brand-primary-fill, var(--brand-primary));
    color: var(--brand-on-primary, #fff);
}

/* =================================================================
   3. RESPONSIVE
   ================================================================= */
@media (max-width: 767.98px) {
    .careers-apply {
        flex-direction: column;
    }

    .careers-apply__btn {
        width: 100%;
    }
}
