* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Uncut Sans", "Inter", sans-serif;
    font-feature-settings: "ss05";
}

html {
    background: var(--bg);
    scroll-padding-top: 24px;
}

body {
    background: var(--bg);
    color: var(--sharp);
    min-width: 320px;
    overflow-x: clip;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--glow);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 100;
}

::selection {
    background: var(--selection);
    color: var(--bg);
}

#blurWrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    opacity: 0;
    transition: opacity 0.2s;
}

/*sir, 2026-10-22: VIEW TRANSITIONS BETWEEN LEARN TOPICS. BOTH PAGES OPT IN HERE, SO ONLY LEARN -> LEARN USES IT
  (paths.js SKIPS ITS OWN FADE FOR THOSE LINKS). IT IS THE SAME FADE AS EVERY OTHER PAGE: THE SCREEN YOU SEE FADES OUT
  (0.2s) WHERE YOU ARE, THEN THE NEW PAGE FADES IN FRESH AT THE TOP (0.2s) - BUT WITH NO BLANK LOADING GAP IN BETWEEN.
  THE WHOLE SCREEN FADES AS ONE PICTURE ON PURPOSE: NAMING PARTS OF THE PAGE MADE THEM SLIDE, SO A PAGE LEFT FROM
  THE BOTTOM LOOKED LIKE IT SCROLLED UP FAST. BROWSERS WITHOUT VIEW TRANSITIONS IGNORE ALL OF THIS*/
@view-transition {
    navigation: auto;
}

html[data-view-transition] #blurWrapper {
    opacity: 1;
    transition: none;
}

::view-transition-old(root) {
    animation: 0.2s ease-out both learnFadeOut;
}

::view-transition-new(root) {
    animation: 0.2s ease-in 0.2s both learnFadeIn;
}

@keyframes learnFadeOut {
    to {
        opacity: 0;
    }
}

@keyframes learnFadeIn {
    from {
        opacity: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

#docHeader {
    border-bottom: 1px solid var(--muted-line);
}

.headRow {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.brand span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.brandSub {
    padding-left: 14px;
    border-left: 1px solid var(--muted-line);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted-blue-text);
    filter: brightness(140%);
    cursor: pointer;
}

.searchbox {
    display: flex;
    align-items: center;
    height: 42px;
    margin-bottom: 16px;
    outline: none;
    border: 1px solid var(--muted-track);
    border-radius: 999px;
    transition: .2s;
    cursor: default;
}

.searchIcon {
    display: flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
}

.searchIcon svg {
    margin: auto;
}

.txtSearch {
    flex: 1;
    min-width: 0px;
    height: 40px;
    outline: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--sharp);
    background-color: transparent;
    cursor: default;
}

.txtSearch::placeholder {
    color: var(--muted-blue-text);
    font-weight: 400;
    opacity: 1;
}

.txtSearch::-webkit-search-cancel-button {
    display: none;
}

.btnDelSearch {
    display: flex;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 3px;
    margin-left: auto;
    padding: 2px;
    border: none;
    border-radius: 99px;
    background-color: transparent;
    cursor: pointer;
    visibility: hidden;
}

.btnDelSearch svg {
    margin: auto;
}

.headLinks {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.headLinks a {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    filter: brightness(140%);
    cursor: pointer;
    transition: color 0.2s;
}

.headLinks a:hover {
    color: var(--sharp);
}

.btnLogin {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}

.btnLogin:hover {
    filter: brightness(112%);
}

#btnDocMenu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0px 9px;
    border: 1px solid var(--muted-line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

#btnDocMenu span {
    display: block;
    height: 1.5px;
    background: var(--sharp);
}

.docLayout {
    display: grid;
    grid-template-columns: 272px minmax(0px, 1fr) 232px;
    max-width: 1440px;
    margin: 0px auto;
}

.docLegal {
    grid-template-columns: 272px minmax(0px, 1fr);
    max-width: 1200px;
}

#docNav {
    position: sticky;
    top: 0px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 28px 16px 40px 24px;
    border-right: 1px solid var(--muted-line);
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
}

.navGroup {
    margin-bottom: 6px;
}

