/* Views — layout for each place in the sky. */

.muted { color: var(--ink-soft); }
.footer__in { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

/* ═══ Sky ═══════════════════════════════════════════════════ */
.hero { position: relative; padding: var(--s8) 0 var(--s4); overflow: hidden; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s7); align-items: end; }
.hero__title { font-size: var(--t8); max-width: 12ch; margin: var(--s3) 0 var(--s5); }
.hero__title:focus { outline: none; }
.hero__lede { padding: var(--s5) var(--s6); max-width: 54ch; font-size: var(--t5); line-height: 1.55; color: var(--ink); }

/* The nebula glow: all six hues, breathing, behind the hero only. */
.hero__glow { position: absolute; inset: -10% -5% 0; pointer-events: none; filter: blur(30px); }
.hero__glow span { position: absolute; border-radius: 50%; animation: breathe 20s var(--ease-in-out) infinite; }
.hero__glow span:nth-child(1) { left: 42%; top: 0;   width: 46vw; height: 32vw; background: radial-gradient(closest-side, var(--aqua-tint), transparent); }
.hero__glow span:nth-child(2) { left: 64%; top: 18%; width: 34vw; height: 26vw; background: radial-gradient(closest-side, var(--peri-tint), transparent); animation-delay: -6s; }
.hero__glow span:nth-child(3) { left: 30%; top: 30%; width: 30vw; height: 22vw; background: radial-gradient(closest-side, var(--moss-tint), transparent); animation-delay: -12s; }
.hero__glow span:nth-child(4) { left: 78%; top: 52%; width: 22vw; height: 18vw; background: radial-gradient(closest-side, var(--you-tint), transparent); animation-delay: -3s; }

/* First visit: a shooting star crosses and settles. */
.shooting-star {
  position: absolute; left: 10%; top: 12%; z-index: 2; pointer-events: none;
  width: 180px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--aqua) 50%, var(--you));
  transform-origin: 100% 50%;
  animation: shoot 1.8s var(--ease-out) .4s both;
}
.shooting-star::after {
  content: ""; position: absolute; right: -7px; top: -6px; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, var(--you) 31% 50%, transparent 72%);
}

.resume { padding: var(--s5); display: grid; gap: var(--s3); align-self: end; --h-tint: var(--you-tint); }
.resume__meta { font-size: var(--t2); color: var(--ink-soft); }

.clouds { display: grid; gap: var(--s2); }
/* One quiet row per industry (plan 06, option E): it sits back into the page. Name · faint stars ·
   what's inside. The stars have their own space between the two, so none ever lands on text. */
.cloud {
  position: relative; display: flex; align-items: center; gap: var(--s4);
  height: 64px; padding: 0 var(--s5); overflow: hidden; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 0 14px;
  background-color: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: border-color var(--t-quick), background-color var(--t-quick);
}
.cloud--live::before {  /* the glow breathes */
  content: ""; position: absolute; inset: -10%; background: var(--glow); filter: blur(12px); animation: breathe 16s var(--ease-in-out) infinite;
}
.cloud > * { position: relative; }
.cloud--live:hover { border-color: var(--rule-firm); background-color: color-mix(in srgb, var(--surface) 80%, transparent); }
.cloud__name { flex: none; color: var(--ink-strong); font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-size: var(--t6); font-weight: 560; }
.cloud__meta { flex: none; font-size: var(--t1); font-weight: 600; color: var(--ink); }  /* ink, not ink-soft: it sits on the glow (plan 06) */
.cloud__stars { position: relative; flex: 1; align-self: stretch; min-width: 0; }
.cloud__stars > span { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); line-height: 0; }
/* Faint by default; yours a little brighter, and pink still means yours. */
.cloud__stars .star { width: var(--size, 7px); height: var(--size, 7px); opacity: var(--o, .32); filter: none; }
.cloud__stars .is-visited .star { opacity: .6; filter: none; }
.cloud__stars .is-starred .star { opacity: .75; filter: none; }
.cloud--live:hover .cloud__stars .star { opacity: .7; transform: scale(1.15); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 520px) {
  .hero { padding-top: var(--s6); }
  .hero__lede { padding: var(--s4); font-size: var(--t4); }
}

/* ═══ Industry ══════════════════════════════════════════════ */
.ind-hero { position: relative; padding: var(--s7) 0 var(--s5); }
.ind-hero__in { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: end; }
.ind-hero__title { font-size: var(--t8); margin: var(--s2) 0 var(--s3); width: fit-content; }
.ind-hero__title:focus { outline: none; }
.ind-hero__summary { max-width: 58ch; font-size: var(--t5); line-height: 1.55; }
.ind-stats { display: flex; gap: var(--s3); margin: 0; }
.ind-stats > div { padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: 0 14px; min-width: 96px; }
.ind-stats dt { font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ind-stats dd { margin: 2px 0 0; font-size: var(--t6); font-weight: 650; color: var(--ink-strong); }
.ind-stats dd small { font-size: var(--t2); color: var(--ink-soft); font-weight: 500; }
.ind-stats__you { border-color: var(--you) !important; }
.progress { display: block; height: 6px; border-radius: var(--pill); background: var(--you-tint); margin-top: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--you); border-radius: inherit; }

.axis--legend { margin-bottom: var(--s5); padding-top: 0; }
.segcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.segcol__head { padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 2px solid var(--h); }
.segcol__head p { font-size: var(--t2); color: var(--ink-soft); margin-top: var(--s2); line-height: 1.45; min-height: 3em; }
.segcol__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.segcol .card { font-size: var(--t2); }
.rung { display: block; font-size: var(--t1); font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.rung--years { display: flex; align-items: center; gap: 4px; }
.rung--years i { font-size: 13px; }
@media (max-width: 1080px) { .segcols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .ind-hero__in { grid-template-columns: 1fr; }
  .ind-stats { flex-wrap: wrap; }
  .segcols { grid-template-columns: 1fr; gap: var(--s6); }
  .segcol__head p { min-height: 0; }
}

/* ═══ Shared view head ══════════════════════════════════════ */
.view-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; padding: var(--s7) 0 var(--s5); }
.view-head h1 { font-size: clamp(36px, 5vw, 56px); margin: var(--s2) 0 var(--s3); }
.view-head h1:focus { outline: none; }
.view-head__lede { max-width: 56ch; font-size: var(--t4); }

