/* ============================================================
   GitBook-style Tistory Skin — style.css
   1. Reset / Base
   2. CSS Variables
   3. Layout
   4. Sidebar
   5. Mobile Header
   6. Main / Cover
   7. List Page
   8. Document Detail
   9. Document Typography
   10. TOC
   11. Tags / Comments
   12. Protected Page
   13. Footer
   14. Paging
   15. Responsive
   16. Tistory 방어
   ============================================================ */

/* ============================================================
   1. Reset / Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans KR", "DM Sans", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--gb-text);
  background: var(--gb-bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

.gb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--gb-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--gb-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

img { max-width: 100%; display: block; }

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

/* ============================================================
   2. CSS Variables
   ============================================================ */
:root {
  --gb-bg:              #ffffff;
  --gb-bg-muted:        #f9fafb;
  --gb-bg-hover:        #f3f4f6;
  --gb-bg-active:       #eff6ff;
  --gb-border:          #e5e7eb;
  --gb-border-light:    #f0f1f3;
  --gb-text:            #111827;
  --gb-text-muted:      #6b7280;
  --gb-text-subtle:     #9ca3af;
  --gb-primary:         #2563eb;
  --gb-primary-hover:   #1d4ed8;
  --gb-primary-soft:    #eff6ff;
  --gb-primary-border:  #bfdbfe;

  --gb-sidebar-width:   280px;
  --gb-toc-width:       220px;
  --gb-widget-width:    330px;
  --gb-content-width:   820px;
  --gb-header-height:   56px;

  --gb-radius-sm:       4px;
  --gb-radius:          8px;
  --gb-radius-lg:       12px;
  --gb-radius-pill:     999px;

  --gb-shadow-sm:       0 1px 3px rgba(0,0,0,.08);
  --gb-shadow:          0 4px 16px rgba(0,0,0,.10);
  --gb-shadow-lg:       0 8px 32px rgba(0,0,0,.14);

  --gb-transition:      150ms ease;

  --gb-code-bg:         #1e2433;
  --gb-code-text:       #e2e8f0;
  --gb-code-border:     #2d3748;
  --gb-inline-code-bg:  #f0f4ff;
  --gb-inline-code-text:#2563eb;
}

.theme_black {
  --gb-primary:       #18181b;
  --gb-primary-hover: #09090b;
  --gb-primary-soft:  #f4f4f5;
  --gb-bg-active:     #f4f4f5;
  --gb-primary-border:#d4d4d8;
}
.theme_red {
  --gb-primary:       #dc2626;
  --gb-primary-hover: #b91c1c;
  --gb-primary-soft:  #fef2f2;
  --gb-bg-active:     #fef2f2;
  --gb-primary-border:#fecaca;
}
.theme_vintage {
  --gb-primary:       #78350f;
  --gb-primary-hover: #92400e;
  --gb-primary-soft:  #fffbeb;
  --gb-bg-active:     #fffbeb;
  --gb-primary-border:#fde68a;
  --gb-bg:            #fefce8;
  --gb-bg-muted:      #fef9c3;
}

/* ============================================================
   3. Layout
   ============================================================ */

/* 기본(홈/목록): sidebar | main | widget */
.gb-layout {
  display: grid;
  grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr) var(--gb-widget-width);
  min-height: 100vh;
  background: var(--gb-bg);
}

.gb-sidebar       { grid-column: 1; grid-row: 1 / 3; }
.gb-main          { grid-column: 2; grid-row: 1; }
.gb-toc           { grid-column: 3; grid-row: 1; }
.gb-right-sidebar { grid-column: 3; grid-row: 1; }

/* 기본 상태에서 TOC는 숨김, 위젯은 표시 */
.gb-toc           { display: none; }
.gb-right-sidebar { display: block; }

/* 글 상세 페이지: sidebar | main | toc */
.gb-layout.is-article {
  grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr) var(--gb-toc-width);
}
.gb-layout.is-article .gb-toc           { display: block; }
.gb-layout.is-article .gb-right-sidebar { display: none; }

/* 모바일 헤더: 데스크탑에서 숨김 */
.gb-mobile-header { display: none !important; }

/* ============================================================
   4. Sidebar
   ============================================================ */
