/* ==========================================================
   선글라스 목수의 친절한 목공툰 (Wood Cartoon) Stylesheet
   ========================================================== */

:root {
  --bg-color: #f7f3ed;
  --panel-bg: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --border-color: #e5ded5;
  --brand-orange: #e67e22;
  --brand-orange-dark: #d35400;
  --brand-blue: #2980b9;
  --brand-green: #27ae60;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --max-webtoon-w: 840px;
  --foot-bg: #efe8de;
}

body.theme-dark {
  --bg-color: #1a1e21;
  --foot-bg: #141719;
  --panel-bg: #24292e;
  --text-main: #f1f2f6;
  --text-muted: #a4b0be;
  --nav-bg: rgba(36, 41, 46, 0.95);
  --border-color: #383f47;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ---------------- Top Navigation Bar ---------------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.4);
}

.episode-info .ep-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.episode-info .ep-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-switch-group {
  display: flex;
  background: var(--border-color);
  padding: 3px;
  border-radius: 10px;
}

.btn-mode {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode.active {
  background: var(--panel-bg);
  color: var(--brand-orange);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-action {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-action:hover {
  background: var(--brand-orange-dark);
}

.btn-icon {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 7px 11px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--brand-orange);
}

/* ---------------- Reading Progress Bar ---------------- */
.reading-progress-bar {
  position: fixed;
  top: 64px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #e67e22, #f39c12);
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* ---------------- Main Layout ---------------- */
.main-wrapper {
  margin-top: 68px;
  display: flex;
  justify-content: center;
  padding: 20px 10px 100px 10px;
}

.webtoon-scroll-view {
  width: 100%;
  max-width: var(--max-webtoon-w);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.webtoon-cut {
  background: var(--panel-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webtoon-cut:hover {
  box-shadow: var(--shadow-lg);
}

.cut-image {
  width: 100%;
  height: auto;
  display: block;
}

.cut-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
}

.cut-badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-orange);
}

.cut-footer-card {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--panel-bg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-tag {
  background: #2d3436;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.step-tag.success-tag {
  background: var(--brand-green);
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.btn-step-check {
  background: var(--panel-bg);
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step-check.checked {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.btn-step-check.completed {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.card-body p {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-tip {
  background: rgba(230, 126, 34, 0.08);
  border-left: 4px solid var(--brand-orange);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13.5px !important;
  color: #844c12 !important;
}

body.theme-dark .card-tip {
  background: rgba(230, 126, 34, 0.15);
  color: #f5b072 !important;
}

.card-tip.alert-tip {
  background: rgba(231, 76, 60, 0.08);
  border-left-color: #e74c3c;
  color: #a82315 !important;
}

body.theme-dark .card-tip.alert-tip {
  background: rgba(231, 76, 60, 0.15);
  color: #ff7675 !important;
}

/* ---------------- Slide (Cut-by-Cut) View ---------------- */
.webtoon-slide-view {
  width: 100%;
  max-width: var(--max-webtoon-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide-viewport {
  width: 100%;
  position: relative;
  background: var(--panel-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image {
  width: 100%;
  height: auto;
  display: block;
}

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45, 52, 54, 0.7);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  z-index: 10;
}

.slide-nav-btn:hover {
  background: rgba(230, 126, 34, 0.9);
}

.slide-nav-btn.prev {
  left: 12px;
}

.slide-nav-btn.next {
  right: 12px;
}

.slide-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 24px 20px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-counter {
  font-size: 14px;
  font-weight: 900;
  background: var(--brand-orange);
  padding: 4px 10px;
  border-radius: 12px;
}

.slide-title {
  font-size: 15px;
  font-weight: 600;
}

.slide-dots-container {
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slide-dot.active {
  background: var(--brand-orange);
  transform: scale(1.3);
}

/* ---------------- Blueprint Modal ---------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-window {
  background: var(--panel-bg);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.btn-close-modal:hover {
  color: var(--brand-orange);
}

.modal-body {
  padding: 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.pane-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.stool-canvas {
  width: 100%;
  height: 280px;
  background: #fdfaf6;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: block;
}

body.theme-dark .stool-canvas {
  background: #1e2226;
}

.diagram-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-canvas {
  flex: 1;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.dimension-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dimension-chips .chip {
  background: rgba(41, 128, 185, 0.1);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 14px;
}

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

.bom-table th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
}

.spec-bullet-list {
  padding-left: 20px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.spec-bullet-list li {
  margin-bottom: 6px;
}

.safety-box {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12.5px;
}

.safety-box ol {
  padding-left: 18px;
  margin-top: 6px;
}

.safety-box li {
  margin-bottom: 4px;
}

/* ---------------- Floating Bottom Quick Bar ---------------- */
.floating-quick-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 52, 54, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 900;
}

.quick-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-btn:hover {
  background: var(--brand-orange);
}

.hidden {
  display: none !important;
}

/* ---------------- Responsive Tweaks ---------------- */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 12px;
  }
  .ep-meta {
    display: none;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .floating-quick-bar {
    width: 95%;
    overflow-x: auto;
    justify-content: flex-start;
  }
}

/* ---------------- 목록 페이지 (index.html) ---------------- */
.list-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 92px 20px 60px;
}

.list-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #2d2a26 0%, #4a3a2a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 32px 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-text {
  padding-bottom: 28px;
  max-width: 560px;
}

.hero-kicker {
  display: inline-block;
  background: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.list-hero h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.list-hero p {
  color: #e8ddd0;
  font-size: 15px;
}

.hero-btn {
  display: inline-block;
  margin-top: 16px;
  background: #fff;
  color: #2d2a26;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 22px;
  transition: transform 0.15s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-char {
  height: 210px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
}

.list-toolbar h3 {
  font-size: 18px;
  font-weight: 900;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.episode-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ep-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece5da;
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ep-new, .ep-done {
  position: absolute;
  top: 10px;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 10px;
  color: #fff;
}

.ep-new {
  left: 10px;
  background: #e74c3c;
}

.ep-done {
  right: 10px;
  background: var(--brand-green);
}

.ep-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ep-no {
  color: var(--brand-orange);
  font-weight: 900;
  font-size: 14px;
}

.ep-date {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}

.ep-body h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.4px;
}

.ep-body p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.ep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ep-chips span {
  font-size: 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2px 8px;
}

.ep-chips .tag {
  color: var(--brand-blue);
}

.ep-progress {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-top: auto;
  overflow: hidden;
}

.ep-progress span {
  display: block;
  height: 100%;
  background: var(--brand-orange);
}

.load-error {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ---------------- 보기 페이지: 목록 버튼·화 넘기기 ---------------- */
.btn-back {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  white-space: nowrap;
}

.btn-back:hover {
  background: var(--border-color);
}

.episode-pager {
  max-width: var(--max-webtoon-w);
  margin: 10px auto 110px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pager-btn {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.pager-btn.list {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.pager-btn.disabled {
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .list-wrapper {
    padding: 80px 16px 40px;
  }
  .list-hero {
    padding: 22px 20px 0;
  }
  .list-hero h2 {
    font-size: 20px;
  }
  .hero-char {
    height: 150px;
  }
  .episode-grid {
    grid-template-columns: 1fr;
  }
  .list-page .nav-right .btn-action {
    display: none;
  }
  .viewer-page .episode-info {
    display: none;
  }
}

/* 보기 페이지는 만화 → 화 넘기기 순으로 세로로 쌓는다 */
.viewer-page .main-wrapper {
  flex-direction: column;
  align-items: center;
}
.viewer-page .episode-pager {
  width: 100%;
  margin: 24px auto 40px;
}
.nav-left {
  min-width: 0;
}
.episode-info {
  min-width: 0;
}
.episode-info .ep-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .list-page .episode-info {
    display: none;
  }
  .list-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .list-hero .hero-char {
    display: none;
  }
  .list-hero .hero-text {
    max-width: none;
  }
  .viewer-page .view-switch-group,
  .viewer-page .nav-right .btn-action {
    display: none;
  }
}
@media (max-width: 768px) {
  .viewer-page .logo-badge,
  .viewer-page .nav-right .btn-action {
    display: none !important;
  }
}

/* 컷이 많은 화(최대 20컷): 바로가기 줄은 화면 폭 안에서 가로로 넘긴다 */
.floating-quick-bar {
  max-width: min(94vw, 1000px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.floating-quick-bar .quick-btn {
  flex-shrink: 0;
}

/* ---------------- 카테고리 탭 (목록) ---------------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 6px;
}
.cat-tab {
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--text-main);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cat-tab small {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.cat-tab.on {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.cat-tab.on small {
  color: #ffe6cf;
}
.cat-intro {
  color: var(--text-muted);
  font-size: 14px;
  min-height: 1.2em;
}
.cat-section {
  margin-bottom: 36px;
}
.cat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
}
.cat-section-head h3 {
  font-size: 19px;
  font-weight: 900;
}
.cat-section-head h3 small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}
.cat-more {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.cat-empty {
  color: var(--text-muted);
  padding: 18px 0;
}
@media (max-width: 768px) {
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* 홈: 목공하기 / 안전가이드 고르기 (11-24) */
.kind-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 40px;
}
.kind-choice.hidden, .kind-bar.hidden { display: none; }
.kind-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel-bg);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  min-width: 0;
}
.kind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kind-wood:hover { border-color: var(--brand-orange); }
.kind-safety:hover { border-color: var(--brand-green); }
.kind-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kind-icon { font-size: 30px; align-self: center; }
.kind-head h3 { font-size: 24px; font-weight: 900; }
.kind-head small { color: var(--text-muted); font-size: 14px; }
.kind-card p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.kind-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-cats span {
  font-size: 12px; padding: 3px 9px; border-radius: 12px;
  background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-muted);
}
.kind-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color); }
.kind-thumbs.empty {
  display: flex; align-items: center; justify-content: center; min-height: 120px;
  border: 2px dashed var(--border-color); border-radius: 10px; color: var(--text-muted); font-size: 14px;
}
.kind-go { margin-top: auto; font-weight: 900; font-size: 15px; }
.kind-wood .kind-go { color: var(--brand-orange); }
.kind-safety .kind-go { color: var(--brand-green); }
.kind-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 24px 0 0; font-size: 18px;
}
.kind-bar b { font-weight: 900; }
.kind-home, .kind-switch {
  text-decoration: none; font-size: 14px; font-weight: 700;
  border: 1px solid var(--border-color); background: var(--panel-bg); color: var(--text-main);
  border-radius: 20px; padding: 6px 13px;
}
.kind-switch { margin-left: auto; }
@media (max-width: 768px) {
  .kind-choice { grid-template-columns: minmax(0, 1fr); }
  .kind-switch { margin-left: 0; }
}

/* ---------------- 바닥글 (woodtools 와 같은 사업자 정보 + 오늘·전체 접속자, 11-27) ---------------- */
.site-foot {
  border-top: 1px solid var(--border-color);
  background: var(--foot-bg);
  padding: 20px 16px 24px;
  text-align: center;
  color: var(--text-muted);
}
.site-foot p {
  max-width: 1080px;
  margin: 0 auto;
}
.site-foot .foot-biz {
  font-size: 11.5px;
  line-height: 1.7;
}
.site-foot .foot-copy {
  font-size: 11px;
  margin-top: 4px;
}
.site-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 보기 화면: 아래 떠 있는 바로가기 줄이 바닥글 글자를 가리지 않게 */
.viewer-page .main-wrapper {
  padding-bottom: 20px;
}
.viewer-page .site-foot {
  padding-bottom: 84px;
}
