/* ============================================================
   경원동# 서점 — Bookshop Community Design System
   독립서점 감성 · 트렌디 커뮤니티 · 종이/책장/큐레이션 무드
   ============================================================ */

:root {
  /* ── Primary: 버건디 로즈 — 잉크 레드, 표지 강조색 */
  --color-primary:        #D8334A;
  --color-primary-light:  #E85565;
  --color-primary-dark:   #B82038;
  --color-primary-bg:     #FBE9EC;

  /* ── Secondary: 딥 네이비 슬레이트 — 책등/잉크 */
  --color-secondary:      #2683C2;
  --color-secondary-light:#4A99D8;
  --color-secondary-dark: #1A6AA0;
  --color-secondary-bg:   #E8F3FB;

  /* ── Accent: 세이지 그린 — 책갈피/자연 */
  --color-accent:         #24A191;
  --color-accent-light:   #3DBAAA;
  --color-accent-dark:    #1A8078;
  --color-accent-bg:      #E7F7F5;

  /* ── 로고 3색 (브랜드 아이덴티티 유지) */
  --color-logo-red:   #D8334A;
  --color-logo-blue:  #2683C2;
  --color-logo-teal:  #24A191;

  /* ── Warm Amber — 책장/조명 포인트 */
  --color-warm:           #2683C2;
  --color-warm-bg:        #E8F3FB;

  /* ── Success */
  --color-success:        #24A191;
  --color-success-bg:     #E7F7F5;

  /* ── 배경: 종이/크림 톤 */
  --color-bg:        #F4F6F8;
  --color-surface:   #FFFFFF;
  --color-surface-2: #F0F3F6;
  --color-hover:     #E7E9EC;

  /* ── 텍스트: 잉크/브라운 계열 */
  --color-text:    #1F2328;
  --color-text-2:  #4A5260;
  --color-muted:   #8A9099;
  --color-muted-2: #C5C9CE;

  /* ── 보더: 종이 결 */
  --color-border:   #E7E9EC;
  --color-border-2: #D0D4D9;

  /* ── 폰트 */
  --font-body:  'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-serif: 'Noto Serif KR','Georgia',serif;
  --font-mono:  'SF Mono','Fira Mono','Consolas',monospace;

  /* ── 반경: 약간 덜 둥글게 — 책/카드 느낌 */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 999px;

  /* ── 그림자: 종이 위에 놓인 듯한 소프트 쉐도우 */
  --shadow-sm:  0 1px 3px rgba(31,35,40,0.07);
  --shadow:     0 3px 12px rgba(31,35,40,0.09);
  --shadow-md:  0 6px 24px rgba(31,35,40,0.11);
  --shadow-lg:  0 14px 40px rgba(31,35,40,0.14);
  --shadow-primary:   0 5px 18px rgba(216,51,74,0.25);
  --shadow-secondary: 0 5px 18px rgba(38,131,194,0.22);
  --shadow-accent:    0 5px 18px rgba(36,161,145,0.20);
}

/* ─────────────────── Reset & Base ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.68;
  letter-spacing: -0.010em;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─────────────────── Scrollbar ─────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ─────────────────── Typography ─────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-body);
  color: var(--color-text);
  letter-spacing: -0.028em;
  line-height: 1.25;
  font-weight: 800;
}

/* ─────────────────── Navbar ─────────────────── */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #ebebeb;
  position: sticky; top: 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center;
}

/* ─────────────────── Card ─────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-2);
  transform: translateY(-2px);
}

/* ─────────────────── Home Cards ─────────────────── */
.home-routine-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.home-routine-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-2);
}
/* 루틴 카드 상단 — 책등 색띠 */
.home-routine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-warm));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.home-group-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-group-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-2);
}

/* ─────────────────── Buttons ─────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-2);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-accent:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-secondary);
}

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: #C0392B;
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #A93226; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent;
  color: var(--color-muted);
  border: none;
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.btn-ghost:hover { background: var(--color-hover); color: var(--color-text); }

/* ─────────────────── Badge ─────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-general   { background: #EDE8E1; color: var(--color-text-2); }
.badge-organizer { background: #EDE9FE; color: #5B21B6; }
.badge-display   { background: #DBEAFE; color: #1D4ED8; }
.badge-seller    { background: #D6EDD8; color: #2A5C30; }
.badge-admin     { background: #FBE9EC; color: #B82038; }
.badge-recruiting{ background: #D6EDD8; color: #2A5C30; }
.badge-active    { background: #D6EDD8; color: #2A5C30; }
.badge-closed    { background: #EDE8E1; color: var(--color-muted); }
.badge-pending   { background: #E8F3FB; color: #7A4A18; }
.badge-approved  { background: #D6EDD8; color: #2A5C30; }
.badge-rejected  { background: #FBE9EC; color: #B82038; }

/* HOT / NEW 배지 — 서점 큐레이션 태그 느낌 */
.badge-hot {
  background: var(--color-primary);
  color: #fff;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.badge-new {
  background: var(--color-secondary);
  color: #fff;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.badge-streak {
  background: var(--color-warm-bg);
  color: var(--color-warm);
  border: 1px solid #E8C898;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.63rem;
  font-weight: 800;
}
.badge-funding {
  background: var(--color-accent-bg);
  color: var(--color-accent-dark);
  border: 1px solid #B8D0BC;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.63rem;
  font-weight: 800;
}

/* ─────────────────── Form ─────────────────── */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input::placeholder { color: var(--color-muted); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(216,51,74,0.10);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-2);
}
.form-group { margin-bottom: 16px; }

/* ─────────────────── Modal ─────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,20,15,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none !important; }

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.16s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────── Tabs ─────────────────── */
.tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ─────────────────── Section ─────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.3rem; font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}

/* ─────────────────── Sidebar ─────────────────── */
.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-border);
  min-height: calc(100vh - 80px);
  padding: 16px 10px;
}
.sidebar-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--color-text-2);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu-item:hover {
  background: var(--color-hover);
  color: var(--color-text);
}
.sidebar-menu-item.active {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  font-weight: 700;
}
.sidebar-menu-item .icon {
  width: 16px; text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  flex-shrink: 0;
}
.sidebar-menu-item.active .icon { color: var(--color-primary); }

/* ─────────────────── Stat Card ─────────────────── */
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--color-text); line-height: 1.2; letter-spacing: -0.02em; }
.stat-label { font-size: 0.78rem; color: var(--color-muted); margin-top: 4px; }

/* ─────────────────── Toast ─────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 300px;
  line-height: 1.45;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.toast-success { background: var(--color-surface); color: var(--color-text); border-left: 4px solid var(--color-accent); }
.toast-error   { background: var(--color-surface); color: var(--color-text); border-left: 4px solid var(--color-primary); }
.toast-info    { background: var(--color-surface); color: var(--color-text); border-left: 4px solid var(--color-secondary); }

/* ─────────────────── Loading ─────────────────── */
.loading-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────── Hero (Home) — 독립서점 야간 서가 ─────────────────── */
.hero {
  /* 심야 서점: 짙은 버건디 네이비 그라디언트 */
  background: linear-gradient(160deg, #1E1218 0%, #2A1C22 30%, #1A2535 65%, #0E1C28 100%);
  color: white;
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}
/* 배경 빛: 따뜻한 조명 + 세이지 반사 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 72% 20%, rgba(216,51,74,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 70%, rgba(38,131,194,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 85% 85%, rgba(36,161,145,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 30% at 40% 100%, rgba(38,131,194,0.12) 0%, transparent 60%);
  pointer-events: none;
}
/* 책장 텍스처 힌트 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 38px,
    rgba(255,255,255,0.018) 38px,
    rgba(255,255,255,0.018) 40px
  );
  pointer-events: none;
}
.hero-title {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
}

/* ─────────────────── Reaction Bar — 독립서점 공지판 ─────────────────── */
.reaction-bar {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.92);
  overflow: hidden;
  white-space: nowrap;
}
.reaction-bar-inner {
  display: flex;
  gap: 0;
  padding: 0;
  animation: tickerScroll 32s linear infinite;
}
.reaction-bar-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.reaction-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 28px;
  font-size: 0.79rem;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  flex-shrink: 0;
}
.reaction-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─────────────────── Home Sections ─────────────────── */
.home-section {
  padding: 64px 0;
}
.home-section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
/* 교차 섹션: 살짝 따뜻한 종이 느낌 */
.home-section-alt {
  background: var(--color-surface-2);
}

/* ─────────────────── Routine Card — 루틴 카드 (책갈피 느낌) ─────────────────── */
.routine-card-home {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  /* 왼쪽 세로 책등 색띠 */
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.22s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.routine-card-home:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-left-color: var(--color-primary-dark);
}

.routine-card-cheer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1.5px solid rgba(216,51,74,0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.routine-card-cheer-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.04);
}

/* ─────────────────── Group Card — 독서 모임 카드 ─────────────────── */
.group-card-home {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.group-card-home::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: var(--color-secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.group-card-home:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(38,131,194,0.3);
  transform: translateY(-3px);
}
.group-card-home:hover::after { opacity: 1; }

/* ─────────────────── Read Here Card — 에디토리얼/큐레이션 ─────────────────── */
.editorial-main-card {
  /* 오래된 책장 같은 딥 슬레이트 */
  background: linear-gradient(150deg, var(--color-secondary-dark) 0%, #243545 50%, #1A2535 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
/* 큐레이션 카드 세로 책등 줄무늬 */
.editorial-main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-warm) 100%);
}
.editorial-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.editorial-sub-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.editorial-sub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-2);
  transform: translateY(-3px);
}

/* ─────────────────── Market Card ─────────────────── */
.market-card-home {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.market-card-home:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-2);
}
.funding-progress {
  height: 5px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}
.funding-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────── Plan Card ─────────────────── */
.plan-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  background: var(--color-surface);
  transition: all 0.18s;
  position: relative;
}
.plan-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}
.plan-card.recommended {
  border-color: var(--color-primary);
  border-width: 2px;
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0;
}
.recommended-badge {
  position: absolute; top: -1px; right: 20px;
  background: var(--color-primary);
  color: white; font-size: 0.68rem; font-weight: 800;
  padding: 4px 12px; border-radius: 0 0 10px 10px;
  letter-spacing: 0.04em;
}

