/*
 * Triton Digital brand typography for the API docs.
 * Loaded twice on purpose: as a page stylesheet (the @font-face rules) and through RapiDoc's css-file
 * attribute, which clones it into the shadow root (the heading rules).
 * Poppins v24 (SIL Open Font License 1.1), latin subset.
 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(poppins-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(poppins-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

h1, h2, h3, h4,
.m-markdown h1, .m-markdown h2, .m-markdown h3, .m-markdown h4,
.m-markdown-small h1, .m-markdown-small h2, .m-markdown-small h3, .m-markdown-small h4,
#api-title,
[part='section-endpoint-body-title'],
.title,
.sub-title,
.section-tag-header,
.nav-bar-section-title,
.nav-bar-tag {
  font-family: 'Poppins', var(--font-regular), sans-serif !important;
  letter-spacing: 0;
}

h1, h2, h3, h4,
.m-markdown h1, .m-markdown h2, .m-markdown h3, .m-markdown h4,
.m-markdown-small h1, .m-markdown-small h2, .m-markdown-small h3, .m-markdown-small h4,
#api-title, [part='section-endpoint-body-title'], .title {
  font-weight: 700 !important;
  color: #230859;
}

/* Method pills in the navigation, same palette as the samples panel. */
.nav-method.as-colored-block {
  display: inline-block;
  box-sizing: border-box;
  flex: none;
  width: 52px;
  min-width: 52px;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  margin-right: 10px;
  padding: 2px 8px !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #ffffff !important;
  background: #9d42cb !important;
}

.nav-method.as-colored-block.post {
  background: #00befa !important;
  color: #230859 !important;
}

.nav-method.as-colored-block.put {
  background: #786ff1 !important;
}

.nav-method.as-colored-block.patch {
  background: #1a95d5 !important;
}

.nav-method.as-colored-block.delete {
  background: #f4785e !important;
}

/* RapiDoc cuts the label to three letters; rebuild it so POST and PATCH read in full. */
.nav-method.as-colored-block.post,
.nav-method.as-colored-block.patch,
.nav-method.as-colored-block.delete {
  font-size: 0;
}

.nav-method.as-colored-block.post::after,
.nav-method.as-colored-block.patch::after,
.nav-method.as-colored-block.delete::after {
  font-size: 9px;
}

.nav-method.as-colored-block.post::after {
  content: 'POST';
}

.nav-method.as-colored-block.patch::after {
  content: 'PATCH';
}

.nav-method.as-colored-block.delete::after {
  content: 'DEL';
}
