/**
 * @file
 * Lightning multi-hop routing / HTLC demo styling.
 */
.wl-edu-rt {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border-left: 3px solid #5b8dff;
}

/* Route: node — link — node — link — node */
.wl-edu-rt__route { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.wl-edu-rt__node {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 4.2rem; padding: 0.5rem 0; border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.14));
}
.wl-edu-rt__icon { width: 1.7rem; height: 1.7rem; display: block; }
.wl-edu-rt__node--a { color: #5b8dff; }
.wl-edu-rt__node--b { color: #94a3b8; }
.wl-edu-rt__node--c { color: #f7931a; }
.wl-edu-rt__who { font-size: 0.72rem; font-weight: 700; margin-top: 0.25rem; color: rgba(255, 255, 255, 0.85); }
.wl-edu-rt__link {
  flex: 1 1 auto; position: relative; min-width: 0; align-self: center;
  height: 4px; margin: 0 0.15rem; border-radius: 2px; background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease;
}
.wl-edu-rt__link.is-locked { background: #fbbf24; }
.wl-edu-rt__link.is-settled { background: #34d399; }
.wl-edu-rt__badge {
  position: absolute; left: 50%; top: -1.5rem; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.68rem; font-weight: 700; padding: 0.1rem 0.4rem;
  border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
}
.wl-edu-rt__link.is-locked .wl-edu-rt__badge { color: #fbbf24; }
.wl-edu-rt__link.is-settled .wl-edu-rt__badge { color: #34d399; }

/* Secret / hash panel */
.wl-edu-rt__crypto {
  margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.7rem;
  padding: 0.7rem 0.85rem; border-radius: 10px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1));
}
.wl-edu-rt__k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, rgba(255, 255, 255, 0.55)); align-self: center; }
.wl-edu-rt__v { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); word-break: break-all; }
.wl-edu-rt__v.is-revealed { color: #34d399; }
.wl-edu-rt__check { grid-column: 1 / -1; font-size: 0.78rem; color: #34d399; margin-top: 0.15rem; }

.wl-edu-rt__narr { margin: 0.95rem 0 0; font-size: 0.9rem; line-height: 1.5; min-height: 3.2rem; color: var(--color-text-muted, rgba(255, 255, 255, 0.82)); }

.wl-edu-rt__controls { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.wl-edu-rt__btn {
  padding: 0.5rem 0.9rem; border-radius: 7px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.2));
  background: rgba(26, 78, 255, 0.16); color: var(--color-accent-secondary, #5b8dff);
  transition: transform 0.08s ease, background 0.15s ease;
}
.wl-edu-rt__btn:hover:not(:disabled) { background: rgba(26, 78, 255, 0.28); transform: translateY(-1px); }
.wl-edu-rt__btn--ghost { background: transparent; color: var(--color-text-muted, rgba(255, 255, 255, 0.6)); }
.wl-edu-rt__btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 520px) {
  .wl-edu-rt__node { width: 3.3rem; }
  .wl-edu-rt__badge { font-size: 0.6rem; }
}