.gb-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gb-bg-muted);
  border-right: 1px solid var(--gb-border);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--gb-border) transparent;
}
.gb-sidebar::-webkit-scrollbar { width: 4px; }
.gb-sidebar::-webkit-scrollbar-thumb { background: var(--gb-border); border-radius: 4px; }

.gb-sidebar-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--gb-border-light);
  flex-shrink: 0;
}

.gb-sidebar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.gb-sidebar-logo:hover { text-decoration: none; }

.gb-logo-img { height: 32px; width: auto; object-fit: contain; }

.gb-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--gb-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-nav {
  flex: 1;
  padding: 8px 0 16px;
  overflow-y: auto;
}

/* raw 카테고리 컨테이너: JS 빌드 전 숨김, 빌드 후에도 숨김 */
.gb-nav-raw { display: none !important; }

/* JS가 생성하는 카테고리 아코디언 */
.gb-nav-rendered { padding: 0; }

.gb-nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gb-text-subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 16px;
}
.gb-nav-section-title:first-child { margin-top: 4px; }

.gb-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--gb-border);
  color: var(--gb-text-muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--gb-radius-pill);
}

.gb-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  margin: 1px 8px;
  font-size: 13.5px;
  color: var(--gb-text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--gb-transition), color var(--gb-transition);
  line-height: 1.4;
  gap: 6px;
  min-height: 34px;
}
.gb-nav-link:hover {
  background: var(--gb-bg-hover);
  color: var(--gb-text);
  text-decoration: none;
}
.gb-nav-link.active {
  background: var(--gb-bg-active);
  color: var(--gb-primary);
  font-weight: 600;
}
.gb-nav-link.active .gb-nav-count {
  background: var(--gb-primary-border);
  color: var(--gb-primary);
}

.gb-nav-link.gb-nav-depth-2 {
  padding-left: 28px;
  font-size: 13px;
  color: var(--gb-text-subtle);
}
.gb-nav-link.gb-nav-depth-2:hover { color: var(--gb-text-muted); }
.gb-nav-link.gb-nav-depth-2.active { color: var(--gb-primary); }

.gb-nav-home { font-weight: 600; }

/* 아코디언 */
.gb-nav-category-accordion { padding: 8px 0 24px; }

.gb-accordion-item { margin: 1px 8px; }

.gb-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gb-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  min-height: 34px;
  cursor: pointer;
  text-align: left;
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-accordion-trigger:hover,
.gb-accordion-trigger.active,
.gb-accordion-item.is-open > .gb-accordion-trigger {
  background: var(--gb-bg-hover);
  color: var(--gb-text);
}

.gb-accordion-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gb-accordion-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 13px;
  color: var(--gb-text-subtle);
  transition: transform var(--gb-transition);
}
.gb-accordion-item.is-open .gb-accordion-caret { transform: rotate(180deg); }

.gb-accordion-panel { padding: 2px 0 6px; }
.gb-accordion-panel[hidden] { display: none !important; }
.gb-accordion-panel .gb-nav-link { padding-left: 28px; }

.gb-category-all .gb-nav-name { color: var(--gb-text-subtle); font-size: 12.5px; }

.gb-nav-empty {
  margin: 8px 20px;
  color: var(--gb-text-subtle);
  font-size: 12.5px;
  line-height: 1.5;
}

/* 사이드바 하단: 링크 + SNS 세로 배치 */
.gb-sidebar-bottom {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gb-border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gb-sidebar-bottom-link {
  display: block;
  padding: 5px 0;
  font-size: 12px;
  color: var(--gb-text-subtle);
  text-decoration: none;
  transition: color var(--gb-transition);
}
.gb-sidebar-bottom-link:hover {
  color: var(--gb-text-muted);
  text-decoration: none;
}

.gb-sidebar-sns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.gb-sns-link {
  display: flex;
  align-items: center;
  opacity: .5;
  transition: opacity var(--gb-transition);
}
.gb-sns-link:hover { opacity: 1; }
.gb-sns-link img { width: 16px; height: 16px; margin: 0; border-radius: 0; }

/* 모바일 사이드바 오버레이 */
.gb-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 299;
  opacity: 0;
  transition: opacity 200ms ease;
}
.gb-sidebar-overlay.is-visible { display: block; opacity: 1; }

/* ============================================================
   5. Mobile Header
   ============================================================ */
