/* ==========================================================================
   CMU Student Compass — Immersive · SKILL MAP PAGE (/skill)
   "The map": Chiang Mai from the air at blue hour, the golden moat and Doi Suthep (hero),
   two ways in (curriculum / occupation), then the map itself unrolls (Sankey).

   Loaded only by templates/skill.html, after fonts.css, core.css, footer.css.
   Everything here is unlayered, so it beats the legacy compass.css (imported
   into `@layer legacy` by the shared head partial). Remote Bootstrap /
   templatecenter CSS is no longer loaded on this page: the few class names
   skill-mapping-web.js still emits (.btn, .list-group-item, .spinner-border,
   .d-none) are styled in section 9.

   Sections
     0 page frame · 1 chrome · 2 hero · 3 ways in · 4 notes & folds
     5 result stage (vista) · 6 figure, sticky bar, threshold, columns
     7 chart scroller · 8 floating controls · 9 legacy-emitted classes
     10 responsive · 11 reduced motion · 12 high contrast · 13 print
   ========================================================================== */

/* ------------------------------------------------------------------ 0. page frame */
.imm-page-skill body { background-color: var(--imm-bg); } /* cream; follows the high-contrast paper so seams match */

/* body is a legacy flex column exactly one viewport tall: content must never shrink to fit it */
.imm-skill { position: relative; flex: none; }

/* faint topographic contours on the paper: smooth vector lines (owner decision 2026-11-16 — the old noise-filter
   contours came out as jagged zigzags), one static seamless tile, no scroll-linked repaint */
.imm-skill::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.38;
  background-image: url('../../images/immersive/topo-smooth.svg'); /* smooth vector contours, seamless 1200px tile (scratchpad gen/topo_gen.py) */
  background-size: 1200px 1200px;
  /* the contours also thin out at the very bottom, where the footer's evening band takes the cream into the night */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 calc(100% - 220px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 calc(100% - 220px), transparent 100%);
}

.imm-page-skill [hidden] { display: none !important; } /* beats component display rules on JS-hidden nodes */

/* ------------------------------------------------------------------ 1. chrome: progress + top bar */
.imm-skill-progress { position: fixed; inset: 0 0 auto 0; z-index: var(--imm-z-progress); height: 2px; pointer-events: none; }
.imm-skill-progress > span { display: block; height: 100%; background: var(--imm-grad-gold); transform: scaleX(0); transform-origin: 0 50%; }

.imm-skill-nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--imm-z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(var(--imm-nav-h) + var(--imm-safe-t));
  padding: var(--imm-safe-t) max(var(--imm-gutter), var(--imm-safe-r)) 0 max(var(--imm-gutter), var(--imm-safe-l));
  color: var(--imm-ink-inv);
  transition: transform 0.7s var(--imm-ease-out);
}
.imm-skill-nav::before { /* dark glass, fades in once the page has scrolled (denser than the shared token: it mostly floats over paper) */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(180deg, rgba(18, 14, 50, 0.9), rgba(27, 24, 66, 0.8)); border-bottom: 1px solid rgba(250, 172, 30, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: opacity 0.5s ease;
}
html.imm-scrolled .imm-skill-nav::before { opacity: 1; }
html.imm-skill-nav-hide .imm-skill-nav:not(:focus-within) { transform: translate3d(0, -110%, 0); }

.imm-skill-nav__back, .imm-skill-nav__again {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 44px; padding: 0 1.1em 0 0.35em;
  border-radius: var(--imm-r-pill); border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08);
  color: inherit; font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent;
  transition: background-color var(--imm-dur-2) ease, border-color var(--imm-dur-2) ease;
}
.imm-skill-nav__again { padding: 0 0.9em 0 1.1em; color: var(--imm-gold-200); border-color: rgba(250, 172, 30, 0.45); }
.imm-skill-nav__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  transition: transform 0.6s var(--imm-ease-out), background-color var(--imm-dur-2) ease, color var(--imm-dur-2) ease;
}
.imm-skill-nav__again svg { transition: transform 0.6s var(--imm-ease-out); }
@media (hover: hover) {
  .imm-skill-nav__back:hover, .imm-skill-nav__again:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
  .imm-skill-nav__back:hover .imm-skill-nav__icon { transform: translateX(-3px); background: var(--imm-gold-400); color: #2b1d00; }
  .imm-skill-nav__again:hover svg { transform: translateY(-3px); }
}
.imm-skill-nav__coords { font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: 0.26em; color: var(--imm-gold-200); opacity: 0.85; white-space: nowrap; }
/* right end: "search again" (when shown) + the language switch (i18n.js) */
.imm-skill-nav__end { display: flex; align-items: center; gap: 8px; }
.imm-skill-nav__lang {
  display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--imm-r-pill);
  background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.imm-skill-nav__lang button {
  min-width: 36px; min-height: 36px; padding: 0 0.7em; border: 0; border-radius: var(--imm-r-pill); background: transparent;
  font: inherit; font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.8);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--imm-dur-2) ease, color var(--imm-dur-2) ease;
}
.imm-skill-nav__lang button[aria-pressed='true'] { color: var(--imm-night); background: var(--imm-gold-300); }
.imm-skill-nav__lang button:focus-visible { outline: 2px solid var(--imm-gold-300); outline-offset: 2px; }
@media (hover: hover) { .imm-skill-nav__lang button:not([aria-pressed='true']):hover { color: #fff; background: rgba(255, 255, 255, 0.14); } }
html.a11y-high-contrast .imm-skill-nav__lang { background: #05050c; border: 2px solid #fff; }
html.a11y-high-contrast .imm-skill-nav__lang button { color: #fff; }
html.a11y-high-contrast .imm-skill-nav__lang button[aria-pressed='true'] { color: #05050c; background: #ffe29a; }
@media (max-width: 379.98px) { .imm-skill-nav__lang button { min-width: 32px; padding: 0 0.5em; } }
/* "search again" replaces the coordinates once a map is on screen and the search cards are out of view (skill.js) */
html:not(.imm-skill-deep) .imm-skill-nav__again { display: none; }
html.imm-skill-deep .imm-skill-nav__coords { display: none; }

/* ------------------------------------------------------------------ 2. hero */
.imm-skill-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  min-height: max(520px, 78vh); min-height: max(520px, calc(var(--imm-vh) * 0.78));
  padding: calc(var(--imm-nav-h) + var(--imm-safe-t) + clamp(8px, 2vh, 28px)) 0 clamp(128px, 19vh, 210px);
  color: var(--imm-ink-inv); background: var(--imm-night);
}
.imm-skill-hero__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; }

/* the photograph, laid out by hand as "cover" so the chedi glow and the old-city glints can be pinned to it in % */
.imm-skill-hero__plate {
  --_w: max(100cqw, 177.7cqh); --_fx: 0.5; --_fy: 0.62;
  position: absolute; width: var(--_w); aspect-ratio: 1672 / 941;
  left: calc((100cqw - var(--_w)) * var(--_fx)); top: calc((100cqh - var(--_w) * 0.5628) * var(--_fy));
  transform: translate3d(calc(var(--imm-mx) * -16px), calc(var(--imm-exit) * 11% + var(--imm-my) * -9px), 0) scale(1.1);
  transform-origin: 72% 78%; will-change: transform;
}
.imm-skill-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ultrawide: the picture is cropped hard top and bottom; lift the frame so Doi Suthep's chedi stays inside */
@media (min-width: 1600px) and (min-aspect-ratio: 2 / 1) { .imm-skill-hero__plate { --_fy: 0.4; } }
@supports not (width: 1cqw) { /* older engines: plain cover image, no pinned light effects */
  .imm-skill-hero__plate { inset: -6%; width: auto; aspect-ratio: auto; }
  .imm-skill-hero__photo { object-position: 74% 62%; }
  .imm-skill-hero__chedi, .imm-skill-hero__glints { display: none; }
}

/* living light (picture coordinates of skill-hero.webp, blue-hour aerial of Chiang Mai):
   the golden chedi of Doi Suthep on the right horizon breathes, and the gates, corner bastions and the
   central chedi of the square old-city moat catch the light one after another along the golden network */
.imm-skill-hero__chedi {
  position: absolute; left: 94.3%; top: 29.4%; width: 9%; aspect-ratio: 1; margin: -4.5% 0 0 -4.5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 160, 0.75), rgba(255, 186, 90, 0.22) 40%, rgba(255, 170, 60, 0) 74%);
  mix-blend-mode: screen; animation: imm-skill-flicker 7s ease-in-out infinite;
}
.imm-skill-hero__glints i {
  position: absolute; left: var(--_x); top: var(--_y); width: 2.2%; aspect-ratio: 1; margin: -1.1% 0 0 -1.1%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fff8e2, rgba(255, 214, 140, 0.75) 32%, rgba(255, 190, 90, 0) 70%);
  mix-blend-mode: screen; animation: imm-skill-glint 7.5s ease-in-out infinite; animation-delay: calc(var(--_n) * 0.42s + 1.6s);
}
.imm-skill-hero__glints i:nth-child(1) { --_x: 57.3%; --_y: 76.9%; --_n: 0; } /* west gate */
.imm-skill-hero__glints i:nth-child(2) { --_x: 63.7%; --_y: 88.5%; --_n: 1; } /* south-west bastion */
.imm-skill-hero__glints i:nth-child(3) { --_x: 65.9%; --_y: 80%; --_n: 2; }   /* temple inside the walls */
.imm-skill-hero__glints i:nth-child(4) { --_x: 69.4%; --_y: 70%; --_n: 3; }   /* central chedi */
.imm-skill-hero__glints i:nth-child(5) { --_x: 79.1%; --_y: 83.2%; --_n: 4; } /* south gate */
.imm-skill-hero__glints i:nth-child(6) { --_x: 91.5%; --_y: 79.5%; --_n: 5; } /* south-east bastion */
@keyframes imm-skill-flicker { 0%, 100% { opacity: 0.72; } 18% { opacity: 1; } 31% { opacity: 0.66; } 47% { opacity: 0.94; } 63% { opacity: 0.7; } 82% { opacity: 1; } }
@keyframes imm-skill-glint { 0%, 12%, 100% { opacity: 0; transform: scale(0.4); } 5% { opacity: 1; transform: scale(1.25); } }