/* ═══ Career map ════════════════════════════════════════════ */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s4); margin-top: var(--s5); }
.mapbox { padding: var(--s4); border-color: var(--rule-firm); }
/* Sized to the screen: the whole ladder, rung 1 to 6, fits in view below the header. */
.mapchart { height: clamp(420px, calc(100vh - var(--chrome-h) - 240px), 640px); }
.maplegend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: var(--s3) var(--s2) 0; font-size: var(--t1); font-weight: 600; color: var(--ink-soft); }
.maplegend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg .star { width: 14px; height: 14px; opacity: 1; }
.lg--dim .star { color: var(--aqua-tint); stroke: var(--aqua); stroke-width: 1.5px; }
.lg--lit .star { color: var(--aqua); }
.lg--you .star { color: var(--you); }
.lg-line { width: 22px; height: 2px; background: var(--aqua); border-radius: 2px; }
.lg-line--dash { background: repeating-linear-gradient(90deg, var(--rule-firm) 0 4px, transparent 4px 8px); }
.mapaxis { margin: var(--s2) 24px 0 64px; padding-top: 0; }
.mapsel { padding: var(--s5); align-self: start; position: sticky; top: calc(var(--chrome-h) + var(--s4)); display: grid; gap: var(--s3); }
.mapsel__title { font-family: var(--display); font-size: var(--t6); }
.mapsel__hint { color: var(--ink-soft); font-size: var(--t3); }
.mapsel__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: 0; }
.mapsel__stats div { padding: var(--s2) var(--s3); background: var(--field); border-radius: 0 10px; }
.mapsel__stats dt { font-size: var(--t1); color: var(--ink-soft); font-weight: 600; }
.mapsel__stats dd { margin: 0; font-size: var(--t6); font-weight: 650; color: var(--ink-strong); }
@media (max-width: 900px) {
  .mapwrap { grid-template-columns: 1fr; }
  .mapsel { position: static; }
  .mapchart { height: 480px; min-height: 0; }
  .mapaxis { margin-left: 16px; }
}

.maplist { margin-top: var(--s5); display: grid; gap: var(--s6); }
.maplist h3 { margin-bottom: var(--s3); }
.roletable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 0 var(--petal); overflow: hidden; font-size: var(--t2); }
.roletable th, .roletable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.roletable thead th { font-size: var(--t1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); background: var(--field); }
.roletable tbody tr:last-child > * { border-bottom: 0; }
.roletable tbody th a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink-strong); font-weight: 600; text-decoration: none; }
.roletable tbody th a:hover { text-decoration: underline; }
.minimeter { --pos: 50%; position: relative; display: block; width: 110px; height: 6px; border-radius: var(--pill); background: var(--terrain); }
.minimeter::after { content: ""; position: absolute; left: var(--pos); top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--surface); border: 3px solid var(--ink-strong); }
@media (max-width: 720px) {
  .roletable thead { display: none; }
  .roletable tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
  .roletable th, .roletable td { border: 0; padding: 4px 14px; }
  .roletable td:nth-of-type(3), .roletable td:nth-of-type(4) { grid-column: 1 / -1; }
}

/* ═══ Role ══════════════════════════════════════════════════ */
.role-hero { position: relative; padding: var(--s7) 0 var(--s5); overflow-x: clip; }
.role-hero::before {  /* the role's band, as a glow behind its star */
  content: ""; position: absolute; left: 0; top: 0; width: 520px; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, var(--h-tint), transparent); filter: blur(10px); opacity: .9;
}
.role-hero__in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s6); align-items: center; }
.role-hero__star { width: 112px; height: 112px; display: grid; place-items: center; }
.role-hero__star .star { width: 100%; height: 100%; opacity: 1; color: var(--h); filter: drop-shadow(0 0 14px var(--h-tint)); }
.role-hero__star.is-starred .star { color: var(--you); filter: drop-shadow(0 0 16px var(--you-tint)); }
.role-hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: var(--s3) 0 var(--s4); }
.role-hero h1:focus { outline: none; }
.role-hero__axis { max-width: 460px; }
.role-hero__star-btn { align-self: start; margin-top: var(--s5); }
/* Phone-only: Star at the end of the chip row, and a jump to your note. Hidden on desktop. */
.role-hero__star-mini, .role-hero__notejump { display: none; }
.role-hero__star-mini {
  margin-left: auto; width: 40px; height: 36px; place-items: center; cursor: pointer;
  border: 1px solid var(--you); border-radius: var(--pill); background: var(--surface); color: var(--you-deep); font-size: 18px;
}
.role-hero__star-mini[aria-pressed="true"] { background: var(--you-deep); border-color: var(--you-deep); color: var(--on-action); }
.role-hero__notejump { align-items: center; gap: 6px; margin-top: var(--s2); font-size: var(--t2); text-decoration: none; }
@media (max-width: 760px) {
  .role-hero__in { grid-template-columns: 1fr; gap: var(--s4); }
  .role-hero__star { width: 72px; height: 72px; }
  .role-hero__star-btn { display: none; }  /* phone: Star moves into the chip row (plan 03 §3 #2c) */
  .role-hero__star-mini { display: inline-grid; }
  .role-hero__notejump { display: inline-flex; }
}