.gb-mobile-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gb-header-height);
  padding: 0 16px;
  background: var(--gb-bg);
  border-bottom: 1px solid var(--gb-border);
}

.gb-sidebar-toggle,
.gb-mobile-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--gb-radius);
  color: var(--gb-text-muted);
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-sidebar-toggle:hover,
.gb-mobile-search-toggle:hover {
  background: var(--gb-bg-hover);
  color: var(--gb-text);
}

.gb-mobile-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.gb-mobile-logo .gb-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--gb-text);
}

/* ============================================================
   6. Main / Cover
   ============================================================ */
.gb-main {
  min-width: 0;
  max-width: var(--gb-content-width);
  margin: 0 auto;
  padding: 24px 48px 24px;
}

.gb-content-wrap {
  width: 100%;
  max-width: 830px;
}

.gb-hero-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--gb-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.gb-hero-desc {
  font-size: 18px;
  color: var(--gb-text-muted);
  line-height: 1.6;
  max-width: 560px;
}

.gb-cover-section {
  margin: 0 auto;
  width: 100%;
}

.gb-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gb-text-subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gb-border-light);
}

/* Featured grid */
.gb-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gb-featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--gb-text);
  transition: box-shadow var(--gb-transition), transform var(--gb-transition);
}
.gb-featured-card:hover {
  box-shadow: var(--gb-shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.gb-featured-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
}
.gb-featured-body { padding: 16px 20px 20px; }
.gb-featured-title { font-size: 15px; font-weight: 600; color: var(--gb-text); margin-bottom: 6px; line-height: 1.4; }
.gb-featured-summary {
  font-size: 13px;
  color: var(--gb-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Cover card grid - larger document cards
   커버 페이지 갤러리형 문서 카드
   ============================================================ */
.gb-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gb-doc-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border: 1px solid var(--gb-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--gb-text);
  background: var(--gb-bg);
  transition:
    box-shadow var(--gb-transition),
    transform var(--gb-transition),
    border-color var(--gb-transition);
}

.gb-doc-card:hover {
  box-shadow: var(--gb-shadow);
  transform: translateY(-2px);
  border-color: var(--gb-primary-border);
  text-decoration: none;
}

.gb-card-thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border-bottom: 1px solid var(--gb-border-light);
}

.gb-card-body {
  flex: 1;
  padding: 18px 20px 20px;
}

.gb-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gb-text);
  line-height: 1.45;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category cards */
.gb-category-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.gb-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 120px;
  text-decoration: none;
  color: var(--gb-text-muted);
  transition: color var(--gb-transition);
}
.gb-category-card:hover { color: var(--gb-primary); text-decoration: none; }
.gb-category-thumb {
  width: 100%;
  height: 80px;
  border-radius: var(--gb-radius);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border);
}
.gb-category-card-title { font-size: 12px; font-weight: 600; text-align: center; }

/* Horizontal cards */
.gb-horizontal-cards { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gb-horizontal-card {
  flex-shrink: 0;
  width: 200px;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--gb-text);
  transition: box-shadow var(--gb-transition);
}
.gb-horizontal-card:hover { box-shadow: var(--gb-shadow-sm); text-decoration: none; }
.gb-horizontal-thumb { height: 100px; background-size: cover; background-position: center; background-color: var(--gb-bg-hover); }
.gb-horizontal-title { display: block; padding: 8px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; }

/* Changelog */
.gb-changelog { display: flex; flex-direction: column; }
.gb-changelog-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gb-border-light);
  text-decoration: none;
  color: var(--gb-text);
  transition: background var(--gb-transition);
  border-radius: var(--gb-radius-sm);
}
.gb-changelog-item:hover {
  background: var(--gb-bg-hover);
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
  text-decoration: none;
}
.gb-changelog-item:last-child { border-bottom: none; }
.gb-changelog-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--gb-radius);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border);
}
.gb-changelog-body { flex: 1; min-width: 0; }
.gb-changelog-title { font-size: 14px; font-weight: 600; color: var(--gb-text); margin-bottom: 2px; }
.gb-changelog-summary {
  font-size: 13px;
  color: var(--gb-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gb-changelog-date { font-size: 11px; color: var(--gb-text-subtle); display: block; margin-top: 4px; }

/* Index 카드 */
.gb-index-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gb-border-light);
  text-decoration: none;
  color: var(--gb-text);
  transition: background var(--gb-transition);
  align-items: center;
}
.gb-index-card:hover {
  text-decoration: none;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
  background: var(--gb-bg-hover);
}
.gb-index-card:last-child { border-bottom: none; }
.gb-index-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: var(--gb-radius);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border-light);
}
.gb-index-body { flex: 1; min-width: 0; }
.gb-index-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gb-index-title { font-size: 15px; font-weight: 600; color: var(--gb-text); margin-bottom: 4px; line-height: 1.4; }
.gb-index-summary {
  font-size: 13px;
  color: var(--gb-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.gb-index-card--protected .gb-index-title,
.gb-index-card--notice .gb-index-title { color: var(--gb-text-muted); }

/* ============================================================
   7. List Page
   ============================================================ */
.gb-list-page { padding: 0; }
.gb-list-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gb-border);
}
.gb-list-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gb-text);
  letter-spacing: -0.02em;
}

