/* ============================================================================
   Career Guidance (/career-guidance) — glassmorphism UI, MOBILE-FIRST.
   Base rules target ~360px phones; min-width queries scale up (560/768/1024/1200).
   Uses site.css tokens (--teal, --cream, --ink, --font-head, ...).
   Everything is scoped under .cg-* so nothing leaks into the rest of the site.
   ========================================================================== */
.cg-stage {
  --g-bg: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  --g-border: rgba(255,255,255,.2);
  --g-shadow: 0 22px 50px -26px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
  --g-blur: blur(16px) saturate(165%);
  --t-strong: #fff;
  --t-body: rgba(240,252,252,.92);
  --t-muted: rgba(226,244,245,.8);
  --cg-ease: cubic-bezier(.2,.8,.2,1);
  position: relative; isolation: isolate; color: var(--t-body);
  padding: 0 0 3rem;
  background: linear-gradient(165deg, #001d23 0%, #03323a 42%, #074a50 75%, #062f36 100%);
}
.cg-stage h2, .cg-stage h3, .cg-stage h4 { color: var(--t-strong); }
.cg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* shared layout grid ------------------------------------------------------------
   One left/right edge for the whole page: --cg-gut is the surface's outer margin (same as
   .cg-surface's --ct-gut), --cg-pad its inner padding, so banner text, the tab bar and every
   surface's content line up at  gut + 1.5px border + pad  on every breakpoint. */
.cg-head, .cg-stage { --cg-gut: 10px; --cg-pad: 16px; --cg-edge: calc(var(--cg-gut) + 1.5px + var(--cg-pad)); }
@media (min-width: 768px) { .cg-head, .cg-stage { --cg-gut: 18px; --cg-pad: 28px; } }
@media (min-width: 1200px) { .cg-head, .cg-stage { --cg-pad: 40px; } }
.cg-head > .container, .cg-tabs-wrap > .container { max-width: none; padding-inline: var(--cg-edge); }

/* page head ------------------------------------------------------------------ */
.cg-head .cg-head-lead { color: rgba(255,255,255,.85); max-width: 640px; margin: .4rem 0 0; position: relative; }
.cg-head-stats { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.cg-stat-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 100px;
  font-family: var(--font-head); font-size: .85rem; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cg-stat-pill i { color: var(--teal-300); }
.cg-stat-pill b { font-weight: 700; }

/* animated blob background --------------------------------------------------- */
.cg-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.cg-blob { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.cg-b1 { width: 120vw; height: 120vw; max-width: 900px; max-height: 900px; left: -40vw; top: -10vw; background: radial-gradient(circle at 50% 50%, rgba(18,146,152,.75), rgba(18,146,152,0) 65%); animation: cgFloat1 22s ease-in-out infinite alternate; }
.cg-b2 { width: 100vw; height: 100vw; max-width: 760px; max-height: 760px; right: -45vw; top: 30%; background: radial-gradient(circle at 50% 50%, rgba(77,192,197,.55), rgba(77,192,197,0) 65%); animation: cgFloat2 26s ease-in-out infinite alternate; }
.cg-b3 { width: 90vw; height: 90vw; max-width: 640px; max-height: 640px; left: 10%; bottom: -20vw; background: radial-gradient(circle at 50% 50%, rgba(255,214,186,.32), rgba(255,214,186,0) 65%); animation: cgFloat3 30s ease-in-out infinite alternate; }
.cg-b4 { width: 70vw; height: 70vw; max-width: 520px; max-height: 520px; right: 5%; top: -12vw; background: radial-gradient(circle at 50% 50%, rgba(11,101,105,.8), rgba(11,101,105,0) 65%); animation: cgFloat2 34s ease-in-out infinite alternate-reverse; }
@keyframes cgFloat1 { to { transform: translate3d(18vw, 30vh, 0) scale(1.15); } }
@keyframes cgFloat2 { to { transform: translate3d(-22vw, -18vh, 0) scale(.9); } }
@keyframes cgFloat3 { to { transform: translate3d(14vw, -26vh, 0) scale(1.2); } }

/* glass primitive ------------------------------------------------------------ */
.cg-glass {
  background: var(--g-bg); border: 1px solid var(--g-border); box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cg-glass, .cg-stat-pill { background: rgba(7, 58, 66, .95); }
}

/* sticky segmented control --------------------------------------------------- */
.cg-tabs-wrap { position: sticky; top: calc(var(--nav-h) + 6px); z-index: 40; padding: .9rem 0 .6rem; }
.cg-tabs {
  --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px; border-radius: 100px; max-width: 560px; margin-inline: auto;
  background: linear-gradient(135deg, rgba(0,29,35,.55), rgba(6,49,58,.45));
}
.cg-tab-ind {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3);
  border-radius: 100px; background: linear-gradient(135deg, #fff, var(--cream));
  box-shadow: 0 8px 22px -8px rgba(77,192,197,.7);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--cg-ease);
}
.cg-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .4rem .25rem; border: 0; background: none; border-radius: 100px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: rgba(255,255,255,.88);
  white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: color .3s ease;
}
.cg-tab { gap: .3rem; }
.cg-tab i { font-size: .8rem; }
.cg-tab[aria-selected="true"] { color: var(--teal-700); }
.cg-tab:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; }
.cg-hide-xs { display: none; }
@media (min-width: 400px) { .cg-hide-xs { display: inline; } .cg-tab { font-size: .92rem; gap: .4rem; padding-inline: .5rem; } }

