/* Static equivalents of Halo editor elements, scoped away from NexT UI. */
.halo-content { overflow-wrap: anywhere; }
.halo-content .halo-link-card {
  display: block;
  padding: .9em 1.1em;
  margin: 1em 0;
  border: 1px solid #9996;
  border-radius: 6px;
  background: #8881;
  text-decoration: none;
}
.halo-content .halo-inline-card { border-bottom: 1px dashed currentColor; }
.halo-content a:focus-visible, .halo-content summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.halo-content img { max-width: 100%; height: auto; }
.halo-content video, .halo-content iframe { max-width: 100%; }
.halo-content audio { width: 100%; }
.halo-content iframe { width: 100%; min-height: 260px; border: 0; }
.halo-content .halo-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.halo-content .halo-table-scroll table { min-width: 36rem; width: 100%; }
.halo-content .halo-table-scroll th, .halo-content .halo-table-scroll td { min-width: 6em; overflow-wrap: normal; }
.halo-content pre:not(figure.highlight pre) {
  overflow-x: auto;
  padding: 1em;
  background: #8881;
  line-height: 1.6;
  white-space: pre;
}
.halo-content pre code { padding: 0; background: transparent; }
.halo-content details { border: 1px solid #9996; padding: .7em 1em; margin: 1em 0; }
.halo-content summary { cursor: pointer; }
.halo-content input[type="checkbox"] { margin-right: .5em; }

.halo-content details.halo-code-details {
  padding: 0;
  border-radius: 6px;
  border-color: #9995;
  overflow: hidden;
}
.halo-code-details > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  list-style: none;
  padding: .65em .9em;
  background: var(--highlight-gutter-background, #8881);
  color: var(--highlight-foreground, inherit);
  font: 13px/1.6 system-ui, sans-serif;
}
.halo-code-details > summary::-webkit-details-marker { display: none; }
.halo-code-details > summary::before { content: '▸'; flex: none; }
.halo-code-details[open] > summary::before { content: '▾'; }
.halo-code-language { min-width: 0; font-weight: 600; }
.halo-code-meta { opacity: .75; }
.halo-code-actions { display: inline-flex; align-items: center; gap: .5em; margin-left: auto; white-space: nowrap; }
.halo-code-collapse, .halo-code-details[open] > summary .halo-code-expand { display: none; }
.halo-code-details[open] > summary .halo-code-collapse { display: inline; }
.halo-content .halo-code-details > figure.highlight { margin: 0; overflow: hidden; }
.halo-code-toolbar { display: inline-flex; }
.halo-code-toolbar:empty { display: none; }
.halo-code-body { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.halo-code-body > .code { min-width: 0; }
.halo-content .halo-code-body pre {
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  white-space: pre;
  overflow-wrap: normal;
  font-size: 14px;
  line-height: 1.6;
  tab-size: 4;
}
.halo-code-body .gutter { user-select: none; }
.halo-content .halo-code-body .gutter pre { height: 100%; overflow: hidden; }
.halo-content .halo-code-body .code pre { overflow-x: auto; }
.halo-content .halo-code-body pre code.hljs {
  display: block;
  padding: 0;
  overflow: visible;
  font: inherit;
  white-space: inherit;
  overflow-wrap: normal;
}
.halo-content .halo-code-toolbar .copy-btn {
  position: static;
  opacity: 1;
  border: 1px solid #9996;
  border-radius: 4px;
  padding: .3em .7em;
  background: var(--highlight-background);
  color: var(--highlight-foreground);
  font: 13px/1.6 system-ui, sans-serif;
}
.copy-btn:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 2px; }
.halo-code-body pre:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.halo-docs-breadcrumb { font-size: .9em; overflow-wrap: anywhere; margin-bottom: 1em; }
.halo-docs-directory { border: 1px solid #9995; border-radius: 6px; padding: .6em 1em; margin: 1em 0; }
.halo-docs-directory > summary { cursor: pointer; }
.halo-docs-nav ul { padding-left: 1.3em; }
.halo-docs-nav li { margin: .35em 0; overflow-wrap: anywhere; }
.halo-docs-adjacent { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1em; margin-top: 2em; }
.halo-docs-adjacent a { min-width: 0; overflow-wrap: anywhere; }
