:root {
    --theme-color-manual: #ac485a;
    --theme-color-tutorial: #228255;
    --theme-color-lsmanual: #194c89;

    --theme-color: #194c89;
}

:root {
    --text-color: #000;
    --background: #f0f3f8;
    --sidebar-background: var(--background);
    --content-background: white;
    --code-background: #eef4fb;
    --selection-background: rgb(207,222,242);
    --attr-background: #00b05e22;
    --node-background: #0057c122;
    --link-color: #386f9c;
    --link-color-hover: rgb(19,49,112);
    --text-secondary: #666;
    --text-tertiary: #aaa;
    --note-mobile: #228255;
    --note-ai: rgb(224,161,0);
    --qftest-color-gradient-light: rgb(35,111,175); /* From qftest.com. */
    --qftest-color-gradient-dark: rgb(19,49,112); /* From qftest.com. */
    --logo-color: rgb(19,49,112);
    --background-color-gradient-dark: #133170; /* do not change manually, see SplashStart. */
    --background-color-gradient-light: #236fac; /* do not change manually, see SplashStart. */
    --table-header-border: #aaa;
    --table-row-border: #ddd;
    --button-background: rgb(218,222,234);
    --shadow: rgb(218,222,234);

    --header-height: 52px;
    --gutter-width: 8rem;
    --gutter-gap: 1rem;
}
.pagination {
    --text-color: var(--text-color) !important;
    --theme-color: var(--theme-color) !important;
}

/* {{{ Default font-size calculated for 15px at a base of 16px */
html {
    font-size: 93.75%;
    background-color: var(--sidebar-background);
    color: var(--text-color);
    --paragraph-width: 950px;
}
/* }}} */
/* {{{ Default font and color */

* {
    word-wrap: break-word;
    box-sizing: border-box;
    /* Avoid ugly overflows*/
    min-width: 0;
    color: var(--text-color);
}
*:focus {
    outline: 2px solid var(--theme-color);
    z-index: 2;
}

body,
p,
ul,
ol,
dl,
td,
button,
h1,.h1
h2,.h2
h3,.h3
h4,.h4
h5,.h5 {
    font-family: OpenSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
}
h1,.h1, h1 *,.h1 *,
h2,.h2, h2 *,.h2 *,
h3,.h3, h3 *,.h3 *,
h4,.h4, h4 *,.h4 *,
h5,.h5, h5 *,.h5 * {
    line-height: 1.2em;
}
code, .man-domnode {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
    white-space: pre-wrap;
}
p code, li code, dd code, dt code, td code {
    font-size: .9em;
    background-color: var(--code-background);
    border-radius: .3em;
    padding: .1em .3em;
    white-space: wrap;
}
code a:not(:is(:hover, :active)) {
    text-decoration: none;
}
code code {
    font-size: 1em !important;
    padding: 0 !important;
}

strong,
strong code {
    font-weight: bold;
}

a,
a:visited,
a.man-wrap .man-node, a.man-wrap:visited .man-node
{
    color: var(--link-color);
    text-decoration-thickness: .09em;
    text-underline-offset: .13em;
}
li, a {
    transition: color .1s, background .1s;
}
a:hover, a:active,
a.man-wrap:hover .man-node, a.man-wrap:active .man-node
{
    color: var(--link-color-hover);
}

/* We sometimes cannot avoid generating <a>s without href, ignore them  */
a[href="javascript:;"].man-wrap,
a[href="javascript:;"].man-wrap > *,
a[href="javascript:;"].man-wrap:is(:hover, :visited, :active, :focus),
a[href="javascript:;"].man-wrap:is(:hover, :visited, :active, :focus) > * {
    color: var(--text-color);
    background-color: transparent;
    cursor: text;
    outline: none;
}
main a {
    border-radius: .2em;
}

a.anchor-id:empty {
    display: inline-block; /* Otherwise the negative margin cannot be applied */
    float: left;
}
a.anchor-id {
    margin-top: calc(-50px - var(--header-height)); /* some breathing room for the scroll anchors */
    padding-top: calc(50px + var(--header-height));

    &:is([name^="att_"], [name^="opt_"]) {
        display: block;
        background-image: url(icons/permalink.svg);
        background-size: 15px;
        background-repeat: no-repeat;
        background-position: bottom;
        opacity: .5;
        height: 15px;
        width: 15px;
        transform: translate(-2rem, 2.1rem);
        cursor: pointer;
        &:hover {
            opacity: 1;
        }
    }
    &:focus {
        outline: none;
    }
}

main > a.anchor-id:first-of-type:empty {
    position: fixed; /* Move the first anchor on the page to the very top */
    top: 0;
    margin-top: 0;
    padding-top: 0;
}

main {
    background: var(--content-background);
    margin: 1rem 10px;
    padding: 2rem 2rem;
    padding-left: 10px;
    /* max-width: max-content; */
    border-radius: 14px;
    box-shadow: 0 5px 10px var(--shadow);

    a.man-ref:not(:hover, :active) {
        text-decoration: none;
    }
    .man-ref::before {
        content: "\2192\00a0"; /* right arrow &#8594; */
    }
    .man-ref[target="_blank"]::before {
        content: "\2197\00a0"; /* globe &#8594; */
    }
    .man-node, a.man-wrap:has(.man-node) {
        --bg: var(--node-background);
        --active-bg: var(--theme-color-lsmanual);
    }
    .man-attr, a.man-wrap:has(.man-attr) {
        --bg: var(--attr-background);
        --active-bg: var(--theme-color-tutorial);
    }
    .man-domnode {
        font-size: .9em;
    }
    .man-node, .man-attr {
        border: 2px solid var(--bg);
        border-radius: .3em;
        padding: .02em 0.1em;
    }
    a.man-wrap {
        border: 2px solid var(--bg);
        border-radius: .3em;
        padding: .02em 0.1em;
        text-decoration: none;
    }
    a.man-wrap:is(:hover, :active) {
        background-color: var(--bg);
    }
    a.man-wrap > .man-node, a.man-wrap > .man-attr {
        background-color: none;
        padding: 0;
        border: none;
    }
}