.gb-doc-list { display: flex; flex-direction: column; }

.gb-doc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--gb-border-light);
  text-decoration: none;
  color: var(--gb-text);
  border-radius: var(--gb-radius-sm);
  transition: background var(--gb-transition);
  margin: 0 -12px;
}
.gb-doc-list-item:hover { background: var(--gb-bg-hover); text-decoration: none; }
.gb-doc-list-item:last-child { border-bottom: none; }

.gb-list-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--gb-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border-light);
}
.gb-doc-list-content { flex: 1; min-width: 0; }
.gb-doc-list-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gb-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.gb-doc-list-title { font-size: 15px; font-weight: 600; color: var(--gb-text); margin-bottom: 4px; line-height: 1.4; }
.gb-doc-list-summary {
  font-size: 13px;
  color: var(--gb-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 6px;
}
.gb-doc-list-meta { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   8. Document Detail
   ============================================================ */
.gb-doc { max-width: 100%; }

.gb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gb-text-muted);
}
.gb-breadcrumb a { color: var(--gb-text-muted); text-decoration: none; }
.gb-breadcrumb a:hover { color: var(--gb-text); text-decoration: underline; }
.gb-breadcrumb-sep { color: var(--gb-text-subtle); font-size: 11px; }

.gb-doc-header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--gb-border);
  position: relative;
}

/* ============================================================
   Admin Dropdown
   ============================================================ */

.gb-admin-dropdown {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
}

.gb-admin-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  background: var(--gb-bg);
  color: var(--gb-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition:
    background var(--gb-transition),
    border-color var(--gb-transition),
    color var(--gb-transition),
    box-shadow var(--gb-transition);
}

.gb-admin-toggle:hover,
.gb-admin-dropdown.is-open .gb-admin-toggle {
  background: var(--gb-bg-hover);
  border-color: var(--gb-border);
  color: var(--gb-text);
  box-shadow: var(--gb-shadow-sm);
}

.gb-admin-toggle-dot {
  display: block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.gb-admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  background: var(--gb-bg);
  box-shadow: var(--gb-shadow);
  display: none;
  z-index: 40;
}

.gb-admin-dropdown.is-open .gb-admin-menu {
  display: block;
}

.gb-admin-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--gb-bg);
  border-left: 1px solid var(--gb-border);
  border-top: 1px solid var(--gb-border);
  transform: rotate(45deg);
}

.gb-admin-menu-item {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gb-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.gb-admin-menu-item:hover {
  background: var(--gb-bg-hover);
  color: var(--gb-text);
  text-decoration: none;
}

.gb-admin-menu-item--danger {
  color: #dc2626;
}

.gb-admin-menu-item--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* 티스토리 수정/삭제/비공개 버튼 - 헤더 우측 상단 고정 */
.gb-doc-header .btn_post {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
.gb-doc-header .layer_edit {
  top: 28px;
  right: 0;
}
.gb-doc-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gb-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.gb-doc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-meta-date,
.gb-meta-author { font-size: 13px; color: var(--gb-text-muted); }
.gb-meta-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gb-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.gb-meta-sep { color: var(--gb-text-subtle); font-size: 12px; }

.gb-doc-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gb-border);
}

/* ============================================================
   Comments
   ============================================================ */

.gb-comments {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gb-border);
}

.gb-comments-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gb-text);
  letter-spacing: -0.02em;
}