/* a few drifting motes high in the empty sky (never over the lock-up's text block) */
.imm-skill-hero__motes {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6;
  transform: translate3d(calc(var(--imm-mx) * 22px), calc(var(--imm-exit) * -8% + var(--imm-my) * 14px), 0);
  -webkit-mask-image: radial-gradient(70% 52% at 74% 14%, #000 0, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 52% at 74% 14%, #000 0, #000 30%, transparent 80%);
}

.imm-skill-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 32, 0.86) 0%, rgba(10, 9, 32, 0.62) 30%, rgba(10, 9, 32, 0.12) 58%, rgba(10, 9, 32, 0) 72%),
    linear-gradient(180deg, rgba(10, 9, 32, 0.62) 0%, rgba(10, 9, 32, 0) 26%);
}
.imm-skill-hero__fade { /* seam: the city dissolves into the paper of the next section */
  position: absolute; inset: auto 0 -1px 0; height: clamp(110px, 24%, 220px); z-index: 3;
  background: linear-gradient(180deg, rgba(250, 244, 231, 0) 0%, rgba(250, 244, 231, 0.42) 46%, rgba(250, 244, 231, 0.86) 78%, var(--imm-cream) 100%);
}

.imm-skill-hero__inner { position: relative; }
.imm-skill-hero__lockup {
  display: grid; justify-items: start; gap: clamp(10px, 1.5vh, 18px); max-width: min(680px, 100%);
  transform: translate3d(0, calc(var(--imm-exit) * -64px), 0); opacity: clamp(0, calc(1.95 - var(--imm-exit) * 2.3), 1);
}
.imm-skill-hero__logo { width: clamp(236px, 37vw, 560px); aspect-ratio: 1574.88 / 375; margin: clamp(2px, 0.6vh, 8px) 0 0 -1.4%; }
.imm-skill-hero__logo object { display: block; width: 100%; height: 100%; pointer-events: none; }
.imm-skill-hero__title { font-size: var(--imm-fs-3xl); font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; text-wrap: balance; }
.imm-skill-hero__title em { font-style: normal; }
.imm-skill-hero__lead { max-width: 34em; font-size: var(--imm-fs-lg); font-weight: 300; line-height: 1.65; color: var(--imm-ink-inv-2); text-wrap: pretty; }
.imm-skill-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(4px, 1vh, 12px); }
.imm-skill-hero__actions svg { transition: transform 0.6s var(--imm-ease-out); }
@media (hover: hover) { .imm-skill-hero__actions .imm-btn:hover svg { transform: translateY(3px); } }

/* the journey in one line: four waypoints joined by a dashed gold path that lights up left to right */
.imm-skill-route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0; list-style: none; font-size: var(--imm-fs-sm); font-weight: 400; color: var(--imm-ink-inv); }
.imm-skill-route li { position: relative; display: inline-flex; align-items: center; gap: 0.55em; }
.imm-skill-route li::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--imm-gold-300); background: rgba(250, 172, 30, 0.18);
  box-shadow: 0 0 0 0 rgba(250, 172, 30, 0);
}
.imm-skill-route li:not(:last-child)::after {
  content: ''; width: clamp(18px, 3.2vw, 44px); height: 1px; margin: 0 0.7em 0 0.15em;
  background: repeating-linear-gradient(90deg, var(--imm-gold-300) 0 4px, transparent 4px 9px); opacity: 0.75; transform-origin: 0 50%;
}
html.imm-js .imm-skill-route.is-inview li::before { animation: imm-skill-node 0.9s var(--imm-ease-out) both; animation-delay: calc(0.9s + var(--_k) * 0.26s); }
html.imm-js .imm-skill-route.is-inview li::after { animation: imm-skill-dash 0.7s var(--imm-ease-out) both; animation-delay: calc(1.02s + var(--_k) * 0.26s); }
.imm-skill-route li:nth-child(1) { --_k: 0; }
.imm-skill-route li:nth-child(2) { --_k: 1; }
.imm-skill-route li:nth-child(3) { --_k: 2; }
.imm-skill-route li:nth-child(4) { --_k: 3; }
@keyframes imm-skill-node {
  0% { background: rgba(250, 172, 30, 0); box-shadow: 0 0 0 0 rgba(250, 172, 30, 0.7); transform: scale(0.4); }
  60% { background: var(--imm-gold-300); box-shadow: 0 0 0 9px rgba(250, 172, 30, 0); transform: scale(1.25); }
  100% { background: var(--imm-gold-300); box-shadow: 0 0 12px 1px rgba(250, 172, 30, 0.55); transform: none; }
}
@keyframes imm-skill-dash { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 0.75; } }

/* ------------------------------------------------------------------ 3. two ways in */
.imm-skill-ways { position: relative; z-index: 2; margin-top: clamp(-170px, -15vh, -96px); padding-bottom: clamp(28px, 4vw, 64px); scroll-margin-top: 8px; } /* + the root scroll-padding (nav height) from core.css */
.imm-skill-ways__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: stretch; gap: clamp(12px, 1.5vw, 26px); }

.imm-skill-way {
  position: relative; z-index: 1; display: flex; flex-direction: column; padding: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.62) 0%, rgba(255, 253, 248, 0.9) 46%);
  transition: box-shadow var(--imm-dur-3) var(--imm-ease-out), border-color var(--imm-dur-2) ease;
}
.imm-skill-way--occupation { z-index: 3; } /* its suggestion menu floats over whatever follows */
.imm-skill-way:focus-within { border-color: var(--imm-line-gold); box-shadow: var(--imm-shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.7); }

.imm-skill-way__media {
  position: relative; isolation: isolate; overflow: hidden; flex: none; height: clamp(124px, 14.5vw, 232px);
  border-radius: calc(var(--imm-r-lg) - 9px); background: var(--imm-violet-900);
}
.imm-skill-way__media img {
  position: absolute; inset: -16% 0 auto 0; z-index: -2; width: 100%; height: 132%; object-fit: cover; object-position: 50% 46%;
  transform: translate3d(0, calc((var(--imm-p) - 0.5) * -20%), 0) scale(1.02); will-change: transform;
  transition: filter var(--imm-dur-3) ease;
}
.imm-skill-way--occupation .imm-skill-way__media img { object-position: 72% 46%; } /* keeps the graduate (right third of dest-oc) in frame */
.imm-skill-way__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 39, 0.5) 0%, rgba(13, 11, 39, 0) 42%, rgba(13, 11, 39, 0.55) 100%); }
.imm-skill-way__tag {
  position: absolute; left: 16px; top: 14px; padding: 0.42em 1em; border-radius: var(--imm-r-pill);
  font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #fff;
  background: rgba(13, 11, 39, 0.42); border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.imm-skill-way__num {
  position: absolute; right: clamp(14px, 1.8vw, 28px); bottom: -0.14em; font-size: clamp(3.4rem, 6.4vw, 6.6rem); font-weight: 200; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82); letter-spacing: -0.02em;
}
.imm-skill-way__media.imm-ticks::before { top: auto; bottom: 14px; left: 14px; border-top: 0; border-bottom: 1.5px solid var(--imm-gold-300); border-radius: 0 0 0 6px; }
.imm-skill-way__media.imm-ticks::after { top: 14px; bottom: auto; right: 14px; border-bottom: 0; border-top: 1.5px solid var(--imm-gold-300); border-radius: 0 6px 0 0; }

