/* JStudio 커스텀 스타일 (템플릿 main.css 위에 덮어씀) */
body, input, select, textarea {
  font-family: "Open Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 700; word-break: keep-all;
}
p { word-break: keep-all; }

.state-msg { color: #7f888f; padding: 3em 0; text-align: center; }
.empty-box { border: 1px dashed #c9d1d6; border-radius: 6px; padding: 3em 1.5em; text-align: center; color: #7f888f; }
.empty-box code { background: #f3f6fa; padding: .15em .5em; border-radius: 4px; }

.post-meta { font-size: .85em; color: #7f888f; margin: 0 0 .6em; }
.post-meta .cat { color: #f56a6a; font-weight: 600; }

.filter-bar { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; margin: 0 0 1.5em; }
.filter-bar a { font-size: .9em; }

/* ---------- 사이드바: 최근 글 리스트 ---------- */
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { padding: 0; margin: 0; border-top: 1px solid rgba(210,215,217,.75); }
.recent-list li:first-child { border-top: 0; }
.recent-list a { display: flex; gap: .8em; align-items: baseline; padding: .75em 0; border: 0; line-height: 1.45; }
.recent-list .rd { flex: 0 0 auto; font-size: .78em; font-weight: 700; color: #f56a6a; min-width: 2.9em; }
.recent-list .rt { color: #5a6670; font-size: .92em; word-break: keep-all; }
.recent-list a:hover .rt { color: #f56a6a; }

/* ---------- 메인: 일별 타임라인 ---------- */
.timeline { margin-top: .5em; }
.tl-day { display: grid; grid-template-columns: 150px 1fr; gap: 0 1.5em; padding-bottom: 2.4em; }
.tl-date { position: sticky; top: 1em; align-self: start; padding-top: .1em; }
.tl-date time { display: block; }
.tl-date .md { display: block; font-size: 1.15em; color: #3d4449; font-weight: 500; line-height: 1.3; }
.tl-date .md b { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; }
.tl-date .yw { display: block; font-size: .82em; color: #7f888f; margin-top: .15em; }
.tl-date .cnt { display: inline-block; margin-top: .6em; font-size: .75em; font-weight: 700; color: #f56a6a; background: #fdecec; padding: .2em .7em; border-radius: 1em; }

.tl-list { list-style: none; margin: 0; padding: 0 0 0 1.8em; border-left: 2px solid #e6eaee; }
.tl-item { position: relative; display: flex; gap: 1.2em; align-items: flex-start; padding: 0 0 1.6em; margin: 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: calc(-1.8em - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid #f56a6a; box-sizing: content-box; }
.tl-body { flex: 1 1 auto; min-width: 0; }
.tl-top { margin: 0 0 .25em; font-size: .82em; color: #7f888f; }
.tl-top .sep { font-style: normal; margin: 0 .45em; color: #c9d1d6; }
.tl-time { font-weight: 800; color: #3d4449; font-variant-numeric: tabular-nums; }
.tl-top .cat { color: #f56a6a; font-weight: 700; }
.tl-item h3 { margin: 0 0 .45em; font-size: 1.15em; line-height: 1.45; }
.tl-item h3 a { border: 0; color: #3d4449; }
.tl-item h3 a:hover { color: #f56a6a; }
.tl-chips { margin: 0 0 .5em; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.chip { background: #3d4449; color: #fff; font-size: .75em; font-weight: 700; line-height: 1; padding: .45em .7em; border-radius: 4px; }
.chip.verdict { background: #f56a6a; }
.chip.plain { background: #f3f6fa; color: #5a6670; }
.chip b.up { color: #e5484d; } .chip b.dn { color: #2f6fed; }
.tl-desc { margin: 0; font-size: .92em; color: #7f888f; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-thumb { flex: 0 0 170px; width: 170px; height: 106px; margin: 0; border-radius: 6px; overflow: hidden; border: 0; }
.tl-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media screen and (max-width: 980px) {
  .tl-day { grid-template-columns: 1fr; padding-bottom: 2em; }
  .tl-date { position: static; display: flex; align-items: baseline; gap: .8em; flex-wrap: wrap; margin-bottom: 1em; }
  .tl-date time { display: flex; align-items: baseline; gap: .7em; }
  .tl-date .cnt { margin-top: 0; }
}
@media screen and (max-width: 560px) {
  .tl-list { padding-left: 1.3em; }
  .tl-item::before { left: calc(-1.3em - 6px); }
  .tl-item { flex-direction: column-reverse; gap: .7em; }
  .tl-thumb { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* 글 첫 이미지를 썸네일로 쓸 때: 잘리지 않게 전체 표시 */
.image.fit img { object-fit: contain !important; }
.tl-thumb.fit { background-color: #f3f6fa; }

/* ---------- 안내 페이지 제목 ---------- */
header.main h1 { font-size: 1.9em; line-height: 1.35; }
@media screen and (max-width: 736px) { header.main h1 { font-size: 1.45em; } }

#more-wrap { text-align: center; margin-top: 2em; }

/* ---------- 미니멀 푸터 ---------- */
#site-footer { margin-top: 3.5em; padding: 1.2em 0 .5em; border-top: 1px solid rgba(210,215,217,.75); font-size: .8em; color: #9aa3aa; }
#site-footer nav { display: flex; flex-wrap: wrap; gap: .4em 1.3em; margin-bottom: .6em; }
#site-footer a { border: 0; color: #7f888f; }
#site-footer a:hover { color: #f56a6a; }
#site-footer p { margin: 0; }

/* ---------- 안내 페이지 (소개/약관/방침 등) ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.15em; margin: 2em 0 .6em; }
.legal p, .legal li { line-height: 1.85; color: #5a6670; }
.legal ul { margin: 0 0 1.2em; }
.legal .updated { font-size: .85em; color: #9aa3aa; }
.legal .notice { background: #fdf3f3; border-left: 4px solid #f56a6a; padding: 1em 1.2em; border-radius: 4px; color: #3d4449; line-height: 1.7; }
.legal .contact-mail { font-size: 1.15em; font-weight: 700; }
.legal .contact-mail i { color: #f56a6a; margin-right: .4em; }

/* ---------- 사이드바 메뉴: 카테고리(폴더) 항목 ---------- */
#menu ul li a.on { color: #f56a6a; font-weight: 700; }
#menu .cnt-n { display: inline !important; font-size: .78em; color: #9aa3aa; font-weight: 600; margin-left: .35em; letter-spacing: 0; }

/* ---------- 글 페이지 (posts/ 의 글이 사이트 레이아웃 안에 표시됨) ---------- */
.post-crumb { margin: 1.6em 0 .4em; font-size: .85em; color: #9aa3aa; }
.post-crumb a { border: 0; color: #7f888f; }
.post-crumb a:hover { color: #f56a6a; }
.post-crumb i { font-style: normal; margin: 0 .5em; color: #c9d1d6; }
.post-nav { display: flex; justify-content: space-between; gap: 1.5em; margin: 2.5em 0 0; padding-top: 1.5em; border-top: 1px solid rgba(210,215,217,.75); }
.post-nav a { display: block; max-width: 48%; border: 0; color: #3d4449; font-size: .95em; line-height: 1.5; word-break: keep-all; }
.post-nav a small { display: block; color: #9aa3aa; font-size: .8em; margin-bottom: .2em; }
.post-nav a:hover { color: #f56a6a; }
.post-nav .n { text-align: right; margin-left: auto; }
.recent-list a.on .rt { color: #f56a6a; font-weight: 700; }
@media screen and (max-width: 736px) { .post-nav { flex-direction: column; } .post-nav a { max-width: 100%; } .post-nav .n { text-align: left; } }

/* 글 페이지 폭: 화면 너비에 맞춰 넓어짐 (글 원본의 고정 폭 760px 대신, 최대 1200px)
   body 를 붙여 글 자체 CSS(#jsx-post article)보다 우선 적용 */
body[data-page="post"] #jsx-post > * { max-width: min(100%, 1200px); margin-left: auto; margin-right: auto; box-sizing: border-box; padding-left: clamp(0px, 1.5vw, 28px); padding-right: clamp(0px, 1.5vw, 28px); }
@media screen and (min-width: 737px) {
  body[data-page="post"] #main > .inner { padding-left: clamp(2em, 4vw, 6em); padding-right: clamp(2em, 4vw, 6em); }
}

/* ---------- 왼쪽 메뉴 가독성 (글자 크게·진하게) ---------- */
#menu ul { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: 0; text-transform: none; color: #2f363b; }
#menu ul a, #menu ul span { font-size: 1.15em; font-weight: 500; padding: .55em 0; }
#menu > ul > li > ul { color: #3d4449; padding-left: .9em; border-left: 2px solid #eef0f2; }
#menu > ul > li > ul a, #menu > ul > li > ul span { font-size: 1.05em; font-weight: 500; }
#menu .cnt-n { font-size: .8em; color: #7f888f; }
#menu ul li a.on { color: #f56a6a; font-weight: 700; }
.recent-list .rt { color: #3d4449; font-size: 1em; }
.recent-list .rd { font-size: .82em; }
