/* CyberPath refinements (loaded last): one type system, the journey route board, the dated finale, mixed-direction
   labels and the mentor placeholder. Square geometry, brand palette only, no gradients, no glass, no neon. */

/* ───────── Type: one face, the hero's Thmanyah Display ─────────
   --font-ui and --font-display (site.css) both name the supplied Thmanyah Display, the face of the hero headline.
   Loaded weights: 400 body and dense data, 500 controls, labels and captions, 700 headings and emphasis, 900 display.
   Thmanyah Sans and Text are no longer loaded. Form controls, code and the error bar are named explicitly below because
   browsers do not let them inherit; there is no universal selector and no !important. font-synthesis stays off. */
:root{font-family:var(--font-ui);font-weight:var(--weight-body)}
:where(body,button,input,select,textarea,option,optgroup,legend,code,kbd,samp,pre,table,#blazor-error-ui){font-family:var(--font-ui)}
code{font-size:1em;font-weight:700;letter-spacing:.02em}
svg text{font-family:var(--font-ui)}
/* Arabic is never letter-spaced; tracked Latin labels keep their spacing. */
:root[lang=ar] :is(.cp-journey__eyebrow,.cp-journey__where,.finale-stop__date span,.admin-filter,.application-route,.admin-toast small,.cp-label__text){letter-spacing:0}
.cp-lang>span:first-child{letter-spacing:0}

/* Arabic splash: the percentage is mirrored as Arabic-Indic text by experience.js, so the Latin CSS value is not drawn. */
.cp-splash--arabic-digits .cp-splash__percent::after{content:none}
.cp-splash--arabic-digits .cp-splash__percent{margin-inline-start:6px;color:var(--sand)}

/* ───────── Mixed-direction labels (track code · name) ─────────
   The Latin code is isolated LTR and kept with its separator; the name wraps as whole words after it. */
.cp-label{display:block;max-width:100%;text-wrap:pretty;overflow-wrap:normal;word-break:normal;hyphens:manual}
.cp-label__lead{white-space:nowrap;margin-inline-end:.45em}
.cp-label__code{unicode-bidi:isolate;direction:ltr;letter-spacing:.06em}
.cp-label__sep{margin-inline-start:.45em;opacity:.6}
.cp-label__text{unicode-bidi:isolate}
.mentor-card .cp-card__eyebrow.cp-label{line-height:1.5;white-space:normal}

/* ───────── Mentor placeholder illustration ─────────
   The supplied drawing is taller than the square cutouts (720×841). It is drawn width-fit and anchored at the top like
   the photos; a slightly smaller scale matches the head size of the other two portraits. The field behind gives the
   dark clothing an edge against the black card. */
.mentor-card__portrait--illustration .mentor-card__photo{object-fit:cover;object-position:50% 0;transform-origin:50% 0;scale:.94}
.mentor-card__portrait--illustration{background:var(--charcoal)}

/* ───────── Journey: the route board ───────── */
.cp-journey{--start:56px;--node:44px;--track-pad:6px;--enter:1;--flip:1;position:relative;overflow-x:clip;padding-block:var(--landing-space,120px);background:var(--black);color:var(--sand);border-top:1px solid var(--line)}
:root[dir=rtl] .cp-journey{--flip:-1}
.cp-journey[data-direction=back]{--enter:-1}
.cp-journey__grid{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.55;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='2' height='2' fill='%23efe9de' fill-opacity='.18'/%3E%3C/svg%3E");background-size:40px 40px;transform:translate3d(calc(var(--px,0) * 6px),calc(var(--py,0) * 4px),0);transition:transform 900ms var(--cp-ease-route)}
.cp-journey__inner{position:relative;z-index:1}
.cp-journey__head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:start}
.cp-journey__eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:.875rem;font-weight:700;color:var(--copper)}
.cp-journey__eyebrow>span{width:10px;height:10px;background:var(--copper);flex-shrink:0}
.cp-journey__head h2{font-size:clamp(2.4rem,4.2vw,3.7rem);line-height:1.3}
.cp-journey__intro>p:last-child{margin-top:20px;max-width:46ch;color:var(--muted);font-size:1.125rem}
.cp-journey__mark{width:96px;height:96px;filter:brightness(0) invert(94%);opacity:.92}
.cp-journey__board{margin-top:clamp(40px,5vw,64px)}

/* The route: start node, one line, the copper fill to the current stop, three track lanes from Choose to the closing
   stop, and a signal that travels to the selected stop. Positions are fractions of the stop columns, so they hold in
   RTL and LTR, at any width and any text size. */
