.markdown-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 45px 16px;
  color: var(--fgColor-default, #1f2328);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  scroll-margin-top: 16px;
}

.markdown-body h1:hover .ghrm-anchor,
.markdown-body h2:hover .ghrm-anchor,
.markdown-body h3:hover .ghrm-anchor,
.markdown-body h4:hover .ghrm-anchor,
.markdown-body h5:hover .ghrm-anchor,
.markdown-body h6:hover .ghrm-anchor,
.markdown-body .ghrm-anchor:focus-visible {
  opacity: 1;
}

.markdown-body .ghrm-anchor {
  margin-left: 0.5ch;
  color: var(--fgColor-muted, #636c76);
  font-size: 0.85em;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  user-select: none;
  transition:
    opacity 0.15s ease,
    color 0.15s ease;
}

.markdown-body .ghrm-anchor:hover {
  color: var(--fgColor-accent, #0969da);
}

.markdown-body > h1:first-child {
  margin-top: 12px;
}

.markdown-body code,
.markdown-body tt {
  background-color: var(--bgColor-muted, #f6f8fa);
}

.markdown-body pre code,
.markdown-body pre tt {
  background-color: transparent;
}

.ghrm-explorer-shell,
.ghrm-page-shell {
  border: 1px solid var(--borderColor-default, #d0d7de);
  border-radius: 6px;
  overflow: visible;
}

.ghrm-explorer-shell {
  container: ghrm-explorer / inline-size;
}

.ghrm-explorer-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bgColor-muted, #f6f8fa);
  border-bottom: 1px solid var(--borderColor-default, #d0d7de);
  border-radius: 6px 6px 0 0;
}

.ghrm-breadcrumbs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  min-width: 0;
  color: var(--fgColor-muted, #636c76);
  font-size: 14px;
  line-height: 1.4;
}

.ghrm-header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ghrm-crumb {
  color: inherit;
  text-decoration: none;
}

.ghrm-crumb-link:hover {
  color: var(--fgColor-accent, #0969da);
  text-decoration: underline;
}

.ghrm-crumb-current {
  color: var(--fgColor-default, #1f2328);
  font-weight: 600;
}

.ghrm-crumb-sep {
  color: var(--fgColor-muted, #636c76);
}

.ghrm-page-content {
  padding: 24px 32px 32px;
}

.ghrm-page-content > :first-child,
.ghrm-readme-content > :first-child {
  margin-top: 0;
}

.ghrm-readme-content > :last-child {
  margin-bottom: 0;
}

.ghrm-readme-box {
  margin-top: 16px;
  border: 1px solid var(--borderColor-default, #d0d7de);
  border-radius: 6px;
  overflow: visible;
}

.ghrm-readme-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 16px;
  background: var(--bgColor-muted, #f6f8fa);
  border-bottom: 1px solid var(--borderColor-default, #d0d7de);
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fgColor-default, #1f2328);
}

.ghrm-readme-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ghrm-readme-header svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ghrm-readme-content {
  padding: 24px 32px;
}

@media (max-width: 767px) {
  .markdown-body {
    padding: 0 15px 15px;
  }

  .markdown-body > h1:first-child {
    margin-top: 10px;
  }

  .ghrm-page-content,
  .ghrm-readme-content {
    padding: 16px;
  }
}
