/*
    The docs pages: the gallery wall, the articles and the API pages. Everything is scoped to .lvc-docs so the
    rest of the site keeps its styles. Light only; the charts are the color, the page stays in zinc.
*/

/*
    Plus Jakarta Sans (SIL OFL), the face of Flujo, in the four weights the docs set: ExtraBold for a name, Light
    for the line that says what it is, Regular for text and SemiBold for bold text. Latin subsets; other scripts
    fall back to the system face.
*/
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800 900;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
}

:root {
    /* slate: the page slate-50, text and titles slate-900, the charts and menus white on it */
    --docs-page: #F8FAFC;
    --docs-paper: #FFFFFF;
    --docs-stripe: #F1F5F9;
    --docs-edge: #E2E8F0;
    --docs-ink: #0F172A;
    --docs-body: #0F172A;
    --docs-muted: #64748B;
    --docs-faint: #94A3B8;
    --docs-title: #0F172A;
    --docs-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --docs-mono: 'JetBrains Mono', ui-monospace, monospace;
    /* the page, as wide on every docs page; an article's column, where its text, code and charts are, about 93
       characters a line, 109 on a large screen (below) */
    --docs-article: 1644px;
    --docs-text: 820px;
    /* the room between the bar and a page's title, the gallery's and an article's at the same height; on a large
       screen about what a part has above its heading */
    --docs-head-top: 24px;

    /* one accent, the blue of the default chart theme, darker where it is text so it reads on the page */
    --docs-accent: #1976D2;
    --docs-accent-text: #1565C0;
    --docs-accent-line: #90CAF9;
    --docs-info: #E3F2FD;
    --docs-info-edge: #2196F3;
    --docs-tip: #E8F5E9;
    --docs-tip-edge: #43A047;
    --docs-warning: #FFF8E1;
    --docs-warning-edge: #FFA000;
}

@media (min-width: 760px) {
    :root {
        --docs-head-top: 48px;
    }
}

@media (min-width: 1100px) {
    :root {
        --docs-head-top: 80px;
    }
}

@media (min-width: 1600px) {
    :root {
        --docs-text: 960px;
    }
}

body.lvc-docs-body {
    background: var(--docs-page);
}


/*
    The content area under the site bar. Every docs page is as wide as an article, the gallery and the API too, so
    the bar, the page and the footer line up at any window width and nothing moves from one page to the next.
*/
.lvc-docs-main {
    max-width: calc(var(--docs-article) + 96px);
    margin: 0 auto;
    padding: 104px 48px 120px;
}

@media (max-width: 760px) {
    .lvc-docs-main {
        padding: 88px 16px 80px;
    }
}

.lvc-docs {
    font-family: var(--docs-sans);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    color: var(--docs-body);
    -webkit-font-smoothing: antialiased;
}

.lvc-docs a {
    color: var(--docs-accent-text);
    text-decoration: underline;
    text-decoration-color: var(--docs-accent-line);
    text-underline-offset: 3px;
}

    .lvc-docs a:hover {
        text-decoration-color: var(--docs-accent-text);
    }

/*
    A name is ExtraBold and what it is goes under it in Light, often at the same size (the head of Flujo): the
    gallery's title and its line, a sample page's name and its line, a card's title and its text.
*/
.lvc-docs h1,
.lvc-docs h2,
.lvc-docs h3,
.lvc-docs h4 {
    font-family: inherit;
    color: var(--docs-title);
    font-weight: 800;
    letter-spacing: -0.022em;
}

    .lvc-docs h3,
    .lvc-docs h4 {
        font-weight: 700;
        letter-spacing: -0.015em;
    }

.lvc-docs h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.lvc-docs :not(pre) > code {
    font-family: var(--docs-mono);
    font-size: .86em !important;
    font-weight: 400;
    line-height: inherit;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--docs-stripe);
    color: var(--docs-title);
}

.lvc-docs pre {
    margin: 0;
    border-radius: 14px !important;
}

    .lvc-docs pre code,
    .lvc-docs pre code.hljs {
        display: block;
        padding: 20px 22px;
        font-family: var(--docs-mono);
        font-size: 15.5px !important;
        line-height: 1.7;
        font-weight: 400;
        color: var(--docs-title);
        background: var(--docs-stripe);
        border: 0;
        border-radius: 14px;
        overflow-x: auto;
    }

