/*
 * P16/P17 documents: ST6 §8 at 1440 (text 792 + 24 + aside 384) and 390
 * (one column), ST9 P16-01.
 */

.ti28-document__layout {
  display: grid;
  gap: var(--ti28-gap);
  align-items: start;
}

.ti28-document__layout > * {
  min-width: 0;
}

.ti28-document__meta {
  margin-bottom: var(--ti28-space-4);
}

.ti28-document__toc {
  margin-bottom: var(--ti28-space-5);
}

.ti28-document__toc h2 {
  margin: 0 0 var(--ti28-space-2);
  font-size: var(--ti28-text-h-section);
}

.ti28-document__toc ol {
  margin: 0;
  padding-left: var(--ti28-space-5);
}

.ti28-document__toc li {
  margin-bottom: var(--ti28-space-1);
}

.ti28-document__toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ti28-target-min);
  color: var(--ti28-link-light);
}

.ti28-document__body h2 {
  margin: var(--ti28-space-6) 0 var(--ti28-space-3);
  font-size: var(--ti28-text-h-section);
}

.ti28-document__body h3 {
  margin: var(--ti28-space-5) 0 var(--ti28-space-2);
  font-size: var(--ti28-text-h-card);
}

.ti28-document__body p,
.ti28-document__body li {
  overflow-wrap: anywhere;
}

/* A table that cannot wrap scrolls in its own box; the page never does. */
.ti28-document__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.ti28-document__aside h2 {
  margin: 0 0 var(--ti28-space-3);
  font-size: var(--ti28-text-h-section);
}

.ti28-document__aside p {
  margin: 0 0 var(--ti28-space-3);
}

@media (min-width: 1024px) {
  .ti28-document__layout {
    grid-template-columns: minmax(0, 792fr) minmax(0, 384fr);
  }

  .ti28-document__aside {
    position: sticky;
    top: var(--ti28-space-4);
  }
}