.imm-skill-way__body { display: flex; flex: 1; flex-direction: column; gap: clamp(12px, 1.4vw, 20px); padding: clamp(16px, 2vw, 28px) clamp(10px, 1.7vw, 24px) clamp(10px, 1.4vw, 18px); }
.imm-skill-way__title {
  font-size: var(--imm-fs-2xl); font-weight: 600; line-height: var(--imm-lh-snug);
  background: var(--imm-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--imm-violet-700);
}
.imm-skill-way__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: auto; padding-top: 4px; }
.imm-skill-way__note { flex: 1 1 14em; font-size: var(--imm-fs-sm); line-height: 1.5; color: var(--imm-danger); }
.imm-skill-way__note b { font-weight: 600; }
.imm-skill-way__go { flex: 0 0 auto; min-width: min(100%, 11.5em); margin-left: auto; }
.imm-skill-way--occupation .imm-skill-way__go { width: 100%; }
/* the button wakes up the moment a search becomes possible */
.imm-skill-way__go:not(:disabled) { animation: imm-skill-ready 1.1s var(--imm-ease-out) 1; }
@keyframes imm-skill-ready { 0% { box-shadow: 0 0 0 0 rgba(250, 172, 30, 0.75); } 100% { box-shadow: 0 0 0 22px rgba(250, 172, 30, 0), var(--_shadow); } }
.imm-skill-way__go.is-busy { pointer-events: none; }
.imm-skill-way__go.is-busy::before, .imm-page-skill .spinner-border {
  content: ''; display: inline-block; flex: none; width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: imm-spin 0.8s linear infinite;
}

/* the four selects read as a short trail: each waypoint lights up gold once chosen */
.imm-skill-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 18px) clamp(12px, 1.4vw, 20px); }
.imm-skill-step { display: grid; gap: 7px; min-width: 0; transition: opacity var(--imm-dur-2) ease; }
.imm-skill-step__label { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-ink-2); }
.imm-skill-step__label i {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  font-size: var(--imm-fs-2xs); font-style: normal; font-weight: 500; line-height: 1; color: var(--imm-violet-600);
  border: 1px solid var(--imm-line-strong); background: rgba(255, 255, 255, 0.7);
  transition: background-color var(--imm-dur-2) ease, color var(--imm-dur-2) ease, border-color var(--imm-dur-2) ease, box-shadow var(--imm-dur-3) var(--imm-ease-out), transform 0.6s var(--imm-ease-spring);
}
.imm-skill-step.is-waiting { opacity: 0.56; }
.imm-skill-step.is-next .imm-skill-step__label i { border-color: var(--imm-gold-400); color: var(--imm-gold-700); }
.imm-skill-step.is-next .imm-skill-step__label i::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--imm-gold-400); animation: imm-pulse-ring 1.9s var(--imm-ease-out) infinite;
}
.imm-skill-step.is-filled .imm-skill-step__label i { background: var(--imm-grad-gold); border-color: transparent; color: #2b1d00; box-shadow: 0 4px 14px rgba(250, 172, 30, 0.45); transform: scale(1.08); }
.imm-skill-step.is-filled .imm-select { border-color: var(--imm-line-gold); background-color: #fff; }
.imm-skill-step .imm-select { min-width: 0; }

/* "or" — a small gilded seal between the two routes */
.imm-skill-or { position: relative; display: grid; place-items: center; width: clamp(46px, 4.4vw, 64px); }
.imm-skill-or::before { content: ''; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; background: repeating-linear-gradient(180deg, var(--imm-line-gold) 0 5px, transparent 5px 12px); }
.imm-skill-or span {
  position: relative; display: grid; place-items: center; width: clamp(46px, 4.4vw, 64px); aspect-ratio: 1; border-radius: 50%;
  font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-violet-700);
  background: var(--imm-surface); border: 1px solid var(--imm-line-gold); box-shadow: var(--imm-shadow-2), 0 0 0 7px var(--imm-cream);
}
.imm-skill-or span::before { /* tick ring */
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--imm-gold-500) 0 1.4deg, transparent 1.4deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  opacity: 0.7; animation: imm-spin 60s linear infinite;
}

/* occupation search */
.imm-skill-ask { position: relative; }
.imm-skill-ask__input {
  min-height: 58px; padding-left: 3.1em; font-size: var(--imm-fs-lg); font-weight: 300;
  background-color: rgba(255, 255, 255, 0.92); background-repeat: no-repeat; background-position: 1.05em center; background-size: 1.25em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236868ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
}
.imm-skill-ask__hint { margin-top: -4px; font-size: var(--imm-fs-sm); color: var(--imm-muted); }
.imm-skill-ask__menu { /* floating paper menu; hidden by the behavioural .d-none (legacy !important) */
  position: absolute; z-index: 30; inset: calc(100% + 8px) 0 auto 0; max-height: min(300px, 46vh); overflow: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--imm-surface); border: 1px solid var(--imm-line-strong); border-radius: var(--imm-r-md); box-shadow: var(--imm-shadow-3);
  transform-origin: 50% 0; animation: imm-skill-menu 0.5s var(--imm-ease-out) both;
}
@keyframes imm-skill-menu { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.98); } to { opacity: 1; transform: none; } }

/* what an occupation map shows: the trail traced back from the chosen occupation */
.imm-skill-trace {
  display: grid; gap: 10px; padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px);
  border-radius: var(--imm-r-md); border: 1px dashed var(--imm-line-strong); background: rgba(255, 255, 255, 0.5);
}
.imm-skill-trace__label { font-size: var(--imm-fs-xs); font-weight: 500; color: var(--imm-muted); }
/* inline text so it wraps like a sentence at any width / font scale; the destination is a gold chip */
.imm-skill-trace__path { margin: 0; padding: 0; list-style: none; font-size: var(--imm-fs-sm); font-weight: 500; line-height: 2.1; color: var(--imm-violet-700); }
.imm-skill-trace__path li { display: inline; white-space: nowrap; }
.imm-skill-trace__path li:not(:last-child)::after { content: '→'; margin: 0 0.5em; font-weight: 400; color: var(--imm-gold-500); }
.imm-skill-trace__path li:last-child {
  display: inline-block; padding: 0.1em 0.85em; border-radius: var(--imm-r-pill); line-height: 1.6;
  color: var(--imm-gold-700); background: rgba(250, 172, 30, 0.14); border: 1px solid var(--imm-line-gold);
}

/* inline notice when a search returns nothing to draw */
.imm-skill-notice {
  display: flex; align-items: center; gap: 0.7em; width: fit-content; max-width: 100%; margin: clamp(14px, 1.6vw, 22px) auto 0; padding: 0.7em 1.2em;
  font-size: var(--imm-fs-sm); line-height: 1.5; color: var(--imm-danger);
  background: var(--imm-surface); border: 1px solid rgba(201, 58, 85, 0.32); border-radius: var(--imm-r-pill); box-shadow: var(--imm-shadow-1);
  animation: imm-fade-up 0.6s var(--imm-ease-out) both;
}
.imm-skill-notice::before { content: '!'; display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; font-weight: 600; color: #fff; background: var(--imm-danger); }

/* ------------------------------------------------------------------ 4. survey + notes (fold on phones) */
.imm-skill-notes { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: clamp(14px, 2.4vw, 44px); margin-top: clamp(22px, 3vw, 44px); padding-inline: clamp(0px, 1vw, 14px); }
.imm-skill-notes__survey { --_bg: var(--imm-surface); --_shadow: var(--imm-shadow-1); align-self: center; border: 1px solid var(--imm-line-strong); }

.imm-fold--skill { position: relative; min-width: 0; }
.imm-fold--skill .imm-fold__toggle { position: relative; display: flex; align-items: center; gap: 0.7em; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: var(--imm-ink-2); }
.imm-fold--skill .imm-fold__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--imm-violet-600); background: rgba(104, 104, 172, 0.1); }
.imm-fold--skill .imm-fold__title { flex: 1; min-width: 0; font-size: var(--imm-fs-sm); font-weight: 500; }
.imm-fold--skill .imm-fold__hint { font-weight: 400; color: var(--imm-muted); }
.imm-fold--skill:not(.is-collapsible) .imm-fold__hint, .imm-fold--skill.is-open .imm-fold__hint { display: none; }
.imm-fold--skill .imm-fold__panel p { padding: 0.35em 0 0 calc(34px + 0.7em); font-size: var(--imm-fs-sm); line-height: 1.7; color: var(--imm-ink-2); text-wrap: pretty; }
/* the note about the analysis: a calm footnote, not an alarm (owner request 2026-11-17) */
.imm-fold--ai .imm-fold__icon { color: var(--imm-gold-600); background: rgba(250, 172, 30, 0.14); }