.climb__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.ladder { position: relative; display: grid; gap: var(--s4); padding-left: var(--s6); }
.ladder::before {  /* the rail: terrain-coloured, running up the ladder */
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(0deg, var(--rule-firm), var(--h, var(--aqua)));
}
.ladder__group ul, .sideways ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.ladder__group .eyebrow, .sideways .eyebrow { display: flex; align-items: center; gap: 6px; }
.ladder__empty { font-size: var(--t3); color: var(--ink-soft); padding: var(--s3) 0; }
.ladder__here {
  position: relative; display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5); border-radius: 0 var(--petal);
  background: var(--you-tint); border: 2px solid var(--you);
}
.ladder__here::before {  /* the rung you stand on, joining the rail */
  content: ""; position: absolute; left: calc(-1 * var(--s6) + 10px); top: 50%; width: calc(var(--s6) - 10px); height: 3px; background: var(--you);
}
.ladder__here svg { width: 26px; height: 26px; color: var(--you-deep); flex: none; animation: you-glow 2.4s var(--ease-in-out) infinite; }
.ladder__here small { display: block; font-size: var(--t1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--you-deep); }
.ladder__here b { font-size: var(--t5); color: var(--ink-strong); }
.rungcard { font-size: var(--t3); }
.sideways { padding: var(--s4); border: 1px dashed var(--rule-firm); border-radius: 0 var(--petal); background: var(--surface); }
@media (max-width: 860px) { .climb__grid { grid-template-columns: 1fr; } }

.notes { padding: var(--s5); --h-tint: var(--you-tint); }
.notes label { display: flex; align-items: center; gap: 6px; color: var(--you-deep); }
.notes label i { font-size: 18px; }
.notes textarea:focus { border-color: var(--you-deep); }
.notes__status { font-size: var(--t1); color: var(--ink-soft); min-height: 1.4em; margin-top: var(--s2); }

/* ═══ Paths ═════════════════════════════════════════════════ */
/* The picker's list opens past the card's edge, so the card neither clips it nor sits under what follows. */
.planner { padding: var(--s5) var(--s6) var(--s6); border-color: var(--rule-firm); overflow: visible; z-index: 2; }
.planner__title { display: flex; align-items: center; gap: var(--s2); font-size: var(--t6); margin-bottom: var(--s4); }
.planner__title i { color: var(--action); }
.planner__form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s3); align-items: end; }

/* The role picker (plan 03 §2): reachable roles carry their team's star; the rest are dimmed by
   colour, not opacity (ink-soft holds 5.02:1), and name their reason only on hover. */
.picker { position: relative; display: grid; gap: 6px; min-width: 0; }
.picker__label { font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.picker__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  width: 100%; min-height: 48px; padding: 10px 14px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--rule-firm); border-radius: 0 12px;
  color: var(--ink-strong); font: inherit; font-weight: 500;
}
.picker__btn[aria-expanded="true"] { border-color: var(--focus); }
.picker__btn i { color: var(--ink-soft); flex: none; }
.picker__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__value.is-empty { color: var(--ink-soft); }
.picker__pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(440px, 60vh);
  background: var(--surface); border: 1px solid var(--rule-firm); border-radius: 0 16px;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink-strong) 35%, transparent);
}
.picker__pop[hidden] { display: none; }
.picker__filter { margin: var(--s2); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0 10px; font: inherit; color: var(--ink-strong); background: var(--field); }
.picker__filter:focus { outline: none; border-color: var(--focus); }
.picker__list { overflow-y: auto; padding: 0 var(--s2) var(--s2); overscroll-behavior: contain; }
.picker__group { margin: var(--s2) var(--s2) var(--s1); font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.picker__opt { display: flex; align-items: center; gap: var(--s3); padding: 9px var(--s2); border-radius: 0 10px; cursor: pointer; color: var(--ink-strong); }
.picker__opt .star { width: 12px; height: 12px; flex: none; color: var(--h, var(--ink-soft)); }
.picker__title { flex: 1; min-width: 0; font-weight: 600; }
.picker__sub { flex: none; font-size: var(--t1); color: var(--ink-soft); }
.picker__opt.is-active, .picker__opt:not(.is-off):hover { background: var(--band); }
.picker__opt[aria-selected="true"] .picker__title { text-decoration: underline; text-decoration-color: var(--rule-firm); text-underline-offset: 3px; }
.picker__opt.is-off { cursor: default; color: var(--ink-soft); }
.picker__opt.is-off .picker__title { font-weight: 500; }
.picker__dot { width: 12px; flex: none; }
.picker__opt.is-off { position: relative; }
/* Out of the layout, so a hidden reason never squeezes the title; on hover it sits over the row's end. */
.picker__why { position: absolute; right: var(--s2); top: 50%; transform: translateY(-50%); padding-left: var(--s4); background: var(--surface); font-size: var(--t1); color: var(--ink-soft); visibility: hidden; }
@media (hover: hover) { .picker__opt.is-off:hover .picker__why { visibility: visible; } }
.picker__none { margin: var(--s3) var(--s2); color: var(--ink-soft); font-size: var(--t2); }
.planner__swap {
  width: 44px; height: 44px; margin-bottom: 2px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rule-firm); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; font-size: 20px;
  transition: transform var(--t-quick) var(--ease-out);
}
.planner__swap:hover { transform: rotate(180deg); }
.planner__go { min-height: 48px; }
.planner__results { display: grid; gap: var(--s4); margin-top: var(--s5); }
.planner__results:empty { margin-top: 0; }
.empty-inline { display: flex; gap: var(--s2); align-items: center; color: var(--ink-soft); padding: var(--s3) 0; }
@media (max-width: 760px) {
  .planner { padding: var(--s5) var(--s4); }
  .planner__form { grid-template-columns: 1fr; }
  .planner__swap { justify-self: center; transform: rotate(90deg); }
  .planner__swap:hover { transform: rotate(270deg); }
  /* On phone the list is a sheet over a dimmed page, so it gets the whole screen. */
  .picker__pop {
    position: fixed; inset: 0; z-index: 60; max-height: none; border: 0; border-radius: 0; box-shadow: none;
    grid-template-rows: 12vh auto minmax(0, 1fr);
    background: color-mix(in srgb, var(--ink-strong) 28%, transparent);
  }
  .picker__pop::before { content: ""; }  /* the strip above the sheet: tapping it closes */
  .picker__filter { margin: 0; padding: var(--s4); border: 0; border-bottom: 1px solid var(--rule); border-radius: 20px 20px 0 0; background: var(--surface); }
  .picker__list { padding-bottom: var(--s6); background: var(--surface); }
  html.picker-open { overflow: hidden; }
}