.gb-comments-body {
  font-size: 14px;
  color: var(--gb-text);
}

/* 티스토리 댓글 입력 영역 */
.gb-comments-body textarea,
.gb-comments-body input[type="text"],
.gb-comments-body input[type="password"] {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius);
  background: var(--gb-bg);
  color: var(--gb-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.gb-comments-body textarea:focus,
.gb-comments-body input[type="text"]:focus,
.gb-comments-body input[type="password"]:focus {
  border-color: var(--gb-primary);
  box-shadow: 0 0 0 3px var(--gb-primary-soft);
}

.gb-comments-body button,
.gb-comments-body input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--gb-radius);
  background: var(--gb-primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gb-comments-body button:hover,
.gb-comments-body input[type="submit"]:hover {
  background: var(--gb-primary-hover);
}

/* 티스토리 댓글 리스트 방어 */
.gb-comments-body ul,
.gb-comments-body ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-comments-body li {
  list-style: none;
}

.gb-comments-body .comment-list,
.gb-comments-body .tt-comment-cont,
.gb-comments-body .tt-box-total,
.gb-comments-body .tt-area-reply,
.gb-comments-body .tt-item-reply {
  max-width: 100%;
}

.gb-comments-body .tt-item-reply {
  padding: 20px 0;
  border-bottom: 1px solid var(--gb-border-light);
}

.gb-comments-body .tt-item-reply:last-child {
  border-bottom: none;
}

.gb-comments-body .tt-box-thumb {
  border-radius: 999px;
  overflow: hidden;
}

.gb-comments-body .tt-wrap-cmt {
  border-radius: var(--gb-radius);
}

.gb-comments-body .tt-cmt {
  line-height: 1.7;
  color: var(--gb-text);
}

.gb-comments-body .tt-date,
.gb-comments-body .tt-link-user,
.gb-comments-body .tt_desc {
  color: var(--gb-text-muted);
}

/* ============================================================
   9. Document Typography
   ============================================================ */
.gb-doc-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gb-text);
}

.gb-doc-body h1 {
  font-size: 36px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.2; margin: 48px 0 16px; color: var(--gb-text);
}
.gb-doc-body h1:first-child { margin-top: 0; }

.gb-doc-body h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; margin: 48px 0 16px; color: var(--gb-text);
  padding-bottom: 8px; border-bottom: 1px solid var(--gb-border-light);
}
.gb-doc-body h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.35; margin: 36px 0 12px; color: var(--gb-text);
}
.gb-doc-body h4 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; color: var(--gb-text); }
.gb-doc-body h5, .gb-doc-body h6 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--gb-text-muted); }

.gb-doc-body p { margin-bottom: 20px; }
.gb-doc-body p:last-child { margin-bottom: 0; }

.gb-doc-body ul, .gb-doc-body ol { margin: 0 0 20px 0; padding-left: 24px; }
.gb-doc-body ul { list-style: disc; }
.gb-doc-body ol { list-style: decimal; }
.gb-doc-body li { margin-bottom: 6px; line-height: 1.7; list-style: inherit; }
.gb-doc-body li > ul, .gb-doc-body li > ol { margin-top: 6px; margin-bottom: 4px; }

.gb-doc-body blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 4px solid var(--gb-primary);
  background: var(--gb-primary-soft);
  border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0;
  color: var(--gb-text-muted); font-style: normal;
}
.gb-doc-body blockquote p:last-child { margin-bottom: 0; }

.gb-doc-body code:not(pre code) {
  display: inline; padding: 2px 6px;
  background: var(--gb-inline-code-bg); color: var(--gb-inline-code-text);
  font-family: "SF Mono", "Fira Code", "Consolas", "Menlo", monospace;
  font-size: .875em; border-radius: var(--gb-radius-sm);
  border: 1px solid var(--gb-primary-border); white-space: nowrap;
}

.gb-doc-body pre {
  margin: 24px 0; padding: 20px 24px;
  background: var(--gb-code-bg); border-radius: var(--gb-radius);
  overflow-x: auto; border: 1px solid var(--gb-code-border); position: relative;
}
.gb-doc-body pre code {
  background: none; color: var(--gb-code-text);
  font-family: "SF Mono", "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 14px; line-height: 1.6; padding: 0; border: none; white-space: pre; border-radius: 0;
}

