/* Documentation's conceptual map. Native HTML keeps labels searchable,
   selectable and available in the Markdown export without a diagram runtime. */
.md-typeset .sl-architecture {
  --architecture-accent-wash: color-mix(in srgb, var(--sl-accent) 7%, var(--sl-surface));
  display: block;
  width: 100%;
  margin: 1.6em 0;
  color: var(--sl-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.sl-architecture, .sl-architecture * { box-sizing: border-box; }
.sl-architecture a { color: inherit; text-decoration: none; }
.sl-architecture a:hover { color: var(--sl-accent); }
.sl-architecture a:focus-visible {
  outline: 2px solid var(--sl-accent);
  outline-offset: 4px;
}
.sl-architecture__modules,
.sl-architecture__drivers {
  padding: 16px;
  border: 1px solid var(--sl-line);
  border-radius: 12px;
  background: var(--sl-surface);
}
.sl-architecture__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.sl-architecture__heading > :first-child { font-size: 16px; font-weight: 750; }
.sl-architecture__heading > span { color: var(--sl-muted); font-size: 12px; }
.sl-architecture__peers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 14px;
}
.sl-architecture__module {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--sl-line);
  border-radius: 8px;
  background: var(--sl-bg);
}
.sl-architecture__module > strong { font-size: 17px; font-weight: 700; }
.sl-architecture__module > span { color: var(--sl-muted); font-size: 12px; }
.sl-architecture__connections { display: grid; gap: 8px; text-align: center; }
.sl-architecture__connections > a { display: grid; gap: 1px; }
.sl-architecture__connections strong { font-size: 13px; font-weight: 700; color: var(--sl-accent); }
.sl-architecture__connections a > span:not(.sl-architecture__arrow) {
  color: var(--sl-muted);
  font-size: 11px;
}
.sl-architecture__connections .sl-architecture__arrow {
  position: relative;
  display: block;
  height: 4px;
  margin: 4px 0;
  color: transparent;
  border-top: 1px solid var(--sl-accent);
}
.sl-architecture__arrow::before,
.sl-architecture__arrow::after {
  position: absolute;
  top: -4px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--sl-accent);
  border-right: 1px solid var(--sl-accent);
  content: "";
}
.sl-architecture__arrow::before { left: 0; transform: rotate(-135deg); }
.sl-architecture__arrow::after { right: 0; transform: rotate(45deg); }
.sl-architecture__connections .sl-architecture__arrow--event { border-top-style: dashed; }
.sl-architecture__arrow--event::before { display: none; }
.sl-architecture__batteries {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--sl-line);
  color: var(--sl-muted);
  font-size: 12px;
}
.sl-architecture__batteries > :last-child { color: var(--sl-ink); }
.sl-architecture__connector {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  color: var(--sl-muted);
  font-size: 11px;
}
.sl-architecture__connector::before {
  position: absolute;
  inset: 0 auto;
  border-left: 1px solid var(--sl-line);
  content: "";
}
.sl-architecture__connector > span { z-index: 1; padding: 0 10px; background: var(--sl-bg); }
.sl-architecture__kernel {
  border: 1px solid var(--sl-accent);
  border-radius: 12px;
  background: var(--architecture-accent-wash);
}
.sl-architecture__sdk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--sl-accent) 28%, transparent);
  font-size: 12px;
}
.md-typeset .sl-architecture__sdk code { padding: 0; background: transparent; color: var(--sl-accent); font-size: 12px; }
.sl-architecture__runtime { padding: 12px 16px; }
.sl-architecture__guarantees { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.sl-architecture__guarantees > span { font-size: 12px; }
.md-typeset .sl-architecture p { margin: 8px 0 0; color: var(--sl-muted); font-size: 12px; }
.sl-architecture__backends {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sl-architecture__backends > div { display: flex; flex-direction: column; gap: 3px; padding-left: 10px; border-left: 2px solid var(--sl-line); }
.sl-architecture__backends span { color: var(--sl-muted); font-size: 11px; }
.sl-architecture__backends strong { font-size: 13px; font-weight: 650; }
.md-typeset .sl-architecture figcaption { max-width: none; margin: 10px 0 0; padding: 0; color: var(--sl-muted); font-size: 12px; text-align: center; }
@media (max-width: 540px) {
  .sl-architecture__modules, .sl-architecture__drivers { padding: 16px; }
  .sl-architecture__peers { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .sl-architecture__module { padding: 12px 16px; }
  .sl-architecture__connections { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 12px; }
  .sl-architecture__connections .sl-architecture__arrow { border-top: 0; border-left: 1px solid var(--sl-accent); width: 1px; height: 16px; margin: 5px auto 0; }
  .sl-architecture__arrow::before { top: 0; left: -4px; transform: rotate(-45deg); }
  .sl-architecture__arrow::after { top: auto; bottom: 0; right: auto; left: -4px; transform: rotate(135deg); }
  .sl-architecture__connections .sl-architecture__arrow--event { border-left-style: dashed; }
  .sl-architecture__backends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