.pathlist { display: grid; gap: var(--s4); margin-top: var(--s4); }
.transit__head { display: flex; justify-content: space-between; align-items: start; gap: var(--s4); flex-wrap: wrap; }
.transit__name { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--t4); }

/* ═══ My Nebula ═════════════════════════════════════════════ */
.mestars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.meroutes, .menotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.meroute { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); }
.meroute > i { font-size: 24px; color: var(--you); flex: none; }
.meroute ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meroute ol li { display: flex; align-items: center; gap: 6px; }
.meroute ol li + li::before { content: "→"; color: var(--ink-soft); }
.meroute ol a { color: var(--h-deep); font-weight: 600; text-decoration: none; font-size: var(--t3); }
.meroute ol a:hover { text-decoration: underline; }
.meroute ol { flex: 1; min-width: 0; }
.meroute__acts { display: flex; gap: var(--s1); flex: none; }
@media (max-width: 720px) { .meroute { flex-wrap: wrap; } .meroute__acts { width: 100%; } }
.menote { padding: var(--s4) var(--s5); }
.menote a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-strong); text-decoration: none; }
.menote p { margin-top: var(--s2); white-space: pre-wrap; }

/* ═══ Team legend: which cog is which; tap to isolate ═══ */
.teams { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); }
.teams__label { font-size: var(--t1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: var(--s1); }
.team {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 14px; border-radius: var(--pill);
  background: var(--h-tint); border: 1.5px solid transparent;
  color: var(--ink-strong); font-size: var(--t2); font-weight: 600;
  transition: opacity var(--t-quick), border-color var(--t-quick), transform var(--t-quick) var(--ease-out);
}
.team .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--h); }
.team__n { font-size: var(--t1); color: var(--ink); font-weight: 600; }  /* ink-soft fell to 3.30 on peri tint */
.team:hover { transform: translateY(-1px); border-color: var(--h); }
.team[aria-pressed="true"] { border-color: var(--h-deep); box-shadow: inset 0 0 0 1px var(--h-deep); }
/* Others recede by losing their fill, not their contrast: ink-soft on field is 5.02. */
.teams:has([aria-pressed="true"]) .team[aria-pressed="false"] { background: var(--field); border-color: var(--rule); color: var(--ink-soft); }

/* ═══ My Nebula: your constellation ═══ */
.const__controls { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--rule-firm); background: var(--surface);
  color: var(--ink-soft); font-size: var(--t2); font-weight: 600;
  transition: background var(--t-quick), color var(--t-quick), border-color var(--t-quick);
}
.toggle i { font-size: 17px; }
.toggle[aria-pressed="true"] { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--field); }
.mapchart--me { height: min(520px, 64vh); min-height: 380px; }
@media (max-width: 720px) { .mapchart--me { height: 500px; } }
.lg--ghost .star { color: var(--surface); stroke: var(--ink-soft); stroke-width: 1.5px; stroke-dasharray: 2 2; }
.lg-line--you { background: var(--you); }
.constellation:not(.has-ghosts) .lg-ghost-row { display: none; }

/* ═══ Role: sourced content ═══ */
.role-hero__summary { max-width: 60ch; font-size: var(--t5); line-height: 1.5; margin: calc(-1 * var(--s2)) 0 var(--s4); }
.role-hero__aka { font-size: var(--t2); color: var(--ink-soft); margin: calc(-1 * var(--s2)) 0 var(--s4); }
.rolegrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.rolecard { padding: var(--s5); }
.rolecard__h { display: flex; align-items: center; gap: var(--s2); font-size: var(--t6); margin-bottom: var(--s4); }
.rolecard__h i { color: var(--action); font-size: 24px; }
.rolecard .eyebrow { margin: var(--s4) 0 var(--s2); }
.rolecard .eyebrow:first-of-type { margin-top: 0; }
.unpub { display: flex; gap: var(--s2); align-items: flex-start; color: var(--ink-soft); font-size: var(--t3); }
.unpub i { font-size: 20px; flex: none; margin-top: 2px; }
.ticks { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ticks li::marker { color: var(--rule-firm); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 4px 12px; border-radius: var(--pill); background: var(--band); font-size: var(--t2); font-weight: 600; color: var(--ink-strong); }

/* Pay: one row per region; the figures, then where they come from. */
.paylist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.pay { padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); display: grid; gap: var(--s2); }
.pay:last-child { border-bottom: 0; padding-bottom: 0; }
.pay__where b { color: var(--ink-strong); }
.pay__where span { color: var(--ink-soft); font-size: var(--t2); margin-left: 4px; }
.pay__figs { display: flex; flex-wrap: wrap; gap: var(--s5); }
.pay__figs span { display: grid; }
.pay__figs small { font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pay__figs b { font-size: var(--t6); font-weight: 650; color: var(--ink-strong); }
.pay__src { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.pay__note { font-size: var(--t2); color: var(--ink-soft); line-height: 1.5; }

/* Source strength, strongest to weakest — neutral inks only (pink and terrain mean other things). */
.basis { display: inline-flex; padding: 2px 10px; border-radius: var(--pill); font-size: var(--t1); font-weight: 700; letter-spacing: .02em; border: 1.5px solid; }
.basis--official   { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--field); }
.basis--survey     { border-color: var(--ink); color: var(--ink-strong); }
.basis--posting    { border-color: var(--rule-firm); color: var(--ink); }
.basis--aggregator { border-color: var(--rule-firm); border-style: dashed; color: var(--ink-soft); }
.cite { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t2); font-weight: 600; color: var(--action); text-decoration: none; }
.cite:hover { text-decoration: underline; }
.cite i { font-size: 12px; }
.quote summary { cursor: pointer; font-size: var(--t2); color: var(--ink-soft); font-weight: 600; width: fit-content; }
.quote summary:hover { color: var(--ink-strong); }
.quote blockquote { margin: var(--s2) 0 0; padding: var(--s3) var(--s4); background: var(--field); border-left: 3px solid var(--rule-firm); font-size: var(--t2); line-height: 1.55; color: var(--ink); }

