:root {
    color-scheme: light;

    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f4f4f5;
    --border: #e4e4e7;
    --border-subtle: #f0f0f1;

    --text: #18181b;
    --text-2: #52525b;
    --text-3: #6b6b73;

    --accent: #2563eb;

    --radius: 0.625rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --measure: 36em;
    --shell: 64rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    font-family: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    font-optical-sizing: auto;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background-color: rgb(37 99 235 / 0.20);
    color: inherit;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
    border-radius: 4px;
}

@media (forced-colors: active) {
    a:focus-visible,
    button:focus-visible,
    summary:focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 2px;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.lgl-skip {
    position: absolute;
    left: 0.75rem;
    top: -100%;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.lgl-skip:focus {
    top: 0.75rem;
}

.lgl-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.lgl-topbar__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lgl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.lgl-brand img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
}

.lgl-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lgl-langs {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem;
    gap: 0.125rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
}


.lgl-lang {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.75rem;
    min-height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lgl-lang:hover {
    color: var(--text);
}

.lgl-lang[aria-pressed="true"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.lgl-shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.lgl-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}

.lgl-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
}

.lgl-header h1 {
    margin: 0;
    font-size: clamp(2rem, 1.35rem + 2.6vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    text-wrap: balance;
    max-width: 18em;
}

.lgl-lead {
    margin: 1rem 0 0;
    max-width: var(--measure);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
}

.lgl-meta {
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.lgl-meta strong {
    font-weight: 600;
    color: var(--text-2);
}

.lgl-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 4rem;
}

@media (min-width: 64rem) {
    .lgl-body {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 4rem;
        align-items: start;
    }
}
.lgl-toc {
    font-size: 0.875rem;
}

@media (min-width: 64rem) {
    .lgl-toc {
        position: sticky;
        top: 5rem;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }
}

.lgl-toc__title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
}

.lgl-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.lgl-toc li {
    counter-increment: toc;
}

.lgl-toc a {
    display: flex;
    gap: 0.625rem;
    padding: 0.375rem 0;
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.lgl-toc a::before {
    content: counter(toc);
    flex: none;
    width: 1.25rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
    text-align: end;
}

.lgl-toc a:hover {
    color: var(--text);
}

.lgl-toc a[aria-current="true"] {
    color: var(--accent);
    font-weight: 600;
}

.lgl-toc a[aria-current="true"]::before {
    color: var(--accent);
}
.lgl-toc details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.lgl-toc summary {
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.lgl-toc summary::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1.5px solid var(--text-3);
    border-bottom: 1.5px solid var(--text-3);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.lgl-toc details[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.lgl-toc details ol {
    padding: 0 1rem 0.875rem 0.875rem;
}

@media (min-width: 64rem) {
    .lgl-toc details {
        border: 0;
        background: none;
    }

    .lgl-toc summary {
        display: none;
    }

    .lgl-toc details ol {
        padding: 0;
    }
}

.lgl-doc > section {
    padding-top: 2.75rem;
    margin-top: 2.75rem;
    border-top: 1px solid var(--border-subtle);
}

.lgl-doc > section:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.lgl-doc h2 {
    margin: 0 0 1.25rem;
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 600;
    text-wrap: balance;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.lgl-num {
    flex: none;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
    letter-spacing: 0;
}

.lgl-doc h3 {
    margin: 2rem 0 0.625rem;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.lgl-doc h3 .lgl-num {
    font-size: 0.75rem;
}

.lgl-doc p {
    margin: 0 0 1rem;
    max-width: var(--measure);
    color: var(--text-2);
    text-wrap: pretty;
}

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

.lgl-doc strong {
    font-weight: 600;
    color: var(--text);
}

.lgl-doc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: from-font;
    text-underline-position: from-font;
    text-decoration-skip-ink: auto;
}

.lgl-doc a:hover {
    text-decoration-thickness: 2px;
}
.lgl-doc ul,
.lgl-doc ol {
    margin: 0 0 1rem;
    padding: 0;
    max-width: var(--measure);
    list-style: none;
    color: var(--text-2);
}

.lgl-doc ul > li,
.lgl-doc ol > li {
    position: relative;
    padding-left: 1.375rem;
    margin-bottom: 0.625rem;
}

.lgl-doc ul > li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.7em;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.55;
}

.lgl-doc ol {
    counter-reset: step;
}

.lgl-doc ol > li {
    counter-increment: step;
}

.lgl-doc ol > li::before {
    content: counter(step) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-3);
    font-size: 0.875rem;
}

.lgl-doc li:last-child {
    margin-bottom: 0;
}
.lgl-defs {
    margin: 0;
    max-width: var(--measure);
}

.lgl-defs dt {
    font-weight: 600;
    color: var(--text);
    margin-top: 1.125rem;
}

.lgl-defs dt:first-child {
    margin-top: 0;
}

.lgl-defs dd {
    margin: 0.1875rem 0 0;
    color: var(--text-2);
}
.lgl-summary {
    margin: 0 0 1.5rem;
    padding: 0.875rem 1.125rem;
    max-width: var(--measure);
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}


.lgl-summary__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.lgl-summary p {
    margin: 0;
    max-width: none;
    font-size: 0.9375rem;
    color: var(--text);
}
.lgl-versions {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: var(--measure);
    font-size: 0.875rem;
}
.lgl-doc .lgl-versions li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.875rem;
    padding: 0.625rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-2);
}

.lgl-doc .lgl-versions li::before {
    content: none;
}

.lgl-doc .lgl-versions li:last-child {
    border-bottom: 0;
}

.lgl-versions time {
    flex: none;
    width: 7.5rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
}
.lgl-entity {
    margin: 0;
    padding: 1.25rem 1.375rem;
    max-width: var(--measure);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 0.5rem 1.5rem;
    font-size: 0.9375rem;
}

@media (min-width: 30rem) {
    .lgl-entity {
        grid-template-columns: auto 1fr;
    }
}

.lgl-entity dt {
    color: var(--text-3);
    font-size: 0.8125rem;
}

.lgl-entity dd {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}
.lgl-tablewrap {
    margin: 1.25rem 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lgl-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: var(--surface);
}

.lgl-table th,
.lgl-table td {
    padding: 0.75rem 1rem;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--border-subtle);
}