.cp-journey__track{position:relative;padding-top:var(--track-pad)}
.cp-journey__route{position:absolute;inset-inline:0;top:calc(var(--track-pad) + var(--node) / 2);height:0;pointer-events:none}
.cp-journey__route>*{position:absolute}
.cp-journey__start{inset-inline-start:0;width:var(--start);top:0;display:grid;justify-items:center}
.cp-journey__start>b{width:14px;height:14px;margin-top:-7px;background:var(--copper)}
.cp-journey__start>small{margin-top:12px;font-size:.625rem;font-weight:700;letter-spacing:.14em;color:var(--copper)}
.cp-journey__line,.cp-journey__fill{inset-inline-start:calc(var(--start) / 2);top:-1px;height:2px}
.cp-journey__line{width:calc(var(--start) / 2 + (100% - var(--start)) * 6.5 / 7);background:#4a4843}
.cp-journey__fill{width:calc(var(--start) / 2 + (100% - var(--start)) * (var(--fill,0) + .5) / 7);background:var(--copper);transition:width 620ms var(--cp-ease-route)}
.cp-journey__lanes{inset-inline-start:calc(var(--start) + (100% - var(--start)) * 4.5 / 7);width:calc((100% - var(--start)) * 2 / 7);top:-12px;height:24px;overflow:visible}
.cp-journey__lane{fill:none;stroke-width:2;opacity:.32;transition:opacity 420ms}
.cp-journey__lane--grc{stroke:var(--grc)}.cp-journey__lane--pt{stroke:var(--pt)}.cp-journey__lane--soc{stroke:var(--soc)}
.cp-journey.is-branching .cp-journey__lane,.cp-journey.is-branched .cp-journey__lane{opacity:1}
.cp-journey.is-branching .cp-journey__board[data-in-view] .cp-journey__lane{stroke-dasharray:1;animation:journey-lane 900ms var(--cp-ease-path) backwards}
.cp-journey.is-branching .cp-journey__lane--pt{animation-delay:90ms}.cp-journey.is-branching .cp-journey__lane--soc{animation-delay:180ms}
.cp-journey__signal{inset-inline-start:calc(var(--start) + (100% - var(--start)) * (var(--stage,0) + .5) / 7 - 6px);top:-6px;width:12px;height:12px;background:var(--sand);transition:inset-inline-start 620ms var(--cp-ease-route)}
@keyframes journey-lane{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

.cp-journey__stops{position:relative;z-index:1;display:grid;grid-template-columns:repeat(var(--stops,7),minmax(0,1fr));padding-inline-start:var(--start)}
.cp-journey__stop{display:grid;justify-items:center;align-content:start;gap:14px;min-width:0;min-height:44px;padding:0 6px 8px;border:0;background:transparent;color:var(--muted);text-align:center;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cp-journey__node{display:grid;place-items:center;width:var(--node);height:var(--node);border:1px solid rgba(239,233,222,.32);background:var(--black);color:var(--sand);font-size:.9375rem;font-weight:700;line-height:1;transition:background-color 240ms,border-color 240ms,color 240ms}
.cp-journey__label{font-size:.9375rem;font-weight:500;line-height:1.5;text-wrap:balance;overflow-wrap:normal;transition:color 240ms}
.cp-journey__stop.is-done .cp-journey__node{background:var(--sand);border-color:var(--sand);color:var(--ink)}
.cp-journey__stop.is-done .cp-journey__label{color:var(--sand)}
.cp-journey__stop.is-current .cp-journey__node{background:var(--copper);border-color:var(--copper);color:var(--black);animation:node-pop 420ms var(--cp-ease-node)}
.cp-journey__stop.is-current .cp-journey__label{color:var(--sand);font-weight:700}
@media(hover:hover){.cp-journey__stop:hover .cp-journey__node{border-color:var(--copper)}.cp-journey__stop:hover .cp-journey__label{color:var(--sand)}}
.cp-journey__stop:focus-visible{outline:none}
.cp-journey__stop:focus-visible .cp-journey__node{outline:2px solid var(--sand);outline-offset:4px}
.cp-journey__stop:active .cp-journey__node{translate:0 1px}

/* The stage card: where you are, what it means, what comes next, and the controls in their own bar. */
.cp-journey__panel{display:grid;margin-top:40px;background:var(--charcoal);border:1px solid var(--line);border-top:3px solid var(--copper);touch-action:pan-y}
.cp-journey__panel:focus-visible{outline:2px solid var(--sand);outline-offset:4px}
.cp-journey__stage{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;min-height:16rem;padding:clamp(28px,4vw,48px);animation:journey-enter 440ms var(--cp-ease-route) both}
@keyframes journey-enter{from{opacity:0;translate:calc(var(--enter) * var(--flip) * 32px) 0}to{opacity:1;translate:0 0}}
.cp-journey__count{margin:0;font-family:var(--font-display);font-weight:900;line-height:1}
.cp-journey__count b{display:block;font-size:clamp(4rem,7vw,6.5rem);font-weight:900;color:var(--sand)}
.cp-journey__count span{display:block;margin-top:14px;font-family:var(--font-ui);font-size:1rem;font-weight:700;color:var(--muted)}
.cp-journey__where{display:flex;align-items:center;gap:10px;font-size:.875rem;font-weight:700;color:var(--muted)}
.cp-journey__where::before{content:"";width:8px;height:8px;background:var(--copper);flex-shrink:0}
.cp-journey__copy h3{margin-top:10px;font-family:var(--font-display);font-size:clamp(2rem,3.2vw,2.75rem);line-height:1.35}
.cp-journey__copy>p:not(.cp-journey__where){margin-top:14px;max-width:52ch;color:var(--muted);font-size:1.125rem;line-height:1.9}
.cp-journey__tracks{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding:0;list-style:none}
.cp-journey__chip{padding:4px 12px;border:1px solid currentColor;font-size:.8125rem;font-weight:700;letter-spacing:.08em}
.cp-journey__chip--grc{color:var(--grc)}.cp-journey__chip--pt{color:#ef7a74}.cp-journey__chip--soc{color:#5cc98d}
.cp-journey__controls{display:flex;justify-content:space-between;align-items:stretch;gap:12px;padding:16px clamp(16px,3vw,24px);border-top:1px solid var(--line);background:var(--black)}
.cp-journey__back,.cp-journey__next{display:inline-flex;align-items:center;gap:14px;min-height:56px;border:1px solid var(--line);font:inherit;cursor:pointer;transition:background-color 180ms,border-color 180ms,color 180ms}
.cp-journey__back{padding:0 20px;background:transparent;color:var(--sand)}
.cp-journey__back[aria-disabled=true]{opacity:.42;cursor:default}
.cp-journey__next{position:relative;flex:0 1 420px;min-width:0;justify-content:space-between;padding:10px 20px;background:var(--sand);color:var(--ink);border-color:var(--sand);text-align:start;overflow:hidden}
.cp-journey__next::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:5px;background:var(--copper);transform:scaleY(0);transition:transform 240ms var(--cp-ease-route)}
.cp-journey__next-copy{display:grid;gap:2px;min-width:0}
.cp-journey__next-copy small{font-size:.75rem;color:var(--stone)}
.cp-journey__next-copy strong{font-size:1rem;line-height:1.45;overflow-wrap:normal}
.cp-journey__back .arrow-icon,.cp-journey__next .arrow-icon{width:20px;height:20px;flex-shrink:0;transition:translate 240ms var(--cp-ease-route)}
@media(hover:hover){.cp-journey__next:hover::before{transform:scaleY(1)}.cp-journey__next:hover .arrow-icon{translate:calc(var(--flip) * 4px) 0}.cp-journey__back:not([aria-disabled=true]):hover{border-color:var(--copper)}}
.cp-journey__next:focus-visible::before{transform:scaleY(1)}
.cp-journey__next:active{translate:0 1px;background:var(--muted)}
.cp-journey>.cp-journey__inner>.handoff{margin-top:clamp(40px,5vw,64px)}

@media(max-width:1040px){
 .cp-journey{--start:40px}
 .cp-journey__label{font-size:.8125rem}
 .cp-journey__stage{grid-template-columns:minmax(110px,160px) minmax(0,1fr)}
}
/* Phones: a touch strip of seven numbered stops, the stage card and a thumb-height control bar. Stop names live in the
   card (and remain the tabs' accessible names); the strip never scrolls sideways. */
@media(max-width:760px){
 .cp-journey{--start:18px;--node:38px}
 .cp-journey__head{grid-template-columns:minmax(0,1fr) 48px;gap:20px}
 .cp-journey__mark{width:48px;height:48px}
 .cp-journey__intro>p:last-child{font-size:1rem}
 .cp-journey__board{margin-top:32px}
 .cp-journey__stop{padding:0 0 4px;gap:0}
 .cp-journey__node{width:min(var(--node),100%);font-size:.875rem}
 .cp-journey__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .cp-journey__start>small{display:none}
 .cp-journey__start>b{width:10px;height:10px;margin-top:-5px}
 .cp-journey__lanes{top:-9px;height:18px}
 .cp-journey__panel{margin-top:20px}
 .cp-journey__stage{grid-template-columns:1fr;gap:14px;min-height:19rem;padding:24px 20px 28px}
 .cp-journey__count{display:flex;align-items:baseline;gap:10px}
 .cp-journey__count bdi{display:flex;align-items:baseline;gap:10px}
 .cp-journey__count b{font-size:3.25rem}
 .cp-journey__count span{margin:0;font-size:.9375rem}
 .cp-journey__copy h3{margin-top:6px;font-size:1.875rem}
 .cp-journey__copy>p:not(.cp-journey__where){font-size:1rem}
 .cp-journey__controls{padding:12px}
 .cp-journey__back{width:56px;flex-shrink:0;justify-content:center;padding:0}
 .cp-journey__back span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .cp-journey__next{flex:1 1 auto}
}
@media(max-width:360px){.cp-journey{--start:12px;--node:34px}.cp-journey__start>b{width:8px;height:8px;margin-top:-4px}}

/* Motion guards: manual pause, hidden page and reduced motion show the same complete, static board. */
.home-experience.is-motion-paused .cp-journey :is(.cp-journey__stage,.cp-journey__node,.cp-journey__lane),.cp-motion-paused .cp-journey :is(.cp-journey__stage,.cp-journey__node,.cp-journey__lane){animation:none!important}
.home-experience.is-motion-paused .cp-journey :is(.cp-journey__fill,.cp-journey__signal,.cp-journey__grid),.cp-motion-paused .cp-journey :is(.cp-journey__fill,.cp-journey__signal,.cp-journey__grid){transition:none!important}
.home-experience.is-motion-paused .cp-journey__grid,.cp-motion-paused .cp-journey__grid{transform:none}
@media(prefers-reduced-motion:reduce){
 .cp-journey :is(.cp-journey__stage,.cp-journey__node,.cp-journey__lane){animation:none!important}
 .cp-journey :is(.cp-journey__fill,.cp-journey__signal,.cp-journey__grid,.cp-journey__next::before,.cp-journey__next .arrow-icon,.cp-journey__back .arrow-icon){transition:none!important}
 .cp-journey__grid{transform:none}
}

/* ───────── Finale: the Grand Challenge and the closing ceremony ───────── */
.home-finale{display:block;margin-top:56px;padding:clamp(28px,4vw,48px);background:var(--ink);color:var(--sand)}
.finale-route{--gap:clamp(24px,5vw,72px);position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);margin:0;padding:0;list-style:none}
.finale-route::before{content:"";position:absolute;top:11px;inset-inline:24px calc(50% - var(--gap) / 2);height:2px;background:var(--copper)}
.finale-stop{position:relative;min-width:0}
.finale-stop__node{position:relative;z-index:1;display:flex;gap:4px;align-items:center;height:24px;margin-bottom:24px}
.finale-stop--challenge .finale-stop__node{width:max-content;padding-inline-end:6px;background:var(--ink)}
.finale-stop--challenge .finale-stop__node i{width:8px;height:24px;background:var(--grc)}
.finale-stop--challenge .finale-stop__node i:nth-child(2){background:var(--pt)}
.finale-stop--challenge .finale-stop__node i:nth-child(3){background:var(--soc)}
.finale-stop--ceremony .finale-stop__node{width:24px;background:var(--copper)}
.finale-stop__date{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:0}
.finale-stop__date time{font-family:var(--font-display);font-size:clamp(1.75rem,2.6vw,2.25rem);font-weight:700;line-height:1.3;white-space:nowrap}
.finale-stop__date span{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;font-weight:700;color:var(--muted)}
.finale-stop__date span::before{content:"";width:6px;height:6px;background:var(--copper)}
.finale-stop h4{margin:10px 0 0;font-family:var(--font-display);font-size:clamp(1.75rem,2.6vw,2.4rem);font-weight:700;line-height:1.35}
.finale-stop>p:last-child{margin-top:12px;color:var(--muted);font-size:1rem;max-width:40ch}
.finale-note{margin-top:32px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:.9375rem}
@media(max-width:760px){
 .home-finale{margin-top:36px;padding:28px 22px}
 .finale-route{grid-template-columns:1fr;gap:32px}
 .finale-route::before{top:11px;bottom:40px;inset-inline:11px auto;width:2px;height:auto}
 .finale-stop{padding-inline-start:44px}
 .finale-stop__node{position:absolute;inset-inline-start:0;top:0;margin:0}
 .finale-stop--challenge .finale-stop__node{padding:0;gap:0;width:24px}
 .finale-stop--challenge .finale-stop__node i{width:8px}
}
.cp-facts__ceremony dd{color:inherit}
/* Dock in Display: 12px labels without tracking; the four destinations get more of the width than Apply. At 320px a
   single long English word (Programme) still ends in an ellipsis, as before; its full text stays the accessible name. */
@media(max-width:900px){
 .cp-dock{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(70px,1fr)}
 html[lang=en] .cp-dock__item{font-size:.75rem;letter-spacing:0}
 .cp-dock__item{padding-inline:1px}
}
/* English opening facts on phones: Display Latin sets the hours on a third line; a Latin line-height (1.55 instead of the
   Arabic 1.95) keeps the three track lanes above the dock without reducing any type size. Arabic keeps its taller lines. */
@media(max-width:760px){html[lang=en] .cp-hero .poster-details>p,html[lang=en] .cp-hero .poster-details>p>span{line-height:1.55}}
