/* ========================================
   nbh의 갠홈
   "이 CSS를 읽고 있다면 당신은 개발자"
   ======================================== */

@import url('https://cdn.jsdelivr.net/gh/neodgm/neodgm-webfont@1.532/neodgm/neodgm-woff2.css');

:root {
  --bg-color: #e8f4fd;
  --container-bg: #ffffff;
  --border-color: #b8d4e3;
  --nav-bg: #c4e0f0;
  --nav-hover: #a8d0e8;
  --nav-active: #8bbdd4;
  --text-color: #333333;
  --text-light: #888888;
  --accent: #5a9bbf;
  --link-color: #4a8aad;
  --sidebar-width: 200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'NeoDunggeunmo', 'Courier New', monospace;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}


/* ── 컨테이너 ── */

.container {
  width: 100%;
  max-width: 1000px;
  background-color: var(--container-bg);
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.08), 0 8px 24px rgba(90,155,191,0.06);
}


/* ── 배너 — 타이틀바 + 도트 패턴 ── */

.banner {
  width: 100%;
  height: auto;
  background:
    radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(135deg, #d4eaf7 0%, #a8cce0 50%, #c4e0f0 100%);
  background-size: 18px 18px, 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 50px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: ':: nbh.naru.pub - B급 개발자의 아지트 ::';
  display: block;
  background: linear-gradient(90deg, #5a9bbf, #7ab8d4, #5a9bbf);
  background-size: 200% 100%;
  animation: title-gradient 6s ease infinite;
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.banner::after {
  content: '\2014  \25A1  \00D7';
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  z-index: 1;
}

@keyframes title-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.banner-title {
  font-size: 34px;
  color: #3a6a88;
  text-shadow: 2px 2px 0 #fff, 3px 3px 0 rgba(0,0,0,0.04);
  z-index: 1;
}

.banner-subtitle {
  font-size: 12px;
  color: #5a8aa8;
  margin-top: 6px;
  padding: 3px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px dashed var(--border-color);
  display: inline-block;
  z-index: 1;
}


/* ── 티커 (공지 스크롤) — 양쪽 페이드 ── */

.ticker {
  background: #eef6fc;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 15px;
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 1;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, #eef6fc, transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(90deg, transparent, #eef6fc);
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 25s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


/* ── 네비게이션 ── */

.nav {
  display: flex;
  background: #d8ecf5;
  padding: 7px 16px;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  padding: 3px 12px;
  transition: color 0.1s, background 0.1s;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.nav a.active {
  color: var(--accent);
  font-weight: bold;
}

.nav a.active::before { content: '['; color: var(--accent); }
.nav a.active::after  { content: ']'; color: var(--accent); }

/* 항목 사이 구분자 */
.nav a + a::before {
  content: '·';
  color: var(--border-color);
  margin-right: 12px;
  font-weight: normal;
  color: #a0c0d0;
}


/* ── 콘텐츠 레이아웃 ── */

.content {
  display: flex;
  min-height: 400px;
  overflow: hidden;
}


/* ── 사이드바 — 레트로 프레임 ── */

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  border-right: 2px solid var(--border-color);
  padding: 20px 15px;
  text-align: center;
  background: #fafeff;
}

.profile-img {
  width: 120px;
  height: 120px;
  border: 3px double var(--border-color);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f8ff, #e0eef8);
  color: var(--text-light);
  font-size: 11px;
  transition: all 0.3s ease;
}

.profile-img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,155,191,0.15);
}

.profile-name {
  font-size: 18px;
  margin: 12px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--border-color);
}

.profile-bio {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  padding: 6px;
  background: #f0f8ff;
  border: 1px dashed var(--border-color);
  margin-top: 6px;
}

.sidebar-section {
  margin: 12px 4px 0;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 12px;
  color: var(--text-light);
}

.sidebar-section h3 {
  font-size: 12px;
  color: var(--text-color);
  background: var(--nav-bg);
  margin: -10px -10px 8px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-color);
}

/* ── 사이드바: 링크 ── */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}

.sidebar-links a:hover {
  border-bottom-color: var(--link-color);
}