/* ─────────────────── Empty State ─────────────────── */
.empty-state {
  text-align: center; padding: 56px 24px;
  color: var(--color-muted);
}
.empty-state .icon {
  font-size: 2rem; margin-bottom: 12px; opacity: 0.4;
  display: block;
}
.empty-state p { font-size: 0.9rem; line-height: 1.6; }

/* ─────────────────── Post Card ─────────────────── */
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-2);
  transform: translateY(-2px);
}
.post-card-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-surface-2);
}
.post-card-body { padding: 16px 18px; }
.post-card-title {
  font-size: 0.9rem; font-weight: 700;
  color: var(--color-text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.post-card-excerpt {
  font-size: 0.8rem; color: var(--color-muted);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.55;
  margin-bottom: 10px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.74rem; color: var(--color-muted);
}
.post-card-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ─────────────────── Grid ─────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

@media (max-width:1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─────────────────── Section Layout ─────────────────── */
.section-wrap {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.section-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.section-block:last-child { border-bottom: none; }

.page-header {
  padding: 40px 24px 24px;
  max-width: 1160px; margin: 0 auto;
}
.page-header-title {
  font-size: 1.6rem; font-weight: 800;
  color: var(--color-text); margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.page-header-count { font-size: 0.82rem; color: var(--color-muted); }

/* ─────────────────── Search ─────────────────── */
.search-bar {
  display: flex; align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden; background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(216,51,74,0.08);
}
.search-bar input {
  flex: 1; padding: 9px 14px;
  border: none; outline: none;
  font-size: 0.875rem; color: var(--color-text);
  background: transparent;
}
.search-bar input::placeholder { color: var(--color-muted); }
.search-bar button {
  padding: 9px 14px; background: none;
  border: none; cursor: pointer;
  color: var(--color-muted);
  transition: color 0.1s;
}
.search-bar button:hover { color: var(--color-primary); }

/* ─────────────────── Filter Button ─────────────────── */
.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: transparent; color: var(--color-muted);
  transition: all 0.12s;
  white-space: nowrap;
}
.filter-btn:hover { background: var(--color-hover); color: var(--color-text); }
.filter-btn.active {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary);
}

/* ─────────────────── Admin Banner ─────────────────── */
.admin-edit-banner {
  background: var(--color-warm-bg);
  border-bottom: 1px solid #E8C898;
  padding: 8px 24px;
  font-size: 0.78rem; color: #7A4A18;
  display: flex; align-items: center; gap: 8px;
}

/* ─────────────────── Font Classes ─────────────────── */
.font-pretendard { font-family: 'Pretendard Variable','Pretendard',sans-serif; }
.font-noto-sans  { font-family: 'Noto Sans KR',sans-serif; }
.font-black-han  { font-family: 'Black Han Sans',sans-serif; }
.font-noto-serif { font-family: 'Noto Serif KR',serif; }
.font-gmarket    { font-family: 'GmarketSans',sans-serif; }
.font-serif      { font-family: var(--font-body); }
.font-hero       { font-family: var(--font-body); font-weight: 800; }
.font-display    { font-family: var(--font-body); font-weight: 800; }

/* ─────────────────── Mobile Nav ─────────────────── */
#mobile-nav-menu {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 8px 28px rgba(31,35,40,0.12);
}
#mobile-nav-menu button { border-bottom: 1px solid var(--color-border); }

/* ─────────────────── Calendar ─────────────────── */
.calendar-grid { width: 100%; }
.calendar-grid .grid { border-radius: var(--radius-md); overflow: hidden; }
#community-calendar, #home-calendar { min-height: 200px; }

.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; border-radius: 50%;
  cursor: pointer; transition: background 0.1s;
  font-weight: 400; position: relative;
}
.cal-day:hover { background: var(--color-primary-bg); }
.cal-day.today {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
}
.cal-day.has-event { font-weight: 700; color: var(--color-primary); }
.cal-day.has-event::after {
  content: ''; display: block; width: 4px; height: 4px;
  background: var(--color-primary); border-radius: 50%;
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
}

/* ─────────────────── Inline Editor ─────────────────── */
.inline-editor {
  border: 1.5px dashed #E8C898 !important;
  background: var(--color-warm-bg) !important;
  outline: none !important;
}

/* ─────────────────── Image Placeholder ─────────────────── */
.img-placeholder {
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted-2); font-size: 1.4rem;
}

/* ─────────────────── Floating Contact ─────────────────── */
#contact-float-btn {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 500;
}

/* ─────────────────── Divider ─────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}

/* ─────────────────── Chip ─────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem; color: var(--color-text-2);
  font-weight: 600;
}

/* ─────────────────── Callout ─────────────────── */
.callout {
  display: flex; gap: 10px;
  padding: 14px 16px;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-2);
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ─────────────────── Toggle ─────────────────── */
details.notion-toggle {
  border-radius: var(--radius-md);
  overflow: hidden;
}
details.notion-toggle > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border-radius: var(--radius-md);
  transition: background 0.08s;
  user-select: none;
}
details.notion-toggle > summary:hover { background: var(--color-hover); }
details.notion-toggle > summary::before {
  content: '▶';
  font-size: 0.55rem; color: var(--color-muted);
  transition: transform 0.15s;
  display: inline-block;
}
details.notion-toggle[open] > summary::before { transform: rotate(90deg); }
details.notion-toggle > *:not(summary) {
  padding: 6px 14px 12px 30px;
  font-size: 0.84rem; color: var(--color-text-2);
  line-height: 1.65;
}

/* ─────────────────── Bottom CTA — 책장 완성 초대 ─────────────────── */
.home-cta-section {
  /* 서점 야경: 딥 슬레이트 + 버건디 글로우 */
  background: linear-gradient(150deg, #1A1218 0%, #22202E 40%, #1A2535 80%, #101E18 100%);
  position: relative;
  overflow: hidden;
}
.home-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 25% 50%, rgba(216,51,74,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 82% 45%, rgba(36,161,145,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(38,131,194,0.10) 0%, transparent 55%);
  pointer-events: none;
}
/* 책장 세로 선 힌트 */
.home-cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 44px,
    rgba(255,255,255,0.015) 44px,
    rgba(255,255,255,0.015) 46px
  );
  pointer-events: none;
}

/* ─────────────────── Avatar Stack ─────────────────── */
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.avatar-stack .av:first-child { margin-left: 0; }

/* ─────────────────── Responsive ─────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .modal-box { padding: 24px 18px; }
  .hero { padding: 56px 20px 52px; }
  .home-section { padding: 48px 0; }
  .home-section-inner { padding: 0 16px; }
  .editorial-main-card { padding: 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 44px 16px 40px; }
  .home-section { padding: 40px 0; }
}

/* ─────────────────── Home Read Here 반응형 ─────────────────── */
.read-here-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .read-here-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────── Hero 반응형 콜라주 ─────────────────── */
@media (min-width: 900px) {
  #hero-collage { display: flex !important; flex-direction: column; gap: 12px; }
}

/* ─────────────────── Reaction Bar 강조 ─────────────────── */
.reaction-bar .reaction-item .highlight {
  color: #F2C098;
  font-weight: 800;
}

/* ─────────────────── Shimmer skeleton — 종이 색 베이스 ─────────────────── */
@keyframes shimmer {
  0%   { background-color: #EDE8E0; }
  50%  { background-color: #E4DDD4; }
  100% { background-color: #EDE8E0; }
}

/* ─────────────────── Utility ─────────────────── */
.text-muted    { color: var(--color-muted); }
.text-primary  { color: var(--color-primary); }
.text-secondary{ color: var(--color-secondary); }
.border-top    { border-top: 1px solid var(--color-border); }
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────── 서점 전용 컴포넌트 ─────────────────── */

/* 책등 태그 — 섹션 eyebrow 대신 사용 */
.book-spine-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
}
.book-spine-tag.secondary {
  background: var(--color-secondary);
}
.book-spine-tag.accent {
  background: var(--color-accent);
}

/* 큐레이션 카드 — 서가 분위기 */
.curation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}
.curation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.curation-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.curation-card:hover::before { opacity: 1; }

/* 종이 질감 섹션 배경 */
.paper-section {
  background:
    var(--color-surface-2)
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4C8BC' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 서점 섹션 구분선 — 책 사이 공간 느낌 */
.section-divider-book {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), var(--color-border-2), var(--color-border), transparent);
  margin: 0;
}

/* ============================================================
   감성 라이프스타일형 홈 — Lifestyle Home Styles
   ============================================================ */

/* ── 라이프스타일 히어로 ── */
.ls-hero {
  background: linear-gradient(160deg, #1E1218 0%, #22202E 35%, #1A2535 70%, #101E18 100%);
  min-height: 86vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.ls-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 48% 55% at 70% 18%, rgba(216,51,74,0.24) 0%, transparent 62%),
    radial-gradient(ellipse 38% 50% at 12% 72%, rgba(38,131,194,0.20) 0%, transparent 58%),
    radial-gradient(ellipse 32% 32% at 88% 82%, rgba(36,161,145,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 55% 28% at 45% 100%, rgba(38,131,194,0.11) 0%, transparent 55%);
  pointer-events: none;
}
/* 책장 세로 결 */
.ls-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 42px,
    rgba(255,255,255,0.016) 42px, rgba(255,255,255,0.016) 44px
  );
  pointer-events: none;
}
.ls-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .ls-hero { min-height: auto; padding: 64px 0 52px; }
  .ls-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ls-hero-right { display: none !important; }
}

