/* ============================================
   HOW TO GUIDE — page styles
   (shared by every language version of how-to-guide.html)
   ============================================ */

.guide-wrapper {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    gap: 48px;
}

.guide-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.guide-sidebar-inner {
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-right: 8px;
}

.guide-sidebar-inner::-webkit-scrollbar { width: 4px; }
.guide-sidebar-inner::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.guide-sidebar-inner h3 {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1c1c1e;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef5ff;
}

.guide-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-nav li { margin-bottom: 2px; }

.guide-nav a {
    display: block;
    padding: 7px 12px;
    font-size: 0.85em;
    color: #6c6c70;
    text-decoration: none;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.guide-nav a:hover {
    color: #1c1c1e;
    background: rgba(0, 122, 255, 0.06);
    border-left-color: #007aff;
}

.guide-nav a.active {
    color: #1c1c1e;
    font-weight: 600;
    background: rgba(0, 122, 255, 0.08);
    border-left-color: #007aff;
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-content h1 {
    font-size: 2.5em;
    color: #1c1c1e;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.guide-lead {
    font-size: 1.15em;
    color: #6c6c70;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 640px;
}

.guide-section {
    scroll-margin-top: 24px;
    margin-bottom: 56px;
}

.guide-section h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #1c1c1e;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef5ff;
}

.guide-section h3 {
    font-size: 1.15em;
    color: #1c1c1e;
    font-weight: 600;
    margin: 28px 0 10px 0;
}

.guide-section p {
    color: #6c6c70;
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.guide-section p strong { color: #1c1c1e; }

.guide-section ol {
    padding-left: 20px;
    margin: 0 0 14px 0;
}

.guide-section ol li {
    color: #6c6c70;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 4px;
}

.guide-section ol li strong { color: #1c1c1e; }

.guide-section code {
    background: #eef5ff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.92em;
    color: #1c1c1e;
}

.guide-tip {
    background: #eef5ff;
    border-left: 3px solid #007aff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 0.95em;
    color: #1c1c1e;
    line-height: 1.6;
}
.guide-tip::before { content: "\01F4A1 "; }

.guide-note {
    background: #f7f7f8;
    border-left: 3px solid #6c6c70;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 0.95em;
    color: #1c1c1e;
    line-height: 1.6;
}
.guide-note::before { content: "\02139\0FE0F "; }

.guide-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #007aff;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
    cursor: pointer;
    font-size: 1.4em;
    line-height: 1;
    transition: transform 0.2s;
}
.guide-mobile-toggle:active { transform: scale(0.92); }

.guide-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 200;
}
.guide-mobile-overlay.open { display: block; }

@media (max-width: 820px) {
    .guide-wrapper {
        flex-direction: column;
        padding: 30px 16px 80px;
        gap: 0;
    }

    .guide-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        background: #f0f2f5;
        z-index: 300;
        padding: 24px 20px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .guide-sidebar.open { left: 0; }

    .guide-sidebar-inner {
        position: static;
        max-height: none;
    }

    .guide-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .guide-content h1 { font-size: 2em; }
}