/* collapsed state: a compact pill; unfolding draws a gold hairline under the title */
.imm-fold--skill.is-collapsible {
  border-radius: 28px; background: var(--imm-glass-bg-strong); border: 1px solid var(--imm-line); box-shadow: var(--imm-shadow-1);
  transition: border-color var(--imm-dur-2) ease, box-shadow var(--imm-dur-3) var(--imm-ease-out), border-radius 0.7s var(--imm-ease-out);
}
.imm-fold--skill.is-collapsible .imm-fold__toggle { min-height: 54px; padding: 8px 18px 8px 10px; color: var(--imm-ink); }
.imm-fold--skill.is-collapsible .imm-fold__toggle::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: var(--imm-grad-gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--imm-ease-out);
}
.imm-fold--skill.is-collapsible.is-open { border-radius: var(--imm-r-md); border-color: var(--imm-line-gold); box-shadow: var(--imm-shadow-2); }
.imm-fold--skill.is-collapsible.is-open .imm-fold__toggle::after { transform: none; }
.imm-fold--skill.is-collapsible .imm-fold__panel p { padding: 12px 18px 16px; }

/* ------------------------------------------------------------------ 5. result stage: the map table (idle) */
.imm-skill-stage { position: relative; padding: 0 0 var(--imm-section-y); }
.imm-skill-stage__wrap { width: min(100% - 2 * var(--imm-gutter), 1760px); }

.imm-skill-stage__trail { display: grid; justify-content: center; height: clamp(54px, 7vw, 112px); margin-bottom: clamp(10px, 1.2vw, 18px); }
.imm-skill-stage__trail i {
  position: relative; display: block; width: 1px; height: 100%;
  background: repeating-linear-gradient(180deg, var(--imm-gold-500) 0 5px, transparent 5px 12px);
  transform: scaleY(clamp(0, calc(var(--imm-p) * 3 - 0.25), 1)); transform-origin: 50% 0;
}
.imm-skill-stage__trail i::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--imm-gold-400); box-shadow: 0 0 0 5px rgba(250, 172, 30, 0.18);
}

.imm-skill-vista {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; width: 100%;
  aspect-ratio: 21 / 9; min-height: 320px; max-height: 78vh;
  border-radius: var(--imm-r-xl); color: var(--imm-ink-inv); background: var(--imm-violet-950); box-shadow: var(--imm-shadow-3);
}
.imm-skill-vista__photo {
  position: absolute; inset: -14% 0 auto 0; z-index: -2; width: 100%; height: 128%; object-fit: cover; object-position: 50% 50%;
  transform: translate3d(0, calc((var(--imm-p) - 0.5) * -18%), 0) scale(1.04); will-change: transform;
}
.imm-skill-vista__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 9, 32, 0.88) 0%, rgba(10, 9, 32, 0.6) 34%, rgba(10, 9, 32, 0.08) 68%, rgba(10, 9, 32, 0) 100%), linear-gradient(0deg, rgba(10, 9, 32, 0.6) 0%, rgba(10, 9, 32, 0) 46%);
}
.imm-skill-vista__copy { display: grid; gap: clamp(6px, 0.9vw, 12px); max-width: 720px; padding: clamp(22px, 4.4vw, 72px); }
.imm-skill-vista__title { font-size: var(--imm-fs-3xl); font-weight: 600; line-height: 1.18; text-wrap: balance; }
.imm-skill-vista__lead { font-size: var(--imm-fs-lg); font-weight: 300; color: var(--imm-ink-inv-2); }
.imm-skill-vista__readout { position: absolute; right: clamp(40px, 4vw, 60px); bottom: clamp(16px, 2.2vw, 30px); font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: 0.26em; color: var(--imm-gold-200); opacity: 0.9; }

/* empty result: the map table dims and the copy (rewritten by skill.js) says there is nothing to draw */
.imm-skill-vista.is-empty .imm-skill-vista__photo { filter: saturate(0.45) brightness(0.8); transition: filter var(--imm-dur-4) ease; }
.imm-skill-vista.is-empty .imm-skill-vista__copy > * { animation: imm-fade-up 0.8s var(--imm-ease-out) both; }
.imm-skill-vista.is-empty .imm-skill-vista__copy > :nth-child(2) { animation-delay: 0.1s; }
.imm-skill-vista.is-empty .imm-skill-vista__copy > :nth-child(3) { animation-delay: 0.2s; }

/* stage states — set by skill.js right before the chart is created (the chart box needs real layout then).
   Without skill.js both blocks simply stay visible. */
html.imm-skill-js .imm-skill-stage:not(.is-live) .imm-skill-figure { display: none; }
html.imm-skill-js .imm-skill-stage.is-live .imm-skill-vista { display: none; }

/* ------------------------------------------------------------------ 6. the figure */
.imm-skill-figure {
  --_px: clamp(12px, 2.4vw, 40px);
  position: relative; margin: 0; scroll-margin-top: 4px; /* + the root scroll-padding (nav height) from core.css */
  background: var(--imm-surface); border: 1px solid var(--imm-line); border-radius: var(--imm-r-xl); box-shadow: var(--imm-shadow-3);
  overflow: hidden; overflow: clip; /* clip keeps the rounded corners without breaking the sticky bar */
}
/* the map unrolls: opacity / clip-path only — never a transform on a chart ancestor */
.imm-skill-stage.is-live .imm-skill-figure { animation: imm-skill-appear 0.9s ease both; }
.imm-skill-stage.is-live .imm-skill-figure__photo { animation: imm-skill-settle 2.4s var(--imm-ease-out) both; }
.imm-skill-stage.is-live .imm-skill-figure__headcopy > * { animation: imm-fade-up 0.9s var(--imm-ease-out) both; }
.imm-skill-stage.is-live .imm-skill-figure__headcopy > :nth-child(2) { animation-delay: 0.12s; }
.imm-skill-stage.is-live .imm-skill-figure__headcopy > :nth-child(3) { animation-delay: 0.24s; }
.imm-skill-stage.is-live .imm-skill-figure__scroll { animation: imm-skill-unroll 1.5s var(--imm-ease-out) 0.15s backwards; }
@keyframes imm-skill-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes imm-skill-settle { from { transform: scale(1.22); } to { transform: scale(1.02); } }
@keyframes imm-skill-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.imm-skill-figure__head {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(148px, 15vw, 248px); padding: clamp(18px, 2.6vw, 40px) var(--_px) clamp(16px, 2vw, 30px);
  color: var(--imm-ink-inv); background: var(--imm-violet-950);
}
.imm-skill-figure__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; transform: scale(1.02); }
.imm-skill-figure__head::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 9, 32, 0.9) 0%, rgba(10, 9, 32, 0.66) 40%, rgba(10, 9, 32, 0.18) 78%, rgba(10, 9, 32, 0.08) 100%), linear-gradient(0deg, rgba(10, 9, 32, 0.5) 0%, rgba(10, 9, 32, 0) 60%);
}
.imm-skill-figure__headcopy { display: grid; gap: 6px; max-width: 980px; }
.imm-skill-figure__title { font-size: var(--imm-fs-2xl); font-weight: 600; line-height: 1.28; text-wrap: balance; overflow-wrap: anywhere; }
.imm-skill-figure__hint { font-size: var(--imm-fs-sm); font-weight: 300; color: var(--imm-ink-inv-2); }

