/*
  Look and layout of the GitBook site that sdk.zello.com ran on, measured from
  the live site at 1440px wide: blue header bar, Inter throughout, a 288px
  sidebar, 768px content column and 256px "On this page" column.
*/

:root {
  --zello-blue: #346ddb;
  --zello-text: #1c1d1f;
  --zello-muted: #5f636c;
  --zello-border: #e2e6ec;
  --zello-hint-bg: #f7f7f7;
  --zello-code-bg: #f9fafb;
  --zello-inline-code-bg: #f6f7fa;

  --md-primary-fg-color: var(--zello-blue);
  --md-primary-fg-color--light: #5a8be4;
  --md-primary-fg-color--dark: #2857b8;
  --md-primary-bg-color: #fff;
  --md-accent-fg-color: var(--zello-blue);
  --md-typeset-a-color: var(--zello-blue);
  --md-default-fg-color: var(--zello-text);
  --md-default-fg-color--light: var(--zello-muted);
  --md-code-bg-color: var(--zello-code-bg);
  --md-code-fg-color: var(--zello-text);
}

/* The theme sets its code colors on <body>, which beats :root. */
[data-md-color-scheme="default"] {
  --md-code-bg-color: var(--zello-code-bg);
  --md-code-fg-color: var(--zello-text);
}

body {
  color: var(--zello-text);
  font-feature-settings: normal;
}

/* GitBook sets text with Inter's default spacing; the theme tightens it ~1%. */
.md-typeset {
  letter-spacing: normal;
}

/* ---------- Header: full-width blue bar, white title, search on the right ---------- */

.md-header {
  height: 64px;
  background-color: var(--zello-blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.md-header__inner {
  height: 64px;
  padding: 0 32px;
}

.md-header__button.md-logo {
  margin: 0 12px 0 0;
  padding: 0;
}

.md-header__button.md-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.md-header__title {
  margin-left: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* No repository link in the header (the theme reserves a slot for one). */
.md-header__source {
  display: none;
}

/* Search: GitBook's translucent box at the right edge of the header, typed
   into in place with results dropping down beneath (javascripts/search.js).
   Narrow screens keep the theme's search icon and dialog. */
.zello-search {
  position: relative;
  margin-left: auto;
}

@media screen and (min-width: 60em) {
  .md-header .md-search,
  .md-header label[for="__search"] {
    display: none;
  }
}

@media screen and (max-width: 59.984375em) {
  .zello-search {
    display: none;
  }
}

.zello-search__box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 224px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.zello-search__box:hover,
.zello-search__box:focus-within {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.zello-search__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.zello-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font: inherit;
}

.zello-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.zello-search__count {
  flex: none;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.zello-search__keys {
  display: flex;
  gap: 2px;
}

.zello-search__keys[hidden],
.zello-search__count[hidden] {
  display: none;
}

.zello-search__keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: var(--zello-blue);
  box-shadow: none;
  color: #fff;
  font-family: var(--md-text-font-family);
  font-size: 12px;
  line-height: 1;
}

.zello-search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 512px;
  max-height: min(480px, calc(100vh - 96px));
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--zello-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  color: var(--zello-text);
}

.zello-search__results li {
  margin: 0;
}

.zello-search__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
}

[aria-selected="true"] > .zello-search__result {
  background: rgba(52, 109, 219, 0.08);
}

.zello-search__result-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.zello-search__section {
  color: var(--zello-muted);
  font-size: 12px;
  line-height: 16px;
}

.zello-search__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.zello-search__detail {
  overflow: hidden;
  color: var(--zello-muted);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zello-search__detail mark {
  background: none;
  color: var(--zello-text);
  font-weight: 600;
}

.zello-search__enter {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--zello-blue);
  color: #fff;
  font-size: 12px;
}

[aria-selected="true"] > .zello-search__result .zello-search__enter {
  display: inline-flex;
}

.zello-search__chevron {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--zello-muted);
}

[aria-selected="true"] > .zello-search__result .zello-search__chevron {
  display: none;
}

.zello-search__empty {
  padding: 16px 12px;
  color: var(--zello-muted);
  font-size: 14px;
}

/* Keep the site name in the header; GitBook doesn't swap it for the page title on scroll. */
.md-header__topic + .md-header__topic {
  display: none;
}

.md-header__title .md-header__topic {
  font-weight: 600;
}

.md-header__title--active .md-header__topic {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 0;
}

/* ---------- Columns ---------- */

