/* ============================================
   FreeToolbox — Global Stylesheet v5
   사이드바 + 메인 레이아웃, 라이트 테마 (vivoldi 스타일)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #ffffff;
  --border: #e2e8f0;
  --text: #111827;
  --text-dim: #374151;
  --text-muted: #4b5563;
  --accent: #ff9700; /* 도구별 override */
  --accent-glow: transparent;
  --accent-bg: #fff7ed;
  --green: #166534;
  --red: #b91c1c;
  --orange: #c2410c;
  --sidebar-w: 260px;
  --header-h: 80px;
  --tabbar-h: 56px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise overlay — 제거 (vivoldi 스타일: 깔끔한 화이트) */
body::before {
  content: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 1.2rem;
  z-index: 100;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.header-search {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}
.header-actions {
  justify-self: end;
}
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  padding: 0;
}

/* ─── 모바일 검색 모달 ─── */
.search-modal[hidden] { display: none; }
.search-modal {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  animation: search-modal-in 0.16s ease-out;
}
@keyframes search-modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.search-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-modal-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-modal-ico {
  position: absolute;
  left: 0.85rem;
  pointer-events: none;
}
.search-modal-input {
  flex: 1;
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #f9fafb;
}
.search-modal-input:focus {
  background: #fff;
  border-color: #ff9700;
}
.search-modal-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0;
}
.search-modal-result {
  display: block;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  text-decoration: none;
}
.search-modal-result:hover,
.search-modal-result.active {
  background: #fff7ed;
}
.search-modal-result .name {
  font-weight: 600;
  font-size: 0.98rem;
}
.search-modal-result .desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-modal-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.92rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: #ff9700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 60vw;
}
@media (max-width: 600px) {
  .logo img { height: 44px; max-width: 70vw; }
  .fb-bridge { display: none; }
  .fb-links { display: block; margin-top: 0.4rem; }
}

.header-search {
  position: relative;
}
.header-search svg.search-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  font-size: 0.85rem;
  font-family: inherit;
  background: #f4f4f5;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}