/* the site theme fades the xml markup, the docs keep it readable */
.lvc-docs code.hljs.language-xml *:not(.lvc-obj):not(.lvc-obj *) {
    opacity: 1;
}

.lvc-docs button {
    font: inherit;
    cursor: pointer;
}

.lvc-docs .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------------ the wall */

/* the header: "Gallery" and its line, with room above it and before the filters */
.lvc-wall .wall-top {
    margin-top: var(--docs-head-top);
}

/* the gallery's line, under its title in Light */
.lvc-wall .wall-intro {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--docs-title);
}

/* start here: the articles no sample opens, white tiles like the cards, each its title and what it is about */
.lvc-wall .wall-start {
    margin-top: 56px;
}

.lvc-wall .wall-label {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--docs-faint);
}

.lvc-wall .wall-start-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 1100px) {
    .lvc-wall .wall-start-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

    .lvc-wall .wall-start-grid a {
        display: block;
        padding: 18px 20px 20px;
        border: 1px solid var(--docs-edge);
        border-radius: 14px;
        background: var(--docs-paper);
        color: var(--docs-ink);
        text-decoration: none;
    }

        .lvc-wall .wall-start-grid a:hover {
            border-color: var(--docs-title);
        }

    .lvc-wall .wall-start-grid b {
        display: block;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--docs-title);
    }

        .lvc-wall .wall-start-grid b::after {
            content: ' \2192';
            font-weight: 400;
        }

    .lvc-wall .wall-start-grid span {
        display: block;
        margin-top: 4px;
        font-size: 15px;
        font-weight: 300;
        line-height: 1.45;
    }

/* a phone: the tiles are their titles, two a row, so the charts are not a screen away */
@media (max-width: 599px) {
    .lvc-wall .wall-start-grid a {
        padding: 14px 16px;
    }

    .lvc-wall .wall-start-grid span {
        display: none;
    }
}

/* the filters: text tabs on one line, a rule between the chart types and the features; the selected one dark
   and underlined */
.lvc-wall .wall-filters {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    font-size: 15px;
}

.lvc-wall .wall-filter-group {
    display: contents;
}

.lvc-wall .wall-filter-rule {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: var(--docs-edge);
}

.lvc-wall .wall-chip {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-weight: 500;
    line-height: 1.2;
    color: var(--docs-muted);
}

    .lvc-wall .wall-chip:hover {
        color: var(--docs-title);
    }

    .lvc-wall .wall-chip span {
        margin-left: 2px;
        font-size: .8em;
        color: var(--docs-faint);
    }

    .lvc-wall .wall-chip[aria-pressed="true"] {
        font-weight: 700;
        color: var(--docs-title);
        box-shadow: inset 0 -2px 0 var(--docs-title);
    }

        .lvc-wall .wall-chip[aria-pressed="true"] span {
            color: var(--docs-muted);
        }

/* cards, up to three a row: the chart, then its title, then its line and its cases */
.lvc-wall .wall-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 64px 40px;
}

@media (min-width: 700px) {
    .lvc-wall .wall-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .lvc-wall .wall-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lvc-wall .wall-item {
    display: flex;
    /* the whole item is a link: it keeps the ink color and no decoration */
    flex-direction: column;
    color: var(--docs-ink);
    text-decoration: none;
}

    .lvc-wall .wall-item[hidden] {
        display: none;
    }

/* the title on a line of its own, then its line in Light and its cases as quiet text after it */
.lvc-wall .wall-caption {
    margin: 18px 0 0;
}

.lvc-wall .wall-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lvc-wall .wall-line {
    margin: 6px 0 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--docs-ink);
}

.lvc-wall .wall-cases {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--docs-faint);
    white-space: nowrap;
}

/* the chart on a card: a hairline frame keeps the white image apart from the white page */
.lvc-wall .wall-item img,
.lvc-wall .wall-item video.sample-video,
.related-item img,
.related-item video.sample-video {
    width: 100%;
    height: auto;
    aspect-ratio: 624 / 416;
    display: block;
    box-sizing: border-box;
    background: var(--docs-paper);
    border: 1px solid var(--docs-edge);
    border-radius: 14px;
}

.lvc-wall .wall-empty {
    margin-top: 40px;
    color: var(--docs-faint);
}

/* --------------------------------------------------------------------------------------------- the article */

