@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --text: #111;
  --body: #333;
  --muted: #7a7a7a;
  --line: #e4e4e4;
  --soft: #f7f8fa;
  --link: #1a6fc4;
  --accent: #1a6fc4;
  --accent-soft: #eaf3fc;
  --w: 720px;
  --wide: 960px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: var(--wide); }
.hwrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }

/* 읽기 진행 막대 / 맨 위로 */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }
#to-top { position: fixed; right: 18px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); z-index: 40; }
#to-top:hover { background: var(--soft); }
#to-top[hidden] { display: none; }

/* 헤더 */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.site-header .hwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 68px; padding-top: 12px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; flex: none; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #0e4f93); color: #fff; font-size: 17px; font-weight: 800; }
/* 윗줄: 이름 + 검색 / 아랫줄: 메뉴 전체 (메뉴가 많아도 잘리지 않고 필요하면 줄바꿈) */
.cats { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; order: 3; min-width: 0; margin: 0 -13px 4px; }
.cats a { flex: none; padding: 6px 13px; border-radius: 999px; color: #555; font-size: 14.5px; font-weight: 500; }
.cats a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.cats a.on { background: var(--text); color: #fff; }
.search { margin-left: auto; flex: none; }
.search input { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; width: 160px; transition: width .2s, background .2s, border-color .2s; }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); width: 210px; }

main.wrap { padding-top: 36px; padding-bottom: 72px; min-height: 60vh; }

