@font-face {
    font-family: "Baloo2ExtraBold";
    src: url("Font/baloo-2/Baloo2-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

:root {
    --accent: rgb(255, 225, 69);
    --accent-soft: rgba(255, 225, 69, 0.14);
    --bg: #151517;
    --panel: #202024;
    --panel-2: #29292e;
    --text: #f3f3ee;
    --muted: #afafaa;
    --border: #43434a;
    --base-size: 16px;
    --landing-highlight: rgb(255, 225, 69);
    --landing-highlight-soft: rgba(255, 225, 69, 0.22);
}

html[data-theme="light"] {
    --bg: #f4f1df;
    --panel: #fff8d4;
    --panel-2: #fff3a7;
    --text: #111111;
    --muted: #565038;
    --border: #d2bf52;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-size);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.45;
}

strong,
b {
    font-weight: 700;
}

body[data-page="landing"] {
    background: #1e1f24;
    color: #f7f7fb;
}

body[data-page="landing"] .site-header,
body[data-page="landing"] .docs-layout {
    display: none;
}

body:not([data-page="landing"]) .landing-view {
    display: none;
}

.route-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--accent);
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.08em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, visibility 0s linear 140ms;
}

body[data-route-loading="true"] .route-loader {
    opacity: 1;
    visibility: visible;
    transition: none;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-attribution {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 40;
    max-width: min(540px, calc(100vw - 32px));
    color: rgba(243, 243, 238, 0.28);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

.landing-view {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 225, 69, 0.2), transparent 30%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.04), transparent 45%);
}

.landing-view::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 0.9px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12) 0 0.6px, transparent 0.85px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.14) 0 0.8px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0 0.65px, transparent 0.9px);
    background-size: 18px 18px, 23px 23px, 27px 27px, 31px 31px;
    background-position: 0 0, 7px 11px, 13px 5px, 3px 17px;
    mix-blend-mode: soft-light;
}

.landing-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    display: grid;
    justify-items: center;
    gap: 26px;
}

.landing-hero {
    margin: 0;
    max-width: 980px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #f7f7fb;
    animation: landing-fade-up 0.7s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.landing-hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.14em;
    flex-wrap: wrap;
}

.landing-highlight {
    display: inline-flex;
    position: relative;
    align-items: center;
    padding: 0.05em 0.18em 0.08em;
    color: #17181d;
    white-space: nowrap;
    isolation: isolate;
}

.landing-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #fff08b 0%, var(--landing-highlight) 52%, #ffc530 100%);
    box-shadow: 0 12px 28px var(--landing-highlight-soft);
    transform: translateY(-0.18em);
    z-index: -1;
}

.landing-highlight-text {
    display: inline-block;
    transform: translateY(-0.1em);
}

.landing-description {
    max-width: 900px;
    color: rgba(235, 237, 244, 0.68);
    font-size: clamp(1rem, 1.45vw, 1.32rem);
    line-height: 1.7;
    animation: landing-fade-up 0.7s 0.08s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.landing-description[data-typing] {
    visibility: hidden;
}

.landing-description.is-typing,
.landing-description.is-typed {
    visibility: visible;
}

.landing-description.is-typing::after,
.landing-description.is-typed::after {
    content: "_";
    display: inline-block;
    width: 0.72em;
    margin-left: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1;
    vertical-align: baseline;
}

.landing-description.is-typing::after {
    animation: landing-caret-blink 0.9s steps(1) infinite;
}

.landing-description.is-typed::after {
    animation: landing-caret-blink 0.9s steps(1) infinite;
}

.landing-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: landing-fade-up 0.7s 0.16s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 225, 69, 0.24);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.landing-button:hover,
.landing-button:focus-visible {
    transform: translateY(-1px);
}

.landing-button-primary {
    background: var(--accent);
    color: #17181d;
}

.landing-button-primary:hover,
.landing-button-primary:focus-visible {
    background: #fff08b;
    border-color: #fff08b;
}

.landing-button-secondary {
    background: transparent;
    border-color: transparent;
    color: #ffffff;
}

.landing-button-secondary:hover,
.landing-button-secondary:focus-visible {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
}

.landing-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: landing-fade-up 0.7s 0.32s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(247, 247, 251, 0.92);
    line-height: 1;
}