/* sticky bar: threshold + column headers stay in reach all the way down a very long map */
.imm-skill-figure__bar {
  position: sticky; top: calc(var(--imm-nav-h) + var(--imm-safe-t)); z-index: 4; display: grid; gap: 2px; padding: clamp(10px, 1.2vw, 16px) var(--_px) 0;
  background: rgba(255, 253, 248, 0.94); border-bottom: 1px solid var(--imm-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: top 0.6s var(--imm-ease-out), box-shadow var(--imm-dur-2) ease;
}
html.imm-skill-nav-hide .imm-skill-figure__bar { top: 0; } /* the top bar is tucked away: take its place */
.imm-skill-figure__bar.is-stuck { box-shadow: 0 14px 30px -12px rgba(43, 39, 91, 0.28); }
.imm-skill-figure__bar::before { /* gold hairline that draws across when the map appears */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--imm-grad-gold); transform-origin: 0 50%;
}
.imm-skill-stage.is-live .imm-skill-figure__bar::before { animation: imm-skill-draw 1.4s var(--imm-ease-out) 0.2s both; }
@keyframes imm-skill-draw { from { transform: scaleX(0); } to { transform: none; } }
.imm-skill-stage.is-busy .imm-skill-figure__bar::before { /* a new search is on its way */
  background: linear-gradient(90deg, var(--imm-gold-200) 0%, var(--imm-gold-500) 30%, #fff 50%, var(--imm-gold-500) 70%, var(--imm-gold-200) 100%); background-size: 50% 100%;
  animation: imm-shimmer 1.3s linear infinite;
}

/* threshold: label · big numeral · custom range  (#slider's display is switched inline by the controller) */
.imm-skill-thresh__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 560px); align-items: center; gap: 6px clamp(16px, 3vw, 56px); padding-bottom: 4px; }
.imm-skill-thresh__label { font-size: var(--imm-fs-md); font-weight: 500; line-height: 1.4; color: var(--imm-ink); }
.imm-skill-thresh__control { --_r: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: 'num unit range' '. . scale'; align-items: center; column-gap: 0.5em; }
.imm-skill-thresh__control output {
  grid-area: num; min-width: 1.3em; font-size: var(--imm-fs-3xl); font-weight: 200; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  background: linear-gradient(160deg, var(--imm-gold-400), var(--imm-gold-700)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--imm-gold-600);
}
.imm-skill-thresh__unit { grid-area: unit; align-self: end; padding: 0 0.6em 0.5em 0; font-size: var(--imm-fs-sm); color: var(--imm-muted); white-space: nowrap; }
.imm-skill-thresh__scale { grid-area: scale; display: flex; justify-content: space-between; margin-top: -9px; padding-inline: 9px; font-size: var(--imm-fs-2xs); font-variant-numeric: tabular-nums; color: var(--imm-muted); }
.imm-skill-thresh__scale::before { content: attr(data-min); }
.imm-skill-thresh__scale::after { content: attr(data-max); }
#tresholdValueDescription:empty { display: none; }

.imm-skill-range { grid-area: range; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; accent-color: var(--imm-gold-400); }
.imm-skill-range:focus { outline: none; }
.imm-skill-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px; box-shadow: inset 0 1px 2px rgba(27, 24, 56, 0.14);
  background: linear-gradient(90deg, var(--imm-gold-300) 0, var(--imm-gold-500) calc(14px + (100% - 28px) * var(--_r)), rgba(104, 104, 172, 0.2) calc(14px + (100% - 28px) * var(--_r)), rgba(104, 104, 172, 0.2) 100%);
}
.imm-skill-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; border: 2px solid #fff;
  background: radial-gradient(circle at 34% 30%, #fff4d2 0, var(--imm-gold-400) 52%, var(--imm-gold-600) 100%);
  box-shadow: 0 4px 12px rgba(227, 145, 7, 0.45), 0 0 0 1px rgba(140, 84, 7, 0.22);
  transition: transform 0.5s var(--imm-ease-spring), box-shadow var(--imm-dur-2) ease;
}
.imm-skill-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(104, 104, 172, 0.2); box-shadow: inset 0 1px 2px rgba(27, 24, 56, 0.14); }
.imm-skill-range::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--imm-gold-300), var(--imm-gold-500)); }
.imm-skill-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  background: radial-gradient(circle at 34% 30%, #fff4d2 0, var(--imm-gold-400) 52%, var(--imm-gold-600) 100%);
  box-shadow: 0 4px 12px rgba(227, 145, 7, 0.45), 0 0 0 1px rgba(140, 84, 7, 0.22);
}
@media (hover: hover) { .imm-skill-range:hover::-webkit-slider-thumb { transform: scale(1.1); } }
.imm-skill-range:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(250, 172, 30, 0.2), 0 4px 12px rgba(227, 145, 7, 0.45); }
.imm-skill-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--imm-gold-400); }
.imm-skill-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--imm-gold-400); }

/* column headers — skill.js places one per Sankey column, exactly above its nodes */
.imm-skill-cols { position: relative; overflow: hidden; height: 36px; }
.imm-skill-cols:empty, .imm-skill-cols.is-off { display: none; }
.imm-skill-cols__rail { position: relative; height: 100%; }
.imm-skill-col {
  position: absolute; top: 0; left: var(--_x, 0px); display: inline-flex; align-items: center; gap: 0.55em; height: 100%;
  font-size: var(--imm-fs-xs); font-weight: 500; color: var(--imm-ink-2); white-space: nowrap;
  animation: imm-fade-up 0.8s var(--imm-ease-out) both; animation-delay: calc(0.5s + var(--_i, 0) * 0.12s);
}
.imm-skill-col::before { content: ''; flex: none; width: 20px; height: 9px; border-radius: 3px; background: var(--_c, var(--imm-violet-400)); }
.imm-skill-col small { font-size: var(--imm-fs-2xs); font-weight: 400; color: var(--imm-muted); font-variant-numeric: tabular-nums; }

.imm-skill-figure__swipe { display: none; }

/* ------------------------------------------------------------------ simple mode (skill.js, owner decision 2026-11-16)
   "โหมด Detailed / โหมด Simple" like the career map in the Compass results; Simple ranks careers (by curriculum) or
   curricula (by career) as plain HTML rows with the curriculum's courses behind each one */
.imm-skill-modes {
  justify-self: start; display: inline-flex; gap: 4px; margin: 0 0 10px; padding: 4px;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); background: rgba(104, 104, 172, 0.08);
}
.imm-skill-modes button, .imm-skill-simple__limit button {
  min-height: 38px; padding: 0 1.1em; border: 0; border-radius: var(--imm-r-pill); background: transparent;
  font: inherit; font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-ink-2); white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.imm-skill-modes button[aria-pressed='true'], .imm-skill-simple__limit button[aria-pressed='true'] {
  color: #fff; background: var(--imm-grad-brand); box-shadow: 0 6px 14px -6px rgba(104, 104, 172, 0.6);
}
.imm-skill-modes button:focus-visible, .imm-skill-simple__limit button:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; }
@media (hover: hover) {
  .imm-skill-modes button:not([aria-pressed='true']):hover, .imm-skill-simple__limit button:not([aria-pressed='true']):hover { background: #fff; color: var(--imm-ink); }
}
html.imm-skill-simple-on :is(#slider, .imm-skill-cols, .imm-skill-figure__swipe, #skillMapping, .imm-skill-back) { display: none !important; }

.imm-skill-simple { padding: clamp(16px, 2.4vw, 32px) var(--_px) clamp(22px, 3vw, 40px); }
.imm-skill-simple[hidden] { display: none; }
.imm-skill-simple__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(14px, 2vw, 22px); }
.imm-skill-simple__copy { min-width: 0; max-width: 52rem; }
.imm-skill-simple__eyebrow { margin: 0; font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: 0.04em; color: var(--imm-gold-600); } /* Thai: no wide tracking */
html.imm-skill-simple-on .imm-skill-figure__hint { visibility: hidden; } /* "tap a node" has nothing to tap in the summary */
.imm-skill-simple__title { margin: 4px 0 0; font-size: var(--imm-fs-xl); font-weight: 600; line-height: 1.3; color: var(--imm-ink); text-wrap: balance; }
.imm-skill-simple__note { margin: 4px 0 0; font-size: var(--imm-fs-sm); line-height: 1.6; color: var(--imm-ink-3); }
.imm-skill-simple__limit { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); background: rgba(104, 104, 172, 0.08); }
.imm-skill-simple__empty { margin: 0; padding: 18px 0; color: var(--imm-ink-3); }

