/* The house palette, so the docs read as the same product as the dashboard.
 *
 * Overrides only — mdBook's own theme does the layout, and a fork of it would
 * be a thing to re-merge on every upgrade for no gain. The variables below are
 * the ones the default themes are built out of.
 *
 * The accent is the dashboard's primary: a sharp green that survives both
 * themes. Everything else is left alone deliberately; a docs site that looks
 * hand-made in ways the reader has to learn is a docs site that is harder to
 * read. */

:root {
  --postrun-accent: #65c30d;
  --postrun-accent-dark: #7ee01a;
}

.light {
  --links: #4d9a06;
  --sidebar-active: var(--postrun-accent);
  --inline-code-color: #b5155c;
}

.navy, .coal, .ayu {
  --links: var(--postrun-accent-dark);
  --sidebar-active: var(--postrun-accent-dark);
}

/* The one structural change: the default measure is generous for prose and too
 * wide for a reference full of tables and JSON, where a reader's eye is
 * travelling between columns rather than along a line. */
.content main {
  max-width: 52rem;
}

/* Tables carry most of the reference. The default has no rules between rows,
 * which is fine for three rows and unreadable at twenty. */
.content table {
  width: 100%;
  border-collapse: collapse;
}
.content table td,
.content table th {
  border: 1px solid var(--table-border-color);
  padding: 0.4rem 0.6rem;
  vertical-align: top;
}
.content table th {
  text-align: left;
}

/* A wide code block or table scrolls inside itself rather than pushing the
 * page sideways. */
.content pre,
.content table {
  overflow-x: auto;
  display: block;
}