/* panels --------------------------------------------------------------------- */
.cg-panels { position: relative; }
.cg-panel:focus { outline: none; }
.cg-panel:focus-visible { outline: 2px dashed rgba(77,192,197,.6); outline-offset: -4px; border-radius: 12px; }
.cg-disclaimer { margin: 1.4rem auto 0; max-width: 760px; text-align: center; font-size: .82rem; color: var(--t-muted); }
.cg-disclaimer i { color: #6fb9bb; }

/* tones: muted, desaturated (same palette as the tree kinds) ------------------ */
.cg-t-teal     { --k: #6fb9bb; }
.cg-t-cyan     { --k: #7fc1cc; }
.cg-t-slate    { --k: #93a9cc; }
.cg-t-sage     { --k: #9cb89a; }
.cg-t-lavender { --k: #a8a3c6; }
.cg-t-sand     { --k: #c8b48e; }
.cg-t-amber    { --k: #d0a85a; }

/* =================== SHARED FRAMED SURFACE ===================================
   One frame for all three tabs (Career Tree stage, Career Roadmap, AI Guidance):
   full-width with a small gutter, rounded, teal hairline border + glow, inner
   hairline. The tree adds its own fixed height + canvas; the other two flow. */
.cg-surface {
  --ct-gut: 10px;
  position: relative; isolation: isolate;
  width: calc(100% - var(--ct-gut) * 2); margin: 0 auto var(--ct-gut);
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 50% 0%, #03323a 0%, rgba(3,50,58,0) 60%),
    linear-gradient(180deg, #001d23 0%, #00161b 55%, #000f13 100%);
  border: 1.5px solid rgba(77,192,197,.55);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.45),            /* crisp outer edge */
    0 0 28px rgba(18,146,152,.28),        /* soft teal glow */
    0 24px 60px -20px rgba(0,0,0,.7),     /* depth */
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 0 60px rgba(18,146,152,.14);
}
@media (min-width: 768px) { .cg-surface { --ct-gut: 18px; border-radius: 24px; } }
.cg-surface::before { /* hairline inner frame */
  content: ""; position: absolute; inset: 6px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,.07); border-radius: 13px;
}
@media (min-width: 768px) { .cg-surface::before { inset: 8px; border-radius: 17px; } }
/* Roadmap + AI: document-flow surfaces with a static teal cloud wash (no canvas) */
.cg-surface-flow {
  min-height: 560px; min-height: min(760px, calc(100svh - var(--nav-h, 64px) - 84px - var(--ct-gut)));
  background:
    radial-gradient(55% 38% at 12% 0%, rgba(16,128,135,.34), transparent 70%),
    radial-gradient(45% 32% at 88% 6%, rgba(12,104,110,.26), transparent 70%),
    radial-gradient(70% 45% at 50% 100%, rgba(18,146,152,.14), transparent 70%),
    linear-gradient(180deg, #001d23 0%, #00161b 60%, #000f13 100%);
}
.cg-surface-in { position: relative; z-index: 4; padding: 18px 16px 20px; }
@media (min-width: 768px) { .cg-surface-in { padding: 30px 28px 32px; } }
@media (min-width: 1200px) { .cg-surface-in { padding: 36px 40px 40px; } }

/* type ------------------------------------------------------------------------ */
.cg-intro { margin: 0 0 1.1rem; }
@media (min-width: 1024px) {
  [data-cg-list]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); column-gap: clamp(24px, 4vw, 56px); align-items: end; }
  [data-cg-list] > * { grid-column: 1 / -1; }
  [data-cg-list] > .cg-intro { grid-column: 1; margin-bottom: 0; }
  [data-cg-list] > .cg-searchbar { grid-column: 2; align-self: end; }
  [data-cg-list] > .cg-chips { margin-top: 1.1rem; }
}
.cg-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #6fb9bb; margin-bottom: .6rem; }
.cg-h2 { font: 600 clamp(1.4rem, 5.6vw, 2.1rem)/1.15 var(--font-head); margin: 0 0 .4rem; color: #f3fafb; letter-spacing: .005em; }
.cg-sub { color: rgba(214,231,234,.8); margin: 0; font-size: .95rem; line-height: 1.55; max-width: 62ch; }
.cg-label { display: block; font: 600 .68rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #6fb9bb; margin: 0 0 .45rem; }

/* card primitive: dark glass, 1px tone-tinted border --------------------------- */
.cg-ccard, .cg-dhead, .cg-fact, .cg-sec, .cg-msg, .cg-ai-intro, .cg-chat, .cg-cc {
  position: relative; border-radius: 14px; color: var(--t-body);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 40%), rgba(4,30,37,.74);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
}
.cg-ccard, .cg-dhead, .cg-cc { border-color: color-mix(in srgb, var(--k, #6fb9bb) 38%, rgba(255,255,255,.08)); }

/* icon badge */
.cg-badge {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: .85rem;
  color: var(--k, #6fb9bb); background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1); border: 1px solid color-mix(in srgb, var(--k, #6fb9bb) 30%, rgba(255,255,255,.08));
}
.cg-badge-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 1.15rem; }

/* buttons (glass) */
.cg-gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: .45rem .9rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: rgba(235,246,247,.94);
  font: 600 .84rem/1.2 var(--font-head); cursor: pointer; text-align: center; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s; -webkit-tap-highlight-color: transparent;
}
.cg-gbtn i { font-size: .78rem; }
.cg-gbtn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: #fff; }
.cg-gbtn.is-primary { background: rgba(18,146,152,.3); border-color: rgba(77,192,197,.62); color: #fff; }
.cg-gbtn.is-primary:hover { background: rgba(18,146,152,.48); }
.cg-gbtn:active { transform: scale(.98); }
.cg-gbtn:focus-visible, .cg-chip-btn:focus-visible, .cg-ccard:focus-visible { outline: 2px solid rgba(191,233,235,.9); outline-offset: 2px; }

/* chips + pills: outlined, neutral */
.cg-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .26rem .55rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: rgba(226,240,242,.9);
  font: 500 .78rem/1.3 var(--font-body);
}
.cg-pill i { color: #6fb9bb; font-size: .72rem; }
.cg-chip-exam { border-color: rgba(200,180,142,.45); }
.cg-chip-exam i { color: #c8b48e; }
.cg-chiprow { display: flex; flex-wrap: wrap; gap: .45rem; }
.cg-chip-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem .75rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.03); color: rgba(226,240,242,.9);
  font: 500 .82rem/1.2 var(--font-body); cursor: pointer; text-align: left;
  transition: background .25s, border-color .25s, color .25s; -webkit-tap-highlight-color: transparent;
}
.cg-chip-btn i { color: #6fb9bb; font-size: .78rem; }
.cg-chip-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.26); color: #fff; }
.cg-chipcount {
  min-width: 22px; padding: .08rem .35rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.16);
  font: 600 .68rem/1.2 var(--font-body); font-variant-numeric: tabular-nums; color: rgba(226,240,242,.75); text-align: center;
}

/* slim glass bar (search / detail top bar), mirrors the tree crumb bar */
.cg-bar {
  display: flex; align-items: center; gap: .5rem; min-width: 0;
  padding: .3rem .35rem .3rem .75rem; border-radius: 14px;
  background: rgba(2,26,32,.62); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -12px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .25s, box-shadow .25s;
}

/* messages + skeletons */
.cg-msg { text-align: center; padding: 2rem 1.2rem; }
.cg-msg .cg-badge { margin: 0 auto .7rem; }
.cg-msg h3 { margin: 0 0 .3rem; font: 600 1.1rem/1.3 var(--font-head); }
.cg-msg p { color: rgba(214,231,234,.8); margin: 0 auto 1rem; max-width: 52ch; }
.cg-skel { position: relative; overflow: hidden; border-radius: 14px; min-height: 92px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.cg-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: cgShimmer 1.6s infinite; }
@keyframes cgShimmer { to { transform: translateX(100%); } }
.cg-hide-sm { display: none; }
@media (min-width: 640px) { .cg-hide-sm { display: inline; } }

/* =========================== CAREER TREE ==================================
   Full-bleed stage: a glass "world" (cards + SVG connectors) panned/zoomed by JS
   over the site hero's Three.js aurora cloud. Mobile-first; [data-size]
   (sm|md|lg) and [data-sheet] (bottom|side) are set on .ct-stage by career.js. */
.ct-panel { position: relative; }
.ct-panel:focus-visible { outline-offset: -3px; border-radius: 0; }
.ct { position: relative; min-width: 0; }
/* muted, desaturated kind tones (match KIND_HEX in career.js) */
.ct-k-stage   { --k: #6fb9bb; }
.ct-k-stream  { --k: #7fc1cc; }
.ct-k-degree  { --k: #93a9cc; }
.ct-k-diploma { --k: #9cb89a; }
.ct-k-pg      { --k: #a8a3c6; }
.ct-k-exam    { --k: #c8b48e; }
.ct-k-job     { --k: #d0a85a; }
.ct-k-other   { --k: #9aabb0; }

/* stage: edge-to-edge, fills the screen below the sticky nav + tab bar ------------ */
.ct-stage {
  --ct-chrome: calc(var(--nav-h, 64px) + 84px);
  overflow: hidden; overflow: clip;
  height: calc(100vh - var(--ct-chrome) - var(--ct-gut)); height: calc(100svh - var(--ct-chrome) - var(--ct-gut)); min-height: 480px;
  background:
    radial-gradient(120% 70% at 50% 0%, #03323a 0%, rgba(3,50,58,0) 60%),
    linear-gradient(180deg, #001d23 0%, #00161b 55%, #000f13 100%);
}
.ct-stage::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,8,10,.55) 100%);
}
.ct-stage[hidden] { display: none; }

/* static fallback (no WebGL / reduced motion): a still teal cloud wash */
.ct-fallback { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; transition: opacity .8s; }
.ct-fallback::before {
  content: ""; position: absolute; inset: -10%; filter: blur(30px);
  background:
    radial-gradient(40% 35% at 22% 30%, rgba(16,128,135,.55), transparent 70%),
    radial-gradient(45% 40% at 75% 22%, rgba(12,104,110,.45), transparent 70%),
    radial-gradient(50% 40% at 60% 75%, rgba(20,140,146,.35), transparent 70%),
    radial-gradient(35% 30% at 15% 80%, rgba(8,90,96,.4), transparent 70%);
}
.ct-stage.has-gl .ct-fallback { opacity: 0; }
.ct-gl { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ct-canvas { display: block; width: 100%; height: 100%; opacity: 0; animation: ctFade 1.2s .1s ease forwards; }
@keyframes ctFade { to { opacity: 1; } }

/* overlay: breadcrumb bar ----------------------------------------------------------- */
.ct-bar {
  position: absolute; z-index: 7; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: .5rem; min-width: 0;
  padding: .3rem .35rem .3rem .45rem; border-radius: 14px;
  background: rgba(2,26,32,.62); border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -12px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
@media (min-width: 768px) { .ct-bar { top: 16px; left: 24px; right: 24px; } }
.ct-crumbs-wrap { flex: 1 1 auto; min-width: 0; }
.ct-crumbs {
  list-style: none; margin: 0; padding: .1rem 0; display: flex; align-items: center;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ct-crumbs::-webkit-scrollbar { display: none; }
.ct-crumbs > li { display: flex; align-items: center; flex: none; }
.ct-crumbs > li + li::before {
  content: "\f054"; font: 900 .55rem/1 "Font Awesome 6 Free"; color: rgba(255,255,255,.3); margin: 0 .35rem;
}
.ct-crumb {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; max-width: 200px;
  padding: .25rem .6rem; border-radius: 9px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; background: transparent; color: rgba(226,240,242,.78);
  font: 500 .78rem/1.2 var(--font-body); transition: background .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.ct-crumb i { font-size: .7rem; color: var(--k); opacity: .9; }
.ct-crumb span { overflow: hidden; text-overflow: ellipsis; }
.ct-crumb.is-group span { font-style: normal; }
.ct-crumb:hover { background: rgba(255,255,255,.06); color: #fff; }
.ct-crumb[aria-current="step"] { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); font-weight: 600; }
.ct-reset {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .25rem .7rem;
  border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(235,246,247,.9);
  font: 500 .78rem/1 var(--font-body); cursor: pointer; transition: background .25s, opacity .25s, border-color .25s;
}
.ct-reset i { font-size: .72rem; }
.ct-reset:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.ct-reset:disabled { opacity: .4; cursor: default; }
@media (max-width: 399px) { .ct-reset span { display: none; } .ct-reset { width: 34px; padding: 0; justify-content: center; } }

/* viewport / world ------------------------------------------------------------------ */
.ct-viewport {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; overflow: clip; touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.ct-stage.is-dragging .ct-viewport { cursor: grabbing; }
.ct-tilt { position: absolute; inset: 0; transform-origin: 50% 40%; }
.ct-world { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; opacity: 0; transition: opacity .5s; }
.ct-stage.is-ready .ct-world { opacity: 1; }
.ct-links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.ct-nodes { position: absolute; left: 0; top: 0; }
.ct-edge { fill: none; stroke-width: 1.25; stroke-linecap: round; opacity: .38; transition: opacity .4s, stroke-width .4s; }
.ct-edge.is-active { stroke-width: 1.6; opacity: .95; }
.ct-dot { fill: url(#ctDot); }
.ct-flow { animation: ctFade .8s .8s both; opacity: 0; }

/* node cards ------------------------------------------------------------------------ */
.ct-node { position: absolute; left: 0; top: 0; will-change: transform; }
.ct-node.is-leaving { pointer-events: none; }
.ct-card {
  position: relative; display: flex; align-items: center; gap: .65rem; width: 100%; height: 100%;
  padding: .55rem .6rem .55rem .7rem; border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left;
  color: #fff; font: inherit; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 40%), rgba(4,30,37,.78);
  border: 1px solid rgba(255,255,255,.16);
  border: 1px solid color-mix(in srgb, var(--k) 55%, rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35), 0 10px 24px -10px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s, border-color .35s, background .35s, opacity .35s;
}
.ct-card::before { /* thin kind accent line */
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--k); opacity: .9; z-index: 1;
}
/* branch colour family: a soft wash of the card's colour (--k is set per card by career.js) */
.ct-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--k) 22%, transparent) 0%, color-mix(in srgb, var(--k) 7%, transparent) 55%, transparent 85%);
}
.ct-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .ct-card:hover { border-color: color-mix(in srgb, var(--k) 70%, rgba(255,255,255,.2)); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%), rgba(6,36,44,.84); }
}
.ct-card:active { transform: scale(.985); }
.ct-card:focus-visible { outline: 2px solid rgba(191,233,235,.9); outline-offset: 2px; }
.ct-ico {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: .85rem;
  color: var(--k); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  background: color-mix(in srgb, var(--k) 16%, rgba(255,255,255,.02));
  border-color: color-mix(in srgb, var(--k) 38%, transparent);
}
.ct-txt { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ct-meta { display: flex; align-items: baseline; gap: .45rem; min-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-body); }
.ct-tag { flex: none; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--k); }
.ct-dur { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; color: rgba(214,231,234,.72); }
.ct-title {
  font: 600 .9rem/1.2 var(--font-head); color: #f3fafb; letter-spacing: .005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.ct-side { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; }
.ct-count {
  min-width: 24px; height: 20px; padding: 0 .4rem; border-radius: 6px; display: grid; place-items: center;
  font: 600 .68rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: rgba(226,240,242,.82);
  border: 1px solid rgba(255,255,255,.16); background: transparent;
}
.ct-chev { position: relative; width: 12px; height: 12px; margin-right: 6px; }
.ct-chev::before, .ct-chev::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 5px; height: 1.5px; border-radius: 2px; background: rgba(226,240,242,.6);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.ct-chev::after { transform: rotate(90deg); }
.ct-node.is-open .ct-chev::after { transform: rotate(0deg); }
.ct-loopmark { display: none; font: 600 .6rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(226,240,242,.7); }
.ct-dest { font: 600 .58rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #d0a85a; white-space: nowrap; }
.ct-meta .ct-dest { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-job .ct-side { display: none; } /* destinations have no children */

/* states: active path raised, siblings recede */
.ct-node.is-path .ct-card {
  border-color: rgba(255,255,255,.28);
  border-color: color-mix(in srgb, var(--k) 80%, rgba(255,255,255,.25));
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%), rgba(6,40,48,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 4px rgba(0,0,0,.35), 0 22px 40px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(111,185,187,.08);
  transform: translateY(-2px);
}
.ct-node.is-path .ct-card::before { opacity: 1; top: 8px; bottom: 8px; }
.ct-node.is-sel .ct-card { border-color: rgba(191,233,235,.34); }
.ct-node.is-dim .ct-card { opacity: .7; }
.ct-node.is-dim .ct-card:hover, .ct-node.is-dim .ct-card:focus-visible { opacity: 1; }
.ct-node.is-loop .ct-card { border-style: dashed; }
.ct-node.is-loop .ct-loopmark { display: block; }
.ct-node.is-loop .ct-count, .ct-node.is-loop .ct-chev { display: none; }

/* groups: clean stacked edges */
.ct-group::before, .ct-group::after { /* only the lower edges peek out below the card */
  content: ""; position: absolute; z-index: -1; height: 7px; border-radius: 0 0 10px 10px; pointer-events: none;
  border: 1px solid rgba(255,255,255,.1); border-top: 0; background: rgba(4,30,37,.6);
}
.ct-group::before { left: 7px; right: 7px; bottom: -5px; }
.ct-group::after { left: 15px; right: 15px; bottom: -10px; opacity: .55; }

/* jobs = destinations: understated muted-gold accent */
.ct-job .ct-card::before { background: #d0a85a; opacity: 1; }
.ct-job .ct-card { border-color: rgba(208,168,90,.22); }

/* root + start tip */
.ct-root .ct-card { border-color: rgba(111,185,187,.3); }
.ct-tip {
  position: absolute; left: 0; top: 0; display: flex; justify-content: center; align-items: center; gap: .45rem;
  font: 500 .78rem/1 var(--font-body); color: rgba(214,231,234,.75); pointer-events: none; opacity: 0; transition: opacity .6s;
}
.ct-tip i { font-size: .75rem; color: #6fb9bb; }
.ct-tip.is-on { opacity: 1; }

/* sizes */
.ct-stage[data-size="sm"] .ct-title { font-size: .86rem; }
.ct-stage[data-size="lg"] .ct-ico { width: 38px; height: 38px; font-size: .95rem; }
.ct-stage[data-size="lg"] .ct-title { font-size: .95rem; }
.ct-stage[data-size="lg"] .ct-card { padding-left: .8rem; gap: .75rem; }

/* overlay UI: controls, hint, loader ------------------------------------------------ */
.ct-ctrls { position: absolute; z-index: 6; top: 64px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.ct-stage:not([data-size="sm"]) .ct-ctrls { top: auto; right: auto; left: 24px; bottom: 24px; }
.ct-ctrl {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: rgba(235,246,247,.88); font-size: .78rem;
  background: rgba(2,26,32,.62); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px -10px rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s, color .25s; -webkit-tap-highlight-color: transparent;
}
.ct-ctrl:hover { background: rgba(20,60,68,.8); border-color: rgba(255,255,255,.22); color: #fff; }
.ct-ctrl:active { transform: scale(.95); }
.ct-ctrl:focus-visible, .ct-crumb:focus-visible, .ct-reset:focus-visible, .ct-icbtn:focus-visible { outline: 2px solid rgba(191,233,235,.9); outline-offset: 2px; }
.ct-hint {
  position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; pointer-events: none;
  white-space: nowrap; font: 500 .7rem/1 var(--font-body); letter-spacing: .02em; color: rgba(214,231,234,.6); transition: opacity .6s;
}
@media (max-width: 479px) { .ct-hint { display: none; } }
.ct-stage.is-touched .ct-hint { opacity: 0; }
.ct-loading {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: .8rem;
  color: rgba(214,231,234,.7); font: 500 .85rem/1 var(--font-body);
}
.ct-loading[hidden] { display: none; }
.ct-loading-orb { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(111,185,187,.18); border-top-color: #6fb9bb; animation: ctSpin .9s linear infinite; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* detail sheet: bottom sheet (phones) / right drawer (wide) ----------------------------- */
.ct-sheet {
  --peek: 84px;
  position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; max-height: 72%;
  display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden; color: var(--t-body);
  background: rgba(3,28,34,.9); border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
  box-shadow: 0 -18px 40px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transform: translateY(calc(100% + 14px)); visibility: hidden;
  transition: transform .5s cubic-bezier(.16,1,.3,1), visibility 0s linear .5s;
}
.ct-sheet[data-state="peek"] { transform: translateY(calc(100% - var(--peek))); visibility: visible; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ct-sheet[data-state="open"] { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ct-sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--k, #6fb9bb); opacity: .8; }
.ct-stage[data-sheet="side"] .ct-sheet {
  left: auto; top: 76px; right: 24px; bottom: 24px; width: 370px; max-height: none; border-radius: 14px; border-bottom: 1px solid rgba(255,255,255,.1);
  transform: translateX(calc(100% + 30px));
}
.ct-stage[data-sheet="side"] .ct-sheet[data-state="open"], .ct-stage[data-sheet="side"] .ct-sheet[data-state="peek"] { transform: none; }
.ct-sheet-head {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  padding: 1rem .7rem .8rem 1rem; touch-action: none; cursor: grab;
}
.ct-stage[data-sheet="side"] .ct-sheet-head { cursor: default; touch-action: auto; padding-top: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: .8rem; }
.ct-grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: rgba(255,255,255,.22); }
.ct-stage[data-sheet="side"] .ct-grab, .ct-stage[data-sheet="side"] .ct-sheet-tog { display: none; }
.ct-sheet-tb { min-width: 0; display: grid; gap: .3rem; }
.ct-sheet h3 { margin: 0; font: 600 1.05rem/1.25 var(--font-head); color: #fff; overflow-wrap: anywhere; }
.ct-sheet h3:focus { outline: none; }
.ct-sheet-btns { display: flex; gap: 4px; align-self: start; }
.ct-icbtn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; cursor: pointer; color: rgba(235,246,247,.85); font-size: .8rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); transition: background .25s;
}
.ct-icbtn:hover { background: rgba(255,255,255,.1); }
.ct-sheet-tog i { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.ct-sheet-tog[aria-expanded="true"] i { transform: rotate(180deg); }
.ct-sheet-body {
  display: grid; gap: .7rem; align-content: start; padding: 0 1rem 1.1rem; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y; min-height: 0; transition: opacity .35s;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.ct-sheet[data-state="peek"] .ct-sheet-body { opacity: 0; }
.ct-stage[data-sheet="side"] .ct-sheet .ct-sheet-body { opacity: 1; }
.ct-sum { margin: 0; font-size: .93rem; line-height: 1.55; color: rgba(226,240,242,.9); }
.ct-next { justify-self: start; }
.ct-sheet .cg-chip-btn i { color: #6fb9bb; font-size: .78rem; }
.cg-box { border-radius: 12px; padding: .8rem .9rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.cg-box p { margin: 0; color: var(--t-body); font-size: .9rem; }
.cg-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cg-ticks li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--t-body); }
.cg-ticks li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #6fb9bb; }

/* no backdrop-filter support: keep text readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ct-card, .ct-bar, .ct-ctrl { background: rgba(4,30,37,.97); }
  .ct-sheet { background: rgba(2,24,29,.98); }
}

/* ========================= CAREER ROADMAP (internal id: target) ============= */
.cg-searchbar { width: 100%; }
.cg-searchbar > i { color: #6fb9bb; font-size: .85rem; }
.cg-searchbar:focus-within { border-color: rgba(77,192,197,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 3px rgba(77,192,197,.18); }
.cg-searchbar input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; color: #fff; font-family: var(--font-body); font-size: 16px; outline: none; }
.cg-searchbar input::placeholder { color: rgba(214,231,234,.58); }
.cg-searchbar input::-webkit-search-cancel-button { filter: invert(1); }
.cg-count {
  flex: none; padding: .22rem .55rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
  font: 600 .72rem/1.2 var(--font-body); font-variant-numeric: tabular-nums; color: rgba(226,240,242,.78); white-space: nowrap;
}
.cg-count:empty { display: none; }
.cg-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .8rem .05rem .9rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cg-chips::-webkit-scrollbar { display: none; }
.cg-chips .cg-chip-btn { flex: none; white-space: nowrap; }
.cg-chips .cg-chip-btn[aria-pressed="true"] { background: rgba(111,185,187,.16); border-color: rgba(111,185,187,.7); color: #fff; }
.cg-chips .cg-chip-btn[aria-pressed="true"] .cg-chipcount { border-color: rgba(111,185,187,.6); color: #fff; }
@media (min-width: 768px) {
  /* filters fill the full row width in an even grid instead of a ragged wrap */
  .cg-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
  .cg-chips .cg-chip-btn { width: 100%; justify-content: space-between; white-space: normal; line-height: 1.2; }
  .cg-chips .cg-chipcount { flex: none; }
}
@media (min-width: 1200px) { .cg-chips { grid-template-columns: repeat(7, minmax(0, 1fr)); } } /* All + 13 filters = 2 full rows */

.cg-grid { display: grid; gap: .75rem; }
@media (min-width: 560px) { .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cg-ccard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: start; width: 100%; min-height: 92px;
  padding: .9rem .85rem .9rem 1rem; overflow: hidden; text-align: left; cursor: pointer; font: inherit;
  transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s; -webkit-tap-highlight-color: transparent;
}
.cg-ccard::before, .cg-dhead::before { /* thin tone accent line, like the tree cards */
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 0 2px 2px 0; background: var(--k, #6fb9bb); opacity: .8;
}
.cg-ccard-tx { display: grid; gap: 3px; min-width: 0; }
.cg-cat { font: 600 .62rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--k, #6fb9bb); }
.cg-ccard b { font: 600 1rem/1.25 var(--font-head); color: #f3fafb; overflow-wrap: break-word; }
.cg-ccard small { color: rgba(214,231,234,.76); font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-go { align-self: center; color: rgba(226,240,242,.4); font-size: .75rem; transition: transform .45s cubic-bezier(.16,1,.3,1), color .3s; }
.cg-ccard:active { transform: scale(.985); }
@media (hover: hover) {
  .cg-ccard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--k, #6fb9bb) 70%, rgba(255,255,255,.2)); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%), rgba(6,36,44,.84); }
  .cg-ccard:hover .cg-go { transform: translateX(3px); color: var(--k, #6fb9bb); }
}

/* career detail -------------------------------------------------------------- */
.cg-detail { display: grid; gap: .9rem; } /* full surface width: same edges as the list view */
[data-cg-list][hidden], [data-cg-detail][hidden] { display: none !important; }
.cg-dbar { padding-left: .35rem; }
.cg-dbar-crumb { flex: 1 1 auto; min-width: 0; display: none; align-items: center; gap: .45rem; font: 500 .8rem/1.2 var(--font-body); color: rgba(214,231,234,.7); }
.cg-dbar-crumb i { font-size: .55rem; color: rgba(255,255,255,.3); }
.cg-dbar-t { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-dbar .cg-gbtn.is-primary { margin-left: auto; }
@media (min-width: 560px) { .cg-dbar-crumb { display: inline-flex; } .cg-dbar .cg-gbtn.is-primary { margin-left: 0; } }
.cg-dhead { padding: 1.1rem 1.1rem 1.15rem 1.25rem; overflow: hidden; }
.cg-dhead-top { display: flex; gap: .9rem; align-items: flex-start; }
.cg-dhead h2 { font: 600 clamp(1.4rem, 5.4vw, 2rem)/1.15 var(--font-head); margin: .3rem 0 .25rem; color: #f3fafb; outline: none; }
.cg-dhead .cg-tagline { color: rgba(236,222,196,.92); font-weight: 500; margin: 0; }
.cg-dhead .cg-summary { margin: .9rem 0 0; color: rgba(226,240,242,.9); line-height: 1.6; max-width: 80ch; }
.cg-facts { display: grid; gap: .65rem; }
@media (min-width: 560px) { .cg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cg-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cg-fact { padding: .85rem 1rem; min-width: 0; }
.cg-fact .cg-label { display: flex; align-items: center; gap: .45rem; }
.cg-fact p { margin: 0; color: #fff; font-size: .93rem; overflow-wrap: anywhere; }
.cg-fact p + p { margin-top: .3rem; color: rgba(214,231,234,.78); font-size: .85rem; }
.cg-dcols { display: grid; gap: .9rem; min-width: 0; }
.cg-dcols > div { display: grid; gap: .9rem; align-content: start; min-width: 0; }
@media (min-width: 1024px) { .cg-dcols { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.cg-sec { padding: 1rem 1rem 1.1rem; min-width: 0; }
@media (min-width: 768px) { .cg-sec, .cg-dhead { padding: 1.35rem 1.4rem; } .cg-dhead { padding-left: 1.55rem; } }
.cg-sec > h3 { display: flex; align-items: center; gap: .65rem; font: 600 1.05rem/1.25 var(--font-head); margin: 0 0 .9rem; color: #f3fafb; }
.cg-sec > h3 .cg-badge { width: 32px; height: 32px; border-radius: 9px; font-size: .8rem; }

/* roadmap timeline */
.cg-tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: .8rem; }
.cg-tl::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1.5px; border-radius: 2px; background: linear-gradient(180deg, #6fb9bb, rgba(208,168,90,.8)); opacity: .7; }
.cg-tl > li { position: relative; padding-left: 46px; }
.cg-tl-dot {
  position: absolute; left: 0; top: 4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .8rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: #cfeff0;
  background: #03262d; border: 1.5px solid #6fb9bb; box-shadow: 0 0 0 4px rgba(0,22,27,.9);
}
.cg-tl > li:last-child .cg-tl-dot { border-color: #d0a85a; color: #f0dcb0; }
.cg-tl-card { border-radius: 12px; padding: .8rem .95rem; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); }
.cg-tl-card .cg-label { margin-bottom: .2rem; }
.cg-tl-card h4 { margin: 0 0 .3rem; font: 600 1rem/1.3 var(--font-head); color: #f3fafb; }
.cg-tl-card p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(226,240,242,.88); }
.cg-tl-card .cg-chiprow { margin-top: .6rem; }

/* key exams: cards on mobile, table on desktop */
.cg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.cg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.cg-table tr { display: block; border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); }
.cg-table td { display: block; padding: .18rem 0; color: rgba(226,240,242,.9); overflow-wrap: anywhere; }
.cg-table td::before { content: attr(data-label); display: block; font: 600 .64rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #6fb9bb; }
.cg-table td:first-child { font: 600 .98rem/1.3 var(--font-head); color: #fff; }
.cg-table td:first-child::before { display: none; }
@media (min-width: 900px) {
  .cg-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .cg-table tr { display: table-row; padding: 0; margin: 0; background: none; border: 0; }
  .cg-table td, .cg-table th { display: table-cell; padding: .65rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.08); }
  .cg-table th { font: 600 .66rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #6fb9bb; }
  .cg-table td::before { display: none; }
  .cg-table td:first-child { font-size: .92rem; }
  .cg-table tbody tr:last-child td { border-bottom: 0; }
}

.cg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cg-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: rgba(226,240,242,.9); overflow-wrap: anywhere; min-width: 0; }
.cg-list li > i { color: #6fb9bb; margin-top: .3rem; flex: none; width: 1rem; text-align: center; font-size: .75rem; }
.cg-tips li > i { color: #d0a85a; }
.cg-sources a { color: #a9dfe1; text-decoration: underline; text-decoration-color: rgba(169,223,225,.35); text-underline-offset: 3px; word-break: break-all; }
.cg-sources a:hover { color: #fff; }

/* ============================== AI GUIDANCE ================================= */
.cg-ai { display: grid; gap: .9rem; }
@media (min-width: 1024px) {
  /* two equal-height columns: the chat preview stretches to match the intro card */
  .cg-ai { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; gap: 1.2rem; }
  .cg-ai > .cg-chat { display: flex; flex-direction: column; }
  .cg-ai > .cg-chat > .cg-chat-body { flex: 1 1 auto; }
}
.cg-ai-intro { padding: 1.15rem; }
@media (min-width: 768px) { .cg-ai-intro { padding: 1.6rem; } }
.cg-ai-intro .cg-h2 { margin-top: .9rem; }
.cg-status {
  display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .7rem; border-radius: 8px;
  border: 1px solid rgba(208,168,90,.5); background: rgba(208,168,90,.08); color: #e8cf9a;
  font: 600 .68rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.cg-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d0a85a; animation: cgBreath 2.4s ease-in-out infinite alternate; }
@keyframes cgBreath { from { opacity: .35; } to { opacity: 1; } }
.cg-counsellors { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 420px) { .cg-counsellors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cg-cc { display: flex; align-items: center; gap: .7rem; padding: .75rem .8rem; min-width: 0; }
.cg-cc > span:last-child { min-width: 0; }
.cg-cc b { display: block; font: 600 .92rem/1.25 var(--font-head); color: #fff; }
.cg-cc small { display: block; color: rgba(214,231,234,.75); font-size: .76rem; line-height: 1.35; }
.cg-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.cg-cta .cg-gbtn { flex: 1 1 auto; }
@media (min-width: 560px) { .cg-cta .cg-gbtn { flex: 0 0 auto; } }
.cg-chat { padding: 0; overflow: hidden; }
.cg-chat-head { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.14); }
.cg-chat-head b { display: block; font: 600 .95rem/1.25 var(--font-head); color: #fff; }
.cg-chat-head small { color: rgba(214,231,234,.72); font-size: .76rem; }
.cg-chat-avs { display: flex; }
.cg-chat-avs .cg-badge { width: 30px; height: 30px; font-size: .7rem; margin-left: -6px; background: #03262d; }
.cg-chat-avs .cg-badge:first-child { margin-left: 0; }
.cg-chat-body { display: grid; gap: .7rem; padding: 1rem; min-height: 220px; align-content: start; }
.cg-bubble { max-width: 88%; padding: .65rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.cg-me { justify-self: end; background: rgba(18,146,152,.32); border: 1px solid rgba(77,192,197,.42); color: #fff; border-bottom-right-radius: 4px; }
.cg-bot { justify-self: start; display: flex; gap: .55rem; align-items: flex-end; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: rgba(226,240,242,.92); border-bottom-left-radius: 4px; }
.cg-bot .cg-badge { width: 28px; height: 28px; font-size: .68rem; border-radius: 8px; }
.cg-typing { display: inline-flex; gap: 4px; padding: .35rem 0; }
.cg-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(226,240,242,.8); animation: cgBreath .9s ease-in-out infinite alternate; }
.cg-typing i:nth-child(2) { animation-delay: .3s; } .cg-typing i:nth-child(3) { animation-delay: .6s; }
.cg-chat-input { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.cg-chat-input input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.2); color: #fff; padding: 0 .9rem; font-size: 16px; font-family: var(--font-body); cursor: not-allowed; }
.cg-chat-input input::placeholder { color: rgba(214,231,234,.55); }
.cg-chat-input button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: rgba(255,255,255,.5); cursor: not-allowed; flex: none; }

/* no backdrop-filter support: keep text readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cg-ccard, .cg-dhead, .cg-fact, .cg-sec, .cg-msg, .cg-ai-intro, .cg-chat, .cg-cc, .cg-bar { background: rgba(4,30,37,.97); }
}

/* entry animation (CSS fallback when GSAP isn't on the page) ------------------ */
.cg-in { animation: cgIn .5s var(--cg-ease) both; }
@keyframes cgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .cg-stage { padding-bottom: 4.5rem; }
}

/* reduced motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cg-blob, .cg-skel::after, .cg-status-dot, .cg-typing i, .cg-in,
  .ct-canvas, .ct-flow, .ct-loading-orb { animation: none !important; }
  .ct-canvas, .ct-flow { opacity: 1; }
  .cg-tab-ind, .cg-ccard, .cg-go, .cg-chip-btn, .cg-gbtn, .ct-card, .ct-crumb, .ct-sheet, .ct-world, .ct-chev::before, .ct-chev::after { transition: none !important; }
}

/* ---- full screen (projector mode) --------------------------------------------------------
   Native :fullscreen on the tree stage, or the .is-fs-fallback overlay where the Fullscreen API
   is unavailable. The stage fills the whole screen; the frame becomes a hairline inset. */
.ct-stage:fullscreen, .ct-stage.is-fs-fallback {
  width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; border: 0;
  box-shadow: inset 0 0 0 1.5px rgba(77,192,197,.5), inset 0 0 80px rgba(18,146,152,.16);
}
.ct-stage:-webkit-full-screen { width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; border: 0; }
.ct-stage.is-fs-fallback { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; }
.ct-stage:fullscreen::before, .ct-stage.is-fs-fallback::before { border-radius: 12px; }
.ct-stage::backdrop { background: #001d23; }
html.ct-fs-lock, html.ct-fs-lock body { overflow: hidden; }
/* #cgApp isolates its own stacking context; lift it while the overlay is up so the stage's
   z-index sits above the site header and page banner. */
html.ct-fs-lock #cgApp { isolation: auto; }
.ct-ctrl[aria-pressed="true"] { color: #fff; border-color: rgba(111,185,187,.7); background: rgba(18,146,152,.35); }
