@media (min-width: 95rem) {
  :root {
    --content-width: var(--max-content-width);
  }
}

/* Reset & Base */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

code, pre {
  font-family: var(--font-mono);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-nav);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  overflow: visible !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90rem;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title-trigger {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-title-trigger img {
  height: 28px;
  width: auto;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.25rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: inline; }
:root:not([data-theme="dark"]) .icon-sun { display: inline; }
:root:not([data-theme="dark"]) .icon-moon { display: none; }

.social-link {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.social-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Header search */

.header-search {
  position: relative;
}

.header-search-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.header-search-toggle:hover {
  color: var(--color-text);
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: -1rem;
  width: min(420px, calc(100vw - 2rem));
  background: var(--color-bg-nav);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200;
}

.header-search-dropdown[hidden] {
  display: none;
}

#header-pagefind {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-border-width: 1px;
}

#header-pagefind .pagefind-ui__form {
  position: relative;
}

#header-pagefind .pagefind-ui__search-input {
  min-height: 2.5rem !important;
  font-size: 0.9rem !important;
}

#header-pagefind .pagefind-ui__drawer {
  max-height: 60vh;
  overflow-y: auto;
}

:root[data-theme="dark"] .header-search-dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

:root[data-theme="dark"] #header-pagefind {
  --pagefind-ui-primary: #60a5fa;
  --pagefind-ui-text: #f1f5f9;
  --pagefind-ui-background: #0f172a;
  --pagefind-ui-border: #334155;
}

:root[data-theme="dark"] #header-pagefind .pagefind-ui__result-link {
  color: #60a5fa;
}

:root[data-theme="dark"] #header-pagefind .pagefind-ui__result-title {
  color: #f1f5f9;
}

:root[data-theme="dark"] #header-pagefind .pagefind-ui__result-excerpt {
  color: #94a3b8;
}

:root[data-theme="dark"] #header-pagefind mark {
  color: #f1f5f9;
  background: rgba(96, 165, 250, 0.25);
}

/* Breadcrumbs */

.breadcrumbs {
  padding: 0.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 0.5rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* Docs Layout */

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)) var(--toc-width);
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}

.docs-content {
  padding: 2rem 2.5rem;
  min-width: 0;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: -0.025em;
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .top-level > li + li {
  margin-top: 0.5rem;
}

@media (min-width: 50rem) {
  .sidebar .top-level > li + li {
    margin-top: 0.375rem;
  }
}

.sidebar details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 0.2em 0.5rem;
  border-inline-start: 3px solid transparent;
}

/* When a summary wraps an anchor, the anchor owns padding + active-page border —
   otherwise we'd compound padding and the link would sit deeper than a leaf <a>. */
.sidebar details > summary:has(> a) {
  padding: 0;
  border-inline-start: none;
}

.sidebar details > summary > a {
  flex: 1;
}

.sidebar details > summary:has(> a) > .caret {
  margin-right: 0.5rem;
}

.sidebar details > summary::-webkit-details-marker {
  display: none;
}

.sidebar details > summary .caret {
  color: var(--color-gray-3);
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sidebar details[open] > summary .caret {
  transform: rotate(180deg);
}

/* Top-level group labels — small uppercase category headers */
.sidebar .top-level > li > details > summary .large {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-3);
}

/* Nested group summaries */
.sidebar ul ul summary .large {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-white);
}

.sidebar ul ul {
  padding-left: 0.75rem;
}

.sidebar a {
  display: block;
  padding: 0.2em 0.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-inline-start: 3px solid transparent;
  transition: color 0.15s;
}

.sidebar a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.sidebar a[aria-current="page"],
.sidebar a[aria-current="page"]:hover {
  color: var(--color-accent);
  font-weight: 600;
  border-inline-start-color: var(--color-accent);
}

/* Table of Contents */

.toc {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--color-border);
  font-size: 0.8125rem;
}

.toc-nav h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-3);
  margin: 0 0 0.75rem;
}

.toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-nav li {
  margin-bottom: 0.25rem;
}

.toc-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.toc-nav a:hover {
  color: var(--color-text);
}

.toc-level-3 {
  padding-left: 0.75rem;
}

