body { color: #243447; }
.markdown-section { max-width: 900px; padding: 38px 44px 80px; }
.markdown-section h1 { font-size: 2rem; line-height: 1.3; }
.markdown-section h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.markdown-section img { max-width: 100%; }
.sidebar { background: #f8fafb; border-right: 1px solid #e6edf0; }
.sidebar-nav > ul > li > p { color: #64748b; font-size: 12px; letter-spacing: .04em; }
.app-name-link > img { max-width: 48px; }
.docs-hero { padding: 18px 0 28px; }
.markdown-section .eyebrow { color: #087d62; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.docs-hero h1 { margin: 12px 0 18px; }
.docs-hero > p:not(.eyebrow) { color: #526477; max-width: 650px; font-size: 17px; }
.markdown-section .primary-link, .markdown-section .secondary-link { display: inline-block; padding: 10px 18px; margin: 10px 12px 0 0; border-radius: 8px; text-decoration: none; font-weight: 600; }
.markdown-section .primary-link { color: white; background: #087d62; }
.markdown-section .secondary-link { color: #087d62; border: 1px solid #cdded8; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0 32px; }
.markdown-section .entry-card { display: flex; flex-direction: column; gap: 9px; border: 1px solid #dce5e8; border-radius: 10px; padding: 20px; text-decoration: none; transition: border-color .15s, background .15s; }
.entry-card strong { color: #163d35; font-size: 17px; }
.entry-card span { color: #526477; font-size: 14px; font-weight: 400; }
.entry-card:hover { border-color: #087d62; background: #f3faf7; }
a:focus-visible, button:focus-visible { outline: 3px solid #087d62; outline-offset: 4px; }
.page-toc { position: fixed; right: 20px; top: 100px; width: 175px; max-height: calc(100vh - 150px); overflow: auto; font-size: 12px; border-left: 1px solid #e6edf0; padding-left: 16px; }
.page-toc strong { display: block; margin-bottom: 12px; color: #526477; }
.page-toc a { display: block; color: #526477; text-decoration: none; line-height: 1.5; margin-bottom: 10px; }
.page-toc a:hover { color: #087d62; }
@media (min-width: 1280px) { .content { padding-right: 215px; } }
@media (max-width: 1279px) { .page-toc { display: none; } }
@media (max-width: 768px) { .markdown-section { padding: 24px 22px 80px; } .entry-grid { grid-template-columns: 1fr; } .markdown-section h1 { font-size: 1.8rem; } .telegram-button { width: 44px; height: 44px; line-height: 46px; right: 12px; bottom: 18px; } .telegram-icon { font-size: 24px; } .docs-hero { padding-top: 10px; } }

/* A standalone language chooser; scoped so document navigation stays intact. */
body.language-selection { background: radial-gradient(ellipse at 50% 0%, #eaf7f1 0, #fff 65%); }
.language-selection .sidebar, .language-selection .sidebar-toggle, .language-selection .app-nav, .language-selection .page-toc, .language-selection .telegram-button { display: none !important; }
.language-selection .content { left: 0; margin-left: 0; padding: 0; transform: none; }
.language-selection .markdown-section { box-sizing: border-box; max-width: 900px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 60px 32px; display: flex; align-items: center; justify-content: center; }
.language-landing { width: 100%; text-align: center; }
.language-landing .landing-logo { width: 70px; margin: 0 auto 16px; }
.language-landing .eyebrow { margin: 8px 0 24px; }
.language-landing h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.4; margin: 0 0 24px; letter-spacing: -.025em; }
.language-landing h1 span { color: #526477; font-weight: 400; font-size: .8em; }
.language-landing .landing-description { color: #526477; line-height: 1.9; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 680px; margin: 38px auto 24px; }
.markdown-section .language-option { display: flex; flex-direction: column; gap: 12px; padding: 26px; text-align: left; border: 1px solid #d7e5de; border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.language-option strong { display: flex; justify-content: space-between; color: #126a54; font-size: 22px; }
.language-option > span { color: #526477; font-size: 13px; font-weight: 400; }
.language-option:hover { border-color: #087d62; box-shadow: 0 6px 24px #087d6210; }
.language-landing .language-note { color: #64748b; font-size: 12px; margin-top: 28px; }
@media (max-width: 600px) { .language-selection .markdown-section { padding: 36px 22px; } .language-options { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; } .markdown-section .language-option { padding: 20px; } .language-landing .landing-logo { width: 56px; } }