/*
    The article and the sample pages are one column on the logo's edge: the title, the lead and every part of the
    article (a <section class="doc-section"> the generator writes), its text, code, samples and tables on one
    measure, --docs-text, so they all start and end on the same lines. A part starts with its heading, in the text;
    the space above the heading sets the part apart. The parts are taken out of their boxes (display: contents), so
    every heading, paragraph and box is a row of the article's grid. Where the page has room, an outline of the
    parts is at its right edge (docs.js writes it).
*/
.lvc-docs.lvc-article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, var(--docs-text));
    align-content: start;
    max-width: var(--docs-article);
    margin: var(--docs-head-top) auto 0;
    font-size: 19px;
}

.lvc-article > .doc-section,
.doc-section-body {
    display: contents;
}

.lvc-article > *,
.doc-section > h2,
.doc-section-body > * {
    min-width: 0;
}

.lvc-article > h1 {
    font-size: clamp(40px, 5vw, 64px);
}

/* the lead, the line under the title, in Light */
.lvc-article > h1 + p {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.42;
    letter-spacing: -0.01em;
    color: var(--docs-title);
}

/* the introduction, what comes after the lead and before the first part, a size larger than the text (:where, so
   a paragraph with a class of its own keeps its size) */
.lvc-article > :where(h1 + p ~ p):has(~ .doc-section) {
    font-size: 22px;
    line-height: 1.55;
}

.doc-section > h2 {
    margin: 112px 0 24px;
    font-size: 30px;
    line-height: 1.15;
    scroll-margin-top: 24px;
}

/* the heading's margin is the room above a part's first block */
.doc-section-body > :first-child {
    margin-top: 0 !important;
}

/*
    The outline: "On this page" and the parts, at the page's right edge where the page has room for it, its right
    edge the last icon's of the bar. The titles are aligned to a hairline at their right, the part being read
    marked on it and in bold.
*/
.doc-outline {
    display: none;
}

@media (min-width: 1260px) {
    .doc-outline {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 240px;
        text-align: right;
    }
}

    .doc-outline > div {
        position: sticky;
        top: 32px;
        padding-top: 6px;
    }

    .doc-outline p {
        margin: 0 0 12px;
        font-size: 13px;
        color: var(--docs-faint);
    }

.lvc-article .doc-outline ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-right: 1px solid var(--docs-edge);
}

.lvc-article .doc-outline li + li {
    margin-top: 0;
}

.lvc-docs .doc-outline a {
    display: block;
    margin-right: -1px;
    padding: 6px 16px 6px 0;
    border-right: 2px solid transparent;
    font-size: 15px;
    line-height: 1.4;
    color: var(--docs-muted);
    text-decoration: none;
}

    .lvc-docs .doc-outline a:hover {
        color: var(--docs-title);
    }

    .lvc-docs .doc-outline a[aria-current="true"] {
        border-right-color: var(--docs-title);
        font-weight: 700;
        color: var(--docs-title);
    }

:is(.lvc-article, .doc-section-body) > h3 {
    margin: 48px 0 0;
    font-size: 26px;
    line-height: 1.2;
}

:is(.lvc-article, .doc-section-body) > h4 {
    margin: 40px 0 0;
    font-size: 21px;
}

:is(.lvc-article, .doc-section-body) > p,
:is(.lvc-article, .doc-section-body) > ul,
:is(.lvc-article, .doc-section-body) > ol,
:is(.lvc-article, .doc-section-body) > blockquote,
:is(.lvc-article, .doc-section-body) > table,
:is(.lvc-article, .doc-section-body) > .install {
    margin: 16px 0 0;
}

:is(.lvc-article, .doc-section-body) > pre {
    margin: 24px 0 0;
}

/* code a size smaller than the docs' default, so most lines fit the measure; a longer one scrolls in its block */
.lvc-article pre code,
.lvc-article pre code.hljs {
    padding: 18px 20px;
    font-size: 14px !important;
}

.lvc-article ul,
.lvc-article ol {
    padding-left: 22px;
}

.lvc-article li + li {
    margin-top: 8px;
}

:is(.lvc-article, .doc-section-body) > p > img,
:is(.lvc-article, .doc-section-body) > img {
    display: block;
    justify-self: start;
    max-width: 100%;
    height: auto;
    margin: 24px 0 0;
    box-sizing: border-box;
    background: var(--docs-paper);
    border: 1px solid var(--docs-edge);
    border-radius: 12px;
}