.md-grid {
  max-width: 1440px;
}

.md-main__inner {
  margin-top: 0;
  padding: 0 32px;
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 288px;
  }

  .md-sidebar--secondary {
    width: 256px;
  }

  .md-content {
    max-width: 832px;
  }

  [dir] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-left: 48px;
  }

  [dir] .md-sidebar--secondary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-right: 16px;
  }

  .md-main .md-content__inner {
    padding-top: 0;
  }

  /* The theme caps sidebar contents at 230px with padding; use the full column. */
  [dir] .md-sidebar .md-sidebar__inner {
    padding-right: 0;
  }

  .md-content .md-path {
    margin-left: 48px;
  }

  /* GitBook's nav pills start 12px left of the column's text edge and stop 8px short. */
  .md-sidebar--primary .md-nav--primary {
    margin: 0 8px 0 -12px;
  }
}

.md-sidebar {
  top: 64px;
  padding-top: 24px;
}

.md-sidebar--primary {
  padding-top: 32px;
}

/* ---------- Left sidebar ---------- */

.md-nav {
  font-size: 14px;
  line-height: 20px;
}

.md-nav--primary .md-nav__link {
  margin: 0;
  padding: 6px 6px 6px 12px;
  border-radius: 6px;
  color: var(--zello-muted);
}

.md-nav--primary .md-nav__list {
  gap: 0;
}

.md-nav--primary .md-nav__item {
  padding: 0;
  margin-bottom: 2px;
}

/* GitBook hover: a light gray pill with dark text, on both sidebars. */
.md-sidebar .md-nav .md-nav__link {
  transition: color 0.15s, background-color 0.15s;
}

.md-sidebar .md-nav--primary .md-nav__link:hover,
.md-sidebar .md-nav--primary .md-nav__link[href]:hover,
.md-sidebar .md-nav--secondary .md-nav__link[href]:hover {
  background: #f0f2f6;
  color: var(--zello-text);
}

.md-sidebar .md-nav--primary .md-nav__link.md-nav__link--active,
.md-sidebar .md-nav--primary .md-nav__link.md-nav__link--active:hover {
  background: none;
  cursor: default;
  color: var(--zello-blue);
  font-weight: 600;
}

/* Section labels: "CORE CONCEPTS", "INSTALLATION GUIDES", ... */
.md-nav--primary .md-nav__item--section {
  margin-top: 22px;
}

/* The previous section's last item already adds 2px. */
.md-nav--primary .md-nav__item--section + .md-nav__item--section {
  margin-top: 20px;
}

.md-nav--primary .md-nav__item--section > .md-nav__link {
  padding: 0 0 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--zello-text);
  background: none;
}

.md-nav--primary .md-nav__item--section > .md-nav {
  margin-left: 0;
}

/* Arrow on sidebar links that leave the site, pushed to the right edge like GitBook. */
.md-nav--primary a.md-nav__link[href^="http"] {
  display: flex;
  justify-content: space-between;
}

.md-nav--primary a.md-nav__link[href^="http"]::after {
  content: "↗";
  margin-left: 8px;
  color: var(--zello-muted);
}

/* ---------- Right column: "On this page" ----------
   Entries line up 32px in from the column edge; nested headings hang off a
   thin gray line, 12px further in per level, like GitBook's outline. */

@media screen and (min-width: 76.25em) {
  .md-sidebar--secondary .md-nav--secondary {
    padding-left: 32px;
  }
}

.md-nav--secondary .md-nav__title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 12px 12px;
  background: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--zello-muted);
}

.md-nav--secondary .md-nav__title::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round"><path d="M2 4h20M9 12h13M9 20h13M2 12v8"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round"><path d="M2 4h20M9 12h13M9 20h13M2 12v8"/></svg>') center / contain no-repeat;
}

.md-nav--secondary .md-nav__list,
.md-nav--secondary .md-nav__item {
  margin: 0;
  padding: 0;
}

.md-nav--secondary > .md-nav__list > .md-nav__item + .md-nav__item {
  margin-top: 8px;
}

/* The theme already indents each nested level by 12px. */
.md-nav--secondary .md-nav__list {
  gap: 0;
}

.md-nav--secondary .md-nav {
  margin-top: 0;
}

.md-nav--secondary > .md-nav__list > .md-nav__item > .md-nav {
  margin-top: 2px;
}

.md-nav--secondary .md-nav__link {
  display: block;
  margin: 0;
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--zello-muted);
  font-size: 14px;
  line-height: 20px;
}

