


.toc-link {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #5f6368;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.toc-link:hover  { background: #f8f9fa; color: #111111; }
.toc-link.active { background: #f1f8ff; color: #1a73e8; font-weight: 500; }

.toc-chapter {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa0a6;
    padding: 12px 12px 4px;
}


.code-block {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
}

.code-block-header {
    background: #2a2a3d;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-header .dot        { width: 10px; height: 10px; border-radius: 50%; }
.code-block-header .dot-red    { background: #ff5f57; }
.code-block-header .dot-yellow { background: #febc2e; }
.code-block-header .dot-green  { background: #28c840; }

.code-block-header .lang-tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block pre {
    padding: 16px 20px;
    overflow-x: auto;
    color: #cdd6f4;
}


.ck { color: #89b4fa; } /* key        — blue   */
.cv { color: #a6e3a1; } /* value str  — green  */
.cn { color: #fab387; } /* value num  — orange */
.cc { color: #6c7086; } /* comment    — gray   */
.cs { color: #f38ba8; } /* special    — red    */
.cp { color: #cba6f7; } /* punctuation— purple */


.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}


.section-anchor { scroll-margin-top: 80px; }

@media (min-width: 768px) {
    .section-anchor { scroll-margin-top: 100px; }
}


.faq-item { border-bottom: 1px solid #f1f3f4; }

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    background: none;
    border: none;
}

.faq-answer {
    display: none;
    padding-bottom: 18px;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.75;
}

.faq-answer.open { display: block; }
.faq-icon        { flex-shrink: 0; transition: transform 0.2s ease; }
.faq-icon.open   { transform: rotate(45deg); }


.rule-table th {
    background: #f8f9fa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6368;
    padding: 10px 16px;
    text-align: left;
}

.rule-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-top: 1px solid #f1f3f4;
    vertical-align: top;
}

.rule-table tr:last-child td { border-bottom: 1px solid #f1f3f4; }


.doc-card { transition: all 0.2s ease; }
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); }


.giant-text {
    font-size: clamp(60px, 12vw, 160px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #e5e7eb;
}


#mobile-toc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}


.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f3f4;
    color: #5f6368;
}


.callout-info {
    background: #f0f7ff;
    border-left: 3px solid #1a73e8;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #1a56a8;
    line-height: 1.6;
}

.callout-warn {
    background: #fffbf0;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #92400e;
    line-height: 1.6;
}