.gb-copy-btn {
  position: absolute; top: 10px; right: 12px;
  padding: 4px 10px; font-size: 11px; font-family: inherit;
  color: var(--gb-text-subtle); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--gb-radius-sm);
  cursor: pointer; transition: background var(--gb-transition), color var(--gb-transition); z-index: 1;
}
.gb-copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.gb-copy-btn.copied { color: #4ade80; border-color: rgba(74,222,128,.3); }

.gb-doc-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; overflow-x: auto; display: block;
  border-radius: var(--gb-radius); border: 1px solid var(--gb-border);
}
.gb-doc-body thead { background: var(--gb-bg-muted); }
.gb-doc-body th {
  padding: 10px 14px; font-weight: 600; text-align: left;
  color: var(--gb-text-muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--gb-border);
}
.gb-doc-body td { padding: 10px 14px; border-bottom: 1px solid var(--gb-border-light); vertical-align: top; line-height: 1.5; }
.gb-doc-body tr:last-child td { border-bottom: none; }
.gb-doc-body tr:hover td { background: var(--gb-bg-hover); }

.gb-doc-body img { max-width: 100%; height: auto; border-radius: var(--gb-radius); margin: 20px 0; display: block; }
.gb-doc-body hr { margin: 40px 0; border: none; border-top: 1px solid var(--gb-border); }
.gb-doc-body a {
  color: var(--gb-primary); text-decoration: underline;
  text-decoration-color: var(--gb-primary-border); text-underline-offset: 2px;
  transition: text-decoration-color var(--gb-transition);
}
.gb-doc-body a:hover { text-decoration-color: var(--gb-primary); }

/* ============================================================
   10. TOC + 위젯 패널
   ============================================================ */
.gb-toc {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 32px 20px 32px 20px; background: var(--gb-bg);
  border-left: 1px solid var(--gb-border);
  scrollbar-width: thin; scrollbar-color: var(--gb-border) transparent;
}
.gb-toc.is-hidden { display: none !important; }
.gb-toc-inner { position: relative; }
.gb-toc-title {
  font-size: 11px; font-weight: 700; color: var(--gb-text-subtle);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.gb-toc-list { display: flex; flex-direction: column; gap: 2px; }
.gb-toc-link {
  display: block; padding: 4px 8px; font-size: 13px;
  color: var(--gb-text-muted); text-decoration: none;
  border-radius: var(--gb-radius-sm); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background var(--gb-transition), color var(--gb-transition);
  border-left: 2px solid transparent;
}
.gb-toc-link:hover { color: var(--gb-text); background: var(--gb-bg-hover); text-decoration: none; }
.gb-toc-link.active { color: var(--gb-primary); border-left-color: var(--gb-primary); background: var(--gb-bg-active); }
.gb-toc-link.gb-toc-link-depth-2 { padding-left: 18px; font-size: 12px; color: var(--gb-text-subtle); }
.gb-toc-link.gb-toc-link-depth-2.active { color: var(--gb-primary); }

/* 위젯 패널: JS가 제어하기 전까지 숨김 (깜빡임 방지) */
.gb-widget-panel { display: none; flex-direction: column; gap: 24px; }

.gb-widget-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gb-border-light);
}
.gb-widget-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--gb-text-subtle);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--gb-transition);
}
.gb-widget-tab:hover { color: var(--gb-text-muted); }
.gb-widget-tab.is-active { color: var(--gb-text); }
.gb-widget-tab-sep { font-size: 12px; color: var(--gb-border); }

.gb-widget-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.gb-widget-list[hidden] { display: none !important; }

.gb-widget-loading,
.gb-widget-empty {
  font-size: 12px;
  color: var(--gb-text-subtle);
  padding: 12px 0;
  text-align: center;
}

.gb-widget-item a {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gb-border-light);
  text-decoration: none;
  color: var(--gb-text);
  transition: color var(--gb-transition);
}
.gb-widget-item:last-child a { border-bottom: none; }
.gb-widget-item a:hover { color: var(--gb-primary); text-decoration: none; }

.gb-widget-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 40px;
  border-radius: var(--gb-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border-light);
}
.gb-widget-thumb--empty { background-color: var(--gb-bg-hover); }

.gb-widget-body { flex: 1; min-width: 0; }