/* 히어로 텍스트 영역 */
.ls-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,51,74,0.18);
  border: 1px solid rgba(216,51,74,0.38);
  border-radius: 4px;
  padding: 5px 14px;
  margin-bottom: 26px;
}
.ls-hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #E85565;
  animation: pulse 2s ease-in-out infinite;
}
.ls-hero-tag-text {
  font-size: 0.68rem; font-weight: 800;
  color: rgba(240,200,210,0.88);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-serif);
}
.ls-hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 900;
  color: #F5EDE0;
  line-height: 1.10;
  letter-spacing: -0.033em;
  margin-bottom: 20px;
}
.ls-hero-title em {
  font-style: italic;
  color: #C89070;
  font-family: var(--font-serif);
}
.ls-hero-title strong {
  color: #fff;
  font-weight: 900;
}
.ls-hero-sub {
  font-size: 1rem;
  color: rgba(240,225,205,0.62);
  line-height: 1.78;
  margin-bottom: 34px;
  max-width: 460px;
  font-weight: 400;
}
.ls-hero-cta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 38px;
}
.ls-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #D8334A; color: #fff;
  border: none; border-radius: 6px;
  padding: 13px 26px;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(216,51,74,0.38);
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.ls-cta-primary:hover {
  background: #B82038;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(216,51,74,0.48);
}
.ls-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  color: rgba(240,225,205,0.85);
  border: 1.5px solid rgba(240,225,205,0.22);
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.ls-cta-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(240,225,205,0.42);
}
.ls-hero-proof {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* 히어로 오른쪽 비주얼 카드 */
.ls-hero-right {
  display: flex; flex-direction: column; gap: 12px;
}
.ls-visual-card {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  transition: transform 0.2s;
}
.ls-visual-card:hover { transform: translateX(-4px); }
.ls-visual-card-label {
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 7px;
  opacity: 0.75;
}
.ls-visual-card-title {
  font-size: 0.9rem; font-weight: 700;
  color: #F5EDE0;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ls-visual-card-meta {
  font-size: 0.72rem;
  color: rgba(220,205,185,0.60);
}

/* ── 무드 스트립 ── */
.ls-mood-strip {
  background: var(--color-secondary);
  padding: 40px 32px;
}
.ls-mood-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .ls-mood-strip { padding: 32px 20px; }
  .ls-mood-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
}
@media (max-width: 420px) {
  .ls-mood-inner { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}
.ls-mood-item {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.ls-mood-item:first-child { padding-left: 0; }
.ls-mood-item:last-child { border-right: none; }
@media (max-width: 768px) {
  .ls-mood-item { padding: 0 16px; }
  .ls-mood-item:nth-child(2) { border-right: none; }
  .ls-mood-item:nth-child(3) { padding-left: 0; border-right: 1px solid rgba(255,255,255,0.10); }
}
.ls-mood-icon {
  font-size: 1.5rem; margin-bottom: 10px;
  display: block;
}
.ls-mood-title {
  font-size: 0.82rem; font-weight: 800;
  color: rgba(255,255,255,0.90);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.ls-mood-desc {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}

/* ── 라이프스타일 섹션 공통 ── */
.ls-section {
  padding: 72px 0;
}
.ls-section-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) {
  .ls-section { padding: 52px 0; }
  .ls-section-inner { padding: 0 18px; }
}
.ls-section-alt {
  background: var(--color-surface-2);
}
.ls-section-header {
  margin-bottom: 36px;
}
.ls-section-eyebrow {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}
.ls-section-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.032em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.ls-section-sub {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.ls-section-header-row {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.ls-more-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px;
  border: 1.5px solid var(--color-border-2);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ls-more-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* ── 루틴 카드 (라이프스타일형) ── */
.ls-routine-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  transition: all 0.22s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ls-routine-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-left-color: var(--color-primary-dark);
}
.ls-routine-card:nth-child(2) { border-left-color: var(--color-secondary); }
.ls-routine-card:nth-child(2):hover { border-left-color: var(--color-secondary-dark); }
.ls-routine-card:nth-child(3) { border-left-color: var(--color-accent); }
.ls-routine-card:nth-child(3):hover { border-left-color: var(--color-accent-dark); }

/* ── 커뮤니티 카드 ── */
.ls-community-featured {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.22s;
  cursor: pointer;
  position: relative;
}
.ls-community-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-border-2);
}
.ls-community-featured-img {
  height: 180px;
  background: linear-gradient(135deg, #2683C2 0%, #1A6AA0 100%);
  position: relative; overflow: hidden;
}
.ls-community-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.ls-community-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-2);
}

/* ── Read Here 에디토리얼 ── */
.ls-editorial-wrap {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) {
  .ls-editorial-wrap { grid-template-columns: 1fr; }
}
.ls-editorial-main {
  background: linear-gradient(150deg, var(--color-secondary-dark) 0%, #243545 55%, #1A2535 100%);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.22s, box-shadow 0.22s;
}
.ls-editorial-main::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-warm) 100%);
}
.ls-editorial-main:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.ls-editorial-main-body {
  position: relative; z-index: 2;
  padding: 32px 32px 32px 40px;
}
.ls-editorial-subs {
  display: flex; flex-direction: column; gap: 14px;
}
.ls-editorial-sub {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column;
}
.ls-editorial-sub:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-2);
}
.ls-editorial-sub-top {
  height: 5px;
}

/* ── 하단 CTA ── */
.ls-cta-section {
  background: linear-gradient(150deg, #1A1218 0%, #22202E 40%, #1A2535 80%, #101E18 100%);
  padding: 88px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ls-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 22% 50%, rgba(216,51,74,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 42% 58% at 85% 45%, rgba(36,161,145,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 48% 28% at 50% 100%, rgba(38,131,194,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.ls-cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 44px,
    rgba(255,255,255,0.014) 44px, rgba(255,255,255,0.014) 46px
  );
  pointer-events: none;
}
.ls-cta-inner {
  position: relative; z-index: 2;
  max-width: 660px; margin: 0 auto;
}
.ls-cta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(216,51,74,0.18);
  border: 1px solid rgba(216,51,74,0.35);
  border-radius: 4px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
.ls-cta-title {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: #F5EDE0;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.ls-cta-title em {
  font-style: italic;
  color: #C89070;
  font-family: var(--font-serif);
}
.ls-cta-sub {
  font-size: 0.9rem;
  color: rgba(240,225,205,0.50);
  margin-bottom: 36px;
  line-height: 1.7;
}
.ls-cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.ls-cta-line {
  margin-top: 38px;
  font-size: 0.75rem;
  color: rgba(200,175,155,0.32);
  letter-spacing: 0.06em;
  font-family: var(--font-serif);
}

/* ── 북토크/책장이야기 통합 ── */
.ls-booktalk-card {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column;
}
.ls-booktalk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-2);
}
.ls-booktalk-cover {
  height: 150px;
  background: linear-gradient(135deg, #2683C2, #1A6AA0);
  position: relative; overflow: hidden;
}
.ls-stories-card {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.ls-stories-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-2);
}

/* ── 가로 스크롤 카드 (모바일) ── */
.ls-hscroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ls-hscroll::-webkit-scrollbar { display: none; }
.ls-hscroll > * { flex-shrink: 0; width: 260px; }

/* ── 태그 칩 ── */
.ls-tag {
  display: inline-block;
  padding: 2px 9px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-2);
}

/* ── 응원 버튼 ── */
.ls-cheer-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1.5px solid rgba(216,51,74,0.22);
  border-radius: 6px;
  font-size: 0.77rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ls-cheer-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.04);
}

/* ── 참여 버튼 ── */
.ls-join-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: var(--color-secondary-bg);
  color: var(--color-secondary);
  border: 1.5px solid rgba(38,131,194,0.20);
  border-radius: 6px;
  font-size: 0.77rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ls-join-btn:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* ── 아바타 스택 ── */
.ls-avatar-row {
  display: flex; align-items: center;
}
.ls-avatar-row .av {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--color-surface);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: #fff;
  margin-left: -6px; flex-shrink: 0;
}
.ls-avatar-row .av:first-child { margin-left: 0; }

/* ── 마켓/굿즈 카드 ── */
.ls-goods-card {
  background: var(--color-surface);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.ls-goods-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-2);
}

/* ── 반응 바 ── */
.ls-ticker {
  background: var(--color-secondary);
  overflow: hidden;
  white-space: nowrap;
}
.ls-ticker-inner {
  display: inline-flex;
  animation: tickerScroll 32s linear infinite;
}
.ls-ticker-inner:hover { animation-play-state: paused; }
.ls-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 28px;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-right: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── shimmer (크림 베이스) ── */
.ls-shimmer {
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* ── 반응형 그리드 ── */
.ls-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .ls-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ls-grid-3 { grid-template-columns: 1fr; } }

.ls-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) { .ls-grid-2 { grid-template-columns: 1fr; } }

.ls-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) { .ls-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .ls-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ================================================================
   LSH — Lifestyle Home Design System (lsh-*)
   경원동# 감성 라이프스타일형 홈 전용 스타일
   Primary: #D8334A  Secondary: #2683C2  Accent: #24A191
   BG: #F4F6F8  Surface: #FFFFFF  Text: #1F2328  Border: #E7E9EC
================================================================ */

/* ──────── 공통 리셋 & 유틸 ──────── */
.lsh-section       { padding: 72px 0; }
.lsh-section-cream { background: #F7F5F0; }
.lsh-section-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.lsh-eyebrow {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px; display: block;
  font-family: var(--font-body);
}

.lsh-section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.lsh-section-head-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.lsh-section-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900; color: var(--color-text);
  letter-spacing: -0.032em; line-height: 1.22;
  margin-bottom: 6px;
}
.lsh-section-sub {
  font-size: 0.88rem; color: var(--color-muted);
  line-height: 1.65;
}

/* ──────── 공통 버튼 ──────── */
.lsh-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #D8334A; color: #fff;
  border: none; border-radius: 8px;
  padding: 13px 26px;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(216,51,74,0.32);
  transition: all 0.2s;
}
.lsh-btn-primary:hover {
  background: #B82038;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(216,51,74,0.42);
}

.lsh-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,35,40,0.06);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 8px; padding: 12px 22px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
}
.lsh-btn-ghost:hover {
  background: rgba(31,35,40,0.10);
  border-color: var(--color-border-2);
}

.lsh-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--color-text-2);
  border: 1.5px solid var(--color-border-2);
  border-radius: 999px; padding: 8px 18px;
  font-size: 0.84rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.lsh-btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lsh-btn-full {
  display: block; width: 100%;
  background: #1F2328; color: #fff;
  border: none; border-radius: 8px; padding: 11px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: all 0.15s;
}
.lsh-btn-full:hover { background: #2F3845; }

/* ──────── 스켈레톤 공통 ──────── */
.lsh-skel-line {
  height: 13px; background: #EBEBEB;
  border-radius: 6px; margin-bottom: 7px;
  animation: lshShimmer 1.6s ease-in-out infinite;
}
@keyframes lshShimmer {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ================================================================
   HERO
================================================================ */
.lsh-hero {
  background: linear-gradient(148deg, #F9F6F1 0%, #F4EFE8 45%, #F7F3EE 100%);
  color: var(--color-text);
  padding: 84px 0 80px;
  position: relative; overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--color-border);
}

/* 배경 글로우 레이어 */
.lsh-hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 80% 10%, rgba(216,51,74,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 80%, rgba(38,131,194,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(36,161,145,0.05) 0%, transparent 55%);
}
/* 세로 책등 줄무늬 질감 */
.lsh-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 44px,
    rgba(0,0,0,0.012) 44px, rgba(0,0,0,0.012) 46px
  );
}

