/* Life in Beta Jekyll 판에서만 쓰는 보충 스타일. 티스토리 스킨 style.css 다음에 읽는다. */

/* 사진 설명 (lb-figure.rb 가 만든 figure.imageblock) */
.post-body figure.imageblock {
  margin: 28px 0;
  text-align: center;
}
.post-body figure.imageblock img {
  max-width: 100%;
  height: auto;
}

/* 본문 위아래 광고 자리 */
.post-body .ad-slot {
  margin: 24px 0;
  min-height: 1px;
}

/* 글쓰기 버튼은 관리 화면에 로그인한 브라우저에서만 */
.write-btn[hidden] {
  display: none !important;
}

/* 댓글, 공감, 방명록 (giscus) */
.lb-comments-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.lb-comments .giscus,
.lb-comments .giscus-frame {
  width: 100%;
}
.guestbook .lb-comments {
  margin-top: 24px;
}

/* 사이드바 방문자 수 */
.lb-visitors[hidden] {
  display: none;
}
.lb-visitors-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.lb-visitors-row b {
  font-weight: 600;
  color: var(--text-primary);
}

/* 검색창 폼 (티스토리 검색 치환자 대신) */
.lb-search-form {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.lb-search-form .search-input {
  flex: 1;
}

/* 공지 글 */
.post-card.is-pinned .post-title a {
  color: var(--accent);
}

/* 소개, 개인정보처리방침 같은 고정 페이지 */
.lb-static .post-header {
  padding-bottom: 8px;
}

/* 스크롤바: 얇고 둥글게, 테마 색을 따른다 (코드 블록, 목차, 표 포함) */
:root {
  --lb-scroll-thumb: rgba(15, 23, 42, 0.22);
  --lb-scroll-thumb-hover: rgba(15, 23, 42, 0.40);
}
[data-theme="dark"] {
  --lb-scroll-thumb: rgba(226, 232, 240, 0.20);
  --lb-scroll-thumb-hover: rgba(226, 232, 240, 0.38);
}
@supports selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background-color: var(--lb-scroll-thumb);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--lb-scroll-thumb-hover); }
  ::-webkit-scrollbar-corner { background: transparent; }
  /* 코드 블록은 어두운 배경이라 밝은 손잡이 */
  pre::-webkit-scrollbar-thumb, .code-block::-webkit-scrollbar-thumb { background-color: rgba(226, 232, 240, 0.22); }
  pre::-webkit-scrollbar-thumb:hover, .code-block::-webkit-scrollbar-thumb:hover { background-color: rgba(226, 232, 240, 0.42); }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--lb-scroll-thumb) transparent; }
}

