/* ================================================================
   K-BEAUTY GUIDE — columns.css
   병원 칼럼(Clinic Columns) 전용 스타일
   · body.cs  : 병원 미니홈(목록 · 글 보기) — 사이트 공통 style.css 를 쓰지 않는 독립 셸
   · .cl-*    : 칼럼 랜딩(/columns/) — 사이트 헤더/푸터와 함께 사용 (style.css 위에 겹침)
   · 색상 변수(--cb*)는 columns_lib.php col_css_vars() 가 병원 컬러에서 계산해 주입
================================================================ */

/* ──────────────────────────────────────
   0. 미니홈 셸 기본
────────────────────────────────────── */
body.cs {
  --cs-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
             "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --cs-ink: #1b1b1f;
  --cs-ink-2: #4b4b55;
  --cs-ink-3: #8a8a94;
  --cs-line: rgba(0,0,0,.08);
  --cs-card: #ffffff;
  --cs-radius: 18px;
  --cs-top-h: 58px;
  --cs-max: 900px;
  --cs-sh: 0 8px 30px rgba(0,0,0,.07);
  --cs-sh-hover: 0 16px 40px rgba(var(--cb-rgb), .18);
  margin: 0;
  font-family: var(--cs-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cs-ink);
  background: var(--cb-tint);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 기본 리셋 — :where() 로 특이성 0 유지 (컴포넌트 규칙이 항상 이김) */
:where(body.cs *, body.cs *::before, body.cs *::after) { box-sizing: border-box; }
:where(body.cs a) { color: inherit; text-decoration: none; }
:where(body.cs img) { max-width: 100%; }
:where(body.cs button) { font-family: inherit; }
.cs-skip { position: absolute; left: -9999px; top: 0; }
.cs-skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9999; border-radius: 8px; }

/* ──────────────────────────────────────
   1. 상단 바  (좌: K-Beauty Guide 홈 · 우: 병원 전체보기)
────────────────────────────────────── */
.cs-top {
  position: sticky; top: 0; z-index: 100;
  height: var(--cs-top-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cs-line);
}
.cs-top-in {
  max-width: 1160px; margin: 0 auto; height: 100%; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cs-top-home { display: inline-flex; align-items: center; gap: 10px; }
.cs-top-home img { width: 110px; height: auto; display: block; }
.cs-top-home:hover .cs-top-home-txt { color: var(--cb-ink); }
.cs-top-home-txt { font-size: 12.5px; color: var(--cs-ink-3); letter-spacing: .2px; }
.cs-top-all {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: var(--cs-ink); color: #fff; font-size: 13px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.cs-top-all svg { width: 16px; height: 16px; }
.cs-top-all:hover { background: var(--cb); color: var(--cb-text); transform: translateY(-1px); }

/* ──────────────────────────────────────
   2. 병원 미니홈 — 히어로 (브랜드 컬러 100%)
────────────────────────────────────── */
.cs-hero {
  position: relative; overflow: hidden;
  background: var(--cb); color: var(--cb-text);
  padding: 72px 20px 60px; text-align: center;
}
.cs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(50% 70% at 90% 100%, rgba(0,0,0,.14), transparent 60%);
}
.cs-hero-in { position: relative; max-width: var(--cs-max); margin: 0 auto; }
.cs-hero-logo { height: 48px; max-height: 48px; width: auto; max-width: 240px; object-fit: contain; margin: 0 auto 18px; display: block; }
.cs-hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cb-text-soft); margin-bottom: 14px; font-weight: 600;
}
.cs-hero-name {
  margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(32px, 6vw, 60px);
}
.cs-hero-tag { margin: 16px auto 0; max-width: 560px; font-size: 16px; line-height: 1.7; color: var(--cb-text-soft); }
.cs-hero-meta {
  margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.cs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.16); color: var(--cb-text);
  border: 1px solid rgba(255,255,255,.22);
}
.cs-hero[data-on-light="1"] .cs-chip { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); }

