/* ============================================================
   LeAlmond — Commercial Interview Questions (interview-questions.html),
   on top of site.css and jobs.css (search box, chips, empty state, end cards).
   The four side colours are the handbook's: Core white, Client blue, Consultant amber, Contractor green.
   Screen first, then the printout (#cq-doc): A4, dark cover, the questions, the brochure page.
   ============================================================ */
.cq, #cq-doc {
  --s-core: #FFFFFF;
  --s-client: #6CC5F5;
  --s-consultant: #F4C95D;
  --s-contractor: #98D064;
  --s-hr: #98D064;
}
#cq-doc { display: none; }

/* ---------- head ---------- */
.cq-head { padding-block: clamp(20px, 4vw, 44px) 4px; }
.cq-title { max-width: 22ch; margin-bottom: 10px; font-size: clamp(30px, 4.4vw, 50px); }
.cq-lead { color: var(--dim); font-size: clamp(16px, 1.9vw, 19px); max-width: 62ch; }
.cq-search { max-width: 760px; }
.cq-hints > li:first-child { color: var(--dim); }
.cq-match {
  display: inline-block; margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; background: var(--green-soft);
  border: 1px solid rgba(152, 208, 100, .4); font-size: 15px;
}
.cq-match b { color: var(--green); }
.cq-match[hidden] { display: none; }

/* ---------- career tiles ---------- */
.cq-pick { padding-block: 26px 6px; }
.cq-h2 { margin: 0; font: 900 clamp(22px, 2.6vw, 28px)/1.3 var(--font); }
.cq-pick-p { margin: 4px 0 0; color: var(--dim); font-size: 15px; }
.cq-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; }
@media (min-width: 760px) { .cq-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cq-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i t" "i n"; align-items: center; gap: 0 12px;
  width: 100%; height: 100%; min-height: 76px; padding: 14px 16px; text-align: start; cursor: pointer;
  background: var(--panel); color: var(--chalk); border: 1px solid var(--hair); border-radius: var(--r); font-family: var(--font);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.cq-tile:hover { border-color: var(--green); transform: translateY(-1px); }
.cq-tile .ico { grid-area: i; width: 30px; height: 30px; color: var(--green); }
.cq-tile-t { grid-area: t; font: 700 16px/1.3 var(--font); }
.cq-tile-n { grid-area: n; font-size: 14px; color: var(--dim); }
.cq-tile[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); }
.cq-tile[aria-pressed="true"] .ico, .cq-tile[aria-pressed="true"] .cq-tile-n { color: var(--ink); }
.cq-pick.is-compact { padding-top: 14px; }
.cq-pick.is-compact .cq-pick-p, .cq-pick.is-compact .cq-h2 { display: none; }
.cq-pick.is-compact .cq-tiles { margin-top: 0; gap: 8px; }
.cq-pick.is-compact .cq-tile { min-height: 56px; padding: 8px 12px; }
.cq-pick.is-compact .cq-tile .ico { width: 22px; height: 22px; }
.cq-pick.is-compact .cq-tile-t { font-size: 15px; }

