html {
  font-size: 1em;
  line-height: 1.5;
}

body {
  padding: 0;
}

a {
  color: blue;
  text-decoration: underline;
}

a:focus,
a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin: 0.875em 0;
}

pre,
pre[class*="language-"] {
  margin: 1.5em auto;
  padding-top: 0;
  padding-bottom: 0;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

code,
code[class*="language-"] {
  margin: 0;
  padding: 0;
  font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 13px;
}

section {
  margin: 2.25em 0;
}

section section {
  margin: 1.875em 0;
}

h1 {
  font-size: 2.25rem;
}

section h1 {
  font-size: 1.875rem;
  border-bottom: 1px solid #ddd;
}

section section h1 {
  font-size: 1.5rem;
  border-bottom: 0;
}

h1 svg {
  vertical-align: middle;
}

h1 svg:last-child {
  margin-right: 0.25em;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

table thead tr th {
  padding: 0.5em 0.75em;
}

table tbody tr td {
  border-top: 1px solid #ddd;
  padding: 0.5em 0.75em;
}

.nb-main {
  margin: 0 auto;
  max-width: 80em;
}

.nb-legend__gradient {
  display: block;
  line-height: 1;
  width: 100%;
  height: 1em;
  border: 1px solid #ddd;
}

.nb-table--palettes {
  width: 100%;
}

.nb-table--palettes thead tr th {
  white-space: nowrap;
}

.nb-table--palettes tbody tr th,
.nb-table--palettes tbody tr td {
  vertical-align: middle;
}

.nb-table--palettes tbody tr td:nth-child(1),
.nb-table--palettes tbody tr td:nth-child(2),
.nb-table--palettes tbody tr td:nth-child(4),
.nb-table--palettes tbody tr td:nth-child(5) {
  width: 10%;
}

.nb-table--palettes tbody tr td:nth-child(3),
.nb-table--palettes tbody tr td:nth-child(6) {
  width: 30%;
}

.nb-table--sequential-palettes tbody tr td:nth-child(3),
.nb-table--sequential-palettes tbody tr td:nth-child(6),
.nb-table--diverging-palettes tbody tr td:nth-child(3),
.nb-table--diverging-palettes tbody tr td:nth-child(6) {
  white-space: nowrap;
}

.nb-discrete-palettes-preview,
.nb-discrete-palettes-all {
  margin-top: 0.25em;
}

.nb-discrete-palettes-all {
  display: none;
}

.nb-table--palettes .nb-swatch {
  display: inline-block;
  line-height: 1;
  width: 1.25em;
  height: 1.25em;
  border: 1px solid #ddd;
}

.nb-table--palettes .nb-legend__gradient {
  height: 1.25em;
}

.nb-table--palettes .nb-legend__gradient + .nb-swatch-list {
  margin-top: 0.375em;
}

.nb-table--diverging-palettes .nb-swatch-list {
  text-align: center;
}

.nb-table--palettes .variables tbody tr td {
  border: 0;
  padding: 0;
  width: auto;
  text-align: left;
  white-space: nowrap;
}

.nb-table--palettes .variables tbody tr td svg {
  vertical-align: middle;
}

.nb-table--palettes .variables tbody tr td:nth-child(1) {
  padding-right: 0.5em;
  text-align: right;
}

.nb-table--palettes .variables tbody tr td:nth-child(2) {
  width: 100%;
}
