:root {
    --dark: #181d27;
    --white: #ffffff;
    --text-dark: #181d27;
    --text-muted: #717680;
    --border: rgba(24, 29, 39, 0.24);
    --card: #ffffff;
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
    --blue: rgba(106, 169, 255, 0.95);
    --orange: rgba(255, 138, 61, 0.65);
}

.career-detail {
    padding: 28px 18px 60px;
    background: #fff;
}

.career-detail__grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* When no application form is set, left card takes full width */
.career-detail__grid--single {
    grid-template-columns: minmax(0, 880px);
    justify-content: center;
}

/* LEFT CARD */
.career-card {
    position: relative;
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #a4a7ae;
}

/* outer soft gradient border */
/* .career-card::before{
    content:"";
    position:absolute;
    inset:0;
    padding: 1.5px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events:none;
} */

/* header */
.career-card__header {
    background: var(--dark);
    padding: 2rem;
}

/* Heading typography */
.career-card__title {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.6px;
}

/* Sub heading typography */
.career-card__meta {
    margin: 0;
    color: var(--white);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    opacity: 0.88;
}
.career-card__meta .dot {
    opacity: 0.9;
    margin: 0 6px;
}

/* scrollable body */
.career-card__body {
    padding: 1.75rem 1.75rem 2rem;
    max-height: 640px;
    overflow: auto;
}

/* nicer scrollbar (webkit) */
.career-card__body::-webkit-scrollbar {
    width: 10px;
}
.career-card__body::-webkit-scrollbar-track {
    background: transparent;
}
.career-card__body::-webkit-scrollbar-thumb {
    background: rgba(24, 29, 39, 0.18);
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

/* section head row */
.career-card__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

/* Desc title typography */
.career-card__section-title {
    color: #181d27;
    font-family: Lexend, "Lexend Fallback";
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.career-card__jd {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(29, 116, 231, 0.25);
    background: #e8f1fd;
    color: #1252a5;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.career-card__jd-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
}
.career-card__jd svg {
    color: #1d74e7;
}

/* facts */
.career-card__facts {
    list-style: none;
    padding: 0;
    margin: 10px 0 22px;
    display: grid;
    gap: 10px;
}
.career-card__facts li {
    display: flex;
    align-items: center;
    gap: 0.63rem;
    color: var(--text-muted);
    font-family: Lexend, "Lexend Fallback";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}
.career-card__facts .ico {
    /* width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(24, 29, 39, 0.04);
    color: rgba(24, 29, 39, 0.75); */
}

.career-card__block {
    margin-top: 1.75rem;
}

/* Desc title typography (same spec) */
.career-card__block-title {
    margin: 0 0 8px;
    color: #181d27;
    font-family: Lexend, "Lexend Fallback";
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
}

/* Desc typography */
.career-card__text {
    color: var(--text-muted);
    font-family:
        Lexend,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
.career-card__text p {
    margin: 0;
    color: #717680;
    font-family: Lexend, "Lexend Fallback";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}

/* RIGHT PLACEHOLDER */
.career-form-placeholder {
    min-height: 680px;
    border-radius: 18px;
    border: 1px solid rgba(24, 29, 39, 0.12);
    background: #fff;
}

@media (max-width: 980px) {
    .career-detail__grid {
        grid-template-columns: 1fr;
    }
    .career-card__body {
        max-height: none;
    }
}

/* ==========================================
   PARAGRAPH RHYTHM (editor-managed copy)
   The rules above zero out `p` margins because these blocks were designed
   around a single paragraph. `p + p` only matches when an editor has actually
   written a second paragraph, so single-paragraph copy is untouched, and it
   outranks the `margin: 0` rules on specificity alone. Same convention as
   accessibility-subpage.css and theory-of-change.css.
   ========================================== */
.career-card__text p + p {
    margin-top: 0.75em;
}