/* ---------- filters ---------- */
.cq-body { padding-block: 18px 40px; }
.cq-filters { display: grid; gap: 14px 28px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); }
.cq-filters[hidden], .cq-f[hidden], .cq-profile[hidden], .cq-bar[hidden], .cq-printbar[hidden], #cq-static[hidden] { display: none; }
@media (min-width: 1000px) { .cq-filters { grid-template-columns: minmax(0, 1fr) auto; } .cq-f-lang { grid-column: 2; grid-row: 1; } }
.cq-fh { margin: 0 0 8px; font: 700 15px/1.3 var(--font); color: var(--dim); }
.cq-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel-deep); width: max-content; max-width: 100%; }
.cq-seg button {
  min-height: 48px; padding: 4px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--chalk);
  font: 700 15px/1.25 var(--font); cursor: pointer; text-align: center;
}
.cq-seg button small { display: block; font-size: 14px; font-weight: 400; color: var(--dim); }
.cq-seg button[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.cq-seg button[aria-pressed="true"] small { color: var(--ink); }
.cq-seg.is-small button { min-height: 44px; font-size: 14px; }
.cq-chip { font-size: 14px; }
.cq-chip[class*="is-"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cq-chip.is-core::before { background: var(--s-core); }
.cq-chip.is-client::before { background: var(--s-client); }
.cq-chip.is-consultant::before { background: var(--s-consultant); }
.cq-chip.is-contractor::before { background: var(--s-contractor); }

/* ---------- level profile ---------- */
.cq-profile { margin-top: 14px; }
.cq-prof-h { margin: 0; font: 900 clamp(20px, 2.4vw, 25px)/1.35 var(--font); }
.cq-prof-h em { display: inline-block; font-style: normal; color: var(--green); font-size: .8em; }
.cq-prof-intro { margin: 6px 0 0; color: var(--dim); font-size: 16px; max-width: 80ch; }
.cq-prof { display: grid; gap: 10px; margin: 14px 0 0; }
@media (min-width: 900px) { .cq-prof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.cq-prof dt { font-size: 14px; font-weight: 700; color: var(--green); }
.cq-prof dd { margin: 2px 0 0; font-size: 15px; }

/* ---------- results ---------- */
.cq-results { margin-top: 18px; }
.cq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cq-count { margin: 0; }
.cq-bar-end { display: flex; flex-wrap: wrap; gap: 8px; }
.cq-print-btn { gap: 8px; }
.cq-print-btn .ico { width: 20px; height: 20px; }
.cq-printbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; padding: 10px 14px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 14px; }
.cq-dim { margin: 0; color: var(--dim); font-size: 14px; flex: 1 1 260px; }
.cq-linkbtn { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--green); font: 700 14px/1 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cq-linkbtn[hidden] { display: none; }

.cq-cards { list-style: none; display: grid; gap: 10px; margin: 14px 0 0; padding: 0; }
.cq-card {
  position: relative; padding: 12px 16px 12px 18px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r);
  border-inline-start: 4px solid var(--c);
}
.cq-card-top { display: flex; align-items: center; gap: 10px; min-height: 30px; padding-inline-end: 44px; }
.cq-side { padding: 2px 10px; border-radius: 999px; background: var(--c); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.6; }
.cq-where { font-size: 14px; color: var(--dim); }
.cq-pickbox {
  position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
}
.cq-pickbox input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.cq-pickbox .ico { width: 26px; height: 26px; padding: 3px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 7px; color: transparent; stroke-width: 3; }
.cq-pickbox.is-on .ico { background: var(--green); border-color: var(--green); color: var(--ink); }
.cq-pickbox:has(input:focus-visible) .ico { outline: 3px solid var(--green); outline-offset: 2px; }
.cq-card details > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding-block: 6px 2px; }
.cq-card details > summary::-webkit-details-marker { display: none; }
.cq-q { margin: 0; font: 700 18px/1.5 var(--font); }
.cq-chev { flex: none; width: 24px; height: 24px; margin-top: 3px; color: var(--green); transition: transform .2s ease; }
.cq-card details[open] .cq-chev { transform: rotate(180deg); }
.cq-a { padding-top: 6px; font-size: 16px; }
.cq-a p { margin: 0; }
.cq-lab { margin-top: 10px !important; font-size: 14px; font-weight: 700; color: var(--green); }
.cq-lab:first-child { margin-top: 4px !important; }
.cq-w { color: var(--dim); }
.cq mark { background: rgba(152, 208, 100, .3); color: inherit; border-radius: 3px; padding: 0 2px; }