.landing-badge:hover,
.landing-badge:focus-visible {
    border-color: transparent;
    background: transparent;
}

.landing-badge-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.landing-badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transform: translateY(-3px);
}

.landing-badge-text {
    font-size: 1rem;
    line-height: 1;
    color: rgba(247, 247, 251, 0.74);
}

.landing-badge-text strong {
    color: #ffffff;
    font-weight: 700;
}

@keyframes landing-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-caret-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

.header-inner {
    width: 100%;
    margin: 0;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 36px;
    height: 36px;
}

.brand-text {
    display: inline-block;
    line-height: 1;
}

.brand-name {
    font-family: "Baloo2ExtraBold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
}

.brand-accent {
    color: #fffa00;
}

.header-nav {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 36px;
}

.header-link.active {
    color: var(--text);
}

.header-link:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lead,
.content-panel p,
.content-panel li,
.control-hint {
    color: var(--muted);
}

.layout {
    width: min(1380px, calc(100% - 24px));
    margin: 24px auto;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 12px;
    align-items: start;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
}

.sidebar-left {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    overflow-y: visible;
    margin-top: 80px;
    padding: 10px 12px;
    z-index: 20;
}

.main-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    grid-column: 1;
}

.search-field {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-right: 0;
    background: var(--panel-2);
}

.search-icon {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
}

.search-input {
    width: min(420px, 100%);
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    line-height: 1;
    outline: none;
}

.search-input::placeholder {
    color: var(--muted);
    font-size: 0.8rem;
}

.search-input:focus {
    border-color: transparent;
}

.search-field:focus-within {
    border-color: var(--accent);
}

