.ghrm-status-dot {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: inset 0 0 0 0 currentColor;
  color: var(--fgColor-accent, #0969da);
  transform-origin: center;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
}

.ghrm-source-link.is-muted .ghrm-status-dot {
  color: var(--fgColor-danger, #d1242f);
}

.ghrm-source-link.is-active .ghrm-status-dot {
  color: var(--fgColor-accent, #0969da);
}

.ghrm-status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.65);
}

.ghrm-source-link.is-active .ghrm-status-dot::after {
  animation: ghrm-status-pulse 1.1s ease-out infinite;
}

.ghrm-source-badge:hover .ghrm-status-dot,
.ghrm-source-badge:focus-visible .ghrm-status-dot {
  transform: scale(1.12);
}

.ghrm-source-badge:focus-visible {
  outline: 2px solid var(--focus-outlineColor, #0969da);
  outline-offset: 2px;
}

body.ghrm-about-open .ghrm-status-dot {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
  transform: scale(1.18);
}

.ghrm-about-peek {
  position: relative;
  width: min(calc(980px - 32px), calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  border-top: 2px solid rgba(9, 105, 218, 0.28);
  border-inline: 1px solid var(--borderColor-default, #d0d7de);
  background-image:
    linear-gradient(rgba(9, 105, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 105, 218, 0.06) 1px, transparent 1px),
    radial-gradient(
      circle at 75% 50%,
      rgba(9, 105, 218, 0.07) 0 1px,
      transparent 1px
    );
  background-size:
    56px 56px,
    56px 56px,
    14px 14px;
  overflow: hidden;
}

.ghrm-about-peek::before {
  content: "";
  position: absolute;
  inset: -2px auto auto 0;
  z-index: 2;
  width: 168px;
  height: 2px;
  background: var(--fgColor-accent, #0969da);
}

.ghrm-about-peek[hidden] {
  display: none;
}

body.ghrm-about-open article[data-explorer] .ghrm-explorer-shell,
body.ghrm-about-open article[data-explorer] .ghrm-explorer-header {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.ghrm-about-peek-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 92px;
  padding: 22px 24px;
  display: grid;
  align-items: start;
  gap: 18px;
}

.ghrm-about-tools {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 50;
}

.ghrm-about-panel-menu {
  min-width: 230px;
}

.ghrm-about-menu-section {
  display: grid;
  gap: 2px;
}

.ghrm-about-menu-section + .ghrm-about-menu-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--borderColor-muted, #d0d7de);
}

.ghrm-about-menu-heading {
  padding: 4px 10px 3px;
  color: var(--fgColor-muted, #636c76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ghrm-about-menu-link {
  grid-template-columns: 16px minmax(0, 1fr);
}

.ghrm-about-panel-menu-toggle {
  border: 0;
  background: transparent;
}

.ghrm-about-panel-menu-toggle:hover,
.ghrm-about-panel-menu-toggle[aria-expanded="true"] {
  background: var(--bgColor-neutral-muted, #afb8c133);
}

.ghrm-about-panel-menu-toggle svg {
  transform: rotate(90deg);
}

.ghrm-about-scope {
  min-width: 0;
  color: var(--fgColor-muted, #636c76);
  font-size: 12px;
}

.ghrm-about-scope dl {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
  gap: 6px 12px;
}

.ghrm-about-scope div {
  min-width: 0;
  display: contents;
}

.ghrm-about-scope dt {
  color: var(--fgColor-muted, #636c76);
  font-weight: 500;
  white-space: nowrap;
}

.ghrm-about-scope dd {
  min-width: 0;
  margin: 0;
  color: var(--fgColor-default, #1f2328);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.ghrm-about-panel-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.ghrm-about-panel-grid[hidden],
.ghrm-summary-panel[hidden],
.ghrm-detail-panel[hidden],
.ghrm-about-tile[hidden] {
  display: none;
}

.ghrm-about-tile,
.ghrm-about-stats {
  min-width: 0;
  display: grid;
  align-content: start;
}

.ghrm-about-tile {
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--borderColor-default, #d0d7de);
  background: var(--bgColor-default, #ffffff);
}

.ghrm-about-stats {
  gap: 8px;
}

.ghrm-stat-list {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(92px, max-content) minmax(0, 1fr);
  gap: 5px 12px;
}

.ghrm-stat-row {
  display: contents;
  font-size: 12px;
}

.ghrm-stat-row > dt {
  min-width: 0;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fgColor-muted, #636c76);
  white-space: nowrap;
}

.ghrm-stat-row > dt svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ghrm-stat-row > dd {
  min-width: 0;
  margin: 0;
  color: var(--fgColor-default, #1f2328);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ghrm-stat-row > dd a {
  color: inherit;
  text-decoration: none;
}

.ghrm-stat-row > dd a:hover {
  color: var(--fgColor-accent, #0969da);
  text-decoration: underline;
}

.ghrm-stat-sublist {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 4px 12px;
  align-items: baseline;
}

.ghrm-stat-sublist div {
  display: contents;
}

.ghrm-stat-sublist dt {
  min-width: 0;
  grid-column: 1;
  color: var(--fgColor-default, #1f2328);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ghrm-stat-sublist dt a {
  color: inherit;
  text-decoration: none;
}

.ghrm-stat-sublist dt a:hover {
  color: var(--fgColor-accent, #0969da);
  text-decoration: underline;
}

.ghrm-stat-sublist dd {
  min-width: 0;
  margin: 0;
  grid-column: 2;
  justify-self: end;
  color: var(--fgColor-muted, #636c76);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.ghrm-stat-metrics {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4ch, max-content);
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ghrm-stat-metric {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
}

.ghrm-stat-metric:first-child {
  min-width: 5ch;
}

.ghrm-stat-metric:nth-child(2) {
  min-width: 4ch;
}

.ghrm-stat-metric span:first-child {
  color: var(--fgColor-muted, #636c76);
}

.ghrm-stat-metric:first-child span:first-child {
  color: var(--fgColor-default, #1f2328);
}

.ghrm-about-local-path {
  min-width: 0;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: var(--fgColor-muted, #636c76);
  font-size: 12px;
}

.ghrm-about-local-path code {
  max-width: 100%;
  color: var(--fgColor-default, #1f2328);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.ghrm-about-heading {
  color: var(--fgColor-default, #1f2328);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ghrm-detail-panel {
  min-width: 0;
  display: grid;
  align-content: start;
}

.ghrm-detail-panel-body {
  min-width: 0;
}

.ghrm-detail-list {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ghrm-detail-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--borderColor-muted, #d0d7de);
  font-size: 12px;
}

.ghrm-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ghrm-detail-row dt {
  color: var(--fgColor-muted, #636c76);
  font-weight: 400;
}

.ghrm-detail-row dd {
  min-width: 0;
  margin: 0;
  color: var(--fgColor-default, #1f2328);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ghrm-detail-row a {
  color: inherit;
  text-decoration: none;
}

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

.ghrm-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ghrm-detail-table th,
.ghrm-detail-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--borderColor-muted, #d0d7de);
  text-align: right;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.ghrm-detail-table th:first-child,
.ghrm-detail-table td:first-child {
  padding-left: 0;
  text-align: left;
  font-variant-numeric: normal;
}

.ghrm-detail-table th:last-child,
.ghrm-detail-table td:last-child {
  padding-right: 0;
}

.ghrm-detail-table thead th {
  color: var(--fgColor-muted, #636c76);
  font-weight: 500;
}

.ghrm-detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.ghrm-detail-table td {
  color: var(--fgColor-default, #1f2328);
}

.ghrm-detail-table td:not(:first-child) {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.ghrm-languages {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.ghrm-lang-bar {
  width: 100%;
  height: 8px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--borderColor-muted, #d8dee4);
}

.ghrm-lang-bar span {
  min-width: 2px;
  background: var(--ghrm-lang-color);
}

.ghrm-lang-list {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.ghrm-lang-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.ghrm-lang-row dt {
  min-width: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fgColor-default, #1f2328);
  font-weight: 400;
}

.ghrm-lang-row dd {
  margin: 0;
  color: var(--fgColor-muted, #636c76);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  display: inline-grid;
  grid-template-columns: minmax(4ch, max-content) minmax(4.5ch, max-content);
  gap: 8px;
  justify-self: end;
  text-align: right;
}

.ghrm-lang-lines {
  color: var(--fgColor-default, #1f2328);
}

.ghrm-lang-total {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--borderColor-muted, #d0d7de);
}

.ghrm-lang-total dt,
.ghrm-lang-total .ghrm-lang-percent {
  color: var(--fgColor-muted, #636c76);
}

.ghrm-lang-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ghrm-lang-color);
}

:root[data-theme="dark"] .ghrm-about-peek {
  background-image:
    linear-gradient(rgba(88, 166, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.07) 1px, transparent 1px),
    radial-gradient(
      circle at 75% 50%,
      rgba(88, 166, 255, 0.06) 0 1px,
      transparent 1px
    );
}

@media (max-width: 620px) {
  .ghrm-about-panel-grid {
    grid-template-columns: 1fr;
  }

  .ghrm-detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@keyframes ghrm-status-pulse {
  0% {
    opacity: 0.45;
    transform: scale(0.65);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.ghrm-sidebar {
  display: none;
}

@media (min-width: 1400px) {
  :root {
    --ghrm-layout-max: 1360px;
    --ghrm-layout-pad: 24px;
    --ghrm-sidebar-width: 320px;
  }

  body.ghrm-layout-explorer .ghrm-about-peek {
    width: min(
      calc(var(--ghrm-layout-max) - var(--ghrm-layout-pad) * 2),
      calc(100% - var(--ghrm-layout-pad) * 2)
    );
    margin-bottom: 18px;
    border-right: 1px solid var(--borderColor-default, #d0d7de);
    border-bottom: 1px solid var(--borderColor-default, #d0d7de);
    border-left: 1px solid var(--borderColor-default, #d0d7de);
    border-radius: 6px;
  }

  body.ghrm-layout-explorer .ghrm-about-peek .ghrm-summary-panel,
  body.ghrm-layout-explorer
    .ghrm-about-peek
    [data-ghrm-about-menu-group="git"] {
    display: none;
  }

  body.ghrm-about-open.ghrm-layout-explorer
    article[data-explorer]
    .ghrm-explorer-shell,
  body.ghrm-about-open.ghrm-layout-explorer
    article[data-explorer]
    .ghrm-explorer-header {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }

  .ghrm-layout.ghrm-layout-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--ghrm-layout-pad);
    max-width: var(--ghrm-layout-max);
    margin: 0 auto;
    padding: 0 var(--ghrm-layout-pad);
  }

  .ghrm-layout.ghrm-layout-explorer > article.markdown-body {
    grid-column: 1;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .ghrm-layout.ghrm-layout-explorer > .ghrm-sidebar:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: var(--ghrm-sidebar-width);
    grid-column: 2;
    align-self: start;
  }

  .ghrm-layout.ghrm-layout-explorer > .ghrm-sidebar .ghrm-about-tile {
    padding: 12px;
    border: 1px solid var(--borderColor-default, #d0d7de);
    border-radius: 6px;
    background: var(--bgColor-default, #ffffff);
  }
}
