.reference-preview .legacy-hidden-copy {
  display: inline !important;
}

.reference-preview .hero h1 {
  overflow-wrap: normal;
  hyphens: manual;
}

.reference-preview .reference-copy p + p,
.reference-preview .ueber-text p + p,
.reference-preview .split p + p {
  margin-top: 1rem;
}

.reference-preview .reference-copy a,
.reference-preview .ueber-text a,
.reference-preview .split-dark a {
  color: inherit;
}

.reference-preview .sec-title {
  display: block;
}

.reference-preview .sec-title h2,
.reference-preview .ueber-text h2,
.reference-preview .split h2 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reference-preview .reference-machine {
  align-self: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
}

.preview-switcher {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem;
  color: #fff;
  background: rgba(10, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.preview-switcher__label {
  padding-inline: 0.55rem 0.35rem;
  color: #b9c5c7;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-switcher a {
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  color: #fff;
  border-radius: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.preview-switcher a:hover,
.preview-switcher a[aria-current="page"] {
  background: #1d4ed8;
}

.preview-switcher .preview-switcher__original {
  min-width: auto;
  margin-left: 0.2rem;
  padding-inline: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 0.45rem 0.45rem 0;
}

@media (max-width: 900px) {
  .reference-preview .split {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .preview-switcher {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .preview-switcher__label {
    width: 100%;
    padding: 0.2rem 0;
    text-align: center;
  }
}