/* ──────────────────────────────────────
   3. 글 목록 (좌 썸네일 · 우 제목/요약)
────────────────────────────────────── */
.cs-wrap { max-width: var(--cs-max); margin: 0 auto; padding: 36px 20px 80px; }
.cs-list { display: flex; flex-direction: column; gap: 14px; }
.cs-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center;
  background: var(--cs-card); border-radius: var(--cs-radius); padding: 16px;
  box-shadow: var(--cs-sh); border: 1px solid rgba(255,255,255,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cs-item:hover { transform: translateY(-3px); box-shadow: var(--cs-sh-hover); }
.cs-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--cb-tint2);
}
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cs-item:hover .cs-thumb img { transform: scale(1.04); }
.cs-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: var(--cb-ink); opacity: .45;
}
.cs-item-body { min-width: 0; padding-right: 6px; }
.cs-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--cs-ink-3); margin-bottom: 8px; }
.cs-cat {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--cb-tint2); color: var(--cb-ink); letter-spacing: .2px;
}
.cs-item-title {
  margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.38; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-item:hover .cs-item-title { color: var(--cb-ink); }
.cs-item-ex {
  margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--cs-ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-item-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cb-ink); }
.cs-item-more::after { content: "→"; transition: transform .2s; }
.cs-item:hover .cs-item-more::after { transform: translateX(3px); }
.cs-empty { text-align: center; padding: 70px 20px; color: var(--cs-ink-3); background: var(--cs-card); border-radius: var(--cs-radius); }

/* 페이지네이션 */
.cs-pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.cs-pg {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cs-card); color: var(--cs-ink-2); font-size: 14px; font-weight: 600;
  border: 1px solid var(--cs-line); transition: .2s;
}
.cs-pg:hover { border-color: var(--cb); color: var(--cb-ink); }
.cs-pg.is-active { background: var(--cb); color: var(--cb-text); border-color: var(--cb); }

/* ──────────────────────────────────────
   4. 글 보기
────────────────────────────────────── */
.cv-head {
  background: var(--cb); color: var(--cb-text); position: relative; overflow: hidden;
  padding: 56px 20px 52px; text-align: center;
}
.cv-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 10% 0%, rgba(255,255,255,.14), transparent 60%);
}
.cv-head-in { position: relative; max-width: 820px; margin: 0 auto; }
.cv-clinic {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
  color: var(--cb-text-soft); margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}
.cv-head[data-on-light="1"] .cv-clinic { border-color: rgba(0,0,0,.14); }
.cv-clinic:hover { color: var(--cb-text); }
.cv-title {
  margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.28;
  font-size: clamp(24px, 4.2vw, 40px);
}
.cv-meta { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--cb-text-soft); }
.cv-meta b { color: var(--cb-text); font-weight: 600; }
.cv-draft { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 6px; background: #ffdf5d; color: #4a3b00; font-size: 12px; font-weight: 700; }

.cv-wrap { max-width: 860px; margin: -28px auto 0; padding: 0 16px 80px; position: relative; }
.cv-card {
  background: var(--cs-card); border-radius: 22px; box-shadow: var(--cs-sh);
  padding: 44px 48px 36px;
}
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--cs-line); }
.cv-tag { padding: 5px 12px; border-radius: 999px; background: var(--cb-tint); color: var(--cb-ink); font-size: 12.5px; font-weight: 600; }
.cv-tag::before { content: "#"; opacity: .5; margin-right: 1px; }
.cv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.cs-btn, .cs-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.cs-btn { background: var(--cb); color: var(--cb-text); }
.cs-btn:hover { background: var(--cb-dark); }
.cs-btn-ghost { background: transparent; border-color: var(--cs-line); color: var(--cs-ink-2); }
.cs-btn-ghost:hover { border-color: var(--cb); color: var(--cb-ink); }
.cs-btn svg, .cs-btn-ghost svg { width: 15px; height: 15px; }