.gb-widget-title {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.gb-widget-date {
  font-size: 11px;
  color: var(--gb-text-subtle);
  display: block;
}

/* ============================================================
   11. Right Sidebar Widget (최신글 / 인기글)
   ============================================================ */
.gb-right-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 48px 20px 48px 16px;
  background: var(--gb-bg);
  border-left: 1px solid var(--gb-border);
  scrollbar-width: thin;
  scrollbar-color: var(--gb-border) transparent;
}
.gb-right-sidebar::-webkit-scrollbar { width: 4px; }
.gb-right-sidebar::-webkit-scrollbar-thumb { background: var(--gb-border); border-radius: 4px; }

.gb-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 탭 헤더 */
.gb-widget-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gb-border-light);
}

.gb-widget-tab {
  font-size: 12px;
  font-weight: 700;
  color: var(--gb-text-subtle);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--gb-transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.gb-widget-tab:hover { color: var(--gb-text-muted); }
.gb-widget-tab.is-active { color: var(--gb-primary); }

.gb-widget-tab-sep {
  font-size: 11px;
  color: var(--gb-border);
}

/* 글 목록 */
.gb-widget-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gb-widget-list[hidden] { display: none !important; }

.gb-widget-item {
  border-bottom: 1px solid var(--gb-border-light);
}
.gb-widget-item:last-child { border-bottom: none; }

.gb-widget-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--gb-text);
  transition: background var(--gb-transition);
  border-radius: var(--gb-radius-sm);
}
.gb-widget-link:hover {
  background: var(--gb-bg-hover);
  text-decoration: none;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -4px;
}

.gb-widget-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--gb-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--gb-bg-hover);
  border: 1px solid var(--gb-border-light);
}

.gb-widget-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gb-widget-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gb-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-widget-date {
  font-size: 11px;
  color: var(--gb-text-subtle);
}

/* ============================================================
   12. Tags / Badge
   ============================================================ */
.gb-tags {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.gb-tags-label {
  font-size: 12px; font-weight: 600; color: var(--gb-text-subtle);
  text-transform: uppercase; letter-spacing: .06em; padding-top: 4px;
}
.gb-tags a {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--gb-radius-pill); background: var(--gb-bg-hover);
  color: var(--gb-text-muted); font-size: 12px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--gb-border);
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-tags a:hover { background: var(--gb-bg-active); color: var(--gb-primary); border-color: var(--gb-primary-border); text-decoration: none; }

.gb-tag-cloud { margin: 32px 0; }
.gb-tag-cloud-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--gb-text); }
.gb-tag-cloud-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-tag-pill {
  display: inline-flex; padding: 5px 12px; border-radius: var(--gb-radius-pill);
  background: var(--gb-bg-hover); color: var(--gb-text-muted); font-size: 13px;
  text-decoration: none; border: 1px solid var(--gb-border);
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-tag-pill:hover { background: var(--gb-bg-active); color: var(--gb-primary); text-decoration: none; }

.gb-badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: var(--gb-radius-pill); font-size: 11px; font-weight: 600;
}
.gb-badge--lock { background: #fef3c7; color: #92400e; }
.gb-badge--notice { background: var(--gb-primary-soft); color: var(--gb-primary); }

/* ============================================================
   12. Protected Page
   ============================================================ */
.gb-protected {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; padding: 48px 24px;
}
.gb-protected-card {
  width: 100%; max-width: 400px; text-align: center;
  padding: 40px 32px; border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg); background: var(--gb-bg-muted);
}
.gb-protected-icon { font-size: 40px; margin-bottom: 16px; }
.gb-protected-title { font-size: 20px; font-weight: 700; color: var(--gb-text); margin-bottom: 8px; }
.gb-protected-desc { font-size: 14px; color: var(--gb-text-muted); margin-bottom: 24px; }
.gb-protected-form { display: flex; flex-direction: column; gap: 10px; }
.gb-protected-input {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--gb-border); border-radius: var(--gb-radius);
  background: var(--gb-bg); color: var(--gb-text); text-align: center; outline: none;
  transition: border-color var(--gb-transition), box-shadow var(--gb-transition);
}
.gb-protected-input:focus { border-color: var(--gb-primary); box-shadow: 0 0 0 3px var(--gb-primary-soft); }
.gb-protected-btn {
  width: 100%; padding: 10px 20px; font-family: inherit; font-size: 14px;
  font-weight: 600; color: #fff; background: var(--gb-primary);
  border-radius: var(--gb-radius); cursor: pointer;
  transition: background var(--gb-transition), transform var(--gb-transition);
}
.gb-protected-btn:hover { background: var(--gb-primary-hover); }
.gb-protected-btn:active { transform: scale(.98); }

