/* HTTP method badges.
 *
 * Used in the REST API headings as:
 *   ### <span class="rm rm-post">POST</span> /api/v1/vertices
 *
 * Zensical copies heading markup into the table of contents verbatim and wraps
 * it in .md-typeset, so the same rules style both the heading and the matching
 * "On this page" entry — no separate TOC selector needed.
 *
 * Monochrome, in the Shardnet mark's exact #ffffff. The site is dark-only (a
 * single untoggled slate palette), so the badge can use that white literally
 * rather than inverting per scheme. Text is the page background, which keeps
 * contrast maximal by construction.
 */

.rm {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.15em;
  padding: 0.05em 0.45em;
  border-radius: 0.2em;
  background-color: #fff;
  color: var(--md-default-bg-color);
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Per-method classes are still emitted in the headings (rm-get, rm-post, ...)
 * so a per-verb accent can be reintroduced here without touching the markdown.
 * Deliberately unstyled while the badges are monochrome. */

/* In the TOC the line is clamped by .md-ellipsis; keep the badge from being
 * squeezed to an unreadable sliver on narrow viewports. */
.md-nav__link .rm {
  flex: none;
}
