/*
Theme Name: legalmarketing
Theme URI: https://legalmarketing.kr
Author: 김윤현
Author URI: https://legalmarketing.kr
Description: AI 구독 하나로 시작하는 1인 마케팅. 광고비 없이 자력으로 만드는 오가닉 마케팅 노트. 법무법인 4채널 시스템에서 검증한 방법들을 기록합니다.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legalmarketing
Tags: blog, editorial, minimal, dark-mode, custom-colors, custom-menu, featured-images, rtl-language-support, threaded-comments
*/

:root {
  --bg: #FCFBF8;
  --bg-alt: #F4F1EA;
  --bg-hover: #F7F4ED;
  --bg-tag: #ECE8DD;
  --ink: #0F0F10;
  --ink-2: #3F3F45;
  --ink-3: #6B6B72;
  --ink-4: #A8A8B0;
  --line: #E5E3DD;
  --line-2: #D0CDC4;

  /* 카테고리 색 */
  --c-naver: #03C75A;
  --c-google: #4285F4;
  --c-expand: #FF6F2C;
  --c-meta: #8B7355;
  --c-ai: #8B5CF6;
  --c-kakao: #FAE100;
  --c-carrot: #FF6F2C;
  --c-insta: #E4405F;
  --c-about: #14B8A6;

  --sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --bg-alt: #1C1C20;
    --bg-hover: #1F1F23;
    --bg-tag: #25252A;
    --ink: #ECECF0;
    --ink-2: #BDBDC4;
    --ink-3: #82828A;
    --ink-4: #54545B;
    --line: #2A2A2F;
    --line-2: #3A3A40;

    --c-naver: #4FD988;
    --c-google: #6FA3F7;
    --c-expand: #FF8B5C;
    --c-meta: #B59A7E;
    --c-ai: #A78BFA;
    --c-kakao: #FAE100;
    --c-carrot: #FF8B5C;
    --c-insta: #F472B6;
    --c-about: #2DD4BF;
  }
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}

.logo .dot {
  color: var(--c-naver);
  margin: 0 0;
}

/* === BYLINE (헤더 작가 정보) === */
.byline {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-naver);
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
}

.byline strong {
  font-weight: 700;
}

.byline-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--c-naver);
  border-radius: 50%;
  flex-shrink: 0;
}

.byline-soft {
  opacity: 0.4;
}

