@charset "utf-8";
/* =========================================================
   SEMOI (세모이) Tistory Skin
   남색 우주 배경 + 흰 본문 카드 + 골드 포인트
   ========================================================= */

:root {
  --point: #F3D9A4;
  --sub: #9ED8F0;
  --navy: #0B1640;
  --navy-2: #14264F;
  --navy-3: #070E2B;
  --ink: #1F2433;
  --ink-2: #5B6275;
  --line: #E4E8F2;
  --paper: #FFFFFF;
  --text-light: #E6ECFA;
  --radius: 14px;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy) url("./images/bg-pattern.png") repeat;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input { font-family: inherit; }
.sm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sm-gold { color: var(--point); }

/* ---------- 레이아웃 ---------- */
.sm-inner, .sm-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sm-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 60px;
}
.sm-main { min-width: 0; }

/* ---------- 상단바 ---------- */
.sm-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 14, 43, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(243, 217, 164, .35);
}
.sm-topbar .sm-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.sm-logo {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: #fff; white-space: nowrap; letter-spacing: -.3px;
}
.sm-nav { flex: 1; min-width: 0; }
.sm-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.sm-nav a { color: var(--text-light); font-size: 15px; font-weight: 500; transition: color .2s; }
.sm-nav a:hover { color: var(--point); }
.sm-search { display: flex; align-items: center; }
.sm-search input {
  width: 180px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(158, 216, 240, .35); border-right: 0;
  border-radius: 18px 0 0 18px;
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; outline: none;
}
.sm-search input::placeholder { color: rgba(230, 236, 250, .55); }
.sm-search button {
  height: 36px; width: 40px; border: 1px solid rgba(158, 216, 240, .35); border-left: 0;
  border-radius: 0 18px 18px 0; background: rgba(255, 255, 255, .06); color: var(--point);
  cursor: pointer; font-size: 16px;
}
.sm-menu-btn { display: none; }

/* ---------- 헤더 이미지 ---------- */
.sm-hero {
  position: relative; display: block; overflow: hidden;
  height: var(--hero-h, 400px);
  background: var(--navy-3) center / cover no-repeat;
  border-bottom: 2px solid var(--point);
}
.sm-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sm-hero-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 20px;
}
.sm-hero-text strong {
  font-family: var(--serif); font-size: clamp(28px, 4.4vw, 54px); color: #fff;
  text-shadow: 0 2px 18px rgba(4, 8, 30, .85);
}
.sm-hero-text em {
  margin-top: 10px; font-style: normal; color: var(--sub); font-size: clamp(14px, 1.6vw, 18px);
  text-shadow: 0 2px 10px rgba(4, 8, 30, .9);
}

/* ---------- 공통 섹션 제목 ---------- */
.sm-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 16px;
}
.sm-sec-title::before { content: "✦"; color: var(--point); font-size: 14px; }

/* ---------- 홈 커버 ---------- */
.sm-cover { margin-bottom: 40px; }
.sm-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-feat-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s;
}
.sm-feat-card:hover { transform: translateY(-4px); }
.sm-feat-thumb { display: block; aspect-ratio: 16 / 10; background: var(--navy-2); overflow: hidden; }
.sm-feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-feat-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.sm-feat-body strong { font-size: 17px; line-height: 1.45; color: var(--ink); }
.sm-feat-body .sm-summary { -webkit-line-clamp: 2; }
.sm-more {
  display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: 20px;
  border: 1px solid var(--point); color: var(--point); font-size: 14px;
}

/* ---------- 주제 아이콘 ---------- */
.sm-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sm-topics-6 { grid-template-columns: repeat(6, 1fr); }
.sm-topics a { display: block; border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.sm-topics a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(243, 217, 164, .35); }
.sm-topics img { width: 100%; display: block; }