.videolink:not(:hover, :active) {
    text-decoration: none;
}
.videolink::before {
    content: url(icons/video-thumb.svg);
    display: inline-block;
    width: 1.3em;
    height: auto;
    margin-right: .1em;
    vertical-align: middle;
}

hr {
    background-color: var(--theme-color);
    height: 2px;
    border: 0;
}

ul {
    list-style-type: disc;
}


/* }}} */
/* {{{ Default margins */

main p,
main dl,
main table.indent {
    transition: margin .2s, padding .2s, width .2s, gap .2s;
    margin-left: var(--gutter-width);
    max-width: calc(var(--paragraph-width) - var(--gutter-width));
    /* width: 100%; */
}

ol, ul {
    transition: margin .2s, padding .2s, width .2s, gap .2s;
    padding-left: 0
}
#main ol, #main ul {
    margin-left: var(--gutter-width);
    max-width: calc(var(--paragraph-width) - var(--gutter-width));
    /* width: 100%;*/
}
#main dd ol, #main dd ul {
    margin-left: 0;
    max-width: var(--paragraph-width);
}
nav.auxilliary-nav {
    margin: 1rem 10px;
}
#main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    width: 100%;

    display: flex;
    align-items: center;

    padding: 10px calc(15px + 1em);
}

li p,
td p,
dd p,
td ul,
td ol,
td dl,
li ul,
li ol,
li dl,
dd ul,
dd ol,
dd dl,
td.faqiquestion,
td.faqquestion {
    margin-left: 0;
    max-width: var(--paragraph-width);
    hyphens: auto;
}
li figure, td figure, dd figure {
    margin-left: 0;
}

pre {
    display: inline-block;
    min-width: 300px;
    background-color: var(--code-background);
    padding: 1rem;
    margin: 0; /* reset */
    border-radius: .9rem;
    overflow: auto !important;
    white-space: pre-wrap !important;
    position: relative;
}
pre:has(.copy-to-clipboard) {
    padding-right: 35px;
}
.example pre {
    background-color: var(--selection-background);
}

dl {
    padding-left: 0;
}

ul li, ol li {
    margin-left: 2em;
    padding: 0;
}

dl dt,
dl dt code {
    font-weight: bold;
}
dl dt {
    margin-top: 1ex;
    margin-bottom: 1ex;
}
dl dt:first-child {
    margin-top: 0;
}

dl.attribute,
dl.option {
    font-weight:bold;
}

dl.attribute p,
dl.attribute ul,
dl.option p,
dl.option ul {
    margin-top:.2ex;
    font-weight:normal;
}

ul li {
    margin-top: 1ex;
}

ul li:first-child {
    margin-top: 0;
}

dl dd {
    font-weight: normal;
    margin-left: 2em;
    padding: 0;
}

li p:first-child,
dd p:first-child {
    margin-top: 0;
}

li p:last-child,
dd p:last-child {
    margin-bottom: 0;
}

table.api {
    max-width: var(--paragraph-width);
}

td.caption {
    padding-top: 10px;
    text-align: center;
}

td.margin {
    width: var(--gutter-width);
    padding: 0;
    margin: 0;
}

table.margin {
    width: var(--gutter-width);
    padding: 0;
    margin: 0;
}

/* special nested cases */

table table.figure td.margin,
table table.figure table.margin,
table table.table td.margin,
table table.table table.margin,
li table.figure td.margin,
li table.figure table.margin,
li table.table td.margin,
li table.table table.margin,
dd table.figure td.margin,
dd table.figure table.margin,
dd table.table td.margin,
dd table.table table.margin  {
    width:0 ;
}

td.top {
    vertical-align: top;
}

/* Default align left */
table.tdleft td,
table.tdcenterleft td,
table.tdrightleft td {
    text-align: left;
}

/* centerleft: first column center, rest left */
table.tdcenterleft td:first-child {
    text-align: center;
}

/* rightleft: first column right, rest left */
table.tdrightleft td:first-child {
    text-align: right;
}

/* }}} */
/* {{{ Links */

:is(h2,.h2,h3,.h3,h4,.h4,h5,.h5).header-container td a:visited,
tr.tpart td a:visited,
tr.tchapter td a:visited,
tr.tsection td a:visited,
tr.tsubsection td a:visited,
:is(h2,.h2,h3,.h3,h4,.h4,h5,.h5).header-container td a:link,
tr.tpart td a:link,
tr.tchapter td a:link,
tr.tsection td a:link,
tr.tsubsection td a:link {
    color: var(--text-color);
    text-decoration: none;
}

td.caption a:link,
td.caption a:visited {
    color: var(--text-color);
}

/* }}} */
/* {{{ Titles */

.numtitle, .tsectionnum, .tsubsectionnum {
    opacity: .25;
    transition: opacity .2s;
    text-wrap: nowrap;
}
.numtitle:hover, .tsectionnum:hover, .tsubsectionnum:hover {
    opacity: 1;
}