.imm-skill-simple__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.imm-skill-simple__row {
  position: relative; padding: 12px clamp(12px, 1.6vw, 18px); border: 1px solid var(--imm-line); border-radius: var(--imm-r-md);
  background: rgba(255, 255, 255, 0.78); box-shadow: var(--imm-shadow-1);
}
.imm-skill-simple__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.imm-skill-simple__rank {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--imm-gold-400); background: radial-gradient(circle at 35% 30%, #fff, #fff4dc 70%);
  font-size: var(--imm-fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--imm-gold-700);
}
.imm-skill-simple__row:nth-child(-n + 3) .imm-skill-simple__rank {
  border-color: transparent; color: #2b1d00; background: radial-gradient(circle at 34% 30%, #fff4d2 0, var(--imm-gold-400) 55%, var(--imm-gold-600) 100%);
  box-shadow: 0 0 0 4px rgba(250, 172, 30, 0.16);
}
.imm-skill-simple__name { font-size: var(--imm-fs-md); font-weight: 500; line-height: 1.38; color: var(--imm-ink); overflow-wrap: anywhere; }
.imm-skill-simple__count { font-size: var(--imm-fs-sm); color: var(--imm-ink-3); white-space: nowrap; }
.imm-skill-simple__count b { font-size: var(--imm-fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--imm-ink); }
.imm-skill-simple__bar { display: block; height: 8px; margin: 10px 0 0 46px; overflow: hidden; border-radius: var(--imm-r-pill); background: rgba(104, 104, 172, 0.1); }
.imm-skill-simple__bar i {
  display: block; width: calc(var(--w, 0) * 100%); height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--imm-violet-400), var(--imm-gold-400)); transform-origin: 0 50%;
}
.imm-skill-simple__more { margin: 6px 0 0 46px; }
.imm-skill-simple__more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; list-style: none; cursor: pointer;
  font-size: var(--imm-fs-sm); color: var(--imm-violet-700, #3b3584); -webkit-tap-highlight-color: transparent;
}
.imm-skill-simple__more summary::-webkit-details-marker { display: none; }
.imm-skill-simple__more summary::after {
  content: ''; width: 0.5em; height: 0.5em; margin-top: -0.2em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.35s var(--imm-ease-out), margin 0.35s var(--imm-ease-out);
}
.imm-skill-simple__more[open] summary::after { margin-top: 0.25em; transform: rotate(225deg); }
.imm-skill-simple__more summary:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; border-radius: 6px; }
.imm-skill-simple__detail { padding: 4px 0 6px; }
.imm-skill-simple__label { margin: 8px 0 6px; font-size: var(--imm-fs-xs); font-weight: 500; color: var(--imm-ink-3); }
.imm-skill-simple__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.imm-skill-simple__chips li { padding: 0.25em 0.8em; border-radius: var(--imm-r-pill); font-size: var(--imm-fs-xs); line-height: 1.45; color: var(--imm-ink-2); background: rgba(104, 104, 172, 0.08); }
.imm-skill-simple__chips.is-skill li { color: var(--imm-gold-700); background: rgba(250, 172, 30, 0.12); }

html.imm-js .imm-skill-simple__row { animation: imm-fade-up 0.6s var(--imm-ease-out) calc(var(--i, 0) * 45ms) backwards; }
html.imm-js .imm-skill-simple__bar i { animation: imm-skill-bar 0.9s var(--imm-ease-out) calc(0.15s + var(--i, 0) * 45ms) backwards; }
@keyframes imm-skill-bar { from { transform: scaleX(0); } }
@media (max-width: 599.98px) {
  .imm-skill-modes { justify-self: stretch; }
  .imm-skill-modes button { flex: 1 1 0; padding: 0 0.6em; }
  .imm-skill-simple__bar, .imm-skill-simple__more { margin-left: 0; }
  .imm-skill-simple__main { grid-template-columns: auto minmax(0, 1fr); }
  .imm-skill-simple__count { grid-column: 2; }
}
html.imm-reduced .imm-skill-simple__row, html.imm-reduced .imm-skill-simple__bar i { animation: none; }
html.a11y-high-contrast .imm-skill-simple__row { background: #fff; border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-skill-simple__bar { background: #fff; box-shadow: inset 0 0 0 1px var(--imm-ink); }
html.a11y-high-contrast .imm-skill-simple__bar i { background: var(--imm-ink); }
html.a11y-high-contrast :is(.imm-skill-modes, .imm-skill-simple__limit) { background: #fff; border: 2px solid var(--imm-ink); }
html.a11y-high-contrast :is(.imm-skill-modes, .imm-skill-simple__limit) button[aria-pressed='true'] { background: var(--imm-ink); color: #fff; box-shadow: none; }
html.a11y-high-contrast .imm-skill-simple__chips li { background: #fff; box-shadow: inset 0 0 0 1px var(--imm-ink); color: var(--imm-ink); }

/* display advice over the detailed map on phones (skill.js, owner decision 2026-11-17): the notes' words, repeated
   each time a phone switches to the detailed map; a way back to the summary, and a close button */
.imm-skill-advice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 2px 12px;
  margin: 14px var(--_px) 4px; padding: 12px 10px 12px 14px; border-radius: var(--imm-r-md);
  border: 1px solid rgba(250, 172, 30, 0.38);
  background: linear-gradient(135deg, rgba(255, 239, 198, 0.62), rgba(104, 104, 172, 0.07));
}
.imm-skill-advice[hidden] { display: none; }
html.imm-skill-simple-on .imm-skill-advice { display: none; }
.imm-skill-advice.is-in { animation: imm-fade-up 0.5s var(--imm-ease-out) both; } /* opacity + a short lift, no layout */
.imm-skill-advice__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--imm-gold-700); background: rgba(250, 172, 30, 0.18);
}
.imm-skill-advice__copy { min-width: 0; padding-top: 1px; }
.imm-skill-advice__title { margin: 0; font-size: var(--imm-fs-sm); font-weight: 600; line-height: 1.5; color: var(--imm-ink); }
.imm-skill-advice__text { margin: 2px 0 0; font-size: var(--imm-fs-sm); line-height: 1.6; color: var(--imm-ink-2); }
.imm-skill-advice__simple {
  margin: 6px 0 0; padding: 4px 0; min-height: 32px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-accent-strong);
  text-decoration: underline; text-decoration-color: rgba(250, 172, 30, 0.8); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
  -webkit-tap-highlight-color: transparent;
}
.imm-skill-advice__close {
  display: grid; place-items: center; width: 36px; height: 36px; margin: -2px -2px 0 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--imm-ink-3); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.imm-skill-advice__close:active { background: rgba(104, 104, 172, 0.1); }