/* 사이드바는 티스토리처럼 스크롤바를 보이지 않고 스크롤만 된다 */
.sidebar { scrollbar-width: none !important; -ms-overflow-style: none; }
.sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* 내 다른 블로그: 플랫폼 배지 */
.sidebar-blog-badge.is-github { background: #24292f; border-color: #24292f; color: #fff; }
.sidebar-blog-badge.is-tistory { background: #eb531f; border-color: #eb531f; color: #fff; }
.sidebar-blog-badge.is-naver { background: #03c75a; border-color: #03c75a; color: #fff; }
[data-theme="dark"] .sidebar-blog-badge.is-github { background: #f0f6fc; border-color: #f0f6fc; color: #24292f; }
.lb-platform {
  display: inline-block;
  margin-right: 4px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
  color: #fff;
}
.lb-platform.is-github { background: #24292f; }
.lb-platform.is-tistory { background: #eb531f; }
.lb-platform.is-naver { background: #03c75a; }
[data-theme="dark"] .lb-platform.is-github { background: #f0f6fc; color: #24292f; }

/* 내 다른 블로그: 플랫폼마다 구분선 */
.lb-blog-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-tertiary, var(--muted, #8b95a1));
}
.lb-blog-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color, var(--line, #e5e8eb));
}
.lb-blog-group::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lb-blog-group.is-github::before { background: #24292f; }
.lb-blog-group.is-tistory::before { background: #eb531f; }
.lb-blog-group.is-naver::before { background: #03c75a; }
[data-theme="dark"] .lb-blog-group.is-github::before { background: #f0f6fc; }
.sidebar-section-title + .lb-blog-group, .drawer-label + .lb-blog-group { margin-top: 4px; }

/* 다른 블로그 표시 다시 맞춤 (2026-12-04): 구분 이름은 사이드바 제목과 같은 글씨, 이름 뒤 가는 선 */
.lb-blog-group { display: flex !important; align-items: center; gap: 10px; margin: 14px 0 6px !important; padding: 0 12px; font: inherit; letter-spacing: normal; }
.lb-blog-group::before { content: none !important; display: none !important; }
.lb-blog-group::after { content: ""; flex: 1; height: 1px; background: var(--border-color, var(--line, #e5e8eb)); }
.sidebar-blog-badge.is-github, .sidebar-blog-badge.is-tistory, .sidebar-blog-badge.is-naver { color: #ffffff !important; font-weight: 800; border: 0; }
.sidebar-blog-badge.is-github { background: #24292f !important; }
.sidebar-blog-badge.is-tistory { background: #e4501d !important; }
.sidebar-blog-badge.is-naver { background: #03a94d !important; }
[data-theme="dark"] .sidebar-blog-badge.is-github { background: #f0f6fc !important; color: #24292f !important; }
.sidebar-blog-desc { color: var(--text-tertiary); }
:root { --lb-c-muted: var(--text-tertiary); --lb-c-text: var(--text-secondary); --lb-c-accent: var(--accent); --lb-c-hover: var(--bg-secondary); }

/* 댓글 수, 공감 수, 최근 댓글 (2026-12-04) */
.lb-counts { display: inline-flex; align-items: center; gap: 10px; margin-left: 10px; color: var(--lb-c-muted); font-size: 12.5px; font-weight: 500; line-height: 1; text-decoration: none; vertical-align: middle; }
.lb-counts .lb-count { display: inline-flex; align-items: center; gap: 4px; }
.lb-counts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-counts.is-zero { opacity: .7; }
a.lb-counts:hover { color: var(--lb-c-accent); }
.lb-recent[hidden] { display: none !important; }
.lb-recent-list { display: flex; flex-direction: column; gap: 2px; }
.lb-recent-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .15s; }
.lb-recent-item:hover { background: var(--lb-c-hover); }
.lb-recent-item img, .lb-recent-dot { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--lb-c-hover); }
.lb-recent-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-recent-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--lb-c-text); font-size: 13px; line-height: 1.5; word-break: break-all; }
.lb-recent-item:hover .lb-recent-body { color: var(--lb-c-accent); }
.lb-recent-meta { color: var(--lb-c-muted); font-size: 11.5px; }
.lb-comments-edit { margin: 14px 2px 0; color: var(--lb-c-muted); font-size: 12.5px; line-height: 1.6; }
.lb-comments-edit a { color: var(--lb-c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-footer .lb-counts { margin-left: 0; }
.lb-recent { padding-bottom: 4px; }

/* 카테고리의 다른 글 (2026-12-04): 제목은 왼쪽, 날짜는 오른쪽 한 줄 */
.another_category { margin: 28px 0 0; padding: 18px 22px 8px; border: 1px solid var(--border-light); border-radius: 14px; background: none; }
.another_category h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 6px; color: var(--text-tertiary); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.another_category h4 a { color: var(--accent); font-size: 15px; font-weight: 700; }
.another_category table, .another_category tbody { display: block; width: 100%; border: 0; border-spacing: 0; }
.another_category tr { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--border-light); }
.another_category tr:first-child { border-top: 0; }
.another_category th, .another_category td { padding: 13px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; font-weight: 400; text-align: left; }
.another_category th { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.another_category th a { color: var(--text-primary); font-size: 14.5px; font-weight: 500; }
.another_category th a:hover { color: var(--accent); }
.another_category td, .another_category td:last-child { flex-shrink: 0; color: var(--text-tertiary); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.another_category tr:hover td { background: none !important; }
@media (max-width: 640px) {
  .another_category { padding: 14px 16px 4px; }
  .another_category th a { font-size: 14px; }
}

/* 블로그 소개 칸의 다른 블로그 링크: 플랫폼 표시 */
.author-card-links a { display: inline-flex; align-items: center; gap: 6px; }
.author-card-links a .lb-platform { margin: 0; }

/* 사진 묶음과 확대, 옮긴 글 줄 간격, 보호글 자물쇠 (2026-12-04) */
.post-body figure.imagegridblock { margin: 1.4em 0; }
.post-body .lb-grid-row { display: flex; gap: 8px; align-items: stretch; }
.post-body .lb-grid-row > * { min-width: 0; display: block; }
.post-body .lb-grid-row img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 8px; }
.post-body figure.imagegridblock figcaption, .post-body figure.imageslideblock figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; opacity: .75; }
.post-body figure.lb-slide { margin: 1.4em 0; }
/* 슬라이드: 칸 크기는 lb.js 가 가장 세로로 긴 사진 비율로 고정하고, 사진 줄(.lb-slide-track)을 옆으로 민다. 티스토리 원본의 쪽 번호와 단추는 숨긴다 */
.post-body .lb-slide .image-container { position: relative; display: block; width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px; overflow: hidden; background: transparent; touch-action: pan-y; outline: none; }
.post-body .lb-slide .image-container:focus-visible { box-shadow: 0 0 0 3px rgba(49, 130, 246, .45); }
.post-body .lb-slide .image-container > :not(.lb-slide-track):not(.lb-slide-nav) { display: none !important; }
.post-body .lb-slide .lb-slide-track { display: flex; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.post-body .lb-slide .lb-slide-item { flex: 0 0 100%; display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; }
.post-body .lb-slide .image-container img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: none; margin: 0 !important; object-fit: contain; border-radius: 12px; box-shadow: none !important; transform: none !important; user-select: none; -webkit-user-drag: none; }
.post-body .lb-slide .mark, .post-body .lb-slide .btn-prev, .post-body .lb-slide .btn-next { display: none !important; }
.lb-slide-btn { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(20, 22, 26, .42); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.lb-slide-btn:hover { background: rgba(20, 22, 26, .68); transform: scale(1.06); }
.lb-slide-btn svg { display: block; }
.lb-slide-btn.prev { left: 12px; }
.lb-slide-btn.next { right: 12px; }
.lb-slide-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(20, 22, 26, .55); color: #fff; font-size: 12px; line-height: 18px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.lb-slide-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.lb-slide-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: currentColor; opacity: .25; cursor: pointer; transition: width .3s ease, opacity .3s ease; }
.lb-slide-dots button.on { opacity: .8; width: 18px; border-radius: 4px; }
/* 사진에 올리면 살짝 떠오르고, 누르면 크게 본다 */
.post-body.lb-zoomable img, #postBody figure img { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.post-body.lb-zoomable figure img:hover, #postBody figure img:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
.post-body a img { cursor: pointer; }
.lb-zoom { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 48px 64px; background: rgba(10, 12, 16, .92); }
.lb-zoom.on { display: flex; animation: lbZoomIn .18s ease; }
@keyframes lbZoomIn { from { opacity: 0; } to { opacity: 1; } }
.lb-zoom-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-zoom-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .25s ease, transform .25s ease; }
.lb-zoom-fig img.is-swap { opacity: 0; transform: scale(.985); }
.lb-zoom-fig figcaption { max-width: 720px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); font-size: 14px; text-align: center; }
.lb-zoom-fig figcaption:empty { display: none; }
.lb-zoom-btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .15s, transform .15s; }
.lb-zoom-btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lb-zoom-btn svg { display: block; }
.lb-zoom-btn.close { top: 18px; right: 18px; }
.lb-zoom-btn.prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-zoom-btn.next { right: 20px; top: 50%; margin-top: -24px; }
.lb-zoom.single .prev, .lb-zoom.single .next { display: none; }
.lb-zoom-count { position: absolute; top: 30px; left: 24px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.lb-zoom-count:empty { display: none; }
html.lb-zoom-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb-zoom { padding: 56px 10px; }
  .lb-zoom-btn.prev, .lb-zoom-btn.next { top: auto; bottom: 16px; margin-top: 0; }
  .lb-zoom-btn.prev { left: calc(50% - 60px); } .lb-zoom-btn.next { right: calc(50% - 60px); }
  .lb-zoom-btn.close { top: 12px; right: 12px; }
  .lb-zoom-count { top: 22px; left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lb-zoom.on { animation: none; } #postBody figure img, .post-body.lb-zoomable img { transition: none; } }
.lb-lock { display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; vertical-align: -1px; color: var(--lb-c-accent, currentColor); }
.lb-write-link { display: none !important; }
html.lb-owner-on .lb-write-link { display: list-item !important; }

/* 새 글 표시 (2026-12-04): 카테고리는 작은 N, 글 제목은 NEW */
.lb-new { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 15px; height: 15px; margin-left: 6px; border-radius: 5px; background: linear-gradient(135deg, #ff8a4c 0%, #ff4d6d 100%); color: #fff !important; -webkit-text-fill-color: #fff; font: 800 9px/1 Pretendard, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0; vertical-align: 1px; box-shadow: 0 2px 6px rgba(255, 77, 109, .32); }
.lb-new--title { width: auto; height: 18px; padding: 0 7px; margin-left: 8px; border-radius: 999px; background: rgba(255, 77, 109, .12); color: #f0435f !important; -webkit-text-fill-color: #f0435f; font-size: 10px; letter-spacing: .08em; box-shadow: none; vertical-align: 3px; }
[data-theme="dark"] .lb-new--title { background: rgba(255, 110, 135, .18); color: #ff8098 !important; -webkit-text-fill-color: #ff8098; }
@media (prefers-reduced-motion: no-preference) {
  .lb-new { animation: lbNewIn .35s ease-out both; }
  @keyframes lbNewIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
/* 블로그 입구 단추 */
.lb-hub-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }

/* 글쓰기 화면에서 정한 사진 정렬과 크기 (lb-figure.rb 가 figure 에 alignLeft/alignRight 와 width:% 를 붙인다) */
.post-body figure.imageblock[style*="width"] { display: block; max-width: 100%; }
.post-body figure.imageblock[style*="width"] img { width: 100%; height: auto; }
.post-body figure.imageblock.alignCenter[style*="width"] { margin-left: auto; margin-right: auto; }
.post-body figure.imageblock.alignLeft { margin-left: 0; margin-right: auto; text-align: left; }
.post-body figure.imageblock.alignRight { margin-left: auto; margin-right: 0; text-align: right; }
.post-body figure.imageblock.alignLeft figcaption { text-align: left; }
.post-body figure.imageblock.alignRight figcaption { text-align: right; }

/* 검색어 하이라이트 (2026-12-05) */
mark.lb-hit { padding: 0 1px; border-radius: 3px; background: linear-gradient(transparent 52%, rgba(255, 199, 0, .55) 52%); color: inherit; -webkit-text-fill-color: currentColor; }
[data-theme="dark"] mark.lb-hit { background: linear-gradient(transparent 48%, rgba(255, 199, 0, .38) 48%); }
.post-body mark.lb-hit { background: rgba(255, 214, 0, .42); box-shadow: 0 0 0 2px rgba(255, 214, 0, .42); scroll-margin: 120px; }
.post-body mark.lb-hit.is-current { background: #ffc400; box-shadow: 0 0 0 3px #ffc400; color: #191f28; -webkit-text-fill-color: #191f28; }
[data-theme="dark"] .post-body mark.lb-hit { background: rgba(255, 214, 0, .3); box-shadow: 0 0 0 2px rgba(255, 214, 0, .3); }
.lb-hit-snippet { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; opacity: .88; word-break: break-all; }
.lb-hit-where { flex: none; padding: 0 7px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; line-height: 18px; opacity: .6; }
.lb-hl-bar { position: fixed; left: 50%; bottom: 22px; z-index: 95; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 32px); padding: 7px 8px 7px 16px; border-radius: 999px; background: rgba(25, 31, 40, .92); color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); backdrop-filter: blur(6px); }
.lb-hl-q { max-width: 40vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.lb-hl-n { margin: 0 4px; opacity: .75; font-variant-numeric: tabular-nums; }
.lb-hl-bar button { border: 0; border-radius: 999px; padding: 5px 11px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.lb-hl-bar button:hover { background: rgba(255, 255, 255, .26); }

/* NEW, N 표시 세로 가운데 맞춤 (2026-12-05): 글자 높이 가운데에 오도록 middle 에 맞추고 한글 글꼴 높이만큼 살짝 올린다 */
.lb-new { vertical-align: middle; position: relative; top: -.08em; }
.lb-new--title { vertical-align: middle; top: -.1em; }
.category-name .lb-new, .link_item .lb-new, .link_sub_item .lb-new, .link_tit .lb-new { top: -.05em; }

/* 글 속 지도 칸 (_plugins/lb-place.rb, 글쓰기 화면 "지도" 단추. 두잇 & 스테이와 같은 모양, 2026-12-05) */
.post-body .nv-place { margin: 1.6em 0; border: 1px solid rgba(127, 127, 127, .25); border-radius: 12px; overflow: hidden; }
.post-body .nv-place-map { position: relative; padding-top: 45%; background: rgba(127, 127, 127, .08); }
.post-body .nv-place-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body .nv-place-card { display: flex; align-items: center; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid rgba(127, 127, 127, .2); }
.post-body a.nv-place-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; border: 0; }
.post-body .nv-place-name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.post-body .nv-place-addr, .post-body .nv-place-tel { opacity: .6; font-size: 12.5px; line-height: 1.5; }
.post-body a.nv-place-info:hover .nv-place-name { text-decoration: underline; }

/* 바닥 링크 줄이 휴대폰 폭에서 줄바꿈되지 않아 페이지가 옆으로 넘쳤다 (2026-12-05 "댓글 영역이 좀 가려지는 버그") */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; max-width: 100%; }
.footer-links a { margin: 0 !important; }
