/* ==========================================================================
   STORYBOARD: SECOND BRAIN (2026-11-09)
   Page-specific layer on top of storyboard.css (the sb3 system).
   Loaded after storyboard.css on second-brain-story.html only.
   Prefix: ssb. The designed map of linked facts lives here: round
   points for facts, people and projects, with lines that join them.
   ========================================================================== */

/* The designed map of linked facts -------------------------------------- */
.ssb-graph {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  aspect-ratio: 600 / 430;
  margin: 0 auto;
}
.ssb-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ssb-graph svg line {
  stroke: rgba(18, 184, 176, 0.55);
  stroke-width: 1.5;
}
.ssb-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(7, 12, 24, 0.92);
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: center;
  max-width: 190px;
}
.ssb-node strong { display: block; font-weight: 600; font-size: 15px; }
.ssb-node span { color: var(--text-muted); font-size: 12.5px; }
.ssb-node-main {
  border-color: rgba(18, 184, 176, 0.75);
  padding: 14px 18px;
  max-width: 220px;
}
.ssb-node-main strong { font-size: 17px; }

/* Pinned stage layout ------------------------------------------------------ */
.ssb-stage-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 104px;
}
#seqS-graph { width: min(600px, calc(100vw - 48px)); }
.ssb-recall {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  z-index: 5;
  width: min(620px, calc(100vw - 48px));
  background: rgba(7, 12, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 24px 26px 20px;
  opacity: 0;
}
.ssb-recall .r-q {
  margin-left: auto;
  max-width: 92%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 4px 14px;
  padding: 12px 15px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}
.ssb-recall .r-a {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
}
.ssb-recall .r-a p { margin: 0; }
.ssb-recall .r-src {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Static map chapter ------------------------------------------------------- */
.ssb-map-fig { margin: 44px 0 8px; max-width: 760px; }
.ssb-map-box {
  background: radial-gradient(ellipse 90% 90% at 50% 40%, rgba(2, 132, 199, 0.14), rgba(7, 12, 24, 0.4) 75%);
  border-radius: 20px;
  padding: 34px 10px 22px;
}

/* Fallback map: compact on phone ------------------------------------------- */
.ssb-fallback-graph { margin: 10px 0 30px; }
.ssb-fallback-graph .ssb-graph { width: 100%; }
.ssb-fallback-graph .ssb-node { font-size: 11.5px; padding: 7px 9px; max-width: 132px; }
.ssb-fallback-graph .ssb-node strong { font-size: 12.5px; }
.ssb-fallback-graph .ssb-node span { font-size: 10.5px; }

/* Guided-journey exit -------------------------------------------------------- */
.sb3-exit { padding: 40px 0 10px; }
.sb3-exit-link {
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}
.sb3-exit-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.sb3-exit .sb3-support { margin-top: 12px; }

@media (max-width: 820px) {
  .ssb-stage-wrap { padding-top: 80px; }
}
