/* The map uses the original product orbit's mint trace, with a separate gold route for commissioning. */
.proc-figure { max-width: 41rem; scroll-margin-top: 1rem; }
.investment-widget {
  --orbit-ink: #f5f8ef;
  --orbit-mint: #87f1c8;
  --orbit-gold: #ffce91;
  --orbit-dim: #b9d1d1;
  --focus: #fff5d7;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #294b54;
  border-radius: 1.15rem;
  background: radial-gradient(ellipse at 53% 36%, #173e47, #102d3c 56%, #0b2431 100%);
  color: var(--orbit-ink);
  box-shadow: 0 1rem 2.4rem -2rem #0a3e43;
}
.investment-widget [hidden], .investment-widget[hidden], .orbit-fallback[hidden] { display: none; }
.investment-widget button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.investment-widget button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.investment-head { padding: clamp(1rem, 2.2vw, 1.65rem) clamp(1rem, 2.4vw, 1.8rem) .25rem; }
.investment-head h2 { margin: 0; max-width: none; font-size: clamp(1.65rem, 3.05vw, 2.7rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.1; text-wrap: initial; }
.investment-head h2 em { font-style: normal; color: var(--orbit-mint); white-space: nowrap; }
.investment-head p { color: var(--orbit-dim); font-size: .93rem; line-height: 1.43; margin-top: .42rem; }
.investment-head strong { color: var(--orbit-ink); font-weight: 600; }
.orbit-map { width: 100%; position: relative; aspect-ratio: 500 / 366; container-type: inline-size; }
.investment-network { display: block; width: 100%; height: 100%; }
.map-orbits { stroke: #64968d; stroke-width: 1; opacity: .31; }
.network-flow { --orbit-trail-length: 8px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-line { stroke-width: 1.5; }
.flow-trace, .flow-particle, .flow-arrival { pointer-events: none; opacity: 0; }
.flow-trace { stroke-dasharray: var(--orbit-trail-length) calc(100px - var(--orbit-trail-length)); stroke-width: 2.7; }
.flow-particle { --orbit-lead: var(--orbit-trail-length); stroke-dasharray: .1 99.9; stroke-width: 5.4; }
.flow-arrival { stroke-dasharray: 12 88; stroke-width: 4; }
.flow-commission { stroke: var(--orbit-gold); }
.flow-return, .flow-shared { stroke: var(--orbit-mint); }
.flow-local { stroke: var(--orbit-gold); }
.flow-commission .flow-line, .flow-local .flow-line { marker-end: url(#arrow-contract); }
.flow-return .flow-line, .flow-shared .flow-line { marker-end: url(#arrow-return); }
.network-flow[data-state="idle"] .flow-line { opacity: .18; }
.flow-commission[data-state="funded"] .flow-line { opacity: .48; }
.flow-commission[data-state="selected"] .flow-line { opacity: .77; }
.flow-return .flow-line { stroke-width: var(--orbit-return-weight, 1.45); }
.flow-return[data-state="selected"] .flow-line { opacity: .66; }
.flow-return[data-state="funded"] .flow-line { opacity: .55; }
.flow-local .flow-line { opacity: .46; }
.flow-shared .flow-line { opacity: .24; stroke-width: var(--orbit-shared-weight, 1.4); }
.investment-widget[data-has-work="true"] .flow-shared .flow-line { opacity: .69; }
.investment-widget[data-has-work="true"] .flow-local .flow-line { opacity: .72; }
.map-node .node-disc { fill: #173b46; stroke: #7ba29c; stroke-width: 1.2; }
.map-node .node-rim { fill: none; stroke: #789d97; stroke-width: 1; opacity: .55; }
.map-node .node-halo { fill: none; stroke: var(--orbit-mint); stroke-dasharray: 1 5; opacity: 0; }
.growth-sparks circle { fill: #b0f3d1; opacity: 0; }
.growth-sparks .is-lit { opacity: 1; }
.body-node[data-state="selected"] .growth-sparks .is-lit { fill: #ffce91; }
.node-icon { stroke: #cfe9de; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.body-node[data-state="selected"] .node-disc { fill: #373d35; stroke: var(--orbit-gold); stroke-width: 1.9; }
.body-node[data-state="selected"] .node-icon { stroke: #ffe2af; }
.body-node[data-state="selected"] .node-rim { stroke: var(--orbit-gold); opacity: .85; }
.body-node[data-funded="true"] .node-halo, .body-node[data-state="selected"] .node-halo { opacity: .76; }
.body-node[data-state="funded"] .node-disc, .growth-node .node-disc { stroke: #79d8b7; }
.growth-node .node-rim { stroke: var(--orbit-mint); }
.growth-node .node-icon { stroke: var(--orbit-mint); }
.investment-widget[data-has-work="true"] .growth-node .node-halo { opacity: .82; }
.growth-node[data-explored="true"] .node-disc { fill: #285748; stroke: #d0ffe5; stroke-width: 2; }
.hub-core { fill: url(#investment-core); stroke: var(--orbit-mint); stroke-width: 1.8; }
.hub-field { fill: #60dbaa; fill-opacity: .045; stroke: #87cfba; stroke-opacity: .17; }
.hub-ring, .hub-sweep { fill: none; stroke: var(--orbit-mint); }
.hub-ring { stroke-opacity: .38; stroke-dasharray: .7 3; }
.hub-sweep { stroke-width: 2.7; stroke-linecap: round; stroke-dasharray: 16 30 4 50; stroke-dashoffset: 17; }
.orbit-station {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 27%;
  height: 18%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: .6rem;
  background: transparent;
}
.station-council, .station-health, .station-college { --y: 12.02%; }
.station-council { --x: 20%; }
.station-health, .station-invest { --x: 50%; }
.station-college { --x: 80%; }
.station-community, .station-wee { --y: 77.05%; height: 22%; }
.station-community { --x: 26%; }
.station-wee { --x: 74%; }
.station-invest { --y: 46.17%; width: 30%; height: 30%; }
.station-name, .station-caption, .invest-tag {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.station-name {
  top: calc(50% + 5.65cqw + var(--station-growth, 0cqw));
  color: #deeee7; font-weight: 650; font-size: clamp(.8rem, 3.15cqw, 1.11rem);
  line-height: 1.1; letter-spacing: -.022em; text-shadow: 0 1px 4px #0c2533, 0 0 6px #0c2533;
}
.orbit-station[aria-pressed="true"] .station-name { color: #ffdda9; }
.orbit-station:hover .station-name, .orbit-station:focus-visible .station-name { text-decoration: underline; text-underline-offset: .17em; }
.station-caption { top: calc(50% + 5.65cqw + var(--station-growth, 0cqw) + 1.48em); color: #afd5c9; font-size: clamp(.68rem, 2.55cqw, .87rem); line-height: 1.22; text-shadow: 0 0 4px #102e3b; }
.invest-tag {
  top: calc(50% + 6.7cqw); display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: .28em .75em .33em;
  border: 1px solid #f7dab0; border-radius: 2rem; background: #ffce91; color: #1e3028;
  box-shadow: 0 .2rem .7rem #071d2b66; font-size: clamp(.81rem, 3.05cqw, 1.05rem); font-weight: 720; line-height: 1.15; letter-spacing: -.025em;
}
.invest-tag::after { content: '＋'; font-size: .96em; line-height: 1; }
.station-invest[data-action="next"] .invest-tag::after { content: "→"; }
.station-invest[data-action="reset"] .invest-tag::after { content: "↺"; }
.station-invest:hover .invest-tag, .station-invest:focus-visible .invest-tag { background: #ffe3b9; border-color: #fff; }
.orbit-toolbar { border-top: 1px solid #31515a; display: flex; align-items: center; justify-content: space-between; gap: .25rem .5rem; padding-inline: clamp(.8rem, 2vw, 1.6rem); background: #0d2735a8; }
.orbit-legend, .orbit-utilities, .orbit-legend span, .orbit-utilities button { display: inline-flex; align-items: center; }
.orbit-legend { gap: .72rem; }
.orbit-legend span { gap: .32rem; font-size: .76rem; color: #d8e7e2; white-space: nowrap; }
.orbit-legend span::before { content: ''; display: inline-block; width: 1.05rem; height: .18rem; border-radius: .2rem; }
.key-invest::before { background: var(--orbit-gold); }
.key-return::before { background: var(--orbit-mint); }
.orbit-utilities { gap: .2rem; }
.orbit-utilities button, .impact-insight button, .orbit-reset-line button { border: none; background: transparent; }
.orbit-utilities button { min-height: 44px; gap: .28rem; padding: .2rem .35rem; color: #dceae2; font-size: .8rem; font-weight: 560; }
.orbit-utilities svg { width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.orbit-utilities button:disabled { color: var(--orbit-dim); cursor: default; }
.orbit-utilities button:enabled:hover, .impact-insight button:hover, .orbit-reset-line button:hover { color: var(--orbit-mint); text-decoration: underline; }
.investment-impact { background: #0b2230; padding: .9rem clamp(1rem, 2.35vw, 1.75rem) 1.15rem; border-top: 1px solid #304b55; }
.impact-heading, .impact-heading p, .investment-steps { display: flex; align-items: center; }
.impact-heading { justify-content: space-between; gap: .5rem; }
.impact-heading p { flex-wrap: wrap; gap: .18rem .6rem; font-size: .88rem; line-height: 1.28; }
.impact-heading strong { font-weight: 710; }
.impact-heading p > span { color: #afd2c8; font-size: .78rem; }
.investment-steps { gap: 3px; flex-shrink: 0; }
.investment-steps i { width: .85rem; height: .26rem; border-radius: .5rem; background: #395761; }
.investment-steps .is-lit { background: var(--orbit-mint); }
.impact-returns { margin: .7rem 0 0; }
.impact-returns > div { display: grid; grid-template-columns: minmax(6.5rem, 26%) 1fr; align-items: baseline; gap: .65rem; }
.impact-returns > div + div { margin-top: .45rem; }
.impact-returns dt { color: #9be7ca; font-size: .82rem; font-weight: 630; line-height: 1.35; }
.impact-returns dd, .impact-insight p, .shared-learning { margin: 0; color: #e3ece9; font-size: .9rem; line-height: 1.45; }
.shared-learning { margin-top: .65rem; border-left: 2px solid #6cc4a8; padding-left: .6rem; color: #bde8d8; }
.impact-insight { margin-top: .7rem; }
.impact-insight h3 { margin-bottom: .32rem; color: #a7edcf; font-size: .99rem; }
.impact-insight button, .orbit-reset-line button { padding: .25rem 0; color: #c6ded5; font-size: .79rem; text-decoration: underline; text-underline-offset: .19rem; }
.impact-insight button { margin-top: .4rem; }
.orbit-reset-line { margin-top: .35rem; text-align: right; }
.orbit-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; }
.investment-dialog { max-width: calc(100vw - 1rem); width: min(42rem, calc(100vw - 1rem)); max-height: 94vh; max-height: 94dvh; padding: 0; border: none; border-radius: 1.15rem; background: #102d3c; box-shadow: 0 1rem 5rem #06151bb3; overscroll-behavior: contain; }
.proc-figure[data-expanded="true"]::before { content: ""; display: block; height: var(--orbit-reserved-height); }
.investment-dialog::backdrop { background: #051820db; }
.investment-dialog .investment-widget { border-radius: inherit; }
@media (min-width: 841px) {
  .proc-hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(1.8rem, 4.25vw, 4.4rem); }
}
@media (max-width: 840px) {
  .proc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .proc-hero-grid > * { min-width: 0; }
}
@media (max-width: 540px) {
  .proc-figure { max-width: 30rem; width: calc(100% + .75rem); margin-inline: 0; justify-self: center; }
  .investment-head { padding: 1rem .95rem .15rem; }
  .investment-head p { font-size: .88rem; }
  .orbit-toolbar { padding-inline: .65rem; }
  .orbit-legend { gap: .55rem; }
  .orbit-legend span, .orbit-utilities button { font-size: .74rem; }
  .orbit-utilities button { padding-inline: .2rem; }
  .impact-returns > div { grid-template-columns: 1fr; gap: .14rem; }
  .station-caption { top: calc(50% + 5.7cqw + var(--station-growth, 0cqw) + 1.48em); }
}
@media (max-width: 360px) {
  .orbit-legend span::before { width: .7rem; }
  .orbit-utilities svg { width: .8rem; }
  .investment-head h2 { font-size: 1.54rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .network-flow[data-state="idle"] :is(.flow-trace, .flow-particle) { animation: none; }
  .map-node circle, .hub-core { transition: r .65s ease, opacity .45s, stroke .35s; }
  .network-flow .flow-line { transition: opacity .4s, stroke-width .55s; }
  .hub-sweep { animation: investment-ellipse 12s linear infinite; }
  .flow-trace, .flow-particle { animation: investment-travel 4.5s linear infinite; }
  .flow-commission[data-state="selected"] :is(.flow-trace, .flow-particle) { opacity: 1; }
  .flow-return[data-state="selected"] :is(.flow-trace, .flow-particle) { opacity: .95; animation-delay: -2.25s; }
  .flow-return[data-state="funded"] :is(.flow-trace, .flow-particle) { opacity: .55; animation-duration: 6s; }
  .flow-local :is(.flow-trace, .flow-particle) { opacity: .82; animation-delay: -1.2s; }
  .flow-shared :is(.flow-trace, .flow-particle) { opacity: .46; animation-duration: 6s; animation-delay: -3.2s; }
  .investment-widget[data-has-work="true"] .flow-shared :is(.flow-trace, .flow-particle) { opacity: .98; }
  .is-investing .flow-commission[data-state="selected"] .flow-arrival { animation: investment-flight .6s ease-in-out; }
  .is-investing .flow-local .flow-arrival { animation: investment-flight .65s .42s ease-in-out; }
  .is-investing .flow-return[data-state="selected"] .flow-arrival { animation: investment-flight .9s .43s ease-out; }
  .is-investing .flow-shared .flow-arrival { animation: investment-flight 1s .95s ease-in-out; }
  .is-investing .hub-field { animation: investment-hub-beat .78s .17s ease-out; }
  .investment-widget[data-motion-state="still"] .hub-sweep,
  .investment-widget[data-motion-state="still"] .flow-trace,
  .investment-widget[data-motion-state="still"] .flow-particle,
  .investment-widget[data-motion-state="still"] .flow-arrival,
  .investment-widget[data-motion-state="still"] .hub-field { animation-play-state: paused; }
}
@keyframes investment-ellipse { to { stroke-dashoffset: -83; } }
/* A decreasing offset moves forwards along the path. The dot leads by one dash. */
@keyframes investment-travel {
  from { stroke-dashoffset: calc(12px - var(--orbit-lead, 0px)); }
  to { stroke-dashoffset: calc(-88px - var(--orbit-lead, 0px)); }
}
@keyframes investment-flight { 0% { stroke-dashoffset: 13; opacity: 0; } 13% { opacity: 1; } 83% { opacity: 1; } 100% { stroke-dashoffset: -101; opacity: 0; } }
@keyframes investment-hub-beat { 0%, 100% { r: 58; fill-opacity: .045; } 45% { r: 64; fill-opacity: .22; } }
@media print {
  .proc-figure .orbit-fallback[hidden] { display: block; }
  .proc-figure .investment-widget, .investment-dialog { display: none; }
}
