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

:root {
  --text: #111;
  --body: #2b2b2b;
  --muted: #7a7a7a;
  --line: #e4e4e4;
  --soft: #f6f6f7;
  --link: #4338ca;
  --accent: #5b4bdb;
  --accent-soft: #eeeafd;
  --w: 760px;
  --wide: 1120px;
  --radius: 4px;
  --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; }

/* 헤더: 가운데 큰 로고 + 아래 가로 메뉴 (bntnews 형태) */
.site-header { background: #fff; }
.site-header .top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; }
.today { font-size: 13px; color: var(--muted); }
.brand { justify-self: center; color: var(--text); font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: -0.045em; }
.brand:hover { text-decoration: none; }
.brand-name::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 3px; border-radius: 50%; background: var(--accent); }
.search { justify-self: end; }
.search input { border: 0; border-bottom: 2px solid var(--text); background: transparent; border-radius: 0; padding: 7px 2px; font: inherit; font-size: 14px; width: 150px; transition: width .2s, border-color .2s; }
.search input:focus { outline: none; border-color: var(--accent); width: 200px; }
.gnb { position: sticky; top: 0; z-index: 50; background: #fff; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
/* 메뉴 12칸: 한 줄에 다 안 들어가면 숨기지 않고 다음 줄로 (가로 스크롤이면 끝의 정부지원금 등이 화면 밖에 숨음) */
.cats { display: flex; flex-wrap: wrap; gap: 2px; }
.cats a { flex: none; padding: 13px 14px 11px; color: var(--text); font-size: 15.5px; font-weight: 700; border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--accent); text-decoration: none; }
.cats a.on { border-bottom-color: var(--accent); }
/* 메뉴에 붙인 링크(자가진단·운세·정부지원금)도 카테고리와 같은 모양 */

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


