/* Optional styles for limmat. Override the variables, or ignore this file and style the classes yourself.
   It follows prefers-color-scheme and supports forced colors. The variables are --limmat-link, --limmat-border,
   --limmat-code-bg, --limmat-radius, --limmat-font-mono, --limmat-muted, and --limmat-focus.
   The generated structure (classes may be added, never removed or renamed):
     p, h1-h6, hr, blockquote, ul.limmat-list, ol.limmat-list, li, li.limmat-task (task items)
     div.limmat-code
       div.limmat-code-head > span.limmat-lang[aria-hidden], button.limmat-copy, span.limmat-status[role=status]
       pre[tabindex=0] > code.limmat-lang-ts
     div.limmat-table-wrap[tabindex=0][role=region] > table
     a.limmat-link
     details.limmat-details[open] > summary.limmat-summary, then the content blocks
     kbd.limmat-kbd, b, strong, i, em, u, s, del, ins, mark, small, sub, sup (from the HTML tags, no attributes)
     img.limmat-image[loading=lazy][decoding=async][referrerpolicy=no-referrer]
     code.limmat-inline-code (inline code)
*/
:root {
  --limmat-code-bg: rgba(128, 128, 128, 0.1);
  --limmat-border: rgba(128, 128, 128, 0.4);
  --limmat-muted: rgba(128, 128, 128, 0.95);
  --limmat-link: #1d4ed8;
  --limmat-radius: 0.5rem;
  --limmat-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --limmat-focus: #2563eb;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --limmat-code-bg: color-mix(in srgb, currentColor 7%, transparent);
    --limmat-border: color-mix(in srgb, currentColor 22%, transparent);
    --limmat-muted: color-mix(in srgb, currentColor 65%, transparent);
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --limmat-link: #93c5fd;
    --limmat-focus: #93c5fd;
  }
}
.limmat-link {
  color: var(--limmat-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.limmat-kbd {
  padding: 0.1em 0.4em;
  border: 1px solid var(--limmat-border);
  border-bottom-width: 2px;
  border-radius: 0.35em;
  background: var(--limmat-code-bg);
  font-family: var(--limmat-font-mono);
  font-size: 0.875em;
  white-space: nowrap;
}
.limmat-details {
  margin: 0.5em 0;
  padding: 0.35em 0.75em;
  border: 1px solid var(--limmat-border);
  border-radius: var(--limmat-radius);
}
.limmat-summary {
  cursor: pointer;
  font-weight: 600;
}
.limmat-details[open] > .limmat-summary {
  margin-bottom: 0.4em;
}
.limmat-image {
  max-width: 100%;
  height: auto;
}
.limmat-inline-code {
  padding: 0.12em 0.4em;
  border-radius: 0.35em;
  background: var(--limmat-code-bg);
  font-family: var(--limmat-font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.limmat-code {
  margin: 0.75em 0;
  border: 1px solid var(--limmat-border);
  border-radius: var(--limmat-radius);
  background: var(--limmat-code-bg);
  overflow: hidden;
}
.limmat-code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--limmat-border);
  font-size: 0.8em;
  color: var(--limmat-muted);
}
.limmat-lang {
  margin-right: auto;
  font-family: var(--limmat-font-mono);
}
.limmat-code-head > .limmat-copy:first-child {
  margin-left: auto;
}
.limmat-copy {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--limmat-border);
  border-radius: 0.3rem;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
}
.limmat-copy:hover {
  background: var(--limmat-code-bg);
}
.limmat-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.limmat-code pre {
  margin: 0;
  padding: 0.75rem;
  overflow-x: auto;
  font-family: var(--limmat-font-mono);
  font-size: 0.9em;
  line-height: 1.5;
}
.limmat-code code {
  font: inherit;
}
/* A @speed-highlight/core theme styles <code> as a standalone block. Keep limmat's frame and let the theme set colors only. */
.limmat-code code[class*="shj-lang-"] {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  max-width: none;
  font: inherit;
}
.limmat-table-wrap {
  margin: 0.75em 0;
  overflow-x: auto;
}
.limmat-table-wrap table {
  border-collapse: collapse;
  min-width: 100%;
}
.limmat-table-wrap th,
.limmat-table-wrap td {
  border: 1px solid var(--limmat-border);
  padding: 0.3rem 0.6rem;
  text-align: left;
}
.limmat-table-wrap th {
  background: var(--limmat-code-bg);
}
.limmat-list {
  padding-left: 1.5em;
}
.limmat-task {
  list-style: none;
  margin-left: -1.25em;
}
.limmat-task > input[type="checkbox"]:first-child {
  margin-right: 0.5em;
}
:where(.limmat-code pre, .limmat-table-wrap):focus-visible,
.limmat-copy:focus-visible,
.limmat-summary:focus-visible,
.limmat-link:focus-visible {
  outline: 2px solid var(--limmat-focus);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .limmat-code,
  .limmat-code-head,
  .limmat-copy,
  .limmat-table-wrap th,
  .limmat-table-wrap td {
    border-color: CanvasText;
  }
  .limmat-inline-code {
    border: 1px solid CanvasText;
  }
  .limmat-kbd,
  .limmat-details {
    border-color: CanvasText;
  }
  .limmat-link {
    color: LinkText;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .limmat-copy {
    transition: background-color 0.15s;
  }
}
