/* mdsite default style template — layered on Bootstrap; only what utilities cannot express. */
:root {
  --mdsite-ink: #1f2933;
  --mdsite-muted: #52606d;
  --mdsite-accent: #0b4f8a;
  --mdsite-accent-soft: #e6eef6;
  --mdsite-rule: #d9dee3;
  --mdsite-surface: #f5f7f9;
  --mdsite-code-bg: #f3f4f6;
  --mdsite-sidebar-width: 18rem;
  --bs-body-color: var(--mdsite-ink);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color-rgb: 11, 79, 138;
  --bs-link-hover-color-rgb: 7, 52, 92;
}

body {
  background: #fff;
  overflow-wrap: break-word;
}

/* Visible focus for keyboard users (WCAG 2.4.7). */
a:focus-visible,
summary:focus-visible,
main:focus-visible {
  outline: 3px solid var(--mdsite-accent);
  outline-offset: 2px;
}

.mdsite-skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--mdsite-accent);
  border: 2px solid var(--mdsite-accent);
}

/* Header */
.mdsite-header {
  background: var(--mdsite-accent);
  color: #fff;
}

.mdsite-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.mdsite-brand:hover,
.mdsite-brand:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.mdsite-brand:focus-visible {
  outline-color: #fff;
}

.mdsite-logo {
  height: 2rem;
  width: auto;
}

/* Sidebar */
.mdsite-sidebar {
  background: var(--mdsite-surface);
  border-right: 1px solid var(--mdsite-rule);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .mdsite-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* Tree */
.mdsite-nav,
.mdsite-nav ul {
  margin: 0;
  padding: 0;
}

.mdsite-nav ul {
  padding-left: 0.9rem;
  border-left: 1px solid var(--mdsite-rule);
  margin-left: 0.55rem;
}

.mdsite-nav li {
  margin: 0.1rem 0;
}

.mdsite-nav summary {
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: var(--mdsite-ink);
  border-radius: 0.25rem;
}

.mdsite-nav summary:hover {
  background: var(--mdsite-accent-soft);
}

.mdsite-link {
  display: block;
  padding: 0.25rem 0.5rem;
  color: var(--mdsite-ink);
  text-decoration: none;
  border-radius: 0.25rem;
}

.mdsite-link:hover {
  background: var(--mdsite-accent-soft);
  color: var(--mdsite-accent);
}

.mdsite-link.active {
  background: var(--mdsite-accent);
  color: #fff;
  font-weight: 600;
}

/* Mobile menu: a native <details>, no script. */
.mdsite-menu {
  margin: 0.75rem 0;
  border: 1px solid var(--mdsite-rule);
  border-radius: 0.375rem;
  background: var(--mdsite-surface);
}

.mdsite-menu > summary {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.mdsite-menu > nav {
  padding: 0 0.75rem 0.75rem;
}

/* Content */
.mdsite-content {
  padding-top: 1rem;
  padding-bottom: 2rem;
  max-width: 72rem;
}

.mdsite-content .breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.mdsite-content .breadcrumb-item.active {
  color: var(--mdsite-muted);
}

.mdsite-body h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mdsite-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--mdsite-rule);
}

.mdsite-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

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

.mdsite-body blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--mdsite-rule);
  color: var(--mdsite-muted);
}

.mdsite-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border-collapse: collapse;
}

.mdsite-body th,
.mdsite-body td {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--mdsite-rule);
  vertical-align: top;
}

.mdsite-body thead th {
  background: var(--mdsite-surface);
  font-weight: 600;
}

.mdsite-body code {
  color: #9b1c48;
  background: var(--mdsite-code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.mdsite-body pre {
  background: var(--mdsite-code-bg);
  border: 1px solid var(--mdsite-rule);
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  color: var(--mdsite-ink);
}

.mdsite-body pre code {
  color: inherit;
  background: none;
  padding: 0;
}

.mdsite-body .task-list-item {
  list-style: none;
}

.mdsite-body .contains-task-list {
  padding-left: 1.25rem;
}

.mdsite-task {
  display: inline-block;
  width: 1.25em;
  font-size: 1.1em;
  line-height: 1;
}

.mdsite-body pre:focus-visible {
  outline: 3px solid var(--mdsite-accent);
  outline-offset: 2px;
}

/* Syntax colours (ColorCode CSS classes); all ≥ 4.5:1 on the code background. */
.mdsite-body .keyword { color: #0b4f8a; font-weight: 600; }
.mdsite-body .string { color: #a3151d; }
.mdsite-body .comment { color: #3d6b35; font-style: italic; }
.mdsite-body .number { color: #7a3e9d; }
.mdsite-body .preprocessorKeyword { color: #6b4e00; }
.mdsite-body .className,
.mdsite-body .type { color: #1d5e6a; }
.mdsite-body .xmlName,
.mdsite-body .htmlTagDelimiter,
.mdsite-body .htmlElementName { color: #7a1f1f; }
.mdsite-body .xmlAttribute,
.mdsite-body .htmlAttributeName { color: #8a4b00; }
.mdsite-body .xmlAttributeValue,
.mdsite-body .htmlAttributeValue { color: #0b4f8a; }

/* On this page */
.mdsite-toc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1200px) {
  .mdsite-toc {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    border-left: 1px solid var(--mdsite-rule);
  }
}

.mdsite-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mdsite-muted);
  margin: 0 0 0.5rem;
}

.mdsite-toc a {
  display: block;
  padding: 0.15rem 0;
  color: var(--mdsite-muted);
  text-decoration: none;
}

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

.mdsite-toc-l3 {
  padding-left: 0.85rem;
}

/* Footer */
.mdsite-footer {
  border-top: 1px solid var(--mdsite-rule);
  color: var(--mdsite-muted);
  font-size: 0.875rem;
}
