/* Compatibility layer for long XSM technical pages whose anchors and content are preserved. */
.xsm-legacy-content #left,
.xsm-legacy-content #main,
.xsm-legacy-content #mainfullwidth {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.xsm-legacy-content #left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.xsm-legacy-content:has(> #left) {
  display: grid;
  grid-template-columns: minmax(15rem, .75fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: start;
}

.xsm-legacy-content #left .block {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border-color, #d8e0e8);
  border-radius: .45rem;
  background: #f7f9fb;
}

.xsm-legacy-content #main > img,
.xsm-legacy-content #mainfullwidth > img,
.xsm-legacy-content img {
  max-width: 100%;
  height: auto;
}

.xsm-legacy-content table {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.xsm-legacy-content th,
.xsm-legacy-content td {
  padding: .65rem .75rem;
  border: 1px solid #cfd9e3;
  vertical-align: top;
}

.xsm-legacy-content th,
.xsm-legacy-content tr:nth-child(even) {
  background: #f1f5f8;
}

.xsm-legacy-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #cfd9e3;
  border-radius: .35rem;
  background: #f5f7f9;
  color: #172330;
  white-space: pre;
}

.xsm-legacy-content blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: .3rem solid #3977a9;
  background: #eef4f8;
}

.xsm-legacy-content h1,
.xsm-legacy-content h2,
.xsm-legacy-content h3,
.xsm-legacy-content h4 {
  clear: both;
}

.xsm-legacy-content .clear {
  clear: both;
}

.xsm-legacy-content center {
  text-align: left;
}

.xsm-legacy-content font[color="red"] {
  color: #a32626;
}

.xsm-legacy-content font[color="darkgreen"] {
  color: #176b45;
}

@media (max-width: 760px) {
  .xsm-legacy-content:has(> #left) {
    grid-template-columns: 1fr;
  }

  .xsm-legacy-content {
    overflow-wrap: anywhere;
  }

  .xsm-legacy-content table {
    display: block;
    overflow-x: auto;
  }
}