/* 이전글 / 목록 / 다음글 */
.cv-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 22px; }
.cv-nav-btn {
  display: block; padding: 16px 18px; border-radius: 16px; background: var(--cs-card);
  border: 1px solid var(--cs-line); box-shadow: var(--cs-sh); transition: .2s; min-width: 0;
}
.cv-nav-btn:hover { border-color: var(--cb); transform: translateY(-2px); }
.cv-nav-btn.is-next { text-align: right; }
.cv-nav-btn.is-empty { visibility: hidden; }
.cv-nav-dir { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cb-ink); font-weight: 700; margin-bottom: 5px; }
.cv-nav-ttl { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-nav-list {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center;
  padding: 14px 22px; border-radius: 16px; background: var(--cs-ink); color: #fff; font-size: 13px; font-weight: 700;
  transition: .2s; white-space: nowrap;
}
.cv-nav-list svg { width: 16px; height: 16px; }
.cv-nav-list:hover { background: var(--cb); color: var(--cb-text); }

/* 이 병원의 다른 칼럼 */
.cv-more { margin-top: 44px; }
.cv-more-h { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.cv-more-h::after { content: ""; flex: 1; height: 1px; background: var(--cs-line); }
.cv-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cv-more-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  background: var(--cs-card); border-radius: 14px; padding: 10px; border: 1px solid var(--cs-line); transition: .2s;
}
.cv-more-item:hover { border-color: var(--cb); transform: translateY(-2px); }
.cv-more-thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cb-tint2); }
.cv-more-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-more-ttl { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-more-date { font-size: 12px; color: var(--cs-ink-3); margin-top: 4px; }

/* ──────────────────────────────────────
   5. 본문 타이포 (.col-body) — 자유 HTML 위에 얹는 최소 규칙
      · !important 미사용 → 글쓴이의 인라인 스타일이 항상 우선
────────────────────────────────────── */
.col-body { font-size: 17px; line-height: 1.9; color: #232327; }
.col-body > :first-child { margin-top: 0; }
.col-body p { margin: 0 0 1.45em; }
.col-body h1, .col-body h2, .col-body h3, .col-body h4 { line-height: 1.35; letter-spacing: -.015em; font-weight: 800; color: var(--cs-ink); }
.col-body h1 { font-size: 1.7em; margin: 1.6em 0 .7em; }
.col-body h2 { font-size: 1.5em; margin: 1.8em 0 .7em; padding-top: .2em; }
.col-body h3 { font-size: 1.25em; margin: 1.5em 0 .6em; }
.col-body h4 { font-size: 1.08em; margin: 1.3em 0 .5em; }
.col-body img { max-width: 100%; height: auto; display: block; margin: 1.6em auto; border-radius: 12px; }
.col-body figure { margin: 1.6em 0; }
.col-body figure img { margin: 0 auto; }
.col-body figcaption { font-size: .85em; color: var(--cs-ink-3); text-align: center; margin-top: .6em; }
.col-body a { color: var(--cb-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.col-body strong, .col-body b { font-weight: 700; }
.col-body ul, .col-body ol { margin: 0 0 1.45em; padding-left: 1.4em; }
.col-body ul { list-style: disc; }
.col-body ol { list-style: decimal; }
.col-body li { margin: .35em 0; }
.col-body li::marker { color: var(--cb-ink); }
.col-body blockquote {
  margin: 1.6em 0; padding: 1em 1.3em; border-left: 4px solid var(--cb);
  background: var(--cb-tint); border-radius: 0 12px 12px 0; color: var(--cs-ink-2);
}
.col-body blockquote p:last-child { margin-bottom: 0; }
.col-body hr { border: 0; border-top: 1px solid var(--cs-line); margin: 2.4em 0; }
.col-body table { border-collapse: collapse; width: 100%; font-size: .92em; margin: 1.5em 0; }
.col-body th, .col-body td { border: 1px solid #e6e6ea; padding: .6em .8em; text-align: left; vertical-align: top; }
.col-body th { background: var(--cb-tint); font-weight: 700; }
.col-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
.col-table-wrap table { margin: 0; }
.col-body iframe, .col-body video { max-width: 100%; }
.col-body .video-wrap { position: relative; padding-top: 56.25%; margin: 1.6em 0; border-radius: 12px; overflow: hidden; }
.col-body .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.col-body pre { overflow-x: auto; background: #f5f5f7; padding: 1em; border-radius: 10px; font-size: .88em; }
.col-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.col-body mark { background: var(--cb-tint2); padding: 0 .2em; border-radius: 3px; }

/* ──────────────────────────────────────
   6. 복사 방지 (body.cs-protect)
────────────────────────────────────── */
.cs-protect .col-body, .cs-protect .cv-title, .cs-protect .cs-item {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.cs-protect .col-body img, .cs-protect .cs-thumb img {
  pointer-events: none; -webkit-user-drag: none; user-drag: none;
}
.cs-print-note { display: none; }
@media print {
  .cs-protect .col-body, .cs-protect .cs-list, .cs-float, .cs-mbar, .cs-top, .cv-nav, .cv-more { display: none !important; }
  .cs-protect .cs-print-note { display: block; padding: 40px; text-align: center; font-size: 16px; }
}

/* ──────────────────────────────────────
   7. 플로팅 (PC 우측) · 모바일 하단 앱형 메뉴
────────────────────────────────────── */
.cs-float {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
}
.cs-fbtn {
  width: 66px; min-height: 66px; padding: 9px 4px 8px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; color: var(--cs-ink); box-shadow: 0 6px 22px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.cs-fbtn:hover { transform: translateX(-4px) scale(1.04); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cs-fico { width: 26px; height: 26px; display: block; }
.cs-fico svg { width: 100%; height: 100%; }
.cs-flbl { font-size: 10.5px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.cs-fbtn--website { background: var(--cb); color: var(--cb-text); }
.cs-fbtn--event   { background: #1b1b1f; color: #fff; }
.cs-fbtn--kakao   { background: #fee500; color: #3c1e1e; }
.cs-fbtn--booking { background: #03c75a; color: #fff; }

.cs-mbar { display: none; }

/* ──────────────────────────────────────
   8. 푸터 · 404
────────────────────────────────────── */
.cs-foot { border-top: 1px solid var(--cs-line); background: rgba(255,255,255,.55); }
.cs-foot-in {
  max-width: 1160px; margin: 0 auto; padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--cs-ink-3);
}
.cs-foot-brand { display: flex; gap: 8px; align-items: center; }
.cs-foot-brand a { font-weight: 700; color: var(--cs-ink-2); }
.cs-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.cs-foot-links a:hover { color: var(--cb-ink); }
.cs-404 { text-align: center; padding: 100px 20px; }
.cs-404-code { font-size: 72px; font-weight: 800; color: var(--cb-ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.cs-404 p { color: var(--cs-ink-2); margin: 0 0 26px; }

/* ──────────────────────────────────────
   9. 반응형 — 미니홈
────────────────────────────────────── */
@media (max-width: 1023px) {
  .cs-float { display: none; }
  .cs-mbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--cs-line); box-shadow: 0 -6px 24px rgba(0,0,0,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .cs-mbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; min-height: 54px; }
  .cs-mico { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--cb-tint2); color: var(--cb-ink); }
  .cs-mico svg { width: 20px; height: 20px; }
  .cs-mlbl { font-size: 10.5px; font-weight: 700; color: var(--cs-ink-2); letter-spacing: -.01em; }
  .cs-mbtn--website .cs-mico { background: var(--cb); color: var(--cb-text); }
  .cs-mbtn--event .cs-mico   { background: #1b1b1f; color: #fff; }
  .cs-mbtn--kakao .cs-mico   { background: #fee500; color: #3c1e1e; }
  .cs-mbtn--booking .cs-mico { background: #03c75a; color: #fff; }
  .cs-mbtn--list .cs-mico    { background: #eeeef2; color: var(--cs-ink); }
  body.cs { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
  body.cs { font-size: 15.5px; }
  .cs-top-home-txt { display: none; }
  .cs-top-all span { font-size: 12.5px; }
  .cs-hero { padding: 52px 18px 44px; }
  .cs-hero-name { font-size: clamp(28px, 8.5vw, 40px); }
  .cs-hero-tag { font-size: 14.5px; }
  .cs-wrap { padding: 20px 16px 60px; }
  .cs-item { grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; border-radius: 16px; align-items: start; }
  .cs-thumb { aspect-ratio: 1; border-radius: 10px; }
  .cs-item-meta { margin-bottom: 5px; font-size: 11.5px; gap: 8px; }
  .cs-cat { padding: 2px 8px; font-size: 10.5px; }
  .cs-item-title { font-size: 16px; margin-bottom: 5px; }
  .cs-item-ex { font-size: 13px; -webkit-line-clamp: 2; line-height: 1.55; }
  .cs-item-more { margin-top: 7px; font-size: 12px; }
  .cv-head { padding: 40px 18px 44px; }
  .cv-wrap { padding: 0 12px 56px; margin-top: -22px; }
  .cv-card { padding: 26px 20px 24px; border-radius: 18px; }
  .col-body { font-size: 16px; line-height: 1.85; }
  .col-body img { border-radius: 10px; margin: 1.3em auto; }
  .cv-nav { grid-template-columns: 1fr 1fr; }
  .cv-nav-list { grid-column: 1 / -1; order: 3; }
  .cv-nav-btn { padding: 13px 14px; }
  .cv-more-grid { grid-template-columns: 1fr; }
  .cs-foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .cs-item { grid-template-columns: 96px 1fr; }
  .cs-item-title { font-size: 15px; }
}

/* ================================================================
   10. 칼럼 랜딩 (/columns/) — 사이트 공통 헤더/푸터 위에 얹는 스타일
================================================================ */
.cl-landing { --cl-gold: var(--c-gold, #c9a96e); --cl-dark: var(--c-dark, #1a1a1a); }

/* 지역 탭 */
.cl-tabs-bar {
  position: sticky; top: var(--header-h, 72px); z-index: 80;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border, #e8ddd0);
}
.cl-tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 40px; max-width: var(--container, 1200px); margin: 0 auto; scroll-snap-type: x proximity;
}
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tab {
  flex: 0 0 auto; scroll-snap-align: start; position: relative;
  padding: 16px 14px 14px; font-size: 13px; letter-spacing: .3px; color: var(--c-gray, #666);
  border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; white-space: nowrap; transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cl-tab small { font-size: 10.5px; color: var(--c-gray-lt, #999); font-weight: 600; min-width: 16px; text-align: center; background: var(--c-beige-light, #f5f0eb); border-radius: 999px; padding: 1px 6px; }
.cl-tab:hover { color: var(--cl-dark); }
.cl-tab.is-active { color: var(--cl-dark); border-bottom-color: var(--cl-gold); font-weight: 700; }
.cl-tab.is-active small { background: var(--cl-gold); color: #fff; }

/* 4:6 배너 그리드 */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.cl-card {
  position: relative; display: block; aspect-ratio: 4 / 6; border-radius: 18px; overflow: hidden;
  background: #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  text-decoration: none; color: #fff;
}
.cl-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,.18); }
.cl-card.is-hidden { display: none; }
.cl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cl-card:hover img { transform: scale(1.05); }
.cl-card-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; color: rgba(255,255,255,.75); letter-spacing: -.04em;
}
.cl-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 65%);
}
.cl-card-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.cl-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 16px 16px; }
.cl-card-region { font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cl-gold); margin-bottom: 6px; font-weight: 700; }
.cl-card-name { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.cl-card-sub { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; }
.cl-empty { display: none; text-align: center; padding: 70px 20px; color: var(--c-gray-lt, #999); border: 1px dashed var(--c-border, #e8ddd0); border-radius: 16px; }
.cl-empty.is-show { display: block; }

/* 최신 칼럼 */
.cl-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cl-post {
  display: block; background: #fff; border: 1px solid var(--c-border, #e8ddd0); border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit;
}
.cl-post:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.cl-post-thumb { aspect-ratio: 16 / 10; background: var(--c-beige-light, #f5f0eb); overflow: hidden; }
.cl-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cl-post:hover .cl-post-thumb img { transform: scale(1.04); }
.cl-post-body { padding: 16px 18px 18px; }
.cl-post-clinic { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cl-gold); font-weight: 700; margin-bottom: 6px; }
.cl-post-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--cl-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-post-date { font-size: 12px; color: var(--c-gray-lt, #999); margin-top: 8px; }

@media (max-width: 1024px) { .cl-tabs { padding: 0 24px; } }
@media (max-width: 900px)  { .cl-latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .cl-tabs-bar { top: var(--header-h, 60px); }
  .cl-tabs { padding: 0 16px; }
  .cl-tab { padding: 13px 11px 11px; font-size: 12.5px; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cl-card { border-radius: 14px; }
  .cl-card-body { padding: 14px 12px 12px; }
  .cl-card-name { font-size: 14.5px; }
  .cl-card-count { top: 8px; right: 8px; font-size: 10px; padding: 3px 8px; }
  .cl-card-ph { font-size: 44px; }
}
@media (max-width: 560px) { .cl-latest { grid-template-columns: 1fr; } }