.toc-level-4 {
  padding-left: 1.5rem;
}

/* Content typography */

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.docs-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.docs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.docs-content p {
  margin: 0 0 1rem;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.docs-content li + li {
  margin-top: 0.25rem;
}

.docs-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

:root:not([data-theme="dark"]) .docs-content pre {
  background: #f1f5f9;
  color: #1e293b;
}

.docs-content code {
  font-size: 0.875em;
  background: var(--color-gray-6);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.docs-content th, .docs-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.docs-content th {
  background: var(--color-gray-6);
  font-weight: 600;
}

.docs-content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  color: var(--color-text-secondary);
}

.posts {
  font-size: 90%;
  line-height: 1.5;
}

/* Pagefind search */

#pagefind-search {
  --pagefind-ui-scale: 0.8;
  --pagefind-ui-primary: var(--color-accent);
  --pagefind-ui-text: var(--color-text);
  --pagefind-ui-background: var(--color-bg);
  --pagefind-ui-border: var(--color-border);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0.375rem;
  --pagefind-ui-font: var(--font-sans);
}

/* Mermaid diagrams */

.mermaid-diagram {
  margin: 1.5rem 0;
}

.mermaid-diagram svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

:root .mermaid-light { display: block; }
:root .mermaid-dark { display: none; }
:root[data-theme="dark"] .mermaid-light { display: none; }
:root[data-theme="dark"] .mermaid-dark { display: block; }

/* beautiful-mermaid paints edge-label pills with `fill="var(--bg)"` and a
   barely-visible inner stroke, so they vanish against our page background.
   Give the pills a slightly off-canvas fill and a real border so the labels
   read as actual labels in both themes. */
