/* Doc pages. The generator does not overwrite this file.
   css.css sets `* + * { margin-top }`, which separates table cells and
   inline elements. Zero that margin inside doc content. */
.logo a { color: inherit; }
.logo a:hover { color: inherit; }

.doc { min-width: 0; }
.doc h1 {
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding-bottom: calc(var(--line-height) / 2);
}
.doc h2 {
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding-top: calc(var(--line-height) * 2);
  padding-bottom: calc(var(--line-height) / 4);
}
.doc p {
  padding-top: var(--line-height);
  padding-bottom: var(--line-height);
}
.doc p *,
.doc li *,
.doc th *,
.doc td *,
.doc h1 *,
.doc h2 *,
.doc h3 *,
.doc table,
.doc thead,
.doc tbody,
.doc tr,
.doc th,
.doc td,
.doc ul,
.doc ol,
.doc li {
  margin-top: 0;
}
.doc ul, .doc ol {
  padding-top: var(--line-height);
  padding-bottom: var(--line-height);
  padding-left: 0;
  list-style: none;
}
.doc ol { counter-reset: doc-item; }
.doc ol li { counter-increment: doc-item; }
.doc ul li::before { content: '·  '; font-weight: var(--font-weight-bold); }
.doc ol li::before {
  content: counter(doc-item) '. ';
  font-weight: var(--font-weight-bold);
}
.doc li { line-height: var(--line-height); }
.doc ul li + li { margin-top: 0.5em; }
.doc-table { overflow-x: auto; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-small);
}
.doc th, .doc td {
  border-bottom: var(--border-thickness) solid var(--text-color);
  padding: calc(var(--line-height) / 4) 1ch calc(var(--line-height) / 4) 0;
  text-align: left;
  vertical-align: top;
  line-height: var(--line-height);
  overflow-wrap: anywhere;
}
.doc th {
  color: var(--text-color-alt);
  font-weight: var(--font-weight-bold);
}
.doc table.commands th:first-child,
.doc table.commands td:first-child {
  width: 32ch;
  min-width: 32ch;
  white-space: nowrap;
  overflow-wrap: normal;
}
.doc table.status th:first-child,
.doc table.status td:first-child {
  width: 16ch;
  min-width: 16ch;
  white-space: nowrap;
  overflow-wrap: normal;
}
.doc :not(pre) > code { font-size: var(--font-size-small); }
.doc pre code { font-size: inherit; }

/* Individual API references sit beneath the HTTP API overview. */
.tui-nav .nav-subitem { padding-left: 2ch; }

/* Keep all language references reachable on shorter displays. */
@media (min-width: 721px) {
  .tui-nav {
    max-height: calc(100dvh - var(--line-height) * 2);
    overflow-y: auto;
  }
}
@media (max-width: 720px) {
  .tui-nav { position: static; }
}