/* 이미지 오버레이 */
.lsh-hero-img-overlay {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18; z-index: 0;
  pointer-events: none;
}

/* 내부 레이아웃 */
.lsh-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 52px; align-items: center;
  width: 100%;
}

/* 좌측 카피 */
.lsh-hero-copy { max-width: 600px; }

.lsh-eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,51,74,0.07);
  border: 1px solid rgba(216,51,74,0.22);
  border-radius: 4px; padding: 5px 14px;
  margin-bottom: 26px;
  font-size: 0.7rem; font-weight: 800;
  color: #D8334A;
  letter-spacing: 0.12em;
  font-family: var(--font-serif);
}
.lsh-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #D8334A; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.lsh-hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 900; color: var(--color-text);
  line-height: 1.10; letter-spacing: -0.036em;
  margin-bottom: 20px;
}
.lsh-hero-em {
  font-style: italic;
  color: #D8334A;
  font-family: var(--font-serif);
}

.lsh-hero-sub {
  font-size: 0.97rem; color: var(--color-muted);
  line-height: 1.78; margin-bottom: 32px;
  font-weight: 400;
}

.lsh-hero-cta-row {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
}

/* 소셜 프루프 */
.lsh-hero-proof {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.lsh-proof-avatars { display: flex; align-items: center; }
.lsh-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #D8334A, #2683C2);
  border: 2px solid rgba(255,255,255,0.45);
  display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem;
  flex-shrink: 0;
}
.lsh-proof-text {
  font-size: 0.8rem; color: var(--color-muted);
  font-weight: 500;
}
.lsh-proof-dot {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.lsh-proof-live {
  font-size: 0.78rem; color: #24A191;
  font-weight: 600;
}

/* 우측 비주얼 카드 */
.lsh-hero-visual {
  display: flex; flex-direction: column;
  gap: 12px;
}

.lsh-vis-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--color-text);
  transition: transform 0.2s;
  box-shadow: var(--shadow);
}
.lsh-vis-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.lsh-vis-card--group { background: rgba(38,131,194,0.10); border-color: rgba(38,131,194,0.25); }
.lsh-vis-card--space {
  display: flex; align-items: center;
  gap: 14px;
  background: rgba(36,161,145,0.08); border-color: rgba(36,161,145,0.25);
}

.lsh-vis-label {
  font-size: 0.63rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.lsh-vis-title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--color-text); margin-bottom: 8px;
}
.lsh-vis-meta {
  font-size: 0.75rem; color: var(--color-muted);
  display: flex; align-items: center; gap: 6px;
}
.lsh-vis-sep { opacity: 0.4; }
.lsh-vis-badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700;
}
.lsh-vis-space-icon { font-size: 1.8rem; flex-shrink: 0; }

.lsh-vis-progress-bar {
  height: 4px; background: var(--color-border);
  border-radius: 99px; overflow: hidden; margin-top: 10px;
}
.lsh-vis-progress-fill { height: 100%; border-radius: 99px; }

.lsh-vis-goods-tag {
  background: rgba(216,51,74,0.06);
  border: 1px dashed rgba(216,51,74,0.28);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem; color: #D8334A;
  text-align: center;
  font-weight: 600;
}

/* ================================================================
   티커 바
================================================================ */
.lsh-ticker-wrap {
  background: var(--color-text);
  overflow: hidden; white-space: nowrap;
}
.lsh-ticker-inner {
  display: inline-flex;
  animation: tickerScroll 34s linear infinite;
}
.lsh-ticker-inner:hover { animation-play-state: paused; }
.lsh-ticker-item {
  display: inline-flex; align-items: center;
  gap: 8px; padding: 9px 28px;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.78);
  border-right: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap; flex-shrink: 0;
}
.lsh-ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; animation: pulse 2s ease-in-out infinite;
}

/* ================================================================
   무드/가치 스트립
================================================================ */
.lsh-strip-section {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 52px 0;
}
.lsh-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.lsh-strip-card {
  padding: 24px 28px;
  border-right: 1px solid var(--color-border);
  transition: background 0.2s;
}
.lsh-strip-card:last-child { border-right: none; }
.lsh-strip-card:hover { background: var(--color-surface-2); }

.lsh-strip-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.lsh-strip-label {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.lsh-strip-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--color-text); line-height: 1.4;
  margin-bottom: 6px;
}
.lsh-strip-desc {
  font-size: 0.8rem; color: var(--color-muted);
  line-height: 1.6;
}

/* ================================================================
   책장/북토크 2열 블록
================================================================ */
.lsh-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lsh-feature-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
}
.lsh-feature-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--color-border);
}
.lsh-feature-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.lsh-feature-title {
  font-size: 1.05rem; font-weight: 800;
  color: var(--color-text); margin-bottom: 5px;
}
.lsh-feature-desc {
  font-size: 0.82rem; color: var(--color-muted); line-height: 1.55;
}

/* 피드 리스트 */
.lsh-feed-list { padding: 8px 0; }
.lsh-feed-skeleton {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-border);
}
.lsh-feed-skeleton:last-child { border-bottom: none; }
.lsh-skel-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #EBEBEB; flex-shrink: 0;
  animation: lshShimmer 1.6s ease-in-out infinite;
}
.lsh-skel-cal {
  width: 36px; height: 36px; border-radius: 8px;
  background: #E8F3FB; flex-shrink: 0;
  animation: lshShimmer 1.6s ease-in-out infinite;
}
.lsh-skel-lines { flex: 1; }

.lsh-block-more-btn {
  display: block; width: 100%;
  padding: 14px; background: none;
  border: none; border-top: 1px solid var(--color-border);
  font-size: 0.84rem; font-weight: 600;
  color: var(--color-text-2); cursor: pointer;
  text-align: center; transition: all 0.15s;
  border-radius: 0 0 20px 20px;
}
.lsh-block-more-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

/* ================================================================
   루틴 그리드
================================================================ */
.lsh-routine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lsh-routine-skel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px; overflow: hidden;
}
.lsh-skel-bar {
  height: 5px;
  background: linear-gradient(90deg,#EBEBEB 0%,#D5D5D5 100%);
  animation: lshShimmer 1.6s ease-in-out infinite;
}

/* 실제 루틴 카드 (JS renderRoutineCards가 채움) */
.lsh-routine-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.22s; cursor: pointer;
  position: relative;
}
.lsh-routine-card::before {
  content: none;
}
.lsh-routine-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.lsh-routine-card-body { padding: 20px; }

/* ================================================================
   커뮤니티 그룹 그리드 (1 featured + 3 small)
================================================================ */
.lsh-group-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.lsh-group-skel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px; overflow: hidden;
}
.lsh-group-skel--featured {
  grid-row: span 2;
}
.lsh-skel-cover {
  height: 130px;
  background: linear-gradient(135deg, #EBEBEB, #D5D5D5);
  animation: lshShimmer 1.6s ease-in-out infinite;
}
.lsh-group-skel--featured .lsh-skel-cover { height: 200px; }

/* 실제 그룹 카드 */
.lsh-group-card {
  background: var(--color-surface);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column;
}
.lsh-group-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(38,131,194,0.25);
}
.lsh-group-card--featured { grid-row: span 2; }
.lsh-group-card-cover {
  height: 130px; position: relative;
  overflow: hidden; flex-shrink: 0;
}
.lsh-group-card--featured .lsh-group-card-cover { height: 200px; }
.lsh-group-card-body { padding: 18px; flex: 1; }

/* ================================================================
   에디토리얼 / Read Here
================================================================ */
.lsh-editorial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

/* 메인 에디토리얼 카드 */
.lsh-editorial-main {
  background: linear-gradient(150deg, #1F2328 0%, #2A3545 55%, #1F2830 100%);
  border-radius: 22px; padding: 40px;
  color: #fff; position: relative; overflow: hidden;
  cursor: pointer; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.22s;
  box-shadow: var(--shadow-md);
}
.lsh-editorial-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lsh-editorial-main-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 80% 10%, rgba(216,51,74,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(38,131,194,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(36,161,145,0.08) 0%, transparent 70%);
}
.lsh-editorial-main-body { position: relative; z-index: 1; }

.lsh-editorial-label {
  display: inline-block;
  background: rgba(216,51,74,0.25);
  border: 1px solid rgba(216,51,74,0.45);
  color: #FFCCD5;
  font-size: 0.65rem; font-weight: 800;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.1em; margin-bottom: 18px;
}
.lsh-editorial-title {
  font-size: 1.55rem; font-weight: 900;
  color: #fff; line-height: 1.28;
  letter-spacing: -0.022em; margin-bottom: 12px;
}
.lsh-editorial-subtitle {
  display: block; font-size: 0.92rem;
  font-weight: 400; opacity: 0.65;
}
.lsh-editorial-desc {
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
  line-height: 1.68; margin-bottom: 24px;
}
.lsh-editorial-meta-row {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,0.60);
}
.lsh-editorial-reserve-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(216,51,74,0.20);
  color: #FFCCD5; border: 1px solid rgba(216,51,74,0.45);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: all 0.15s;
}
.lsh-editorial-reserve-btn:hover {
  background: #D8334A; color: #fff;
  border-color: #D8334A;
}
}

/* 서브 카드 영역 */
.lsh-editorial-subs {
  display: flex; flex-direction: column;
  gap: 18px;
}
.lsh-editorial-sub {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 0.2s;
  flex: 1;
}
.lsh-editorial-sub:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.lsh-editorial-sub--info { cursor: default; }
.lsh-editorial-sub--info:hover { transform: none; box-shadow: none; }

.lsh-editorial-sub-bar { height: 5px; }
.lsh-editorial-sub-body { padding: 20px; }
.lsh-editorial-sub-label {
  display: inline-block;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--color-surface-2);
  color: var(--color-muted);
  padding: 2px 8px; border-radius: 4px;
  margin-bottom: 10px;
}
.lsh-editorial-sub-title {
  font-size: 0.98rem; font-weight: 800;
  color: var(--color-text); margin-bottom: 6px;
}
.lsh-editorial-sub-desc {
  font-size: 0.82rem; color: var(--color-muted); line-height: 1.6;
}