.lgl-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.lgl-table tbody tr:last-child td {
    border-bottom: 0;
}

.lgl-table td {
    color: var(--text-2);
}

.lgl-table td:first-child {
    color: var(--text);
    font-weight: 500;
}
.lgl-steps {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lglstep;
    max-width: var(--measure);
}
.lgl-doc .lgl-steps > li {
    counter-increment: lglstep;
    position: relative;
    padding: 0 0 1.5rem 2.75rem;
    margin-bottom: 0;
}

.lgl-doc .lgl-steps > li::before {
    content: counter(lglstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.lgl-doc .lgl-steps > li::after {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 2rem;
    bottom: 0.25rem;
    width: 1px;
    background: var(--border);
}

.lgl-doc .lgl-steps > li:last-child {
    padding-bottom: 0;
}

.lgl-doc .lgl-steps > li:last-child::after {
    display: none;
}

.lgl-steps__title {
    margin: 0.125rem 0 0.25rem;
    font-weight: 600;
    color: var(--text);
}
.lgl-contact {
    margin-top: 1.25rem;
    padding: 1.5rem;
    max-width: var(--measure);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.lgl-contact p {
    margin-bottom: 1rem;
}
.lgl-doc a.lgl-btn,
.lgl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.lgl-doc a.lgl-btn:hover,
.lgl-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.lgl-doc a.lgl-btn:active,
.lgl-btn:active {
    transform: scale(0.98);
}

.lgl-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.lgl-footer__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.lgl-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.lgl-footer__brand img {
    height: 1.125rem;
    width: auto;
}

.lgl-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.lgl-footer nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 0.25rem 0;
}

.lgl-footer nav a:hover {
    color: var(--accent);
}

.lgl-footer nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

@media print {
    :root {
        --bg: #ffffff;
        --surface: #ffffff;
        --surface-2: #ffffff;
        --text: #000000;
        --text-2: #222222;
        --text-3: #555555;
        --accent: #0b3ea8;
    }

    .lgl-topbar,
    .lgl-toc,
    .lgl-skip {
        display: none !important;
    }
    .lgl-doc a.lgl-btn,
    .lgl-btn {
        display: inline;
        padding: 0;
        min-height: 0;
        color: #000000;
        background: none;
        text-decoration: underline;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
    }

    .lgl-body {
        display: block;
        padding-top: 0;
    }

    .lgl-doc p,
    .lgl-doc ul,
    .lgl-doc ol,
    .lgl-note,
    .lgl-entity {
        max-width: none;
    }

    .lgl-doc > section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .lgl-doc h2,
    .lgl-doc h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .lgl-doc a {
        color: inherit;
        text-decoration: underline;
    }
    .lgl-doc a[href^="/"]::after {
        content: ' (wintrack.co' attr(href) ')';
        font-size: 0.85em;
        color: #555555;
    }
}