/* ---------- 글 목록 ---------- */
.sm-list-head {
  padding: 28px 26px; margin-bottom: 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)) center / cover;
  border: 1px solid rgba(243, 217, 164, .35); color: var(--text-light);
}
.sm-list-head h2 { font-family: var(--serif); font-size: 26px; color: #fff; }
.sm-list-head small { font-family: var(--sans); font-size: 14px; color: var(--sub); margin-left: 6px; }
.sm-list-head p { margin-top: 6px; font-size: 14px; color: var(--text-light); }
.sm-list-head p:empty { display: none; }
.sm-empty { padding: 40px; text-align: center; color: var(--text-light); }

.sm-postlist { display: flex; flex-direction: column; gap: 14px; }
.sm-post-link {
  display: flex; gap: 20px; align-items: stretch; padding: 18px;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s;
}
.sm-post-link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.sm-post-card { margin-bottom: 14px; }
.sm-thumb {
  flex: 0 0 220px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--navy-2);
}
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: center; }
.sm-post-title { font-size: 19px; line-height: 1.45; color: var(--ink); font-weight: 700; }
.sm-summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 14.5px; color: var(--ink-2);
}
.sm-meta { font-size: 13px; color: #8A90A2; }
.sm-cate { display: inline-block; font-size: 13px; font-weight: 700; color: #B8892E; }
.sm-badge {
  align-self: flex-start; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: var(--navy); color: var(--point);
}

/* 리스트 스타일: 카드형 */
.sm-postlist.card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sm-postlist.card .sm-post-link { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.sm-postlist.card .sm-thumb { flex: none; width: 100%; border-radius: 0; }
.sm-postlist.card .sm-post-body { padding: 16px 18px 20px; }
/* 리스트 스타일: 제목만 */
.sm-postlist.simple { gap: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.sm-postlist.simple .sm-post-link { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.sm-postlist.simple .sm-thumb, .sm-postlist.simple .sm-summary { display: none; }
.sm-postlist.simple .sm-post-title { font-size: 16px; font-weight: 500; }

/* ---------- 글 본문 ---------- */
.sm-article {
  background: var(--paper); border-radius: var(--radius);
  padding: 44px 48px; box-shadow: 0 10px 34px rgba(0, 0, 0, .25); margin-bottom: 24px;
}
.sm-article-head { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.sm-article-title {
  font-family: var(--serif); font-size: 32px; line-height: 1.4; color: var(--ink);
  margin: 8px 0 12px; word-break: keep-all;
}
.sm-article-head .sm-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.sm-admin { margin-top: 12px; display: flex; gap: 12px; font-size: 13px; }
.sm-admin a { color: var(--ink-2); text-decoration: underline; }

.sm-article-body { font-size: 17px; line-height: 1.85; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.sm-article-body p { margin: 0 0 1em; }
.sm-article-body a { color: #2B5FB8; text-decoration: underline; }
.sm-article-body h2 {
  margin: 2.2em 0 .9em; padding: 12px 18px; font-size: 22px; line-height: 1.45;
  color: #fff; background: var(--navy); border-left: 5px solid var(--point); border-radius: 6px;
}
.sm-article-body h3 {
  margin: 1.8em 0 .7em; padding-bottom: 6px; font-size: 19px;
  color: var(--navy); border-bottom: 2px solid var(--sub);
}
.sm-article-body h4 { margin: 1.5em 0 .5em; font-size: 17px; color: var(--navy); }
.sm-article-body blockquote {
  margin: 1.5em 0; padding: 16px 20px; background: #F4F6FC;
  border-left: 4px solid var(--point); border-radius: 0 8px 8px 0; color: var(--ink-2);
}
.sm-article-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.sm-article-body ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.sm-article-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; }
.sm-article-body th, .sm-article-body td { border: 1px solid var(--line); padding: 10px 12px; }
.sm-article-body th { background: #F4F6FC; color: var(--navy); }
.sm-article-body img { border-radius: 8px; }
.sm-article-body hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.sm-signature { margin: 40px 0 10px; text-align: center; }
.sm-signature img { border-radius: 12px; width: 100%; max-width: 760px; }

.sm-tags { margin: 26px 0 0; font-size: 14px; color: var(--ink-2); }
.sm-tags-label { font-weight: 700; color: var(--navy); margin-right: 6px; }
.sm-tags a {
  display: inline-block; margin: 0 4px 6px 0; padding: 3px 10px; border-radius: 14px;
  background: #F1F4FB; color: var(--navy); text-decoration: none;
}

/* 관련글 */
.sm-related { margin-top: 40px; padding: 24px; border-radius: 12px; background: var(--navy); }
.sm-related ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sm-related a { display: flex; flex-direction: column; gap: 6px; color: var(--text-light); }
.sm-related .sm-thumb { flex: none; width: 100%; }
.sm-related-title { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sm-related .sm-meta { color: rgba(230, 236, 250, .55); font-size: 12px; }

/* 이전/다음 */
.sm-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.sm-prevnext a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .2s;
}
.sm-prevnext a:hover { border-color: var(--point); }
.sm-prevnext .next { text-align: right; grid-column: 2; }
.sm-prevnext small { color: #B8892E; font-weight: 700; }
.sm-prevnext span { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sm-comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 보호글 */
.sm-protected-box { padding: 30px; text-align: center; background: #F4F6FC; border-radius: 12px; }
.sm-protected-box p { margin-bottom: 14px; color: var(--ink-2); }
.sm-protected-box input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; width: 220px; }
.sm-protected-box button { height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--navy); color: var(--point); cursor: pointer; }

/* 태그 클라우드 */
.sm-taglog ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sm-taglog a { display: inline-block; padding: 5px 14px; border-radius: 16px; background: #F1F4FB; color: var(--navy); }
.sm-taglog .cloud1 { font-size: 20px; font-weight: 700; background: var(--navy); color: var(--point); }
.sm-taglog .cloud2 { font-size: 18px; font-weight: 700; }
.sm-taglog .cloud3 { font-size: 16px; }
.sm-taglog .cloud4, .sm-taglog .cloud5 { font-size: 14px; color: var(--ink-2); }

/* 페이징 */
.sm-paging { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.sm-paging a {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 19px; color: var(--text-light); border: 1px solid rgba(158, 216, 240, .3); font-size: 15px;
}
.sm-paging a.selected, .sm-paging .selected a, .sm-paging a:hover { background: var(--point); color: var(--navy); border-color: var(--point); }
.sm-paging .no-more-prev, .sm-paging .no-more-next { opacity: .3; pointer-events: none; }

/* ---------- 사이드바 ---------- */
.sm-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sm-box {
  padding: 20px; border-radius: var(--radius);
  background: rgba(14, 26, 72, .88);
  border: 1px solid rgba(243, 217, 164, .45);
  color: var(--text-light); font-size: 14px;
}
.sm-box-title {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(243, 217, 164, .5);
  font-family: var(--serif); font-size: 16px; color: var(--point);
}
.sm-box-title::after { content: "✦"; font-size: 12px; }
.sm-box a:hover { color: var(--point); }

.sm-profile { text-align: center; }
.sm-profile-img img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--point); box-shadow: 0 0 20px rgba(158, 216, 240, .35); }
.sm-profile-name { display: block; margin-top: 12px; font-size: 17px; color: #fff; }
.sm-profile-desc { margin-top: 6px; color: var(--text-light); line-height: 1.6; }
.sm-profile-links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sm-profile-links a { padding: 4px 14px; border-radius: 14px; border: 1px solid rgba(243, 217, 164, .6); color: var(--point); font-size: 13px; }

/* 카테고리 ([##_category_list_##] 기본 마크업 대응) */
.sm-category ul { list-style: none; }
.sm-category li { margin: 0; }
.sm-category a { display: block; padding: 5px 0; color: var(--text-light); }
.sm-category ul ul { padding-left: 12px; border-left: 1px solid rgba(158, 216, 240, .25); margin: 2px 0 6px 4px; }
.sm-category ul ul a { font-size: 13.5px; color: rgba(230, 236, 250, .8); }
.sm-category .c_cnt { color: var(--sub); font-size: 12px; margin-left: 4px; }
.sm-category .link_tit { font-weight: 700; color: #fff; }

.sm-notice li, .sm-recent-comment li { padding: 7px 0; border-bottom: 1px dashed rgba(158, 216, 240, .2); }
.sm-notice li:last-child, .sm-recent-comment li:last-child { border-bottom: 0; }
.sm-recent-comment a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-recent-comment .sm-meta { color: rgba(230, 236, 250, .5); font-size: 12px; }

.sm-mini-list li + li { margin-top: 10px; }
.sm-mini-list a { display: flex; align-items: center; gap: 10px; }
.sm-mini-thumb { flex: 0 0 54px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--navy-2); }
.sm-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-mini-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.45; }
ol.sm-mini-list { counter-reset: rank; }
ol.sm-mini-list li a::before {
  counter-increment: rank; content: counter(rank);
  flex: 0 0 20px; font-family: var(--serif); font-weight: 700; color: var(--point); font-size: 16px; text-align: center;
}

.sm-tagbox ul { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-tagbox a { display: inline-block; padding: 3px 10px; border-radius: 12px; background: rgba(158, 216, 240, .12); font-size: 13px; }

.sm-counter dl { display: flex; justify-content: space-between; margin: 0; text-align: center; }
.sm-counter dt { font-size: 12px; color: rgba(230, 236, 250, .6); }
.sm-counter dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--point); }

/* ---------- 푸터 ---------- */
.sm-footer {
  padding: 40px 0 50px; background: var(--navy-3); color: rgba(230, 236, 250, .75);
  border-top: 2px solid var(--point); text-align: center; font-size: 14px;
}
.sm-footer-logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px; }
.sm-footer strong { color: #fff; font-family: var(--serif); font-size: 16px; }
.sm-copy { margin-top: 10px; font-size: 12px; color: rgba(230, 236, 250, .45); }

/* ---------- 티스토리 기본 댓글 / 방명록 톤 맞춤 ---------- */
.sm-comments .tt-box-total .tt_num_g, .sm-guestbook .tt-box-total .tt_num_g { color: #B8892E; }
.sm-comments .tt-btn_register, .sm-guestbook .tt-btn_register { background: var(--navy) !important; color: var(--point) !important; border-color: var(--navy) !important; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .sm-container { grid-template-columns: 1fr; }
  .sm-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sm-sidebar > * { min-width: 0; }
  .sm-topics-6 { grid-template-columns: repeat(3, 1fr); }
  .sm-related ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .sm-topbar .sm-inner { height: 56px; gap: 12px; }
  .sm-search { display: none; }
  .sm-menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin-left: auto; padding: 8px; border: 0; background: none; cursor: pointer;
  }
  .sm-menu-btn span { display: block; height: 2px; background: var(--point); border-radius: 2px; }
  .sm-nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--navy-3); padding: 14px 20px 20px; border-bottom: 1px solid rgba(243, 217, 164, .35);
  }
  #semoi.nav-open .sm-nav { display: block; }
  #semoi.nav-open .sm-search { display: flex; position: absolute; top: 56px; right: 20px; }
  .sm-nav ul { flex-direction: column; gap: 12px; }
  .sm-hero { height: 200px; }
  .sm-container { padding: 0 14px; margin-top: 20px; gap: 20px; }
  .sm-featured-grid { grid-template-columns: 1fr; }
  .sm-post-link { gap: 14px; padding: 14px; }
  .sm-thumb { flex-basis: 120px; }
  .sm-post-title { font-size: 16px; }
  .sm-summary { -webkit-line-clamp: 2; font-size: 13.5px; }
  .sm-postlist.card { grid-template-columns: 1fr; }
  .sm-article { padding: 26px 20px; border-radius: 10px; }
  .sm-article-title { font-size: 24px; }
  .sm-article-body { font-size: 16px; }
  .sm-article-body h2 { font-size: 19px; }
  .sm-sidebar { grid-template-columns: 1fr; }
  .sm-topics-6 { grid-template-columns: repeat(3, 1fr); }
  .sm-prevnext { grid-template-columns: 1fr; }
  .sm-prevnext .next { grid-column: auto; }
}
/* 중복 목록 방지 v1.2 */
.sm-list { margin-bottom: 14px; }
.sm-main:has(.sm-list .sm-post) .sm-post-card { display: none; }
#tt-body-index .sm-list-head { display: none; }