/* AnyOne / MarkAny branding overrides.
   Swap --brand for the official MarkAny brand color. */
:root {
    --brand: #1f6feb;
}

/* Accent links and the active sidebar item across the built-in themes. */
.light, .rust, .coal, .navy, .ayu {
    --links: var(--brand);
    --sidebar-active: var(--brand);
}

.menu-title {
    font-weight: 600;
    font-size: large;
}

/* Left-align tables instead of mdBook's default centering, and set them
   ~1px smaller than body text for denser reference tables. */
.content table {
    margin-left: 0;
    margin-right: auto;
    font-size: 0.94rem;
}

/* D2 diagrams (mdbook-d2, inline SVG in a <pre>): render at natural size so
   text stays readable, and scroll horizontally when wider than the column
   instead of shrinking the whole diagram to fit. */
.content pre:has(> svg.d2-svg) {
    overflow-x: auto;
    padding: 0;
    background: transparent;
    border: none;
}
svg.d2-svg {
    max-width: none;
    height: auto;
}
