:root {
    --md-primary-fg-color: #2563eb;
    --md-primary-fg-color--light: #6494ff;
    --md-primary-fg-color--dark: #144dc9;
    --md-accent-fg-color: #3776ff;
    --md-default-bg-color: #fbfbfb;
}

[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0b0c0d;
    --md-primary-fg-color: #3776ff;
}

/* Wrap only code blocks marked with .code-wrap */
.md-typeset .code-wrap code,
.md-typeset code.code-wrap {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Keep inline-code identifiers in the first ("Field") column of tables on one
   line each — break between words/underscores rather than mid-token, so names
   like `number_of_turns_distribution` don't split a word across two lines. */
.md-typeset table:not([class]) td:first-child code,
.md-typeset table:not([class]) th:first-child code {
    white-space: nowrap;
}

/*.md-typeset .ui-item {
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.005em;
    white-space: nowrap;

    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration-color: var(--md-default-fg-color--lighter);
}*/

.md-typeset .ui-item {
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--md-default-fg-color);
    background-color: color-mix(
        in srgb,
        var(--md-default-fg-color) 5%,
        transparent
    );

    border-radius: 0.25em;
    padding: 0 0.12em;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* "Copy as Markdown" page action (docs/overrides/main.html), floated like Material's own
   page-action buttons. */
.copy-md {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0.4rem 0 0.4rem 0.8rem;
    padding: 0.3em 0.7em;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--md-default-fg-color--light);
    background: transparent;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.3rem;
    cursor: pointer;
    transition: color 125ms, border-color 125ms;
}

.copy-md:hover,
.copy-md:focus-visible {
    color: var(--md-accent-fg-color);
    border-color: var(--md-accent-fg-color);
}

/* From 60em up Material shows the TOC sidebar, where the button sits above the TOC; below that
   the in-content copy is used instead. Keep this breakpoint in sync with Material's. */
.copy-md--toc {
    float: none;
    margin: 0 0 0.8rem;
}

/* Material also includes the TOC partial inside the primary (left) navigation; only the
   secondary sidebar should carry the button. */
.md-sidebar--primary .copy-md--toc {
    display: none;
}

@media screen and (min-width: 60em) {
    .copy-md--inline {
        display: none;
    }
}

.copy-md__icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentcolor;
}