/* ============================================================
   13. Paging
   ============================================================ */
.gb-paging { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 40px 0; }
.gb-page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--gb-radius-sm);
  color: var(--gb-text-muted); text-decoration: none;
  border: 1px solid var(--gb-border);
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-page-btn:hover { background: var(--gb-bg-hover); color: var(--gb-text); text-decoration: none; }
.gb-page-btn.disabled, .gb-page-btn[href=""] { opacity: .35; pointer-events: none; }
.gb-page-nums { display: flex; align-items: center; gap: 2px; }
.gb-page-num {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  border-radius: var(--gb-radius-sm); font-size: 14px; font-weight: 500;
  color: var(--gb-text-muted); text-decoration: none; border: 1px solid transparent;
  transition: background var(--gb-transition), color var(--gb-transition);
}
.gb-page-num:hover { background: var(--gb-bg-hover); color: var(--gb-text); text-decoration: none; }
.gb-page-num.active { background: var(--gb-primary); color: #fff; border-color: var(--gb-primary); }

/* Local log */
.gb-local-log { margin: 32px 0; }
.gb-local-log-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--gb-text); }
.gb-local-spot, .gb-local-info { font-size: 13px; color: var(--gb-text-muted); padding: 3px 0; }
.gb-local-info a { color: var(--gb-text-muted); text-decoration: none; }
.gb-local-info a:hover { color: var(--gb-primary); }
.gb-guestbook { margin: 32px 0; }

/* ============================================================
   15. Responsive
   ============================================================ */
@media (max-width: 1280px) {
  /* 홈/목록: 위젯 숨김 */
  .gb-layout { grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr); }
  .gb-right-sidebar { display: none !important; }
  /* 글 상세: TOC 숨김 */
  .gb-layout.is-article { grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr); }
  .gb-layout.is-article .gb-toc { display: none !important; }
}

@media (max-width: 1024px) {
  .gb-layout,
  .gb-layout.is-article { display: block; }
  .gb-mobile-header { display: flex !important; }
  .gb-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100%;
    width: var(--gb-sidebar-width); z-index: 300;
    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(.4,0,.2,1);
    box-shadow: var(--gb-shadow-lg);
  }
  .gb-sidebar.is-open { transform: translateX(0); }
  .gb-main { padding: 32px 24px 60px; }
}

@media (max-width: 768px) {
  .gb-main {
    padding: 24px 16px 48px;
  }

  .gb-hero-title {
    font-size: 28px;
  }

  .gb-hero-desc {
    font-size: 15px;
  }

  .gb-doc-title {
    font-size: 26px;
  }

  .gb-doc-body h1 {
    font-size: 26px;
  }

  .gb-doc-body h2 {
    font-size: 21px;
    margin: 36px 0 12px;
  }

  .gb-doc-body h3 {
    font-size: 18px;
    margin: 28px 0 10px;
  }

  .gb-featured-grid {
    grid-template-columns: 1fr;
  }

  .gb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .gb-doc-card {
    min-height: auto;
  }

  .gb-card-thumb {
    height: 180px;
  }

  .gb-card-title {
    font-size: 15px;
  }

  .gb-doc-body table,
  .gb-doc-body pre {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .gb-card-grid {
    grid-template-columns: 1fr;
  }

  .gb-card-thumb {
    height: 160px;
  }

  .gb-card-body {
    padding: 16px;
  }

  .gb-index-thumb {
    display: none;
  }

  .gb-list-thumb {
    display: none;
  }
}

/* ============================================================
   16. Tistory 방어
   ============================================================ */
#tistory_layer_btn_wrap,
.tistory_layer_btn_wrap { z-index: 150 !important; }

[id*="revenue"], [class*="revenue"],
[id*="kakao_ad"], [class*="kakao_ad"],
ins.adsbygoogle {
  display: block; max-width: 100%; overflow: hidden; margin: 16px 0;
}

/* 티스토리 자동 삽입 카테고리 다른 글 숨김 */
.another_category { display: none !important; }