/* ============================================================================
   guide-article.css — 러닝 가이드 '공식 문서' 레이아웃
   신뢰감: 문서 메타바(작성·검수·갱신일) + 목차 + 콜아웃 + 출처 + 의학 고지.
   라이트/다크 --ro-* 토큰. 데스크톱은 본문+목차 2단, 모바일 1단.
   ========================================================================== */
.ga { max-width: 1080px; margin: 0 auto; }
.ga__crumb { font-size: 13px; color: var(--ro-text-sub); margin-bottom: 14px; }
.ga__crumb a { color: var(--ro-primary-600); text-decoration: none; }

/* 문서 헤더 */
.ga__head { margin-bottom: 18px; padding-bottom: 20px; border-bottom: 2px solid var(--ro-border); }
.ga__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ga__cat { font-size: 12px; font-weight: 800; color: #fff; background: var(--ro-primary-500); padding: 4px 12px; border-radius: 999px; }
.ga__min { font-size: 12px; font-weight: 700; color: var(--ro-text-sub); background: var(--ro-surface); border: 1px solid var(--ro-border); padding: 4px 11px; border-radius: 999px; }
.ga__title { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; color: var(--ro-text); }
.ga__summary { margin: 0 0 14px; font-size: 16px; color: var(--ro-text-sub); line-height: 1.6; }
/* 작성·검수·갱신 신뢰 바 */
.ga__trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ro-text-sub); }
.ga__trust-item { display: inline-flex; align-items: center; gap: 6px; }
.ga__trust-item svg { width: 15px; height: 15px; color: var(--ro-primary-500); }
.ga__trust b { color: var(--ro-text); font-weight: 700; }

/* 본문 + 목차 2단 */
.ga__body { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) { .ga__body { grid-template-columns: 1fr 240px; align-items: start; } }
.ga__toc { display: none; }
@media (min-width: 960px) {
    .ga__toc { display: block; position: sticky; top: 84px;
        border-left: 2px solid var(--ro-border); padding-left: 16px; }
}
.ga__toc-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ro-text-muted); margin: 0 0 10px; }
.ga__toc a { display: block; padding: 5px 0; font-size: 13px; color: var(--ro-text-sub); text-decoration: none; line-height: 1.45; border-left: 2px solid transparent; margin-left: -18px; padding-left: 16px; }
.ga__toc a:hover { color: var(--ro-text); }
.ga__toc a.is-active { color: var(--ro-primary-600); font-weight: 700; border-left-color: var(--ro-primary-500); }

/* ── 본문 타이포 (문서체) ── */
.ga__article { font-size: 16px; line-height: 1.8; color: var(--ro-text); }
.ga__article > h2 { position: relative; scroll-margin-top: 84px;
    font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ro-text);
    margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--ro-border); }
.ga__article > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.ga__article h3 { font-size: 17.5px; font-weight: 800; color: var(--ro-text); margin: 26px 0 8px; scroll-margin-top: 84px; }
.ga__article p { margin: 0 0 16px; }
.ga__article ul, .ga__article ol { margin: 0 0 16px; padding-left: 22px; }
.ga__article li { margin-bottom: 7px; }
.ga__article strong { font-weight: 800; color: var(--ro-text); }
.ga__article a { color: var(--ro-primary-600); }
.ga__article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px;
    display: block; overflow-x: auto; }
.ga__article th, .ga__article td { padding: 11px 13px; border-bottom: 1px solid var(--ro-border); text-align: left; white-space: nowrap; }
.ga__article th { background: var(--ro-primary-50); font-weight: 800; color: var(--ro-text); }
.ga__article blockquote { border-left: 4px solid var(--ro-primary-500); padding: 4px 18px; margin: 18px 0;
    background: var(--ro-primary-50); border-radius: 0 12px 12px 0; color: var(--ro-text); }

/* ── 콜아웃 ── */
.ga-callout { display: flex; gap: 12px; padding: 15px 17px; margin: 20px 0; border-radius: 14px;
    background: var(--ro-surface); border: 1px solid var(--ro-border); }
.ga-callout__ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.ga-callout__ic svg { width: 15px; height: 15px; }
.ga-callout__b { min-width: 0; font-size: 14.5px; line-height: 1.65; }
.ga-callout__b strong { display: block; margin-bottom: 3px; }
.ga-callout__b :last-child { margin-bottom: 0; }
.ga-callout--tip   { background: var(--ro-primary-50); border-color: var(--ro-primary-200); }
.ga-callout--tip   .ga-callout__ic { background: var(--ro-primary-500); }
.ga-callout--warn  { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.35); }
.ga-callout--warn  .ga-callout__ic { background: #f59e0b; }
.ga-callout--key   { background: rgba(16,185,129,.09); border-color: rgba(16,185,129,.32); }
.ga-callout--key   .ga-callout__ic { background: #10b981; }
.ga-callout--note  { background: var(--ro-surface); }
.ga-callout--note  .ga-callout__ic { background: var(--ro-text-muted); }

/* ── 핵심 요약 박스(글 상단) ── */
.ga-tldr { padding: 16px 18px; margin: 0 0 24px; border-radius: 16px;
    background: linear-gradient(135deg, var(--ro-primary-50), var(--ro-surface) 70%);
    border: 1px solid var(--ro-primary-200); }
.ga-tldr__h { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ro-primary-600); margin: 0 0 8px; }
.ga-tldr ul { margin: 0; padding-left: 20px; }
.ga-tldr li { margin-bottom: 5px; font-size: 14.5px; color: var(--ro-text); }

/* ── 의학 고지 / 출처 ── */
.ga-disclaimer { margin-top: 30px; padding: 14px 16px; border-radius: 12px;
    background: var(--ro-surface); border: 1px dashed var(--ro-border);
    font-size: 12.5px; color: var(--ro-text-sub); line-height: 1.6; }
.ga-sources { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ro-border); }
.ga-sources h3 { font-size: 14px; font-weight: 800; color: var(--ro-text); margin: 0 0 8px; }
.ga-sources ol { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--ro-text-sub); line-height: 1.7; }

/* 하단 CTA */
.ga-cta { margin-top: 30px; padding: 22px 24px; border-radius: 18px; text-align: center;
    background: linear-gradient(135deg, var(--ro-primary-50), var(--ro-accent-50, var(--ro-primary-50)));
    border: 1px solid var(--ro-primary-200); }
.ga-cta h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ro-text); }
.ga-cta p { margin: 0 0 14px; font-size: 14px; color: var(--ro-text-sub); }
.ga-cta .ro-btn { margin: 0 4px; }

/* 기존 본문 파셜 호환 — .ro-callout 를 문서체로(전역 .ro-callout 과 안 부딪히게 article 스코프) */
.ga__article .ro-callout { padding: 14px 16px; margin: 18px 0; border-radius: 14px;
    background: var(--ro-surface); border: 1px solid var(--ro-border); font-size: 14.5px; line-height: 1.65; color: var(--ro-text); }
.ga__article .ro-callout strong { display: block; margin-bottom: 4px; color: var(--ro-text); }
.ga__article .ro-callout p:last-child { margin-bottom: 0; }
.ga__article .ro-callout--tip  { background: var(--ro-primary-50); border-color: var(--ro-primary-200); }
.ga__article .ro-callout--warn { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.38); }
