html {
  font-size: 15px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #24292f;
  background: #ffffff;
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 52px;
  padding: 0 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e4e7eb;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #24292f;
  text-decoration: none;
}

.logo img {
  width: 22px;
  height: 22px;
}

.logo small {
  font-weight: 400;
  color: #6e7781;
}

.topbar .links {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-size: .93rem;
}

.topbar .links a {
  color: #57606a;
  text-decoration: none;
}

.topbar .links a:hover {
  color: #2457d6;
}

.version {
  font-size: .78rem;
  padding: .1rem .45rem;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #57606a;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 52px;
  align-self: start;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem 1.25rem;
  border-right: 1px solid #e4e7eb;
  font-size: .92rem;
}

.sidebar h4 {
  margin: 1.4rem 0 .4rem;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8c959f;
}

.sidebar h4:first-child {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li a {
  display: block;
  padding: .28rem .6rem;
  border-radius: 5px;
  color: #424a53;
  text-decoration: none;
}

.sidebar li a:hover {
  background: #f3f5f8;
}

.sidebar li a.active {
  background: #eaf0fd;
  color: #2457d6;
  font-weight: 500;
}

.content {
  padding: 2rem 3rem 4rem;
  max-width: 800px;
}

.content h1 {
  margin: 0 0 .5rem;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.content h2 {
  margin: 2.4rem 0 .7rem;
  padding-top: .4rem;
  font-size: 1.35rem;
  border-top: 1px solid #eef0f3;
}

.content h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.08rem;
}

.content a {
  color: #2457d6;
}

.intro {
  font-size: 1.1rem;
  color: #57606a;
  margin-top: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .88em;
  background: #f3f5f8;
  padding: .12em .35em;
  border-radius: 4px;
}

pre {
  background: #1f2430;
  color: #e6e9ef;
  padding: 1rem 1.15rem;
  border-radius: 7px;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
  margin: 1.5rem 0;
}

.tile {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  color: inherit !important;
  text-decoration: none;
}

.tile:hover {
  border-color: #2457d6;
  box-shadow: 0 1px 6px rgba(36, 87, 214, .08);
}

.tile strong {
  display: block;
  margin-bottom: .25rem;
  color: #24292f;
}

.tile span {
  font-size: .9rem;
  color: #57606a;
}

.callout {
  margin: 1.3rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid #d4a72c;
  background: #fff8e5;
  border-radius: 0 6px 6px 0;
  font-size: .94rem;
}

.callout.info {
  border-left-color: #2457d6;
  background: #f1f5fe;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .92rem;
}

th, td {
  text-align: left;
  padding: .5rem .65rem;
  border-bottom: 1px solid #e4e7eb;
  vertical-align: top;
}

th {
  font-weight: 600;
  background: #f6f8fa;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .4rem 0 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
}

.method {
  padding: .12rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: #ffffff;
}

.method.get { background: #1a7f37; }
.method.post { background: #2457d6; }
.method.delete { background: #cf222e; }

.release {
  margin-bottom: 2rem;
}

.release .date {
  color: #8c959f;
  font-size: .9rem;
  margin-left: .4rem;
  font-weight: 400;
}

.tag {
  display: inline-block;
  min-width: 4.6rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #57606a;
}

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eef0f3;
  font-size: .93rem;
}

.foot {
  margin-top: 3rem;
  font-size: .82rem;
  color: #8c959f;
}

.notfound {
  max-width: 520px;
  margin: 14vh auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.notfound .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 4.5rem;
  font-weight: 700;
  color: #d0d7de;
  margin: 0;
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e4e7eb;
  }

  .content {
    padding: 1.5rem 1.25rem 3rem;
  }

  .topbar .links {
    display: none;
  }
}
