/*
 * {% trace_aside %}: a trace with a note beside it. Stacks on narrow screens,
 * where the trace needs the full width more than the note needs to be beside it.
 */

.trace-aside {
  margin: 1.5rem 0;
  padding: 0;
}

.trace-aside__trace {
  line-height: 0;
}

.trace-aside__note {
  border-left: 3px solid #c2453c;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
}

/* Lane names like alu-1 shouldn't break at their hyphen. */
.trace-aside__note code {
  white-space: nowrap;
}

.trace-aside__note > :last-child {
  margin-bottom: 0;
}

@media (min-width: 64em) {
  .trace-aside {
    align-items: center;
    display: flex;
    gap: 3.5rem;
    position: relative;
  }

  .trace-aside__trace {
    flex: 1 1 auto;
    min-width: 0;
  }

  .trace-aside__note {
    flex: 0 0 16rem;
    margin-top: 0;
  }
}

/* Side by side, an arrow drawn by js/trace-aside.js stands in for the rule. */
.trace-aside--drawn .trace-aside__note {
  border-left: 0;
  padding-left: 0;
}

.trace-aside__overlay {
  height: 100%;
  left: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}