.rung--needs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.need { padding: 1px 8px; border-radius: var(--pill); background: var(--band); color: var(--ink-strong); font-weight: 600; }
.rung--src { display: block; padding: 4px 0 0 18px; }
.ladder__group li, .sideways li { display: grid; }

.outlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.outlist li { display: grid; gap: 2px; }
.outlist a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-strong); font-weight: 600; text-decoration: none; width: fit-content; }
.outlist a:hover { color: var(--action); text-decoration: underline; }
.outlist a i { font-size: 13px; color: var(--action); }
.outlist small { font-size: var(--t2); color: var(--ink-soft); text-transform: capitalize; }

.sources { padding: var(--s4) var(--s5); }
.sources summary { cursor: pointer; color: var(--ink-soft); font-size: var(--t3); }
.sources summary b { color: var(--ink-strong); }
.sources ol { margin: var(--s4) 0 0; padding-left: 1.4em; display: grid; gap: var(--s2); font-size: var(--t2); }
.sources small { color: var(--ink-soft); }
@media (max-width: 860px) { .rolegrid { grid-template-columns: 1fr; } }

/* ═══ Industry: history, who's who, reading ═══ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--rule); margin-left: 60px; }
/* Block, not grid: the year is absolutely placed, so a grid would push the text into a zero-width column. */
.timeline li { position: relative; display: block; padding: 0 0 var(--s5) var(--s5); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--rule-firm); }
.timeline__year { position: absolute; left: -76px; top: 0; width: 60px; text-align: right; font-size: var(--t5); color: var(--ink-strong); }
.timeline p { max-width: 64ch; }
.timeline__src { margin-top: 4px; }
/* The history atlas (plan 05): map, legend, place chips, card. Pink is you: the selected place. */
.atlas { padding: var(--s4); margin-bottom: var(--s6); display: grid; gap: var(--s3); }
/* Each walk-through step changes the card's height. Without this, the browser's scroll anchoring
   shifts the page to keep the timeline still, and the map slides out from under the reader. */
.atlas, .atlas ~ .timeline { overflow-anchor: none; }
.atlas__map { height: clamp(220px, 40vw, 440px); border-radius: calc(var(--petal) - 6px); background: var(--field); overflow: hidden; }
.atlas__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s4); font-size: var(--t1); color: var(--ink-soft); }
.atlas__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.atlas__key { display: inline-block; flex: none; width: 10px; height: 10px; }
.atlas__key--cluster { width: 16px; height: 16px; border-radius: 50%; background: var(--ink-strong); color: var(--field); font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; }
.atlas__key--dot { border-radius: 50%; background: var(--ink-strong); }
.atlas__key--hub { width: 14px; border-radius: 3px; background: var(--rule); border: 1px solid var(--ink-soft); }
.atlas__credit { margin-left: auto; }
.atlas__places { display: flex; flex-wrap: wrap; gap: var(--s2); }
.atlas__places .num { color: inherit; opacity: .8; margin-left: 2px; }
.atlas__places .toggle:not([data-place=""])[aria-pressed="true"] { background: var(--you-deep); border-color: var(--you-deep); color: var(--on-action); }  /* white on you-deep 6.80 */
.atlas__card { border-top: 1px solid var(--rule); padding-top: var(--s4); display: grid; gap: var(--s2); }
.atlas__card > p { max-width: 64ch; }
.atlas__hint { color: var(--ink-soft); font-size: var(--t3); }
.atlas__title { font-size: var(--t5); color: var(--ink-strong); outline-offset: 4px; }
.atlas__count, .atlas__step { font-size: var(--t2); color: var(--ink-soft); font-weight: 600; }
.atlas__count { margin-left: var(--s2); }
.atlas__events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.atlas__events li { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); }
.atlas__year { font-size: var(--t4); color: var(--ink-strong); text-align: right; }
.atlas__events .timeline__src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); }
.atlas__events .btn { min-height: 24px; padding: 0; font-size: var(--t2); }
.atlas__hint:focus { outline: none; }
.atlas__note { font-size: var(--t2); color: var(--ink-soft); }
.atlas__walk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s2); }
.atlas__walk .atlas__step { min-width: 8ch; text-align: center; }
.atlas__walk [data-walk="end"] { margin-left: auto; }
.atlas.is-walking .atlas__map { height: clamp(200px, 30vw, 340px); }
.atlas__walk .btn[disabled] { opacity: .45; cursor: default; }
.atlas.is-walking .atlas__places { display: none; }
.section__head [data-walk="start"][aria-pressed="true"] { border-color: var(--you-deep); color: var(--you-deep); }
.timeline__place { display: flex; align-items: center; gap: 4px; font-size: var(--t2); color: var(--ink-soft); font-weight: 600; }
.timeline li.is-current::before { background: var(--you); border-color: var(--you-deep); }
.players { display: grid; gap: var(--s5); }
.players__group ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s3); }
.player { padding: var(--s3) var(--s4); }
.player a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-strong); text-decoration: none; }
.player a:hover { color: var(--action); text-decoration: underline; }
.player a i { font-size: 13px; color: var(--action); }
.player p { font-size: var(--t2); color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
.reading { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.reading li { padding: var(--s4); display: grid; gap: 6px; align-content: start; }
.reading .chip { width: fit-content; text-transform: capitalize; }
.reading a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-strong); text-decoration: none; }
.reading a:hover { color: var(--action); text-decoration: underline; }
.reading a i { font-size: 13px; color: var(--action); }
.reading small { color: var(--ink-soft); }
.reading p { font-size: var(--t2); color: var(--ink); }
@media (max-width: 640px) {
  .timeline { margin-left: 8px; }
  .timeline__year { position: static; width: auto; text-align: left; display: block; }
  .atlas { padding: var(--s3); }
  .atlas__events li { grid-template-columns: 1fr; gap: 2px; }
  .atlas__year { text-align: left; }
  .atlas__credit { margin-left: 0; }

}