.search-button {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.search-button:hover {
    border-color: var(--accent);
}

.search-empty {
    color: var(--muted);
}

.content-panel {
    padding: 18px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
}

.content-main {
    min-width: 0;
}

.appearance-panel {
    position: sticky;
    top: 88px;
    padding: 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
}

.panel-label {
    margin-bottom: 8px;
    padding-bottom: 6px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    border-bottom: 1px solid var(--border);
    opacity: 0.72;
}

.panel-label-link {
    display: block;
}

.panel-label-link:hover {
    color: var(--text);
}

.nav-group + .nav-group,
.control-group + .control-group,
.section-block + .section-block {
    margin-top: 12px;
}

.nav-title {
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 0.94rem;
}

.nav-link {
    display: block;
    padding: 5px 7px;
    border-left: 3px solid transparent;
    color: var(--muted);
    font-size: 0.93rem;
}

.nav-link + .nav-link {
    margin-top: 1px;
}

.nav-sublist {
    margin: 2px 0 5px 16px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.nav-sublink {
    display: block;
    padding: 3px 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.nav-sublink:hover,
.nav-sublink.active {
    color: var(--text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--accent-soft);
    border-left-color: var(--accent);
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 400;
    margin-bottom: 8px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 300;
}

h2 {
    font-size: 1.18rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

h3 {
    font-size: 1rem;
    margin: 14px 0 8px;
    font-weight: 400;
}

.lead {
    margin-bottom: 18px;
    max-width: 70ch;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.topic-card {
    display: block;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--panel-2);
}

.topic-card:hover {
    border-color: var(--accent);
}

.card-number {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-weight: 400;
}

.topic-card p {
    margin-top: 6px;
    font-size: 0.9rem;
}

.section-block ul,
.section-block ol {
    margin-left: 18px;
    margin-top: 8px;
}

.section-block p + p,
.section-block p + ul,
.section-block p + ol,
.section-block p + .code-block,
.section-block p + .content-image,
.section-block .code-block + p,
.section-block .code-block + ul,
.section-block .code-block + ol,
.section-block .code-block + .content-image,
.section-block .content-image + p,
.section-block .content-image + ul,
.section-block .content-image + ol,
.section-block .content-image + .code-block,
.section-block ul + p,
.section-block ol + p,
.section-block blockquote,
.section-block hr {
    margin-top: 10px;
}

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

.code-block {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    background: #111214;
    color: #f3f3ee;
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    white-space: pre;
}

html[data-theme="light"] .code-block {
    background: #fff2a8;
    color: #221d08;
}

.code-block .token-key {
    color: #ffd866;
}

.code-block .token-string {
    color: #a9dc76;
}

.code-block .token-number {
    color: #ff9f43;
}

.code-block .token-keyword {
    color: #ff6188;
}

.code-block .token-boolean {
    color: #78dce8;
}

.code-block .token-null {
    color: #ff6188;
}

.code-block .token-comment {
    color: #8b9aa7;
    font-style: italic;
}

.code-block .token-punctuation {
    color: #cfcfd2;
}

html[data-theme="light"] .code-block .token-key {
    color: #7c4d00;
}

html[data-theme="light"] .code-block .token-string {
    color: #2f7d32;
}

html[data-theme="light"] .code-block .token-number {
    color: #b35a00;
}

html[data-theme="light"] .code-block .token-keyword {
    color: #a0004f;
}

html[data-theme="light"] .code-block .token-boolean {
    color: #006d77;
}

html[data-theme="light"] .code-block .token-null {
    color: #b00020;
}

html[data-theme="light"] .code-block .token-comment {
    color: #5f6b76;
}

html[data-theme="light"] .code-block .token-punctuation {
    color: #544b2b;
}

.content-main code:not(pre code) {
    padding: 1px 5px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.content-main blockquote {
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
}

.content-main hr {
    border: 0;
    border-top: 1px solid var(--border);
}

.content-image {
    display: flex;
    width: 100%;
    margin: 10px 0 0;
}

.content-image-middle {
    justify-content: center;
}

.content-image-right {
    justify-content: flex-end;
}

.content-image-left {
    justify-content: flex-start;
}

.content-image-small img {
    max-width: min(100%, 360px);
}

.content-image-small-medium img {
    max-width: min(100%, 460px);
}

.content-image-medium img {
    max-width: min(100%, 560px);
}

.content-image-large img {
    max-width: min(100%, 820px);
}

.content-image img {
    width: auto;
    height: auto;
    border: 1px solid var(--border);
    background: var(--panel-2);
}

.content-box {
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--panel-2);
}

.content-box + .content-box,
.content-box-text + .content-box-text,
.content-box-list + .content-box-text,
.content-box-text + .content-box-list,
.content-box-title + .content-box-section-title,
.content-box-section-title + .content-box-heading,
.content-box-heading + .content-box-text,
.content-box-title + .content-box-text,
.content-box-section-title + .content-box-text,
.content-box-heading + .content-box-list {
    margin-top: 10px;
}

.content-box-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.content-box-row + .content-box-row,
.section-block .content-box-row,
.section-block .content-box,
.content-main > .content-box-row,
.content-main > .content-box {
    margin-top: 10px;
}

.content-box-row .content-box {
    height: 100%;
}

.content-box-title,
.content-box-section-title,
.content-box-heading,
.content-box-text {
    color: var(--text);
}

.content-box-title {
    font-size: 1.18rem;
    font-weight: 500;
}

.content-box-section-title {
    font-size: 1rem;
    font-weight: 500;
}

.content-box-heading {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.content-box-text {
    color: var(--muted);
}

.content-box-list {
    margin-left: 18px;
    color: var(--muted);
}

.content-box-list li + li {
    margin-top: 6px;
}

.inline-link {
    color: var(--accent);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
}

.control-group label,
.control-group p {
    font-size: 0.9rem;
}

input[type="radio"] {
    accent-color: var(--accent);
}

.font-size-options {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.font-size-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.font-size-option span {
    font-weight: 300;
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .appearance-panel {
        position: static;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .landing-shell {
        gap: 24px;
    }
}

.page-footer {
    margin-top: 22px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .sidebar-right {
        grid-column: 1 / -1;
        position: static;
        transform: none;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .layout {
        width: min(100% - 16px, 100%);
    }

    .header-inner {
        padding: 14px 12px;
    }

    .sidebar-right,
    .content-panel {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .sidebar-left {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 10px;
    }

    .landing-view {
        padding: 36px 18px;
    }

    .landing-hero {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .landing-actions,
    .landing-badges {
        width: 100%;
        flex-direction: column;
    }

    .landing-button,
    .landing-badge {
        width: min(100%, 360px);
    }

    .site-attribution {
        right: 0;
        bottom: 0;
        max-width: calc(100vw - 24px);
        font-size: 0.64rem;
    }
}
