/* ============================================================
   guide.css — 시작하기 가이드 페이지 전용.
   색·폰트·간격은 common.css / online.css 토큰을 재사용한다.
   ============================================================ */

/* ---------- 본문 단락 ---------- */
.guide-lead {
    max-width: 760px;
    color: #5f6e86;
    font-size: 15px;
    line-height: 1.85;
}
.guide-lead + .guide-lead { margin-top: 10px; }

.guide-container > section { scroll-margin-top: 20px; }

/* ---------- 목차 ---------- */
.guide-toc {
    background: #f6f8ff;
    border: 1px solid #dce5ff;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 22px 0;
}
.guide-toc strong {
    display: block;
    color: #365fca;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.guide-toc ol {
    margin: 0;
    padding-left: 18px;
    columns: 2;
    column-gap: 28px;
}
.guide-toc li {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.9;
    break-inside: avoid;
}
.guide-toc a { color: #3a6dec; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

/* ---------- 영상 카드 ---------- */
.video-card {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border: 2px solid #ff6846;
    background: linear-gradient(135deg, #fff4ef 0%, #ffffff 70%);
    box-shadow: 0 14px 34px rgba(213, 66, 34, 0.13);
}
.video-card .thumb {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    background: #2c313d;
    aspect-ratio: 16 / 9;
}
.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card .thumb::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(250, 85, 54, 0.92);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    padding-left: 4px;
}
.video-card .video-kicker {
    margin: 0 0 6px;
    color: #d54222;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.video-card .video-meta h2 { font-size: 22px; margin-bottom: 8px; }
.video-card .video-meta p:not(.video-kicker) {
    color: #667080;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.video-card .video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fa5536;
    color: #fff;
    min-height: 46px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(213, 66, 34, 0.22);
    transition: background 0.15s, transform 0.15s;
}
.video-card .video-link:hover {
    background: #e3431f;
    transform: translateY(-1px);
}

/* ---------- 단계 패널 ---------- */
.guide-step { margin-top: 18px; }
.guide-step .step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.step-badge {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: #4f80ff;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
}
.guide-step .step-head h2 { font-size: 18px; }
.step-badge.pro-badge {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c4dff, #4f80ff);
}
.guide-step p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}
.guide-step p + p { margin-top: 10px; }
.guide-step ul, .guide-step ol {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    margin-top: 8px;
}
.guide-step li { margin-bottom: 4px; }

/* 인라인 코드/함수명 강조 (common 기본 위에 살짝) */
.guide-container code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.92em;
    background: #f1f3f7;
    border: 1px solid #e4e7ec;
    border-radius: 5px;
    padding: 1px 6px;
    color: #2f3a72;
    overflow-wrap: anywhere;
}

/* ---------- 이미지/코드 캡처 자리 ---------- */
figure.shot {
    margin: 14px 0 4px;
    border: 2px dashed #cdd5e0;
    border-radius: 10px;
    background: #f3f6fa;
    padding: 10px;
}
figure.shot img {
    display: block;
    max-width: 100%;      /* 원본보다 크게 늘리지 않음 — 작은 캡처가 뭉개지지 않게 */
    height: auto;
    margin: 0 auto;       /* 작은 이미지는 가운데 정렬 */
    border-radius: 6px;
    background: #fff;
}
figure.shot figcaption {
    margin-top: 8px;
    color: #7180a0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* ---------- 콜아웃(보너스/주의) ---------- */
.callout {
    border: 1px solid #dce5ff;
    background: #f6f8ff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
}
.callout h2 { font-size: 16px; margin-bottom: 8px; color: #2c313d; }
.callout p { color: #5f6e86; font-size: 13px; line-height: 1.75; }
.callout.tip { border-color: #cdeede; background: #f1fbf6; }

.pro-mode-guide {
    border-color: #d8d2ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}
.pro-mode-guide strong { color: #4b35b5; }
.pro-mode-table td:first-child {
    color: #4b35b5;
    font-weight: bold;
}

/* ---------- 예약어 표 ---------- */
.vars-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.vars-table th, .vars-table td {
    border: 1px solid #e4e7ec;
    padding: 9px 11px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
.vars-table th {
    background: #f6f8ff;
    color: #365fca;
    font-size: 12px;
    white-space: nowrap;
}
.vars-table td:first-child { white-space: nowrap; }
.vars-table td code { background: #fff; }

/* ---------- CTA ---------- */
.guide-cta {
    text-align: center;
    margin-top: 26px;
}
.guide-cta .cta-note {
    max-width: 640px;
    margin: 0 auto 14px;
    text-align: center;
    color: #5f6e86;
    font-size: 15px;
    line-height: 1.85;
}
.guide-cta .cta-link {
    display: inline-block;
    background: #4f80ff;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.15s;
}
.guide-cta .cta-link:hover { background: #3a6dec; }

/* ---------- 반응형 ---------- */
@media (max-width: 720px) {
    .video-card { grid-template-columns: 1fr; }
    .guide-toc ol { columns: 1; }
    .vars-table { font-size: 12px; }
    .vars-table th, .vars-table td { padding: 7px 8px; }
}
