/* ── Header background color ───────────────────────────────────────── */
.md-header {
  background-color: #2e7eed;
}

/* ── Header links (AsystirRepo | Asystir) ──────────────────────────── */
.md-header__custom-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.md-header__custom-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.md-header__custom-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.md-header__custom-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  user-select: none;
}

@media screen and (max-width: 960px) {
  .md-header__custom-nav {
    display: none;
  }
}

/* ── Copy link button ───────────────────────────────────────────────── */
.md-header__copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 3px 10px;
  margin-left: 30px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.md-header__copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.md-header__copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.md-header__copy-btn.copied {
  background: rgba(76, 175, 80, 0.35);
  border-color: rgba(76, 175, 80, 0.7);
  color: #a5d6a7;
}

@media screen and (max-width: 760px) {
  .md-header__copy-label {
    display: none;
  }
  .md-header__copy-btn {
    padding: 4px 6px;
  }
}

/* ── Search input ───────────────────────────────────────────────────── */
.md-search__input {
  border-radius: 10px;
}

.md-search__input::placeholder {
  font-size: 0.65rem;
}

/* ── Process diagram (proceso.md) ─────────────────────────────────── */
.processdiagram {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.processdiagram > div {
  background: var(--md-default-fg-color--lightest, #eee);
  color: var(--md-default-bg-color, #333);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
[data-md-color-scheme="slate"] .processdiagram > div {
  background: rgba(255, 255, 255, 0.1);
  color: var(--md-default-fg-color);
}