.md-nav--secondary .md-nav .md-nav__link {
  border-left: 1px solid #d5d9e0;
  border-radius: 0 6px 6px 0;
}

.md-sidebar .md-nav--secondary .md-nav__link.md-nav__link--active,
.md-sidebar .md-nav--secondary .md-nav__link.zello-toc-current {
  color: var(--zello-blue);
  font-weight: 400;
}


/* ---------- Page text ---------- */

.md-typeset {
  font-size: 16px;
  line-height: 26px;
  color: var(--zello-text);
}

/* Nav and TOC titles are wrapped in a .md-typeset span; let them take the link's color and size. */
.md-nav__link .md-typeset {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.md-typeset p,
.md-typeset ul,
.md-typeset ol,
.md-typeset table,
.md-typeset pre {
  margin-top: 20px;
  margin-bottom: 0;
}

.md-typeset h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  letter-spacing: -0.9px;
  color: var(--zello-text);
}

.md-typeset h2 {
  margin: 50px 0 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.375px;
}

.md-typeset h3 {
  margin: 38px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.3px;
}

.md-typeset h4 {
  margin: 30px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.25px;
}

.md-typeset h1 + p.zello-lead {
  margin-top: 0;
}

.md-typeset .zello-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--zello-muted);
}

.md-typeset li {
  margin-bottom: 8px;
  line-height: 24px;
}

/* GitBook puts numbered-list text 28px in, and each nesting level another 28px. */
[dir] .md-typeset ol,
[dir] .md-typeset :is(ol, ul) li ol {
  margin-left: 0;
}

[dir] .md-typeset ol li {
  margin-left: 28px;
}

/* Breadcrumb above the title: just the section, small and blue. */
.md-path {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 34px;
  font-size: 12px;
  line-height: 16px;
}

.md-content__inner {
  padding-top: 0;
}

/* Pages without a breadcrumb (the home page) start lower, like GitBook: title 32px under the header. */
.md-main .md-content > .md-content__inner:not(.md-path ~ .md-content__inner) {
  padding-top: 18px;
}

.md-content > .md-content__inner > h1:first-of-type {
  margin-top: 6px;
}

.md-path__link {
  color: var(--zello-blue);
}

/* Links: blue, softly underlined, with an arrow when they leave the site. */
.md-typeset a {
  color: var(--zello-blue);
  text-decoration: underline;
  text-decoration-color: rgba(52, 109, 219, 0.4);
  text-underline-offset: 2px;
}

.md-typeset a:hover {
  color: #181d26;
}

.md-typeset a[href^="http"]:not(.headerlink):not(.zello-pager__link):not(.zello-page-actions__item)::after {
  content: "↗";
  margin-left: 2px;
  font-size: 0.75em;
}

/* Heading anchors: GitBook shows a "#" icon 24px left of the heading on hover
   only, and nothing on click. Replaces the theme's trailing pilcrow. */
.md-typeset :is(h1, h2, h3, h4, h5, h6) {
  position: relative;
}

[dir] .md-typeset .headerlink,
[dir] .md-typeset :target > .headerlink {
  position: absolute;
  left: -24px;
  top: calc((1lh - 16px) / 2);
  width: 16px;
  height: 16px;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  color: var(--zello-text);
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round"><path d="M6.5 1.5 4.5 14.5M11.5 1.5 9.5 14.5M2 5.5h12.5M1.5 10.5H14"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round"><path d="M6.5 1.5 4.5 14.5M11.5 1.5 9.5 14.5M2 5.5h12.5M1.5 10.5H14"/></svg>') center / contain no-repeat;
  opacity: 0;
  transform: none;
  transition: opacity 0.15s;
  text-decoration: none;
}

[dir] .md-typeset :is(h1, h2, h3, h4, h5, h6):hover > .headerlink,
[dir] .md-typeset :is(h1, h2, h3, h4, h5, h6) > .headerlink:focus-visible {
  opacity: 1;
}

.md-typeset img {
  border-radius: 4px;
}

/* GitBook shows a standalone image as a centered block. */
.md-typeset p:has(> img:only-child) {
  margin-top: 24px;
  text-align: center;
}

.md-typeset p > img:only-child {
  display: block;
  margin: 0 auto;
}

/* ---------- Copy split button beside the title (GitBook's page actions) ---------- */

.zello-page-actions {
  position: relative;
  float: right;
  z-index: 3;
  margin: 14px 0 0 16px;
}

