/* ===== Careers — page-specific signature components ===== */
/* Reuses the global gold-on-navy tokens from main.css. The open-roles
   "ledger" is the one bold element; everything else stays quiet. */

/* ── Hero title override: "Careers" bigger + bolder eyebrow ────────────────── */
.page-hero-content .cr-hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 18px;
}
.cr-hero-h1 { white-space: nowrap; }
@media (max-width: 560px) { .cr-hero-h1 { white-space: normal; } }

/* ── Manifesto ─────────────────────────────────────────────────────────────── */
.cr-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    font-family: var(--font-b);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.cr-eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--gold);
}
.cr-manifesto h2 {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 20ch;
}
.cr-manifesto h2 .gold { color: var(--gold); }
.cr-manifesto p {
    color: var(--g400);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 52ch;
    margin-top: 28px;
}

/* ── Perks line (replaces the benefits card grid) ──────────────────────────── */
.cr-perks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.cr-perks span {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-b);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--g300);
    padding: 6px 0;
}
.cr-perks span:not(:last-child)::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 20px;
}

/* ── Open-roles ledger (the signature) ─────────────────────────────────────── */
.cr-roles { border-top: 1px solid var(--border); }

.cr-role {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    text-align: inherit;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 28px 32px 4px;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: var(--tr);
}
/* gold wash sweeps across on hover */
.cr-role::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--gold-dim);
    transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 0;
}
.cr-role:hover::before,
.cr-role:focus-visible::before { width: 100%; }
.cr-role:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.cr-role > * { position: relative; z-index: 1; }

.cr-role-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}
.cr-role-dept {
    font-family: var(--font-b);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.cr-role-meta {
    font-family: var(--font-b);
    font-size: 0.9rem;
    color: var(--g500);
    white-space: nowrap;
}
.cr-role-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 0;
    font-family: var(--font-d);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 2.5rem);
    letter-spacing: -0.02em;
    color: var(--white);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), color var(--tr);
}
.cr-role:hover .cr-role-title,
.cr-role:focus-visible .cr-role-title { transform: translateX(16px); color: var(--gold-bright); }

.cr-role-arrow {
    color: var(--gold);
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(-14px);
    transition: var(--tr);
}
.cr-role:hover .cr-role-arrow,
.cr-role:focus-visible .cr-role-arrow { opacity: 1; transform: translateX(0); }

.cr-role-desc {
    max-width: 64ch;
    margin: 16px 0 0;
    color: var(--g400);
    font-size: 1rem;
    line-height: 1.65;
    transition: var(--tr);
}
.cr-role:hover .cr-role-desc { transform: translateX(16px); }

/* ── RTL ───────────────────────────────────────────────────────────────────── */
[dir="rtl"] .cr-eyebrow::before { /* divider flips naturally via flex */ }
[dir="rtl"] .cr-role { padding: 32px 4px 32px 28px; }
[dir="rtl"] .cr-role::before { right: 0; left: auto; }
[dir="rtl"] .cr-role:hover .cr-role-title,
[dir="rtl"] .cr-role:focus-visible .cr-role-title,
[dir="rtl"] .cr-role:hover .cr-role-desc { transform: translateX(-16px); }
[dir="rtl"] .cr-role-arrow { transform: scaleX(-1) translateX(-14px); }
[dir="rtl"] .cr-role:hover .cr-role-arrow,
[dir="rtl"] .cr-role:focus-visible .cr-role-arrow { transform: scaleX(-1) translateX(0); }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cr-role { padding: 24px 0; }
    .cr-role-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cr-role-title { margin-top: 10px; }
    .cr-role:hover .cr-role-title,
    .cr-role:hover .cr-role-desc { transform: none; }
    [dir="rtl"] .cr-role:hover .cr-role-title,
    [dir="rtl"] .cr-role:hover .cr-role-desc { transform: none; }
    .cr-perks span:not(:last-child)::after { margin: 0 14px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cr-role::before,
    .cr-role-title,
    .cr-role-desc,
    .cr-role-arrow { transition: none; }
    .cr-role:hover .cr-role-title,
    .cr-role:hover .cr-role-desc { transform: none; }
}

/* ── Apply modal (careers-page only; mirrors .auth-modal-overlay chrome) ───── */
.apply-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 40px 20px;
}
.apply-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.apply-modal {
    width: 100%;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 20px;
    position: relative;
    margin-top: 60px;
}
.apply-modal-title {
    font-family: var(--font-d);
    font-size: 1.4rem;
    color: var(--white);
    margin: 6px 32px 4px 0;
}
.apply-modal-sub { font-size: 0.85rem; color: var(--gold); margin-bottom: 22px; }
.apply-field-count { display: block; text-align: end; font-size: 0.72rem; color: var(--g500); margin-top: 4px; }
.apply-modal textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--elevated);
    color: var(--g300);
    font-size: 0.92rem;
    font-family: var(--font-b);
    resize: vertical;
    transition: var(--tr);
}
.apply-modal textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(180,154,90,0.12); }
.apply-fallback input[readonly],
.apply-fallback textarea[readonly] { color: var(--g500); cursor: text; }
.apply-fallback-webmail { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.apply-webmail-link { color: var(--gold); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.apply-webmail-link:hover { color: var(--gold-bright); text-decoration: underline; }
@media (min-width: 520px) {
    .apply-modal { max-width: 460px; padding: 36px; }
}
