/* ECARO (site23) — 공개 사이트 스타일 (밝고 깔끔한 톤)
   흰 헤더 + 피처드 모자이크 + 2단 본문/사이드바.
   색·타이포 토큰은 :root 에 모아두고, 포인트 컬러/헤더색은 관리자 설정값으로 JS가 덮어씀. */

:root {
  /* 포인트 컬러 (관리자 설정 → app.js 가 런타임에 갱신) */
  --main: #0891b2;
  --main-ink: #06687f;          /* 밝은 배경 위 텍스트용(대비 4.5:1 이상 보장) */
  --main-soft: rgba(8, 145, 178, .10);
  --main-line: rgba(8, 145, 178, .28);
  --on-main: #ffffff;           /* 포인트 컬러 위에 얹는 글자색 */

  /* 헤더 (관리자 설정 → app.js 가 명도 판단해 글자색 토큰 갱신) */
  --header-bg: #ffffff;
  --hdr-ink: #111827;
  --hdr-ink-dim: #4b5563;
  --hdr-hover: rgba(17, 24, 39, .06);
  --hdr-line: #e8eaee;

  /* 잉크 — 순검정 대신 회색 계열 */
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #6b7280;

  /* 면 */
  --bg: #ffffff;
  --soft: #f9fafb;
  --soft-2: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --dark: #111827;              /* 푸터 전용 */

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow: 0 1px 3px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .05);
  --shadow-lg: 0 2px 8px rgba(17, 24, 39, .06), 0 20px 44px rgba(17, 24, 39, .10);

  --maxw: 1200px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  overscroll-behavior-x: none;   /* 가로 바운스만 차단, 세로는 pull-to-refresh 허용 */
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;             /* 답답함 해소 — 본문 기본 행간 */
  font-size: 15.5px;
  word-break: keep-all;          /* 한글 어절 단위 줄바꿈 */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }

/* ============ 헤더 (밝은 배경 + 진한 글씨) ============ */
.site-header {
  background: var(--header-bg);
  color: var(--hdr-ink);
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--hdr-line);
  box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
}
.hdr {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: #1d4ed8;
}
.brand img.blogo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
/* ECA=파비콘 진한 파랑, RO=밝은 파랑 강조 (파비콘 그라데이션 색과 통일) */
.brand em { font-style: normal; color: #3b82f6; }
/* ECARO 글자별 컬러: E=녹색 · CA=주황 · RO=파랑 */
.brand .lg-e  { color: #16a34a; font-weight: 900; }
.brand .lg-ca { color: #f97316; font-weight: 900; }
.brand .lg-ro { color: #2563eb; font-weight: 900; }

.gnb { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.gnb > .nav-item { position: relative; }
.gnb .nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 9px;
  font-size: 15px; font-weight: 600; color: #111111;
  background: none; border: 0; white-space: nowrap;
  transition: color .14s ease, background .14s ease;
}
.gnb .nav-link:hover, .gnb .nav-item.on .nav-link { color: var(--hdr-ink); background: var(--hdr-hover); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 272px;
  background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .16s ease; border: 1px solid var(--line);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.dropdown a small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.dropdown a:hover { background: var(--main-soft); color: var(--main-ink); }

.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
/* 헤더 버튼 — 검색·언어 모두 동일한 36px 정원 */
.icon-btn {
  width: 36px; height: 36px; flex: none; padding: 0; border-radius: 50%;
  border: 1px solid var(--hdr-line); background: transparent; color: var(--hdr-ink-dim);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.icon-btn:hover { background: var(--hdr-hover); color: var(--hdr-ink); border-color: var(--hdr-line); }
/* 언어 토글 (버튼 1개 — 누르면 전환될 언어를 표시) */
.lang-btn { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.menu-btn { display: none; }

/* 검색 바 */
.searchbar { background: var(--soft); border-top: 1px solid var(--line); padding: 16px 0; }
.searchbar form { display: flex; gap: 8px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.searchbar input {
  flex: 1; height: 46px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); padding: 0 15px; font-size: 15px; outline: none;
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar input:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.searchbar button {
  height: 46px; padding: 0 22px; border-radius: 11px; border: 0;
  background: var(--main); color: var(--on-main); font-weight: 700; font-size: 14.5px;
}
.searchbar button:hover { background: var(--main-ink); }

/* 모바일 드로어 (밝은 패널) */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer .backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .42); }
.drawer .panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; color: var(--ink); padding: 20px; overflow-y: auto;
  box-shadow: 12px 0 40px rgba(17, 24, 39, .16);
}
.drawer .panel h4 {
  margin: 22px 0 8px; font-size: 11.5px; letter-spacing: .1em; color: var(--main-ink);
  text-transform: uppercase; font-weight: 800;
}
.drawer .panel a { display: block; padding: 10px 11px; border-radius: 9px; font-size: 15px; font-weight: 600; }
.drawer .panel a.sub { font-size: 14px; font-weight: 500; color: var(--ink-2); padding-left: 22px; }
.drawer .panel a:hover { background: var(--soft-2); color: var(--main-ink); }

/* ============ 히어로 (기본 비노출 / 관리자가 켜면 표시 — 밝은 톤) ============ */
.hero {
  background:
    radial-gradient(900px 400px at 10% -20%, var(--main-soft), transparent 62%),
    radial-gradient(700px 360px at 92% 0%, rgba(124, 92, 255, .09), transparent 60%),
    var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink); padding: 68px 0 72px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--main-ink);
  border: 1px solid var(--main-line); background: #fff;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px); line-height: 1.35; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.02em; max-width: 22ch; color: var(--ink);
}
.hero p { font-size: clamp(15px, 2vw, 18px); line-height: 1.6; color: var(--ink-2); margin: 0 0 30px; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 11px; border: 0; font-weight: 700; font-size: 15px;
  background: var(--main); color: var(--on-main);
}
.btn:hover { background: var(--main-ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft-2); color: var(--ink); }

/* ============ 섹션 ============ */
main { padding-bottom: 88px; }
.section { padding: 48px 0 0; }
.section:first-child { padding-top: 44px; }

/* ── 섹션 헤더 (공용 컴포넌트) ──────────────────────────────
   각진 검정 라벨 탭 + 라벨 하단 기준선에서 컨테이너 끝까지 뻗는 1px 실선.
   본문 섹션(.section)과 사이드바 위젯(.widget)이 이 컴포넌트를 그대로 공유한다.
   align-items:flex-end 로 라벨 밑변과 선이 정확히 같은 기준선에 놓인다(라벨이 선 위에 얹힌 느낌). */
.sec-head { display: flex; align-items: flex-end; gap: 0; margin-bottom: 16px; position: relative; }
.sec-head .lbl {
  background: #111827; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
  padding: 4px 12px; border-radius: 2px 2px 0 0; white-space: nowrap; flex: none;
}
/* 검정 가로선은 더보기 버튼 아래를 지나 오른쪽 끝까지 이어진다 (더보기는 선 위에 얹힌다) */
.sec-head .rule { flex: 1; height: 1px; background: #111827; min-width: 12px; }
.sec-head .more {
  position: absolute; right: 0; bottom: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--main-ink);
  white-space: nowrap; background: var(--bg); padding-left: 12px;
}
.sec-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.sec-sub { margin: -20px 0 26px; color: var(--ink-3); font-size: 14px; line-height: 1.6; }

/* ============ 피처드 모자이크 (좌 大 1 + 우상 와이드 1 + 우하 소 2) ============ */
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 206px;
  gap: 18px;
}
.mtile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  display: block; background: var(--soft-2); box-shadow: var(--shadow-xs);
}
.mtile.a { grid-row: span 2; }        /* 좌측 큰 카드 */
.mtile.b { grid-column: span 2; }     /* 우측 상단 와이드 */
.mtile .mimg { position: absolute; inset: 0; overflow: hidden; }
.mtile .mimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.mtile:hover .mimg img { transform: scale(1.06); }
/* 이미지 없는 타일: 아주 연한 단색 배경(인라인 style) + 진한 글씨, 텍스트는 상단 정렬 */
.mtile.no-img { border: 1px solid var(--line); box-shadow: none; }
.mtile.no-img .mtxt { top: 0; bottom: auto; }
.mtile.no-img h3 { color: var(--ink); text-shadow: none; }
.mtile.no-img:hover h3 { color: var(--main-ink); }
.mtile.no-img .mmeta { color: var(--ink-3); }
.mtile.no-img .mcat { background: var(--main-soft); color: var(--main-ink); }
.mtile .mov {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10, 15, 26, .90) 0%, rgba(10, 15, 26, .62) 32%,
    rgba(10, 15, 26, .12) 66%, rgba(10, 15, 26, 0) 100%);
}
.mtile .mtxt { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; }
.mtile.a .mtxt { padding: 26px 26px 28px; }
.mtile .mcat {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--main); color: var(--on-main); padding: 5px 10px; border-radius: 5px; margin-bottom: 11px;
}
.mtile h3 {
  margin: 0; color: #fff; font-size: 16px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.mtile.a h3 { font-size: 26px; line-height: 1.38; -webkit-line-clamp: 3; }
.mtile.b h3 { font-size: 20px; }
.mtile .mmeta { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .82); display: flex; gap: 9px; align-items: center; }
.mtile .mmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ============ 카드 그리드 (흰 카드 + 얇은 보더) ============ */
.grid { display: grid; gap: 21px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9dde3; }
.card .thumb { aspect-ratio: 16 / 9; background: var(--soft-2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
/* 썸네일이 없는 카드 — 이미지 영역을 아예 렌더하지 않고 텍스트만 (그리드 정렬은 stretch 로 유지) */
.card.no-img .body { padding-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--main-ink); background: var(--main-soft); padding: 5px 10px; border-radius: 5px; margin-bottom: 12px;
}
.card h3 {
  font-size: 17.5px; margin: 0 0 4px; line-height: 1.35; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
}
.card:hover h3 { color: var(--main-ink); }
.card p.ex {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card p.ex:empty { margin-bottom: 8px; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

/* ============ 카테고리 소개 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: .18s; position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--main));
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .ico { font-size: 26px; margin-bottom: 12px; line-height: 1; }
.cat-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 800; line-height: 1.4; }
.cat-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.cat-card ul li a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--soft-2); border-radius: 6px; padding: 5px 10px; display: inline-block;
}
.cat-card ul li a:hover { background: var(--main-soft); color: var(--main-ink); }

/* ============ 목록/상세 공통 페이지 헤드 (밝게) ============ */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 46px; }
.page-head .crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.page-head .crumb a:hover { color: var(--main-ink); }
.page-head h1 { margin: 0; font-size: clamp(25px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.page-head .head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 공유 버튼 (상세 · 카테고리) */
.share-btn {
  flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { background: var(--main); border-color: var(--main); color: var(--on-main); }
.share-btn.edit-btn, .share-btn.write-btn { text-decoration: none; }
/* 카테고리 페이지 헤더 우측 액션 묶음 (공유 + 글쓰기) */
.page-head .head-row .head-acts { display: inline-flex; align-items: center; gap: 8px; }
.post-hero .pmeta .share-btn { margin-left: auto; }
/* 상세 헤더 우측 액션 묶음 (공유 + 수정) */
.post-hero .pmeta .pacts { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.post-hero .pmeta .pacts .share-btn { margin-left: 0; }
.page-head p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
/* 필터 칩 — 세로만 컴팩트하게(가로 패딩은 유지) */
.sub-tabs a {
  font-size: 12.5px; font-weight: 600; padding: 3px 14px; border-radius: 999px;
  line-height: 1.55; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.sub-tabs a.on, .sub-tabs a:hover { background: var(--main); border-color: var(--main); color: var(--on-main); }

/* 2단 레이아웃 (본문 넓게 + 사이드바 좁게) */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 44px; padding-top: 48px; align-items: start; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.layout > .col { min-width: 0; }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 27px; }
/* 위젯은 카드가 아니다 — 테두리·배경 없이 공용 .sec-head + 내용만 (레퍼런스 Follow Us 형태) */
.widget { background: none; border: 0; border-radius: 0; padding: 0; }
.widget .sec-head { margin-bottom: 13px; }
.widget .side-search { display: flex; gap: 7px; }
.widget .side-search input {
  flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
  font-size: 14px; outline: none; min-width: 0; background: var(--soft);
}
.widget .side-search input:focus { border-color: var(--main); background: #fff; }
.widget .side-search button {
  height: 42px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--main); color: var(--on-main); font-weight: 700;
}

/* Follow Us */
.follow { display: flex; flex-wrap: wrap; gap: 9px; }
.follow a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); color: var(--ink-2);
}
.follow a:hover { background: var(--main-soft); border-color: var(--main-line); color: var(--main-ink); }
.follow a .fi { font-size: 15px; line-height: 1; }

/* 카테고리 위젯 — 테두리·배경·불릿·구분선 없이 [이름 … 개수] 두 칸만 (레퍼런스 형태) */
.side-cats, .side-cats .sub-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border: 0; }
.side-cats .cat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 22px; padding: 1px 2px;
  font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.side-cats .cat-row:hover, .side-cats .cat-row.on { color: var(--main-ink); }
.side-cats .cat-row .nm { min-width: 0; word-break: keep-all; }
.side-cats .cat-row .cnt { flex: none; color: var(--ink-3); font-weight: 500; }
/* 소분류: 크기는 같게, 들여쓰기와 옅은 본문색으로만 계층 표현 */
.side-cats .sub-cats { padding-left: 14px; }
.side-cats .cat-row.sub { color: var(--ink-2); }
.side-cats .cat-row.sub:hover, .side-cats .cat-row.sub.on { color: var(--main-ink); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 7px;
  background: var(--soft-2); color: var(--ink-2);
}
.tag-cloud a:hover, .tag-cloud a.on { background: var(--main); color: var(--on-main); }

.pop-list { display: flex; flex-direction: column; gap: 11px; }
.pop-list a { display: flex; gap: 12px; align-items: flex-start; }
.pop-list .rank { font-size: 15px; font-weight: 900; color: var(--main-ink); flex: none; width: 20px; line-height: 1.35; }
.pop-list .pt {
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pop-list .pd { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.pop-list a:hover .pt { color: var(--main-ink); }

/* 페이지네이션 — 왼쪽 정사각 번호 버튼, 오른쪽 끝 현재 페이지 표시 */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 46px 0 8px; flex-wrap: wrap;
}
.pagination .pg-nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 39px; height: 39px; padding: 0 10px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: 14.5px; line-height: 1;
}
.pagination button:hover { border-color: var(--main); color: var(--main-ink); }
.pagination button.on { background: var(--main); border-color: var(--main); color: var(--on-main); }
.pagination button.nav { font-size: 17px; }
.pagination .gap { color: var(--ink-3); padding: 0 2px; min-width: 18px; text-align: center; }
.pagination .pg-info { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* 빈 상태 / 로딩 */
.empty { text-align: center; padding: 76px 20px; color: var(--ink-3); }
.empty .em { font-size: 40px; margin-bottom: 13px; opacity: .55; }
.empty h3 { margin: 0 0 10px; font-size: 18px; color: var(--ink-2); font-weight: 700; }
.empty p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9ebef 37%, #f3f4f6 63%);
  background-size: 400% 100%; animation: sk 1.3s infinite; border-radius: var(--radius);
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 330px; }
.sk-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 206px; gap: 18px; }
.sk-mosaic > div { border-radius: var(--radius-lg); }
.sk-mosaic > div:nth-child(1) { grid-row: span 2; }
.sk-mosaic > div:nth-child(2) { grid-column: span 2; }

/* ============ 글 상세 ============ */
.post-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 46px 0 44px; }
.post-hero .crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.post-hero .crumb a:hover { color: var(--main-ink); }
.post-hero h1 {
  margin: 0 0 18px; font-size: clamp(25px, 4.2vw, 38px); line-height: 1.38;
  font-weight: 800; letter-spacing: -.02em; max-width: 26ch;
}
.post-hero .pmeta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: 12.5px; flex-wrap: wrap; }
.post-hero .pmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.post-cover {
  border-radius: var(--radius); overflow: hidden; margin: 0 0 32px;
  border: 1px solid var(--line); background: var(--soft-2);
}
.post-cover img { width: 100%; }
.post-cover figcaption { font-size: 12.5px; color: var(--ink-3); padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); line-height: 1.6; }