/* 이용 안내 인포 리스트 */
.lsh-info-list { display: flex; flex-direction: column; gap: 11px; }
.lsh-info-row { display: flex; align-items: center; gap: 10px; }
.lsh-info-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; flex-shrink: 0;
}
.lsh-info-title {
  font-size: 0.84rem; font-weight: 700; color: var(--color-text);
}
.lsh-info-sub { font-size: 0.74rem; color: var(--color-muted); }

/* ================================================================
   굿즈 그리드
================================================================ */
.lsh-goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.lsh-goods-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px; padding: 24px;
  cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.lsh-goods-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lsh-goods-spine {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 18px 0 0 18px;
}
.lsh-goods-emoji { font-size: 2rem; margin-bottom: 12px; }
.lsh-goods-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 4px; font-size: 0.62rem;
  font-weight: 800; letter-spacing: 0.06em;
  margin-bottom: 9px;
}
.lsh-goods-title {
  font-size: 0.9rem; font-weight: 800;
  color: var(--color-text); margin-bottom: 5px;
}
.lsh-goods-desc {
  font-size: 0.78rem; color: var(--color-muted);
  line-height: 1.55;
}

/* ================================================================
   하단 CTA 섹션
================================================================ */
.lsh-cta-section {
  background: linear-gradient(155deg, #1F2328 0%, #2A3545 40%, #1F2830 100%);
  padding: 96px 28px;
  position: relative; overflow: hidden;
  text-align: center;
}
.lsh-cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(216,51,74,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(38,131,194,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(36,161,145,0.15) 0%, transparent 55%);
}
/* 책등 줄무늬 */
.lsh-cta-section::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 44px,
    rgba(255,255,255,0.018) 44px, rgba(255,255,255,0.018) 46px
  );
}
.lsh-cta-inner {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto;
}
.lsh-cta-tag {
  display: inline-flex; align-items: center;
  background: rgba(216,51,74,0.15);
  border: 1px solid rgba(216,51,74,0.35);
  border-radius: 4px; padding: 5px 14px;
  margin-bottom: 22px;
  font-size: 0.68rem; font-weight: 800;
  color: #FFCCD5;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-serif);
}
.lsh-cta-title {
  font-size: clamp(1.65rem, 4.2vw, 2.6rem);
  font-weight: 900; color: #F5EDF0;
  line-height: 1.22; letter-spacing: -0.032em;
  margin-bottom: 14px;
}
.lsh-cta-em {
  font-style: italic; color: #E85565;
  font-family: var(--font-serif);
}
.lsh-cta-sub {
  font-size: 0.92rem; color: rgba(245,235,230,0.55);
  line-height: 1.75; margin-bottom: 38px;
}
.lsh-cta-btns {
  display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap;
}
.lsh-cta-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #D8334A; color: #fff;
  border: none; border-radius: 8px;
  padding: 14px 28px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
  box-shadow: 0 6px 24px rgba(216,51,74,0.42);
  transition: all 0.2s;
}
.lsh-cta-btn-primary:hover {
  background: #B82038; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(216,51,74,0.52);
}
.lsh-cta-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(38,131,194,0.15);
  color: rgba(200,230,255,0.88);
  border: 1.5px solid rgba(38,131,194,0.35);
  border-radius: 8px; padding: 13px 22px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.lsh-cta-btn-secondary:hover {
  background: #2683C2; color: #fff;
  border-color: #2683C2;
}
.lsh-cta-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: rgba(200,220,218,0.55);
  border: 1px solid rgba(36,161,145,0.25);
  border-radius: 8px; padding: 13px 20px;
  font-size: 0.84rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.lsh-cta-btn-ghost:hover {
  color: #24A191;
  border-color: rgba(36,161,145,0.6);
  background: rgba(36,161,145,0.10);
}
.lsh-cta-tagline {
  margin-top: 38px; font-size: 0.76rem;
  color: rgba(200,220,215,0.28);
  letter-spacing: 0.06em;
  font-family: var(--font-serif);
}

/* ================================================================
   반응형 — Tablet (≤900px)
================================================================ */
@media (max-width: 900px) {
  .lsh-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lsh-hero-visual { display: none; } /* 모바일에서 카드 숨김 */
  .lsh-hero { padding: 64px 0 60px; min-height: auto; }
  .lsh-hero-copy { max-width: 100%; }

  .lsh-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .lsh-strip-card:nth-child(2) { border-right: none; }
  .lsh-strip-card:nth-child(3),
  .lsh-strip-card:nth-child(4) {
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }
  .lsh-strip-card:nth-child(4) { border-right: none; }

  .lsh-two-col-grid { grid-template-columns: 1fr; }
  .lsh-routine-grid { grid-template-columns: repeat(2, 1fr); }
  .lsh-group-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .lsh-group-skel--featured { grid-row: span 1; }
  .lsh-editorial-grid { grid-template-columns: 1fr; }
  .lsh-editorial-main { min-height: 280px; }
  .lsh-section { padding: 52px 0; }
  .lsh-section-inner { padding: 0 20px; }
}

/* ================================================================
   반응형 — Mobile (≤600px)
================================================================ */
@media (max-width: 600px) {
  .lsh-hero { padding: 52px 0 48px; }
  .lsh-hero-title { font-size: 2.1rem; }
  .lsh-hero-cta-row { flex-direction: column; align-items: stretch; }
  .lsh-btn-primary,
  .lsh-btn-ghost { width: 100%; justify-content: center; }

  .lsh-strip-inner { grid-template-columns: 1fr 1fr; }
  .lsh-strip-card { padding: 18px 16px; }

  .lsh-routine-grid { grid-template-columns: 1fr; }
  .lsh-group-grid {
    grid-template-columns: 1fr;
    overflow-x: auto;
    display: flex; flex-direction: column;
  }

  .lsh-editorial-main { padding: 28px 22px; min-height: 240px; }
  .lsh-editorial-title { font-size: 1.25rem; }

  .lsh-cta-title { font-size: 1.65rem; }
  .lsh-cta-btns { flex-direction: column; align-items: stretch; }
  .lsh-cta-btn-primary,
  .lsh-cta-btn-secondary,
  .lsh-cta-btn-ghost { width: 100%; justify-content: center; }

  .lsh-goods-grid { grid-template-columns: 1fr 1fr; }
  .lsh-section { padding: 44px 0; }
  .lsh-section-inner { padding: 0 16px; }
  .lsh-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ================================================================
   NEW HOME DESIGN — 화이트 미니멀 히어로 + 콘텐츠 섹션
   참고: 레퍼런스 시안 (좌측 카피, 우하단 캐릭터)
================================================================ */

/* ── 네비바 미니멀 스타일 ── */
.navbar-minimal {
  background: #fff !important;
  border-bottom: 1px solid #ebebeb !important;
  backdrop-filter: none !important;
  height: 80px !important;
}

/* ── 새 히어로 섹션 ── */
.new-hero {
  background: #ffffff;
  min-height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.new-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  min-height: calc(100vh - 80px);
  position: relative;
  display: flex;
  align-items: center;
}

/* 메인 카피 */
.new-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  max-width: 700px;
}

.new-hero-title {
  font-family: 'Black Han Sans', 'GmarketSans', 'Noto Sans KR', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: #111;
  letter-spacing: -0.03em;
  margin: 0 0 28px 0;
  white-space: nowrap;
}

.new-hero-bracket {
  font-family: 'Black Han Sans', 'GmarketSans', sans-serif;
  color: #111;
  display: inline-block;
}

.new-hero-sub {
  font-size: 0.95rem;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
  line-height: 1.6;
}

