/* User manual: layout on top of the landing styles (/_landing/style.css). */

.manual {
  padding: 32px 0 72px;
}

.manual .wrap {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .manual .wrap {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 15px;
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }
}

.toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin: 0 0 8px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc ol ol {
  padding-left: 14px;
  margin: 2px 0 8px;
}

.toc a {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.doc {
  min-width: 0;
  max-width: 760px;
}

.doc h1 {
  margin-top: 0;
}

.doc > section {
  padding-top: 8px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.doc h2,
.doc h3 {
  scroll-margin-top: 88px;
}

.doc h3 {
  margin-top: 28px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 4px 0;
}

.doc kbd,
.doc .ui {
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0;
}

.note p {
  margin: 0;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.shots figure {
  margin: 0;
  flex: 0 1 220px;
}

.shots figure.wide {
  flex: 1 1 100%;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shots figcaption {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 6px;
}

.roles {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

.roles th,
.roles td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-scroll {
  overflow-x: auto;
}

.changes dt {
  font-weight: 600;
  margin-top: 12px;
}

.changes dd {
  margin: 2px 0 0;
}

/* On narrow screens the contents list shows only the top level. */
@media (max-width: 959px) {
  .toc ol ol {
    display: none;
  }
}
