/* ============================================================
   MangoPlan 사용설명서(도움말) 공통 스타일
   guide.html / guide-widget.html / guide-android.html 공용
   ============================================================ */
:root {
    --g-amber: #E8960A;
    --g-amber-2: #F59E0B;
    --g-orange: #F97316;
    --g-green: #10B981;
    --g-amber-lt: #FEF3C7;
    --g-amber-bg: #FFFBF2;
    --g-ink: #1C1308;
    --g-muted: #6B7280;
    --g-border: #EFE6D4;
    --g-card: #FFFFFF;
}

body.guide-body {
    background: var(--g-amber-bg);
    color: var(--g-ink);
}

/* ── Hero ── */
.guide-hero {
    background: radial-gradient(120% 120% at 80% 0%, #FFF4D6 0%, #FFE8B8 45%, #FFDDA1 100%);
    border-bottom: 1px solid var(--g-border);
    padding: 56px 0 48px;
}
.guide-hero .tag {
    display: inline-block;
    background: #fff;
    color: var(--g-amber);
    border: 1px solid var(--g-amber-lt);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .14em;
    padding: 6px 14px;
    border-radius: 999px;
}
.guide-hero h1 {
    font-weight: 900;
    letter-spacing: -.03em;
    margin: 14px 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}
.guide-hero .lead-sub {
    color: #7c5a17;
    font-weight: 600;
    margin-bottom: 22px;
}
.guide-hero .hero-actions .btn {
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 22px;
}
.btn-mango {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #1f2937;
    box-shadow: 0 6px 18px rgba(245, 158, 11, .35);
}
.btn-mango:hover { filter: brightness(1.04); color: #1f2937; }

/* ── Platform tabs ── */
.guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.guide-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border: 1px solid var(--g-amber-lt);
    background: #fff;
    color: #92400e;
    transition: transform .15s ease, box-shadow .15s ease;
}
.guide-tab:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,.18); color: #92400e; }
.guide-tab.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border-color: transparent;
}

/* ── Layout ── */
.guide-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 16px 80px;
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: 32px;
}
@media (max-width: 860px) {
    .guide-wrap { grid-template-columns: 1fr; gap: 18px; }
}

/* ── Sticky TOC ── */
.guide-toc {
    position: sticky;
    top: 80px;
    align-self: start;
    background: var(--g-card);
    border: 1px solid var(--g-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .05);
}
.guide-toc h6 {
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .12em;
    color: var(--g-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.guide-toc a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.guide-toc a:hover { background: var(--g-amber-lt); color: #92400e; }
.guide-toc a.active { background: var(--g-amber-lt); color: #92400e; }
@media (max-width: 860px) {
    .guide-toc {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .guide-toc h6 { width: 100%; margin-bottom: 6px; }
    .guide-toc a { padding: 6px 12px; font-size: .85rem; }
}

/* ── Section ── */
.guide-section { scroll-margin-top: 84px; margin-bottom: 40px; }
.guide-section > .sec-head { margin-bottom: 16px; }
.guide-section .sec-tag {
    font-weight: 800;
    font-size: .7rem;
    letter-spacing: .14em;
    color: var(--g-amber);
}
.guide-section h2 {
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 1.5rem;
    margin: 4px 0 4px;
}
.guide-section .sec-sub { color: var(--g-muted); font-weight: 500; }

/* ── Step cards ── */
.step-card {
    display: flex;
    gap: 16px;
    background: var(--g-card);
    border: 1px solid var(--g-border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .04);
}
.step-badge {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400e;
}
.step-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.step-card p { margin-bottom: 8px; color: #374151; }
.step-card ul { margin: 0; padding-left: 18px; }
.step-card ul li { margin-bottom: 6px; color: #374151; }
.key {
    display: inline-block;
    background: #fff7e6;
    border: 1px solid #fde68a;
    border-radius: 7px;
    padding: 1px 8px;
    font-weight: 700;
    color: #92400e;
    font-size: .9em;
}

/* ── Feature grid ── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.feat-item {
    background: var(--g-card);
    border: 1px solid var(--g-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .04);
}
.feat-item .f-ico {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 8px;
}
.feat-item h4 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.feat-item p { font-size: .92rem; color: #4b5563; margin: 0; }

/* ── Tip cards ── */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.tip-card {
    background: linear-gradient(180deg, #FFFDF6, #FFF7E6);
    border: 1px solid var(--g-amber-lt);
    border-radius: 16px;
    padding: 18px;
}
.tip-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.tip-card p { font-size: .92rem; color: #4b5563; margin: 0; }

/* ── CTA ── */
.guide-cta {
    margin-top: 8px;
    background: linear-gradient(135deg, #FFE8B8, #FFD78A);
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}
.guide-cta h3 { font-weight: 900; margin-bottom: 6px; }
.guide-cta p { color: #7c5a17; font-weight: 600; margin-bottom: 16px; }

/* ── Download/intro banner ── */
.dl-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--g-card);
    border: 1px solid var(--g-border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .04);
}
.dl-banner .dl-ico {
    font-size: 1.8rem;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    flex: 0 0 auto;
}
.dl-banner .dl-text { flex: 1 1 auto; }
.dl-banner .dl-text h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.dl-banner .dl-text p { margin: 0; color: var(--g-muted); font-size: .92rem; }
@media (max-width: 560px) {
    .dl-banner { flex-direction: column; align-items: flex-start; }
}