.lvc-article blockquote {
    padding-left: 18px;
    border-left: 2px solid var(--docs-edge);
    color: var(--docs-muted);
}

.lvc-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

    .lvc-article table th,
    .lvc-article table td {
        padding: 10px 16px 10px 0;
        border-bottom: 1px solid var(--docs-edge);
        text-align: left;
        vertical-align: top;
    }

    .lvc-article table th {
        color: var(--docs-title);
        font-weight: 600;
    }

/* :::info and :::tip containers */
:is(.lvc-article, .doc-section-body) > .info,
:is(.lvc-article, .doc-section-body) > .tip,
:is(.lvc-article, .doc-section-body) > .warning {
    margin: 24px 0 0;
    padding: 16px 20px;
    border-radius: 0;
    background: var(--docs-info);
    box-shadow: inset 3px 0 0 var(--docs-info-edge);
    font-size: 16px;
    line-height: 1.6;
    color: var(--docs-ink);
}

    :is(.lvc-article, .doc-section-body) > .tip {
        background: var(--docs-tip);
        box-shadow: inset 3px 0 0 var(--docs-tip-edge);
    }

    :is(.lvc-article, .doc-section-body) > .warning {
        background: var(--docs-warning);
        box-shadow: inset 3px 0 0 var(--docs-warning-edge);
    }

    :is(.lvc-article, .doc-section-body) > .info :not(pre) > code,
    :is(.lvc-article, .doc-section-body) > .tip :not(pre) > code,
    :is(.lvc-article, .doc-section-body) > .warning :not(pre) > code {
        background: rgba(255, 255, 255, .7);
    }

    :is(.lvc-article, .doc-section-body) > .info > :first-child,
    :is(.lvc-article, .doc-section-body) > .tip > :first-child {
        margin-top: 0;
    }

    :is(.lvc-article, .doc-section-body) > .info > :last-child,
    :is(.lvc-article, .doc-section-body) > .tip > :last-child {
        margin-bottom: 0;
    }

/* the install boxes of the installation article, and the files of a sample page: a white tile, a header with the
   box's name and a button that copies it, then the code */
.lvc-article :is(.install, .code-file) {
    border: 1px solid var(--docs-edge);
    border-radius: 14px;
    background: var(--docs-paper);
    overflow: hidden;
}

.lvc-article :is(.install-header, .code-file-header) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--docs-muted);
    border-bottom: 1px solid var(--docs-stripe);
}

.lvc-article :is(.install-copy, .code-file-copy) {
    border: 1px solid var(--docs-edge);
    border-radius: 9px;
    background: var(--docs-paper);
    padding: 4px 12px;
    font-size: 14px;
    color: var(--docs-ink);
}

.lvc-article .install-body {
    padding: 14px 16px;
    font-family: var(--docs-mono);
    font-size: 14px;
    color: var(--docs-title);
    overflow-x: auto;
}

    .lvc-article .install-body pre code {
        padding: 0;
        background: none;
    }

/* a file of a sample page: its name in the code's face, the code on the tile, one file after the other */
.doc-section-body > .code-file {
    margin: 24px 0 0;
}

.lvc-article .code-file-name {
    font-family: var(--docs-mono);
    font-size: 13px;
    color: var(--docs-title);
}

.lvc-article .code-file pre code,
.lvc-article .code-file pre code.hljs {
    background: none;
    border-radius: 0;
}

.lvc-article #edit-this-article-source {
    margin-top: 96px;
    font-size: 15px;
}

    .lvc-article #edit-this-article-source img {
        display: none;
    }

/* a sample: the tabs, then the result or the code in the same place */
.lvc-article figure.sample {
    margin: 32px 0 0;
}

.lvc-article .sample-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

/* text tabs, as the gallery's filters: the selected one dark, bold and underlined */
.lvc-article .sample-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.lvc-article .sample-tab {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--docs-muted);
}

    .lvc-article .sample-tab:hover {
        color: var(--docs-title);
    }

    .lvc-article .sample-tab[aria-selected="true"] {
        font-weight: 700;
        color: var(--docs-title);
        box-shadow: inset 0 -2px 0 var(--docs-title);
    }

.lvc-article .sample-play {
    margin-left: auto;
    padding: 8px 4px;
    min-height: 40px;
    border: 0;
    background: none;
    font-size: 14px;
    color: var(--docs-muted);
}

    .lvc-article .sample-play:hover {
        color: var(--docs-title);
    }