.mermaid-light svg rect[fill="var(--bg)"] { fill: #f1f5f9 !important; stroke: #94a3b8 !important; }
.mermaid-dark  svg rect[fill="var(--bg)"] { fill: #1e293b !important; stroke: #64748b !important; }

.mermaid-light,
.mermaid-dark {
  position: relative;
  max-height: 9rem;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mermaid-light::after,
.mermaid-dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.mermaid-diagram:hover .mermaid-light,
.mermaid-diagram:hover .mermaid-dark {
  max-height: 60rem;
  transition: max-height 0.45s cubic-bezier(0.2, 0.6, 0.35, 1);
}

.mermaid-diagram:hover .mermaid-light::after,
.mermaid-diagram:hover .mermaid-dark::after {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Picjs diagrams — invert for dark mode */
:root[data-theme="dark"] .picjs-diagram svg {
  filter: invert(1) hue-rotate(180deg);
}

.picjs-example {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.picjs-example .picjs-source,
.picjs-example .picjs-diagram {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
}

.picjs-example .picjs-source {
  margin: 0;
}

.picjs-example .picjs-diagram svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .picjs-example {
    flex-direction: column;
  }
  .picjs-example .picjs-source,
  .picjs-example .picjs-diagram {
    width: 100%;
  }
}

/* Responsive */

@media (max-width: 72rem) {
  .toc {
    display: none;
  }
  .docs-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
}

@media (max-width: 50rem) {
  .sidebar-toggle {
    display: flex;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    z-index: 50;
    background: var(--color-bg-nav);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: var(--sidebar-width);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
  }
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-content {
    padding: 1.5rem 1rem;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .mermaid-light,
  .mermaid-dark {
    max-height: none !important;
    transition: none !important;
  }
  .mermaid-light::after,
  .mermaid-dark::after {
    display: none;
  }
}

/* Logo light/dark swap */

.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline; }

/* Header anchor links */

.docs-content .header-anchor {
  color: inherit;
  text-decoration: none;
}

.docs-content .header-anchor:hover {
  text-decoration: underline;
}

/* Images — rounded corners and subtle shadow */

.docs-content article img {
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.10);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.docs-content article video {
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.10);
  margin-bottom: 1rem;
}

/* Syntax highlighting — dark mode (default pre bg: #1e293b) */

.hljs-keyword { color: #ff7b72; }
.hljs-string,
.hljs-doctag { color: #a5d6ff; }
.hljs-number { color: #79c0ff; }
.hljs-comment { color: #8b949e; font-style: italic; }
.hljs-title,
.hljs-title.function_ { color: #d2a8ff; }
.hljs-built_in { color: #ffa657; }
.hljs-literal { color: #79c0ff; }
.hljs-type,
.hljs-title.class_ { color: #ffa657; }
.hljs-params { color: #e2e8f0; }
.hljs-meta { color: #79c0ff; }
.hljs-attr { color: #79c0ff; }
.hljs-punctuation { color: #e2e8f0; }
.hljs-property { color: #79c0ff; }
.hljs-variable { color: #ffa657; }
.hljs-operator { color: #ff7b72; }
.hljs-selector-class,
.hljs-selector-tag { color: #7ee787; }
.hljs-regexp { color: #7ee787; }
.hljs-symbol { color: #79c0ff; }

/* Syntax highlighting — light mode overrides (pre bg: #f1f5f9) */

:root:not([data-theme="dark"]) .hljs-keyword { color: #cf222e; }
:root:not([data-theme="dark"]) .hljs-string,
:root:not([data-theme="dark"]) .hljs-doctag { color: #0a3069; }
:root:not([data-theme="dark"]) .hljs-number { color: #0550ae; }
:root:not([data-theme="dark"]) .hljs-comment { color: #6e7781; }
:root:not([data-theme="dark"]) .hljs-title,
:root:not([data-theme="dark"]) .hljs-title.function_ { color: #8250df; }
:root:not([data-theme="dark"]) .hljs-built_in { color: #953800; }
:root:not([data-theme="dark"]) .hljs-literal { color: #0550ae; }
:root:not([data-theme="dark"]) .hljs-type,
:root:not([data-theme="dark"]) .hljs-title.class_ { color: #953800; }
:root:not([data-theme="dark"]) .hljs-params { color: #24292f; }
:root:not([data-theme="dark"]) .hljs-meta { color: #0550ae; }
:root:not([data-theme="dark"]) .hljs-attr { color: #0550ae; }
:root:not([data-theme="dark"]) .hljs-punctuation { color: #24292f; }
:root:not([data-theme="dark"]) .hljs-property { color: #0550ae; }
:root:not([data-theme="dark"]) .hljs-variable { color: #953800; }
:root:not([data-theme="dark"]) .hljs-operator { color: #cf222e; }
:root:not([data-theme="dark"]) .hljs-selector-class,
:root:not([data-theme="dark"]) .hljs-selector-tag { color: #116329; }
:root:not([data-theme="dark"]) .hljs-regexp { color: #116329; }
:root:not([data-theme="dark"]) .hljs-symbol { color: #0550ae; }

/* Cookie consent banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  border-top: 1px solid #334155;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 1.25rem 1.5rem;
  animation: cookie-slide-up 0.4s ease;
}

.cookie-banner[data-hidden] { display: none; }

@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-inner { max-width: 960px; margin: 0 auto; }

.cookie-text {
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cookie-text a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-text-small {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-actions { display: flex; gap: 0.75rem; }

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cookie-btn-accept { background: #2563eb; color: #fff; }
.cookie-btn-accept:hover { background: #1d4ed8; }

.cookie-btn-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
}

.cookie-btn-decline:hover {
  border-color: #64748b;
  color: #f1f5f9;
}

/* Mermaid enhanced styles */

.mermaid-diagram .node rect,
.mermaid-diagram .subgraph > rect {
  rx: 10;
  ry: 10;
}

.mermaid-diagram .edge {
  stroke-width: 2.5 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mermaid-diagram .node text {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.mermaid-diagram .node text tspan:not(:first-child) {
  font-size: 11px !important;
  font-weight: 400 !important;
  fill: var(--color-text-secondary) !important;
}

.mermaid-diagram .subgraph text {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mermaid-diagram .edge-label text {
  font-size: 10px !important;
  font-weight: 400 !important;
  fill: var(--color-text-muted) !important;
}

.mermaid-diagram .node,
.mermaid-diagram .subgraph {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.mermaid-diagram .edge {
  transition: opacity 0.25s ease, filter 0.25s ease, stroke-width 0.2s ease;
}

.mermaid-diagram .edge-label {
  transition: opacity 0.25s ease;
}

/*
.mermaid-diagram:not(:hover) .node {
  opacity: 0.85;
  transition: opacity 0.3s ease 0.05s;
}

.mermaid-diagram:not(:hover) .edge {
  opacity: 0.5;
  transition: opacity 0.3s ease, stroke-width 0.2s ease;
}

.mermaid-diagram:not(:hover) .edge-label {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.mermaid-diagram:not(:hover) .subgraph {
  opacity: 0.9;
  transition: opacity 0.3s ease 0.05s;
}
.mermaid-diagram:hover .node,
.mermaid-diagram:hover .subgraph {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.mermaid-diagram:hover .edge {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.3s ease, filter 0.3s ease, stroke-width 0.2s ease;
}

.mermaid-diagram:hover .edge-label {
  opacity: 1;
  transition: opacity 0.3s ease;
}
*/


.mermaid-diagram {
  .node { cursor: default; }
  .mermaid-light, .mermaid-dark { max-height: none !important; }
}
/*
.mermaid-diagram .node rect {
  transition: stroke-width 0.2s ease, stroke 0.2s ease;
}

.mermaid-diagram .node:hover rect {
  stroke-width: 1.5 !important;
  stroke: var(--color-accent) !important;
}

.mermaid-diagram:hover .node:hover {
  filter: blur(0) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transform: translateY(-2px);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.mermaid-diagram .subgraph:hover > rect:first-child {
  stroke: var(--color-accent);
  transition: stroke 0.2s ease;
}

.mermaid-diagram .edge:hover {
  stroke-width: 3.5 !important;
}

:root[data-theme="dark"] .mermaid-diagram:hover .node:hover {
  filter: blur(0) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
*/

/* The Getting Started page */

  .cl-us   { background-color: #ddfddd;  font-weight: 600;}
  .cl-you  { background-color: powderblue;  font-weight: 600;}
  .cl-both { background-image: linear-gradient(to bottom right, powderblue 0% 50%,  #ddfddd 51% 100%); font-weight: 600;}

/* Category icons */

.page-category-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-accent);
}

.page-category-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  flex-shrink: 0;
  margin-right: 1rem;
  background: var(--strike-blue);
}

.page-category-hero img {
  width: 5rem;
  height: 5rem;
  filter: brightness(0) invert(1);
}

/* Callout blocks (rendered from `:::tip[Label]` ... `:::` directives) */
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border-inline-start: 4px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child  { margin-bottom: 0; }

.callout-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--color-accent);
}

.callout-tip     { border-color: #2563eb; background: color-mix(in srgb, #2563eb 8%, var(--color-bg)); }
.callout-tip     .callout-title { color: #2563eb; }
.callout-note    { border-color: #64748b; background: color-mix(in srgb, #64748b 8%, var(--color-bg)); }
.callout-note    .callout-title { color: #64748b; }
.callout-warning { border-color: #d97706; background: color-mix(in srgb, #d97706 10%, var(--color-bg)); }
.callout-warning .callout-title { color: #d97706; }
.callout-info    { border-color: #0891b2; background: color-mix(in srgb, #0891b2 8%, var(--color-bg)); }
.callout-info    .callout-title { color: #0891b2; }

:root[data-theme="dark"] .callout-tip     { background: color-mix(in srgb, #60a5fa 12%, var(--color-bg)); }
:root[data-theme="dark"] .callout-tip     .callout-title { color: #60a5fa; }
:root[data-theme="dark"] .callout-note    { background: color-mix(in srgb, #94a3b8 12%, var(--color-bg)); }
:root[data-theme="dark"] .callout-note    .callout-title { color: #cbd5e1; }
:root[data-theme="dark"] .callout-warning { background: color-mix(in srgb, #fbbf24 14%, var(--color-bg)); }
:root[data-theme="dark"] .callout-warning .callout-title { color: #fbbf24; }
:root[data-theme="dark"] .callout-info    { background: color-mix(in srgb, #22d3ee 12%, var(--color-bg)); }
:root[data-theme="dark"] .callout-info    .callout-title { color: #22d3ee; }