.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.ad-gap { margin-top: 48px !important; }
/* 모든 광고 칸 위에 작은 "광고" 표시 (자가진단·운세·정부지원금 광고와 같은 모양) */
.ad::before { content: "광고"; display: block; font-size: 11px; line-height: 1; letter-spacing: .12em; color: #999; margin-bottom: 8px; }
/* 맨 아래 멀티플렉스 광고 밑에는 진단 카드·이전/다음 글 같은 누르는 상자가 오므로 넉넉히 띄움 */
.ad-multiplex { margin-bottom: 48px !important; }
/* 홈·목록 화면 광고: 위아래가 모두 누르는 글 카드라 양쪽 48px */
.ad.ad-list { margin: 48px 0 !important; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.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 { background: #111; color: #9a9a9a; font-size: 13.5px; padding: 38px 0 34px; }
.site-footer .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.site-footer p { margin: 8px 0 0; max-width: 420px; line-height: 1.7; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; }
.foot-nav a { color: #d0d0d0; font-weight: 600; }
.site-footer .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2c2c2c; font-size: 12.5px; }

@media (max-width: 760px) {
  .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: 27px; }
  .prose { font-size: 16px; }
  .lc-img { width: 104px; }
  .lc-desc { -webkit-line-clamp: 1; }
}
@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이 아니어도 제목 글자가 잘리지 않게 전체를 보여 주고, 남는 곳은 같은 그림을 흐리게 채움 */
.card-thumb { position: relative; overflow: hidden; isolation: isolate; }
.card-thumb .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; }
.card-thumb img.th-main { position: relative; object-fit: contain; }

/* ───────── 뉴스 포털 형태 (홈·목록·기사) ───────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .01em; color: var(--c, var(--accent)); }
.kicker:hover { text-decoration: none; opacity: .8; }
time { white-space: nowrap; }

/* 그림 칸 공통: 그림은 전체가 보이게(contain), 남는 곳은 같은 그림을 흐리게 채움 */
.nthumb, .slide-img { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; isolation: isolate; background: #eee; border-radius: var(--radius); }
.nthumb img, .slide-img img { width: 100%; height: 100%; display: block; }
.nthumb .th-blur, .slide-img .th-blur { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1); pointer-events: none; }
.nthumb img.th-main, .slide-img img.th-main { position: relative; object-fit: contain; transition: transform .35s; }
.nthumb:hover img.th-main { transform: scale(1.03); }
.nthumb.empty-thumb, .slide-img.empty-thumb { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.nthumb .ph, .slide-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 900; color: rgba(255, 255, 255, .85); }

/* 큰 슬라이드 */
.slider { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch; }
.slider-main { position: relative; min-width: 0; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; color: var(--text); opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.slide.on { opacity: 1; visibility: visible; }
.slide:hover { text-decoration: none; }
.slide-cap { display: flex; flex-direction: column; gap: 8px; padding: 16px 2px 0; }
.slide-cap .kicker { color: var(--c); }
.slide-title { font-size: 30px; line-height: 1.38; font-weight: 900; letter-spacing: -0.03em; }
.slide:hover .slide-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.slide-desc { font-size: 16px; line-height: 1.65; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider.ov .slide-cap { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1200 / 630; justify-content: flex-end; padding: 70px 28px 26px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 62%); border-radius: var(--radius); pointer-events: none; }
.slider.ov .slide-title { color: #fff; font-size: 32px; }
.slider.ov .slide-desc { color: rgba(255, 255, 255, .86); -webkit-line-clamp: 1; }
.slider.ov .slide-cap .kicker { align-self: flex-start; background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 2px; }
.slider.ov .slide { display: block; }
.arrow { position: absolute; top: calc(50% * 630 / 1200 - 20px); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 24px; line-height: 38px; cursor: pointer; opacity: 0; transition: opacity .2s; z-index: 3; }
.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }
.slider-main:hover .arrow, .arrow:focus-visible { opacity: 1; }
.dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 3; }
.dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); cursor: pointer; }
.dot.on { background: var(--accent); box-shadow: none; width: 22px; border-radius: 5px; }
.heads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--text); }
.heads li { flex: 1; display: flex; border-bottom: 1px solid var(--line); }
.head { flex: 1; display: flex; gap: 12px; align-items: center; padding: 10px 4px; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.head em { flex: none; width: 20px; font-style: normal; font-weight: 900; color: #bbb; }
.head span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.head:hover { text-decoration: none; color: var(--accent); }
.head.on, .head.on em { color: var(--accent); }

/* 홈 본문 2단 */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-top: 48px; align-items: start; }
.sec-h { margin: 0; padding-bottom: 10px; font-size: 21px; font-weight: 900; letter-spacing: -0.03em; color: var(--text); border-bottom: 2px solid var(--text); }
.nlist .nrow { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.nmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.nbody h3, .lead-card h3 { margin: 0; font-size: 19.5px; line-height: 1.45; font-weight: 800; letter-spacing: -0.025em; }
.nbody h3 a, .lead-card h3 a { color: var(--text); }
.nbody h3 a:hover, .lead-card h3 a:hover { color: var(--accent); text-decoration: none; }
.nbody .desc, .lead-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; }
.more-btn { display: block; margin-top: 24px; padding: 14px; text-align: center; border: 1px solid var(--text); border-radius: var(--radius); font-weight: 700; color: var(--text); }
.more-btn:hover { background: var(--text); color: #fff; text-decoration: none; }
.side { position: sticky; top: 64px; }
.popular ol { list-style: none; margin: 0; padding: 0; }
.popular li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.popular em { flex: none; width: 20px; font-style: normal; font-weight: 900; font-size: 18px; color: #bbb; line-height: 1.4; }
.popular li:nth-child(-n+3) em { color: var(--accent); }
.popular a { color: var(--text); font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; }
.popular a:hover { color: var(--accent); text-decoration: none; }

/* 카테고리별 묶음 */
.sec { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 11px; margin-bottom: 22px; border-bottom: 2px solid var(--text); }
.sec-head h2 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -0.03em; }
.sec-head h2 a { color: var(--text); padding-left: 11px; border-left: 5px solid var(--c); }
.sec-head h2 a:hover { text-decoration: none; color: var(--c); }
.sec-head .more { font-size: 14px; font-weight: 600; color: var(--muted); }
.sec-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
.lead-card { display: flex; flex-direction: column; gap: 10px; }
.lead-card time, .compact time { font-size: 13px; color: var(--muted); }
.compact { list-style: none; margin: 0; padding: 0; }
.compact li { display: flex; flex-direction: column; gap: 4px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.compact li:first-child { padding-top: 0; }
.compact li:last-child { border-bottom: 0; }
.compact a { color: var(--text); font-size: 17.5px; font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }
.compact a:hover { color: var(--accent); text-decoration: none; }

/* 카테고리·검색 목록 머리 */
.list-head { padding: 4px 0 14px; margin-bottom: 4px; border-bottom: 2px solid var(--text); }
.list-head h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.03em; padding-left: 12px; border-left: 6px solid var(--c, var(--text)); line-height: 1.2; }
.list-head p { margin: 8px 0 0; color: var(--muted); }
.wrap.wide .nlist, .wrap.wide .pager { max-width: 860px; }

/* 기사 머리 */
.post-head { padding-bottom: 20px; margin-bottom: 26px; border-bottom: 2px solid var(--text); }
.post-head .kicker { display: inline-block; font-size: 14px; }
.post-title { font-size: 36px; line-height: 1.35; margin: 10px 0 16px; font-weight: 900; letter-spacing: -0.035em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.byline .by { color: var(--text); font-weight: 700; }
.pill { border-radius: 2px; }
.prose h2 { border-bottom: 0; border-left: 5px solid var(--accent); padding: 2px 0 2px 12px; font-size: 22px; }
.empty { color: var(--muted); padding: 60px 0; text-align: center; }

@media (max-width: 900px) {
  .slider { grid-template-columns: 1fr; gap: 0; }
  .heads { display: none; }
  .home-cols { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
  .slide-title { font-size: 25px; }
  .slider.ov .slide-title { font-size: 24px; }
  .sec-body { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .site-header .top { grid-template-columns: 1fr auto; height: 62px; }
  .today { display: none; }
  .brand { justify-self: start; font-size: 28px; }
  .search input, .search input:focus { width: 120px; }
  /* 휴대폰: 메뉴 12칸을 4칸씩 세 줄로 모두 보이게 (가로로 넘기면 뒤쪽 자가진단·운세·정부지원금이 화면 밖으로 밀려 안 보임).
     세 줄이 화면 위를 계속 가리지 않게 따라 내려오지 않음 */
  .gnb { position: static; }
  .cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 0; }
  .cats a { padding: 9px 2px 7px; font-size: 14px; text-align: center; white-space: nowrap; }
  main.wrap { padding-top: 18px; }
  .nlist .nrow { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .nbody h3 { font-size: 16.5px; }
  .nbody .desc { display: none; }
  .slide-title { font-size: 22px; }
  .slide-desc { display: none; }
  .slider.ov .slide-cap { padding: 40px 16px 16px; }
  .slider.ov .slide-title { font-size: 20px; }
  .arrow { display: none; }
  .post-title { font-size: 26px; }
  .list-head h1 { font-size: 24px; }
}

/* 심테 허브 (/t) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--body); background: #fff; }
.chip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 글 하단: 이 주제로 진단해 보기 */
.kx-tests { margin: 36px 0 8px; }
.kx-tests-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kx-test { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--body); }
.kx-test:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.kx-test-thumb { flex: 0 0 96px; aspect-ratio: 1200 / 630; border-radius: 3px; overflow: hidden; background: #eee; }
.kx-test-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kx-test-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kx-test-title { font-weight: 700; color: var(--text); line-height: 1.4; }
.kx-test-cta { font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 640px) { .kx-tests-grid { grid-template-columns: 1fr; } }

/* 홈 포털: 상황별 입구 */
.kx-portal { margin: 4px 0 34px; }
.kx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; }
.kx-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--accent)); border-radius: var(--radius); background: #fff; color: var(--body); transition: transform .15s, box-shadow .15s; }
.kx-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.kx-tile b { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.kx-tile span { font-size: 13px; color: var(--muted); }
.kx-tile-app { background: var(--accent-soft); border-top-color: var(--accent); }
.kx-feat { margin-bottom: 12px; }
.kx-more { text-align: center; margin: 6px 0 0; }
@media (max-width: 900px) { .kx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-tile { padding: 14px 12px 12px; } }

/* 홈 추천 심테: 3열로 줄여 글 슬라이드가 더 위에 오게 */
.kx-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.kx-feat .card-body h2 { font-size: 15px; line-height: 1.4; margin: 6px 0 0; }
.kx-feat .card-body .desc { display: none; }
.kx-feat .card-meta { margin: 8px 0 0; }
@media (max-width: 760px) { .kx-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .kx-feat .card:nth-child(n+5) { display: none; } }
.kx-portal { margin-bottom: 24px; }
.kx-tiles { margin-bottom: 22px; }
.kx-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