.header-container {
    display: flex;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    max-width: var(--paragraph-width);
    width: 100%;

    > span {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        gap: 10px;
        justify-content: flex-start;
        flex-shrink: 0;
        width: var(--gutter-width);
        padding-right: var(--gutter-gap);

        /* Truncate items in the gutter via ellipses */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;

        img {
            flex-shrink: 0;
            vertical-align: middle;
        }
        .note {
            top: 0;
        }
        .margin {
            flex-shrink: 0;
            padding: 0;
            display: flex;
            position: initial;
            width: auto;
        }
        .numtitle {
            flex-shrink: 0;
            /* always put numtitle directly next to the heading text */
            order: -1;
        }
        .numtitle:only-child {
            margin-left: auto; /* always keep the  aligned right */
        }
    }

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

    .permalink {
        flex-shrink: 0;
        opacity: .5;
        margin-left: .75rem;
        &:hover {
            opacity: 1;
        }
    }
}

h1,.h1 {
    font-weight: bold;
    font-size: 2.3rem;
    margin-bottom: .5em;
    margin-top: 0;
}

/* }}} */
/* {{{ Part, 20 px */

:is(h2,.h2).header-container {
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: 2.1rem;
}

/* }}} */
/* {{{ Chapter */

:is(h3,.h3).header-container {
    margin-top: .75em;
    margin-bottom: .75em;
    font-size: 1.9rem;
}

/* }}} */
/* {{{ Section */

:is(h4,.h4).header-container {
    margin-top: .6em;
    margin-bottom: .6em;
    font-size: 1.6rem;
}

/* }}} */
/* {{{ Subsection */

:is(h5,.h5).header-container {
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: 1.3rem;
    * {
        font-size: 1em;
    }
}


:is(h6,.h6).header-container {
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: 1.2rem;
* {
    font-size: 1em;
}
}

h1.h1 {
    margin-left: var(--gutter-width);
}

/* }}} */


/* }}} */
/* {{{ Navigation */

.navicon {
    flex-shrink: 0;
    img {
        height: 33px;
        width: auto;
    }
}
.navicon:empty {
    display: none;
}

/* }}} */
/* {{{ Table of contents */

table.toc {
    border: 0;
    padding: 0;
}

/* {{{ part */

tr.tpart td {
    font-size: 1.3846em;    /* 18px */
    vertical-align: top;
    text-decoration: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding-top: 1rem;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 0;
    margin: 0
}

tr.tpart td.margin  {
    width: var(--gutter-width);
}

tr.tpart table.margin {
    width: var(--gutter-width);
}

tr.tpart table.margin td.numtitle {
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: .5rem;
}

/* }}} */
/* {{{ chapter */

tr.tchapter td {
    font-size: 1.1538em;    /* 15px */
    vertical-align: top;
    text-decoration: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding-top: .35rem;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 0;
    margin: 0
}

tr.tchapter td.margin  {
    width: var(--gutter-width);
}

tr.tchapter table.margin {
    width: var(--gutter-width);
}

tr.tchapter table.margin td.numtitle {
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: .5rem;
}

/* }}} */
/* {{{ section */

tr.tsection td {
    font-size: 1.0769em;    /* 14px */
    vertical-align: top;
    text-decoration: none;
    border: 0;
    padding-top: .1rem;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 0;
}

tr.tsection td.margin {
    width: var(--gutter-width);
}

tr.tsection table.margin {
    width: var(--gutter-width);
}

tr.tsection table.margin td.numtitle {
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
}

tr.tsection td.tsectionnum {
    padding-right: .5rem;
}

/* }}} */
/* {{{ subsection */

tr.tsubsection td {
    font-size: 1em;        /* 13px */
    vertical-align: top;
    text-decoration: none;
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 0;
}

tr.tsubsection td.margin {
    width: var(--gutter-width);
}

tr.tsubsection table.margin {
    width: var(--gutter-width);
}

tr.tsubsection table.margin td.numtitle {
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
}

tr.tsubsection td.tsubsectionnum {
    padding-right: .5rem;
}

/* }}} */

table.margin td {
    font-size: 1em;
    border: 0;
}

/* }}} */
/* {{{ steps */

table.step {
    margin-top: 1em;
}

table.step td p:first-child {
    margin-top: 0;
}

table.step td p:last-child {
    margin-bottom: 0;
}

td.marginimg {
    vertical-align: top;
    text-align: right;
    padding-right: .5em;
}

/* }}} */
/* {{{ margin notes */

*:has(> span.margin) {
    position: relative;
}

span.margin {
    position: absolute;
    left: calc(-1 * var(--gutter-width));
    width: var(--gutter-width);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1em;
    margin: 0;
    padding: 0;
    padding-right: var(--gutter-gap);
    vertical-align: top;
}
table.faq td.margin {
    vertical-align: baseline;
    top: .15rem;
    position: relative;
}
li span.margin {
    left: calc(-1 * var(--gutter-width) - 2em); /* offset the left margin of the li element */
}
td.margin > span.margin {
    left: calc(-1 * var(--gutter-width) / 2);
}

span.note {
    display: inline-flex;
    font-weight: bold;
    color: var(--theme-color);
    text-align: right;
    margin: 0;
    padding: 0;
    font-size: .8rem !important;
    text-wrap: nowrap;
}

span.note:not(:has(img)) {
    font-weight: bold;
    background-color: var(--theme-color);
    color: var(--background);
    text-align: right;
    margin: 0;
    position: relative;
    top: 2px;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: .7333em;        /* 12px */
}
span.note:not(:has(img)).Note, span.note:not(:has(img)).Hinweis {
    background-color: var(--text-secondary);
}
span.note:not(:has(img)).Web, span.note:not(:has(img)).Electron {
    background-color: var(--link-color);
}
span.note:not(:has(img)).iOS, span.note:not(:has(img)).Mac, span.note:not(:has(img)).Android {
    background-color: var(--note-mobile);
}
span.note.Windows-Tests {
    font-size: .6em;
}
span.note.ai {
    background-color: var(--note-ai);
}
span.note.ai::after {
    content: " \2728"; /* sparkle emoji */
    color: transparent;
    text-shadow: 0 0 0 var(--content-background);
    font-size: 1.2em;
    line-height: 0;
}
td.margin span.note:not(:has(img)) {
    top: -2px;
}