/* no JavaScript / before a choice: every career and its levels */
#cq-static { margin-top: 8px; }
.cq-static-list { list-style: none; display: grid; gap: 12px; margin: 14px 0 0; padding: 0; }
@media (min-width: 900px) { .cq-static-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cq-static { padding: 16px 18px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); }
.cq-static h3 { margin: 0; font: 700 18px/1.4 var(--font); }
.cq-static > p { margin: 4px 0 8px; color: var(--dim); font-size: 15px; }
.cq-static ul { margin: 0; padding-inline-start: 18px; font-size: 14px; display: grid; gap: 4px; }
.cq-static ul span { color: var(--dim); }
.js .cq-static-list { display: none; }
.js #cq-static .cq-h2 { display: none; }

@media (max-width: 559.98px) {
  .cq-seg { width: 100%; }
  #f-level { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #f-level button { padding: 4px 6px; font-size: 14px; }
  .cq-bar-end { width: 100%; }
  .cq-bar-end .btn { flex: 1; }
  .cq-card { padding: 10px 12px 12px 14px; }
  .cq-q { font-size: 17px; }
  .cq-tile { padding: 12px; gap: 0 10px; }
  .cq-tile-t { font-size: 15px; }
  /* once a career is picked, the eight careers become one row that scrolls sideways */
  .cq-pick.is-compact .cq-tiles {
    display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px;
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .cq-pick.is-compact .cq-tiles::-webkit-scrollbar { display: none; }
  .cq-pick.is-compact .cq-tiles li { flex: none; scroll-snap-align: start; }
  .cq-pick.is-compact .cq-tile { grid-template-areas: "i t"; grid-template-rows: auto; min-height: 48px; padding: 6px 14px; }
  .cq-pick.is-compact .cq-tile-n { display: none; }
  .cq-pick.is-compact .cq-tile-t { white-space: nowrap; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cq-tile, .cq-chev { transition: none !important; } .cq-tile:hover { transform: none; } }

/* ============================================================
   The printout. Built by questions.js into #cq-doc and shown only while printing.
   A4 with no browser margins: the cover and the brochure are full pages of their own;
   the questions flow through a table whose header and footer repeat on every page.
   ============================================================ */
@media print {
  @page { size: A4; margin: 0; }
  html.cq-printing body > :not(#cq-doc) { display: none !important; }
  /* the board colour on every page, even with the print dialog's "Background graphics" off */
  html.cq-printing, html.cq-printing body {
    background: #303030 !important; margin: 0; padding: 0; min-height: 0;
    -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
  }
  html.cq-printing #cq-doc { display: block; }
}
.pd {
  width: 210mm; color: #FFFFFF; font: 400 10pt/1.6 var(--font);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.pd a { color: inherit; text-decoration: none; }
.pd p { margin: 0; }
.pd, .pd * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* the board texture behind every question page (a fixed layer repeats on each printed page) */
.pd-bg { position: fixed; inset: 0; z-index: 0; background: #303030 url("img/board.jpg") center / cover no-repeat; }
.pd-page, .pd-flow { position: relative; z-index: 1; }

/* full pages: cover and brochure */
.pd-page {
  position: relative; width: 210mm; height: 296.5mm; overflow: hidden; padding: 17mm 16mm 0;
  background: #303030 url("img/board.jpg") center / cover no-repeat; break-after: page; page-break-after: always;
}
.pd-bro { break-before: page; page-break-before: always; break-after: auto; page-break-after: auto; }
.pd-logo { position: absolute; top: 12mm; inset-inline-end: 16mm; height: 22mm; width: auto; }
.pd-kicker { color: #98D064; font-weight: 700; font-size: 10.5pt; letter-spacing: .12em; text-transform: uppercase; }
.pd[lang="ar"] .pd-kicker { letter-spacing: 0; font-size: 12pt; text-transform: none; }
.pd[lang="ar"] .pd-inside div { text-align: right; }
.pd-title { margin: 30mm 0 0; font-weight: 900; line-height: 1.08; }
.pd-title span { display: block; font-size: 50pt; }
.pd-title .is-g { color: #98D064; font-size: 36pt; line-height: 1.35; }
.pd[lang="ar"] .pd-title { line-height: 1.35; }
.pd[lang="ar"] .pd-title span { font-size: 44pt; }
.pd[lang="ar"] .pd-title .is-g { font-size: 34pt; }
.pd-inside { margin-top: 7mm; padding-inline-start: 4mm; border-inline-start: 2.5pt solid #98D064; }
.pd-inside p { color: #98D064; font-weight: 700; font-size: 8.5pt; letter-spacing: .06em; text-transform: uppercase; }
.pd-inside div { font-weight: 600; font-size: 12pt; line-height: 1.5; }
.pd-ed { margin-top: 8mm !important; color: #98D064; font-weight: 700; font-size: 17pt; }
.pd-sub { margin-top: 1mm !important; color: #C8C8C8; font-size: 12.5pt; }
.pd-idx { margin-top: 8mm; padding: 3mm 6mm; background: rgba(20, 20, 20, .4); border: 1pt solid #98D064; border-radius: 8pt; }
.pd-idx div { display: flex; justify-content: space-between; gap: 6mm; padding-block: 2.2mm; font-size: 12pt; border-bottom: .6pt solid rgba(255, 255, 255, .14); }
.pd-idx div:last-child { border: 0; }
.pd-idx b { color: #98D064; font-weight: 900; }
.pd-how { margin-top: 8mm; font-size: 9.5pt; color: #C8C8C8; }
.pd-how p { color: #FFFFFF; font-weight: 700; font-size: 10.5pt; margin-bottom: 1.5mm; }
.pd-how ul { margin: 0; padding-inline-start: 5mm; display: grid; gap: 1mm; }
.pd-how li::marker { color: #98D064; }
.pd-by { position: absolute; inset-inline: 16mm; bottom: 21mm; display: flex; justify-content: space-between; font-weight: 600; font-size: 10pt; }
.pd-by span { color: #C8C8C8; font-weight: 400; }
.pd-foot {
  position: absolute; inset-inline: 16mm; bottom: 9mm; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 2mm 4mm; padding-top: 3mm; border-top: .6pt solid rgba(255, 255, 255, .18); font-size: 7.5pt; font-weight: 600; direction: ltr;
}
.pd-foot a { display: inline-flex; align-items: center; gap: 1.5mm; white-space: nowrap; }
.pd-foot a:first-child { color: #98D064; }
.pd-foot img { height: 9pt; width: auto; }
.pd-foot svg { width: 8.5pt; height: 8.5pt; }
.pd-foot .is-linkedin { fill: #0A66C2; }
.pd-foot .is-youtube { fill: #FF0000; }
.pd-foot .is-whatsapp { fill: #25D366; }
.pd-foot .is-instagram { fill: #E4405F; }
.pd-foot .is-facebook { fill: #1877F2; }

/* the questions */
.pd-flow { width: 210mm; border-collapse: collapse; }
.pd-flow td { padding: 0 16mm; vertical-align: top; }
.pd-head { display: flex; align-items: center; gap: 3mm; padding: 8mm 0 3mm; margin-bottom: 4mm; border-bottom: .6pt solid rgba(255, 255, 255, .18); color: #C8C8C8; font-size: 8pt; font-weight: 600; }
.pd-head img { height: 8mm; width: auto; }
.pd-flow tfoot .pd-foot { position: static; margin: 3mm 0 0; padding: 3mm 0 8mm; }
.pd-group { margin-top: 3mm; break-after: avoid; page-break-after: avoid; break-inside: avoid; }
.pd-gh { margin: 0; font-size: 17pt; font-weight: 900; line-height: 1.35; }
.pd-gh em { font-style: normal; color: #98D064; }
.pd-prof { margin: 2mm 0 4mm; padding: 3mm 4mm; background: rgba(20, 20, 20, .4); border-radius: 6pt; font-size: 9pt; color: #C8C8C8; }
.pd-prof b { color: #FFFFFF; }
.pd-prof-l { color: #98D064; font-weight: 700; font-size: 8pt; }
.pd-side { display: flex; align-items: center; gap: 2.5mm; margin: 4mm 0 2.5mm; font-size: 10pt; font-weight: 700; break-after: avoid; page-break-after: avoid; }
.pd-side span, .pd-q h3 b { padding: .3mm 2.5mm; border-radius: 99pt; background: #FFFFFF; color: #141414; font-size: 8.5pt; font-weight: 700; }
.pd-side.is-client span { background: var(--s-client); }
.pd-side.is-consultant span { background: var(--s-consultant); }
.pd-side.is-contractor span { background: var(--s-contractor); }
.pd-q {
  margin: 0 0 2.6mm; padding: 3mm 4mm 3.2mm; background: rgba(20, 20, 20, .42); border-radius: 6pt;
  border-inline-start: 3pt solid var(--c, #FFFFFF); break-inside: avoid; page-break-inside: avoid;
}
.pd-q.is-client { --c: var(--s-client); }
.pd-q.is-consultant { --c: var(--s-consultant); }
.pd-q.is-contractor, .pd-q.is-hr { --c: var(--s-contractor); }
.pd-q h3 { display: flex; align-items: baseline; gap: 2.5mm; margin: 0 0 1.5mm; font-size: 11pt; font-weight: 700; line-height: 1.45; }
.pd-q h3 b { flex: none; background: #98D064; font-size: 8pt; }
.pd-lab { margin-top: 1.4mm !important; color: #98D064; font-weight: 700; font-size: 7.8pt; letter-spacing: .05em; text-transform: uppercase; }
.pd[lang="ar"] .pd-lab { letter-spacing: 0; font-size: 8.5pt; }
.pd-w { color: #C8C8C8; font-size: 9pt; }

/* the brochure */
.pd-bro-h { margin: 22mm 0 0; font-size: 30pt; font-weight: 900; line-height: 1.25; }
.pd-bro-p { margin-top: 3mm !important; max-width: 150mm; color: #C8C8C8; font-size: 12pt; }
.pd-stat { display: flex; align-items: center; gap: 5mm; margin-top: 7mm; padding: 4mm 6mm; border-radius: 8pt; background: rgba(152, 208, 100, .12); border: 1pt solid rgba(152, 208, 100, .45); }
.pd-stat b { color: #98D064; font-size: 34pt; font-weight: 900; line-height: 1; }
.pd-stat p { font-size: 11.5pt; font-weight: 600; }
.pd-box { padding: 4.5mm 5mm; background: rgba(20, 20, 20, .45); border: 1pt solid rgba(255, 255, 255, .16); border-radius: 8pt; }
.pd-box.is-key { margin-top: 6mm; border: 1.5pt solid #98D064; }
.pd-box h3 { margin: 0 0 1mm; font-size: 14pt; font-weight: 900; line-height: 1.35; }
.pd-box h3 b { color: #98D064; }
.pd-box > p { font-size: 9.5pt; color: #C8C8C8; }
.pd-dim { color: #C8C8C8; }
.pd-pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; margin-top: 3.5mm; }
.pd-pk > div { display: flex; flex-direction: column; padding: 3mm 3.5mm; border-radius: 6pt; background: rgba(255, 255, 255, .06); }
.pd-pk-n { font-size: 12pt; font-weight: 900; }
.pd-pk-d { flex: 1; margin-top: 1mm !important; font-size: 8.8pt; color: #C8C8C8; line-height: 1.5; }
.pd-pk-p { margin-top: 2mm !important; }
.pd-pk-p b { color: #98D064; font-size: 16pt; font-weight: 900; }
.pd-pk-p small { color: #C8C8C8; font-size: 8pt; }
.pd-go { display: inline-block; margin-top: 3mm; color: #98D064 !important; font-weight: 700; font-size: 9.5pt; }
.pd-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; margin-top: 4mm; }
.pd-three .pd-box h3 { font-size: 12pt; }
.pd-note { position: absolute; inset-inline: 16mm; bottom: 21mm; color: #C8C8C8; font-size: 8pt; }
