/* ── Font faces ── */

@font-face {
  font-family: "Pitch Sans";
  src: url("../assets/fonts/PitchSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pitch Sans";
  src: url("../assets/fonts/PitchSans-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pitch Sans";
  src: url("../assets/fonts/PitchSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

/* ── API method badges in nav ── */

.md-nav__link[data-badge]::before {
  font-size: 0.55rem;
  font-weight: 700;
  font-family: "Pitch Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 0.1em 0;
  border-radius: 0.2em;
  margin-right: 0.5em;
  vertical-align: middle;
  display: inline-block;
  width: 3.5em;
  text-align: center;
  box-sizing: border-box;
}

/* Badge colors (shared) */
.md-nav__link[data-badge="get"]::before    { content: "GET";  background: #3b82f6; }
.md-nav__link[data-badge="post"]::before   { content: "POST"; background: #22c55e; }
.md-nav__link[data-badge="put"]::before    { content: "PUT";  background: #f59e0b; }
.md-nav__link[data-badge="patch"]::before  { content: "PATCH"; background: #14b8a6; }
.md-nav__link[data-badge="del"]::before    { content: "DEL";  background: #ef4444; }
.md-nav__link[data-badge="wss"]::before    { content: "WSS";  background: #8b5cf6; }

/* Text color per mode */
[data-md-color-scheme="default"] .md-nav__link[data-badge]::before { color: #FFFFFF; }
[data-md-color-scheme="slate"] .md-nav__link[data-badge]::before   { color: #FFFFFF; }

/* Search shortcut hint */
.md-search__form::after {
  content: "/";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Pitch Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25em 0.5em 0.25em;
  border-radius: 0.25em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: opacity 150ms;
}

.md-search__form:focus-within::after {
  opacity: 0;
}

/* Dark/light mode button */
.md-header__option {
  color: rgba(255, 255, 255, 0.5);
  transform: scale(0.85);
}

/* Typography */
.md-header__title,
.md-nav__title,
.md-footer__title,
.md-nav__link,
.md-tabs__link {
  font-family: "Pitch Sans", system-ui, sans-serif;
}

/* Section headers - visual separation */
.md-content h2 {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  padding-top: 1.2em;
  margin-top: 2em;
}

/* Hide the title as we have the logo already */
.md-header__title {
  visibility: hidden;
}