/* }}} */
/* {{{ faq */

table.faq,
table.faqindex {
}

table.faq {
    margin-top: 1em;
}

table.faq .faqtopic {
    font-size: 1.1538em;    /* 15px */
    font-weight: bold;
    padding-top: 1em;
    padding-bottom: .5em;
    border-top: 2px solid var(--theme-color);
}

table.faq .faqquestion,
table.faq .faqquestionnum {
    font-weight: bold;
}

table.faq .faqquestionnum {
    text-align: right;
    padding-right: .5em;
}

div.faqsep {
    padding-top: 1em;
}

.faqanswer p:first-child {
    margin-top: 0;
}

.faqanswer p:last-child {
    margin-bottom: 0;
}

.faqindex .faqitopic {
    padding-top: 1em;
}

.faqitopic {
    font-size: 1.0769em;    /* 14px */
    font-weight: bold;
    padding-top: 1em;
}

.faqitopic a:link,
.faqitopic a:visited,
.faqiquestion a:link,
.faqiquestion a:visited,
.faqiquestionnum a:link,
.faqiquestionnum a:visited,
{
    color: var(--text-color);
}

.faqindex .faqiquestion,
.faqindex .faqiquestionnum {
    font-size: 1em;
}
td.margin:has(.faqiquestionnum) {
    vertical-align: top;
}

.faqindex .faqiquestionnum {
    text-align: right;
    padding-right: .5em;
}

/* }}} */
/* {{{ api */

table.api {
    padding-top: .5em;
}

td.methoddef {
    padding-top: 1rem;
    padding-bottom: .5rem;
    font-size: 1.2rem;
    letter-spacing: .06em;

}

td.methodsep {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-color);
    font-size: .1em;
}

td.apiend {
    padding-bottom: 1rem;
    font-size: .1em;
}

td.apibegin {
    padding-bottom: .5rem;
    font-size: .1em;
}

td.api td.comment {
    padding-left: 1.5em;
}

td.paramname,
td.throwname {
    padding-left: 1.5em;
    padding-right: .5em;
}

td.paramname,
td.paramdesc,
td.return,
td.returndesc,
td.throwname,
td.throwdesc {
    vertical-align: top;
    padding-bottom: .5em;
}

td.return {
    min-width: 200px; /* Avoid weird table layouts with long return descriptions */
}

tr:last-child td.paramname,
tr:last-child td.paramdesc,
tr:last-child td.return,
tr:last-child td.returndesc,
tr:last-child td.throwname,
tr:last-child td.throwdesc {
    padding-bottom: 0;
}

td.params,
td.return,
td.returndesc,
td.throws {
    padding-top: .5em;
}

td.api td.comment p:first-child,
td.api td.comment ul:first-child,
td.api td.comment ol:first-child,
td.api td.comment dl:first-child,
td.api td.paramdesc p:first-child,
td.api td.throwdesc p:first-child {
    margin-top: 0;
}

td.api td.comment p:last-child,
td.api td.comment ul:last-child,
td.api td.comment ol:last-child,
td.api td.comment dl:last-child,
td.api td.paramdesc p:last-child,
td.api td.throwdesc p:last-child {
    margin-bottom: 0;
}

/* }}} */

body {
    background-color: var(--background);
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(300px, 350px) auto minmax(300px, 350px);
    grid-template-rows: min-content min-content auto min-content;
    grid-template-areas:
    "header          header         header"
    "header-sticky   header-sticky  header-sticky"
    "sidebar-leading subheader      sidebar-trailing"
    "sidebar-leading content        sidebar-trailing"
    "sidebar-leading footer         sidebar-trailing";
    grid-gap: 0;
    line-height: 1.5;
    margin: 0;

    transition: all .2s;
}

.page-container {
    position: relative;
    grid-area: content;
    font-size: 1.2em;
    background-color: var(--background);
    min-height: calc(100vh - 368px); /* magic number that matches the height of all nav bars and the footer */
}

a.skip {
    position: fixed;
    width: auto;
    height: auto;
    right: 50%;
    margin: 0 auto;
    right: 50%;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-color);
    z-index: 100;
    background-color: var(--logo-color);
    color: white;
    width: max-content;
    padding: 5px 10px;
    border: 2px solid white;
    border-radius: calc(1em);
    text-decoration: none;
    transition: top .3s ease-in-out;

    top: -400px;
}
a.skip:focus {
    top: 8px;
}

li .current {
    color: var(--theme-color) !important;
    font-weight: bold;
    .summary {
        color: var(--text-color);
        font-weight: normal;
    }
}

#sidebar-leading {
    position: sticky;
    top: var(--header-height);
    z-index: 5;

    grid-area: sidebar-leading;

    display: flex;
    flex-direction: column;
    gap: 0;

    scrollbar-color: rgba(0,0,0,.2) transparent;

    ul, li {
        margin-left: 0 !important;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

#sidebar-leading .nav-header {
    flex-grow: 1;
}

.home-link-container {
    display: flex;
    align-items: baseline;
    gap: 18px;
}
.home-link-container * {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    border-radius: 5px;
    flex-shrink: 0;
    img {
        height: 59px;
        width: auto;
    }
}
.home-link-container a {
    &:not(:hover) {
        text-decoration: none;
    }
}
.home-link-container > *:not(#home-link) {
    transform: translateY(-4px);
}

