/* Local source: source/kick/css/base.css */
/* === RESET / BASE === */

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

html {
    background: #020617; /* фикс белого скролла */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    line-height: 1.5;

    background: linear-gradient(
        180deg,
        #020617 0%,
        #03071c 50%,
        #020617 100%
    );
}


/* === BACKGROUND LAYERS === */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: linear-gradient(
        140deg,
        rgba(147,108,232,0.10) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,3,26,0.08) 100%
    );

    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0,0,0,0.55) 100%
    );

    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}


/* === TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    color: #f1f5f9;
}

p {
    margin: 0;
    color: #cbd5f5;
}


/* ===========================
   NAVBAR
=========================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid rgba(147,108,232,0.15);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.navbar-brand {
    justify-self: center;

    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e2e8f0;
}

.lang-switcher {
    justify-self: end;
}


/* ===========================
   LANGUAGE SWITCHER
=========================== */

.lang-switcher form {
    display: flex;
    align-items: center;

    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 3px;
}

.lang-switcher button {
    border: none;
    background: transparent;

    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;

    padding: 6px 14px;
    border-radius: 999px;

    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switcher button:hover {
    color: #fff;
}

.lang-switcher button.active {
    background: #886ce4;
    color: #fff;
}

.lang-switcher button:focus,
.lang-switcher button:active,
.lang-switcher button:focus-visible {
    outline: none;
    box-shadow: none;
}


/* ===========================
   SCROLLBAR
=========================== */

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #886ce4;
    border-radius: 999px;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #886ce4 transparent;
}
/* Local source: source/kick/css/detail.css */

/* ===========================
   GUIDE LAYOUT
=========================== */

.guide {
    max-width: 860px;
    margin: 40px auto;
    padding: 40px 42px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(136, 108, 228, 0.12);
}

/* ===========================
   HEADER
=========================== */

.guide-breadcrumbs {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.guide-title {
    font-size: 34px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.guide-meta {
    font-size: 13px;
    color: #64748b;
}

/* ===========================
   MARKDOWN BASE
=========================== */

.markdown-body {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.75;
    color: #cbd5e1;
}

.markdown-body p {
    margin: 0 0 16px;
}

/* HEADINGS */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #f1f5f9;
    margin: 24px 0 10px;
}

/* LINKS */
.markdown-body a {
    color: #886ce4;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

/* LISTS */
.markdown-body ul,
.markdown-body ol {
    margin: 0 0 16px 20px;
}

/* ===========================
   IMAGES
=========================== */

.markdown-body img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

/* ===========================
   CODE
=========================== */

.markdown-body pre {
    background: #0b1220;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.markdown-body code {
    font-family: monospace;
    font-size: 14px;
    color: #e2e8f0;
}

/* ===========================
   CALLOUTS
=========================== */

.callout {
    padding: 12px 16px;
    margin: 14px 0;
    border-left: 3px solid;
}

/* INFO */
.callout-info {
    background: rgba(136,108,228,0.08);
    border-left-color: #886ce4;
}

/* WARNING */
.callout-warning {
    background: rgba(239,68,68,0.10);
    border-left-color: #ef4444;
}

/* ===========================
   HR (--- divider)
=========================== */

.markdown-body hr {
    border: none;
    height: 1px;

    margin: 40px 0;

    background: rgba(136, 108, 228, 0.6);
}
/* Shared Japanese guide adaptations. No remote font requests. */
:root { color-scheme: dark; }
body { font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif; overflow-wrap: anywhere; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.navbar-brand, .brand { grid-column: 2; justify-self: center; font-size: 17px; font-weight: 600; letter-spacing: 2px; color: #e2e8f0; }
.language { grid-column: 3; justify-self: end; font-size: 12px; color: #9ca3af; background: rgba(255,255,255,.06); border-radius: 999px; padding: 6px 14px; }
.guide-title { line-height: 1.35; }
.markdown-body h2 { font-size: 24px; line-height: 1.5; }
.markdown-body .step:first-of-type h2 { margin-top: 24px; }
.step { scroll-margin-top: 90px; }
h2 span, .markdown-body code, .markdown-body pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }
h2 span { font-size: .8em; color: #886ce4; margin-right: 10px; }
figure { margin: 20px 0; }
figure a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.markdown-body img { height: auto; }
figcaption { color: #9ca3af; font-size: 14px; line-height: 1.75; margin-top: 10px; }
a { color: #886ce4; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid #886ce4; outline-offset: 4px; }
footer { margin-top: 40px; font-size: 13px; color: #64748b; }
/* The index uses the same palette and content width. */
.container > h1 { margin-top: 40px; font-size: 34px; }
.container > p { margin: 16px 0; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.guide-list a { display: block; padding: 24px; border: 1px solid rgba(136,108,228,.12); background: rgba(255,255,255,.03); text-decoration: none; }
.guide-list small { display: block; color: #9ca3af; }
@media (max-width: 600px) {
    .navbar-inner { padding: 14px 16px; grid-template-columns: 1fr auto; gap: 12px; }
    .navbar-brand, .brand { grid-column: 1; justify-self: start; font-size: 15px; }
    .language { grid-column: 2; padding: 6px 10px; }
    .container { padding: 0 16px; }
    .guide { margin: 24px auto; padding: 24px 20px; }
    .guide-title, .container > h1 { font-size: 28px; }
    .markdown-body h2 { font-size: 20px; }
}