/* ═══ Paths: the people behind a path ═══ */
.people { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.people ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s3); }
.people li { display: grid; gap: 2px; }
.people b { color: var(--ink-strong); }
.people small { color: var(--ink-soft); font-size: var(--t2); }

.pay__covers { font-size: var(--t2); color: var(--ink); margin-top: -2px; }

/* "For scale": a real figure that is not this role's pay (e.g. a group CEO), set apart. */
.forscale { margin-top: var(--s5); padding: var(--s4); border: 1px dashed var(--rule-firm); border-radius: 0 14px; background: var(--field); }
.forscale .eyebrow { margin: 0 0 var(--s3); }
.rung--unconfirmed { color: var(--ink-soft); font-style: italic; font-size: var(--t2); }
.aged { display: inline-flex; padding: 1px 8px; border-radius: var(--pill); background: var(--band); color: var(--danger); font-size: var(--t1); font-weight: 700; }

/* ═══ Glossary ═══ */
.glossfind { min-width: min(320px, 100%); }
.glossfind input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--rule-firm); border-radius: 0 12px; color: var(--ink-strong); font-weight: 500; }
.glossfind input:focus { border-color: var(--focus); }
.glosscount { font-size: var(--t2); color: var(--ink-soft); margin-bottom: var(--s3); }
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.term { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; scroll-margin-top: calc(var(--chrome-h) + var(--s5)); }
.term:target { border-color: var(--you); }
.term__name { font-size: var(--t6); }
.term__def { line-height: 1.55; }
.term__roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.term__roles .card { font-size: var(--t2); padding: 8px 12px; }
kbd { font: 600 var(--t1)/1 var(--sans); padding: 2px 6px; border: 1px solid var(--rule-firm); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink-strong); }
@media (max-width: 420px) { .terms { grid-template-columns: 1fr; } }

/* ═══ My Nebula: compare pay, keep a copy ═══ */
.paycmps { display: grid; gap: var(--s4); }
.paycmp { margin: 0; padding: var(--s4) var(--s5); }
.paycmp figcaption { margin-bottom: var(--s2); }
.paycmp figcaption b { color: var(--ink-strong); }
.paycmp figcaption span { color: var(--ink-soft); font-size: var(--t2); margin-left: 4px; }
.paycmp__table { margin-top: var(--s2); }
.paycmp__table summary { cursor: pointer; font-size: var(--t2); font-weight: 600; color: var(--ink-soft); }
.paycmp__table table { margin-top: var(--s3); }
.paycmp__missing { margin-top: var(--s3); font-size: var(--t2); color: var(--ink-soft); }
.keep { padding: var(--s5); display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s6); align-items: center; }
.keep p { color: var(--ink); max-width: 60ch; }
.keep .rolecard__h { margin-bottom: var(--s2); }
.keep__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.keep__actions label.btn { cursor: pointer; }
.keep__actions label.btn:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.keep__confirm { grid-column: 1 / -1; padding: var(--s4); background: var(--field); border-radius: 0 14px; display: grid; gap: var(--s3); }
.keep__err { display: flex; gap: var(--s2); align-items: center; color: var(--danger); font-weight: 600; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 720px) { .keep { grid-template-columns: 1fr; } }
/* Save a copy: PDF or Word (plan 07). A petal panel like search; a bottom sheet on phone. */
dialog.keepdlg {
  max-height: calc(100vh - 2 * var(--s4)); overflow-y: auto;
  width: min(520px, calc(100vw - 2 * var(--s4))); margin: 8vh auto auto; padding: 0;
  border: 1px solid var(--rule-firm); border-radius: 0 var(--petal-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px -24px rgba(63, 47, 39, .35);
}
dialog.keepdlg[open] { animation: rise 240ms var(--ease-out); }
dialog.keepdlg::backdrop { background: color-mix(in srgb, var(--ink-strong) 30%, transparent); backdrop-filter: blur(2px); }
.keepdlg__in { padding: var(--s5); display: grid; gap: var(--s3); }
.keepdlg__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.keepdlg__head h2 { font-size: var(--t6); }
.keepdlg__close { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 20px; padding: 6px; border-radius: 8px; }
.keepdlg__close:hover { background: var(--field); color: var(--ink-strong); }
.keepdlg__extras { border: 1px solid var(--rule); border-radius: 0 14px; padding: var(--s2) var(--s3) var(--s3); margin: 0; display: grid; gap: 2px; }
.keepdlg__extras legend { padding: 0 var(--s1); font-size: var(--t1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.keepx { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.keepx:hover { background: var(--field); }
.keepx input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--action); cursor: pointer; }
.keepx b { display: block; font-size: var(--t3); font-weight: 600; color: var(--ink-strong); }
.keepx small { display: block; font-size: var(--t2); color: var(--ink-soft); line-height: 1.35; }
.keepdlg__opts { display: grid; gap: var(--s2); margin-top: var(--s1); }
.keepopt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3);
  width: 100%; padding: var(--s4); cursor: pointer; text-align: left; font: inherit;
  background: var(--surface); color: var(--ink-strong);
  border: 1px solid var(--rule-firm); border-radius: 0 var(--petal);
  transition: transform var(--t-quick) var(--ease-out), border-color var(--t-quick);
}
.keepopt:hover:not(:disabled) { transform: translateY(-2px) rotate(-.3deg); border-color: var(--ink-soft); }
.keepopt:disabled { cursor: progress; opacity: .6; }
.keepopt[aria-busy="true"] { opacity: 1; border-color: var(--action); }
.keepopt > i { font-size: 30px; color: var(--action); }
.keepopt b { display: block; font-size: var(--t4); font-weight: 650; }
.keepopt small { display: block; font-size: var(--t2); color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.keepopt .chev { color: var(--ink-soft); }
.keepdlg__status { min-height: 1.4em; font-size: var(--t2); color: var(--ink-soft); }
.keepdlg__status.is-err { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) {
  dialog.keepdlg { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { dialog.keepdlg[open] { animation: none; } .keepopt { transition: none; } }
.paycmp__key { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t1); font-weight: 600; color: var(--ink-soft); margin-bottom: var(--s2); }
.paycmp__key span { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; }
.k--dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-strong); }
.k--ring { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink-strong); background: var(--surface); }
.k--bar { width: 22px; height: 8px; border-radius: 4px; background: var(--rule-firm); opacity: .8; }

