/* =========================================================================
   Public careers site. Prefix: cr-
   Anonymous pages: no TeamlineTheme, no TeamlineHead, no jQuery. No third-party
   request from a public page: the type is the system family and the icons are
   self-hosted.
   Design (2026-10-07, second pass against the design guide): the page is written
   in the company's own colour. Every shade -- the ink, the muted text, the rules,
   the top band, the buttons -- is mixed from the tenant's accent (Global Settings
   g_recruit_brand_color, set on :root by Careers.js), so each company's site looks
   like its own brand. The one bold element is the headline, which states real
   content ("4 open roles at <company>"). Everything else stays quiet: sentence
   case, no eyebrow labels, no stat blocks, no entrance animations; motion only
   answers a click. Phone first: 16 px inputs, a sticky Apply bar on the job page,
   safe-area padding.
   ========================================================================= */
:root {
    --cr-brand: #1d4ed8;
    --cr-brand-dark: #1e3a8a;
    /* fallbacks for browsers without color-mix (a blue set) */
    --cr-ink: #13265e;
    --cr-text: #252b3a;
    --cr-muted: #5b6478;
    --cr-line: #dfe5f3;
    --cr-line-2: #c3cde6;
    --cr-tint: #f3f6fd;
    --cr-tint-2: #e8eefb;
    --cr-ok: #15803d;
    --cr-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --cr-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --cr-ease: cubic-bezier(.2, .7, .2, 1);
}
@supports (color: color-mix(in srgb, red 50%, white)) {
    :root {
        --cr-ink: color-mix(in srgb, var(--cr-brand) 48%, #000000);
        --cr-text: color-mix(in srgb, var(--cr-brand) 14%, #1d2129);
        --cr-muted: color-mix(in srgb, var(--cr-brand) 22%, #5f6672);
        --cr-line: color-mix(in srgb, var(--cr-brand) 14%, #ffffff);
        --cr-line-2: color-mix(in srgb, var(--cr-brand) 28%, #ffffff);
        --cr-tint: color-mix(in srgb, var(--cr-brand) 5%, #ffffff);
        --cr-tint-2: color-mix(in srgb, var(--cr-brand) 10%, #ffffff);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
.cr-body { font-family: var(--cr-sans); font-size: 17px; line-height: 1.55; color: var(--cr-text); background: #ffffff; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.cr-body ::selection { background: var(--cr-ink); color: #ffffff; }
.cr-body a { color: inherit; }
.cr-body a:focus-visible, .cr-body button:focus-visible, .cr-drop:focus-visible { outline: 3px solid var(--cr-brand); outline-offset: 2px; }
.cr-bg { display: none; }
.cr-header, .cr-main, .cr-footer { position: relative; }

/* ---- header (on the tinted band) ------------------------------------------- */
.cr-top { background: var(--cr-tint); border-bottom: 1px solid var(--cr-line); }
.cr-body[data-page="index"] .cr-top { border-bottom: 0; }
.cr-header { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 16px; }
.cr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.cr-brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.cr-brand img.is-square { height: 52px; max-width: 52px; border-radius: 10px; background: #ffffff; box-shadow: 0 0 0 1px var(--cr-line); }
.cr-mono { width: 42px; height: 42px; border-radius: 10px; background: var(--cr-ink); color: #ffffff; display: flex; align-items: center; justify-content: center; font-family: var(--cr-display); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.cr-brand-text { min-width: 0; }
.cr-brand-name { font-weight: 650; font-size: 15.5px; line-height: 1.25; color: var(--cr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.cr-brand-sub { font-size: 13px; color: var(--cr-muted); }
.cr-header-links { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.cr-header-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 8px; color: var(--cr-ink); }
.cr-header-links a i { font-size: 13px; }
.cr-header-links a:hover { background: var(--cr-tint-2); }
/* the language switch (English / Arabic), written in the language it switches to */
.cr-header-links .cr-lang { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cr-line-2); background: #ffffff; font: inherit; font-weight: 600; font-size: 15px; padding: 8px 13px; border-radius: 8px; color: var(--cr-ink); cursor: pointer; min-height: 40px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cr-header-links .cr-lang:hover { border-color: var(--cr-ink); }
.cr-header-links .cr-lang i { font-size: 13px; }
/* a company page: the company's own wide header (its letterhead band) across the top, then the Careers row */
.cr-header.has-letterhead { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; padding-bottom: 10px; }
.cr-letterhead { display: flex; justify-content: center; background: #ffffff; border: 1px solid var(--cr-line); border-radius: 12px; overflow: hidden; text-decoration: none; }
.cr-letterhead img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 150px; object-fit: contain; }
.cr-header-row { display: flex; align-items: center; gap: 16px; min-width: 0; }

/* ---- layout and footer --------------------------------------------------------- */
.cr-main { max-width: 1120px; margin: 0 auto; padding: 0 24px 88px 24px; }
.cr-main-narrow { max-width: 780px; }
.cr-footer { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px 24px; border-top: 1px solid var(--cr-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; color: var(--cr-muted); }
.cr-footer a { color: var(--cr-ink); text-decoration: underline; text-decoration-color: var(--cr-line-2); text-underline-offset: 3px; }
.cr-footer a:hover { text-decoration-color: currentColor; }
.cr-footer .cr-powered { margin-left: auto; }

/* ---- shared pieces --------------------------------------------------------------- */
.cr-alert { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; color: #92400e; border-radius: 10px; padding: 12px 16px; margin: 20px 0; font-size: 15px; }
.cr-alert-err { background: #fef2f2; border-color: #fecaca; border-left-color: #ef4444; color: #991b1b; }

/* ---- board: the headline band --------------------------------------------------------- */
.cr-band { background: var(--cr-tint); border-bottom: 1px solid var(--cr-line); }
.cr-hero { max-width: 1120px; margin: 0 auto; padding: 56px 24px 44px 24px; }
.cr-hero h1 { font-family: var(--cr-display); font-weight: 650; font-size: clamp(40px, 6vw, 68px); line-height: 1.03; letter-spacing: -0.028em; color: var(--cr-ink); margin: 0 0 16px 0; max-width: 15em; text-wrap: balance; }
.cr-hero-where { font-size: 19px; font-weight: 600; color: var(--cr-ink); margin: 0 0 14px 0; }
.cr-hero p.cr-intro { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--cr-text); }
.cr-find { margin-top: 30px; }
.cr-search { display: flex; align-items: center; gap: 10px; max-width: 680px; background: #ffffff; border: 1px solid var(--cr-line-2); border-radius: 10px; padding: 5px 5px 5px 16px; }
.cr-search:focus-within { border-color: var(--cr-ink); box-shadow: 0 0 0 3px var(--cr-tint-2); }
.cr-search i { color: var(--cr-muted); }
.cr-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 11px 0; background: transparent; color: var(--cr-text); }
.cr-search button { border: 0; background: var(--cr-ink); color: #ffffff; font: inherit; font-weight: 650; font-size: 15px; padding: 11px 22px; border-radius: 7px; cursor: pointer; }
.cr-search button:hover { background: var(--cr-brand); }
.cr-companies { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0 0; }
.cr-company { display: inline-flex; align-items: center; gap: 9px; background: #ffffff; border: 1px solid var(--cr-line-2); border-radius: 999px; padding: 5px 14px 5px 5px; min-height: 40px; font-size: 14.5px; font-weight: 600; color: var(--cr-ink); text-decoration: none; }
.cr-company:hover { border-color: var(--cr-ink); }
.cr-company.is-on { background: var(--cr-ink); border-color: var(--cr-ink); color: #ffffff; }
.cr-company.cr-co-all { padding-left: 16px; padding-right: 16px; }
.cr-company img { height: 30px; width: 84px; object-fit: cover; object-position: center; background: #ffffff; border-radius: 999px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--cr-line); }
.cr-company .cr-co-dot { height: 28px; width: 28px; border-radius: 50%; background: var(--cr-tint-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--cr-ink); flex-shrink: 0; }
.cr-company span.cr-co-n { font-size: 13px; color: var(--cr-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-company.is-on span.cr-co-n { color: rgba(255, 255, 255, 0.75); }

/* ---- board: the roles -------------------------------------------------------------- */
.cr-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 10px 0; }
.cr-list-head h2 { font-family: var(--cr-display); font-weight: 650; font-size: 26px; letter-spacing: -0.015em; color: var(--cr-ink); margin: 0; }
.cr-list-head span { color: var(--cr-muted); font-size: 15px; text-align: right; }
.cr-jobs { border-top: 1px solid var(--cr-line-2); }
.cr-row { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 8px 40px; padding: 26px 16px; margin: 0 -16px; border-bottom: 1px solid var(--cr-line); text-decoration: none; color: var(--cr-text); border-radius: 10px; }
.cr-row:hover { background: var(--cr-tint); }
.cr-row:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cr-row h3 { font-family: var(--cr-display); font-weight: 650; font-size: 24px; line-height: 1.2; letter-spacing: -0.012em; color: var(--cr-ink); margin: 0 0 4px 0; }
.cr-row-org { font-size: 15px; font-weight: 600; color: var(--cr-muted); margin: 0 0 10px 0; }
.cr-row p { margin: 0; font-size: 16px; color: var(--cr-text); max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-row-facts { font-size: 15px; color: var(--cr-text); line-height: 1.7; }
.cr-row-facts b { font-weight: 650; color: var(--cr-ink); }
.cr-row-facts .cr-row-age { color: var(--cr-muted); }
.cr-empty { padding: 56px 8px; border-bottom: 1px solid var(--cr-line); }
.cr-empty h3 { font-family: var(--cr-display); font-weight: 650; font-size: 24px; color: var(--cr-ink); margin: 0 0 6px 0; }
.cr-empty p { margin: 0; color: var(--cr-text); }

/* ---- job page --------------------------------------------------------------------------- */
.cr-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; padding-top: 30px; }
.cr-job { min-width: 0; }
.cr-back { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--cr-ink); font-size: 15px; font-weight: 600; margin-bottom: 26px; text-decoration: underline; text-decoration-color: var(--cr-line-2); text-underline-offset: 3px; }
.cr-back:hover { text-decoration-color: currentColor; }
.cr-job h1 { font-family: var(--cr-display); font-weight: 650; font-size: clamp(36px, 4.8vw, 56px); line-height: 1.05; letter-spacing: -0.026em; color: var(--cr-ink); margin: 0 0 10px 0; text-wrap: balance; }
.cr-j-org { font-size: 18px; font-weight: 600; color: var(--cr-muted); margin: 0 0 26px 0; }
.cr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 32px 0; border-top: 1px solid var(--cr-line); border-bottom: 1px solid var(--cr-line); }
.cr-facts div { padding: 14px 16px 14px 0; }
.cr-facts dt { font-size: 14px; color: var(--cr-muted); margin: 0 0 2px 0; }
.cr-facts dd { margin: 0; font-size: 16.5px; font-weight: 650; color: var(--cr-ink); }
.cr-j-summary { font-size: 21px; line-height: 1.5; color: var(--cr-ink); margin: 0 0 30px 0; max-width: 62ch; }
.cr-j-body { font-size: 17px; line-height: 1.7; color: var(--cr-text); max-width: 68ch; }
.cr-j-body h3 { font-family: var(--cr-display); font-size: 19px; font-weight: 650; color: var(--cr-ink); margin: 30px 0 8px 0; }
.cr-j-body p { margin: 0 0 14px 0; }
.cr-j-body ul { margin: 0 0 14px 0; padding-left: 22px; }
.cr-j-body li { margin-bottom: 6px; }
.cr-job h2 { font-family: var(--cr-display); font-weight: 650; font-size: 26px; letter-spacing: -0.015em; color: var(--cr-ink); margin: 44px 0 12px 0; }
.cr-reqs { list-style: none; padding: 0; margin: 0; }
.cr-reqs li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--cr-line); font-size: 17px; color: var(--cr-text); }
.cr-reqs li:last-child { border-bottom: 1px solid var(--cr-line); }
.cr-reqs li i { color: var(--cr-brand); margin-top: 5px; font-size: 14px; flex-shrink: 0; }
.cr-reqs li.is-must i { color: var(--cr-ink); }
.cr-must { margin-left: 8px; font-size: 14px; font-weight: 650; color: var(--cr-ink); }
.cr-j-cta { margin-top: 34px; }

/* ---- apply card ---------------------------------------------------------------------------- */
.cr-apply { background: #ffffff; border: 1px solid var(--cr-line-2); border-radius: 14px; padding: 28px 26px; position: sticky; top: 20px; scroll-margin-top: 16px; }
.cr-apply-head h2 { font-family: var(--cr-display); font-weight: 650; font-size: 24px; line-height: 1.15; letter-spacing: -0.012em; color: var(--cr-ink); margin: 0 0 6px 0; }
.cr-apply-head p { margin: 0; font-size: 15px; color: var(--cr-muted); }
.cr-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.cr-step { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cr-muted); }
.cr-step::before { content: ""; height: 4px; border-radius: 2px; background: var(--cr-tint-2); transition: background .25s var(--cr-ease); }
.cr-step.is-on { color: var(--cr-ink); }
.cr-step.is-on::before { background: var(--cr-ink); }
.cr-step.is-done { color: var(--cr-ok); }
.cr-step.is-done::before { background: var(--cr-ok); }
@keyframes cr-panel-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.cr-panel { display: none; }
.cr-panel.is-on { display: block; animation: cr-panel-in .3s var(--cr-ease) both; }
.cr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cr-field { margin-bottom: 14px; min-width: 0; }
.cr-field label { display: block; font-size: 15px; font-weight: 600; color: var(--cr-ink); margin-bottom: 6px; }
.cr-field input, .cr-field select, .cr-field textarea { width: 100%; min-width: 0; border: 1px solid var(--cr-line-2); border-radius: 8px; padding: 12px 14px; font-family: inherit; font-size: 16px; color: var(--cr-text); background: #ffffff; -webkit-appearance: none; appearance: none; }
.cr-field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235f6672' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.cr-field input:focus, .cr-field select:focus, .cr-field textarea:focus { outline: 0; border-color: var(--cr-ink); box-shadow: 0 0 0 3px var(--cr-tint-2); }
.cr-inline { display: flex; gap: 8px; }
.cr-inline select { width: 132px; flex-shrink: 0; }
.cr-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.cr-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--cr-text); margin: 6px 0 18px 0; cursor: pointer; }
.cr-cb-wrap { position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.cr-cb-wrap input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cr-cb-box { display: block; width: 22px; height: 22px; border: 1.5px solid var(--cr-line-2); border-radius: 5px; background: #ffffff; pointer-events: none; }
.cr-cb-wrap input:checked + .cr-cb-box { background: var(--cr-ink); border-color: var(--cr-ink); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='10'><path d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: center; }
.cr-cb-wrap input:focus-visible + .cr-cb-box { outline: 3px solid var(--cr-brand); outline-offset: 2px; }
.cr-lead { font-size: 16px; color: var(--cr-text); margin: 0 0 14px 0; }
.cr-otp { font-size: 28px !important; letter-spacing: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; }
.cr-links a { color: var(--cr-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cr-line-2); text-underline-offset: 3px; }
.cr-links a.is-off { color: var(--cr-muted); pointer-events: none; text-decoration: none; }
.cr-drop { border: 1.5px dashed var(--cr-line-2); border-radius: 10px; padding: 20px 16px; text-align: center; cursor: pointer; color: var(--cr-text); font-size: 15px; display: flex; flex-direction: column; gap: 8px; align-items: center; background: var(--cr-tint); word-break: break-word; }
.cr-drop:hover { border-color: var(--cr-ink); }
.cr-drop i { font-size: 22px; color: var(--cr-ink); }
.cr-drop.has-file { border-style: solid; border-color: var(--cr-ok); color: #166534; background: #f0fdf4; }
.cr-drop.has-file i { color: var(--cr-ok); }
.cr-pow { margin: 12px 0; font-size: 14px; color: var(--cr-muted); }
.cr-pow-bar { height: 6px; background: var(--cr-tint-2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.cr-pow-bar div { height: 100%; width: 5%; background: var(--cr-ink); transition: width .2s ease; }
.cr-btn { border: 1px solid var(--cr-line-2); background: #ffffff; color: var(--cr-ink); border-radius: 8px; padding: 12px 20px; font-family: inherit; font-size: 16px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; min-height: 48px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cr-btn:hover { border-color: var(--cr-ink); }
.cr-btn-primary { background: var(--cr-ink); border-color: var(--cr-ink); color: #ffffff; }
.cr-btn-primary:hover { background: var(--cr-brand); border-color: var(--cr-brand); }
.cr-btn-danger { background: #b91c1c; border-color: #b91c1c; color: #ffffff; }
.cr-btn-block { width: 100%; }
.cr-btn-lg { padding: 14px 26px; font-size: 17px; min-height: 54px; }
.cr-btn.is-busy, .cr-btn:disabled { pointer-events: none; opacity: 0.65; }
.cr-done { padding: 6px 0 2px 0; }
.cr-done i { font-size: 40px; color: var(--cr-ok); }
.cr-done h3 { font-family: var(--cr-display); font-weight: 650; margin: 12px 0 8px 0; font-size: 24px; color: var(--cr-ink); }
.cr-done p { color: var(--cr-text); font-size: 16px; margin: 0 0 18px 0; }

/* the phone's Apply bar (job page), shown while the form is out of view */
.cr-mbar { display: none; }

/* ---- status page --------------------------------------------------------------------------------- */
.cr-status { padding-top: 34px; }
.cr-status-head { display: flex; gap: 18px; align-items: flex-start; }
.cr-status-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--cr-ink); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cr-status-icon.is-good { background: var(--cr-ok); }
.cr-status-icon.is-off { background: var(--cr-muted); }
.cr-status-ref { font-size: 15px; font-weight: 600; color: var(--cr-muted); }
.cr-status h1 { font-family: var(--cr-display); font-weight: 650; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.022em; color: var(--cr-ink); margin: 4px 0 8px 0; }
.cr-status-head p { margin: 0; color: var(--cr-text); font-size: 17px; }
.cr-track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 32px 0 8px 0; padding: 0; }
.cr-track li { position: relative; padding-top: 24px; font-size: 14px; font-weight: 600; color: var(--cr-muted); }
.cr-track li::before { content: ""; position: absolute; top: 4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 2px solid var(--cr-line-2); z-index: 1; }
.cr-track li::after { content: ""; position: absolute; top: 10px; left: 14px; right: 4px; height: 2px; background: var(--cr-line); }
.cr-track li:last-child::after { display: none; }
.cr-track li.is-done { color: var(--cr-text); }
.cr-track li.is-done::before { background: var(--cr-ink); border-color: var(--cr-ink); }
.cr-track li.is-done::after { background: var(--cr-ink); }
.cr-track li.is-now { color: var(--cr-ink); }
.cr-track li.is-now::before { border-color: var(--cr-ink); box-shadow: 0 0 0 5px var(--cr-tint-2); }
.cr-status-job { margin: 26px 0; padding: 16px 18px; background: var(--cr-tint); border: 1px solid var(--cr-line); border-radius: 10px; font-size: 16px; color: var(--cr-text); display: flex; gap: 10px 22px; flex-wrap: wrap; }
.cr-status-job i { color: var(--cr-ink); margin-right: 4px; }
.cr-status-job a { color: var(--cr-ink); font-weight: 650; }
.cr-iv { border: 1px solid var(--cr-line-2); border-radius: 12px; padding: 20px 22px; margin-bottom: 12px; }
.cr-iv h3 { font-family: var(--cr-display); font-weight: 650; font-size: 21px; color: var(--cr-ink); margin: 0 0 6px 0; }
.cr-iv-meta { font-size: 15px; color: var(--cr-muted); margin-bottom: 12px; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.cr-iv-meta i { color: var(--cr-ink); margin-right: 4px; }
.cr-slots { display: flex; flex-direction: column; gap: 8px; }
.cr-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--cr-line-2); border-radius: 10px; padding: 10px 10px 10px 16px; font-size: 16px; }
.cr-slot button { border: 0; background: var(--cr-ink); color: #ffffff; border-radius: 7px; padding: 10px 18px; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; flex-shrink: 0; min-height: 44px; }
.cr-when { font-family: var(--cr-display); font-weight: 650; font-size: 22px; color: var(--cr-ink); }
.cr-status-foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--cr-line); display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--cr-muted); }
.cr-status-foot a { color: var(--cr-ink); }
.cr-modal-bd { position: fixed; inset: 0; background: rgba(15, 18, 28, 0.5); z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.cr-modal-bd.is-on { display: flex; }
.cr-modal { background: #ffffff; border-radius: 14px; padding: 26px; max-width: 460px; width: 100%; }
.cr-modal h3 { font-family: var(--cr-display); font-weight: 650; font-size: 22px; color: var(--cr-ink); margin: 0 0 8px 0; }
.cr-modal p { margin: 0 0 18px 0; color: var(--cr-text); font-size: 16px; }
.cr-modal-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---- tablet and phone ------------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .cr-brand.has-logo .cr-brand-text { display: none; }
    .cr-hero { padding: 40px 24px 34px 24px; }
    .cr-row { grid-template-columns: 1fr; padding: 22px 12px; margin: 0 -12px; }
    .cr-row-facts { line-height: 1.6; }
    .cr-job-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 22px; }
    .cr-apply { position: static; }
    .cr-mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px; background: #ffffff; border-top: 1px solid var(--cr-line-2); transform: translateY(110%); transition: transform .25s var(--cr-ease); }
    .cr-mbar.is-on { transform: none; }
    .cr-mbar .cr-btn { width: 100%; }
    .cr-body[data-page="job"] .cr-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
    .cr-header { padding: 14px 16px; gap: 10px; }
    .cr-brand img { height: 34px; max-width: 120px; }
    .cr-brand img.is-square { height: 44px; max-width: 44px; }
    .cr-mono { width: 38px; height: 38px; font-size: 15px; }
    .cr-header-links a { padding: 10px 12px; }
    .cr-header-links a span { display: none; }
    .cr-header-links a i { font-size: 16px; }
    .cr-hero { padding: 30px 16px 28px 16px; }
    .cr-hero h1 { font-size: 38px; }
    .cr-hero-where { font-size: 17px; }
    .cr-hero p.cr-intro { font-size: 16.5px; }
    .cr-search { padding-left: 14px; }
    .cr-search button { padding: 11px 16px; }
    .cr-main { padding: 0 16px 64px 16px; }
    .cr-footer { padding: 22px 16px 36px 16px; }
    .cr-footer .cr-powered { margin-left: 0; }
    .cr-list-head { margin-top: 32px; }
    .cr-list-head h2 { font-size: 23px; }
    .cr-row h3 { font-size: 21px; }
    .cr-job h1 { font-size: 34px; }
    .cr-j-org { font-size: 16.5px; }
    .cr-facts { grid-template-columns: 1fr 1fr; }
    .cr-j-summary { font-size: 19px; }
    .cr-j-body { font-size: 16.5px; }
    .cr-job h2 { font-size: 23px; }
    .cr-apply { padding: 22px 18px; }
    .cr-grid2 { grid-template-columns: 1fr; }
    .cr-status h1 { font-size: 28px; }
    .cr-status-icon { width: 46px; height: 46px; font-size: 19px; }
    .cr-track li { font-size: 11.5px; }
    .cr-slot { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
    .cr-header-links .cr-lang { padding: 8px 10px; }
}

/* ---- Arabic: right to left (2026-10-15) ---------------------------------------------------------------
   Careers.js sets dir="rtl" on <html> when the page is in Arabic. Every side-specific rule above is
   mirrored here; letter-spacing is reset because it breaks the joined Arabic letters. E-mail, phone,
   code and links stay left to right (dir="ltr" on those fields). */
html[dir="rtl"] .cr-body { line-height: 1.7; }
html[dir="rtl"] .cr-hero h1, html[dir="rtl"] .cr-job h1, html[dir="rtl"] .cr-status h1, html[dir="rtl"] .cr-list-head h2,
html[dir="rtl"] .cr-row h3, html[dir="rtl"] .cr-job h2, html[dir="rtl"] .cr-apply-head h2 { letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .cr-header-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .cr-footer .cr-powered { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .cr-alert { border-left: 1px solid #fde68a; border-right: 4px solid #f59e0b; }
html[dir="rtl"] .cr-alert-err { border-left-color: #fecaca; border-right-color: #ef4444; }
html[dir="rtl"] .cr-search { padding: 5px 16px 5px 5px; }
html[dir="rtl"] .cr-company { padding: 5px 5px 5px 14px; }
html[dir="rtl"] .cr-company.cr-co-all { padding-left: 16px; padding-right: 16px; }
html[dir="rtl"] .cr-list-head span { text-align: left; }
html[dir="rtl"] .cr-facts div { padding: 14px 0 14px 16px; }
html[dir="rtl"] .cr-j-body ul { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .cr-must { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .cr-field select { background-position: left 14px center; padding-right: 14px; padding-left: 36px; }
html[dir="rtl"] .cr-field input[dir="ltr"] { text-align: right; }
html[dir="rtl"] .cr-otp { text-align: center !important; }
html[dir="rtl"] .cr-panel.is-on { animation-name: cr-panel-in-rtl; }
@keyframes cr-panel-in-rtl { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .cr-track li::before { left: auto; right: 0; }
html[dir="rtl"] .cr-track li::after { left: 4px; right: 14px; }
html[dir="rtl"] .cr-status-job i, html[dir="rtl"] .cr-iv-meta i { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .cr-slot { padding: 10px 16px 10px 10px; }
/* the hidden field sits off screen on the side a right-to-left page does not scroll to */
html[dir="rtl"] .cr-hp { left: auto; right: -9999px; }
/* what the company wrote (a job title, a summary, the welcome line) keeps its own direction but lines up
   with the page; the long description keeps its own alignment */
html[dir="rtl"] .cr-job h1[dir="auto"], html[dir="rtl"] .cr-j-summary, html[dir="rtl"] .cr-row [dir="auto"], html[dir="rtl"] .cr-intro[dir="auto"], html[dir="rtl"] .cr-status-job [dir="auto"] { text-align: right; }
html[dir="ltr"] .cr-job h1[dir="auto"], html[dir="ltr"] .cr-j-summary, html[dir="ltr"] .cr-row [dir="auto"], html[dir="ltr"] .cr-intro[dir="auto"], html[dir="ltr"] .cr-status-job [dir="auto"] { text-align: left; }
@media (max-width: 560px) {
    html[dir="rtl"] .cr-search { padding-left: 5px; padding-right: 14px; }
    html[dir="rtl"] .cr-footer .cr-powered { margin-right: 0; }
}