#edition-displayname {
    margin-left: -22px; /* Move the edition name slightly below the circle of the QF-Test logo. */
}
#edition-displayname:empty {
    display: none;
}

#sidebar-leading ul {
    padding-left: 0;
}

.cross-link div::before {
    content: "";
    width: 2em;
    height: 2em;
    margin-right: 1rem;
    filter: saturate(0) brightness(0);
    opacity: .6;
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: opacity .2s;
}
.cross-link a {
    --indent: 0px;
    font-weight: normal !important;
}
.cross-link.manual div::before {
    background-image: url("icons/manual.svg")
}
.cross-link.tutorial div::before {
    background-image: url("icons/tutorial.svg")
}
.cross-link.lsmanual div::before {
    background-image: url("icons/lsmanual.svg")
}
.cross-link a:hover div::before {
    opacity: 1;
}

#sidebar-leading, #sidebar-trailing {
    /*position: relative; /* Very important for JS scrolling offsetTop calculations */
    height: calc(100svh - var(--header-height));
    background-color: var(--sidebar-background);
}
#search-results {
    /* Use card styling instead of default sidebar item */
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    margin-left: 5px !important;
    margin-right: 10px !important;
    background: var(--content-background);
    padding: 0 !important;
    border-radius: 14px;
    box-shadow: 0 5px 10px var(--shadow);

    &::after {
        display: none;
    }
    .search-header.heading {
        background: var(--content-background);
    }
    li.search-result {
        a {
            border-radius: 0 !important;
            border-bottom: 1px solid var(--selection-background);
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }
        a:hover, a:active, a.current {
            background-color: var(--selection-background);
        }
    }
    li:last-child a {
        border-bottom: none;
    }
}
}
#search-results.loading {
    pointer-events: none;
}
ul.icon-row {
    flex-direction: row;
    gap: 1em;
    align-items: center;
    max-width: none; /* override global styles */
}

#sidebar-leading a:empty {
    display: none;
}

ul.navlist, ul.navlist li {
    margin: 0 !important;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#sidebar-leading ul.navlist.inner-nav {
    display: none; /* collapsed by default */
    animation: navlist-expand .3s;
}
#main-nav a:has(+ ul.navlist)::before {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.4em;
    height: 1.4em;
    margin-left: -1.4em;
    float: left;
    line-height: 0;
    content: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGJhc2VQcm9maWxlPSJmdWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjciIHZpZXdib3ggPSAiMCAwIDcgNyI+CiAgICA8bGluZSB4MT0iMiIgeTE9IjEiIHgyPSI1IiB5Mj0iMy41IiBzdHlsZT0ic3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c2hhcGUtcmVuZGVyaW5nPWdlb21ldHJpY1ByZWNpc2lvbjsiIHRyYW5zZm9ybT0icm90YXRlKDAsMy41LDIuMjUpIi8+CiAgICA8bGluZSB4MT0iMiIgeTE9IjYiIHgyPSI1IiB5Mj0iMy41IiBzdHlsZT0ic3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c2hhcGUtcmVuZGVyaW5nPWdlb21ldHJpY1ByZWNpc2lvbjsiIHRyYW5zZm9ybT0icm90YXRlKDAsMy41LDQuNzUpIi8+Cjwvc3ZnPg==);
    transition: all .3s;
    transform: translateZ(0) scale(1.2) rotate(0deg);
    opacity: .8;
}
#main-nav a:not(.current):has(+ ul.navlist)::before,
#main-nav a.current.expanded::before {
    transform: translateZ(0) scale(1.4) rotate(90deg) !important;
}
#sidebar-leading .navlist:has(a.current.expanded) .navlist.inner-nav {
    display: flex !important;
}

#sidebar-leading .navlist {
    padding-right: 2px;
}
#sidebar-trailing .navlist {
    padding-left: 2px;
}

ul.navlist {
    padding-right: 2px;
    li {
        a {
            text-decoration: none;
            color: var(--text-color);
        }
        a:hover, a:active, a.current {
            text-decoration: none;
            color: var(--text-color);
            background-color: var(--content-background);
        }
    }

    [class*="level-"], .search-result a, .cross-link a {
        --indent: 0px;
        position: relative;
        border-radius: 0;
        border-top-right-radius: 1em;
        border-bottom-right-radius: 1em;
        padding: 6px 15px;
        padding-left: calc(var(--indent) + calc(15px + 1em));
    }

    li .level-0 {
        --indent: 0px;
        font-size: 0.9em;
        font-weight: 600;
        color: var(--text-secondary) !important;
    }
    li .level-1 {
        --indent: 0px;
        font-size: 1.1em;
        padding-top: 7px;
        padding-bottom: 7px;
        font-weight: 700;
    }
    li .level-2 {
        --indent: 10px;
        font-size: 1em;
        font-weight: 600;
    }
    li .level-3 {
        --indent: 20px;
        font-size: 1em;
        font-weight: 400;
    }
    li .level-4 {
        --indent: 30px;
        font-size: 0.9em;
        font-weight: 500;
    }
    li .level-5, li .level-6 {
        --indent: 40px;
        font-size: 0.9em;
        font-weight: 400;
    }
}

#sidebar-trailing {
    grid-area: sidebar-trailing;
    position: sticky;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
}

#sidebar-trailing > * {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 1.5rem;
    flex: 0 0 0;
}
#sidebar-leading > ::after,
#sidebar-trailing > ::after {
    content: ".";
    color: transparent;
    position: sticky;
    bottom: -1rem;
    height: 30px;
    width: 100%;
    background: linear-gradient(transparent, var(--sidebar-background));
}

