/* MATSOFF Program Content Neural Engine · motion polish */
#program{background:#070a0d;color:#f1eee6}
#program .section-heading h2{color:#f1eee6}
#program .section-heading h2 span{color:#b8b2a9!important}

.neural-program{margin-top:12px}
.neural-hint{
  display:flex;align-items:center;gap:10px;margin:0 0 18px;
  color:#9b9c9a;font-size:14px;line-height:1.4
}
.neural-hint span{color:#efbd79;text-shadow:0 0 14px rgba(239,189,121,.45)}

.neural-layout{
  display:grid;
  grid-template-columns:minmax(330px,.72fr) minmax(0,1.78fr);
  height:620px;
  border:1px solid rgba(224,178,120,.2);
  background:linear-gradient(135deg,#07111a,#050708 72%);
  overflow:hidden
}

/* Compact scrollable topic rail eliminates the tall empty right-hand area. */
.neural-topic-list{
  height:620px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(224,178,120,.34) rgba(255,255,255,.025);
  border-right:1px solid rgba(241,238,230,.12);
  background:rgba(3,6,8,.66)
}
.neural-topic-list::-webkit-scrollbar{width:7px}
.neural-topic-list::-webkit-scrollbar-track{background:rgba(255,255,255,.02)}
.neural-topic-list::-webkit-scrollbar-thumb{background:rgba(224,178,120,.3);border-radius:8px}

.neural-topic-button{
  position:relative;
  width:100%;min-height:58px;
  display:grid;grid-template-columns:54px minmax(0,1fr) 24px;
  gap:12px;align-items:center;
  padding:10px 16px;
  border:0;border-bottom:1px solid rgba(241,238,230,.085);
  background:transparent;color:#d9d5ce;text-align:left;cursor:pointer;
  transition:background .28s ease,box-shadow .28s ease,color .28s ease,transform .28s ease
}
.neural-topic-button:last-child{border-bottom:0}
.neural-topic-button>span{color:#d99d55;font:400 19px/1 Georgia,"Times New Roman",serif}
.neural-topic-button>strong{font-size:15.5px;line-height:1.35;font-weight:500}
.neural-topic-button>i{
  position:relative;
  width:10px;height:10px;
  justify-self:end;border-radius:50%;
  border:1px solid rgba(188,192,195,.5);
  background:#070a0d;
  transition:background .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s ease
}
.neural-topic-button:hover,
.neural-topic-button:focus-visible,
.neural-topic-button.is-active{
  background:linear-gradient(90deg,rgba(183,124,66,.27),rgba(183,124,66,.075));
  box-shadow:inset 0 0 0 1px rgba(224,178,120,.5);
  color:#fff
}
.neural-topic-button.is-active>i{
  border-color:#f0bd77;
  background:#f0bd77;
  box-shadow:0 0 7px #f0bd77,0 0 18px rgba(240,189,119,.9),0 0 34px rgba(240,189,119,.46);
  transform:scale(1.08)
}
.neural-topic-button.is-active:after{
  content:"";
  position:absolute;
  right:-1px;top:50%;
  width:18px;height:1px;
  background:linear-gradient(90deg,#f0bd77,rgba(240,189,119,.15));
  box-shadow:0 0 9px rgba(240,189,119,.65)
}
.neural-topic-button:focus-visible{outline:2px solid #e0b278;outline-offset:-3px}

/* Network stage */
.neural-network{
  position:relative;
  height:620px;
  min-width:0;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 18% 50%,rgba(183,124,66,.1),transparent 24%),
    radial-gradient(circle at 76% 48%,rgba(17,36,56,.15),transparent 38%)
}
.neural-canvas{position:relative;width:100%;height:620px;z-index:2}
.neural-canvas:after{
  content:"";
  position:absolute;inset:0;pointer-events:none;opacity:.28;
  background-image:radial-gradient(circle,rgba(232,194,137,.16) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(circle at 28% 50%,#000 0,transparent 54%)
}

/* Active-topic impulse: source dot -> hub */
.neural-source-line{
  position:absolute;
  left:0;top:var(--source-y,310px);
  width:var(--source-length,180px);height:1px;
  z-index:8;
  transform:rotate(var(--source-angle,0deg));
  transform-origin:0 50%;
  background:linear-gradient(90deg,rgba(240,189,119,.9),rgba(240,189,119,.32));
  box-shadow:0 0 8px rgba(240,189,119,.42);
  opacity:0;
  transition:opacity .16s ease
}
.neural-network.is-pulsing .neural-source-line{opacity:1}
.neural-source-pulse{
  position:absolute;left:0;top:50%;
  width:9px;height:9px;border-radius:50%;
  transform:translate(-50%,-50%);
  background:#ffd39a;
  box-shadow:0 0 8px #ffd39a,0 0 18px rgba(240,189,119,.98),0 0 34px rgba(240,189,119,.58);
  opacity:0
}
.neural-network.is-pulsing .neural-source-pulse{
  animation:neural-source-flight .48s cubic-bezier(.22,.82,.2,1) both
}
@keyframes neural-source-flight{
  0%{left:0;opacity:0;transform:translate(-50%,-50%) scale(.45)}
  12%{opacity:1}
  80%{opacity:1}
  100%{left:100%;opacity:0;transform:translate(-50%,-50%) scale(1.15)}
}

/* Central nucleus: no ambiguous letters, only a luminous core. */
.neural-orbit{
  position:absolute;left:18%;top:50%;
  border:1px dotted rgba(224,178,120,.18);
  border-radius:50%;transform:translate(-50%,-50%);
  opacity:.72
}
.neural-orbit-a{width:176px;height:176px}
.neural-orbit-b{width:286px;height:286px}
.neural-hub{
  position:absolute;left:18%;top:50%;
  width:76px;height:76px;
  display:grid;place-items:center;
  border:1px solid rgba(224,178,120,.66);
  border-radius:50%;transform:translate(-50%,-50%);
  background:radial-gradient(circle,#0e151b,#090d11 68%);
  box-shadow:0 0 26px rgba(224,178,120,.22),inset 0 0 24px rgba(224,178,120,.08);
  z-index:6
}
.neural-hub:before,.neural-hub:after{
  content:"";position:absolute;border:1px solid rgba(224,178,120,.19);border-radius:50%
}
.neural-hub:before{inset:-16px}
.neural-hub:after{inset:-36px}
.neural-core-dot{
  width:14px;height:14px;border-radius:50%;
  background:#ffd19a;
  box-shadow:0 0 8px #ffd19a,0 0 22px rgba(240,189,119,.92),0 0 48px rgba(240,189,119,.46);
  transform:scale(.72)
}
.neural-hub i{
  position:absolute;right:-5px;width:9px;height:9px;border-radius:50%;
  background:#f0c586;box-shadow:0 0 14px #f0c586
}
.neural-network.is-ready .neural-core-dot{
  animation:neural-core-arrival .58s .32s cubic-bezier(.2,.85,.2,1) both
}
@keyframes neural-core-arrival{
  0%{transform:scale(.55);filter:brightness(.8)}
  55%{transform:scale(1.65);filter:brightness(1.5)}
  100%{transform:scale(1);filter:brightness(1)}
}
.neural-topic-name{
  position:absolute;left:3.5%;top:59%;
  max-width:220px;color:#a9adb0;font-size:14px;line-height:1.42;
  opacity:.9
}

/* Outgoing paths animate after the incoming pulse hits the core. */
.neural-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.neural-lines path{
  fill:none;stroke:rgba(224,178,120,.82);stroke-width:1.45;
  filter:drop-shadow(0 0 6px rgba(224,178,120,.36));
  stroke-dasharray:1100;stroke-dashoffset:1100;
  transition:stroke-dashoffset .72s cubic-bezier(.25,.72,.22,1) .38s
}
.neural-network.is-ready .neural-lines path{stroke-dashoffset:0}

/* Branches fly out from left in a staggered sequence. */
.neural-branches{position:absolute;inset:0;z-index:4}
.neural-branch{
  position:absolute;left:41%;width:56%;
  display:grid;grid-template-columns:minmax(175px,.78fr) minmax(230px,1.22fr);
  gap:14px;align-items:center;
  opacity:0;
  transform:translate3d(-42px,0,0) scale(.985);
  filter:blur(2px);
  transition:
    opacity .42s ease var(--branch-delay,560ms),
    transform .55s cubic-bezier(.2,.82,.22,1) var(--branch-delay,560ms),
    filter .42s ease var(--branch-delay,560ms)
}
.neural-network.is-ready .neural-branch{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
.neural-branch-1{top:5%}.neural-branch-2{top:20.5%}.neural-branch-3{top:36%}.neural-branch-4{top:51.5%}.neural-branch-5{top:67%}.neural-branch-6{top:82.5%}
.neural-branch-main{
  min-height:54px;
  display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;
  padding:9px 14px;
  border:1px solid rgba(224,178,120,.38);border-radius:20px;
  background:rgba(7,11,15,.94);
  box-shadow:0 0 20px rgba(0,0,0,.28),inset 0 0 18px rgba(224,178,120,.025)
}
.neural-branch-main>span{color:#e0b278;font-size:18px;text-align:center}
.neural-branch-main>strong{color:#eeeae3;font-size:15px;line-height:1.3;font-weight:500}
.neural-subnodes{display:grid;gap:4px}
.neural-subnodes span{
  position:relative;min-height:23px;
  display:flex;align-items:center;
  padding:3px 11px 3px 18px;
  border:1px solid rgba(241,238,230,.1);border-radius:12px;
  background:rgba(7,10,13,.8);color:#bfc0bf;
  font-size:13px;line-height:1.25;
  opacity:0;transform:translateX(-18px);
  transition:
    opacity .32s ease var(--sub-delay,780ms),
    transform .42s cubic-bezier(.2,.82,.22,1) var(--sub-delay,780ms)
}
.neural-network.is-ready .neural-subnodes span{opacity:1;transform:none}
.neural-subnodes span:before{
  content:"";position:absolute;left:6px;width:4px;height:4px;border-radius:50%;
  background:#d79c56;box-shadow:0 0 8px rgba(215,156,86,.8)
}

@media(max-width:1180px){
  .neural-layout{grid-template-columns:minmax(290px,.86fr) 1.55fr}
  .neural-branch{left:38%;width:59%;grid-template-columns:minmax(160px,.72fr) 1.28fr}
  .neural-branch-main>strong{font-size:14px}
  .neural-subnodes span{font-size:12px}
}

@media(max-width:900px){
  .neural-layout{height:auto;grid-template-columns:1fr;overflow:visible}
  .neural-topic-list{
    height:auto;max-height:410px;
    border-right:0;border-bottom:1px solid rgba(241,238,230,.12)
  }
  .neural-topic-button{min-height:58px}
  .neural-network{height:auto;min-height:650px}
  .neural-canvas{height:650px}
  .neural-source-line{display:none}
  .neural-hub{left:18%;top:14%}
  .neural-orbit{left:18%;top:14%}
  .neural-topic-name{left:31%;top:9%;max-width:58%;font-size:15px}
  .neural-lines{display:none}
  .neural-branches{position:absolute;left:0;right:0;top:150px;bottom:auto}
  .neural-branch{
    position:relative;left:auto!important;top:auto!important;width:auto;
    grid-template-columns:1fr;margin:8px 16px;gap:6px;
    transform:translateY(14px)
  }
  .neural-network.is-ready .neural-branch{transform:none}
  .neural-branch-main{border-radius:16px}
}

@media(max-width:560px){
  .neural-topic-button{grid-template-columns:46px 1fr 22px;padding:11px 13px}
  .neural-topic-button>strong{font-size:15px}
  .neural-topic-button>span{font-size:18px}
  .neural-network{min-height:690px}
  .neural-canvas{height:690px}
  .neural-hub{width:68px;height:68px}
  .neural-subnodes span{font-size:12px}
  .neural-hint{font-size:13px}
}

@media(prefers-reduced-motion:reduce){
  .neural-source-pulse{animation:none!important}
  .neural-core-dot{animation:none!important}
  .neural-lines path{transition:none;stroke-dashoffset:0}
  .neural-branch,.neural-subnodes span{transition:none;opacity:1;transform:none;filter:none}
}

/* ==========================================================================
   SEMANTIC MAP v2 · WHAT / HOW / WITH WHAT / OUTPUT / PROJECT
   ========================================================================== */

.neural-pane-label{
  color:#9a958e;
  font-size:12px;
  line-height:1.3;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.neural-pane-label-left{
  position:sticky;
  top:0;
  z-index:12;
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border-bottom:1px solid rgba(241,238,230,.1);
  background:rgba(4,7,9,.96);
  color:#d9a567;
}
.neural-pane-label-right{
  position:absolute;
  left:24px;
  top:18px;
  z-index:12;
  color:#d9a567;
}
.neural-topic-list{
  padding-top:0;
}
.neural-topic-name{
  top:56%;
  color:#d8d4cc;
  font-size:15px;
  line-height:1.45;
}
.neural-branch-1{top:9%}
.neural-branch-2{top:26%}
.neural-branch-3{top:43%}
.neural-branch-4{top:60%}
.neural-branch-5{top:77%}
.neural-branch-6{display:none}
.neural-branch-main{
  min-height:56px;
}
.neural-branch-main>strong{
  font-size:15px;
}
.neural-subnodes span{
  min-height:24px;
  font-size:13px;
}
.finance-neural-note{
  margin:16px 0 28px;
  color:#8c8983;
  font-size:14px;
  line-height:1.55;
}
body[data-program="VM-FIN-201"] .neural-program{
  margin-bottom:34px;
}

@media(max-width:900px){
  .neural-pane-label-right{
    position:relative;
    left:auto;
    top:auto;
    min-height:42px;
    display:flex;
    align-items:center;
    padding:0 16px;
    border-bottom:1px solid rgba(241,238,230,.1);
    background:rgba(4,7,9,.72);
  }
  .neural-topic-name{top:10%}
  .neural-branches{top:162px}
}


/* ==========================================================================
   SEMANTIC MAP v2.1 · overlap fix + canonical labels
   ========================================================================== */

.neural-topic-name{
  left:2.5%;
  top:61%;
  width:31%;
  max-width:240px;
  padding:8px 10px;
  color:#d8d4cc;
  font-size:15px;
  line-height:1.35;
  text-align:center;
  background:linear-gradient(90deg,rgba(7,10,13,.9),rgba(7,10,13,.56),transparent);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  z-index:7;
}

.neural-branches{
  position:absolute;
  left:0;
  right:0;
  top:54px;
  bottom:28px;
  z-index:4;
  display:grid;
  grid-template-rows:repeat(5,minmax(88px,1fr));
  gap:9px;
}

.neural-branch,
.neural-branch-1,
.neural-branch-2,
.neural-branch-3,
.neural-branch-4,
.neural-branch-5{
  position:relative;
  left:auto;
  top:auto;
  width:auto;
  margin-left:41%;
  margin-right:3%;
  display:grid;
  grid-template-columns:minmax(200px,.82fr) minmax(0,1.18fr);
  gap:14px;
  align-items:center;
}

.neural-branch-main{
  min-height:52px;
  border-radius:18px;
}

.neural-branch-main>strong{
  font-size:14px;
  line-height:1.22;
  text-transform:none;
}

.neural-subnodes{
  min-width:0;
  display:grid;
  gap:4px;
}

.neural-subnodes span{
  min-height:24px;
  padding-top:5px;
  padding-bottom:5px;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media(max-width:1180px){
  .neural-topic-name{
    width:29%;
    max-width:210px;
    font-size:14px;
  }
  .neural-branch,
  .neural-branch-1,
  .neural-branch-2,
  .neural-branch-3,
  .neural-branch-4,
  .neural-branch-5{
    margin-left:38%;
    margin-right:2.5%;
    grid-template-columns:minmax(175px,.76fr) minmax(0,1.24fr);
    gap:11px;
  }
  .neural-branch-main>strong{font-size:13px}
  .neural-subnodes span{font-size:12px}
}

@media(max-width:900px){
  .neural-topic-name{
    left:31%;
    top:9%;
    width:60%;
    max-width:none;
    padding:0;
    text-align:left;
    background:none;
    -webkit-line-clamp:2;
  }
  .neural-branches{
    position:absolute;
    left:0;
    right:0;
    top:162px;
    bottom:auto;
    display:block;
  }
  .neural-branch,
  .neural-branch-1,
  .neural-branch-2,
  .neural-branch-3,
  .neural-branch-4,
  .neural-branch-5{
    position:relative;
    left:auto!important;
    top:auto!important;
    width:auto;
    margin:8px 16px;
    grid-template-columns:1fr;
    gap:6px;
  }
}
