.sj-history-timeline,
.sj-editions {
  --visual-line: #b6c3d0;
  --visual-accent: #9c431a;
  --visual-strong: #172d48;
  --visual-muted: #4a5e72;
  --visual-wash: #edf4fa;
  color: var(--visual-strong);
}

img:is([src$='/example-dynamic.svg'], [src$='/prototype-lookup.svg'], [src*='/image/visual-refresh/lesson-']) {
  color-scheme: only light;
}

body.dark-theme img:is([src$='/example-dynamic.svg'], [src$='/prototype-lookup.svg'], [src*='/image/visual-refresh/lesson-']) {
  color-scheme: only dark;
  filter: none !important;
}

body.dark-theme :is(.sj-history-timeline, .sj-editions) {
  --visual-line: #53647b;
  --visual-accent: #ffba89;
  --visual-strong: #eef5ff;
  --visual-muted: #c3d4e5;
  --visual-wash: #23384d;
}

.tutorial-para-main .sj-history-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 0;
  margin: 1.5rem auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.sj-history-timeline li {
  position: relative;
  border-top: 1px solid var(--visual-line);
  padding: .85rem .75rem 0 0;
}

.sj-history-timeline li::before {
  position: absolute;
  top: -.27rem;
  left: 0;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--visual-accent);
  content: '';
}

.sj-history-timeline time {
  display: block;
  margin-bottom: .3rem;
  font: 700 1rem/1.5 Consolas, monospace;
  color: var(--visual-accent);
}

.sj-history-timeline p {
  margin: .25rem 0 0;
  color: var(--visual-muted);
}

.sj-editions {
  width: min(100%, 42rem);
  margin: 1.25rem auto;
  text-align: left;
}

.sj-editions #sj-editions-title {
  margin: 0 0 .45rem;
  color: var(--visual-strong);
  font-weight: 700;
}

.sj-editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .75rem;
}

.sj-editions table {
  width: 100%;
  border-collapse: collapse;
}

.sj-editions :is(th, td) {
  padding: .35rem .5rem;
  border-bottom: 1px solid var(--visual-line);
}

.sj-editions thead {
  background: var(--visual-wash);
}

.sj-editions .sj-editions-note {
  margin: .55rem 0 0;
  color: var(--visual-muted);
  font-size: .9em;
}

@media (max-width: 575px) {
  .sj-editions-grid {
    gap: .4rem;
    font-size: .875rem;
  }

  .sj-editions :is(th, td) {
    padding-inline: .25rem;
  }

  .tutorial-para-main .sj-history-timeline {
    display: block;
    margin-left: .3rem;
  }

  .sj-history-timeline li {
    border-top: 0;
    border-left: 1px solid var(--visual-line);
    padding: 0 0 1rem 1rem;
  }

  .sj-history-timeline li::before {
    top: .45rem;
    left: -.29rem;
  }
}