/* ============================================================
   OPEN GRID 데모 — B타입 "그래파이트" 기본 디자인 레이어
   ------------------------------------------------------------
   목적: 데모 사이트의 모든 예제 그리드를 B 빌더가 내보낸 그래파이트
         디자인으로 통일한다(기본값). 테마/스킨 시연 예제는 덮지 않는다.

   출처(SSOT · 지어낸 값 없음):
     sessions/b-type-restyle-2026-10/ssot/og-theme-acme.css
     sessions/b-type-restyle-2026-10/ssot/og-tokens.css
     sessions/b-type-restyle-2026-10/ssot/og-allowed.md
   SSOT 는 [data-og-theme="acme"] 스코프에 --acme-* 간접으로 돼 있으나,
   여기서는 "데모 기본"으로 쓰려고 --acme-* 간접 없이 og-allowed.md 의
   「나온 값」을 직접 --og-* 에 적었다(값은 SSOT 와 동일).

   ── 특이성 근거(실측: dist/open-grid-base.css · open-grid-themes.css) ──
   · 일반 그리드는 OpenGrid 가 컨테이너에 data-og-theme="default" 를 쓴다.
     그 그리드를 칠하는 건 themes.css 의 [data-og-theme="default"] 블록(특이성 0,1,0)이다.
   · 테마 데모(ocean 등)도 bare [data-og-theme="ocean"] (특이성 0,1,0) — default 와 동급.
   · 따라서 .og-container(0,1,0)를 themes 뒤에 깔면 테마 데모까지 덮는다(브리프 가정 반증).
   · 해법: .og-container[data-og-theme="default"] (특이성 0,2,0) 로 default 만 겨냥한다.
     - default 그리드: 0,2,0 > 0,1,0 → 그래파이트 승. ✓
     - 테마 데모(ocean 등): 값이 달라 이 룰에 안 걸림 → 테마 보존. ✓
     - :not([data-og-theme]) 는 테마 속성이 아예 없는 컨테이너용 안전망(0,2,0).
   · 특이성이 이미 우위라 로드 순서와 무관하지만, 첨가 원칙에 따라 코어 CSS 뒤에 싣는다.

   ── 형태 잠금 ──
   모서리 반경·선 굵기·형태는 건드리지 않는다(코어 기본 유지). SSOT 에도 없다.

   ── 알려진 한계(가상 스크롤 행 높이) ──
   --og-row-height:28px 는 CSS 로 깔지만, 가상화 그리드는 JS 옵션 rowHeight(기본 32)가
   이겨 28px 가 안 될 수 있다. 색·글꼴·줄무늬·상태행 등은 전부 적용된다.
   코어/예제 JS 는 바꾸지 않는다(추가 리스크).
   ============================================================ */

.og-container[data-og-theme="default"],
.og-container:not([data-og-theme]) {
  /* ── 손으로 정한 값(og-allowed.md) ── */
  --og-row-bg:               #ffffff;
  --og-row-color:            #1c252b;
  --og-primary:              #37474f;
  --og-border-color:         #d1d6d9;
  --og-row-selected-bg:      #cfdce6;
  --og-header-bg:            #e3e8ea;

  /* 글꼴 */
  --og-font-family:          system-ui, 'Malgun Gothic';
  --og-font-variant-numeric: tabular-nums;

  /* 크기 (가상 스크롤에서는 JS rowHeight 가 이길 수 있음 — 위 "알려진 한계" 참고) */
  --og-row-height:           28px;

  /* ── 기본설정이 채운 파생값(og-theme-acme.css · 대비 계산 완료) ── */
  --og-row-alt-bg:           #f5f8fa;  /* 짝수행 바탕 */
  --og-row-hover-bg:         #dadddf;  /* 행 오버 바탕 */
  --og-row-selected-color:   #1c262b;  /* 선택행 글자 */
  --og-header-color:         #1c262b;  /* 헤더 글자 */
  --og-header-hover-bg:      #c3c6c8;  /* 헤더 오버 바탕 */
  --og-row-added-bg:         #e8f5e9;  /* 추가행 바탕 */
  --og-row-added-color:      #1c262b;  /* 추가행 글자 */
  --og-row-edited-bg:        #fff8e1;  /* 수정행 바탕 */
  --og-row-edited-color:     #1c262b;  /* 수정행 글자 */
  --og-row-removed-bg:       #ffebee;  /* 삭제행 바탕 */
  --og-row-removed-color:    #1c262b;  /* 삭제행 글자 */
  --og-group-bg:             #dee1e3;  /* 그룹행 바탕 */
  --og-group-color:          #1c262b;  /* 그룹행 글자 */
  --og-group-border:         #bdc0c1;  /* 그룹행 테두리 */
  --og-rownum-color:         #1c262b;  /* 행번호색 */
  --og-header-sorted-bg:     #dde0e2;  /* 정렬열 바탕 */
  --og-header-sorted-color:  #1c262b;  /* 정렬열 글자 */
  --og-header-rownum-color:  #1c262b;  /* 헤더 행번호색 */
  --og-tab-bg:               #e3e8ea;  /* 탭 바탕 */
  --og-tab-color:            #1c262b;  /* 탭 글자 */
  --og-tab-active-bg:        #ffffff;  /* 탭 활성 바탕 */
  --og-tab-active-color:     #1c262b;  /* 탭 활성 글자 */
  --og-tab-hover-bg:         #dde0e2;  /* 탭 오버 바탕 */
  --og-tab-border:           #d1d6d9;  /* 탭 테두리 */
  --og-pagination-bg:        #ffffff;  /* 표시줄 바탕 */
  --og-pagination-btn-color: #1c262b;  /* 표시줄 버튼글자 */
  --og-input-bg:             #ffffff;  /* 입력창 바탕 */
  --og-input-color:          #1c262b;  /* 입력창 글자 */
  --og-filter-bg:            #ffffff;  /* 필터 바탕 */
  --og-filter-color:         #1c262b;  /* 필터 글자 */
}