#search-results, #onthispage, #other-docs, #main-nav {
    overflow-y: auto;
    padding-bottom: 1rem;
}
#search-results, #onthispage, #main-nav {
    flex-grow: 1;
}

#sidebar-trailing > *:has(> .navlist:empty) {
    display: none;
}


#sidebar-leading .heading, #sidebar-trailing .heading {
    margin: 0;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 48px;
    background: var(--background);
    z-index: 10;
    padding-right: .5rem;
    padding-left: calc(.5rem + 10px);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 600;
    font-size: 1em;

    box-shadow: 10px 10px 10px var(--shadow);

}
#sidebar-leading .heading {
    box-shadow: -10px 10px 10px var(--shadow);
    padding-left: calc(15px + 1rem)
}
.heading + ul {
    margin-top: 1rem !important;
}

#sidebar-trailing li a {
    position: relative;
    border-radius: 0;
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 6px 15px;
    padding-left: 15px;
    padding-right: calc(15px + 1em);
}
#sidebar-trailing .navlist li a {
    padding-left: calc(var(--indent) + 15px);
}
#sidebar-trailing li code {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400 !important;
}

#main-nav {
    padding-top: 1rem;
}

#otherdocs {

}
#onthispage li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navlist:empty {
    display: none;
}
#other-docs-list:empty {
    display: none;
}

main table {
    border: none !important;
    border-collapse: collapse;
}
main table[border="1"] {
    margin: 1rem 0;
}
main table[border="1"] th {
    border: none !important;
    border-bottom: 2px solid var(--table-header-border) !important;
    padding: 5px 10px;
}
main table[border="1"] td {
    border: none !important;
    border-top: 2px solid var(--table-row-border) !important;
    padding: 6px 12px;
}
footer {
    padding: 2rem;
    grid-area: footer;
    align-self: end;

    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-weight: 600;

    background-color: var(--background);

    .last-update {
        color: var(--text-secondary);
        text-align: right;
        flex-grow: 1;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
        li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
    }

    .legal {
        gap: 2rem;
        row-gap: .75rem;
        max-width: none; /* override global ul style */
        a:not(:hover) {
            text-decoration: none;
            color: var(--text-color);
        }
    }
}

.version {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-header {
    grid-area: header;
    display: flex;
    padding: 10px calc(15px + 1rem);
    gap: 3rem;
    align-items: flex-start;
    justify-content: flex-start;
}
#sub-header {
    grid-area: subheader;

    display: flex;
    align-items: center;

    position: relative;
    margin: 1rem 10px;
    margin-bottom: 0;
    padding: 2rem;
    border-radius: 14px;
}

body #sub-header::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    right: 26px;
    width: 60px;
    margin: 5px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    filter: saturate(0) brightness(10);
}

body.tutorial #sub-header::after {
    background-image: url(icons/tutorial.svg);
}
body.manual #sub-header::after {
    background-image: url(icons/manual.svg);
}
body.lsmanual #sub-header::after {
    background-image: url(icons/lsmanual.svg);
}

#main-header {
    grid-area: header-sticky;
}
#main-header {
    display: flex;
    gap: 2rem;

    .breadcrumb {
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;
        gap: 0.3rem;
        font-size: .95rem;
        font-weight: 500;
        max-width: calc(100% - var(--gutter-width)); /* override default ul styling */
        li {
            display: flex;
            gap: 0.3rem;
            list-style: none;
            margin: 0;
            padding: 0;
            flex: 5ch 1 1;
            max-width: max-content;
        }
        li.up::after {
            content: "\279c";
            font-size: .8rem;
            font-weight: normal;
            opacity: .3;
        }
        * {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        a {
            color: var(--text-color);
            text-decoration: none;
            outline-offset: -2px;
            border-radius: 5px;
        }
        code {
            background-color: rgba(255,255,255,.2)
        }
        li.breadcrumb-current {
            flex-shrink: 99999;
        }
    }
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-radius: 14px;
    gap: 4px;
    font-size: 1rem;
    font-weight: 600;
    * {
        white-space: nowrap; /* Avoid issues if the title includes e.g. a <pre> */
    }
    a {
        display: flex;
        gap: .5rem;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        flex-basis: 0;
        max-width: 50%;
        padding: 0 15px;
        height: 33px;
        text-decoration: none;
        text-align: center;
        color: var(--text-color);
        background-color: var(--button-background);
        span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-shrink: 1;
        }
        &[href]:hover, &[href]:focus {
            background-color: var(--content-background);
        }
    }
    a:not([href]) > *, a:not([href])::before {
        opacity: .5;
    }
    a.previous {
        border-top-left-radius: 14px;
        border-bottom-left-radius: 14px;
    }
    a.next {
        border-top-right-radius: 14px;
        border-bottom-right-radius: 14px;
    }
    a:empty {
        opacity: 0.2;
    }
}

main > pre {
    margin-left: var(--gutter-width); /* standalone code blocks */
}
main > span.margin  {
    position: unset; /* standalon margin notes */
}
td:not(.margin) span.margin {
    position: unset;
    float: left;
    width: auto;
    padding-right: var(--gutter-gap);
}

figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow: clip;

    transition: margin .2s, padding .2s, width .2s, gap .2s;
    margin-left: var(--gutter-width);
    max-width: max-content;
}

figure.figure {
    max-width: calc(var(--paragraph-width) - var(--gutter-width));
}
figure.example {
    align-items: flex-start;
}
figure td {
    max-width: var(--paragraph-width);
}
figcaption {
    font-size: .85em;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: var(--paragraph-width);
}

