# task-584.1: InsuWiki TOC 스크롤 위치 조정

## 작업 요약
TOC 목차 클릭 시 heading이 화면 상단에 더 가깝게 위치하도록 스크롤 offset 조정.
현재 128px offset → 약 40px로 변경.

## 수정 파일 및 위치

### 1. `nextapp/src/components/TableOfContents.tsx`
- **라인 331 부근**: `scrollContainer.scrollTop - 128` → `scrollContainer.scrollTop - 40`으로 변경
- 기존 코드:
  ```typescript
  const offset = elementRect.top - containerRect.top + scrollContainer.scrollTop - 128;
  ```
- 변경:
  ```typescript
  const offset = elementRect.top - containerRect.top + scrollContainer.scrollTop - 40;
  ```

### 2. `nextapp/src/app/docs/[id]/DocumentClient.tsx`
- **h1, h2, h3 태그의 className**에서 `scroll-mt-32` → `scroll-mt-10`으로 변경
- `scroll-mt-32` = 128px, `scroll-mt-10` = 40px (2.5rem)
- h1 (라인 134 부근): `scroll-mt-32` → `scroll-mt-10`
- h2 (라인 138 부근): `scroll-mt-32` → `scroll-mt-10`
- h3 (라인 142 부근): `scroll-mt-32` → `scroll-mt-10`

## 주의사항
- 두 파일의 offset 값을 **반드시 일치**시킬 것 (view모드 수동 스크롤 = CSS scroll-margin)
- 기존 테스트가 깨지지 않는지 확인
- 다른 코드는 절대 수정하지 않을 것