*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #100d0b;
}

#orbit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
}

body {
  background: transparent;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tagline {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #8b949e;
  letter-spacing: 0.5px;
}

main {
  width: 100%;
  max-width: 1600px;
  padding: 1rem 1rem 2rem;
  flex: 1;
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

#sankey {
  flex: 3;
  min-width: 0;
  height: 70vh;
}

#detail-panel {
  flex: 1;
  min-width: 0;
  height: 70vh;
  border-left: 1px solid #30363d;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#detail-panel .panel-instruction {
  color: #8b949e;
  font-style: italic;
  font-size: 0.9rem;
  margin: auto 0;
  text-align: center;
}

#detail-panel .panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e6edf3;
  border-bottom: 1px solid #30363d;
  padding-bottom: 0.5rem;
}

#detail-panel .panel-subtitle {
  font-size: 0.85rem;
  color: #8b949e;
  margin-top: -0.25rem;
}

#detail-panel .panel-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#detail-panel .panel-items li::before {
  content: "· ";
  color: #8b949e;
}

#detail-panel .panel-items li {
  font-size: 0.875rem;
  color: #c9d1d9;
  line-height: 1.5;
}

#detail-panel .panel-items a {
  color: #58a6ff;
  text-decoration: none;
  word-break: break-word;
}

#detail-panel .panel-items a:hover {
  text-decoration: underline;
}

#detail-panel .panel-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #58a6ff;
  text-decoration: none;
}

#detail-panel .panel-link:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.social-icons a {
  color: #8b949e;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: #e6edf3;
  transform: scale(1.1);
}

.social-icons svg {
  fill: currentColor;
}