.button, button, #language-chooser {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    height: 33px;
    width: auto;
    flex-shrink: 0;
    border-radius: 5px;
    border: none;
    background: var(--button-background);
    div, a {
        display: block;
        height: 33px;
        padding: 0 10px;
    }
    img {
        height: 28px;
        width: auto;
        object-position: left;
        object-fit: contain;
        pointer-events: none;
    }
    div {
        pointer-events: none;
    }
    a, a:hover, a:active {
        color: var(--text-color);
        text-decoration: none;
        border-radius: 14px;
    }
}

.button > a:has(img, kbd) {
    display: flex;
    gap: .5rem;
    border-radius: 0 !important;
    align-items: center;
    font-weight: bold;
}

#language-chooser {
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}
#language-chooser option {
    font-size: .9rem;
    color: initial;
}
button {
    color: var(--theme-color);
    background-color: var(--button-background);
    line-height: 33px;
    padding: 0;
    cursor: pointer;
}
.navicon button, .navicon .button,
.home-link-container button, .home-link-container .button {
    padding: 0;
    line-height: 0;
    height: min-content;
}
.navicon button, .navicon .button {
    transform: translateY(-1px); /* visual alignment */
}

#searchbox {
    width: 100%;
    max-width: 317px /* visually match width of trailing sidebar */;
    min-width: 180px;
    position: relative;
    display: flex;
    flex-shrink: 5;
    align-items: center;
    border-radius: 14px;
    padding-left: 15px;
    margin-left: auto;
    height: 33px;
}
#searchbox label {
    width: 100%;
}
#searchbox input {
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    border: 0;
    appearance: none;
    background-color: transparent;
    margin: 0;
    width: 100%;
    height: 33px;
}
#searchbox input:focus {
    outline: none;
}
#searchbox:has(input:focus) {
    outline: 2px solid var(--theme-color);
}
#searchbox input::-webkit-search-cancel-button {
    display: none;
}
#searchbox button {
    width: 33px;
    padding: 0;
}
#searchbox button[type=submit] img {
    transform: scale(.8);
}
#searchbox #search-dismiss img {
    transform: scale(.7);
}

.search-header {
    display: flex;
    font-weight: bolder;
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}
.search-header #search-results-count {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-header a:not([href]) {
    color: var(--text-secondary);
    img {
        opacity: .5;
    }
    cursor: default;
    pointer-events: none;
}

#prev-result,
#next-result {
    padding: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 33px;
    width: 33px;
    img {
        height: 50%;
        width: 50%;
        object-fit: contain;
        object-position: center;
        fill: var(--theme-color);
    }
}

#searchbox:has(input:placeholder-shown) #search-dismiss {
    display: none;
}
#searchbox:has(*:focus) kbd {
    display: none;
}
#prev-result img {
    transform: rotate(180deg);
}

.search-result {
    margin-bottom: .5em !important;
    animation: fade .2s;
}
.search-result div:first-child {
    font-weight: bold;
}
.summary {
    font-size: .9em;
}
.summary:empty {
    display: none;
}
mark {
    border-radius: .3em;
}
kbd {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--text-tertiary);
    border-radius: .3em;
    padding: 0 .3em;
    font-family: inherit;
    font-size: .8rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: text-top;
}
#main kbd {
    font-size: 1rem;
    font-weight: normal;
    background-color: var(--code-background);
    border: 1px solid var(--text-secondary);
    box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
    cursor: default;
}

figure button.copy-to-clipboard {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: transparent;
    height: unset;
    border-radius: 5rem;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 3px;
    transition: background .3s;
}

figure button.copy-to-clipboard img {
    height: 22px !important;
}
figure button.copy-to-clipboard.triggered {
    background-color: #48ac7d77;
}
figure button.copy-to-clipboard::before {
    opacity: 0;
    content: "\2713"; /* checkmark */
    color: white;
    line-height: 0;
    transition: opacity .3s;
}
figure button.copy-to-clipboard.triggered::before {
    opacity: 1;
}

#collapse-sidebar, #expand-sidebar {
    cursor: pointer;
    border: none;
    background: none;
}
#expand-sidebar {
    display: none;
}

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

@keyframes fade {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes navlist-expand {
    from {opacity: 0; transform: translateZ(0) scaleY(0); transform-origin: top}
    to   {opacity: 1; transform: translateZ(0) scaleY(1); transform-origin: top}
}



/* THEMES */
#main-header, #page-header, #sub-header {
    background-image: linear-gradient(90deg,var(--background-color-gradient-dark) 0%, var(--background-color-gradient-light) 100%);
    background-attachment: fixed;
    background-position: top left;
    --theme-color: white;
    --text-color: white;
    --text-tertiary: #fffa;
    --link-color: white;
    --link-color-hover: white;

    input, input::placeholder, #language-chooser, #search-results-count {
        color: var(--text-color);
    }
    input::placeholder {
        opacity: .8;
    }
    a:not(:hover) {
        text-decoration: none;
    }
    img {
        filter: invert() brightness(100) grayscale() contrast(2);
    }

    button[type=submit], #search-dismiss {
        background: none;
    }
    button, .button, select {
        background-color: transparent;
    }
    form, .button:not(:has(img)) {
        border: 2px solid var(--theme-color);
        color: var(--theme-color);
    }
}
#main-header, #page-header {
    background-image: linear-gradient(90deg,var(--qftest-color-gradient-dark) 9vw,var(--qftest-color-gradient-light) 91vw);
}

