/* ============================================================
   STARLIKE — 한국스타라이크기술인협회
   디자인 토큰 = .pen(starlikekorea) get_variables 정본값
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg:           #EEEDE9;
    --surface:      #FFFFFF;
    --brass:        #A8843C;
    --brass-soft:   #EFE7D6;
    --crimson:      #C8102E;
    --crimson-deep: #9E0C24;
    --crimson-soft: #FBEAEC;
    --crimson-muted:#B4626B;   /* 메인 포인트 톤다운 (커스텀 칩 등) */
    --ink:          #1B2436;
    --ink-2:        #6B7384;
    --ink-3:        #9AA1AF;
    --line:         #DCD8CE;
    --member:       #55617A;
    --member-soft:  #EEF1F6;
    --naver:        #129A4E;
    --naver-soft:   #E6F4EC;
    --on-dark:      #FFFFFF;
    --on-dark-2:    #AEB7C8;
    --pad:          16px;
    --radius:       16px;
    --radius-sm:    10px;
    --gnb-h:        59px;
    --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body.nskit-app, body.intro-app {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { margin: 0; font-weight: 800; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
iconify-icon { display: inline-block; vertical-align: -0.125em; line-height: 1; }

/* ── 출처/등급 배지 (comp/badge) ── */
.sl-badge {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; line-height: 1.2;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.sl-badge.assoc  { color: var(--crimson); background: var(--crimson-soft); }   /* 협회 */
.sl-badge.naver  { color: var(--naver);   background: var(--naver-soft); }      /* 네이버 */
.sl-badge.member { color: var(--member);  background: var(--member-soft); }     /* 회원 */

/* ── 섹션 eyebrow (crimson 바 + brass 라벨) ── */
.sl-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--brass);
}
.sl-eyebrow::before {
    content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--crimson);
}
/* bar 없는 brass 라벨 (공지 헤더 등) */
.sl-eyebrow.plain { gap: 0; }
.sl-eyebrow.plain::before { display: none; }

/* ── 전체보기 + chevron ── */
.sl-more {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 12px; color: var(--ink-3); font-weight: 400;
}
.sl-more iconify-icon { font-size: 11px; }

/* ── 공통 스티키 탑바 ── (scene 스크롤 컨테이너 상단에 고정)
   각 scene 탑바 엘리먼트에 .sl-topbar 부여하면 top:0 고정.
   홈은 .t-seamless(투명, 흰 텍스트) ↔ .t-solid(흰 배경) 전환. */
.sl-topbar {
    position: sticky; top: 0; z-index: 30;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* ── NSKit PAGE 헤더/푸터/컨테이너 starlike 테마 override ──
   (기본: 헤더 64px·zinc 색 → starlike 56px·ink/line. inc-head에서 nskit-layout.css 뒤에 로드되어 우선) */
body.nskit-app .sub-page-container { background: var(--bg); display: flex; flex-direction: column; }
/* 흰색 배경 페이지(글 상세 등) — onInit 에서 .pg-surface 부여 */
body.nskit-app .sub-page-container.pg-surface { background: var(--surface); }
/* nskit-base.css 의 유틸 `.show{display:block!important}` 가 PAGE 컨테이너(.show 부여) flex 를 깨서 스크롤 불가 → 특이도+!important 로 복구 */
body.nskit-app .sub-page-container.show { display: flex !important; }
body.nskit-app .sub-page-header {
    height: 56px; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 0 16px;
}
body.nskit-app .page-header-default { gap: 8px; }
body.nskit-app .page-header-default .ns-icon.page-back { color: var(--ink); font-size: 22px; }
body.nskit-app .page-title { font-family: var(--font); font-size: 17px; font-weight: 800; color: var(--ink); }
body.nskit-app .page-header-buttons { gap: 14px; align-items: center; }
/* flex 아이템 min-height:auto 때문에 content가 콘텐츠 높이로 늘어나 스크롤이 안 되던 버그 수정 */
/* 콘텐츠 패딩: NSKit 모바일 미디어쿼리가 12px 로 줄여 scene(16px)과 불일치 → 16px 로 통일 */
body.nskit-app .sub-page-content { min-height: 0; background: transparent; padding: 16px; }
/* NSKit 기본 `.with-footer{padding-bottom:0}` 라 마지막 콘텐츠가 푸터에 딱 붙음 → 하단 여백 보장 */
body.nskit-app .sub-page-content.with-footer { padding-bottom: 24px; }
body.nskit-app .sub-page-footer {
    background: var(--surface); border-top: 1px solid var(--line);
    min-height: 60px; padding: 12px 16px;
}

/* ── 섹션 헤더 row ── */
.sl-sec-head { display: flex; align-items: center; justify-content: space-between; }

/* ── 카드 ── */
.sl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* 가로 스크롤 레인 */
.sl-hscroll { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sl-hscroll::-webkit-scrollbar { height: 0; }

/* 전역 스크롤바 숨김 (레이어 스크롤 영역) */
#sub-page-area, #sub-page-area-super, #side-panel-area, #dialog-area,
.layer-area, .layer-area * { scrollbar-width: none; -ms-overflow-style: none; }
#sub-page-area::-webkit-scrollbar, #sub-page-area-super::-webkit-scrollbar,
#side-panel-area::-webkit-scrollbar, #dialog-area::-webkit-scrollbar,
.layer-area ::-webkit-scrollbar { width: 0; height: 0; }