.lvc-article .sample-panel[hidden] {
    display: none;
}

/* a chart is a white tile on the slate page, framed like the gallery's cards */
.lvc-article .sample-result img,
.lvc-article .sample-result video.sample-video {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    background: var(--docs-paper);
    border: 1px solid var(--docs-edge);
    border-radius: 16px;
}

/* a sample's recording is a wide one, as its image */
.lvc-article .sample-result video.sample-video {
    aspect-ratio: 624 / 281;
}

/* the code is shown whole, the page is the only thing that scrolls down; long lines scroll sideways */
.lvc-article .sample-code pre code {
    overflow-x: auto;
    border-radius: 16px;
}

/* :::: variations / ::: variation, small figures side by side, as many a row as fit the measure, filling it */
:is(.lvc-article, .doc-section-body) > .variations {
    margin: 32px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 32px 24px;
}

.lvc-article .variation > :first-child {
    margin-top: 0;
}

.lvc-article .variation p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--docs-muted);
}

.lvc-article .variation img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    background: var(--docs-paper);
    border: 1px solid var(--docs-edge);
    border-radius: 12px;
}

.lvc-article .variation pre {
    margin-top: 10px;
}

    .lvc-article .variation pre code {
        padding: 12px 14px;
        font-size: 14px !important;
        white-space: pre-wrap;
        word-break: break-word;
    }

/* -------------------------------------------------------------------------------------------------- the API */

/* the title first, at the height of every docs page's title; "API" is in the bar */
.lvc-docs.lvc-api {
    margin-top: var(--docs-head-top);
}

.lvc-api .api-title {
    overflow-wrap: anywhere;
}

    .lvc-api .api-title .generic-params {
        font-family: var(--docs-mono);
        font-size: 30px;
        font-weight: 400;
        letter-spacing: 0;
        color: var(--docs-faint);
    }

.lvc-api .api-summary {
    margin: 22px 0 0;
    max-width: 820px;
    font-size: 22px;
    line-height: 1.55;
}

.lvc-api .api-meta {
    margin: 14px 0 0;
    font-size: 15px;
    color: var(--docs-faint);
}

    .lvc-api .api-meta span {
        color: var(--docs-muted);
    }

.lvc-api .api-section {
    margin-top: 96px;
    border-top: 2px solid var(--docs-title);
    padding-top: 22px;
}

    .lvc-api .api-section h2 {
        margin: 0;
        font-size: 28px;
        line-height: 1.15;
    }

.lvc-api .api-typeinfo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px 80px;
}

@media (min-width: 1200px) {
    .lvc-api .api-typeinfo {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.lvc-api .api-param-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--docs-stripe);
    font-size: 16px;
    line-height: 1.55;
}

.lvc-api .api-inheritance {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lvc-api .api-label {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--docs-faint);
}

.lvc-api .api-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lvc-api .api-chip {
    font-family: var(--docs-mono);
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--docs-stripe);
    color: var(--docs-ink);
}

    .lvc-api .api-chip a {
        color: inherit;
        text-decoration: none;
    }

        .lvc-api .api-chip a:hover {
            text-decoration: underline;
        }

    .lvc-api .api-chip-this {
        background: var(--docs-title);
        color: var(--docs-page);
    }

.lvc-api .api-chain {
    color: var(--docs-faint);
}

.lvc-api .api-members-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

    .lvc-api .api-members-bar h2 {
        font-size: 40px;
    }

.lvc-api .api-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lvc-api .api-tab {
    font-size: 15px;
    line-height: 1.2;
    padding: 9px 14px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--docs-edge);
    background: var(--docs-paper);
    color: var(--docs-ink);
}

    .lvc-api .api-tab span {
        color: var(--docs-faint);
    }

    .lvc-api .api-tab[aria-selected="true"] {
        border-color: var(--docs-accent);
        background: var(--docs-accent);
        color: #FFFFFF;
    }

        .lvc-api .api-tab[aria-selected="true"] span {
            color: rgba(255, 255, 255, .75);
        }

.lvc-api .api-filter {
    display: flex;
    flex: 0 1 320px;
    margin-left: auto;
}

    .lvc-api .api-filter input {
        width: 100%;
        font: inherit;
        font-size: 15px;
        color: var(--docs-ink);
        background: var(--docs-paper);
        border: 1px solid var(--docs-edge);
        border-radius: 12px;
        padding: 10px 14px;
        min-height: 44px;
    }