body.theme-topnav {
    --paragraph-width: 1200px;

    grid-template-columns: auto !important;
    grid-template-areas:
    "header"
    "header-sticky"
    "subheader"
    "content"
    "footer";

    #sidebar-leading, #sidebar-trailing {
        display: none;
    }
    main {
        padding: 2rem;
    }
    #collapse-sidebar {
        display: none;
    }
    #expand-sidebar {
        display: block;
    }
}

@media (max-width: 1450px) {
    :root {
        --gutter-width: 0px;
    }

    main {
        padding-left: 2rem;
    }

    .header-container > span:empty {
        display: none;
    }

    td.margin {
        width: 0px;
    }
    table.margin {
        width: 0px;
    }
    span.margin {
        position: initial !important;
        display: inline;
        vertical-align: text-bottom;
        padding: 0;
    }
    span.margin:has(img) {
        vertical-align: middle;
    }
    span.margin span.note {
        display: inline;
    }
    .header-container > span {
        width: auto !important;
        gap: .5rem;
    }
    .header-container span.note:not(:has(img)) {
        top: 0;
    }

    body:has(#sidebar-trailing:not(.has-search)) {
        grid-template-columns: minmax(300px, 350px) auto;
        #sidebar-trailing { display: none; }
    }

    a.anchor-id:is([name^="att_"], [name^="opt_"]) {
        transform: translate(-1rem, 2.1rem);
    }
    a.anchor-id:is([name^="att_"], [name^="opt_"]) + * {
        margin-left: 1rem;
    }
    td.margin:has(.marginimg), table.margin:has(.marginimg) {
        width: max-content; /* leave space for margin icons */
    }
}

@media (max-width: 1150px) {

    :root {
        --sidebar-background: #f0f3f8;
    }
    body {
        grid-template-columns: auto !important;
        grid-template-areas:
        "header"
        "header-sticky"
        "subheader"
        "sidebar-leading"
        "content"
        "sidebar-trailing"
        "footer";
    }

    .numtitle, .tsectionnum, .tsubsectionnum, #otherdocs {
        display: none;
    }

    #sidebar-leading, #sidebar-trailing {
        height: auto;
        position: initial;
        overflow: initial;
    }
    .home-link img {
        height: 1.9rem;
        width: auto;
    }

    #search-results {
        .summary {
            display: none;
        }
        li:has(a) {
            display: none;
        }
        li:has(.current) {
            display: flex !important;
        }
        li:has(.current) + li {
            display: flex !important;
        }
        li:has(+ li .current) {
            display: flex !important;
        }
    }
    #search-results:not(:has(.current)) {
        display: none;
    }

    #main-nav, #search-results {
        overflow-y: hidden;
    }
    #main-nav {
        padding: 0;
        li:has(a) {
            display: none;
        }
        li:has(.current) {
            display: flex !important;
        }
        li:has(.current) + li {
            display: flex !important;
        }
    }
    #main-nav:not(:has(.current)) {
        display: none;
    }
    main {
        padding: 10px 2rem !important;
    }

    .home-link-container > *:not(#home-link) {
        transform: translateY(-2px);
    }

    #edition-displayname {
        margin-left: -15px;
    }
}

@media (max-width: 900px) {
    #main-header .breadcrumb {
        display: none;
    }
}

@media (max-width: 750px) {
    #main-header .breadcrumb {
        display: none;
    }
}


@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --background: #28292a;
        --sidebar-background: var(--background);
        --content-background: #191919;
        --code-background: #4c4c4c;
        --selection-background: #0057c166;
        --attr-background: #00b05e44;
        --node-background: #0057c166;
        --link-color: #5992c5;
        --link-color-hover: #6aabdf;
        --text-secondary: #ccc;
        --text-tertiary: #888;
        --logo-color: var(--text-color);
        --note-mobile: #2eb073;
        --note-ai: rgb(245,195,67);
        --table-header-border: #565656;
        --table-row-border: #383838;
        --button-background: rgba(66, 81, 103, 0.5);
        --shadow: #191C21;

        --theme-color-manual: #c35b6f;
        --theme-color-tutorial: #48ac7d;
        --theme-color-lsmanual: #5399d3;
        --theme-color: #5399d3;
    }
    .home-link img {
        filter: brightness(100) grayscale() contrast(2) !important;
    }
    .videolink::before {
        filter: brightness(1.3);
    }
    a.skip {
        background-color: black;
    }
    mark {
        background-color: #a58f00;
    }
    .permalink img,
    #searchbox img,
    #prev-result img,
    #next-result img,
    #search-dismiss img,
    #main-nav a:has(+ ul.navlist)::before,
    a.anchor-id:is([name^="att_"], [name^="opt_"]) {
        filter: invert(1);
    }
    img[src='icons/linkprev.svg'], img[src='icons/linknext.svg'], img[src='icons/linkdown.svg'] {
        filter: brightness(1.5) saturate(0.6);
    }
    figure img {
        transition: filter .3s;
    }
    figure img:not(:hover) {
        filter: brightness(.75);
    }
    figure button.copy-to-clipboard img {
        filter: invert(1);
    }
    #main kbd {
        box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2),
                    0 -2px 0 0 rgba(255, 255, 255, 0.7) inset;
    }
    .cross-link div::before {
        filter: saturate(0) brightness(100);
    }
}

.file-local .permalink {
    display: none; /* Don't show permalink icons in local files since the URL is not shareable anyways */
}
.file-local .legal-link {
    display: none;
}
.file-local a.anchor-id:is([name^="att_"], [name^="opt_"]) {
    opacity: 0;
    &:hover {
        opacity: 0;
    }
}
html:not(.file-local) .local {
    display: none; /* Only show with local presentation */
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    footer, header, nav, button, #sidebar-leading, .skip {
        display: none !important;
    }
}

@view-transition {
    navigation: auto;
}