.imm-skill-advice button:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; }
html.imm-reduced .imm-skill-advice.is-in { animation: none; }
html.a11y-high-contrast .imm-skill-advice { background: #fff; border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-advice__icon { background: none; color: var(--imm-ink); box-shadow: inset 0 0 0 2px var(--imm-ink); }
html.a11y-high-contrast :is(.imm-skill-advice__text, .imm-skill-advice__close, .imm-skill-advice__simple) { color: var(--imm-ink); }

/* ------------------------------------------------------------------ 7. chart scroller */
.imm-skill-figure__scroll {
  position: relative; overflow-x: auto; overflow-y: hidden; padding: 0 var(--_px) clamp(8px, 1.6vw, 24px);
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.imm-page-skill #container { width: 100%; }
.imm-page-skill #container svg { display: block; } /* SVG renderer: no inline-baseline gap under the map */

/* ------------------------------------------------------------------ 8. floating controls */
/* drill-down "back" button — appended to <body> by the controller with inline fixed/top/right;
   !important here only to beat those inline styles (it used to sit off-screen on phones) */
.imm-page-skill .imm-skill-back {
  top: auto !important; right: auto !important;
  left: max(16px, var(--imm-safe-l)) !important; bottom: calc(18px + var(--imm-safe-b)) !important;
  min-height: 50px; padding: 0 1.4em 0 1.1em; border: 1px solid var(--imm-glass-dark-border); border-radius: var(--imm-r-pill);
  font-family: inherit; font-size: var(--imm-fs-md); line-height: 1; white-space: nowrap; color: #fff; cursor: pointer;
  background: rgba(19, 16, 52, 0.86); box-shadow: 0 16px 40px rgba(5, 4, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-tap-highlight-color: transparent;
  animation: imm-skill-pop 0.7s var(--imm-ease-spring) both;
  transition: background-color var(--imm-dur-2) ease, box-shadow var(--imm-dur-2) ease;
}
.imm-page-skill .imm-skill-back::before {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.75em; vertical-align: 0.08em;
  border-left: 2px solid var(--imm-gold-300); border-bottom: 2px solid var(--imm-gold-300); transform: rotate(45deg);
}
@media (hover: hover) { .imm-page-skill .imm-skill-back:hover { background: var(--imm-violet-700); box-shadow: 0 18px 44px rgba(5, 4, 20, 0.5), 0 0 0 1px var(--imm-line-gold); } }
/* every search appends one more button; only the newest belongs to the map on screen — and none while no map is shown */
.imm-page-skill .imm-skill-back:has(~ .imm-skill-back), html.imm-skill-js:not(.imm-skill-live) .imm-skill-back { display: none !important; }
@keyframes imm-skill-pop { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.9); } to { opacity: 1; transform: none; } }
@layer imm-force { .imm-page-skill .imm-skill-back { font-weight: 500 !important; } } /* legacy .kanit4 pins 400 !important */

/* ------------------------------------------------------------------ 9. classes still emitted by skill-mapping-web.js */
.imm-skill-ask__menu .list-group-item {
  padding: 0.72em 0.95em; border-radius: 10px; font-size: var(--imm-fs-md); line-height: 1.45; color: var(--imm-ink); cursor: pointer;
  transition: background-color var(--imm-dur-1) ease, color var(--imm-dur-1) ease;
}
.imm-skill-ask__menu .list-group-item + .list-group-item { box-shadow: 0 -1px 0 var(--imm-line); }
@media (hover: hover) { .imm-skill-ask__menu .list-group-item:hover { background: var(--imm-gold-50); color: var(--imm-violet-800); box-shadow: none; } .imm-skill-ask__menu .list-group-item:hover + .list-group-item { box-shadow: none; } }
.imm-skill-ask__menu .list-group-item:active { background: var(--imm-gold-100); }
/* keyboard: the suggestion reached with the arrow keys (skill.js) */
.imm-skill-ask__menu .list-group-item.is-active { background: var(--imm-gold-50); color: var(--imm-violet-800); box-shadow: inset 3px 0 0 var(--imm-gold-400); }
.imm-skill-ask__menu .list-group-item.is-active + .list-group-item { box-shadow: none; }
.imm-page-skill .spinner-border { vertical-align: -0.16em; }
.imm-page-skill .me-1 { margin-right: 0.25em; }

/* ------------------------------------------------------------------ 10. responsive */
@media (min-width: 1920px) {
  .imm-skill-hero__lockup { max-width: 780px; }
  .imm-skill-way__media { height: clamp(232px, 12vw, 300px); }
}
/* 4K-class screens: the shared type ramp tops out around 1920px; scale this page's own sections up a step
   (custom properties re-declared on the sections, so only their descendants change) */
@media (min-width: 2400px) and (min-height: 1300px) {
  .imm-skill-hero, .imm-skill-ways, .imm-skill-stage {
    --imm-fs-2xs: 0.85rem; --imm-fs-xs: 0.95rem; --imm-fs-sm: 1.1rem; --imm-fs-md: 1.25rem; --imm-fs-lg: 1.6rem;
    --imm-fs-xl: 2.2rem; --imm-fs-2xl: 3.2rem; --imm-fs-3xl: 5.4rem;
  }
  .imm-skill .imm-container--wide { width: min(100% - 2 * var(--imm-gutter), 2200px); }
  .imm-skill-stage__wrap { width: min(100% - 2 * var(--imm-gutter), 2400px); }
  .imm-skill-hero__lockup { max-width: 1120px; }
  .imm-skill-hero__logo { width: 780px; }
  .imm-skill-way__media { height: 360px; }
  .imm-skill-way__num { font-size: 8.5rem; }
  .imm-skill-or, .imm-skill-or span { width: 84px; }
}

/* tablets / small laptops: the two routes stack, "or" turns horizontal */
@media (max-width: 959.98px) {
  .imm-skill-ways__grid { grid-template-columns: minmax(0, 1fr); }
  .imm-skill-or { width: 100%; height: clamp(46px, 7vw, 60px); }
  .imm-skill-or::before { top: 50%; bottom: auto; left: 8%; right: 8%; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--imm-line-gold) 0 5px, transparent 5px 12px); }
  .imm-skill-way__media { height: clamp(120px, 24vw, 220px); }
  .imm-skill-way--occupation .imm-skill-way__go { width: auto; }
  .imm-skill-notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .imm-skill-notes__survey { grid-column: 1 / -1; justify-self: start; }
  .imm-skill-vista { aspect-ratio: 16 / 10; }
}
/* the threshold label gets its own line before it is squeezed into a narrow column */
@media (max-width: 1023.98px) {
  .imm-skill-thresh__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* phones */
@media (max-width: 767.98px) {
  .imm-skill-hero { justify-content: flex-start; padding-top: calc(var(--imm-nav-h) + var(--imm-safe-t) + clamp(14px, 4vh, 44px)); }
  .imm-skill-hero__plate {
    --_fx: 0.9; --_fy: 1; --_w: max(100cqw, 150cqh); top: auto; bottom: -3%; transform-origin: 74% 80%;
    /* the plate is shorter than the stage here: feather its top edge into the night instead of showing a seam */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  }
  .imm-skill-hero__scrim {
    background: linear-gradient(180deg, rgba(10, 9, 32, 0.94) 0%, rgba(10, 9, 32, 0.84) 34%, rgba(10, 9, 32, 0.4) 58%, rgba(10, 9, 32, 0) 78%);
  }
  .imm-skill-hero__logo { width: min(100%, 420px); }
  .imm-skill-ways { margin-top: clamp(-150px, -13vh, -84px); }
  .imm-skill-way { padding: 8px; }
  .imm-skill-way__tag { left: 12px; top: 12px; }
  .imm-skill-steps { grid-template-columns: minmax(0, 1fr); }
  .imm-skill-way__foot { flex-direction: column; align-items: stretch; }
  .imm-skill-way__note { flex: none; }
  .imm-skill-way__go, .imm-skill-way--occupation .imm-skill-way__go { width: 100%; margin-left: 0; }
  .imm-skill-ask__menu { max-height: min(280px, 40vh); }
  .imm-skill-notes { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-inline: 0; }
  .imm-skill-notes__survey { justify-self: stretch; order: 3; }
  .imm-skill-vista { aspect-ratio: 4 / 5; max-height: 72vh; }
  .imm-skill-vista__photo { object-position: 50% 50%; } /* the square moat, centred */
  .imm-skill-vista__scrim { background: linear-gradient(0deg, rgba(10, 9, 32, 0.94) 0%, rgba(10, 9, 32, 0.72) 36%, rgba(10, 9, 32, 0.08) 70%, rgba(10, 9, 32, 0.5) 100%); } /* top: a plate for the readout over the city lights */
  .imm-skill-vista__readout { right: auto; left: 24px; bottom: auto; top: 22px; }
  .imm-skill-stage__wrap { width: min(100% - 2 * clamp(10px, 3vw, 16px), 1760px); }
  .imm-skill-figure { border-radius: var(--imm-r-lg); }
  .imm-skill-thresh__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .imm-skill-thresh__label { font-size: var(--imm-fs-sm); }
  .imm-skill-thresh__control output { font-size: var(--imm-fs-2xl); }
  /* the map keeps a readable width and scrolls sideways inside its frame */
  .imm-page-skill #container, .imm-skill-cols__rail { min-width: 820px; }
  /* swipe hint: sits at the right end of the column-header row; the headers slide under a paper fade, never under text */
  .imm-skill-figure.is-scrollable:not(.has-scrolled) .imm-skill-figure__swipe {
    position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; height: 36px; padding: 0 8px 0 44px; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 253, 248, 0) 0, var(--imm-surface) 38px);
    animation: imm-fade-up 0.7s var(--imm-ease-out) 0.9s both;
  }
  .imm-skill-figure__chip {
    display: inline-flex; align-items: center; gap: 0.4em; padding: 0.26em 0.85em; border-radius: var(--imm-r-pill); white-space: nowrap;
    font-size: var(--imm-fs-2xs); font-weight: 500; line-height: 1.4; color: var(--imm-gold-700); background: var(--imm-gold-50); border: 1px solid var(--imm-line-gold);
  }
  .imm-skill-figure__chip i { display: inline-block; font-style: normal; animation: imm-skill-nudge 1.5s var(--imm-ease-in-out) infinite; }
  /* soft edge on the map only (a mask on the scroller box, so it stays put while the map scrolls) */
  .imm-skill-figure.is-scrollable:not(.is-at-end) .imm-skill-figure__scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
}
@keyframes imm-skill-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }

@media (max-width: 479.98px) {
  .imm-skill-nav__coords { display: none; }
  .imm-skill-route { font-size: var(--imm-fs-xs); }
  .imm-skill-route li:not(:last-child)::after { width: 14px; margin: 0 0.5em 0 0.1em; }
  .imm-skill-way__num { font-size: 3.2rem; }
  .imm-skill-figure__title { font-size: var(--imm-fs-xl); } /* long curriculum names: keep the head short */
}
@media (max-width: 339.98px) {
  .imm-skill-nav__label { display: none; }
  .imm-skill-nav__back { padding: 0 0.35em; }
  .imm-skill-way__tag { letter-spacing: 0.12em; }
}

/* landscape phones: no room for a pinned bar; hero content hugs the top */
@media (max-height: 520px) {
  .imm-skill-hero { justify-content: flex-start; padding-bottom: 150px; }
  .imm-skill-hero__lockup { gap: 8px; }
  .imm-skill-hero__logo { width: clamp(220px, 34vw, 320px); }
  .imm-skill-hero__lead { font-size: var(--imm-fs-md); }
  .imm-skill-way__media { height: clamp(96px, 30vh, 150px); }
  .imm-skill-figure__bar { position: static; }
  .imm-skill-figure__head { min-height: 0; padding-block: 16px 14px; }
  .imm-skill-figure__title { font-size: var(--imm-fs-xl); }
  .imm-skill-vista { aspect-ratio: 21 / 9; max-height: none; }
}