.article { background: var(--card); }
.prose { font-size: 16px; line-height: 1.5; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 24px; margin: 32px 0 12px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.35; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 20px; margin: 26px 0 10px; font-weight: 700; line-height: 1.35; }
.prose h4 { font-size: 17.5px; margin: 20px 0 9px; font-weight: 700; line-height: 1.5; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 15px; padding-left: 22px; }
.prose li { margin-bottom: 4px; line-height: 1.5; }
.prose li::marker { color: var(--main); }
.prose a { color: var(--main-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 10px; margin: 26px auto; border: 1px solid var(--line); }
.prose blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--main);
  background: var(--main-soft); border-radius: 0 10px 10px 0; color: var(--ink);
}
.prose blockquote p { margin: 0 0 10px; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code.ic {
  font-family: var(--mono); font-size: .875em; background: var(--soft-2); color: #b3236b;
  padding: 2px 6px; border-radius: 5px; word-break: break-all;
}
.prose .task.done { text-decoration: line-through; color: var(--ink-3); }
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; line-height: 1.6; }
.prose th { background: var(--soft); font-weight: 700; }

/* 코드블록 (본문 내 코드만 어둡게 — 가독성 목적) */
.code-block { position: relative; margin: 0 0 26px; border-radius: 12px; overflow: hidden; background: #0f172a; }
.code-block::before {
  content: attr(data-lang); position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #94a3b8; background: rgba(255, 255, 255, .06); padding: 5px 12px; border-radius: 0 0 8px 0;
}
.code-block .code-copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07);
  color: #cbd5e1; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 7px;
}
.code-block .code-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.code-block pre { margin: 0; padding: 36px 18px 18px; overflow-x: auto; }
.code-block code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #e2e8f0;
  display: block; white-space: pre; tab-size: 2;
}
.tok-cmt  { color: #7c8da6; font-style: italic; }
.tok-str  { color: #7ee2a8; }
.tok-num  { color: #f3b562; }
.tok-kw   { color: #6ec7ff; font-weight: 600; }
.tok-fn   { color: #d5a6ff; }
.tok-type { color: #ffd479; }
.tok-meta { color: #ff9ec4; }
.tok-key  { color: #6ec7ff; }

/* 태그 / 이전다음 */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.post-tags a { font-size: 13px; font-weight: 600; background: var(--soft-2); color: var(--ink-2); padding: 7px 12px; border-radius: 8px; }
.post-tags a:hover { background: var(--main); color: var(--on-main); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.prevnext a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.prevnext a:hover { border-color: var(--main); }
.prevnext .lbl { font-size: 11.5px; font-weight: 800; color: var(--main-ink); letter-spacing: .06em; text-transform: uppercase; }
.prevnext .ttl {
  font-size: 15px; font-weight: 700; margin-top: 8px; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prevnext a.nx { text-align: right; }

/* ============ 댓글 ============ */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.comments .hint { margin: 0 0 26px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.cform { display: grid; gap: 13px; margin-bottom: 36px; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.cform input, .cform textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; outline: none; background: var(--soft); color: var(--ink);
  line-height: 1.6;
}
.cform input:focus, .cform textarea:focus { border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px var(--main-soft); }
.cform textarea { min-height: 126px; resize: vertical; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.cform .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
/* 등록 버튼 + 4자리 수정용 PIN — 폼의 다른 입력과 같은 톤/크기로 */
.cform .foot .fright { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.cform .foot .pin {
  width: 178px; height: 40px; padding: 0 12px; border-radius: 9px;
  font-size: 13.5px; letter-spacing: .04em; text-align: left;
}
.cform .foot .btn.sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 9px; }
.stars { display: flex; gap: 3px; align-items: center; }
.stars button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px; color: #d1d5db; }
.stars button.on { color: #f59e0b; }
.stars .lbl { font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.clist { display: flex; flex-direction: column; gap: 16px; }
.citem { border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; background: var(--card); }
.citem .ch { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.citem .av {
  width: 32px; height: 32px; border-radius: 50%; background: var(--main-soft); color: var(--main-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none;
}
.citem .nm { font-weight: 700; font-size: 14.5px; }
.citem .dt { font-size: 12.5px; color: var(--ink-3); }
.citem .rt { font-size: 12.5px; color: #f59e0b; letter-spacing: 1px; }
/* 작성자 본인 수정 버튼 (PIN 을 걸어둔 댓글에만 노출) */
.citem .cedit {
  margin-left: auto; height: 26px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12px; font-weight: 700; font-family: inherit;
}
.citem .cedit:hover { border-color: var(--main); color: var(--main-ink); }
.citem .cb { font-size: 15px; color: var(--ink); white-space: pre-wrap; line-height: 1.8; }
.citem .creply {
  margin-top: 14px; padding: 13px 16px; border-radius: 10px;
  background: var(--main-soft); border-left: 3px solid var(--main); font-size: 14.5px;
  white-space: pre-wrap; line-height: 1.6;
}
.citem .creply b { display: block; font-size: 12.5px; color: var(--main-ink); margin-bottom: 5px; }

/* ============ 푸터 ============ */
.site-footer { background: var(--dark); color: #ffffff; padding: 42px 0 35px; margin-top: 51px; }
.site-footer .fgrid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand em { color: #fff; }
.site-footer p { margin: 0; color: #ffffff; font-size: 14px; line-height: 1.8; max-width: 46ch; }
.site-footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .flinks a { font-size: 14px; font-weight: 600; color: #ffffff; }
.site-footer .flinks a:hover { color: #fff; }
.site-footer .copy { color: #ffffff; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }

/* ============ 토스트 / 모달 (alert·confirm 대체) ============ */
.toast-host { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 21px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: tin .2s ease; max-width: min(92vw, 460px); line-height: 1.6;
}
.toast.err { background: #b91c1c; }
.toast.ok { background: #047857; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

.modal-host { position: fixed; inset: 0; z-index: 210; display: none; }
.modal-host.open { display: block; }
.modal-host .mbd { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); }
.modal-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(416px, calc(100vw - 32px)); max-width: 416px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 26px;
}
.modal-box h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.modal-box p { margin: 0 0 22px; font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.6; }
.modal-box .mact { display: flex; gap: 8px; justify-content: flex-end; }
.modal-box .mact button { height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.modal-box .mact button.pri { background: var(--main); border-color: var(--main); color: var(--on-main); }
/* 모달 안 폼 (댓글 수정 등) */
.modal-box form .pin, .modal-box form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 14.5px; font-family: inherit; outline: none; background: var(--soft); color: var(--ink);
  line-height: 1.6;
}
.modal-box form .pin { height: 42px; padding: 0 13px; letter-spacing: .06em; }
.modal-box form .pin:focus, .modal-box form textarea:focus {
  border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px var(--main-soft);
}
.modal-box form textarea { min-height: 108px; resize: vertical; margin-bottom: 18px; }
.modal-box form .mhint { margin: 7px 0 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.modal-box form .mact .btn { height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.modal-box form .mact .btn.pri { background: var(--main); border-color: var(--main); color: var(--on-main); }

/* ============ 반응형 ============ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sidebar { position: static; }
  .grid.c4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .mosaic, .sk-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .mtile.a { grid-row: span 1; grid-column: span 2; }
  .sk-mosaic > div:nth-child(1) { grid-row: span 1; grid-column: span 2; }
  .mtile.a h3 { font-size: 22px; }
  .mtile.a .mph { font-size: 48px; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .gnb { display: none; }
  .menu-btn { display: grid; }
  .hdr { height: 60px; gap: 10px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 22px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 52px; }
  .section { padding: 44px 0 0; }
  .section:first-child { padding-top: 28px; }
  .sec-head { margin-bottom: 12px; }
  .prose { font-size: 15.5px; }
  .comments { margin-top: 44px; padding-top: 32px; }
  .cform .row2 { grid-template-columns: 1fr; }
  .cform .foot .fright { width: 100%; margin-left: 0; }
  .cform .foot .pin { flex: 1; width: auto; min-width: 0; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a.nx { text-align: left; }
  .layout { padding-top: 32px; gap: 36px; }
  .page-head { padding: 34px 0 36px; }
  .post-hero { padding: 34px 0 32px; }
  /* 좁은 화면: 번호 줄 아래로 페이지 표시가 내려가도 양끝 정렬이 어색하지 않게 */
  .pagination { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 36px; }
}
@media (max-width: 620px) {
  .mosaic, .sk-mosaic { grid-template-columns: 1fr; grid-auto-rows: 212px; }
  .mtile.a, .mtile.b { grid-column: span 1; grid-row: span 1; }
  .sk-mosaic > div:nth-child(1), .sk-mosaic > div:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .mtile h3, .mtile.a h3, .mtile.b h3 { font-size: 18px; }
  .mtile .mtxt, .mtile.a .mtxt { padding: 18px 18px 20px; }
}

/* 최신글 카드: 사진 → 제목 → 아주 작은 날짜 */
.card .body .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; gap: 0; }
.card .body .ex { display: none; }

/* 인기글: 왼쪽 작은 썸네일 + 오른쪽 제목/날짜 */
.pop-list a { display: flex; gap: 10px; align-items: flex-start; }
.pop-list .pth { flex: none; width: 62px; height: 46px; border-radius: 4px; overflow: hidden; background: var(--soft-2); }
.pop-list .pth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-list .pth.ph { background: var(--soft-2); }
.pop-list .ptx { min-width: 0; display: block; }
.pop-list .rank { display: none; }

/* 인기글 좌우 넘김 버튼 */
.pop-nav { display: flex; gap: 6px; margin-top: 12px; }
.pop-nav .pn {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff;
  border-radius: 4px; color: var(--ink-2); font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.pop-nav .pn:hover:not(:disabled) { border-color: var(--main); color: var(--main-ink); }
.pop-nav .pn:disabled { opacity: .35; cursor: default; }
/* 날짜 표기 더 작게 */
.card .body .meta { font-size: 10.5px; }
.pop-list .pd { font-size: 10.5px; }
/* 글 상세 작성일·수정일 — 홈 카드의 날짜와 같은 크기 */
.post-hero .pmeta .pdate { font-size: 10.5px; }

/* 제목↔날짜 간격 최소화 */
.card .body .meta { margin-top: 2px; }
.pop-list .pd { margin-top: 0; }

/* ============ 소개 + 문의 (/about) ============ */
/* 상단 GNB: 카테고리 오른쪽 끝으로 "소개" 메뉴를 밀어낸다 */
.gnb .nav-item.nav-about { margin-left: auto; }
.about-wrap { max-width: 760px; padding-top: 48px; padding-bottom: 8px; }
.about-intro { margin-bottom: 8px; }
.about-intro .prose { font-size: 16.5px; line-height: 1.75; }
.about-intro .prose p { margin: 0 0 16px; }
.contact-sec { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.contact-sec .sec-sub { margin-top: -18px; }
.contact-form { margin-bottom: 8px; }
.contact-form .foot .fright { margin-left: auto; }
.contact-form .foot .btn.sm { height: 44px; padding: 0 26px; font-size: 14.5px; border-radius: 10px; }
@media (max-width: 760px) {
  .about-wrap { padding-top: 30px; }
  .contact-form .foot .fright { width: 100%; }
  .contact-form .foot .btn.sm { width: 100%; justify-content: center; }
}

/* ================= 새소식: 영상 임베드 · 출처 · 목록 테이블 ================= */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 4px 0 22px;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-source { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 6px;
  padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--main);
  border-radius: var(--radius); background: var(--soft); font-size: 14px; }
.post-source .lbl { font-weight: 700; color: var(--ink-2); }
/* 카드 전체가 링크 — 아무 곳이나 클릭하면 원문/영상으로 이동 */
a.post-source { text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s; }
a.post-source:hover { background: var(--main-soft); border-color: var(--main-line); border-left-color: var(--main); }
.post-source .src-go { margin-left: auto; color: var(--main-ink); font-weight: 800; font-size: 15px; }

.news-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.news-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.news-table thead th { text-align: left; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-3);
  font-weight: 700; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.news-table tbody tr { border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .12s ease; }
.news-table tbody tr:last-child { border-bottom: 0; }
.news-table tbody tr:hover { background: var(--main-soft); }
.news-table td { padding: 12px 16px; vertical-align: middle; }
.news-table .nt-title { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.news-table .nt-title img { width: 54px; height: 38px; object-fit: cover; border-radius: 7px; flex: none; background: var(--soft-2); }
.news-table .nt-title .nt-ico { width: 54px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft-2); border-radius: 7px; flex: none; font-size: 15px; color: var(--ink-3); }
.news-table .nt-title a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.4; }
.news-table tbody tr:hover .nt-title a { color: var(--main-ink); }
.news-table .nt-badge { flex: none; font-size: 11px; font-weight: 700; color: #b91c1c;
  background: rgba(239,68,68,.12); padding: 2px 7px; border-radius: 999px; }
.news-table .nt-src { white-space: nowrap; }
.news-table .nt-src a { color: var(--ink-3); text-decoration: none; font-size: 13px; }
.news-table .nt-src a:hover { color: var(--main-ink); text-decoration: underline; }
.news-table .nt-date { white-space: nowrap; color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) {
  .news-table .nt-src { display: none; }
  .news-table thead th.nt-src-h { display: none; }
  .news-table .nt-title { min-width: 0; }
  .news-table .nt-title img, .news-table .nt-title .nt-ico { width: 46px; height: 34px; }
}

/* ---- 새소식 출처(언론사)명 + 이미지 썸네일/확대 ---- */
.post-source .src-name { color: var(--ink); font-weight: 700; }
.post-source .src-name + a { margin-left: 2px; }

/* 클릭 확대 가능한 이미지 표시 */
.article .prose img, .post-cover img { cursor: zoom-in; }

/* 새소식 글: 가져온 이미지는 1/4 크기 썸네일로, 클릭하면 라이트박스로 확대 */
.post-cover.is-news { max-width: 120px; margin-left: 0; }
.post-cover.is-news img { border-radius: 10px; }
.article.is-news .prose img {
  display: inline-block; width: auto; max-width: 25%; max-height: 220px;
  object-fit: cover; border-radius: 10px; margin: 6px 12px 6px 0; vertical-align: top;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .post-cover.is-news { max-width: 140px; }
  .article.is-news .prose img { max-width: 40%; max-height: 160px; }
}

/* 라이트박스 오버레이 */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 28px; background: rgba(15, 23, 42, .88); cursor: zoom-out; opacity: 0; transition: opacity .16s ease;
}
.lightbox.on { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 16px 60px rgba(0, 0, 0, .55); }
.lightbox .lb-close {
  position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .26); }

/* ================= 홈 새소식 (2열 · 열우선, 모바일 1열) ================= */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.news-col { display: flex; flex-direction: column; }
.news-col + .news-col { border-left: 1px solid var(--line); padding-left: 40px; }
.news-row { display: flex; align-items: center; gap: 13px; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.news-row:last-child { border-bottom: 0; }
.news-row:hover .nr-title { color: var(--main-ink); }
.news-col-lbl { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); padding: 0 2px 7px; margin-bottom: 4px; border-bottom: 2px solid var(--line); }
.nr-thumb-wrap { position: relative; width: 60px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--soft-2); }
.nr-thumb-wrap .nr-thumb { width: 100%; height: 100%; border-radius: 0; }
.nr-thumb-wrap.vid::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; background: rgba(0,0,0,.28); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.nr-thumb { width: 60px; height: 44px; flex: none; object-fit: cover; border-radius: 8px; background: var(--soft-2); }
.nr-thumb.ph { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: var(--ink-3); }
.nr-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nr-title { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.nr-cat { color: var(--main-ink); font-weight: 600; }
.nr-cat::after { content: '·'; margin-left: 8px; color: var(--ink-3); font-weight: 400; }
@media (max-width: 760px) {
  .news-cols { grid-template-columns: 1fr; gap: 0; }
  .news-col + .news-col { border-left: 0; padding-left: 0; }
  .news-col:first-child .news-row:last-child { border-bottom: 1px solid var(--line-soft); }
}

/* ================= 커뮤니티 ================= */
.wrap.community { max-width: 900px; padding-top: 24px; padding-bottom: 60px; }
.community .c-muted { color: var(--ink-3); text-align: center; padding: 30px; }
.community .c-empty { text-align: center; color: var(--ink-3); padding: 44px 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--soft); }
.community .c-empty.sm { padding: 22px; }
.c-back { display: inline-block; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.c-back:hover { color: var(--ink); }
/* 목록 테이블 */
.c-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.c-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.c-table thead th { text-align: left; background: var(--soft); color: var(--ink-3); font-size: 12.5px; font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.c-table tbody tr { border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .12s; }
.c-table tbody tr:last-child { border-bottom: 0; }
.c-table tbody tr:hover { background: var(--main-soft); }
.c-table td { padding: 11px 14px; vertical-align: middle; }
.c-table .c-t { display: flex; align-items: center; gap: 7px; }
.c-t-title { font-weight: 600; color: var(--ink); }
.c-table tbody tr:hover .c-t-title { color: var(--main-ink); }
.c-t-cc { color: var(--main-ink); font-weight: 700; font-size: 13px; }
.c-pin { font-size: 13px; }
.c-table .c-au { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; }
.c-table .c-n { text-align: center; color: var(--ink-3); font-size: 13.5px; width: 60px; }
.c-table .c-dt { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
/* 작성 폼 */
.card-pad { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; margin-bottom: 18px; }
.c-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.c-form { display: flex; flex-direction: column; gap: 10px; }
.c-in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; background: #fdfefe; outline: none; }
.c-in:focus { border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px var(--main-soft); }
.c-form textarea.c-in { line-height: 1.7; }
.c-body-thread { resize: vertical; min-height: 118px; }                       /* 글 본문: ~5줄 */
.c-auto { resize: none; overflow-y: auto; min-height: 74px; max-height: 300px; }  /* 댓글/답글: ~3줄 시작, 자동 확장(최대 300px) */
.c-author { max-width: 220px; height: 38px; padding-top: 7px; padding-bottom: 7px; }   /* 이름칸은 낮게 */
.c-form .btn { height: 36px; min-width: 96px; padding: 0 26px; font-size: 14px; justify-content: center; }  /* 등록/취소 버튼 낮고 넓게 */
.c-title { font-weight: 700; }
.c-guide { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 2px 0 0; }
.c-acts { display: flex; justify-content: flex-end; gap: 8px; }
/* 스레드 상세 */
.c-detail .c-thread h1 { font-size: 25px; font-weight: 800; line-height: 1.4; margin: 4px 0 12px; }
.c-thread-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.c-thread-meta b { color: var(--ink); font-weight: 700; }
.c-thread-meta i { color: #cfd4da; }
.c-thread-body { font-size: 16px; line-height: 1.85; color: #2a2d31; min-height: 192px; padding: 4px 0 30px; border-bottom: 2px solid var(--line); word-break: break-word; }
/* 댓글 */
.c-comments { margin-top: 26px; }
.c-comments > h3 { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.c-comments > h3 .c-cc { color: var(--main-ink); }
.c-cmt-compose { margin-bottom: 20px; }
.c-cmt-compose.reply { margin: 10px 0 4px; }
.c-cmt { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.c-cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.c-cmt-head b { font-weight: 700; font-size: 14.5px; }
.c-cmt-date { color: var(--ink-3); font-size: 12.5px; }
.c-cmt-body { font-size: 15px; line-height: 1.7; color: #2a2d31; word-break: break-word; }
.c-cmt-acts { margin-top: 6px; }
.c-reply-btn { background: none; border: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 700; padding: 2px 0; }
.c-reply-btn:hover { color: var(--main-ink); }
.c-children { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); margin-top: 4px; }
.c-cmt.reply { padding: 12px 0 6px; }
@media (max-width: 640px) {
  .c-table .c-au, .c-table thead th.c-au, .c-table .c-n:not(:nth-child(3)), .c-table thead th.c-n:not(:nth-child(3)) { display: none; }
  .c-children { margin-left: 10px; padding-left: 10px; }
}

/* 커뮤니티 — 수정 PIN · 편집 컨트롤 */
.c-acts { align-items: center; }
.c-pin { width: 158px; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font-size: 13px; background: #fdfefe; outline: none; margin-right: auto; }
.c-pin:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.c-cmt-acts { display: flex; align-items: center; gap: 14px; }
.c-reply-btn.dan { color: #b3243f; }
.c-mini { background: none; border: 1px solid var(--line); border-radius: 7px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 8px; }
.c-mini:hover { color: var(--main-ink); border-color: var(--main-line); }
.c-edited { color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.c-e-title { font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.c-e-body { margin-bottom: 10px; }
.c-edit-slot .c-cmt-compose { margin: 6px 0 4px; }
@media (max-width: 640px) { .c-pin { width: 130px; } }

/* 커뮤니티 목록 — 글쓰기 버튼 낮게, 검색창, 테이블 행 높이 축소 */
#cNewBtn { height: 40px; padding: 0 18px; }
.head-acts { display: inline-flex; align-items: center; gap: 8px; }
.c-search { height: 40px; width: 220px; max-width: 46vw; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; font-size: 14.5px; background: #fdfefe; outline: none; }
.c-search:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.c-table thead th { padding-top: 6px; padding-bottom: 6px; }
.c-table td { padding-top: 7px; padding-bottom: 7px; }

/* 커뮤니티 상세 상단 — 목록 링크(좌) + 공유 버튼(우) */
.c-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.c-detail-top .c-back { margin-bottom: 0; }

/* 커뮤니티 본문 이미지 */
.c-imgbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-imgbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.c-imgbtn:hover { border-color: var(--main); color: var(--main-ink); }
.c-imghint { font-size: 12px; color: var(--ink-3); }
.c-img { max-width: 100%; max-height: 480px; width: auto; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; cursor: zoom-in; }
.c-img-link { display: inline-block; }
