@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;600&display=swap");

:root {
  --content-max-width: 1100px;
  --page-padding: 24px;
}

body,
.content {
  font-family: "Source Sans 3", "Open Sans", sans-serif;
  font-size: 15px;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-family: "Source Sans 3", "Open Sans", sans-serif;
}

.content {
  padding: 12px 5px 50px;
}

.content main,
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content p,
.content li,
.content a,
.content dl,
.content dt,
.content dd,
.content table th,
.content table td,
.content table th code,
.content table td code,
.content table th a,
.content table td a,
.content pre > code,
.content :not(pre) > code,
.sidebar .chapter li a,
.menu-title {
  overflow-wrap: break-word;
  word-break: normal;
}

.content main > p,
.content main > ul,
.content main > ol,
.content main > blockquote,
.content main > h1,
.content main > h2,
.content main > h3,
.content main > h4,
.content main > h5,
.content main > h6 {
  max-width: 78ch;
}

.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

.content table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1em;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: "Source Sans 3", "Open Sans", sans-serif;
  font-size: 13.5px;
}

.content table th,
.content table td {
  padding: 4px 6px;
  vertical-align: top;
  font-family: "Source Sans 3", "Open Sans", sans-serif;
  font-size: 13.5px;
}

.content table th code,
.content table td code,
.content table th a,
.content table td a {
  white-space: normal;
}

.content img,
.content video,
.content svg,
.mermaid svg {
  max-width: 100%;
  height: auto;
}

.content .mermaid {
  text-align: center;
}

.content .mermaid svg {
  display: block;
  margin-inline: auto;
}

.content pre {
  max-width: 100%;
  overflow-x: auto;
}

.content pre,
.content pre > code,
.content :not(pre) > code {
  font-family: "Source Code Pro", Consolas, "Liberation Mono", Menlo, monospace !important;
  font-size: 13px;
}

.content pre > code {
  white-space: pre-wrap;
}

.content :not(pre) > code {
  white-space: normal;
}

@media only screen and (max-width: 620px) {
  :root {
    --page-padding: 12px;
  }

  .content {
    padding: 8px 10px 40px;
  }

  .content main,
  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h5,
  .content h6,
  .content p,
  .content li,
  .content a,
  .content dl,
  .content dt,
  .content dd,
  .content table th,
  .content table td,
  .content table th code,
  .content table td code,
  .content table th a,
  .content table td a,
  .content pre > code,
  .content :not(pre) > code,
  .sidebar .chapter li a,
  .menu-title {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .content pre > code {
    padding: 0.75rem;
  }

  .content main > p,
  .content main > ul,
  .content main > ol,
  .content main > blockquote,
  .content main > h1,
  .content main > h2,
  .content main > h3,
  .content main > h4,
  .content main > h5,
  .content main > h6 {
    max-width: none;
  }
}