/* With a breadcrumb, GitBook lines the button up with the breadcrumb row instead. */
.md-content .md-path ~ .md-content__inner .zello-page-actions {
  margin-top: -32px;
}

.zello-page-actions__group {
  display: flex;
}

.zello-page-actions__group > button {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5d9e0;
  background: #fff;
  color: var(--zello-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.zello-page-actions__group > button:hover {
  color: var(--zello-text);
  background: #f0f2f6;
}

.zello-page-actions__copy {
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  line-height: 17.5px;
}

.zello-page-actions__toggle {
  padding: 4px;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0;
}

.zello-page-actions__copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.zello-page-actions__toggle svg {
  width: 16px;
  height: 16px;
}

.zello-page-actions__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.zello-page-actions__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 8px;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.zello-page-actions__menu[hidden] {
  display: none;
}

.md-typeset .zello-page-actions__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--zello-text);
  font: inherit;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.md-typeset .zello-page-actions__item:hover {
  background: #f0f2f6;
  color: var(--zello-text);
}

.zello-page-actions__item > svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: var(--zello-muted);
}

.zello-page-actions__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zello-page-actions__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.zello-page-actions__hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--zello-muted);
}

/* Off-site entries get the same small arrow as other external links. */
a.zello-page-actions__item[href^="http"] .zello-page-actions__title::after {
  content: " ↗";
  font-size: 0.75em;
  line-height: 1;
  color: var(--zello-muted);
}

.md-typeset .zello-page-actions__divider {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--zello-border);
}

/* Quotes: thin light bar, muted text, like GitBook. */
[dir] .md-typeset blockquote {
  margin: 20px 0 0;
  padding: 12px 0 12px 24px;
  border-left: 2px solid #d5d9e0;
  color: var(--zello-muted);
}

.md-typeset blockquote > :first-child {
  margin-top: 0;
}

.md-typeset blockquote > :last-child {
  margin-bottom: 0;
}

/* ---------- Tables ---------- */

/* Search box GitBook put above longer tables (javascripts/table-search.js). */
.zello-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
  padding: 6px 10px;
  border: 1px solid #d5d9e0;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zello-table-search:focus-within {
  border-color: #b6cdf6;
  box-shadow: 0 0 0 2px #b6cdf6, 0 10px 15px -3px #e3e9f5, 0 4px 6px -4px #e3e9f5;
}

.zello-table-search__icon,
.zello-table-search__clear {
  display: flex;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zello-muted);
}

.zello-table-search__clear {
  cursor: pointer;
}

.zello-table-search__clear:hover {
  color: var(--zello-text);
}

.zello-table-search__icon[hidden],
.zello-table-search__clear[hidden] {
  display: none;
}

.zello-table-search svg {
  width: 14px;
  height: 14px;
}

.zello-table-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--zello-text);
  font: inherit;
  font-size: 14px;
  line-height: 21px;
}

.zello-table-search__input::placeholder {
  color: rgba(95, 99, 108, 0.72);
}

/* The table follows the box directly. */
.md-typeset .zello-table-search + .md-typeset__scrollwrap,
.md-typeset .zello-table-search + table {
  margin-top: 0;
}

.md-typeset .md-typeset__scrollwrap[hidden] {
  display: none;
}

.md-typeset .zello-table-search__empty {
  margin: 0;
  padding: 32px 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--zello-muted);
}

.md-typeset .zello-table-search__empty[hidden] {
  display: none;
}

.md-typeset__table {
  width: 100%;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  /* GitBook gives every column an equal share; this also keeps widths steady while filtering. */
  table-layout: fixed;
  /* No outer frame: GitBook draws only the lines between rows and columns. */
  border: 0;
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  padding: 8px 12px;
  background: none;
  font-weight: 500;
  border-bottom: 1px solid var(--zello-border);
}

.md-typeset table:not([class]) td {
  padding: 8px 12px;
  border-top: 1px solid var(--zello-border);
  vertical-align: middle;
}

.md-typeset table:not([class]) tr:first-child td {
  border-top: 0;
}

.md-typeset table:not([class]) th:not(:last-child),
.md-typeset table:not([class]) td:not(:last-child) {
  border-right: 1px solid var(--zello-border);
}

.md-typeset table:not([class]) tbody tr:hover {
  background: none;
  box-shadow: none;
}

.md-typeset table:not([class]) td p,
.md-typeset table:not([class]) td ul,
.md-typeset table:not([class]) td ol {
  margin-top: 8px;
}