.lvc-api .api-group[hidden],
.lvc-api .api-row[hidden] {
    display: none;
}

.lvc-api .api-group h3 {
    margin: 40px 0 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--docs-edge);
    font-size: 22px;
}

.lvc-api .api-tabs-one .api-group h3 {
    display: none;
}

.lvc-api .api-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 32px;
    padding: 18px 0;
    border-bottom: 1px solid var(--docs-stripe);
    scroll-margin-top: 24px;
}

@media (min-width: 1000px) {
    .lvc-api .api-row {
        grid-template-columns: minmax(0, 260px) minmax(0, 340px) minmax(0, 1fr) 220px;
    }
}

.lvc-api .api-row:target {
    background: #FEF9C3;
}

.lvc-api .api-name {
    font-family: var(--docs-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--docs-title);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lvc-api .api-row .api-type {
    font-family: var(--docs-mono);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--docs-muted);
    overflow-wrap: anywhere;
}

    .lvc-api .api-row .api-type a {
        color: inherit;
    }

.lvc-api .api-desc {
    font-size: 16px;
    line-height: 1.55;
}

    .lvc-api .api-desc p {
        margin: 0;
    }

    .lvc-api .api-desc .api-param {
        margin-top: 6px;
        font-size: 14px;
        color: var(--docs-muted);
    }

.lvc-api .api-guide {
    font-size: 14px;
    color: var(--docs-muted);
}

.lvc-api .api-empty {
    margin-top: 24px;
    color: var(--docs-faint);
}

/* find a type, on every API page: above the title, and at its right where the page has room, centered on its
   first line, as "On this page" is on a docs page; the title keeps clear of it */
.api-find {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

@media (min-width: 1100px) {
    .lvc-api-main {
        position: relative;
    }

    .lvc-api-main > .api-find {
        position: absolute;
        top: calc(104px + var(--docs-head-top) + 14px); /* the main's padding, the room above a title */
        right: 48px;
        width: 360px;
        margin: 0;
    }

        .lvc-api-main > .api-find label {
            flex-basis: 100%;
        }

    .lvc-api .api-title {
        padding-right: 392px;
    }
}

    .api-find label {
        flex: 0 1 360px;
        display: flex;
    }

    .api-find input {
        width: 100%;
        font: inherit;
        font-size: 15px;
        color: var(--docs-ink);
        background: var(--docs-paper);
        border: 1px solid var(--docs-edge);
        border-radius: 12px;
        padding: 10px 14px;
        min-height: 44px;
    }

.api-find-results {
    position: absolute;
    z-index: 20;
    top: 52px;
    right: 0;
    width: min(100%, 480px);
    max-height: 440px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--docs-paper);
    border: 1px solid var(--docs-edge);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(24, 24, 27, .08);
}

    .api-find-results a {
        display: flex;
        flex-direction: column;
        padding: 8px 12px;
        border-radius: 9px;
        font-family: var(--docs-mono);
        font-size: 14px;
        line-height: 1.4;
        color: var(--docs-title);
        text-decoration: none;
    }

        .api-find-results a:hover,
        .api-find-results a:focus {
            background: var(--docs-stripe);
        }

        .api-find-results a span {
            font-family: var(--docs-sans);
            font-size: 13px;
            color: var(--docs-faint);
        }

    .api-find-results .api-find-none {
        padding: 8px 12px;
        font-size: 14px;
        color: var(--docs-faint);
    }

/* the API home: every type by namespace */
.api-home .api-section h2 {
    font-family: var(--docs-mono);
    font-size: 20px;
    letter-spacing: 0;
}

.api-home-types {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    columns: 4 260px;
    column-gap: 40px;
    font-size: 15px;
}

    .api-home-types li {
        break-inside: avoid;
        padding: 3px 0;
    }

    .api-home-types a {
        font-family: var(--docs-mono);
        font-size: 14px;
        text-decoration: none;
    }

        .api-home-types a:hover {
            text-decoration: underline;
        }

    .api-home-types span {
        font-size: 12.5px;
        color: var(--docs-faint);
    }

/*
    A sample page: its name, its line and its cases, then the sample, whose heading is there for the outline and
    screen readers only (the generator hides it), "How it works" and the related samples.
*/

