@charset "UTF-8";
/* 트렌드 해설지 스킨 (D-016, 2026-11-22). 참고: Jack & Jill 블로그 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Hahmlet:wght@600&family=Fraunces:ital@1&display=swap");

:root {
  --bg: #f7f6f1;
  --ink: #111110;
  --muted: #6b6a64;
  --line: #e3e1d8;
  --soft: #eeece4;
  --accent: #d9f26b;          /* 소제목 번호에만 쓴다 */
  --cat-trends: #2f4a7a;      /* 카테고리 구분 */
  --cat-ai: #0f7a6b;
  --cat-life: #b4531c;
  --max: 1120px;
  --read: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --ink: #f1f0ea; --muted: #a09e95; --line: #2c2b28; --soft: #1f1e1c;
    --cat-trends: #9db6e6; --cat-ai: #6fd3c2; --cat-life: #f0a072;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 머리글 */
.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; background: var(--bg); } /* 스크롤해도 머리글 고정 */
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); }
.logo .owl { width: 46px; height: 30px; flex: none; }
.logo .o-ring { fill: var(--ink); }
.logo .o-eye { fill: var(--bg); }
.logo .name { font-family: "Hahmlet", serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.logo .en { font-family: "Fraunces", serif; font-style: italic; font-size: 15px; color: var(--muted); line-height: 1; transform: translateY(2px); }
@media (max-width: 560px) { .logo .en { display: none; } .logo .owl { width: 40px; height: 26px; } .logo .name { font-size: 21px; } }
.cats { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.cats a:hover { color: var(--ink); }
.search input {
  font: inherit; font-size: 14px; width: 140px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
}
.search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; width: 200px; }

/* 최근 주제 띠 */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--muted); }
.ticker .track { display: inline-flex; gap: 28px; padding: 9px 0; animation: tick 50s linear infinite; }
.ticker .track:hover { animation-play-state: paused; }
.ticker a:hover { color: var(--ink); }
.ticker b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* 카테고리 표시 */
.cat { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.cat[data-c="Hot Issues"] { color: var(--cat-trends); }
.cat[data-c="AI Issues"] { color: var(--cat-ai); }
.cat[data-c="Life Trends"] { color: var(--cat-life); }
.meta { font-size: 13px; color: var(--muted); }

.main { min-height: 50vh; }

/* 목록 머리 */
.list-head { padding: 28px 0 8px; }
.list-title { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.list-title .count { color: var(--muted); font-weight: 400; margin-left: 4px; }
#tt-body-index .list-title { display: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; }
.tabs a {
  font-size: 14px; border: 1px solid var(--line); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap; line-height: 20px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 글 목록 3열 (테두리 없이 이미지·여백으로 구분) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; padding: 20px 0 56px; }
.item .ph { display: block; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; margin-bottom: 14px; position: relative; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.item:hover .ph img { transform: scale(1.02); }
.item .ph .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-size: 34px; color: var(--muted); opacity: .55; }
.item .ph.has .noimg { display: none; }
.item h2 { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; margin: 6px 0 8px; font-weight: 650;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item h2 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.item .summary { font-size: 14px; color: var(--muted); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 첫 글: 대표 글 (1순위 정보) */
.item.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end;
  padding: 20px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.item.feature .ph { aspect-ratio: 16/9; margin: 0; }
.item.feature h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.22; letter-spacing: -0.03em; margin: 10px 0 14px; font-weight: 700; -webkit-line-clamp: 4; }
.item.feature .summary { font-size: 16px; -webkit-line-clamp: 3; margin-bottom: 16px; }
.feature-grid { padding-bottom: 0; }

.empty-state { padding: 48px 0 72px; border-top: 1px solid var(--line); }
.empty-state h3 { margin: 0 0 6px; font-size: 18px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }
.btn { display: inline-block; font-size: 14px; background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; }

/* 쪽 번호 */
.paging { display: flex; justify-content: center; gap: 4px; padding: 8px 0 64px; font-size: 14px; }
.paging a { min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px; border-radius: 999px; color: var(--muted); }
.paging a:hover { color: var(--ink); }
.paging .selected, .paging a .selected { color: var(--bg); background: var(--ink); border-radius: 999px; display: inline-block; min-width: 36px; }
.paging .no-more-prev, .paging .no-more-next { visibility: hidden; }

/* 글 화면 */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ink); z-index: 100; }
.post { max-width: var(--read); margin: 0 auto; }
.post-head { padding: 48px 0 24px; }
.post-head h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.25; letter-spacing: -0.03em; margin: 12px 0 18px; }
.toc ol { list-style: none; margin: 0 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.toc a { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc .num { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; min-width: 22px; }

.article-view { padding: 24px 0 40px; font-size: 17.5px; line-height: 1.85; }
.article-view p, .article-view .contents_style p { margin: 0 0 1.25em !important; }
.article-view figure { margin: 8px 0 32px; }
.article-view figure img, .article-view .imageblock img { width: 100%; height: auto; display: block; }
.article-view h3 { font-size: 23px; line-height: 1.4; letter-spacing: -0.02em; margin: 56px 0 18px; display: flex; gap: 12px; align-items: baseline; scroll-margin-top: 84px; }
.article-view h3 .num { font-size: 14px; font-weight: 700; background: var(--accent); color: #111; padding: 2px 8px; border-radius: 4px; flex: none; transform: translateY(-3px); }
.article-view h3.refs { font-size: 15px; color: var(--muted); margin-top: 48px; }
.article-view ul.refs { list-style: none !important; padding: 16px 18px !important; margin: 0; background: var(--soft); font-size: 14px; line-height: 1.6; }
.article-view ul.refs li { list-style: none !important; }
.article-view ul.refs li + li { margin-top: 8px; }
.article-view ul.refs a { color: var(--muted); }
.article-view a { text-decoration: underline; text-underline-offset: 3px; }
.article-view blockquote { margin: 0 0 1.25em; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); color: var(--muted); }
.article-view table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article-view td, .article-view th { border: 1px solid var(--line); padding: 8px 10px; }

.post-foot { padding-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; } /* 태그 사이 쉼표 숨김 */
.tags a { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.tags a:hover { color: var(--ink); }
.post-foot .tags a::before { content: "#"; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.prevnext a { display: block; }
.prevnext span { display: block; font-size: 12px; color: var(--muted); }
.prevnext strong { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prevnext a + a { text-align: right; }

.next { border-top: 1px solid var(--line); }
.next .sec { font-size: 14px; color: var(--muted); font-weight: 600; margin: 32px 0 0; }
.reply { max-width: var(--read); margin: 0 auto; padding-bottom: 48px; }
.protected { padding: 32px 0 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.protected p { width: 100%; margin: 0 0 4px; color: var(--muted); }
.protected input { font: inherit; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.protected button { font: inherit; height: 40px; padding: 0 16px; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; }
.tag-cloud { padding: 32px 0 64px; }
.tag-cloud .tags a { font-size: 14px; }

/* 바닥글 */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot p { margin: 0 0 12px; }
.all-cats summary { cursor: pointer; }
.all-cats ul { list-style: none; padding: 0; margin: 8px 0 0; }
.all-cats li { margin: 4px 0; }
.all-cats .sub_category_list { padding-left: 14px; }
.all-cats .c_cnt { margin-left: 4px; opacity: .7; }

/* 글 화면 오른쪽 사이드바 (PC) */
.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 300px; gap: 56px; justify-content: center; }
.post-layout .post { margin: 0; max-width: none; }
.rail { padding-top: 48px; min-width: 0; position: sticky; top: 64px; align-self: start; }
.rail-box { margin-bottom: 28px; }
.rail-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.rail-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .post-layout { display: block; max-width: var(--read); margin: 0 auto; }
  .rail { padding-top: 0; position: static; }
}

@media (max-width: 860px) {
  .item.feature { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; }
  .cats { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .search input { width: 110px; }
  .search input:focus { width: 150px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .item:not(.feature) { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
  .item:not(.feature) .ph { aspect-ratio: 1; margin: 0; }
  .item:not(.feature) .ph .noimg { font-size: 22px; }
  .item:not(.feature) h2 { font-size: 16px; margin-top: 2px; }
  .item:not(.feature) .summary { display: none; }
  .item.feature { padding-top: 0; }
  .item.feature .ph { margin: 0 -16px; }
  .post-head { padding-top: 32px; }
  .article-view { font-size: 17px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a + a { text-align: left; }
}
