[role="main"] details {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-background-border);
  border-left: 4px solid var(--color-brand-primary);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.06);
  margin: 1rem 0;
  overflow: hidden;
}

[role="main"] details > summary {
  align-items: center;
  background: color-mix(in srgb, var(--color-brand-primary) 10%, var(--color-background-secondary));
  color: var(--color-foreground-primary);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 0.5rem;
  list-style: none;
  padding: 0.65rem 0.85rem;
}

[role="main"] details > summary::-webkit-details-marker {
  display: none;
}

[role="main"] details > summary::before {
  color: var(--color-brand-primary);
  content: "\25B8";
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1;
  width: 1rem;
  transition: transform 0.2s ease;
}

[role="main"] details[open] > summary::before {
  transform: rotate(90deg);
}

[role="main"] details[open] > summary {
  border-bottom: 1px solid var(--color-background-border);
}

[role="main"] details > .details {
  padding: 0.75rem 0.85rem 0.85rem;
}

[role="main"] details > .details > :first-child {
  margin-top: 0;
}

[role="main"] details > .details > :last-child {
  margin-bottom: 0;
}

[role="main"] .nih-badge {
  background: color-mix(in srgb, var(--color-brand-primary) 10%, var(--color-background-secondary));
  border: 1px solid color-mix(in srgb, var(--color-brand-primary) 35%, var(--color-background-border));
  border-radius: 999px;
  color: var(--color-brand-content);
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.18rem 0.45rem;
  text-transform: uppercase;
  vertical-align: baseline;
  white-space: nowrap;
}

[role="main"] code.cmd-role,
[role="main"] .cmd-role {
  background: var(--color-code-background);
  border-radius: 0.22rem;
  color: var(--color-code-foreground);
  font-weight: 600;
  padding: 0.08rem 0.28rem;
}

[role="main"] code.cmd-role .pre,
[role="main"] .cmd-role .pre {
  color: inherit;
}

[role="main"] code.file,
[role="main"] span.file,
[role="main"] .file {
  background: #eef6ee;
  border: 1px solid #d4ddd4;
  border-radius: 0.22rem;
  color: #244a2a;
  font-size: 0.92em;
  font-style: normal;
  padding: 0.08rem 0.28rem;
  text-shadow: none;
}

[role="main"] code.file .pre,
[role="main"] span.file .pre,
[role="main"] .file .pre {
  color: #244a2a !important;
}