/* ------------------------------------------------------------------ 11. reduced motion: a still, complete composition */
html.imm-reduced .imm-skill-hero__plate { transform: scale(1.04); }
html.imm-reduced .imm-skill-hero__motes { transform: none; }
html.imm-reduced .imm-skill-hero__lockup { transform: none; opacity: 1; }
html.imm-reduced .imm-skill-hero__chedi, html.imm-reduced .imm-skill-or span::before { animation: none; }
html.imm-reduced .imm-skill-hero__glints { display: none; }
html.imm-reduced .imm-skill-way__media img, html.imm-reduced .imm-skill-vista__photo { transform: none; }
html.imm-reduced .imm-skill-stage__trail i { transform: none; }
html.imm-reduced .imm-skill-nav, html.imm-reduced .imm-skill-figure__bar { transition: none; }
html.imm-reduced .imm-skill-route li::before { animation: none !important; background: var(--imm-gold-300); } /* !important: beats the .is-inview animation rule */
html.imm-reduced .imm-skill-route li::after { animation: none !important; }
html.imm-reduced .imm-skill-step.is-next .imm-skill-step__label i::after { animation: none; opacity: 0.6; }
html.imm-reduced .imm-skill-way__go:not(:disabled), html.imm-reduced .imm-skill-ask__menu, html.imm-reduced .imm-skill-notice, html.imm-reduced .imm-skill-col,
html.imm-reduced .imm-skill-back, html.imm-reduced .imm-skill-figure__swipe, html.imm-reduced .imm-skill-figure__chip i,
html.imm-reduced .imm-skill-vista.is-empty .imm-skill-vista__copy > * { animation: none; }
html.imm-reduced .imm-skill-stage.is-live .imm-skill-figure, html.imm-reduced .imm-skill-stage.is-live .imm-skill-figure__photo,
html.imm-reduced .imm-skill-stage.is-live .imm-skill-figure__headcopy > *, html.imm-reduced .imm-skill-stage.is-live .imm-skill-figure__scroll,
html.imm-reduced .imm-skill-stage.is-live .imm-skill-figure__bar::before { animation: none; }
html.imm-reduced .imm-fold--skill [data-imm-collapse-panel], html.imm-reduced .imm-fold--skill .imm-fold__toggle::after, html.imm-reduced .imm-fold--skill .imm-chevron { transition: none; }

/* ------------------------------------------------------------------ 12. high contrast: opaque plates, dark text, 2px borders */
html.a11y-high-contrast .imm-skill-nav::before { opacity: 1; background: #05050c; border-bottom: 2px solid #fff; }
html.a11y-high-contrast .imm-skill-nav__back, html.a11y-high-contrast .imm-skill-nav__again { background: #05050c; border: 2px solid #fff; color: #fff; }
html.a11y-high-contrast .imm-skill-nav__coords { color: #fff; opacity: 1; }
html.a11y-high-contrast .imm-skill-hero__scrim { background: rgba(5, 5, 12, 0.62); }
html.a11y-high-contrast .imm-skill-hero__chedi, html.a11y-high-contrast .imm-skill-hero__glints, html.a11y-high-contrast .imm-skill-hero__motes { display: none; }
html.a11y-high-contrast .imm-skill-hero__fade { background: linear-gradient(180deg, rgba(255, 254, 245, 0) 0%, var(--imm-bg) 70%); }
html.a11y-high-contrast .imm-skill-hero__lockup { padding: clamp(16px, 2.4vw, 32px); background: #05050c; border: 2px solid #fff; border-radius: var(--imm-r-lg); }
html.a11y-high-contrast .imm-skill-hero__lead, html.a11y-high-contrast .imm-skill-route { color: #fff; }
html.a11y-high-contrast .imm-skill-hero__logo { padding: 8px 12px; background: #fffef5; border-radius: var(--imm-r-sm); }
html.a11y-high-contrast .imm-skill::before { display: none; }
html.a11y-high-contrast .imm-skill-way { background: var(--imm-surface); border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-way__title { background: none; -webkit-text-fill-color: currentColor; color: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-way__tag { background: #05050c; border: 2px solid #fff; }
html.a11y-high-contrast .imm-skill-way__num { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 0 #000, 0 2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; }
html.a11y-high-contrast .imm-skill-step.is-waiting { opacity: 1; }
html.a11y-high-contrast .imm-skill-step__label { color: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-step__label i { border: 2px solid var(--imm-ink); color: var(--imm-ink); background: #fff; }
html.a11y-high-contrast .imm-skill-step.is-filled .imm-skill-step__label i { background: var(--imm-ink); color: #fff; box-shadow: none; }
html.a11y-high-contrast .imm-skill .imm-select, html.a11y-high-contrast .imm-skill-ask__input, html.a11y-high-contrast .imm-skill-ask__menu { border: 2px solid var(--imm-ink); background-color: #fff; }
html.a11y-high-contrast .imm-skill-or span { border: 2px solid var(--imm-ink); color: var(--imm-ink); box-shadow: 0 0 0 7px var(--imm-bg); }
html.a11y-high-contrast .imm-skill-way__note, html.a11y-high-contrast .imm-skill-notice { color: #8a0f2a; }
html.a11y-high-contrast .imm-skill-ask__hint, html.a11y-high-contrast .imm-fold--skill .imm-fold__panel p { color: var(--imm-ink); }
html.a11y-high-contrast .imm-fold--skill.is-collapsible, html.a11y-high-contrast .imm-skill-notes__survey { border: 2px solid var(--imm-ink); background: var(--imm-surface); color: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-vista__scrim { background: rgba(5, 5, 12, 0.5); }
html.a11y-high-contrast .imm-skill-vista__copy, html.a11y-high-contrast .imm-skill-figure__headcopy { width: fit-content; margin: clamp(12px, 2vw, 28px); padding: clamp(14px, 2vw, 28px); background: #05050c; border: 2px solid #fff; border-radius: var(--imm-r-md); }
html.a11y-high-contrast .imm-skill-figure__headcopy { margin: 0; }
html.a11y-high-contrast .imm-skill-vista__lead, html.a11y-high-contrast .imm-skill-figure__hint { color: #fff; }
html.a11y-high-contrast .imm-skill-vista__readout { display: none; }
html.a11y-high-contrast .imm-skill-figure { border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-figure__bar { background: var(--imm-surface); border-bottom: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-thresh__control output { background: none; -webkit-text-fill-color: currentColor; color: var(--imm-ink); font-weight: 400; }
html.a11y-high-contrast .imm-skill-thresh__unit, html.a11y-high-contrast .imm-skill-thresh__scale, html.a11y-high-contrast .imm-skill-col, html.a11y-high-contrast .imm-skill-col small { color: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--imm-ink) 0, var(--imm-ink) calc(14px + (100% - 28px) * var(--_r)), #fff calc(14px + (100% - 28px) * var(--_r)), #fff 100%); box-shadow: 0 0 0 2px var(--imm-ink); }
html.a11y-high-contrast .imm-skill-range::-webkit-slider-thumb { background: #fff; border: 3px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-skill-range::-moz-range-track { background: #fff; box-shadow: 0 0 0 2px var(--imm-ink); }
html.a11y-high-contrast .imm-skill-range::-moz-range-progress { background: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-range::-moz-range-thumb { background: #fff; border: 3px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-skill-back { background: #05050c; border: 2px solid #fff; }
html.a11y-high-contrast .imm-skill-figure__chip { color: var(--imm-ink); background: #fff; border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-trace { background: #fff; border: 2px dashed var(--imm-ink); }
html.a11y-high-contrast .imm-skill-trace__label, html.a11y-high-contrast .imm-skill-trace__path { color: var(--imm-ink); }
html.a11y-high-contrast .imm-skill-trace__path li:last-child { color: var(--imm-ink); background: #fff; border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .imm-skill-ask__menu .list-group-item.is-active { background: var(--imm-ink); color: #fff; }

/* ------------------------------------------------------------------ 13. print */
@media print {
  .imm-skill-nav, .imm-skill-progress, .imm-skill-hero__scene, .imm-skill-vista, .imm-page-skill .imm-skill-back { display: none !important; }
  .imm-skill-hero { min-height: 0; padding: 24px 0; color: var(--imm-ink); background: none; }
  .imm-skill-ways { margin-top: 0; }
  .imm-skill-figure__bar { position: static; }
}
