/* 스타터 셸 — 상단 바·하단 탭·목록 카드·댓글·입력. 색·서체·모서리는 키트 tokens.css 변수만 쓴다(PITFALLS I10).
   🔴 하단 탭 여유 높이: main 의 아래 여백 = 탭 높이 + 하단 안전 영역(--m-safe-bot: iOS 홈 막대·갤럭시 3버튼 --sab-floor)
      + 숨 24px. 이게 모자라면 마지막 글이 탭에 영구히 가린다(PITFALLS G7). */
:root { --st-tab-h: 56px; }
.st-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg-2, var(--bg2)); border-bottom: 1px solid var(--border);
}
.st-logo { font-weight: 800; font-size: 1.05rem; color: var(--fg-1, var(--text)); text-decoration: none; }
.st-top-write { font-size: .9rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.st-main {
  max-width: 760px; margin: 0 auto; padding: 16px;
  padding-bottom: calc(var(--st-tab-h) + var(--m-safe-bot, 0px) + 24px);
}
.st-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--st-tab-h) + var(--m-safe-bot, 0px)); padding-bottom: var(--m-safe-bot, 0px);
  background: var(--bg-2, var(--bg2)); border-top: 1px solid var(--border);
}
.st-tab {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: .85rem; font-weight: 600; color: var(--fg-3, var(--text3)); text-decoration: none;
}
.st-tab { position: relative; }
.st-tab.active { color: var(--accent); font-weight: 800; }
.st-tab.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: var(--radius-sm); background: var(--accent); }
html.kbd-open .st-tabbar { display: none; }   /* 키보드 열림(키트 mobile-viewport.js) — 글쓰기를 덮지 않게 */
@media (min-width: 901px) {
  .st-tabbar { display: none; }
  .st-main { padding-bottom: 32px; }
}

.st-h1 { font-size: 1.3rem; font-weight: 800; line-height: 1.35; margin: 4px 0 8px; color: var(--fg-1, var(--text)); }
.st-board-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.st-chip {
  flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: .85rem; color: var(--fg-2, var(--text2)); text-decoration: none; background: var(--bg-2, var(--bg2));
}
.st-chip.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.st-feed { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-card a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px;
  background: var(--bg-2, var(--bg2)); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--fg-1, var(--text));
}
.st-card-board { font-size: .75rem; font-weight: 700; color: var(--accent); }
.st-card-title { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.st-card-meta { font-size: .78rem; color: var(--fg-3, var(--text3)); }
.st-more { display: block; text-align: center; padding: 14px; margin-top: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.st-empty { padding: 40px 0; text-align: center; color: var(--fg-3, var(--text3)); }
.st-meta { font-size: .82rem; color: var(--fg-3, var(--text3)); margin-bottom: 16px; }
.st-actions { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.st-btn {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-2, var(--bg2)); color: var(--fg-1, var(--text)); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.st-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-comments { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.st-comment { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.st-comment-who { font-size: .78rem; font-weight: 700; color: var(--fg-2, var(--text2)); }
.st-comment-body { font-size: .92rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-input, .st-textarea, .st-select {
  width: 100%; font: inherit; font-size: 16px;   /* 16px 미만이면 iOS 가 입력 때 화면을 확대한다 */
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2, var(--bg2)); color: var(--fg-1, var(--text));
}
.st-textarea { min-height: 88px; resize: vertical; }
.st-form { display: flex; flex-direction: column; gap: 10px; }
.st-note { font-size: .85rem; color: var(--fg-2, var(--text2)); padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }

/* ── 모듈 화면(로그인 메뉴·대댓글·신고 사유·업로드) ── */
.st-top-menu { display: flex; align-items: center; gap: 14px; font-size: .88rem; }
.st-top-menu a { color: var(--fg-2, var(--text2)); text-decoration: none; font-weight: 600; }
.st-link {
  background: none; border: 0; padding: 6px 2px; min-height: 32px; font: inherit; font-size: .8rem;
  color: var(--fg-3, var(--text3)); cursor: pointer;
}
.st-top-menu .st-link { font-size: .88rem; font-weight: 600; color: var(--fg-2, var(--text2)); }
.st-comment-acts { display: flex; gap: 10px; margin-top: 4px; }
.st-comment-time { font-weight: 400; color: var(--fg-3, var(--text3)); font-size: .74rem; margin-left: 4px; }
.st-reply { margin-left: 22px; border-left: 3px solid var(--border); }
.st-comment-gone { font-size: .85rem; color: var(--fg-3, var(--text3)); font-style: italic; }
.st-reply-to { font-size: .85rem; color: var(--accent); }
.st-reason { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 10px; margin: 8px 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); }
.st-upload-state { font-size: .85rem; color: var(--fg-2, var(--text2)); min-height: 1.2em; }
.st-login-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.st-actions { align-items: flex-start; }

/* Quill 제목 드롭다운 한국어 라벨(기본 "Normal·Heading 2") — Quill CSS 가 이 파일보다 뒤에 로드돼 같은 세기면 지므로 .st-form 으로 한 단계 세게 */
.st-form .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.st-form .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: '본문'; }
.st-form .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.st-form .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: '소제목'; }
.st-form .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.st-form .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: '작은 제목'; }

/* ── 알림·관리·계정(시니어 보강) ── */
.st-noti-link { position: relative; }
.st-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; vertical-align: middle; }
.st-unread { border-color: var(--accent); }
.st-noti { display: block; color: inherit; text-decoration: none; }
.st-log { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.st-more-btn { width: 100%; margin: 4px 0 12px; }
.st-edit { margin-top: 8px; }
.st-badge[hidden] { display: none; }   /* display 가 hidden 속성을 이기지 않게 — 0개일 때 빈 동그라미 금지 */
.st-comment-who a { color: inherit; text-decoration: none; font-weight: 700; }

/* 창업의길 커뮤니티 — 창업의길 녹색 하나 */
:root { --accent: #1f6b4f; }
:root[data-theme="dark"] { --accent: #6fc59a; }
.st-logo small { font-size: .78rem; font-weight: 700; color: var(--accent); margin-left: 4px; }
.st-intro { font-size: .92rem; color: var(--fg-2, var(--text2)); margin: 0 0 12px; line-height: 1.6; }
.st-intro a { color: var(--accent); font-weight: 700; }