/* ── 사이드바: 카테고리 ── */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0;
  transition: color 0.2s;
}

.sidebar-categories a:hover {
  color: var(--link-color);
}

.cat-count {
  color: var(--text-light);
  font-size: 11px;
}

/* ── 사이드바: 방문자 카운터 ── */
.sidebar-counter {
  text-align: center;
  padding: 12px 10px !important;
}

.counter-label {
  font-size: 10px;
  color: var(--text-light);
}

.counter-num {
  display: block;
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 4px 0;
}

/* ── 사이드바: 88x31 배너 ── */
.sidebar-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.banner-88x31 {
  width: 88px;
  height: 31px;
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  border: 1px solid rgba(0,0,0,0.2);
  image-rendering: pixelated;
}


/* ── 메인 영역 ── */

.main {
  flex: 1;
  min-width: 0;
  padding: 20px;
}

.main h2 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--border-color);
  letter-spacing: 0.5px;
  color: var(--accent);
}


/* ── 환영 메시지 — 공지 + 그라데이션 ── */

.welcome-box {
  padding: 16px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0f8ff 0%, #fafeff 100%);
  border: 2px solid var(--border-color);
  border-left: 5px solid var(--accent);
  line-height: 1.8;
  font-size: 14px;
  transition: box-shadow 0.3s ease;
}

.welcome-box:hover {
  box-shadow: 0 2px 10px rgba(90,155,191,0.1);
}


/* ── 글 목록 — 카드 + 호버 슬라이드 ── */

.post-list {
  list-style: none;
}

.post-list li {
  padding: 12px 14px;
  margin-bottom: 6px;
  border: 1px solid var(--border-color);
  background: #fafeff;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.post-list li:hover {
  background: #eef6fc;
  padding-left: 18px;
  border-color: var(--accent);
}

.post-list li:hover::before {
  width: 3px;
}

.post-list li:last-child {
  border-bottom: 1px solid var(--border-color);
}

.post-category {
  font-size: 11px;
  background: var(--nav-bg);
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  margin-right: 5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.post-category:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.post-list a {
  flex: 1;
  min-width: 0;
}

.post-date {
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: auto;
}


/* ── 카테고리 페이지 ── */

.page-header {
  font-size: 22px;
  margin-bottom: 5px;
}

.page-description {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}


/* ── 탭 ── */

.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 18px;
  gap: 0;
}

.tab-btn {
  padding: 7px 16px;
  font-family: inherit;
  font-size: 13px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-bottom: none;
  cursor: pointer;
  color: var(--text-color);
  margin-right: 3px;
  margin-bottom: -2px;
  transition: background 0.15s;
  user-select: none;
}

.tab-btn:hover {
  background: var(--nav-hover);
}

.tab-btn.active {
  background: #fff;
  border-bottom: 2px solid #fff;
  color: var(--accent);
  font-weight: bold;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  border: 1px dashed var(--border-color);
  background: #fafeff;
}


/* ── 카드 그리드 카테고리 ── */

/* ==========================================
   카테고리 폴더
   ========================================== */
.cat-folder {
  margin-bottom: 12px;
}

.cat-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--accent), #7ab8d8);
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s;
}

.cat-folder-header:hover {
  filter: brightness(1.08);
}

.cat-folder-header::before {
  content: '\25BC';
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cat-folder-header.collapsed::before {
  transform: rotate(-90deg);
}

.cat-folder-icon {
  font-size: 14px;
  line-height: 1;
}

.cat-folder-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  flex: 1;
}

.cat-folder-count {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.2);
  padding: 1px 7px;
}

.cat-folder-body {
  border: 1px solid var(--border-color);
  border-top: none;
  background: #fff;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 4px 0;
}

.cat-folder-body.collapsed {
  max-height: 0 !important;
}

/* ==========================================
   시리즈
   ========================================== */
.cat-series {
  padding: 8px 14px 6px 10px;
  border-left: 3px solid transparent;
  border-top: 1px solid #edf4fa;
  transition: border-left-color 0.15s;
}

.cat-series:first-child {
  border-top: none;
}