.new-hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.new-hero-btn-primary {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.new-hero-btn-primary:hover { opacity: 0.82; }

.new-hero-btn-ghost {
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.new-hero-btn-ghost:hover { background: #111; color: #fff; }

/* 캐릭터 — 우하단 고정 */
.new-hero-char {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(280px, 42vw, 560px);
  height: clamp(280px, 42vw, 560px);
  pointer-events: none;
  z-index: 1;
}

.new-hero-char-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: clamp(8rem, 22vw, 18rem);
  opacity: 0.12;
}

/* ── 홈 콘텐츠 섹션 공통 ── */
.home-section {
  background: #fff;
  padding: 56px 0;
  border-top: 1px solid #f0f0f0;
}

.home-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 3열 그리드 (Book / Community / Talk) */
.home-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.home-3col-grid .home-col-block {
  border-right: 1px solid #f0f0f0;
  padding: 0 32px 0 0;
  margin-right: 32px;
}
.home-3col-grid .home-col-block:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.home-3col-grid .home-col-block:not(:first-child) {
  padding-left: 32px;
  margin-left: 0;
}

/* 2열 그리드 (Loutin / Readhere) */
.home-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.home-2col-grid .home-col-block {
  border-right: 1px solid #f0f0f0;
  padding: 0 48px 0 0;
  margin-right: 48px;
}
.home-2col-grid .home-col-block:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.home-2col-grid .home-col-block:not(:first-child) {
  padding-left: 48px;
}

/* 컬럼 헤더 */
.home-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.home-col-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
}

.home-col-label--book     { color: #D8334A; }
.home-col-label--community { color: #2683C2; }
.home-col-label--talk     { color: #24A191; }
.home-col-label--loutin   { color: #D8334A; }
.home-col-label--readhere { color: #2683C2; }

.home-col-more {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: #bbb;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  padding: 0;
  transition: color 0.15s;
}
.home-col-more:hover { color: #111; }

/* 피드 리스트 */
.home-feed-list { display: flex; flex-direction: column; gap: 0; }

.home-feed-item {
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 4px;
  padding-left: 4px;
}
.home-feed-item:last-child { border-bottom: none; }
.home-feed-item:hover { background: #fafafa; }

.home-feed-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 5px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feed-item-meta {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0;
  font-weight: 400;
}

.home-feed-empty {
  font-size: 0.82rem;
  color: #ccc;
  text-align: center;
  padding: 24px 0;
  margin: 0;
}

/* 스켈레톤 */
.home-feed-skel {
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-skel-line {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Readhere 고정 정보 */
.home-readhere-info { display: flex; flex-direction: column; gap: 0; }

.home-readhere-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 4px;
  padding-left: 4px;
}
.home-readhere-row:last-child { border-bottom: none; }
.home-readhere-row:hover { background: #fafafa; }

.home-readhere-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.home-readhere-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px 0;
}

.home-readhere-meta {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0;
}

/* 섹션 구분선 */
.home-divider {
  height: 1px;
  background: #f0f0f0;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── 하단 CTA ── */
.home-bottom-cta {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  padding: 80px 0;
  text-align: center;
}

.home-bottom-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-bottom-cta-en {
  font-size: 0.72rem;
  color: #ccc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  font-family: var(--font-body);
}

.home-bottom-cta-title {
  font-family: 'Black Han Sans', 'GmarketSans', 'Noto Sans KR', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #111;
  line-height: 1.25;
  margin: 0 0 36px 0;
  letter-spacing: -0.02em;
}

.home-bottom-cta-title em {
  font-style: normal;
  color: #D8334A;
}

.home-bottom-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .new-hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); white-space: normal; }
  .new-hero-inner { padding: 0 32px; }
  .home-section-inner { padding: 0 32px; }
}

@media (max-width: 900px) {
  .new-hero {
    min-height: auto;
    padding: 60px 0 0 0;
  }
  .new-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    min-height: auto;
  }
  .new-hero-copy {
    padding-top: 0;
    padding-bottom: 40px;
    max-width: 100%;
    z-index: 2;
  }
  .new-hero-title {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    white-space: normal;
  }
  .new-hero-char {
    position: relative;
    bottom: auto;
    right: auto;
    width: 240px;
    height: 240px;
    align-self: flex-end;
    margin-left: auto;
  }

  .home-3col-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .home-3col-grid .home-col-block {
    border-right: none;
    padding: 0 0 32px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .home-3col-grid .home-col-block:last-child { border-bottom: none; padding-bottom: 0; }
  .home-3col-grid .home-col-block:not(:first-child) { padding-left: 0; }

  .home-2col-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .home-2col-grid .home-col-block {
    border-right: none;
    padding: 0 0 32px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .home-2col-grid .home-col-block:last-child { border-bottom: none; padding-bottom: 0; }
  .home-2col-grid .home-col-block:not(:first-child) { padding-left: 0; }

  .home-section-inner { padding: 0 20px; }
  .home-section { padding: 40px 0; }

  .home-bottom-cta-btns { flex-direction: column; align-items: center; }
  .home-bottom-cta-btns button { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .new-hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .new-hero-char { width: 180px; height: 180px; }
}

/* ════════════════════════════════════════════════════════════════
   홈 게시판 카드 스타일 — Book (그리드) / Community·Talk·Loutin (가로 카드)
   ════════════════════════════════════════════════════════════════ */

/* ── Book 카드 그리드 (3×2 or 2×3) ── */
.home-book-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.home-book-card-skel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.home-book-card-skel-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
}

.home-book-card-skel-body {
  padding: 10px 12px 12px;
}

/* 실제 Book 카드 */
.home-book-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}

.home-book-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.home-book-card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.home-book-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-book-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #bbb;
  background: linear-gradient(135deg, #f7f3ee, #e8e0d8);
}

.home-book-card-body {
  padding: 10px 12px 12px;
}

.home-book-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 5px 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-book-card-excerpt {
  font-size: 0.72rem;
  color: #888;
  margin: 0 0 6px 0;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-book-card-meta {
  font-size: 0.68rem;
  color: #bbb;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-book-card-dot {
  color: #ddd;
}

/* ── Community·Talk·Loutin 가로 카드 리스트 ── */
.home-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 4px;
}

.home-card-row:last-child { border-bottom: none; }
.home-card-row:hover { background: #fafafa; padding-left: 4px; }

.home-card-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.home-card-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card-row-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.home-card-row-skel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
}

.home-card-row-skel-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
}

.home-card-row-body {
  flex: 1;
  min-width: 0;
}

.home-card-row-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 5px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-row-meta {
  font-size: 0.72rem;
  color: #aaa;
  margin: 0;
}

/* ── 반응형: 태블릿 이하 Book 카드 1열 ── */
@media (max-width: 480px) {
  .home-book-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════
   히어로 배너 + 공통 페이지 배너 — 16:9 비율 통일
   padding-top 트릭으로 aspect-ratio 강제 적용 (IE/Safari 호환)
   ════════════════════════════════════════════════════════════════ */

/* ─── 메인 히어로 배너 (이미지만) ─────────────────────── */
.hero-banner,
.page-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
  /* 기본: 서브 페이지 배너 높이 (원래의 50%) */
  padding-top: 19.6875%;   /* 39.375% * 0.5 */
  height: 0;
}

/* 메인 홈 배너만 원래 크기 유지 */
#hero-banner-section.page-banner {
  padding-top: 39.375%;
}

/* 자식 레이어를 전부 절대 위치로 채움 */
.hero-banner > *,
.page-banner > * {
  position: absolute;
  inset: 0;
}

/* 이미지: 꽉 채우고 잘라내기 */
.hero-banner-img,
.page-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 기본 배경 (이미지 없을 때) - 기본 흰색 */
.page-banner-default {
  background: #ffffff;
}

/* 배너 하단 색상 오버레이 - 비활성화 */
.page-banner-bottom-color {
  display: none;
}

/* 오버레이 - 비활성화 */
.page-banner-overlay {
  display: none;
}

/* 텍스트 영역: 하단 고정 */
.page-banner-text {
  top: auto;           /* inset:0 덮어쓰기 */
  height: auto;
  padding: 20px 32px 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-banner-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 5px 0;
  font-family: var(--font-body);
}

.page-banner-title {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.2;
  font-family: var(--font-body);
}

.page-banner-sub {
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  color: rgba(255,255,255,0.82);
  margin: 0;
  font-family: var(--font-body);
}

/* 관리자 배너 수정 버튼 */
.page-banner-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: auto;
  left: auto;
  inset: auto;           /* inset:0 완전 덮어쓰기 */
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  backdrop-filter: blur(4px);
  transition: background 0.15s;
  /* 크기 고정 */
  width: auto;
  height: auto;
}
.page-banner-edit-btn:hover { background: rgba(0,0,0,0.65); }

/* 이미지 없을 때 빈 안내 박스 */
.hero-banner-empty {
  inset: 0;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.hero-banner-empty-inner {
  text-align: center;
  padding: 40px 24px;
}

.hero-banner-empty-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

.hero-banner-empty-msg {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.hero-banner-empty-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.hero-banner-empty-btn:hover { opacity: 0.8; }

/* ─── 네비바 내부 패딩 반응형 ─── */
.navbar-inner {
  padding: 0 48px;
}
@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════
   반응형 보완 패치 (2026-03-22)
   ══════════════════════════════════════════ */

/* 홈 카드 row 메타 - 긴 텍스트 말줄임 */
.home-card-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* page-banner 텍스트 영역 - 모바일 패딩 축소 */
@media (max-width: 480px) {
  .page-banner-text {
    padding: 12px 16px 16px;
  }
  .page-banner-title {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
  .page-banner-sub {
    font-size: 0.72rem;
  }
}

/* 홈 섹션 모바일(768px 이하) padding 보완 */
@media (max-width: 768px) {
  .home-section-inner {
    padding: 0 16px;
  }
  .home-section {
    padding: 36px 0;
  }
}

/* 홈 3열 그리드 - 600px 이하 완전 1열 */
@media (max-width: 600px) {
  .home-3col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-3col-grid .home-col-block {
    border-right: none;
    padding: 0 0 24px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .home-3col-grid .home-col-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 홈 카드 row 썸네일 - 480px 이하 크기 축소 */
@media (max-width: 480px) {
  .home-card-row-thumb {
    width: 44px;
    height: 44px;
  }
  .home-card-row-title {
    font-size: 0.82rem;
  }
  .home-card-row-meta {
    font-size: 0.68rem;
  }
}
/* ═══════════════════════════════════════════════════════════
   스토리 리스트 스타일 (그림3 – 행 타입 리스트)
═══════════════════════════════════════════════════════════ */
.story-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sl-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}
.sl-item:first-child { border-top: 1px solid var(--color-border); }
.sl-item:hover { background: var(--color-surface-2, #F8FAFC); padding-left: 8px; padding-right: 8px; margin: 0 -8px; border-radius: 10px; }

/* 썸네일 */
.sl-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
}
.sl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sl-item:hover .sl-thumb img { transform: scale(1.05); }

.sl-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.sl-thumb-ph--bookjangju { background: linear-gradient(135deg,#EEF6FF,#DBEAFE); }
.sl-thumb-ph--story      { background: linear-gradient(135deg,#E7F7F5,#A7F3D0); }
.sl-thumb-ph--review     { background: linear-gradient(135deg,#FEF3F2,#FECDD3); }
.sl-thumb-ph--news       { background: linear-gradient(135deg,#FFF8E7,#FDE68A); }
.sl-thumb-ph--essay      { background: linear-gradient(135deg,#F5F0FF,#DDD6FE); }
.sl-thumb-ph--recommendation { background: linear-gradient(135deg,#E7F7F5,#B3EAE5); }

/* 본문 영역 */
.sl-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sl-cat {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.sl-author {
  font-size: 0.75rem;
  color: var(--color-text);
  font-weight: 600;
}

.sl-date {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-left: auto;
}

.sl-edit-date-btn {
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 4px;
  background: #E8F3FB;
  color: #1A6AA0;
  border: 1px solid #FDE68A;
  cursor: pointer;
  font-family: var(--font-body);
}

.sl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sl-item:hover .sl-title { color: var(--color-primary-dark); }

.sl-preview {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sl-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.sl-tag {
  font-size: 0.7rem;
  color: var(--color-primary);
  background: #EEF6FF;
  padding: 2px 8px;
  border-radius: 999px;
}

.sl-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 2px;
}
.sl-stats i { margin-right: 3px; opacity: 0.7; }

.sl-sns {
  display: flex;
  gap: 8px;
  margin-left: 4px;
}
.sl-sns a {
  color: var(--color-muted);
  transition: color 0.15s;
}
.sl-sns a:hover { color: var(--color-primary); }

/* 수정/삭제 액션 버튼 */
.sl-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.sl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s;
}
.sl-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #EEF6FF;
}
.sl-action-btn.sl-action-del:hover {
  border-color: #DC2626;
  color: #DC2626;
  background: #FEF2F2;
}

/* 반응형 */
@media (max-width: 600px) {
  .sl-thumb { width: 88px; height: 70px; }
  .sl-title { font-size: 0.9rem; }
  .sl-preview { display: none; }
  .sl-date { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════
   홈 피드 섹션 개선 — 헤더 강조, 색상 포인트
═══════════════════════════════════════════════════════════ */

/* 섹션 상단 구분선 강조 */
.hf-section {
  margin-bottom: 0;
  padding: 28px 0 0;
  position: relative;
}
/* 첫 번째 섹션 - 배너 바로 아래 패딩 없음 */
.page-banner + .hf-section,
.page-banner ~ .hf-section:first-of-type {
  padding-top: 0;
}
/* 달력 섹션 다음 오는 첫 책장이야기 섹션 - 적절한 상단 여백 */
.hf-section--first {
  padding-top: 20px;
  border-top: none;
}
.hf-section + .hf-section,
.hf-section + .bt-section {
  border-top: 1px solid var(--color-border);
}
.bt-section + .hf-section {
  border-top: 1px solid var(--color-border);
}

.hf-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 28px;
}

.hf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hf-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 섹션 라벨 — 더 강조 */
.hf-section-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.hf-label--book      { background: #EEF6FF; color: #1a5fa0; }
.hf-label--talk      { background: #EFF6FF; color: #1a3fa0; }
.hf-label--community { background: #E7F7F5; color: #0d7a6a; }
.hf-label--loutin    { background: #FFF8E7; color: #b45309; }
.hf-label--readhere  { background: #FFF0F0; color: #C81D2C; }

.hf-section-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111111;
}

.hf-more-btn {
  font-size: 0.78rem;
  color: var(--color-primary);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.15s;
}
.hf-more-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* 스크롤 트랙 */
.hf-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  padding-left: 2px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}
.hf-scroll-track:active { cursor: grabbing; }
.hf-scroll-track::-webkit-scrollbar { display: none; }

/* 카드 */
.hf-card {
  flex: 0 0 200px;
  min-width: 200px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border);
}
.hf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 카드 썸네일 */
.hf-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f0f0;
}
.hf-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hf-card:hover .hf-card-thumb img { transform: scale(1.06); }

.hf-card-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(0,0,0,0.35);
}
.hf-ph--book      { background: linear-gradient(135deg,#EEF6FF,#DBEAFE); }
.hf-ph--community { background: linear-gradient(135deg,#E7F7F5,#A7F3D0); }
.hf-ph--loutin    { background: linear-gradient(135deg,#FFF8E7,#FDE68A); }

/* 책장이야기 게시판 카드 그리드 */
.hf-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}
@media (max-width: 640px) {
  .hf-stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.hf-card--story {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hf-card--story .hf-card-body {
  flex: 1;
}

.hf-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}
.hf-badge--book      { background: rgba(38,131,194,0.9); color: white; }
.hf-badge--community { background: rgba(23,165,137,0.9); color: white; }
.hf-badge--loutin    { background: rgba(217,119,6,0.9); color: white; }

/* 카드 본문 */
.hf-card-body {
  padding: 12px 14px 14px;
}
.hf-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hf-card-author {
  font-size: 0.72rem;
  color: #444444;
  margin-bottom: 3px;
}
.hf-card-meta {
  font-size: 0.68rem;
  color: var(--color-muted);
  opacity: 0.75;
}

/* 스켈레톤 */
.hf-card-skel { pointer-events: none; }
.hf-skel-box {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
.hf-skel-line {
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}

.hf-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.88rem;
  min-width: 200px;
}

/* Readhere 카드 */
.hf-card--readhere {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
}
.hf-card--readhere .hf-card-thumb {
  width: 64px;
  height: 64px;
  padding-top: 0;
  border-radius: 12px;
  flex-shrink: 0;
}
.hf-card--readhere .hf-card-body {
  padding: 0;
}

/* ── ReadHere 메인 레이아웃: 좌(2×3 도서) + 우(세션카드) ── */
#home-readhere-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* 도서 4열 × 2행 그리드 */
.rh-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* 도서 카드 — 루틴 카드와 동일 크기 */
.rh-books-grid .hf-card {
  flex: none;
  min-width: 0;
  width: 100%;
}
/* 썸네일: 상단 기준 cover — 책 제목 부분 노출 */
.rh-books-grid .hf-card .hf-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0ede8;
}
.rh-books-grid .hf-card .hf-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 토요 독서세션 카드 */
.rh-session-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: sticky;
  top: 20px;
}

/* 반응형 — 1100px 이하: 도서 2열 */
@media (max-width: 1100px) {
  .rh-books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 반응형 — 900px 이하: 세로 배치 */
@media (max-width: 900px) {
  #home-readhere-grid {
    grid-template-columns: 1fr;
  }
  .rh-session-card {
    position: static;
  }
  .rh-books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .rh-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* 반응형 */
@media (max-width: 768px) {
  .hf-section-inner { padding: 0 0 32px; }
  .hf-section-head { padding: 0 16px; }
  .hf-card { flex: 0 0 155px; min-width: 155px; }
  .hf-section-subtitle { font-size: 1rem; }
  /* 모바일: 왼쪽 패딩 + 오른쪽 여백으로 다음 카드가 살짝 보이게 */
  .hf-scroll-track { padding-left: 16px; padding-right: 40px; }
}
@media (max-width: 480px) {
  .hf-card { flex: 0 0 140px; min-width: 140px; }
  .hf-card-title { font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   BT (BookTalk) — CLASS101 라이브 스타일
═══════════════════════════════════════════════════════════ */
.bt-section {
  padding: 40px 0 0;
  background: #ffffff;
  color: var(--color-text, #111);
  position: relative;
}
.bt-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 44px;
}
.bt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.bt-section-title-block { flex: 1; min-width: 0; }
.bt-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary, #2683C2);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.bt-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-primary-dark, #1A5F8E);
  line-height: 1.2;
  margin: 0;
}
.bt-section-title-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-muted, #6B7280);
  margin-left: 10px;
}
.bt-section-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.bt-nav-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary, #2683C2);
  background: none;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.bt-nav-all:hover { background: var(--color-primary, #2683C2); color: #fff; border-color: var(--color-primary, #2683C2); }
.bt-nav-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f4f6f8;
  border: 1px solid var(--color-border, #E2E8F0);
  color: var(--color-text, #374151);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  font-family: var(--font-body);
}
.bt-nav-arrow:hover { background: #e5e7eb; }

/* 스크롤 트랙 */
.bt-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-left: 2px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}
.bt-scroll-track:active { cursor: grabbing; }
.bt-scroll-track::-webkit-scrollbar { display: none; }

/* 카드 */
.bt-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: 1px solid var(--color-border, #E2E8F0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 카드 이미지 영역 */
.bt-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: linear-gradient(160deg,#EEF6FF 0%,#DBEAFE 100%);
}
.bt-card-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bt-card-img-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(38,131,194,0.85);
  text-align: center;
  line-height: 1.4;
}

/* 날짜 / 마감 / 좌석 배지 */
.bt-date-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.bt-sold-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #E53E3E;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.bt-seats-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(16,185,129,0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* 카드 하단 정보 */
.bt-card-info {
  padding: 14px 16px 16px;
}
.bt-card-sub {
  font-size: 0.72rem;
  color: var(--color-muted, #6B7280);
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bt-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text, #111);
  line-height: 1.4;
  margin-bottom: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 참여하기 버튼 */
.bt-join-btn {
  width: 100%;
  padding: 10px 0;
  background: var(--color-primary, #2683C2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, transform 0.1s;
}
.bt-join-btn:hover { background: #1A6AA0; transform: translateY(-1px); }
.bt-join-btn--sold { background: #e5e7eb; color: #9CA3AF; cursor: default; }
.bt-join-btn--sold:hover { background: #e5e7eb; transform: none; }

/* 스켈레톤 */
.bt-card-skel { pointer-events: none; }
.bt-skel-dark {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
.bt-skel-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}

/* 빈 상태 */
.bt-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-muted, #9CA3AF);
  font-size: 0.88rem;
  width: 100%;
}

/* 반응형 */
@media (max-width: 768px) {
  .bt-section-inner { padding: 0 0 36px; }
  .bt-section-head { padding: 0 16px; }
  .bt-section { padding-top: 28px; }
  .bt-nav-arrow { display: none; }
  .bt-card { flex: 0 0 230px; min-width: 230px; }
  .bt-section-title { font-size: 1.2rem; }
  .bt-section-title-sub { display: none; }
  /* 모바일: 왼쪽 패딩 + 오른쪽 여백으로 다음 카드가 살짝 보이게 */
  .bt-scroll-track { padding-left: 16px; padding-right: 40px; }
}
@media (max-width: 480px) {
  .bt-card { flex: 0 0 200px; min-width: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   RTE (Rich Text Editor) — 풀 기능 블로그형 에디터
═══════════════════════════════════════════════════════════ */

/* 툴바 컨테이너 */
.rte-toolbar {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rte-toolbar-row {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.rte-sep {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  margin: 0 4px;
  flex-shrink: 0;
}

.rte-group {
  display: flex;
  align-items: center;
  gap: 1px;
}

/* 툴바 버튼 */
.rte-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-body);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.rte-btn:hover { background: #E5EDF5; color: var(--color-primary-dark); }
.rte-btn:active { background: #D0E4F5; }

.rte-block-btn {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
}

/* 색상 버튼 */
.rte-color-btn { position: relative; padding: 0 5px; }
.rte-color-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  position: absolute;
  bottom: 4px; right: 4px;
}

/* 이미지 업로드 버튼 */
.rte-img-btn {
  position: relative;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 6px;
}
.rte-img-btn:hover { background: #EEF6FF; }
.rte-img-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* select */
.rte-select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #374151;
  background: white;
  cursor: pointer;
  font-family: var(--font-body);
  max-width: 90px;
}
.rte-select:focus { outline: none; border-color: var(--color-primary); }

/* 에디터 본문 */
.rte-editor {
  min-height: 320px;
  max-height: 600px;
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 0 0 10px 10px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
  background: #fff;
  outline: none;
  font-family: var(--font-body);
  word-break: break-word;
}
.rte-editor:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(38,131,194,0.1); }

/* placeholder */
.rte-editor.rte-empty::before,
.rte-editor:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  display: block;
}

/* 에디터 내부 콘텐츠 스타일 */
.rte-editor h2 { font-size: 1.35rem; font-weight: 800; margin: 1.2rem 0 0.5rem; color: var(--color-primary-dark); }
.rte-editor h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 0.4rem; color: var(--color-primary-dark); }
.rte-editor h4 { font-size: 0.95rem; font-weight: 700; margin: 0.8rem 0 0.3rem; }
.rte-editor p { margin: 0 0 0.6rem; }
.rte-editor ul, .rte-editor ol { padding-left: 1.6rem; margin: 0.5rem 0; }
.rte-editor li { margin-bottom: 0.25rem; }
.rte-editor blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 8px 16px;
  margin: 1rem 0;
  background: #F0F9FF;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
}
.rte-editor pre {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.88rem;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 8px 0;
}
.rte-editor img { max-width: 100%; border-radius: 8px; margin: 4px 0; }
.rte-editor figure { margin: 1.2rem 0; text-align: center; }
.rte-editor figcaption { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }
.rte-editor a { color: var(--color-primary); text-decoration: underline; }
.rte-editor hr { border: none; border-top: 2px solid #e5e7eb; margin: 1.2rem 0; }

/* 이야기 상세 뷰에서 HTML 콘텐츠 렌더링 */
.story-content-html h2 { font-size: 1.3rem; font-weight: 800; margin: 1.4rem 0 0.5rem; color: var(--color-primary-dark); }
.story-content-html h3 { font-size: 1.1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; color: var(--color-primary-dark); }
.story-content-html h4 { font-size: 1rem; font-weight: 700; margin: 0.9rem 0 0.3rem; }
.story-content-html p { margin: 0 0 0.7rem; line-height: 1.85; }
.story-content-html ul, .story-content-html ol { padding-left: 1.6rem; margin: 0.6rem 0; }
.story-content-html li { margin-bottom: 0.3rem; line-height: 1.7; }
.story-content-html blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 10px 18px;
  margin: 1rem 0;
  background: #F0F9FF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.story-content-html pre {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.88rem;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 1rem 0;
}
.story-content-html img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.story-content-html figure { margin: 1.2rem 0; text-align: center; }
.story-content-html figcaption { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }
.story-content-html a { color: var(--color-primary); text-decoration: underline; }
.story-content-html hr { border: none; border-top: 2px solid #e5e7eb; margin: 1.2rem 0; }

/* 책장주 게시판 상세 뷰 HTML 콘텐츠 렌더링 */
.rte-content h1 { font-size: 1.5rem; font-weight: 800; margin: 1.4rem 0 0.5rem; color: var(--color-primary-dark); }
.rte-content h2 { font-size: 1.3rem; font-weight: 800; margin: 1.4rem 0 0.5rem; color: var(--color-primary-dark); }
.rte-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; color: var(--color-primary-dark); }
.rte-content h4 { font-size: 1rem; font-weight: 700; margin: 0.9rem 0 0.3rem; }
.rte-content p { margin: 0 0 0.7rem; line-height: 1.85; }
.rte-content ul, .rte-content ol { padding-left: 1.6rem; margin: 0.6rem 0; }
.rte-content li { margin-bottom: 0.3rem; line-height: 1.7; }
.rte-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 10px 18px;
  margin: 1rem 0;
  background: #F0F9FF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.rte-content pre {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.88rem;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 1rem 0;
}
.rte-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rte-content figure { margin: 1.2rem 0; text-align: center; }
.rte-content figcaption { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }
.rte-content a { color: var(--color-primary); text-decoration: underline; }
.rte-content hr { border: none; border-top: 2px solid #e5e7eb; margin: 1.2rem 0; }
.rte-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.rte-content th, .rte-content td { border: 1px solid #d1d5db; padding: 8px 12px; }
.rte-content th { background: #f3f4f6; font-weight: 600; }

/* 반응형 */
@media (max-width: 600px) {
  .rte-toolbar { padding: 5px 8px; }
  .rte-btn { min-width: 26px; height: 26px; font-size: 0.72rem; }
  .rte-select { max-width: 70px; font-size: 0.7rem; }
  .rte-editor { min-height: 240px; padding: 14px; }
}

/* ── 해시태그 필터 Pill ───────────────────────────── */
.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 999px;
  border: 1px solid var(--color-border-2);
  background: var(--color-surface);
  color: var(--color-text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hashtag-pill:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.hashtag-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.hashtag-pill.active:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
/* 숫자 뱃지 */
.hashtag-pill span {
  font-size: 0.62rem;
  opacity: 0.65;
  margin-left: 1px;
}


/* ══════════════════════════════════════════════════════
   모바일 반응형 보완 패치 (2026-03-22 v2)
   ══════════════════════════════════════════════════════ */

/* ── 네비게이션 PC/모바일 분기 (Tailwind 없이 동작) ── */
.nav-pc-menu    { display: flex; align-items: center; gap: 3px; }
.nav-pc-user    { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-mobile-btn { display: none; align-items: center; gap: 4px; }

@media (max-width: 767px) {
  .nav-pc-menu    { display: none !important; }
  .nav-pc-user    { display: none !important; }
  .nav-mobile-btn { display: flex !important; }
}
@media (min-width: 768px) {
  .nav-mobile-btn { display: none !important; }
  #mobile-nav-menu { display: none !important; }
}

/* ── 모바일 드롭다운 메뉴 ── */
#mobile-nav-menu {
  position: absolute;
  top: 80px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
#mobile-nav-menu.hidden { display: none !important; }

/* ── 대시보드: 모바일 상단 탭바 ── */
#dash-mobile-tabs {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 150;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#dash-mobile-tabs::-webkit-scrollbar { display: none; }
#dash-mobile-tabs .dm-tabs-inner {
  display: flex;
  min-width: max-content;
  padding: 0 8px;
}
#dash-mobile-tabs .dm-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 10px 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.6rem;
  color: var(--color-muted);
  font-weight: 500;
  gap: 3px;
  white-space: nowrap;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
#dash-mobile-tabs .dm-tab .dm-icon { font-size: 1.05rem; line-height: 1; }
#dash-mobile-tabs .dm-tab.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

@media (max-width: 768px) {
  .sidebar { display: none !important; }
  #dash-mobile-tabs { display: block; }
  /* 상단 탭바(약 52px) + navbar(80px) 높이만큼 패딩 */
  #dashboard-main { padding: 68px 14px 24px !important; }
}

/* ── 날짜 input 연도 4자리 강제 ── */
input[type="date"] {
  max-width: 100%;
}
/* iOS/Android에서 연도가 길어지는 문제 방지 */
input[type="date"]::-webkit-datetime-edit-year-field {
  max-width: 4ch;
}


/* ── 문의하기 플로팅 버튼/패널 모바일 대응 ── */
@media (max-width: 480px) {
  #contact-float-panel {
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    bottom: 84px !important;
  }
  #contact-float-btn {
    bottom: 20px !important;
    right: 16px !important;
  }
}

/* ── 홈 달력 섹션 모바일 — 일정 목록 패딩 제거 ── */
@media (max-width: 767px) {
  /* 달력+목록이 세로 스택될 때 목록 왼쪽 패딩 제거, 위쪽 여백 추가 */
  #home-cal-events-list {
    padding-left: 0 !important;
    margin-top: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Book·Talk 홈 섹션 스와이프 컨테이너
═══════════════════════════════════════════════════════════ */

/* (hs-swipe-wrapper 탭 슬라이드 방식 제거됨 – Book/Talk 독립 섹션으로 변경) */

/* ═══════════════════════════════════════════════════════════
   관리자 공통 테이블 디자인
═══════════════════════════════════════════════════════════ */
.admin-table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.admin-table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.admin-table-toolbar input[type="text"],
.admin-table-toolbar select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  color: #374151;
  outline: none;
}
.admin-table-toolbar input[type="text"] { min-width: 200px; }
.admin-table-toolbar input[type="text"]:focus,
.admin-table-toolbar select:focus { border-color: #6366f1; }

.admin-table-header {
  display: grid;
  padding: 9px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
  align-items: center;
}
.admin-table-row {
  display: grid;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
  transition: background 0.1s;
  font-size: 0.82rem;
  color: #111827;
}
.admin-table-row:last-child { border-bottom: none; }
.admin-table-row:hover { background: #f9fafb; }

/* 체크박스 */
.admin-table-chk {
  width: 15px; height: 15px;
  accent-color: #DC2626;
  cursor: pointer;
  flex-shrink: 0;
}

/* 배지 공통 */
.atb { display:inline-block; padding:2px 9px; border-radius:20px; font-size:0.72rem; font-weight:700; }
.atb-green  { background:#D1FAE5; color:#065F46; }
.atb-blue   { background:#DBEAFE; color:#1D4ED8; }
.atb-yellow { background:#FEF9C3; color:#854D0E; }
.atb-red    { background:#FEE2E2; color:#991B1B; }
.atb-gray   { background:#F3F4F6; color:#374151; }
.atb-orange { background:#FFEDD5; color:#9A3412; }
.atb-purple { background:#EDE9FE; color:#5B21B6; }

/* 액션 버튼 */
.atbtn {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.atbtn:hover { opacity: 0.82; }
.atbtn-dark   { background:#374151; color:#fff; }
.atbtn-blue   { background:#EFF6FF; color:#1D4ED8; }
.atbtn-green  { background:#ECFDF5; color:#065F46; }
.atbtn-red    { background:#FEE2E2; color:#991B1B; }
.atbtn-primary { background:var(--color-primary,#8B4513); color:#fff; }

/* 링크 텍스트 */
.admin-link { color:#2563EB; cursor:pointer; text-decoration:none; font-weight:500; }
.admin-link:hover { text-decoration:underline; }

/* 빈 상태 */
.admin-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 16px; color: #9ca3af; text-align: center;
}
.admin-empty .icon { font-size: 2rem; margin-bottom: 10px; }

/* 모바일 반응형 */
@media (max-width: 640px) {
  .admin-table-header { display: none; }
  .admin-table-row { grid-template-columns: 1fr !important; gap: 4px; }
  .admin-table-row > *[data-hide-mobile] { display: none; }
}