.md-typeset table:not([class]) td > :first-child {
  margin-top: 0;
}

/* Per-table looks GitBook stored with the table (not in its Markdown), applied with a wrapping
   <div class="..." markdown> in the page source. */

/* Header row shown as a gray rounded band ("And 2 installation packages" on the home page). */
.md-typeset .zello-table-header-card table:not([class]) th {
  border-top: 1px solid var(--zello-border);
  border-bottom: 1px solid var(--zello-border);
  background: #f6f7fa;
}

.md-typeset .zello-table-header-card table:not([class]) th:first-child {
  border-left: 1px solid var(--zello-border);
  border-radius: 8px 0 0 8px;
}

.md-typeset .zello-table-header-card table:not([class]) th:last-child {
  border-right: 1px solid var(--zello-border);
  border-radius: 0 8px 8px 0;
}

/* No header row: the first row reads like any other. */
.md-typeset .zello-table-no-header table:not([class]) th {
  font-weight: 400;
}

/* ---------- Code ---------- */

.md-typeset pre > code {
  padding: 10px 16px;
  border: 1px solid var(--zello-border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
}

/* GitBook's code-block "Copy": a text pill in the top-right corner, shown on hover. */
.md-typeset .md-code__nav,
.md-typeset :hover > .md-code__nav {
  top: 8px;
  right: 8px;
  padding: 0;
  background: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.md-typeset pre:hover > .md-code__nav,
.md-typeset .md-code__nav:focus-within {
  opacity: 1;
}

.md-typeset .md-code__button[data-md-type="copy"] {
  width: auto;
  height: auto;
  padding: 4px 8px;
  border: 1px solid #d5d9e0;
  border-radius: 8px;
  background: #f6f7fa;
  box-shadow: 0 1px 2px rgba(213, 217, 224, 0.4);
  color: #5f636c;
  font: 400 14px/17.5px var(--md-text-font-family);
}

.md-typeset .md-code__button[data-md-type="copy"]:hover {
  border-color: #b6cdf6;
  color: #5f636c;
}

.md-typeset .md-code__button[data-md-type="copy"]::after {
  content: "Copy";
  width: auto;
  height: auto;
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.md-typeset code {
  font-size: 14px;
}

.md-typeset :not(pre) > code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--zello-inline-code-bg);
  word-break: normal;
}

/* ---------- Callouts (GitBook "hint" blocks) ---------- */

.md-typeset .admonition.admonition,
.md-typeset details.admonition {
  position: relative;
  margin: 20px 0 0;
  padding: 16px 16px 16px 44px;
  border: 0;
  border-radius: 6px;
  background: var(--zello-hint-bg);
  box-shadow: none;
  font-size: 14px;
  line-height: 20px;
}

.md-typeset .admonition > .admonition-title {
  display: none;
}

.md-typeset .admonition > .admonition-title + * {
  margin-top: 0;
}

.md-typeset .admonition::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 16px;
  height: 16px;
  background-color: var(--zello-muted);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>') center / contain no-repeat;
}

/* ---------- End of page: next/previous cards, then "Last updated" ---------- */

.zello-pager {
  display: flex;
  gap: 16px;
  margin-top: 64px;
}

.md-typeset .zello-pager__link {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--zello-border);
  border-radius: 12px;
  color: var(--zello-text);
  text-decoration: none;
}

.md-typeset .zello-pager__link:hover {
  border-color: #b6cdf6;
  color: var(--zello-text);
}

.md-typeset .zello-pager__link:hover .zello-pager__title {
  color: #4d638c;
}

.zello-pager__text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.zello-pager__link--next .zello-pager__text {
  align-items: flex-end;
  text-align: right;
}

.zello-pager__chevron {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--zello-muted);
}


.zello-pager__direction {
  font-size: 12px;
  line-height: 16px;
  color: var(--zello-muted);
}

.zello-pager__title {
  font-size: 16px;
  line-height: 22px;
}

.md-source-file {
  margin: 24px 0 48px;
  font-size: 16px;
  color: var(--zello-muted);
}

.md-source-file .md-icon {
  display: none;
}

/* "Last updated 2 years ago", worded like the GitBook page footer. */
.git-revision-date-localized-plugin::before {
  content: "Last updated ";
}

/* Header title links home, like GitBook's logo + title link. */
.md-header .zello-header-home {
  display: block;
  color: inherit;
  text-decoration: none;
}