/* Compact head for the map: the chart is the page. */
.view-head--compact { padding: var(--s5) 0 var(--s3); align-items: center; }
.view-head--compact h1 { font-size: clamp(30px, 3.4vw, 44px); margin: var(--s1) 0 var(--s2); }
.view-head--compact .view-head__lede { font-size: var(--t3); }
.view-head--compact ~ .teams { margin-top: var(--s2); }
.view-head--compact ~ .draft { margin-bottom: var(--s2); }

/* Role hero: where this role leads, above the fold. */
.role-hero__next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); margin-top: var(--s4); font-size: var(--t3); }
.role-hero__next span { font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.role-hero__next a { color: var(--action); font-weight: 600; text-decoration: none; }
.role-hero__next a:hover { text-decoration: underline; }
/* Phones: the team chips scroll sideways in one row instead of wrapping into four. */
@media (max-width: 720px) {
  .teams { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
  .teams::-webkit-scrollbar { display: none; }
  .team { flex: none; }
  .view-head--compact .view-head__lede { display: none; }
}

/* ═══ Tap targets ≥ 24px (WCAG 2.2 AA; journey analysis, finding 8) ═══ */
.quote summary, .paycmp__table summary, .sources summary, .people summary { min-height: 24px; display: flex; align-items: center; }
.sources summary { gap: 6px; }  /* flex drops the spaces between "Sources", the count and the rest */
.cite { min-height: 24px; }
.roletable tbody th a, .transit__stop a, .meroute ol a, .outlist a, .player a, .reading a, .menote a, .role-hero__next a { min-height: 24px; display: inline-flex; align-items: center; }

/* ═══ Sky: doors first, quiet industry rows (plan 06), charting as a line (finding 2) ═══ */
.sky-doors { margin-top: var(--s6); }
@media (max-width: 520px) {
  .cloud { padding: 0 var(--s4); gap: var(--s3); }
  .cloud__name { font-size: var(--t5); }
  .cloud__stars > span:nth-child(n+4) { display: none; }  /* ~60px between name and counts: three stars, yours first */
}
.charting { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); margin-top: var(--s3); font-size: var(--t2); color: var(--ink); }
.charting span { font-size: var(--t1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: var(--s1); }
.charting i { color: var(--rule-firm); font-style: normal; }

.jump { display: flex; flex-wrap: wrap; gap: var(--s2); }
.jump .chip { border: 0; cursor: pointer; font-size: var(--t2); padding: 6px 14px; min-height: 32px; }
.jump .chip:hover { background: var(--rule); }
.people summary { cursor: pointer; gap: 6px; font-size: var(--t2); font-weight: 600; color: var(--ink-soft); }
.people summary i { font-size: 18px; }
.people[open] summary { color: var(--ink-strong); margin-bottom: var(--s2); }

/* ═══ Role: say it once (finding 5), explain words (finding 6), plan from here (finding 7) ═══ */
.role-hero__chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.role-hero__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); margin: calc(-1 * var(--s2)) 0 var(--s4); font-size: var(--t3); color: var(--ink); }
.role-hero__pay > i:first-child { font-size: 20px; color: var(--action); }
.role-hero__pay b { color: var(--ink-strong); }
.role-hero__pay i[aria-hidden] { color: var(--rule-firm); font-style: normal; }
.linkish { border: 0; background: none; padding: 0 2px; min-height: 24px; color: var(--action); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.climb__timed { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); font-size: var(--t2); color: var(--ink-soft); }
.climb__timed i { font-size: 16px; }
.climb__plan { display: flex; flex-wrap: wrap; gap: var(--s1); }
.rungli { position: relative; }
.rungsrc { position: absolute; top: 8px; right: 36px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--action); font-size: 17px; }
.rungsrc:hover { background: var(--field); }
.rungcard .grow { padding-right: 28px; }
.rung--unconfirmed { display: block; margin-top: 4px; color: var(--ink-soft); font-style: italic; font-size: var(--t1); }
.floors { border-collapse: collapse; width: 100%; max-width: 380px; font-size: var(--t3); }
.floors th { text-align: left; font-weight: 500; color: var(--ink); padding: 4px 0; }
.floors td { text-align: right; font-weight: 650; color: var(--ink-strong); padding: 4px 0; }
.floors tr + tr > * { border-top: 1px solid var(--rule); }
a.gloss { color: inherit; text-decoration: underline dotted var(--action); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.gloss:hover { color: var(--action); }

/* Definitions: chips that explain themselves */
.chip--def { border: 0; cursor: help; font: inherit; font-size: var(--t1); font-weight: 600; letter-spacing: .02em; min-height: 26px; }
.chip--def:hover, .chip--def:focus-visible { box-shadow: inset 0 0 0 1.5px var(--h-deep, var(--ink-soft)); }
.defpop { position: fixed; inset: auto; margin: 0; padding: var(--s3) var(--s4); max-width: 300px; border: 1px solid var(--rule-firm); border-radius: 0 12px; background: var(--surface); color: var(--ink); font-size: var(--t2); line-height: 1.5; box-shadow: 0 12px 30px -16px rgba(63, 47, 39, .4); }

/* ═══ My Nebula as a hub (finding 3) ═══ */
.metabs {
  position: sticky; top: var(--chrome-h); z-index: 15;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4);
  margin: 0 calc(-1 * var(--s4)); padding: var(--s2) var(--s4);
  background: color-mix(in srgb, var(--field) 94%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.metabs__in { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.metabs__in::-webkit-scrollbar { display: none; }
.metab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border: 0; background: none; cursor: pointer; color: var(--ink-soft); font-size: var(--t2); font-weight: 600; }
.metab i { font-size: 17px; }
.metab b { font-weight: 700; color: var(--ink-soft); }
.metab::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 2px; height: 2px; border-radius: 2px; background: transparent; }
.metab:hover { color: var(--ink-strong); }
.metab[aria-current="true"] { color: var(--ink-strong); }
.metab[aria-current="true"]::after { background: var(--ink-strong); }
.mefilter { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 40px; min-width: min(260px, 100%); border: 1px solid var(--rule-firm); border-radius: var(--pill); background: var(--surface); }
.mefilter i { color: var(--ink-soft); font-size: 17px; }
.mefilter input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font-size: var(--t2); color: var(--ink-strong); }
.mefilter:focus-within { border-color: var(--focus); }
.metabs ~ .section { scroll-margin-top: calc(var(--chrome-h) + 64px); }

