/* ==========================================================================
   Naqar Careers. Built on the site's tokens (assets/css/site.css in
   Naqar Growth Site), so light/dark, RTL/LTR and type scale follow the site.
   ========================================================================== */

/* Index ------------------------------------------------------------------ */
.ngc-hero .phero__title { max-width: 16em; }
.ngc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.ngc-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ngc-steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--copper) 16%, transparent); color: var(--copper-ink); font-family: var(--f-latin); }
.ngc-steps h3 { font-size: var(--step-1); margin: 4px 0 6px; }
.ngc-steps p { margin: 0; color: var(--ink-2); font-size: var(--step-0); }

.ngc-filters { display: grid; gap: 14px; margin-bottom: 22px; }
.ngc-filter { display: grid; gap: 8px; }
.ngc-filter__row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ngc-filter__l { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }

.ngc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ngc-card[hidden] { display: none; }
.ngc-card__a {
	position: relative; display: grid; gap: 10px; height: 100%; padding: 22px 22px 54px;
	border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
	text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ngc-card__a:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shade); }
.ngc-card__fam { font-size: var(--step--1); font-weight: 700; color: var(--copper-ink); }
.ngc-card__t { font-size: var(--step-1); font-weight: 800; line-height: 1.35; }
.ngc-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ngc-card__test { font-size: var(--step--1); color: var(--ink-2); }
.ngc-card__go { position: absolute; inset-inline-end: 18px; bottom: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.ngc-card__go .ngs-icon { width: 18px; height: 18px; }
.ngc-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); font-size: .75rem; font-weight: 700; }
.ngc-tag--lv { background: color-mix(in srgb, var(--copper) 15%, transparent); color: var(--copper-ink); }
.ngc-tag--submitted { background: color-mix(in srgb, #2F7D4F 16%, transparent); color: #2F7D4F; }
html[data-theme="dark"] .ngc-tag--submitted { color: #7FD3A2; }
.ngc-tag--active { background: color-mix(in srgb, var(--copper) 18%, transparent); color: var(--copper-ink); }
.ngc-empty { padding: 28px; color: var(--ink-2); }
.ngc-empty h3 { margin-bottom: 6px; color: var(--ink); }
.ngc-signin-line { margin: 22px 0 0; color: var(--ink-2); font-size: var(--step-0); }
.ngc-signin-line a { color: var(--copper-ink); font-weight: 700; }

/* Job page --------------------------------------------------------------- */
.ngc-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ngc-facts li { display: grid; gap: 2px; padding: 10px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ngc-facts span { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.ngc-facts b { font-size: var(--step-0); }
.ngc-facts--center { justify-content: center; margin: 6px 0 18px; }

.ngc-job { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.ngc-job__main { display: grid; gap: 14px; }
.ngc-block { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ngc-block__h { font-size: var(--step-1); margin-bottom: 14px; color: var(--copper-ink); }
.ngc-block__h3 { font-size: var(--step-0); margin: 20px 0 10px; }
.ngc-pre { white-space: pre-line; margin: 0; }
.ngc-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: var(--step-0); }
.ngc-table th, .ngc-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ngc-table th { font-size: .75rem; color: var(--ink-2); font-weight: 700; }
.ngc-table td small { display: block; color: var(--ink-2); font-size: .75rem; margin-top: 2px; }
.ngc-rules { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--step-0); }
.ngc-rules li::marker { color: var(--copper-ink); }

.ngc-job__side { display: grid; gap: 12px; }
.ngc-apply { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--copper); }
.ngc-apply [data-step] { display: grid; gap: 16px; }
.ngc-apply [data-step][hidden] { display: none; }
.ngc-apply__t { font-size: var(--step-2); }
.ngc-apply__p { margin: 0; color: var(--ink-2); font-size: var(--step-0); }
.ngc-apply__btn { width: 100%; }
.ngc-apply__sent { margin: 0; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--copper) 12%, transparent); font-size: var(--step-0); }
.ngc-cc .chip { min-height: 36px; padding: .3em .85em; }
.ngc-code { font-family: var(--f-latin); font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-weight: 800; }
.ngc-side-note { margin: 0; padding: 0 6px; font-size: .78rem; color: var(--ink-2); }

@media (max-width: 1023px) {
	.ngc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngc-job { grid-template-columns: 1fr; }
	.ngc-job__side { order: -1; }
}
@media (max-width: 639px) {
	.ngc-steps { grid-template-columns: 1fr; }
}

/* Candidate area & assessment ------------------------------------------ */
.ngs--bare .main { min-height: calc(100svh - 84px); }
.ngc-app { padding-block: clamp(16px, 4vw, 40px) clamp(48px, 8vw, 96px); }
.ngc-app__in { max-width: 920px; }
.ngc-load { display: grid; place-items: center; gap: 12px; padding: 80px 0; color: var(--ink-2); }
.ngc-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--copper); animation: ngc-spin 1s linear infinite; }
@keyframes ngc-spin { to { transform: rotate(360deg); } }