.navGroup summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted-blue-text);
    filter: brightness(130%);
    cursor: pointer;
}

.navGroup summary::-webkit-details-marker {
    display: none;
}

.navGroup summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-bottom-right-radius: 3px;
    transform: rotate(-45deg);
    transition: transform 0.2s;
}

.navGroup[open] summary::after {
    transform: rotate(45deg);
}

.navLinks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0px 8px;
}

.navLinks a {
    padding: 7px 10px 7px 14px;
    border-right: 2px solid transparent;
    font-size: 14px;
    color: hsl(var(--hue) 12% 70%);
    cursor: pointer;
}

.navLinks a:hover {
    background: var(--muted-track);
    color: var(--sharp);
}

.navLinks a.on {
    border-right-color: var(--sharp);
    background: var(--accent);
    color: var(--sharp);
    font-weight: 500;
}

.navLinks a.sub {
    padding-left: 28px;
    font-size: 13px;
}

.navLinks a.hide {
    display: none;
}

#lblNoTopics {
    padding: 10px;
    font-size: 13px;
    color: var(--muted-blue-text);
}

.docMain {
    min-width: 0px;
    padding: 32px clamp(20px, 4vw, 56px) 0px;
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted-blue-text);
}

.crumbs a {
    color: var(--accent);
    cursor: pointer;
}

.crumbs a:hover {
    text-decoration: underline;
}

.docBody {
    max-width: 760px;
    margin-top: 20px;
}

.docBody h1 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sharp);
}

.docBody h2 {
    margin-top: 44px;
    margin-bottom: 12px;
    padding-top: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--sharp);
}

.docBody p,
.docBody li {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    word-spacing: 1px;
    line-height: 1.7;
    color: hsl(var(--hue) 10% 76%);
}

.docBody p + p,
.docBody ul + p {
    margin-top: 12px;
}

.docBody h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sharp);
}

.docBody .docUpdated {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted-blue-text);
}

.docBody strong {
    font-weight: 600;
    color: var(--sharp);
}

.docBody a,
.docBody a:visited {
    color: var(--muted-blue-text);
    filter: brightness(130%);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--muted-track);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: text-decoration-color 0.2s;
}

.docBody a:hover {
    text-decoration-color: currentColor;
}

.docBody code {
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--muted-line);
    background: var(--dark3);
    font-size: 13px;
    color: var(--sharp);
}

.docBody ol,
.docBody ul {
    margin: 12px 0px 0px;
    padding-left: 22px;
}

.docBody li + li {
    margin-top: 6px;
}

.docBody li::marker {
    color: var(--muted-blue-text);
    font-weight: 500;
}

.docBody figure {
    display: table;
    max-width: 100%;
    margin: 24px 0px;
    border: 1px solid var(--muted-line);
    border-radius: 6px;
    background: var(--bg);
}

.docBody figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.docBody figcaption {
    display: table-caption;
    caption-side: bottom;
    margin-top: 10px;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted-blue-text);
}

.callout {
    margin: 22px 0px;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid var(--muted-line);
    border-left: 3px solid var(--accent);
    background: transparent;
}

.callout.tip {    
    border-left: 3px solid aquamarine;
}

.callout.warn {

    border-left: 3px solid salmon;
}

.callout p {
    font-size: 14px;
}

.uiFigure .uiPanel {
    position: relative;
    border-radius: 5px;
    background: var(--bg);
}

.uiDropHeader {
    width: 280px;
    height: 70px;
}

.uiSearchbox {
    position: absolute;
    top: 15px;
    left: 17px;
    display: flex;
    align-items: center;
    width: 246px;
    height: 42px;
    border: 1px solid var(--muted-track);
    border-radius: 999px;
}

.uiSearchIcon {
    display: flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
}

.uiSearchIcon svg {
    margin: auto;
}

.uiPlaceholder {
    width: 136px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted-blue-text);
}

.uiUploadFile {
    display: flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0px 3px 0px auto;
}

.uiUploadFile svg {
    margin: auto;
}

.uiMenuFooter {
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 69px;
}