.cat-series:hover {
  border-left-color: var(--accent);
}

.cat-series-empty {
  display: none;
}

.cat-series-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 5px;
  background: none;
  border-bottom: none;
  cursor: pointer;
  user-select: none;
}

.cat-series-dot {
  display: none;
}

.cat-series-icon {
  display: none;
}

.cat-series-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 2px;
}

.cat-series-count {
  font-size: 10px;
  color: var(--text-light);
  font-weight: normal;
}

/* 글 목록 */
.cat-series-list {
  list-style: none;
  padding: 0 0 6px 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.cat-series-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
}

.cat-series-list li:hover {
  background: none;
}

.cat-series-list li:hover a {
  color: var(--accent);
}

.cat-series-list a {
  color: var(--link-color);
  font-size: 12px;
  line-height: 1.4;
}

/* 글 번호 */
.post-num {
  font-size: 10px;
  color: var(--text-light);
  flex-shrink: 0;
  min-width: 16px;
}


/* ========================================
   Mermaid 다이어그램 뷰어
   ======================================== */

.mermaid-frame {
  margin: 20px 0;
  border: 2px solid var(--border-color);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(90,155,191,0.12);
}

.mermaid-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: linear-gradient(90deg, #a8cce0, #c4e0f0);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.mermaid-titlebar-dots {
  display: flex;
  gap: 4px;
  margin-right: 2px;
}

