body {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
  color: #24292f;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-top: 1.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d0d7de;
}

code {
  padding: 0.15em 0.35em;
  background: #f6f8fa;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

pre {
  padding: 16px;
  overflow: auto;
  background: #f6f8fa;
  border-radius: 6px;
}

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

blockquote {
  margin-left: 0;
  padding-left: 1em;
  color: #57606a;
  border-left: 4px solid #d0d7de;
}

table {
  border-collapse: collapse;
}

th, td {
  padding: 6px 13px;
  border: 1px solid #d0d7de;
}

/* Layout used by the generated TP pages. */
body.tp-page {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.tp-shell {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 52rem) 11.5rem;
  gap: 2rem;
  width: min(100% - 3rem, 88rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.tp-content {
  min-width: 0;
  padding: 0 2rem 3rem;
  background: #ffffff;
  border: 1px solid #d8dde2;
  box-shadow: 0 1px 2px rgb(36 41 47 / 5%);
}

.tp-content #title-block-header { display: none; }

.tp-content h1,
.tp-content h2,
.tp-content h3 { color: #202122; }

.tp-content h1 {
  margin-top: 1.25em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.tp-content h2 { margin-top: 2.4em; font-size: 1.45rem; }
.tp-content h3 { margin-top: 2em; font-size: 1.14rem; }

.tp-toc,
.tp-menu {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-size: 0.86rem;
  line-height: 1.35;
}

.tp-home {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #336e7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.tp-panel-title {
  margin: 0 0 0.65rem;
  color: #54595d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tp-disclosure > summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.tp-disclosure > summary::-webkit-details-marker { display: none; }

.tp-toc ul,
.tp-menu nav {
  margin: 0;
  padding: 0;
  border-top: 1px solid #c8ccd1;
}

.tp-toc li { list-style: none; }

.tp-toc a,
.tp-menu nav a {
  display: block;
  padding: 0.42rem 0;
  color: #336e7b;
  text-decoration: none;
}

.tp-toc a { border-bottom: 1px solid #eaecf0; }
.tp-toc a[data-level="1"] { font-weight: 700; }
.tp-toc a[data-level="2"] { padding-left: 0.45rem; }

.tp-toc a[data-level="3"] {
  padding-left: 0.9rem;
  color: #54595d;
  font-size: 0.81rem;
}

.tp-menu nav a { border-bottom: 1px solid #eaecf0; }

.tp-toc a:hover,
.tp-menu nav a:hover,
.tp-home:hover {
  color: #202122;
  text-decoration: underline;
}

.tp-resources-title { margin-top: 1.8rem; }

@media (max-width: 1120px) {
  .tp-shell { grid-template-columns: 11.5rem minmax(0, 1fr); }

  .tp-menu {
    position: static;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .tp-menu .tp-resources-title { margin-top: 0; }
}

@media (max-width: 760px) {
  .tp-shell {
    display: flex;
    flex-direction: column;
    width: min(100% - 2rem, 52rem);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    gap: 0.75rem;
  }

  .tp-toc,
  .tp-menu {
    position: static;
    align-self: stretch;
    width: 100%;
    margin: 0;
  }

  .tp-toc { order: 0; }
  .tp-home { margin-bottom: 0.75rem; }
  .tp-toc ul { columns: 1; }
  .tp-content {
    order: 1;
    padding: 0 1.1rem 1.25rem;
    overflow-wrap: anywhere;
  }

  .tp-content pre {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
  }

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

  .tp-content table { display: block; max-width: 100%; overflow-x: auto; }
  .tp-menu { display: block; order: 2; }
  .tp-menu-section + .tp-menu-section { margin-top: 0.9rem; }
  .tp-menu .tp-resources-title { margin-top: 0; }

  .tp-disclosure {
    border: 1px solid #d8dde2;
    border-radius: 6px;
    background: #ffffff;
  }

  .tp-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 0;
    padding: 0.7rem 0.9rem;
  }

  .tp-disclosure > summary::after { content: "+"; font-size: 1.1rem; }
  .tp-disclosure[open] > summary::after { content: "-"; }
  .tp-disclosure nav { padding: 0 0.9rem 0.5rem; }
  .tp-toc a { min-height: 44px; box-sizing: border-box; }
  .tp-menu nav a {
    min-height: 36px;
    box-sizing: border-box;
    padding: 0.25rem 0;
  }
}

@media print {
  .tp-shell { display: block; width: 100%; padding: 0; }
  .tp-toc,
  .tp-menu { display: none; }
  .tp-content { border: 0; box-shadow: none; }
}