.header-search input:focus {
  background: #fff;
  border-color: #d1d5db;
}
.header-search input:focus ~ svg.search-ico {
  stroke: #6b7280;
}
.header-search input::placeholder { color: #9ca3af; font-size: 0.85rem; }

/* 검색 드롭다운 */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  z-index: 300;
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-item {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover, .search-item.active { background: var(--accent-bg); }
.search-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.search-item:hover .search-item-name, .search-item.active .search-item-name { color: var(--accent); }
.search-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Language selector */
.lang-selector { position: relative; }
.lang-selector button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}
.lang-dropdown a:hover {
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================
   LAYOUT (sidebar + main)
   ============================================ */
.layout {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  position: relative;
  z-index: 1;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border);
  height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 1rem;
}
/* 사이드바 스크롤바 — 얇고 투명, hover 시만 표시 */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }
.sidebar:hover::-webkit-scrollbar-thumb { background: #d1d5db; }
.sidebar { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar:hover { scrollbar-color: #d1d5db transparent; }

.sidebar-nav { padding: 0.5rem 0; }

.sidebar-category { border-bottom: none; }

.category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.category-toggle:hover { color: var(--accent); }
.category-toggle.active { color: var(--accent); }

.category-tools {
  list-style: none;
  display: none;
  padding: 0 0 0.35rem;
}
.category-tools.open { display: block; }

.category-tools li a {
  display: block;
  padding: 0.3rem 1rem 0.3rem 2.2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.category-tools li a:hover {
  color: var(--accent);
  text-decoration: none;
}
/* 현재 보고 있는 도구 = 진한 주황 배경 + 흰 글자 */
.category-tools li a.current {
  color: #fff;
  font-weight: 700;
  background: #ea580c;
}

/* 인라인 SVG 픽토그램 (도구 페이지 버튼/라벨용) */
svg.ico {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  flex-shrink: 0;
}

/* 사이드바 카테고리 SVG 아이콘 */
.category-toggle svg,
.cross-links svg,
.mobile-tabbar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cross links (사이드바 하단 프로모) */
.cross-links {
  padding: 1rem 1rem 0.5rem;
  border-top: none;
}
.cross-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.78rem;
  color: #475569; /* 사이트 메인 톤 (회색) — 통일 */
  text-decoration: none;
}
.cross-links a:hover { color: #1e293b; text-decoration: none; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 3rem;
  max-width: 900px;
  overflow-x: hidden;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }

/* H1 + subtitle */
h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.subtitle {
  font-size: 0.95rem;
  color: #374151;
  margin-top: 0.85rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* Tool body */
.tool-body {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1rem;
}
/* 넘치는 개별 요소만 가로 스크롤 */
.tool-body table,
.tool-body pre,
.seo-content table,
.seo-content pre {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.tool-body input,
.tool-body textarea,
.tool-body select {
  max-width: 100%;
  box-sizing: border-box;
}
/* 도구 input/textarea 공통 — 깔끔한 라이트 테마 */
.tool-body input[type="text"],
.tool-body input[type="number"],
.tool-body input[type="search"],
.tool-body input[type="url"],
.tool-body input[type="email"],
.tool-body input[type="tel"],
.tool-body input[type="password"],
.tool-body textarea,
.tool-body select {
  background: #fff !important;
  border: 1.5px solid #d1d5db !important;
  color: #111827 !important;
  border-radius: 8px;
}
.tool-body input:focus,
.tool-body textarea:focus,
.tool-body select:focus {
  border-color: var(--accent) !important;
  outline: none;
}

/* Ad slots — 광고 전체 제거됨 (2026-04-29) */
.ad-slot { display: none !important; }
.ad-slot.ad-loaded { display: none !important; }

/* Promo banner */
.promo-banner {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.promo-banner a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.promo-banner a:hover { border-color: #e2e8f0; color: var(--text); text-decoration: none; }

/* ============================================
   SEO CONTENT
   ============================================ */
.seo-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.seo-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}
.seo-content p, .seo-content li {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.7;
}
.seo-content p { margin-bottom: 0.6rem; }
.seo-content ul, .seo-content ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.seo-content li { margin-bottom: 0.3rem; }
.seo-content strong { color: var(--text); }

/* TOC */
.toc {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.toc h2 {
  font-size: 0.8rem !important;
  margin: 0 0 0.4rem !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc ol { margin: 0; padding-left: 1.5rem; }
.toc li { margin-bottom: 0.2rem; }
.toc a { color: var(--accent); font-size: 0.82rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Comparison table — mobile horizontal scroll */
.seo-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.82rem;
}
.seo-content th, .seo-content td {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  text-align: left;
}
.seo-content th { background: var(--surface); font-weight: 600; color: var(--text); }
.seo-content td { color: #374151; }

/* FAQ details */
.seo-content details {
  margin-bottom: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.seo-content summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}
.seo-content details p { margin-top: 0.5rem; }

/* Related tools */
.related-tools { margin-top: 2rem; }
.related-tools h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.related-grid a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #374151;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s;
}
.related-grid a:hover { border-color: #e2e8f0; color: var(--text); text-decoration: none; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
footer p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ============================================
   MOBILE TABBAR
   ============================================ */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-h);
  background: #fff;
  border-top: 1px solid #e5e7eb;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.mobile-tabbar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.mobile-tabbar .tab-item span {
  font-size: 0.65rem;
  font-weight: 500;
}
.mobile-tabbar a, .mobile-tabbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-tabbar a:hover, .mobile-tabbar button:hover { color: var(--text); }

/* Processing overlay */
.processing-overlay {
  text-align: center;
  padding: 2rem;
}
.processing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-sub { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================
   RTL (Arabic)
   ============================================ */
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .main-content { margin-left: 0; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .category-tools li a { padding-left: 1rem; padding-right: 2.2rem; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .layout { z-index: auto; }
  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-h);
    width: 280px;
    height: calc(100vh - var(--header-h) - var(--tabbar-h));
    z-index: 90;
    transition: left 0.25s ease;
  }
  .sidebar.open { left: 0; }
  [dir="rtl"] .sidebar { left: auto; right: -100%; }
  [dir="rtl"] .sidebar.open { right: 0; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0,0,0,0.3);
    z-index: 80;
  }
  .sidebar-overlay.open { display: block; }

  .hamburger { display: block; }
  .mobile-tabbar { display: flex; }
  .header-search { display: none; }
  .mobile-search-btn { display: inline-flex; }
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 0.8rem;
    gap: 0.4rem;
  }
  .header-left { display: contents; }
  .header-left .hamburger { grid-column: 1; }
  .header-left .logo { grid-column: 2; justify-self: center; }
  .header-actions { display: contents; }
  .header-actions .mobile-search-btn { grid-column: 3; }
  .header-actions > a,
  .header-actions > .lang-selector,
  .header-actions > .lang-toggle,
  .header-actions > .ftblang-wrap,
  .header-actions > .ftbauth-slot { display: none !important; }
  .main-content {
    padding: 1.2rem 1rem 5rem;
  }
  .tool-body {
    padding: 1rem;
  }
  .header-search { max-width: 200px; }
}

@media (max-width: 480px) {
  .header-search { max-width: 160px; }
  .header-actions > a,
  .header-actions > .lang-selector { display: none; }
  .main-content { padding: 1rem 0.75rem 5rem; }
  h1 { font-size: 1.4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .search-dropdown { left: -40px; right: -40px; }
}

/* ============================================
   INTERACTIONS (Phase 4-1)
   ============================================ */
/* 👍/👎 피드백 */
.ftb-feedback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ftb-feedback-q {
  font-size: 0.9rem;
  color: #374151;
  margin-right: auto;
}
.ftb-fb-btn {
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.ftb-fb-btn:hover:not(:disabled) {
  border-color: #e2e8f0;
  transform: scale(1.15);
}
.ftb-fb-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.ftb-fb-btn.ftb-fb-selected {
  opacity: 1;
  border-color: #e2e8f0;
  background: rgba(249, 115, 22, 0.15);
}
.ftb-fb-thanks {
  font-size: 0.82rem;
  color: var(--green);
}

/* 단축키 안내 */
.ftb-shortcut-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
}
/* 결과 복사 버튼 */
.ftb-copy-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.ftb-copy-btn:hover {
  border-color: #e2e8f0;
  color: var(--text);
}

.ftb-shortcut-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0 0.1rem;
}


/* ─── Site footer (회사 정보 블록, 2026-04-21) ─── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 1.5rem;
  color: #8a8a9e;
  font-size: 0.85rem;
  text-align: left;
}
.site-footer * {
  text-align: left;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 0 1.5rem;
}
.footer-company h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.footer-company-info {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.7;
}
.footer-company-info li {
  font-size: 0.82rem;
  color: #8a8a9e;
}
.footer-company-info a {
  color: #8a8a9e;
  text-decoration: none;
}
.footer-company-info a:hover {
  color: var(--accent);
}
.footer-sites h4,
.footer-partners h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.footer-sites ul,
.footer-partners ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.9;
}
.footer-sites a,
.footer-partners a {
  color: #8a8a9e;
  text-decoration: none;
  font-size: 0.82rem;
}
.footer-sites a:hover,
.footer-partners a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: left;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #8a8a9e;
}
.footer-bottom a {
  color: #8a8a9e;
  text-decoration: none;
  margin-right: 0.6rem;
}
.footer-bottom a:hover {
  color: var(--accent);
}
@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .site-footer {
    padding: 2rem 1rem 1rem;
  }
}

/* ─── 면책조항 박스 (health / finance, 2026-04-21) ─── */
.tool-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  color: #5a5a72;
  line-height: 1.65;
}
.tool-disclaimer svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.15rem;
}
.tool-disclaimer strong {
  color: var(--text);
  font-weight: 600;
}
/* 상단 쿠팡 캐러셀 — PC/모바일 분기 */
.coupang-pc, .coupang-mobile { text-align: center; margin: 1rem 0 2rem; }
@media (max-width: 719px) {
  .coupang-pc { display: none; }
}
@media (min-width: 720px) {
  .coupang-mobile { display: none; }
}

/* 세로 스카이스크래퍼 — 1280px+ 에서만 표시 (resize 반응) */
#ad-sky-right { display: none !important; }
@media (min-width: 1280px) {
  #ad-sky-right { display: block !important; }
}

/* cachebust 1777300000 2026-04-24 hero left + home coupang */

/* ============================================
   2026-05-02 — 챗봇 CTA 배너
   "혹시 원하시는 툴이 아니신가요?" 콘텐츠 하단 강조 배너
   클릭 시 챗봇 fab 트리거
   ============================================ */
.ftb-cta-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #ff9700;
  color: #fff;
  border: 1px solid #ff9700;
  text-decoration: none;
  font-size: 1.05rem;
  margin: 2.5rem 0 1.5rem;
  transition: background 0.18s ease;
  cursor: pointer;
}
.ftb-cta-banner:hover { background: #e07f00; color: #fff; }
.ftb-cta-banner:visited { color: #fff; }
.ftb-cta-banner svg { flex-shrink: 0; color: #fff; }
.ftb-cta-banner-text { flex: 1; line-height: 1.45; }
.ftb-cta-banner-text strong { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.ftb-cta-banner-text span { display: block; font-size: 0.95rem; opacity: 0.95; }
@media (max-width: 600px) {
  .ftb-cta-banner { gap: 0.7rem; padding: 1rem 1rem; font-size: 0.95rem; }
  .ftb-cta-banner-text strong { font-size: 1rem; }
  .ftb-cta-banner-text span { font-size: 0.88rem; line-height: 1.4; }
  .ftb-cta-banner svg:last-child { display: none; }
}


/* ============================================
   SIDEBAR CLOSE BUTTON (모바일 X 닫기) — 2026-05-03
   stacking 회피: position:fixed로 박고 sidebar.open일 때만 노출
   ============================================ */
.sidebar-close { display: none; }

@media (max-width: 900px) {
  .sidebar { z-index: 200; }  /* stacking 보강 */
  .sidebar-close {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 290px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #000;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateX(-20px);
  }
  .sidebar.open .sidebar-close {
    display: inline-flex;
    opacity: 1;
    transform: translateX(0);
  }
  .sidebar-close:hover,
  .sidebar-close:active { background: transparent; }
}

/* 언어 토글 — 사장님 명시 (한국어/English) 2026-05-04 */
.lang-toggle{display:inline-flex;flex-shrink:0;white-space:nowrap;border:1px solid var(--border,#e5e7eb);border-radius:6px;overflow:hidden;margin-right:8px}
.lang-btn{padding:5px 10px;font-size:.78rem;white-space:nowrap;flex-shrink:0;color:var(--text-dim,#6b7280);background:transparent;text-decoration:none;border:none;cursor:pointer;line-height:1;transition:background .15s,color .15s}
.lang-btn + .lang-btn{border-left:1px solid var(--border,#e5e7eb)}
.lang-btn:hover{background:#fef3c7;color:#0f172a}
.lang-btn--active{background:#ff9700;color:#fff;font-weight:600}
.lang-btn--active:hover{background:#ff9700;color:#fff}
.lang-btn--disabled{pointer-events:none;opacity:.35;cursor:not-allowed}
@media(max-width:600px){.lang-toggle{display:none}}
