:root {
  --bg: #eef1f5;
  --paper: #fbfbfc;
  --text: #242932;
  --muted: #66707a;
  --line: #c8ced6;
  --rule: #9aa7b4;
  --soft: #f4f6f8;
  --accent: #7b3541;
  --accent-soft: #f3e5e8;
  --link: #315f8c;
  --table-head: #e7edf4;
  --table-line: #b9c3cf;
  --code: #edf1f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.48 Arial, Helvetica, sans-serif;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 2px solid var(--rule);
  background: #e4e8ee;
  padding: 18px 14px;
}

.brand {
  border-bottom: 2px solid var(--rule);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  margin-bottom: 13px;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.nav-filter {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 8px;
  color: var(--text);
  background: var(--paper);
  font: inherit;
}

.search-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 9px;
  text-transform: uppercase;
}

.search-results {
  border-bottom: 2px solid var(--rule);
  border-top: 2px solid var(--rule);
  margin-top: 12px;
  padding: 6px 0;
}

.search-result {
  display: block;
  border-left: 3px solid transparent;
  color: var(--text);
  padding: 7px 8px 8px 9px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: #4a222a;
}

.search-result-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.search-result-snippet {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.28;
  margin-top: 3px;
}

mark {
  background: #f2d36f;
  color: var(--text);
  padding: 0 0.08em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 14px;
}

.nav a {
  display: block;
  border-left: 3px solid transparent;
  padding: 6px 8px 6px 9px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: #4a222a;
}

.content {
  width: min(100%, 930px);
  min-height: 100vh;
  background: var(--paper);
  padding: 38px 50px 84px;
}

.doc-meta {
  color: var(--muted);
  border-top: 2px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 30px;
  padding-top: 9px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  border-bottom: 2px solid var(--rule);
  font-size: 2rem;
  margin: 0 0 22px;
  padding-bottom: 12px;
}

h2 {
  border-top: 1px solid var(--rule);
  font-size: 1.22rem;
  margin: 38px 0 10px;
  padding-top: 10px;
}

h3 {
  font-size: 1.02rem;
  margin: 26px 0 8px;
}

h4 {
  font-size: 0.92rem;
  margin: 20px 0 8px;
}

p,
ul,
ol,
blockquote,
table,
figure,
pre {
  margin: 13px 0;
}

ul,
ol {
  padding-left: 1.45rem;
}

li + li {
  margin-top: 4px;
}

blockquote {
  border: 1px solid #e0c7cc;
  background: #fbf4f5;
  color: var(--text);
  padding: 11px 14px;
}

code {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--code);
  padding: 0.08em 0.28em;
  font-size: 0.92em;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  padding: 14px;
}

pre code {
  background: transparent;
  padding: 0;
}

figure {
  margin: 22px 0;
}

figure.logo-figure {
  margin: 0 0 24px;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

figure img.logo-image {
  border: 0;
  width: min(100%, 300px);
}

figure img.screen-image {
  width: 512px;
  max-width: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

@media (max-width: 620px) {
  figure img.screen-image {
    width: 384px;
  }
}

@media (max-width: 460px) {
  figure img.screen-image {
    width: 256px;
  }
}

@media (max-width: 330px) {
  figure img.screen-image {
    width: 128px;
  }
}

figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
}

.table-wrap {
  border-bottom: 2px solid var(--rule);
  border-top: 2px solid var(--rule);
  margin: 18px 0 22px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9rem;
  line-height: 1.34;
}

th,
td {
  border: 0;
  border-bottom: 1px solid var(--table-line);
  padding: 7px 9px;
  vertical-align: top;
}

th {
  background: var(--table-head);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--text);
  font-weight: 700;
}

table.cols-2 th:first-child,
table.cols-2 td:first-child {
  min-width: 12rem;
  width: 30%;
}

table.cols-3 th:first-child,
table.cols-3 td:first-child {
  min-width: 9rem;
  width: 22%;
}

table.cols-4 th,
table.cols-4 td {
  padding: 6px 8px;
}

table code {
  background: var(--paper);
  white-space: nowrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 2px solid var(--rule);
}

.pager a {
  max-width: 46%;
  text-decoration: none;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 2px solid var(--rule);
  }

  .content {
    padding: 28px 18px 56px;
  }

  h1 {
    font-size: 1.55rem;
  }

  table.cols-2 th:first-child,
  table.cols-2 td:first-child,
  table.cols-3 th:first-child,
  table.cols-3 td:first-child {
    min-width: 10rem;
  }
}