.ngc-panel { position: relative; display: grid; gap: 16px; padding: clamp(20px, 4vw, 40px); border-radius: calc(var(--r-lg) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shade); overflow: hidden; }
.ngc-panel--center { justify-items: center; text-align: center; }
.ngc-narrow { max-width: 560px; margin-inline: auto; }
.ngc-h { font-size: var(--step-3); font-weight: 800; line-height: 1.25; outline: none; }
.ngc-h2 { font-size: var(--step-1); font-weight: 800; margin-top: 6px; }
.ngc-lead { margin: 0; color: var(--ink-2); font-size: var(--step-1); max-width: 40em; }
.ngc-note { margin: 0; color: var(--ink-2); font-size: var(--step-0); }
.ngc-stack { display: grid; gap: 14px; }
.ngc-stack[hidden] { display: none; }
.ngc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.ngc-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ngc-apps li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); }
.ngc-apps small { display: block; color: var(--ink-2); font-size: .75rem; }
.ngc-cvline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed var(--line-2); }

/* Header HUD (section and time) */
.hdr--bare .hdr__in { min-height: 72px; }
.hdr--bare .hdr__logo .ngs-logo { width: 170px; }
.hdr--bare .hdr__tools { margin-inline-start: auto; }
.ngc-hud { display: inline-flex; align-items: center; gap: 12px; }
.ngc-hud[hidden] { display: none; }
.ngc-hud__sec { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.ngc-hud__time { min-width: 64px; padding: 6px 12px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-family: var(--f-latin); font-weight: 800; font-size: var(--step-0); text-align: center; font-variant-numeric: tabular-nums; }
.ngc-hud__time:empty { display: none; }
.ngc-hud__time.is-low { background: var(--signal); color: #fff; }
@media (max-width: 639px) {
	.hdr--bare .hdr__logo .ngs-logo { width: 120px; }
	.ngc-hud__sec { display: none; }
}

/* Section steps */
.ngc-steps-bar { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ngc-steps-bar li { padding: 4px 12px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ngc-steps-bar li.is-done { background: color-mix(in srgb, var(--copper) 16%, transparent); color: var(--copper-ink); }
.ngc-steps-bar li.is-now { background: var(--ink); color: var(--bg); }

/* Question */
.ngc-qwrap { gap: 18px; padding-top: clamp(22px, 4vw, 40px); }
.ngc-prog { position: absolute; inset: 0 0 auto 0; height: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ngc-prog i { display: block; height: 100%; background: var(--copper); transition: width .4s var(--ease); }
.ngc-q__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ngc-q__sec { margin: 0; font-size: .75rem; font-weight: 800; color: var(--copper-ink); text-transform: none; }
.ngc-q__pos { margin: 0; font-size: var(--step-0); font-weight: 700; }
.ngc-ring { --p: 1; position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
	background: conic-gradient(var(--copper) calc(var(--p) * 360deg), color-mix(in srgb, var(--ink) 9%, transparent) 0); }
.ngc-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ngc-ring span { position: relative; font-family: var(--f-latin); font-weight: 800; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ngc-ring.is-low { background: conic-gradient(var(--signal) calc(var(--p) * 360deg), color-mix(in srgb, var(--ink) 9%, transparent) 0); }

/* Every box in the question area takes its width from the page, never from
   its content: a long painted line cannot push the layout wider. */
.ngc-qwrap > *, .ngc-q, .ngc-q > *, .ngc-opts > * { min-width: 0; }
.ngc-q { display: grid; gap: 16px; text-align: left; }
.ngc-cvhost { display: block; width: 100%; min-width: 0; overflow: hidden; contain: inline-size; }
.ngc-cv { display: block; max-width: 100%; }
/* A wide table scrolls inside its own box; the page never gets wider. The
   canvas is painted left to right, so the scroll starts at its left edge. */
.ngc-cvhost.is-wide { overflow-x: auto; overflow-y: hidden; direction: ltr; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ngc-cvhost.is-wide .ngc-cv { max-width: none; }
.ngc-stem { display: grid; gap: 8px; padding: 4px 0; }
.ngc-tag-l { margin: 0; font-size: .75rem; font-weight: 800; color: var(--copper-ink); text-align: start; }
.ngc-case { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); }
.ngc-reveal { display: grid; gap: 8px; padding: 14px 18px; border-radius: var(--r); border-inline-start: 4px solid var(--copper); background: color-mix(in srgb, var(--copper) 9%, transparent); }
.ngc-q__hint { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); text-align: start; }

.ngc-opts { display: grid; gap: 10px; }
.ngc-opt {
	display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%;
	padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface);
	text-align: start; color: var(--ink); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.ngc-opt { cursor: pointer; min-height: 56px; align-items: center; }
.ngc-opt:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.ngc-opt:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.ngc-opt[aria-pressed="true"] { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 22%, transparent); }
.ngc-opt.is-key { border-color: #2F7D4F; box-shadow: 0 0 0 3px color-mix(in srgb, #2F7D4F 25%, transparent); }
.ngc-opt__l { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); font-family: var(--f-latin); font-size: .8125rem; }
.ngc-opt[aria-pressed="true"] .ngc-opt__l { background: var(--copper); color: var(--on-copper); }
.ngc-opt__t { display: block; min-width: 0; }
.ngc-opts--tf { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ngc-opt--tf { grid-template-columns: 34px minmax(0, 1fr); min-height: 64px; }
.ngc-tf__w { display: grid; gap: 2px; justify-items: center; padding-inline-end: 34px; }
.ngc-tf__w strong { font-family: var(--f-ar, inherit); font-size: var(--step-1); font-weight: 800; }
.ngc-tf__w small { font-family: var(--f-latin); font-size: .75rem; color: var(--ink-2); }
@media (max-width: 639px) {
	.ngc-opts--tf { grid-template-columns: 1fr; }
	.ngc-opt--tf { min-height: 58px; }
}

.ngc-ml { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); }
.ngc-ml__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.ngc-ml__b { min-height: 40px; padding: .35em .9em; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: transparent; font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.ngc-ml__b--most[aria-pressed="true"] { background: #2F7D4F; border-color: #2F7D4F; color: #fff; }
.ngc-ml__b--least[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #fff; }
@media (max-width: 639px) {
	.ngc-ml { grid-template-columns: 30px minmax(0, 1fr); }
	.ngc-ml__acts { grid-column: 1 / -1; justify-content: stretch; }
	.ngc-ml__b { flex: 1; }
}

.ngc-abs { display: grid; justify-items: center; }
.ngc-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(100%, 380px); padding: 6px; border-radius: var(--r); background: var(--line); }
.ngc-tile { aspect-ratio: 1; border-radius: 6px; background: #fff; overflow: hidden; }
.ngc-tile__cv { display: block; width: 100%; height: 100%; }
.ngc-tile--q { display: grid; place-items: center; font: 800 2.2rem/1 var(--f-latin); color: #9b9b9b; background: repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f0f0f0 6px, #f0f0f0 12px); }
.ngc-opts--tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ngc-opt--tile { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 6px; justify-items: center; }
.ngc-opt--tile .ngc-tile__cv { aspect-ratio: 1; height: auto; border-radius: 6px; background: #fff; min-width: 88px; }
.ngc-opt--tile b { font-family: var(--f-latin); font-size: .8125rem; }
@media (max-width: 639px) {
	.ngc-opts--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ngc-q__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.ngc-q__status { margin: 0; color: var(--ink-2); font-size: var(--step--1); min-height: 1.4em; }
.ngc-confirm { min-width: 180px; }
@media (max-width: 639px) {
	.ngc-q__foot .btn { width: 100%; }
}

/* Watermark: candidate email and reference, faint, across the question */
.ngc-wm { position: absolute; inset: 0; pointer-events: none; z-index: 2; background-repeat: repeat; opacity: 1; }
html[data-theme="dark"] .ngc-wm { filter: invert(1); }

/* Protection while testing */
body.ngc-testing .ngc-app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.ngc-testing.ngc-hidden .ngc-qwrap, body.ngc-covered .ngc-qwrap { filter: blur(18px); }
.ngc-cover { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); }
.ngc-cover__in { display: grid; gap: 14px; justify-items: center; max-width: 460px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; box-shadow: var(--shade); }
.ngc-cover__in h2 { font-size: var(--step-2); }
.ngc-cover__in p { margin: 0; color: var(--ink-2); }
.ngc-banner { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 210; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 700; text-align: center; }
@media print { body.ngc-testing * { display: none !important; } }

/* CV */
.ngc-drop { position: relative; display: grid; place-items: center; gap: 6px; padding: 36px 16px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg); cursor: pointer; text-align: center; transition: border-color .2s, background-color .2s; }
.ngc-drop:hover, .ngc-drop.is-over { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 6%, var(--bg)); }
.ngc-drop span { color: var(--ink-2); font-size: var(--step--1); }
.ngc-file { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Result */
.ngc-done__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: start; padding: 18px; border-radius: var(--r-lg); background: var(--bg); }
.ngc-score { --s: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 168px; height: 168px; margin-top: 8px; border-radius: 50%;
	background: conic-gradient(var(--copper) calc(var(--s) * 360deg), color-mix(in srgb, var(--ink) 9%, transparent) 0); }
.ngc-score::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg); }
.ngc-score b, .ngc-score span { position: relative; font-family: var(--f-latin); }
.ngc-score b { font-size: 3rem; font-weight: 800; line-height: 1; }
.ngc-score span { color: var(--ink-2); font-weight: 700; font-size: var(--step-0); }
.ngc-score.is-in { animation: ngc-dial .9s var(--ease-out) both; }
@keyframes ngc-dial { from { opacity: 0; transform: scale(.92); } }
.ngc-parts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ngc-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.ngc-parts i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.ngc-parts em { display: block; height: 100%; border-radius: 8px; background: var(--copper); }
.ngc-band { font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: var(--pill); }
.ngc-band--a { background: color-mix(in srgb, #2F7D4F 16%, transparent); color: #2F7D4F; }
.ngc-band--b { background: color-mix(in srgb, var(--copper) 16%, transparent); color: var(--copper-ink); }
.ngc-band--c, .ngc-band--d { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
html[data-theme="dark"] .ngc-band--a { color: #7FD3A2; }
@media (max-width: 767px) {
	.ngc-done__grid { grid-template-columns: 1fr; justify-items: center; }
	.ngc-done__grid > div { width: 100%; display: grid; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ngc-card__a, .ngc-prog i, .ngc-score.is-in, .ngc-spin { transition: none; animation: none; }
}

/* Applicant sign-in, visible from the careers pages */
.ngc-hero-acts { margin: 18px 0 0; }
