/* EDIT ON GITHUB */
a.rp-edit-link {
  color: var(--rp-c-text-2);
  position: relative;
  padding-left: 32px;
}

a.rp-edit-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  background: url("../assets/edit-box.svg") no-repeat center center / contain;
}

/* DOC HEADERS */
/* header anchors (appear on hover) */
.rp-header-anchor {
  line-height: 1.2 !important;
  margin-left: -1em !important;
}

.rp-header-anchor:hover {
  border-bottom: none !important;
}

/* doc page header */
.rp-doc.rspress-doc > h1.rp-toc-include {
  margin-bottom: 1.5rem !important;
}

/* doc section header */
.rp-doc.rspress-doc > h2.rp-toc-include {
  margin-bottom: 0 !important;
  border: none !important;
}

/* 404 page */
.rp-not-found {
  min-height: 100vh !important;
}

.rp-not-found__error-code {
  font-family: var(--rp-font-family) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--rp-c-text-1) !important;
}

.rp-not-found__title {
  font-family: var(--rp-font-family) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--rp-c-text-2) !important;
}

.rp-outline__action-row.rp-edit-link {
  display: none !important;
}

.rp-doc p > code {
  padding: 0.1em 0.2em;
  font-size: 1em !important;
  border-radius: 4px !important;
}

.rp-code-button-group {
  top: 14px !important;
  right: 8px !important;
}

/* LLMS BUTTON */
.rp-llms-button {
  gap: 0.25rem !important;
  padding: 0 0.625rem !important;
  height: 1.5rem !important;
  font-family: var(--rp-font-family) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--rp-c-text-2) !important;
  border: 1px solid var(--ck-border-secondary) !important;
  border-radius: var(--rp-radius-small) !important;
}

.rp-llms-button:hover {
  color: var(--rp-c-brand) !important;
  border-color: var(--rp-c-brand) !important;
}

.rp-llms-copy-button--success.rp-llms-copy-button,
.rp-llms-copy-button--success.rp-llms-button {
  color: var(--rp-c-green-1, #10b981) !important;
  border: 1px solid var(--rp-c-green-1, #10b981) !important;
  background: var(--rp-c-bg-soft) !important;
}

.rp-llms-view-options__menu {
  border-radius: var(--rp-radius-small) !important;
  border: 1px solid var(--ck-border-secondary) !important;
  padding: 0 !important;
}

.rp-llms-view-options__menu-item {
  border-radius: var(--rp-radius-small) !important;
}

.rp-llms-view-options__menu-item:hover {
  background-color: var(--ck-foreground-primary) !important;
}

.rp-llms-view-options__external-icon {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
