/* Google Cloud documentation inspired reader for /docs/*. */
body.page-node-type-doc {
  background: #fff;
  color: #202124;
  font-family: "Google Sans", Roboto, "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

body.page-node-type-doc header[role="banner"],
body.page-node-type-doc .region-header,
body.page-node-type-doc footer[role="contentinfo"],
body.page-node-type-doc #block-mercury-page-title,
body.page-node-type-doc .block-page-title-block {
  display: none !important;
}

body.page-node-type-doc main,
body.page-node-type-doc .layout-container,
body.page-node-type-doc .page-content,
body.page-node-type-doc .region-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-node-type-doc .page-title {
  display: none;
}

.doc-appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid #dadce0;
  background: #fff;
}

.doc-appbar-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1440px;
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #202124 !important;
  text-decoration: none;
}

body.page-node-type-doc .doc-appbar .doc-brand img {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 27px !important;
  max-height: 27px !important;
}

.doc-brand span {
  padding-left: 12px;
  border-left: 1px solid #dadce0;
  color: #5f6368;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.doc-topnav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}

.doc-topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #5f6368 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.doc-topnav a:hover {
  background: #f8f9fa;
  color: #202124 !important;
}

.doc-topnav a.is-active {
  color: #0e62fe !important;
}

.doc-topnav a.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #0e62fe;
}

.doc-appbar-spacer {
  flex: 1;
}

.doc-appbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.doc-lang-links {
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
}

.doc-lang-links a {
  color: #5f6368 !important;
  text-decoration: none;
}

.doc-lang-links a.is-active {
  color: #0e62fe !important;
}

.doc-account-link {
  padding: 7px 13px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #0e62fe !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.doc-account-link:hover {
  background: #f8fbff;
  border-color: #c7dbf4;
}

/* Reader layout */
body.page-node-type-doc .doc-page {
  padding: 0 !important;
  background: #fff !important;
}

body.page-node-type-doc .docs-wrap {
  max-width: 1440px;
  padding: 0 32px;
}

body.page-node-type-doc .doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 230px;
  gap: 38px;
  align-items: start;
  padding: 28px 0 72px;
}

body.page-node-type-doc .doc-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  padding: 4px 20px 20px 0;
  overflow: auto;
  border-right: 1px solid #e8eaed;
  background: #fff;
}

.doc-sidebar-title {
  margin: 0 0 18px;
  color: #5f6368;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.doc-group {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #f1f3f4;
}

.doc-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
  padding: 4px 8px;
  color: #202124;
  font-size: 13px;
  font-weight: 700;
}

.doc-group-title span {
  color: #9aa0a6;
  font-size: 11px;
  font-weight: 500;
}

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

.doc-group a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: #5f6368 !important;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.doc-group a:hover {
  background: #f1f3f4;
  color: #202124 !important;
}

.doc-group a.is-active {
  background: #e8f0fe;
  color: #0e62fe !important;
  font-weight: 600;
}

body.page-node-type-doc .doc-main {
  min-width: 0;
  max-width: 900px;
}

.doc-breadcrumb {
  margin: 0 0 20px;
  color: #5f6368;
  font-size: 12px;
}

.doc-breadcrumb a {
  color: #5f6368 !important;
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  color: #0e62fe !important;
}

.doc-breadcrumb i {
  margin: 0 8px;
  color: #9aa0a6;
  font-style: normal;
}

.doc-title {
  margin: 0 0 12px;
  color: #202124;
  font-family: var(--doc-font, "Google Sans", Roboto, "Noto Sans SC", Arial, sans-serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e8eaed;
  color: #5f6368;
  font-size: 12px;
}

.doc-meta .doc-restricted {
  padding: 1px 8px;
  border: 1px solid #8fb4ff;
  border-radius: 999px;
  background: #e9f1ff;
  color: #0b3b9a;
}

.doc-body {
  max-width: 860px;
  color: #3c4043;
  font-size: 15px;
  line-height: 1.85;
}

.doc-body h2 {
  margin: 38px 0 13px;
  color: #202124;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.doc-body h3 {
  margin: 28px 0 10px;
  color: #202124;
  font-size: 18px;
  font-weight: 500;
  scroll-margin-top: 80px;
}

.doc-body p {
  margin: 0 0 15px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.doc-body li {
  margin: 7px 0;
}

.doc-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.doc-body th,
.doc-body td {
  padding: 10px 12px;
  border: 1px solid #e8eaed;
  text-align: left;
}

.doc-body th {
  background: #f8f9fa;
  color: #3c4043;
  font-weight: 500;
}

.doc-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e8eaed;
  border-radius: 4px;
}

.doc-body code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #f1f3f4;
  color: #c5221f;
  font-size: .9em;
}

.doc-body pre {
  padding: 16px 18px;
  overflow: auto;
  border-radius: 6px;
  background: #202124;
  color: #e8eaed;
  font-size: 13px;
  line-height: 1.6;
}

.doc-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.doc-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
}

.doc-download strong {
  display: block;
  color: #202124;
  font-size: 13px;
}

.doc-download span {
  display: block;
  margin-top: 2px;
  color: #5f6368;
  font-size: 12px;
}

.doc-btn,
.doc-download .doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid #0e62fe;
  border-radius: 4px;
  background: #0e62fe;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.doc-btn:hover {
  border-color: #0a4fd6;
  background: #0a4fd6;
  color: #fff !important;
}

.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #e8eaed;
}

.doc-pager-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #0e62fe !important;
  text-decoration: none;
}

.doc-pager-item:hover {
  background: #f8fbff;
}

.doc-pager-item span {
  color: #5f6368;
  font-size: 11px;
}

.doc-pager-item strong {
  font-size: 13px;
  font-weight: 500;
}

/* Right-hand table of contents. */
body.page-node-type-doc .doc-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  padding: 4px 0 20px 18px;
  overflow: auto;
  border-left: 1px solid #e8eaed;
}

.doc-toc-title {
  margin: 0 0 12px;
  color: #202124;
  font-size: 12px;
  font-weight: 700;
}

.doc-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc-list li {
  margin: 0;
}

.doc-toc-list li.is-sub {
  padding-left: 12px;
}

.doc-toc-list a {
  display: block;
  padding: 5px 0;
  color: #5f6368 !important;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.doc-toc-list a:hover,
.doc-toc-list a.is-active {
  color: #0e62fe !important;
}

/* Restricted-document gate. */
.doc-locked {
  max-width: 620px;
  padding: 30px 0;
}

.doc-locked-icon {
  font-size: 30px;
  line-height: 1;
}

.doc-locked h2 {
  margin: 16px 0 8px;
  color: #202124;
  font-size: 22px;
  font-weight: 500;
}

.doc-locked p {
  color: #5f6368;
  font-size: 14px;
}

.doc-locked-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.doc-locked-link {
  color: #0e62fe !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 1180px) {
  body.page-node-type-doc .doc-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
  }

  body.page-node-type-doc .doc-toc {
    display: none;
  }
}

@media (max-width: 820px) {
  .doc-appbar-inner {
    gap: 12px;
    padding-inline: 16px;
  }

  .doc-brand span,
  .doc-topnav,
  .doc-lang-links {
    display: none;
  }

  body.page-node-type-doc .docs-wrap {
    padding-inline: 16px;
  }

  body.page-node-type-doc .doc-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  body.page-node-type-doc .doc-sidebar {
    position: static;
    max-height: none;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #e8eaed;
  }

  .doc-title {
    font-size: 28px;
  }

  .doc-pager {
    grid-template-columns: 1fr;
  }

  .doc-download {
    align-items: flex-start;
    flex-direction: column;
  }
}