.cats a.extra { color: var(--accent); font-weight: 600; }
.cats a.extra:hover { background: var(--accent-soft); color: var(--accent); }
.cats a.extra.on { background: var(--accent); color: #fff; }
.cats a.extra:first-of-type { margin-left: 8px; }

/* 홈 소개 */
.hero { padding: 26px 0 30px; }
.hero-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.35; color: var(--text); font-weight: 800; letter-spacing: -0.03em; max-width: 640px; }
.hero-sub { margin: 12px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.7; color: #555; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-btn { display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.hero-btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, #fff); }
.hero-btn.primary { color: #fff; background: var(--accent); }
.hero-btn.primary:hover { background: #155fa9; }
.list-head { padding: 6px 0 22px; }
.list-head h1 { font-size: 28px; margin: 0 0 4px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.list-head p { margin: 0; color: var(--muted); }
.sec-title { font-size: 18px; margin: 44px 0 16px; color: var(--text); font-weight: 800; }

/* 카테고리 알약 */
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; color: var(--c, #555); background: color-mix(in srgb, var(--c, #555) 11%, #fff); }
.pill:hover { text-decoration: none; background: color-mix(in srgb, var(--c, #555) 20%, #fff); }

/* 글 카드 목록 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); }
.card-thumb { position: relative; display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius); overflow: hidden; background: #eee; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.empty-thumb { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.card-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.card-meta span + span::before { content: "·"; margin-right: 10px; }
.card h2 { font-size: 19px; line-height: 1.45; margin: 0; letter-spacing: -0.02em; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); text-decoration: none; }
.card .desc { margin: 0; color: #5b5b5b; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 첫 글: 크게 */
.card.featured { flex-direction: row; gap: 28px; align-items: center; margin-bottom: 8px; }
.card.featured .card-thumb { flex: 0 0 56%; }
.card.featured .card-body { padding: 0; gap: 10px; }
.card.featured h2 { font-size: 27px; line-height: 1.4; font-weight: 800; }
.card.featured .desc { font-size: 16px; -webkit-line-clamp: 3; }

.empty { color: var(--muted); padding: 60px 0; text-align: center; grid-column: 1 / -1; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: 14px; color: var(--muted); }
.pager a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--text); }
.pager a:hover { background: var(--soft); text-decoration: none; }

/* 글 */
.post-head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-title { font-size: 34px; line-height: 1.38; color: var(--text); margin: 14px 0 14px; letter-spacing: -0.03em; font-weight: 800; }
.post-head .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.post-head .meta span + span::before, .post-head .meta time + span::before { content: "·"; margin-right: 12px; }
.meta { font-size: 13px; color: var(--muted); }
.tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13.5px; background: var(--soft); color: #555; padding: 5px 12px; border-radius: 999px; border: 1px solid #eee; }
.tags a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; border-color: #cfe2f6; }
.prevnext { display: flex; gap: 14px; justify-content: space-between; margin: 52px 0 0; }
.prevnext a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.5; max-width: 50%; transition: border-color .2s, background .2s; }
.prevnext a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.prevnext a.r { text-align: right; }
.prevnext small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.related { margin-top: 20px; }
.related .grid { gap: 22px 20px; }
.related .card h2 { font-size: 16.5px; }
.related .card .desc { display: none; }
.preview-notice { background: #fff8e1; border: 1px solid #f0d98a; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; color: #7a5b00; }

/* 본문 (인라인 스타일이 있는 요소는 그 값이 우선) */
.prose { font-size: 16.5px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 23px; line-height: 1.45; color: var(--text); border-bottom: 2px solid #333; padding-bottom: 8px; margin: 48px 0 18px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { font-size: 18.5px; line-height: 1.5; color: #222; margin: 30px 0 12px; font-weight: 700; }
.prose h2, .prose h3, .prose [id] { scroll-margin-top: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose blockquote { margin: 20px 0; padding: 6px 18px; border-left: 4px solid var(--accent); color: #555; background: var(--soft); border-radius: 0 8px 8px 0; }
.prose figure, .post-figure { margin: 24px 0; text-align: center; }
.prose img { border-radius: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose details > summary { cursor: pointer; }
.prose pre { background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; position: relative; word-break: normal; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: #f1f1f1; padding: 2px 6px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-size: 12px; border: 1px solid #ccc; background: #fff; border-radius: 6px; padding: 3px 9px; cursor: pointer; color: #555; }
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 420px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; }
.prose th { background: #f0f0f0; }
.video { position: relative; padding-top: 56.25%; margin: 24px 0; background: #000; border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: flex; gap: 8px; margin: 24px 0; overflow-x: auto; }
.gallery img { height: 160px; width: auto; flex: none; cursor: zoom-in; object-fit: cover; border-radius: 8px; }

/* 링크 카드 (내 글 카드 / 외부 사이트 카드) */
.link-card { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 24px 0; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.link-card:hover { text-decoration: none; border-color: #c4c4c4; box-shadow: var(--shadow); }
.lc-img { flex: none; width: 160px; background: #eee; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.lc-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 14px 18px; }
.lc-title { font-size: 16px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-desc { font-size: 14px; line-height: 1.5; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-site { font-size: 12px; color: var(--muted); }

/* 함께 보면 좋은 글 상자 */
.related-box { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 32px 0; }
.related-box .rb-title { margin: 0 0 10px; font-weight: 800; color: var(--text); }
.related-box ul { margin: 0; padding-left: 20px; line-height: 1.95; }

/* 자동 목차 */
.toc { margin: 22px 0 10px; }
.toc details { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.toc summary { font-size: 17px; font-weight: 800; cursor: pointer; color: var(--text); }
.toc ol { list-style: none; padding-left: 0; margin: 12px 0 0; }
.toc ol ol { padding-left: 16px; margin: 4px 0; }
.toc li { margin: 6px 0; }
.toc a { color: #333; }
.toc a:hover { color: var(--accent); }
.toc ol ol a { color: #666; font-size: 15px; }

/* 광고 */
/* 광고와 위·아래 글 사이 간격은 정확히 10px (이웃 요소의 인라인 마진도 !important 로 덮어 씀) */
.ad { margin: 10px 0 !important; min-height: 90px; text-align: center; overflow: hidden; line-height: 0; font-size: 0; }
.ad ins { max-width: 100%; }
.ad-300 { min-height: 250px; }
.ad-preview, .ad-preview-300 { margin-top: 10px !important; margin-bottom: 10px !important; }
.prose :has(+ .ad), .prose :has(+ .ad-preview) { margin-bottom: 0 !important; }
.prose .ad + *, .prose .ad-preview + * { margin-top: 0 !important; }
.ad-preview-300 { width: 300px; height: 250px; margin-left: auto !important; margin-right: auto !important; display: grid; place-items: center; }
.ad-preview, .slot-empty { margin: 20px 0; padding: 18px; text-align: center; font-size: 13px; color: #888; background: #f4f4f4; border: 1px dashed #bbb; border-radius: 8px; }
.slot-empty { background: #eef5ff; border-color: #9bbbe0; color: #4a6fa0; }

/* 라이트박스 */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 0; }

/* 관리자 바 (로그인 상태에서만 JS가 표시) */
#admin-bar { position: sticky; top: 0; z-index: 70; background: #111; color: #fff; font-size: 13px; padding: 7px 16px; display: flex; gap: 14px; align-items: center; }
#admin-bar[hidden] { display: none; }
#admin-bar a { color: #8cc4ff; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 13.5px; padding: 34px 0 40px; }
.site-footer .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--text); font-size: 16px; }
.site-footer p { margin: 4px 0 0; }
.site-footer a { color: #555; }
.foot-r { text-align: right; }
.foot-r .copy { font-size: 12.5px; }

@media (max-width: 760px) {
  .site-header .hwrap { flex-wrap: wrap; height: auto; gap: 10px 14px; padding-top: 12px; padding-bottom: 10px; }
  .cats { order: 3; flex: 1 1 100%; }
  .search input, .search input:focus { width: 130px; }
  .hero h1 { font-size: 26px; }
  .card.featured { flex-direction: column; align-items: stretch; gap: 14px; }
  .card.featured .card-thumb { flex: none; }
  .card.featured h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .related .grid { grid-template-columns: 1fr; }
  .post-title { font-size: 26px; }
  .prose { font-size: 16px; }
  .lc-img { width: 104px; }
  .lc-desc { -webkit-line-clamp: 1; }
  .foot-r { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   법률서랍 — 모던 & 클린: 흰 바탕, 산세리프(Pretendard), 절제된 틸(청록) 포인트
   그림자는 얕게, 여백은 넉넉하게, 장식은 최소한으로.
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e8ecf1;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e7f6f3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-up: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 36px rgba(15, 23, 42, .1);
  --maxw: 1140px;
  --text: var(--ink);
  --body: var(--ink-2);
  --muted: var(--ink-3);
  --soft: var(--bg-soft);
  --link: var(--accent);
  --w: 760px;
  --wide: 1140px;
  --serif: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: 17px; line-height: 1.65; letter-spacing: -0.012em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; height: auto; width: auto; padding: 12px 18px; z-index: 100000; left: 8px; top: 8px; box-shadow: 0 0 0 3px var(--accent); }
#progress { background: var(--accent); height: 3px; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); border: 0; border-bottom: 1px solid var(--line); padding: 0; }
.inside-header { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: var(--accent); }
.brand-mark i { display: block; height: 3px; border-radius: 2px; background: #fff; }
.brand-mark i:nth-child(2) { width: 70%; opacity: .8; }
.brand-mark i::after { display: none; }
.main-navigation { margin-left: auto; display: flex; align-items: center; background: none; border: 0; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
.main-nav ul li > a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 600; line-height: 1.4; transition: background .15s, color .15s; }
.main-nav ul li > a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav ul li.current-menu-item > a { color: var(--accent); background: var(--accent-soft); }
.main-navigation .search { margin: 0 0 0 8px; }
.main-navigation .search input { width: 140px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-size: 14px; transition: width .2s, border-color .2s, background .2s; }
.main-navigation .search input:focus { outline: 0; width: 190px; background: #fff; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; cursor: pointer; }

/* ---------- 틀 ---------- */
.site-content { display: block; min-height: 56vh; }
.ls-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }
.ls-wrap--post { max-width: 800px; padding-top: 44px; }
.ls-wrap--list { max-width: 880px; padding-top: 40px; }

/* ---------- 히어로 ---------- */
.ls-hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 50% -20%, rgba(20, 184, 166, .14), transparent 70%), #fff; }
.ls-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%); pointer-events: none; }
.ls-hero-in { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 96px 24px 84px; text-align: center; display: block; }
.ls-eyebrow { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow); }
.ls-hero .ls-hero-title { margin: 0; font-family: inherit; font-size: 58px; line-height: 1.2; font-weight: 800; letter-spacing: -0.055em; color: var(--ink); max-width: none; }
.ls-hero-title em { font-style: normal; background: linear-gradient(90deg, #0f766e, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-hero-desc { max-width: 600px; margin: 22px auto 0; font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.ls-hero-search { display: flex; max-width: 620px; margin: 34px auto 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.ls-hero-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 13px 18px; font: inherit; font-size: 16px; color: var(--ink); text-align: left; }
.ls-hero-search input:focus { outline: 0; }
.ls-hero-search button { border: 0; border-radius: 12px; padding: 0 26px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.ls-hero-search button:hover { background: var(--accent); }
.ls-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 700px; }
.ls-hero-chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s, transform .15s; }
.ls-hero-chips a:hover { border-color: var(--accent-2); color: var(--accent); transform: translateY(-1px); }
.ls-hero-count { margin: 26px 0 0; font-size: 14px; color: var(--ink-3); }
.ls-hero-count b { color: var(--ink); }
.ls-hero-art { display: none; }

/* ---------- 구역 ---------- */
.ls-sec { padding-top: 64px; }
.ls-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 24px; }
.ls-sec-head h2 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); }
.ls-sec-head p { margin: 0; font-size: 15px; color: var(--ink-3); }

/* ---------- 주제 타일 ---------- */
.ls-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ls-topic { position: relative; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, transform .18s, box-shadow .18s; min-width: 0; }
.ls-topic:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: var(--shadow-up); color: var(--ink); }
.ls-topic-ic { display: block; width: 10px; height: 10px; margin-bottom: 14px; border-radius: 50%; background: var(--c); font-size: 0; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 15%, #fff); }
.ls-topic strong { font-size: 18px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.ls-topic-desc { display: block; margin: 8px 0 18px; font-size: 14px; line-height: 1.65; color: var(--ink-2); min-height: 70px; }
.ls-topic-n { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ink-3); transition: color .18s; }
.ls-topic:hover .ls-topic-n { color: var(--c); }

/* ---------- 카드 ---------- */
.ls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.ls-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.ls-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); border-color: transparent; }
.ls-card-media { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-soft); line-height: 0; }
.ls-card-media .ls-thumb, .ls-item-media .ls-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ls-card:hover .ls-thumb { transform: scale(1.04); }
.ls-ph { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #0f172a)); overflow: hidden; }
.ls-ph-t { position: relative; z-index: 1; color: rgba(255, 255, 255, .95); font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.ls-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; min-width: 0; }
.ls-tag { align-self: flex-start; display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c, var(--accent)) 10%, #fff); color: var(--c, var(--accent)); font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.ls-tag:hover { background: var(--c, var(--accent)); color: #fff; }
.ls-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.45; font-weight: 800; letter-spacing: -0.04em; word-break: keep-all; overflow-wrap: break-word; }
.ls-card h3 a { color: var(--ink); }
.ls-card h3 a:hover { color: var(--accent); }
.ls-card-body p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ls-meta { margin-top: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ls-meta i { margin: 0 8px; font-style: normal; color: #cbd5e1; }
.ls-card--sm h3 { font-size: 16.5px; }
.ls-feature { max-width: 100%; }
.ls-card--wide { display: grid; grid-template-columns: 1.25fr 1fr; }
.ls-card--wide .ls-card-media { aspect-ratio: 1200 / 630; min-height: 0; }
.ls-card--wide .ls-card-body { padding: 34px 38px; justify-content: center; }
.ls-card--wide h3 { font-size: 28px; line-height: 1.4; letter-spacing: -0.05em; }
.ls-card--wide .ls-card-body p { font-size: 15.5px; margin-bottom: 18px; }
.ls-card--wide .ls-meta { margin-top: 0; }

/* ---------- 이용 안내 ---------- */
.ls-trust { margin-top: 72px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.ls-trust-in { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: t; }
.ls-trust-in > div { counter-increment: t; }
.ls-trust strong { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.035em; }
.ls-trust strong::before { content: "0" counter(t); display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.ls-trust p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 목록 페이지 ---------- */
.ls-page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); border-top: 0; }
.ls-page-hero-in { max-width: 880px; margin: 0 auto; padding: 52px 24px 44px; }
.ls-page-hero .ls-eyebrow { margin-bottom: 14px; padding: 4px 12px; font-size: 12px; letter-spacing: .1em; color: var(--c, var(--accent)); box-shadow: none; }
.ls-page-hero h1 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -0.055em; color: var(--ink); }
.ls-page-sub { max-width: 620px; margin: 12px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.ls-list { display: flex; flex-direction: column; gap: 16px; }
.ls-item { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.ls-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: transparent; }
.ls-item-media { display: block; aspect-ratio: 1200 / 630; align-self: start; border-radius: 11px; overflow: hidden; background: var(--bg-soft); line-height: 0; }
.ls-item-body { display: flex; flex-direction: column; min-width: 0; padding: 6px 8px 6px 0; }
.ls-item h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.42; font-weight: 800; letter-spacing: -0.045em; }
.ls-item h2 a { color: var(--ink); }
.ls-item h2 a:hover { color: var(--accent); }
.ls-item p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.empty { padding: 64px 20px; text-align: center; color: var(--ink-3); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; font-size: 14.5px; color: var(--ink-3); }
.pager a { padding: 10px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.pager a:hover { border-color: var(--accent-2); color: var(--accent); }

/* ---------- 글 ---------- */
.post { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.post-head { margin-bottom: 38px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-head .ls-tag { margin-bottom: 16px; }
.post-title { margin: 0 0 18px; font-size: 42px; line-height: 1.32; font-weight: 800; letter-spacing: -0.055em; color: var(--ink); }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-3); }
.post-head .meta > * + *::before { content: "·"; margin-right: 14px; color: #cbd5e1; }
.prose { font-size: 17.5px; line-height: 1.95; color: #1e293b; overflow-wrap: break-word; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { margin: 2.7em 0 .9em; padding: 0; font-size: 28px; line-height: 1.4; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); border: 0; }
.prose h3 { margin: 2.2em 0 .7em; font-size: 21px; line-height: 1.5; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.prose h3::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 3px 0; border-radius: 50%; background: var(--accent-2); }
.prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .6em; font-weight: 800; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent-2); font-weight: 800; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #0b5953; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.8em 0; padding: 18px 22px; font-size: 1em; font-style: normal; color: var(--ink-2); background: var(--bg-soft); border: 0; border-left: 3px solid var(--accent-2); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { height: 1px; margin: 3em 0; border: 0; background: var(--line); }
.prose img { height: auto; max-width: 100%; border-radius: 12px; }
.prose figure { margin: 1.8em 0; text-align: center; }
.prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.prose .table-wrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.prose th { font-weight: 700; color: var(--ink); background: var(--bg-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose pre { margin: 0 0 1.5em; padding: 18px; background: #0f172a; color: #e2e8f0; border: 0; border-radius: 12px; font-size: 14.5px; overflow-x: auto; }
.prose :not(pre) > code { padding: 2px 7px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; font-size: .92em; }
.toc { margin: 0 0 2.2em; }
.toc details { padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.toc summary { font-size: 16px; font-weight: 800; color: var(--ink); cursor: pointer; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.toc ol ol a { color: var(--ink-3); font-size: 15.5px; }
.prose .toc a, .prose .toc a:hover { text-decoration: none; }
.prose .toc ol { margin: 14px 0 0; padding: 0; list-style: none; }
.prose .toc ol ol { margin: 4px 0; padding-left: 20px; }
.prose .toc li { margin: 7px 0; }
.link-card { display: flex; align-items: center; gap: 16px; margin: 1.5em 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--accent-2); box-shadow: var(--shadow); color: var(--ink); }
.lc-title { font-weight: 800; color: var(--ink); }
.lc-desc { font-size: 15px; color: var(--ink-3); }
.prose a.link-card, .prose a.link-card:hover, .prose a.link-card span { text-decoration: none; }
.related-box { margin: 1.8em 0; padding: 20px 22px; background: var(--accent-soft); border: 1px solid #c8ebe5; border-radius: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.6em 0 0; }
.tags a { padding: 6px 14px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.tags a:hover { background: var(--accent); color: #fff; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.prevnext a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; }
.prevnext a:hover { border-color: var(--accent-2); color: var(--accent); }
.prevnext a.r { text-align: right; }
.prevnext small { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.related { margin-top: 56px; }
.related .ls-sec-head h2 { font-size: 22px; }
.preview-notice { margin: 0 0 20px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; padding: 0; margin-top: 0; }
.inside-footer { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 30px; display: grid; grid-template-columns: 1.5fr 1.4fr 1fr; gap: 36px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--ink); }
.foot-brand p { margin: 12px 0 0; max-width: 340px; line-height: 1.7; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: flex-start; }
.foot-links strong { flex: 0 0 100%; margin-bottom: 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.foot-copy { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-3); }
#to-top { border-radius: 50%; background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow-up); }
#to-top:hover { background: var(--accent); }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .ls-hero-in { padding: 72px 24px 64px; }
  .ls-hero .ls-hero-title { font-size: 46px; }
  .ls-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-card--wide { grid-template-columns: 1fr; }
  .ls-trust-in { grid-template-columns: 1fr; gap: 26px; }
  .inside-footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .inside-header { height: 60px; padding: 0 18px; gap: 12px; }
  .menu-toggle { display: block; }
  .main-navigation { margin-left: auto; position: static; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; padding: 8px 18px 16px; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 23, 42, .1); }
  .main-navigation.toggled .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul li > a { padding: 12px 14px; border-radius: 10px; }
  .main-navigation .search input, .main-navigation .search input:focus { width: 100%; }
  .ls-wrap { padding: 0 18px 52px; }
  .ls-page-hero-in { padding: 38px 18px 32px; }
  .ls-page-hero h1 { font-size: 31px; }
  .ls-item { grid-template-columns: 1fr; gap: 14px; }
  .post-title { font-size: 30px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 19px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a.r { text-align: left; }
  .link-card { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .ls-hero-in { padding: 52px 18px 48px; }
  .ls-hero .ls-hero-title { font-size: 35px; }
  .ls-hero-desc { font-size: 16.5px; }
  .ls-hero-search { flex-direction: column; }
  .ls-hero-search button { padding: 13px; margin-top: 6px; }
  .ls-sec { padding-top: 46px; }
  .ls-sec-head h2 { font-size: 23px; }
  .ls-topics, .ls-grid { grid-template-columns: 1fr; }
  .ls-topic-desc { min-height: 0; }
  .ls-card--wide .ls-card-body { padding: 22px; }
  .ls-card--wide h3 { font-size: 23px; }
  .inside-footer { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 링크 카드: 썸네일(전체가 보이게)과 큰 제목만 또렷하게. 작은 설명 글은 숨기고, 출처는 아주 작게만 둔다 */
.link-card .lc-img { display: flex; align-items: center; justify-content: center; padding: 0; background: #f1f3f5; }
.link-card .lc-img img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; }
.link-card .lc-body { justify-content: center; }
.link-card .lc-title { font-size: 17px; font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; }
.link-card .lc-desc { display: none; }
.link-card .lc-site { margin-top: 4px; font-size: 12px; color: #9aa0a6; }
.link-card .lc-body::after { display: none; }
.prose a.link-card, .prose a.link-card:hover, .prose a.link-card *, .prose a.link-card:hover * { text-decoration: none !important; }
.prose a.link-card .lc-title { color: var(--text, #111); }
.prose a.link-card .lc-site { color: #9aa0a6; }

/* 썸네일: 직접 올린 그림의 비율이 1200×630이 아니어도 제목 글자가 잘리지 않게 전체를 보여 주고, 남는 곳은 같은 그림을 흐리게 채움 */
.ls-card-media, .ls-item-media { position: relative; overflow: hidden; isolation: isolate; }
.ls-card-media .th-blur, .ls-item-media .th-blur { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1); transform: none; transition: none; pointer-events: none; }
.ls-card-media img.ls-thumb, .ls-item-media img.ls-thumb { position: relative; object-fit: contain; }