.mermaid-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
}
.mermaid-dot:nth-child(1) { background: #ff6b6b; }
.mermaid-dot:nth-child(2) { background: #ffd93d; }
.mermaid-dot:nth-child(3) { background: #6bcb77; }

.mermaid-titlebar-name {
  flex: 1;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  letter-spacing: 0.3px;
}

.mermaid-controls {
  display: flex;
  gap: 2px;
}

.mermaid-btn {
  font-family: 'NeoDunggeunmo', monospace;
  width: 22px;
  height: 22px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
  padding: 0;
  line-height: 1;
}

.mermaid-btn:hover {
  background: rgba(255,255,255,0.38);
  border-color: rgba(255,255,255,0.7);
}

.mermaid-btn:active {
  background: rgba(255,255,255,0.55);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
}

.mermaid-viewport {
  overflow: hidden;
  cursor: grab;
  position: relative;
  background-color: #f8fcff;
  background-image:
    linear-gradient(rgba(90,155,191,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,155,191,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mermaid-viewport.panning {
  cursor: grabbing;
}

.mermaid-canvas {
  display: inline-block;
  padding: 20px;
}

.mermaid-zoom-label {
  position: absolute;
  bottom: 7px;
  right: 8px;
  font-size: 10px;
  color: var(--text-light);
  font-family: 'NeoDunggeunmo', monospace;
  pointer-events: none;
  background: rgba(255,255,255,0.88);
  padding: 1px 6px;
  border: 1px solid var(--border-color);
}

.mermaid-hint {
  position: absolute;
  bottom: 7px;
  left: 8px;
  font-size: 10px;
  color: var(--text-light);
  font-family: 'NeoDunggeunmo', monospace;
  pointer-events: none;
  opacity: 0.7;
}


/* ── 빈 상태 ── */

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}

.empty-state .emoji {
  font-size: 40px;
  margin-bottom: 15px;
}


/* ── 방명록 ──
   컨셉: 터미널 감성의 편지함 / 쪽지 핀보드 (담백 버전)
   - 편지지 가로선 배경 · 스카치테이프 · 터미널 라벨은 유지
   - 그라데이션 · shimmer · 복합 shadow 등 과장은 걷어내고 블로그 톤에 맞춤
*/

.gb-counter {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: var(--bg-color);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.gb-counter-icon {
  font-size: 15px;
}

.gb-counter strong {
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* 작성 폼 — 편지지 가로선 배경 유지 */
.gb-write {
  position: relative;
  margin: 8px 0 28px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background:
    linear-gradient(#fff, #fbfdff),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(168,204,224,0.08) 27px,
      rgba(168,204,224,0.08) 28px
    );
  background-blend-mode: multiply;
  box-shadow: 2px 2px 0 rgba(90,155,191,0.08);
  overflow: hidden;
}

.gb-write-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* 헤더 우측 터미널 라벨 유지 */
.gb-write-header::after {
  content: '$ write --to=nbh';
  margin-left: auto;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.gb-write-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.gb-write-dot:nth-child(1) { background: #ff6b6b; }
.gb-write-dot:nth-child(2) { background: #ffd93d; }
.gb-write-dot:nth-child(3) { background: #6bcb77; }

.gb-write-title {
  font-size: 11px;
  color: var(--text-color);
  margin-left: 8px;
  letter-spacing: 0.4px;
}

.gb-write-body {
  padding: 20px 22px 18px;
  position: relative;
}

.gb-write-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gb-field {
  margin-bottom: 14px;
  position: relative;
}

.gb-write-row .gb-field:first-child {
  flex: 1;
  min-width: 0;
}

.gb-field label {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.gb-field input,
.gb-field textarea {
  font-family: 'NeoDunggeunmo', 'Courier New', monospace;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.gb-field input::placeholder,
.gb-field textarea::placeholder {
  color: #b2c8d6;
}

.gb-field input:focus,
.gb-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(90,155,191,0.15);
}

.gb-field textarea {
  height: 100px;
  resize: vertical;
  line-height: 1.7;
}

.gb-char-count {
  text-align: right;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* 아이콘 피커 */
.gb-icon-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.gb-icon-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}

.gb-icon-btn:hover {
  background: var(--bg-color);
  border-color: var(--accent);
  transform: scale(1.04);
}

.gb-icon-btn.selected {
  background: #d4eaf7;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(90,155,191,0.18);
}

/* 제출 버튼 */
.gb-submit-btn {
  font-family: 'NeoDunggeunmo', 'Courier New', monospace;
  width: 100%;
  padding: 11px;
  margin-top: 4px;
  background: #d4eaf7;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: #2d556b;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.15s;
}

.gb-submit-btn:hover {
  background: #b6d4e6;
}

.gb-submit-btn:active {
  transform: translateY(1px);
}

.gb-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* 엔트리 목록 — 쪽지 핀보드 */
.gb-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 8px;
}

/* 개별 엔트리 — 포스트잇 쪽지 (틸트 완화) */
.gb-entry {
  display: flex;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(90,155,191,0.08);
  transition: transform 0.22s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.22s, border-color 0.22s;
  overflow: visible;
}

.gb-entry:nth-child(3n+1) { transform: rotate(-0.15deg); }
.gb-entry:nth-child(3n+2) { transform: rotate(0.1deg); }
.gb-entry:nth-child(3n+3) { transform: rotate(-0.07deg); }

/* 엔트리 테이프 */
.gb-entry::after {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 36px;
  height: 14px;
  background: rgba(168,204,224,0.4);
  border: 1px solid rgba(90,155,191,0.22);
  border-top: none;
  transform: rotate(3deg);
  pointer-events: none;
  border-radius: 1px;
}

.gb-entry:nth-child(even)::after {
  right: auto;
  left: 30px;
  transform: rotate(-3deg);
}

.gb-entry:hover {
  border-color: #8fbcd6;
  box-shadow: 3px 3px 0 rgba(90,155,191,0.14);
  transform: rotate(0deg) translateY(-1px);
  z-index: 2;
}

.gb-entry-side {
  width: 62px;
  min-width: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 0 10px;
  border-right: 1px solid var(--border-color);
}

.gb-entry-icon {
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6fc; /* JS에서 inline background로 덮어씀 */
  transition: transform 0.2s;
}

.gb-entry:hover .gb-entry-icon {
  transform: scale(1.02);
}

.gb-entry-body {
  flex: 1;
  min-width: 0;
  padding: 14px 18px 14px 16px;
  position: relative;
}

.gb-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-entry-name {
  font-family: 'IBM Plex Sans KR', 'Pretendard', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.1px;
  position: relative;
  padding-left: 14px;
}

/* 이름 앞 터미널 프롬프트 마커 */
.gb-entry-name::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: #7aaec7;
  font-weight: normal;
  opacity: 0.75;
}

.gb-entry-date {
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-color);
  white-space: nowrap;
}

.gb-entry-message {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #3a4a57;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  letter-spacing: -0.1px;
}

/* 빈 상태 */
.gb-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1.5px dashed var(--border-color);
  border-radius: 12px;
  background: var(--bg-color);
}

.gb-empty-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.gb-empty-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.3px;
}


/* ── 푸터 — 배너 교환 공간 ── */

.footer {
  text-align: center;
  padding: 15px;
  font-size: 11px;
  color: var(--text-light);
  border-top: 2px solid var(--border-color);
  position: relative;
}

.footer::before {
  content: '[ 88x31 banners ]';
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 1px;
}


/* ── 알림 배너 ── */

.notice-bar {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 8px 15px;
  margin-bottom: 15px;
  font-size: 12px;
  text-align: center;
}


/* ========================================
   글 본문 기본 스타일 (.post-content)
   테마 CSS에서 --post-* 변수를 덮어쓰면 커스터마이징 가능
   ======================================== */

/* 테마가 덮어쓸 수 있는 변수 (기본값) */
:root {
  /* 글 본문 */
  --post-font: 'NeoDunggeunmo', 'Courier New', monospace;
  --post-font-size: 14px;
  --post-line-height: 1.9;
  --post-paragraph-gap: 10px;
  --post-heading-color: var(--text-color);
  --post-strong-color: #2a6a8a;
  --post-em-color: var(--text-light);
  --post-mark-bg: #fff3b0;
  --post-link-color: var(--link-color);

  /* 코드 */
  --post-code-bg: #f0f4f8;
  --post-code-border: #dde8f0;
  --post-pre-bg: #1e1e1e;
  --post-pre-color: #d4d4d4;

  /* 인용 */
  --post-quote-bg: #f0f8ff;
  --post-quote-border: var(--accent);
  --post-quote-color: #555;

  /* 콜아웃 */
  --callout-info-bg: #e8f4fd;
  --callout-info-border: var(--accent);
  --callout-info-icon: '💡';
  --callout-tip-bg: #e8fde8;
  --callout-tip-border: #5abf5a;
  --callout-tip-icon: '✅';
  --callout-warning-bg: #fdf5e8;
  --callout-warning-border: #bf9b5a;
  --callout-warning-icon: '⚠️';
  --callout-question-bg: #f0e8fd;
  --callout-question-border: #8a5abf;
  --callout-question-icon: '❓';

  /* 테이블 */
  --post-table-header-bg: var(--nav-bg);
  --post-table-stripe-bg: #f8fcff;

  /* 태그 */
  --post-tag-bg: #f0f4f8;

  /* 테두리 스타일 */
  --post-border-radius: 0px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.post-meta .meta-category {
  background: var(--nav-bg);
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  margin-right: 8px;
  border-radius: var(--post-border-radius);
}

.post-content {
  font-family: var(--post-font);
  line-height: var(--post-line-height);
  font-size: var(--post-font-size);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 제목 */
.post-content h1 {
  font-size: 22px;
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
  color: var(--post-heading-color);
}

.post-content h2 {
  font-size: 18px;
  margin: 25px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
  color: var(--post-heading-color);
}

.post-content h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--post-heading-color);
}

.post-content h4 {
  font-size: 15px;
  margin: 15px 0 6px;
  color: var(--post-heading-color);
}

/* 문단 */
.post-content p {
  margin: var(--post-paragraph-gap) 0;
}

/* 굵은 글씨, 기울임, 하이라이트 */
.post-content strong { color: var(--post-strong-color); }
.post-content em { color: var(--post-em-color); }
.post-content mark {
  background: var(--post-mark-bg);
  padding: 1px 3px;
  border-radius: var(--post-border-radius);
}

/* 링크 */
.post-content a {
  color: var(--post-link-color);
  border-bottom: 1px dashed var(--post-link-color);
}
.post-content a:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

/* 인라인 코드 */
.post-content code {
  font-family: 'NeoDunggeunmo', 'Courier New', monospace;
  background: var(--post-code-bg);
  padding: 2px 6px;
  border: 1px solid var(--post-code-border);
  font-size: 13px;
  border-radius: var(--post-border-radius);
}

/* 코드 블록 */
.post-content pre {
  background: var(--post-pre-bg);
  color: var(--post-pre-color);
  padding: 15px;
  margin: 15px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid var(--border-color);
  line-height: 1.5;
  border-radius: var(--post-border-radius);
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 13px;
}

/* code-line 사이의 \n 텍스트 노드가 추가 줄바꿈을 만들지 않도록 */
.post-content pre code:has(.code-line) {
  white-space: normal;
}

.post-content pre code .code-line {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-left: 2em;
  text-indent: -2em;
  min-height: 1.5em;
}

/* 인용 (blockquote) */
.post-content blockquote {
  border-left: 4px solid var(--post-quote-border);
  padding: 10px 15px;
  margin: 15px 0;
  background: var(--post-quote-bg);
  color: var(--post-quote-color);
  border-radius: var(--post-border-radius);
}

.post-content blockquote p {
  margin: 5px 0;
}

/* 콜아웃 (옵시디언 > [!TYPE]) */
.callout {
  padding: 12px 15px;
  margin: 15px 0;
  border-left: 4px solid;
  border-radius: var(--post-border-radius);
}

.callout-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 13px;
}

/* 콜아웃 아이콘 — 테마에서 --callout-*-icon 변수 또는 icons/ 폴더로 교체 가능 */
.callout-title::before {
  margin-right: 6px;
}

.callout-info { background: var(--callout-info-bg); border-color: var(--callout-info-border); }
.callout-info .callout-title::before { content: var(--callout-info-icon); }

.callout-tip { background: var(--callout-tip-bg); border-color: var(--callout-tip-border); }
.callout-tip .callout-title::before { content: var(--callout-tip-icon); }

.callout-warning { background: var(--callout-warning-bg); border-color: var(--callout-warning-border); }
.callout-warning .callout-title::before { content: var(--callout-warning-icon); }

.callout-question { background: var(--callout-question-bg); border-color: var(--callout-question-border); }
.callout-question .callout-title::before { content: var(--callout-question-icon); }

/* 리스트 */
.post-content ul,
.post-content ol {
  margin: 10px 0;
  padding-left: 25px;
}

.post-content li {
  margin: 4px 0;
}

/* 체크리스트 */
.post-content .task-list {
  list-style: none;
  padding-left: 5px;
}

.post-content .task-list li::before {
  content: none;
}

/* 구분선 */
.post-content hr {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 25px 0;
}

/* 이미지 */
.post-content img {
  max-width: 100%;
  border: 1px solid var(--border-color);
  margin: 10px 0;
  border-radius: var(--post-border-radius);
}

.post-content .img-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: -5px;
  margin-bottom: 15px;
}

/* 테이블 */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 13px;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: left;
}

.post-content th {
  background: var(--post-table-header-bg);
  font-weight: bold;
}

.post-content tr:nth-child(even) {
  background: var(--post-table-stripe-bg);
}

/* 각주 */
.post-content .footnote {
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  padding-top: 10px;
}

/* 글 하단 네비게이션 */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 2px solid var(--border-color);
  font-size: 13px;
}

/* 태그 */
.post-tags {
  margin-top: 20px;
  font-size: 12px;
}

.post-tags span {
  background: var(--post-tag-bg);
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  margin-right: 5px;
  border-radius: var(--post-border-radius);
}


/* ========================================
   터미널형 사이드바 (.sidebar-neo)
   ======================================== */

.sidebar-neo {
  text-align: left !important;
  padding: 16px 14px !important;
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
}

.neo-identity {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.neo-identity .profile-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  font-size: 10px;
  border: 2px solid var(--border-color);
}

.neo-hostname {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 14px;
  color: var(--text-color);
}

.neo-hostname-at { color: #059669; }

.neo-bio {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
  font-family: 'NeoDunggeunmo', monospace;
}

.neo-fetch { margin: 0; padding: 0; }

.neo-cmd {
  color: #059669;
  margin-bottom: 2px;
}

.neo-cmd::before {
  content: '~$ ';
  color: var(--text-light);
  opacity: 0.5;
}

.neo-line {
  display: flex;
  gap: 6px;
  padding: 1px 0;
}

.neo-key {
  color: #5a9bbf;
  flex-shrink: 0;
  min-width: 50px;
}

.neo-val { color: var(--text-color); }

.neo-val a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}

.neo-val a:hover { border-bottom-color: var(--link-color); }

.neo-divider {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 10px 0;
  opacity: 0.6;
}

.neo-dir {
  display: flex;
  justify-content: space-between;
  padding: 2px 0 2px 10px;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.15s;
}

.neo-dir:hover { color: #059669; }
.neo-dir-tree { color: var(--border-color); margin-right: 4px; }
.neo-dir-name { color: #5a9bbf; }
.neo-dir:hover .neo-dir-name { color: #059669; }
.neo-dir-count { color: var(--text-light); font-size: 10px; }

.neo-visitor-num {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
}

.neo-bottom {
  margin-top: 14px;
  color: var(--text-light);
  opacity: 0.4;
  font-size: 10px;
}

.neo-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #059669;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink-cursor 1s step-end infinite;
  opacity: 0.6;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0; }
}


/* ========================================
   사이드바 접기/펼치기 (데스크톱 — nav ☰ 토글)
   ======================================== */

.sidebar-desktop-toggle {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  width: 24px;
  height: 22px;
  font-family: 'NeoDunggeunmo', 'Courier New', monospace;
  font-size: 12px;
  color: #3a7a9f;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sidebar-desktop-toggle:hover {
  background: rgba(255,255,255,0.4);
  color: #2a5070;
}

.sidebar {
  position: relative;
  transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease, border-width 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
}

.sidebar.desktop-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-right-width: 0 !important;
  opacity: 0;
}


/* ========================================
   프로필 이미지
   ======================================== */

.sidebar-neo .profile-img {
  object-fit: cover;
  border-radius: 0;
}


/* ========================================
   타이핑 바 (ticker 대체)
   ======================================== */

.typing-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  padding: 6px 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  min-height: 32px;
}
.typing-bar .tb-prompt { color: #33aa66; flex-shrink: 0; }
.typing-bar .tb-host   { color: #3a7a9f; flex-shrink: 0; }
.typing-bar .tb-dollar { color: #888; flex-shrink: 0; margin-right: 4px; }
.typing-bar .tb-cmd    { color: #2a5070; flex-shrink: 0; }
.typing-bar .tb-output { color: #22aa55; flex-shrink: 0; margin-left: 4px; font-weight: bold; }
.typing-bar .tb-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: #2a5070;
  vertical-align: text-bottom;
  flex-shrink: 0;
  margin-left: 1px;
}
.typing-bar .tb-cursor.blink { animation: tbBlink 1s step-end infinite; }
@keyframes tbBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ========================================
   스크롤 강아지
   ======================================== */

.scroll-dog {
  position: fixed;
  bottom: 140px;
  right: 40px;
  z-index: 10000;
  font-family: 'NeoDunggeunmo', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dog-character {
  font-size: 64px;
  text-align: center;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: dog-peek 3s ease-in-out infinite;
  cursor: grab;
}
.dog-character:hover { animation: dog-wiggle 0.4s ease-in-out; }
.dog-character:active { cursor: grabbing; }
.scroll-dog.dragging { transition: none !important; }
.scroll-dog.dragging .dog-character { animation: none !important; }

.dog-paws {
  font-size: 18px;
  letter-spacing: 12px;
  margin-top: -6px;
  opacity: 0.7;
}

.dog-shadow {
  width: 56px;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  margin-top: 3px;
  animation: dog-peek-shadow 3s ease-in-out infinite;
}

@keyframes dog-peek {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(0px); }
}
@keyframes dog-peek-shadow {
  0%, 100% { transform: scale(0.85); opacity: 0.4; }
  50% { transform: scale(1); opacity: 0.7; }
}
@keyframes dog-wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

.dog-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-color);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-dog:hover .dog-bubble,
.scroll-dog.show-bubble .dog-bubble {
  opacity: 1;
}
.dog-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-color);
}
.dog-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #fff;
  z-index: 1;
  margin-top: -1px;
}


/* ========================================
   모바일 반응형
   ======================================== */

/* 사이드바 토글 버튼 (데스크톱에서 숨김) */
.sidebar-toggle {
  display: none;
}

/* 사이드바 오버레이 (데스크톱에서 숨김) */
.sidebar-overlay {
  display: none;
}

/* body 스크롤 잠금 */
body.sidebar-open {
  overflow: hidden;
}

/* ── 768px 이하: 태블릿/모바일 ── */
@media (max-width: 768px) {

  body {
    padding: 8px;
  }

  .container {
    border-width: 1px;
    box-shadow: none;
  }

  /* 배너 축소 */
  .banner {
    padding: 40px 15px 30px;
  }

  .banner-title {
    font-size: 26px;
  }

  .banner-subtitle {
    font-size: 11px;
    padding: 2px 10px;
  }

  .banner::before {
    font-size: 10px;
  }

  /* 네비게이션: 가로 스크롤 */
  .nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 7px 12px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 토글 버튼 표시 */
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    font-family: 'NeoDunggeunmo', 'Courier New', monospace;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    padding: 7px 10px;
    margin-top: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .sidebar-toggle:hover,
  .sidebar-toggle:active {
    background: var(--nav-bg);
    border-top-color: var(--border-color);
    border-left-color: var(--border-color);
    border-right-color: var(--border-color);
  }

  /* 사이드바: 오프캔버스 (왼쪽에서 슬라이드) */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    min-width: unset;
    height: 100vh;
    height: 100dvh;
    z-index: 10001;
    overflow-y: auto;
    border-right: 2px solid var(--border-color);
    background: #fafeff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  /* 터미널 사이드바도 동일하게 처리 */
  .sidebar.sidebar-neo {
    background: #fafeff;
  }

  /* 오버레이 */
  .sidebar-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
  }

  /* 메인 영역: 풀 와이드 */
  .content {
    min-height: auto;
  }

  .main {
    padding: 15px;
  }

  .main h2 {
    font-size: 15px;
  }

  /* 환영 메시지 */
  .welcome-box {
    padding: 12px 14px;
    font-size: 13px;
    border-left-width: 4px;
  }

  /* 글 목록: 날짜 아래로 */
  .post-list li {
    padding: 10px 12px;
    gap: 4px;
  }

  .post-date {
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
  }

  /* 글 본문 */
  .page-header {
    font-size: 18px;
  }

  .post-content pre {
    padding: 12px;
    font-size: 12px;
    margin: 12px -15px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .post-nav {
    flex-direction: column;
    gap: 8px;
  }

  /* 푸터 */
  .footer {
    padding: 12px 10px;
    font-size: 10px;
  }

  /* 방명록 */
  .guestbook-form {
    padding: 12px;
  }

  /* 카드 그리드 카테고리 */
  .cat-folder-header {
    padding: 7px 10px;
  }

  .cat-folder-name {
    font-size: 13px;
  }

  .cat-folder-body {
    grid-template-columns: 1fr;
  }

  .cat-series {
    border-right: none;
  }

  .cat-series:last-child {
    border-bottom: none;
  }

  /* 스크롤 강아지: 모바일 축소 */
  .scroll-dog {
    bottom: 80px;
    right: 16px;
  }

  .dog-character {
    font-size: 44px;
  }

  .dog-paws {
    font-size: 13px;
    letter-spacing: 8px;
    margin-top: -4px;
  }

  .dog-shadow {
    width: 38px;
    height: 5px;
  }

  .dog-bubble {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ── 480px 이하: 작은 모바일 ── */
@media (max-width: 480px) {

  body {
    padding: 0;
  }

  .container {
    border: none;
    box-shadow: none;
  }

  .banner {
    padding: 35px 12px 25px;
  }

  .banner-title {
    font-size: 22px;
  }

  .main {
    padding: 12px;
  }

  .post-content pre {
    margin: 12px -12px;
    padding: 10px;
  }
}
