/* ---- Sidebar: make section headers clearly different from page links ---- */
@media screen and (min-width: 76.25em) {
  /* The sidebar's first title just repeats the site name. */
  .md-nav--primary > .md-nav__title { display: none; }
}

/* Section headers (top-level groups) */
.md-nav--primary > .md-nav__list > .md-nav__item--section {
  margin-top: 1rem;
}
.md-nav--primary > .md-nav__list > .md-nav__item--section:first-child {
  margin-top: 0;
}
.md-nav__item--section > .md-nav__link,
.md-nav__item--section > label.md-nav__link {
  color: var(--md-primary-fg-color);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
  /* light teal band behind the header */
  background: rgba(0, 150, 136, 0.12);
  border-radius: 0.1rem;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.15rem;
}
/* Page links: regular weight, indented under their header */
.md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link {
  font-weight: 400;
  padding-left: 0.4rem;
}
/* Active page: left bar + bold */
.md-nav__link--active {
  font-weight: 600;
}
.md-nav--primary .md-nav__item > .md-nav__link--active {
  border-left: 2px solid var(--md-accent-fg-color);
  margin-left: -0.4rem;
  padding-left: 0.4rem;
}
/* Nested groups (sub-sections that expand): bold, no caps */
.md-nav__item--nested > .md-nav__link {
  font-weight: 600;
}

/* ---- API reference pages ---- */
.md-typeset .api-page h1 {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

/* Endpoint banner: METHOD + URL */
.api-endpoint {
  display: flex;
  align-items: stretch;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  background: var(--md-code-bg-color);
  overflow: hidden;
}
.api-endpoint .api-method {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  color: #fff;
  font-family: var(--md-code-font-family);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.api-endpoint .api-url {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: none;
  font-size: 0.8rem;
  word-break: break-all;
  align-self: center;
}
.api-get    { background: #2e9e5b; }
.api-post   { background: #2f6fd0; }
.api-put    { background: #d98a1d; }
.api-patch  { background: #d98a1d; }
.api-delete { background: #cf3f3f; }

/* Section headings and tables on endpoint pages */
.md-typeset .api-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset .api-page h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
}
.md-typeset .api-page table:not([class]) {
  display: table;
  width: 100%;
  font-size: 0.72rem;
}
.md-typeset .api-page table:not([class]) th {
  background: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.md-typeset .api-page table:not([class]) td:first-child {
  font-family: var(--md-code-font-family);
  white-space: nowrap;
}
/* Right-hand "On this page" is noise on these short pages' narrow content */
.md-typeset .api-page pre > code {
  font-size: 0.72rem;
}