@media (max-width: 1000px) {
  .byline { display: none; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.header-btn:hover {
  background: var(--bg-hover);
  color: var(--ink);
}

.header-btn svg {
  width: 18px;
  height: 18px;
}

.subscribe-btn {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.subscribe-btn:hover { opacity: 0.85; }

/* === CATEGORY TABS === */
.tabs {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.tabs-inner {
  display: flex;
  gap: 4px;
  padding: 4px 24px 0;
  max-width: 880px;
  margin: 0 auto;
}

.tab {
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tab:hover { color: var(--ink); }

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.tab-count {
  font-size: 12px;
  color: var(--ink-4);
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}

.tab.active .tab-count { color: var(--ink-3); }

/* === TAGLINE === */
.tagline {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.tagline p {
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

.tagline p strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* === POSTS LIST === */
.posts {
  padding: 8px 0 64px;
}

.post {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 0;
}

.post:hover {
  background: var(--bg-hover);
}

.post:hover .post-title {
  color: var(--ink);
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.post-cat .cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cat-naver { color: var(--c-naver); }
.cat-naver .cat-dot { background: var(--c-naver); }
.cat-google { color: var(--c-google); }
.cat-google .cat-dot { background: var(--c-google); }
.cat-expand { color: var(--c-expand); }
.cat-expand .cat-dot { background: var(--c-expand); }
.cat-meta { color: var(--c-meta); }
.cat-meta .cat-dot { background: var(--c-meta); }

.post-divider {
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}

.post-date,
.post-readtime {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.post-excerpt {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.post-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-stats svg {
  width: 13px;
  height: 13px;
}

.post-arrow {
  color: var(--ink-4);
  font-size: 16px;
  transition: transform 0.2s, color 0.2s;
}

.post:hover .post-arrow {
  color: var(--ink-2);
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .post-title { font-size: 21px; }
  .post-excerpt { font-size: 15px; }
  .post { padding: 28px 16px; }
}

/* === LOAD MORE === */
.load-more {
  text-align: center;
  padding: 32px 0 64px;
}

.load-more button {
  background: none;
  border: 1px solid var(--line-2);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.load-more button:hover {
  background: var(--bg-hover);
  color: var(--ink);
  border-color: var(--ink-3);
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-about h4,
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 400px;
}

.footer-about .editor {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-about .editor strong {
  color: var(--ink-2);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: 14px;
  padding: 4px 0;
}

.footer-col li a {
  color: var(--ink-2);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col li a:hover { color: var(--ink); }

.footer-col li .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .sep {
  color: var(--ink-4);
  margin: 0 6px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* === HAMBURGER MENU & DRAWER === */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
}

.menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.menu-close {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.menu-close:hover {
  background: var(--bg-hover);
  color: var(--ink);
}

.menu-close svg { width: 18px; height: 18px; }

.menu-section-label {
  padding: 22px 24px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.menu-list {
  padding-bottom: 24px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s, padding 0.2s;
  border-left: 3px solid transparent;
  letter-spacing: -0.015em;
}

.menu-item:hover {
  background: var(--bg-hover);
  padding-left: 28px;
}

.menu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.menu-item-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.menu-footer {
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

/* === PAGE SYSTEM === */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === ARTICLE COMMON === */
.article-wrap { padding: 40px 0 80px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 28px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 6px 0;
  transition: color 0.15s, gap 0.2s;
}
.article-back:hover { color: var(--ink); gap: 10px; }

.article-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 18px;
}
.article-cat-label .cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.article-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}

.article-deck {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.article-meta .dot {
  width: 3px; height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}

.article-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.article-body p { margin-bottom: 22px; }
.article-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 40px 0 14px;
  line-height: 1.35;
  color: var(--ink);
}
.article-body strong { font-weight: 700; color: var(--ink); }

/* Page accent tokens */
.page-about { --accent: var(--c-about); }
.page-naver-blog { --accent: var(--c-naver); }
.page-smart-place { --accent: var(--c-naver); }
.page-wordpress { --accent: var(--c-google); }
.page-ai { --accent: var(--c-ai); }
.page-gbp { --accent: var(--c-google); }
.page-kakao { --accent: var(--c-kakao); }
.page-carrot { --accent: var(--c-carrot); }
.page-instagram { --accent: var(--c-insta); }
.page-meta-note { --accent: var(--c-meta); }

/* === ABOUT === */
.about-hero { padding: 48px 0 16px; }
.about-name {
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.about-name .hl { color: var(--accent); }
.about-tagline {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0 48px;
}
.about-stat {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.about-stat .num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}
.about-stat .num .unit { font-size: 13px; color: var(--ink-3); margin-left: 2px; font-weight: 600; }
.about-stat .label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline { position: relative; padding-left: 24px; margin: 24px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding: 10px 0 10px 12px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px; top: 16px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.timeline-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.timeline-text strong { color: var(--ink); font-weight: 700; }

/* === NUMBERED LIST (네이버 블로그) === */
.num-list { list-style: none; margin: 32px 0; }
.num-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.num-list .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  min-width: 50px;
  opacity: 0.9;
}
.num-list .item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.num-list .item-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* === A/B Test (스마트 플레이스) === */
.ab-test {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.ab-card {
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.ab-card.before { background: var(--bg-alt); }
.ab-card.after {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-color: var(--accent);
}
.ab-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.ab-card.before .ab-label { color: var(--ink-3); }
.ab-card.after .ab-label { color: var(--accent); }
.ab-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  font-style: italic;
}
@media (max-width: 640px) {
  .ab-test { grid-template-columns: 1fr; }
}

.bar-chart { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.bar-row .label { min-width: 90px; color: var(--ink-2); }
.bar-row .bar {
  flex-grow: 1;
  height: 24px;
  background: var(--bg-alt);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.bar-row .bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 0.5s ease;
}
.bar-row .bar-val {
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* === CODE BLOCK (워드프레스) === */
.code-block {
  background: #0E0E12;
  color: #E8E6DC;
  padding: 20px 24px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  margin: 24px 0;
  overflow-x: auto;
  border-left: 3px solid var(--accent);
}
.code-block .cm { color: rgba(232,230,220,0.4); }
.code-block .kw { color: var(--accent); font-weight: 500; }

.checklist { margin: 28px 0; list-style: none; }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.checklist .check {
  display: block;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.checklist li.done .check { background: var(--accent); }
.checklist li.done .check::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist li.done { color: var(--ink); }

/* === AI HERO === */
.ai-hero {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--c-ai) 30%, transparent), transparent 50%),
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--c-ai) 18%, transparent), transparent 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--c-ai) 8%, var(--bg)), color-mix(in srgb, var(--c-ai) 3%, var(--bg)));
  padding: 40px 28px;
  border-radius: 16px;
  margin: 28px 0;
  border: 1px solid color-mix(in srgb, var(--c-ai) 22%, var(--line));
  position: relative;
  overflow: hidden;
}
.ai-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ai);
  background: color-mix(in srgb, var(--c-ai) 12%, var(--bg));
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.ai-quote {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 14px 0;
}
.ai-quote .source {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 12px;
  letter-spacing: 0.05em;
  font-family: var(--sans);
}

/* === GBP MAP === */
.map-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  background-image:
    linear-gradient(rgba(66,133,244,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66,133,244,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.map-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.map-card .biz-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.map-card .biz-info {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}
.stars {
  display: inline-flex;
  gap: 1px;
  color: #FFB400;
  margin-right: 6px;
  font-size: 14px;
}

/* === KAKAO BUBBLES === */
.bubbles { margin: 28px 0; display: flex; flex-direction: column; gap: 6px; }
.kakao-bubble {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 460px;
  border: 1px solid var(--line);
}
.kakao-bubble.right {
  background: var(--c-kakao);
  color: #1A1A1A;
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
  border-color: var(--c-kakao);
}
.kakao-author {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  padding-left: 4px;
}
.kakao-time {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 4px;
  padding-left: 4px;
}

/* === METRIC CARDS (당근) === */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.metric-card {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
}
.metric-card .label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.metric-card .value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.metric-card .change {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.metric-card .change.down { color: #DC2626; }

/* === INSTAGRAM === */
.insta-hero {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #515BD4 100%);
  color: white;
  padding: 48px 28px;
  border-radius: 20px;
  margin: 28px 0;
  text-align: center;
}
.insta-hero h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 10px;
}
.insta-hero p { font-size: 14px; opacity: 0.94; letter-spacing: -0.01em; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}
.insta-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  padding: 12px;
  text-align: center;
  line-height: 1.35;
}
.insta-tile.t1 { background: linear-gradient(135deg, #F58529, #DD2A7B); }
.insta-tile.t2 { background: linear-gradient(135deg, #DD2A7B, #8134AF); }
.insta-tile.t3 { background: linear-gradient(135deg, #8134AF, #515BD4); }
.insta-tile.t4 { background: linear-gradient(135deg, #DD2A7B, #F58529); }
.insta-tile.t5 { background: linear-gradient(135deg, #515BD4, #8134AF); }
.insta-tile.t6 { background: linear-gradient(135deg, #F58529, #515BD4); }
.insta-tile.t7 { background: linear-gradient(135deg, #8134AF, #DD2A7B); }
.insta-tile.t8 { background: linear-gradient(135deg, #515BD4, #DD2A7B); }
.insta-tile.t9 { background: linear-gradient(135deg, #F58529, #8134AF); }

/* === NOTE PAPER (메타) === */
.note-paper {
  background: var(--bg-alt);
  padding: 36px 32px;
  border-radius: 4px;
  margin: 28px 0;
  border-left: 4px solid var(--accent);
  position: relative;
  box-shadow: 0 1px 0 var(--line);
}
.note-paper::before {
  content: '"';
  position: absolute;
  top: 0; left: 18px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.16;
  line-height: 1;
}
.note-date {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}
.note-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .article-title { font-size: 26px; }
  .insta-hero h2 { font-size: 24px; }
  .num-list .num { font-size: 28px; min-width: 44px; }
  .article-wrap { padding: 28px 0 60px; }
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================
   WordPress 환경 오버라이드
   ============================================ */

/* SPA가 아니므로 모든 page는 항상 표시 */
.page { display: block !important; }
.page.active { animation: fadeIn 0.3s ease; }

/* 워드프레스 콘텐츠 영역 보정 */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.article-body a {
  color: var(--accent, var(--ink));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.article-body ul:not(.num-list):not(.checklist),
.article-body ol:not(.num-list):not(.checklist) {
  margin: 18px 0 22px 24px;
  padding-left: 0;
}

.article-body ul:not(.num-list):not(.checklist) li,
.article-body ol:not(.num-list):not(.checklist) li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--accent, var(--ink-3));
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-2);
}

.article-body pre {
  background: #0E0E12;
  color: #E8E6DC;
  padding: 20px 24px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 24px 0;
  overflow-x: auto;
}

.article-body code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9em;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.article-body figure {
  margin: 24px 0;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 8px;
}

/* 페이지네이션 */
.load-more {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 32px;
  flex-wrap: wrap;
}

.load-more .page-numbers {
  background: none;
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  min-width: 40px;
  text-align: center;
}

.load-more .page-numbers:hover {
  background: var(--bg-hover);
  color: var(--ink);
  border-color: var(--ink-3);
}

.load-more .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.load-more .page-numbers.dots {
  border: none;
  background: none;
}

/* WP Admin Bar 보정 */
body.admin-bar header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header { top: 46px; }
}

/* 워드프레스 갤러리 */
.article-body .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 24px 0;
}

.article-body .wp-block-image img {
  margin: 0;
}

/* 워드프레스 자체 페이지(About 등) 본문 */
.page.active .article-body {
  font-size: 16.5px;
  line-height: 1.85;
}

/* ============================================
   v1.2.0 핫픽스
   ============================================ */

/* === 누락된 카테고리 색상 클래스 === */
.cat-ai    { color: var(--c-ai); }
.cat-ai    .cat-dot { background: var(--c-ai); }

.cat-kakao { color: var(--c-kakao); }
.cat-kakao .cat-dot { background: var(--c-kakao); }

.cat-insta { color: var(--c-insta); }
.cat-insta .cat-dot { background: var(--c-insta); }

.cat-about { color: var(--c-about); }
.cat-about .cat-dot { background: var(--c-about); }

/* === 헤더 완전 고정 (스크롤 무관) === */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* admin bar 있을 때 헤더 top 보정 */
body.admin-bar header { top: 32px !important; }
@media (max-width: 782px) {
    body.admin-bar header { top: 46px !important; }
}

/* 헤더 높이(약 67px)만큼 본문 상단 패딩 */
body { padding-top: 67px; }
body.admin-bar { padding-top: 99px; }
@media (max-width: 782px) {
    body.admin-bar { padding-top: 113px; }
}

/* 카테고리 탭도 헤더 아래에 살짝 sticky 추가 (선택적 강조) */
.tabs {
    position: sticky;
    top: 67px;
    z-index: 90;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.admin-bar .tabs { top: 99px; }
@media (max-width: 782px) {
    body.admin-bar .tabs { top: 113px; }
}