/* the line, under the name in Light and nearly as large */
.lvc-article > h1 + p:has(+ .sample-cases) {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
}

/* the cases under the line, quiet, each a link to the gallery showing that case */
.lvc-article > .sample-cases {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--docs-faint);
}

    .lvc-docs .sample-cases a {
        color: var(--docs-muted);
        text-decoration: none;
    }

        .lvc-docs .sample-cases a:hover {
            color: var(--docs-title);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

/* the sample under the head, with a little less room than a part has above its heading */
.lvc-article .sample-main figure.sample {
    margin-top: clamp(56px, 6vw, 96px) !important;
}

.doc-section-body > .sample-more {
    margin-top: 28px;
    font-size: 17px;
}

/* "More like this": small cards, the chart first, then the title and line */
.related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px 28px;
}

@media (min-width: 600px) {
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lvc-docs .related-item {
    display: block;
    color: var(--docs-ink);
    text-decoration: none;
}

/* the caption of a card, as on the gallery: the title on a line of its own, its line under it */
.related-item .related-caption {
    margin: 14px 0 0;
}

.related-item .related-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.related-item .related-text {
    margin: 4px 0 0;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--docs-ink);
}

/* ---------------------------------------------------------------------------------------------- the site bar */

/*
    On the docs and API pages the site bar is as wide as the page under it: the logo on the page's left edge and
    the last link on its right edge. Its links and menus are in the docs face; the wordmark keeps the site's, it is
    the logo.
*/
#navigation-bar.docs-bar > .container-fluid {
    max-width: calc(var(--docs-article) + 96px);
    margin: 0 auto;
    padding: 0 48px;
}

/* as tall on every page, the pills of the docs or not, so the logo does not move from a docs page to the API */
@media (min-width: 992px) {
    #navigation-bar.docs-bar > .container-fluid {
        min-height: 60px;
    }
}

#navigation-bar.docs-bar .navbar-brand {
    margin-right: 24px;
}

    #navigation-bar.docs-bar .navbar-brand > div {
        padding-left: 0 !important;
    }

/* "Gallery" after the logo, in its face: a crumb, darker on the gallery itself */
#navigation-bar.docs-bar .docs-crumb {
    display: flex;
    align-items: center;
    margin-right: auto;
    font: 500 22px/28px Quicksand, sans-serif;
    color: var(--docs-muted);
    text-decoration: none;
}

    #navigation-bar.docs-bar .docs-crumb::before {
        content: '/';
        margin-right: 14px;
        font-weight: 300;
        color: var(--docs-edge);
    }

    #navigation-bar.docs-bar .docs-crumb:hover,
    #navigation-bar.docs-bar .docs-crumb[aria-current="page"] {
        color: var(--docs-title);
    }

/* a phone: the crumb a size smaller, so the logo, it and the menu button stay on one line */
@media (max-width: 599px) {
    #navigation-bar.docs-bar .navbar-brand:has(+ .docs-crumb) {
        margin-right: 10px;
    }

    #navigation-bar.docs-bar .docs-crumb {
        font-size: 18px;
    }

        #navigation-bar.docs-bar .docs-crumb::before {
            margin-right: 8px;
        }
}

#navigation-bar.docs-bar .navbar-nav {
    align-items: center;
    gap: 6px 16px;
    font-family: var(--docs-sans);
}

#navigation-bar.docs-bar .nav-link,
#navigation-bar.docs-bar .nav-link > div,
#navigation-bar.docs-bar .nav-link > div > span {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#navigation-bar.docs-bar .nav-link .font-display {
    font-family: var(--docs-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-ink);
}

#navigation-bar.docs-bar .nav-link .svg-icon {
    margin-right: 8px;
}

#navigation-bar.docs-bar .nav-link .svg-icon + span {
    margin-left: 0 !important;
}

/* GitHub and the account, as icons: their names are their tooltips */
#navigation-bar.docs-bar .bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

    #navigation-bar.docs-bar .bar-icon .svg-icon {
        width: 22px;
        height: 22px;
        margin: 0;
        opacity: .7;
    }

    #navigation-bar.docs-bar .bar-icon:hover {
        background: var(--docs-stripe);
    }

        #navigation-bar.docs-bar .bar-icon:hover .svg-icon {
            opacity: 1;
        }

/* the last icon ends on the page's right edge, not its padding */
#navigation-bar.docs-bar .navbar-nav > .nav-item:last-child .bar-icon {
    margin-right: -9px !important;
}

