/* /hire-overseas-process and the shared vetting track.
   The track itself is at the foot of this file; /apply loads this stylesheet
   too, so both pages get the same component from one place. */

/* --- growth tools ------------------------------------------------------- */

.gt-grid {
  display: grid;
  /* `minmax(320px, 1fr)` is a 320px floor, not a preference: on a 320px phone
     the column stays 320px wide inside a 280px container and the whole page
     scrolls sideways. `min(320px, 100%)` keeps the same two-up breakpoint on
     a desktop and lets the track shrink with the screen below it. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
}

.gt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}

/* Only a tool you can actually use carries the accent. */
.gt-card.is-live { border-color: color-mix(in srgb, var(--action) 34%, var(--line)); }

.gt-tag {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.gt-card h3 { margin: 0; }
.gt-card > p { margin: 0; color: var(--ink-soft); }

.gt-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gt-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.gt-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 15px;
  height: 15px;
  background: url("/assets/check-mark.svg") center / contain no-repeat;
}

/* A tool that is not live yet reads back: the check mark is the same mark,
   just muted, so the card is legible as "coming soon" without a second
   bullet style. */
.gt-card:not(.is-live) .gt-points li::before { opacity: 0.4; filter: grayscale(1); }

.gt-action { margin-top: auto; padding-top: 14px; }

.gt-soon {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-wash);
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- the six checks, as a track -------------------------------------------
   The previous version put a stack of grey rounded bars above the panel to
   suggest a funnel. At 9px tall with 5px gaps that is the shape of a skeleton
   loader, so the section read as unfinished rather than considered.

   A track instead. The markers say where a stage sits in the sequence, not how
   many people are left, because we do not publish per-stage numbers and
   inventing them to draw a nicer shape would be a lie. The only figure quoted
   is the published one, underneath.
   -------------------------------------------------------------------------*/

/* The component sits on the same blue tile the heroes use, so the section is
   not a white gap between two tinted ones and the track has a ground to sit
   on. The panel stays white on top of it, exactly as the hero's cards do. */
.vt {
  display: grid;
  grid-template-columns: minmax(0, 262px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: 30px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 18px;
  background: #b5daf5 url("/assets/hero-tile-deep.svg") center / cover no-repeat;
}

.vt-track { position: relative; display: flex; flex-direction: column; gap: 2px; }

/* The line the markers sit on, and the part of it already walked. */
.vt-line {
  position: absolute;
  left: 15px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: rgba(43, 69, 95, 0.18);
  border-radius: 2px;
}
.vt-line-fill {
  display: block;
  width: 100%;
  height: var(--walked, 0%);
  background: var(--action);
  border-radius: 2px;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.vt-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.16s ease;
}
.vt-step:hover { color: var(--ink); }
.vt-step:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 8px; }

.vt-marker {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(43, 69, 95, 0.16);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.vt-marker i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.vt-label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }

/* Cleared stages read as done, the current one as where you are. */
.vt-step.is-done .vt-marker { border-color: var(--action); background: var(--action); }
.vt-step.is-done .vt-marker i { color: #fff; }
.vt-step.is-on .vt-marker {
  border-color: var(--action);
  background: var(--bg);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 16%, transparent);
}
.vt-step.is-on .vt-marker i { color: var(--action); }
.vt-step.is-on .vt-label { color: var(--ink); }

.vt-stage { min-width: 0; }

.vt-panel {
  background: #fff;
  border: 0;
  box-shadow: 0 16px 34px rgba(43, 69, 95, 0.14);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.vt-panel[hidden] { display: none; }

/* The step counter as a tinted pill, so the panel opens on something with
   colour in it rather than on a line of small blue capitals. */
.vt-count {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  background: #dfeafc;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--action-deep);
}
.vt-count span { opacity: 0.6; }

.vt-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  letter-spacing: -0.018em;
}
.vt-body { margin: 0; color: var(--ink-soft); line-height: 1.66; max-width: 62ch; }

.vt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

/* The pair is a stop and a way through, so each sits on its own ground from
   the site's tile palette: rose for what ends an application, mint for what
   gets it past. Colour that means something, rather than colour for warmth. */
.vt-fact {
  padding: 16px 18px;
  border-radius: var(--radius);
}
.vt-fact.is-out { background: #fbe2e6; }
.vt-fact.is-pass { background: #ddf1e5; }

.vt-fact-k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vt-fact.is-out .vt-fact-k { color: #9c3440; }
.vt-fact.is-pass .vt-fact-k { color: #1f6b46; }

.vt-fact-k::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
}
/* A bar for the stop, the brand check for the way through. */
.vt-fact.is-out .vt-fact-k::before { height: 2px; border-radius: 2px; }
.vt-fact.is-pass .vt-fact-k::before {
  -webkit-mask: url("/assets/check-mark.svg") center / 13px no-repeat;
  mask: url("/assets/check-mark.svg") center / 13px no-repeat;
}

.vt-fact-v { margin: 0; color: var(--ink); font-size: 0.94rem; line-height: 1.6; opacity: 0.82; }

.vt-note {
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .vt { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vt-facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-line-fill, .vt-marker { transition: none; }
}

/* On the process page a check has only one fact, so it takes the full width
   rather than leaving an empty column beside it. */
.vt-facts.is-single { grid-template-columns: minmax(0, 1fr); }

/* And it means the opposite thing there. "What ends it here" warns a candidate
   off; "Ruled out here" tells a client we did the filtering for them. Same
   words, different reader, so the rose ground would be saying the wrong thing
   as well as filling half the panel with pink. */
.vt-facts.is-single .vt-fact.is-out { background: #d9eef4; }
.vt-facts.is-single .vt-fact.is-out .vt-fact-k { color: #1f577a; }