.uiBreakline {
    width: 88%;
    height: 1px;
    margin: 0px auto;
    background: var(--muted-line);
}

.uiFooterRow {
    display: flex;
    align-items: center;
    width: 88%;
    height: 68px;
    margin: 0px auto;
}

.uiFooterLabel {
    margin-right: auto;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--sharp);
}

.uiFooterBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44.8px;
    height: 28px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--sharp);
}

.uiBtnOutline {
    margin-right: 8px;
    border: 1px solid var(--accent);
}

.uiBtnFill {
    background: var(--accent);
}

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin-top: 56px;
}

.pager a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0px;
    cursor: pointer;
}

.pager small {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted-blue-text);
    filter: brightness(130%);
}

.pager span {
    font-size: 18px;
    font-weight: 600;
    color: var(--sharp);
}

.pagerNext {
    grid-column: 2;
    text-align: right;
}

.docFoot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 760px;
    margin-top: 56px;
    padding: 24px 0px 32px;
    border-top: 1px solid var(--muted-line);
    font-size: 12px;
    color: var(--muted-blue-text);
}

.docFootLinks {
    display: flex;
    gap: 18px;
}

.docFootLinks a:hover {
    color: var(--sharp);
}

/*sir, 2026-10-21: THE PANEL NEVER GROWS PAST THE SCREEN. IT FILLS THE ROOM BETWEEN THE HEADER AND THE FOOTER
  (learn.js fitOnPage SETS THE EXACT HEIGHT WHILE YOU SCROLL; THIS IS THE FIRST-LOAD VALUE: SCREEN MINUS THE 65px HEADER)
  A LONG LIST SCROLLS INSIDE #docOnPage WITH THE STUDIO SCROLLBAR, THE "ON THIS PAGE" TITLE STAYS PUT*/
.onPage {
    position: sticky;
    top: 0px;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
    padding: 36px 24px 24px 8px;
}

.onPage p {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted-blue-text);
}

/*THE LEFT LINE IS AN INSET SHADOW, NOT A BORDER: A SCROLL BOX CLIPS ITS BORDER AREA, AND THE LIT LINK'S 2px BAR SITS ON THAT LINE*/
#docOnPage {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-shadow: inset 1px 0px 0px var(--muted-line);
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
}

#docOnPage::-webkit-scrollbar {
    width: 1px;
}

#docOnPage::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 99px;
}

#docOnPage::-webkit-scrollbar-corner {
    background: transparent;
}

#docOnPage a {
    flex-shrink: 0;
    padding: 6px 0px 6px 14px;
    border-left: 2px solid transparent;
    font-size: 13px;
    line-height: 1.4;
    color: hsl(var(--hue) 12% 64%);
    cursor: pointer;
    transition: color 0.2s;
}

#docOnPage a:hover {
    color: var(--sharp);
}

#docOnPage a.on {
    border-left-color: var(--accent);
    color: #fff;
}

#docScrim {
    display: none;
}

@media (max-width: 1180px) {

    .docLayout {
        grid-template-columns: 260px minmax(0px, 1fr);
    }

    .onPage {
        display: none;
    }

    .headLinks {
        display: none;
    }

    .btnLogin {
        margin-left: auto;
    }
}

@media (max-width: 860px) {

    .headRow {
        gap: 12px;
        padding: 0px 16px;
    }

    #btnDocMenu {
        display: flex;
    }

    .docLayout {
        grid-template-columns: minmax(0px, 1fr);
    }

    #docNav {
        position: fixed;
        top: 0px;
        left: 0px;
        bottom: 0px;
        z-index: 60;
        width: min(300px, 84vw);
        height: 100%;
        background: var(--dark1);
        transform: translateX(-100%);
        transition: transform 0.2s;
    }

    #docNav.open {
        transform: none;
    }

    #docScrim {
        position: fixed;
        inset: 0px;
        z-index: 55;
        display: block;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    #docScrim.show {
        opacity: 1;
        pointer-events: auto;
    }

    .docMain {
        padding: 24px 16px 0px;
    }

    .pager {
        grid-template-columns: 1fr;
    }

    .pagerNext {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    @view-transition {
        navigation: none;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