/* the framework and the version: a choice, so they look like the gallery's filters, the label in the faint ink */
#navigation-bar.docs-bar .dropdown-toggle > div > span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 14px !important;
    border: 1px solid var(--docs-edge);
    border-radius: 999px;
    background: var(--docs-paper);
}

    #navigation-bar.docs-bar .dropdown-toggle > div > span::after {
        content: '';
        align-self: center;
        width: 7px;
        height: 7px;
        margin: -3px 0 0 4px;
        border-right: 1.5px solid var(--docs-muted);
        border-bottom: 1.5px solid var(--docs-muted);
        transform: rotate(45deg);
    }

#navigation-bar.docs-bar .dropdown-toggle .select-docs {
    font-size: 13px;
    font-weight: 400;
    color: var(--docs-faint);
}

#navigation-bar.docs-bar .dropdown-toggle .upper-case {
    text-transform: none;
}

#navigation-bar.docs-bar .dropdown-toggle[aria-expanded="true"] > div > span {
    border-color: var(--docs-title);
}

/* the menus: white like the page, a hairline and a soft shadow, the current item marked */
#navigation-bar.docs-bar .dropdown-menu {
    min-width: 230px;
    margin-top: 10px !important;
    padding: 6px;
    border: 1px solid var(--docs-edge);
    border-radius: 14px;
    background: var(--docs-paper) !important;
    box-shadow: 0 16px 40px rgba(24, 24, 27, .10);
    font-family: var(--docs-sans);
}

#navigation-bar.docs-bar .dropdown-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 400;
    color: var(--docs-ink);
}

    #navigation-bar.docs-bar .dropdown-item:hover,
    #navigation-bar.docs-bar .dropdown-item:focus {
        background: var(--docs-stripe);
        color: var(--docs-title);
    }

    #navigation-bar.docs-bar .dropdown-item .me-4 {
        margin-right: 12px !important;
        display: flex;
    }

    #navigation-bar.docs-bar .dropdown-item.eto-no-icon {
        padding-left: 44px;
    }

    #navigation-bar.docs-bar .dropdown-item[aria-current="page"] {
        font-weight: 700;
        color: var(--docs-title);
    }

        #navigation-bar.docs-bar .dropdown-item[aria-current="page"]::after {
            content: '';
            width: 10px;
            height: 5px;
            margin: -3px 2px 0 auto;
            border-left: 2px solid var(--docs-accent);
            border-bottom: 2px solid var(--docs-accent);
            transform: rotate(-45deg);
        }

#navigation-bar.docs-bar .dropdown-more {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--docs-stripe);
}

    #navigation-bar.docs-bar .dropdown-more .dropdown-item {
        font-size: 14px;
        color: var(--docs-muted) !important;
    }

/* a phone: the page's gutter, and the links stacked under the bar when it opens */
@media (max-width: 991px) {
    #navigation-bar.docs-bar .navbar-nav {
        align-items: flex-start;
        padding: 12px 0 16px;
    }
}

@media (max-width: 760px) {
    #navigation-bar.docs-bar > .container-fluid {
        padding: 0 16px;
    }
}

/* the docs footer, on the grid of the page above it */
.lvc-docs-footer {
    max-width: calc(var(--docs-article) + 96px);
    margin: 0 auto;
    padding: 0 48px 64px;
}

    .lvc-docs-footer .doc-footer-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px 64px;
        padding-top: 28px;
        border-top: 1px solid var(--docs-edge);
        font-size: 15px;
    }

    .lvc-docs-footer img {
        height: 36px;
        width: auto;
    }

    .lvc-docs-footer nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 40px;
    }

    .lvc-docs-footer nav a {
        color: var(--docs-ink);
        text-decoration: none;
    }

        .lvc-docs-footer nav a:hover {
            color: var(--docs-accent-text);
        }

@media (max-width: 760px) {
    .lvc-docs-footer {
        padding: 0 16px 48px;
    }
}

/* a recording in place of its image, same size and look; its ratio is the one of the image it replaces (a card's
   3:2 above, a sample's wide one in the article) */
.lvc-docs video.sample-video {
    display: block;
    width: 100%;
    height: auto;
    background: var(--docs-paper);
}

    .lvc-docs video.sample-video[hidden],
    .lvc-docs img[hidden] {
        display: none;
    }