.mestar { position: relative; }
.mestar .card { padding-right: 52px; height: 100%; }
.unstar { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--you); cursor: pointer; }
.unstar svg { width: 20px; height: 20px; }
.unstar:hover { background: var(--you-tint); }

.menote { display: grid; gap: var(--s2); }
.menote textarea { width: 100%; min-height: 64px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 0 10px; background: var(--field); color: var(--ink-strong); font: inherit; font-size: var(--t3); line-height: 1.5; resize: vertical; }
.menote textarea:focus { border-color: var(--you-deep); background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--you-tint); }
.menote .notes__status { margin: 0; }

.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: var(--s4); padding: 10px 12px 10px 18px; border-radius: var(--pill); background: var(--ink-strong); color: var(--field); font-size: var(--t3); box-shadow: 0 12px 30px -14px rgba(63, 47, 39, .55); animation: rise 240ms var(--ease-out); }
.toast button { border: 0; border-radius: var(--pill); padding: 6px 14px; min-height: 32px; background: var(--field); color: var(--ink-strong); font-weight: 700; cursor: pointer; }

html.rerender .arrive { animation: none; }
@media (max-width: 720px) { .mefilter { min-width: 100%; } }
.words { display: flex; flex-wrap: wrap; gap: 2px var(--s2); align-items: center; font-size: var(--t3); }
.words a { min-height: 24px; display: inline-flex; align-items: center; }
.words i { color: var(--rule-firm); font-style: normal; }
.sources ol a { min-height: 24px; display: inline-flex; align-items: center; }

/* Industry chips on "Every industry": an industry has no terrain hue (the hues are the bench ↔
   boardroom axis inside every industry), so its chip is neutral. rule-firm on field 3.25. */
.team--ind { --h-tint: var(--surface); --h: var(--rule-firm); --h-deep: var(--ink); border-color: var(--rule-firm); }
/* "Every industry" paths: one group per industry. */
.pathgroup { margin-top: var(--s6); font-size: var(--t5); color: var(--ink-strong); }
.pathgroup + .pathlist { margin-top: var(--s3); }

/* ═══ "What pays?": pay placed among all jobs in its own country (plan 02 §12) ═══ */
.paysort { padding: var(--s4) var(--s5); margin-bottom: var(--s4); display: grid; gap: var(--s2); font-size: var(--t3); max-width: 80ch; }
.paysort__src { font-size: var(--t2); }
.paysort__src summary { cursor: pointer; font-weight: 600; color: var(--action); min-height: 24px; }
.paysort__src ul { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: var(--s3); }
.paysort__src li { display: grid; gap: 2px; }
.paysort__count { color: var(--ink-soft); font-size: var(--t2); }
.roletable--pay tbody th small, .roletable--pay td small { display: block; margin-top: 2px; font-weight: 500; font-size: var(--t1); }
.roletable--pay td:last-child { min-width: 220px; }
/* Six cells, bottom tenth → top tenth; the band's cell(s) filled. Ink, not terrain or pink:
   the bands are about pay, not the bench ↔ boardroom axis or you. ink-soft on surface 5.24. */
.bandmeter { display: inline-grid; grid-template-columns: repeat(6, 14px); gap: 2px; vertical-align: middle; margin-right: var(--s2); }
.bandmeter i { height: 8px; border-radius: 2px; background: var(--rule); }
.bandmeter i.on { background: var(--ink-soft); }
.bandtext { font-size: var(--t2); color: var(--ink-strong); }
.chip--min { font-size: var(--t1); padding: 1px 8px; background: var(--band); color: var(--ink); border: 1px solid var(--rule-firm); }
.paysort__src > p { margin: var(--s2) 0 0; color: var(--ink); }
@media (max-width: 720px) {
  /* One column of four short lines: role · its team and rung · pay and year · the band. The long
     source labels stay one line here; the role page carries them in full. */
  .roletable--pay tr { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s3) 0; }
  .roletable--pay th, .roletable--pay td { padding: 0 14px; grid-column: 1; min-width: 0; }
  .roletable--pay td:last-child { min-width: 0; margin-top: 4px; }
  .roletable--pay tbody th small, .roletable--pay td:nth-of-type(1) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .roletable--pay td:nth-of-type(1) small { display: inline; margin-left: 6px; }
  .roletable--pay .paymore { display: none; }  /* "n more figures": the role page lists them */
}

/* "Every industry": counted clusters (plan 02 §12). The legend's circle and the cluster panel. */
.lg-cluster { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--aqua-tint); border: 1.5px solid var(--aqua); font-size: 10px; font-weight: 700; color: var(--ink-strong); }
.mapsel__groups { display: grid; gap: var(--s2); max-height: 420px; overflow-y: auto; }
.mapsel__ind { font-size: var(--t1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--s2); }
.mapsel__groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mapsel__groups a { display: flex; align-items: center; gap: var(--s2); min-height: 28px; color: var(--ink-strong); font-size: var(--t2); font-weight: 600; text-decoration: none; }
.mapsel__groups a:hover { text-decoration: underline; }
.mapsel__groups a .star { width: 14px; height: 14px; color: var(--h); flex: none; }
.mapsel__groups a.is-starred .star { color: var(--you); }

/* Job-census marker (Mia, 2026-10-18): neutral, like the rung chip. ink-strong on band 10.9:1. */
.chip--employ { background: var(--band); color: var(--ink-strong); }
.roletable small.employ { display: block; font-size: var(--t1); font-weight: 500; margin-top: 2px; }
