/*
Theme Name: Tistory Style Minimal
Description: 티스토리 북클럽/오디세이 스타일의 깔끔한 한국형 2단 블로그 테마
Version: 1.0.0
*/

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #ffffff;
  color: #333333;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }

/* 상단 헤더 (티스토리 스타일) */
.ts-header {
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.ts-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ts-logo {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ts-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
}
.ts-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #555555;
  white-space: nowrap;
  padding: 4px 0;
}
.ts-nav a:hover,
.ts-nav a.active {
  color: #111111;
  font-weight: 700;
}

/* 2단 메인 컨테이너 */
.ts-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 52px;
  align-items: start;
}

/* 홈/카테고리 가로형 리스트 (티스토리 북클럽 스타일) */
.ts-list-head {
  font-size: 14px;
  color: #666666;
  padding-bottom: 14px;
  border-bottom: 1px solid #222222;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ts-list-head strong {
  color: #111111;
  font-size: 15px;
}
.ts-post-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #efefef;
}
.ts-post-row:hover .ts-row-title {
  color: #2563eb;
}
.ts-row-text {
  flex: 1;
  min-width: 0;
}
.ts-row-cat {
  font-size: 12.5px;
  font-weight: 600;
  color: #ff5544;
  margin-bottom: 6px;
}
.ts-row-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.ts-row-excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-row-meta {
  font-size: 12.5px;
  color: #999999;
}
.ts-row-thumb {
  width: 176px;
  height: 118px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
.ts-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 상세 글 페이지 */
.ts-article-head {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid #eeeeee;
}
.ts-article-cat {
  font-size: 13px;
  font-weight: 600;
  color: #ff5544;
  margin-bottom: 8px;
}
.ts-article-title {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 800;
  color: #111111;
  line-height: 1.38;
  letter-spacing: -0.025em;
}
.ts-article-meta {
  font-size: 13px;
  color: #888888;
}
.ts-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #2b2b2b;
}
.ts-article-body .bm-hero {
  margin: 0 0 28px;
}
.ts-article-body .bm-hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.ts-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin: 34px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.ts-article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #222222;
  margin: 24px 0 8px;
}
.ts-article-body p { margin: 0 0 14px; }
.ts-article-body ul, .ts-article-body ol { margin: 10px 0 16px; padding-left: 22px; }
.ts-article-body li { margin-bottom: 6px; }
.ts-article-body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: #fafafa;
  border-left: 3px solid #333333;
  color: #333333;
  font-size: 15px;
}
.ts-article-body blockquote p:last-child { margin-bottom: 0; }
.ts-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.ts-article-body th {
  background: #f8f8f8;
  color: #111111;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #dddddd;
}
.ts-article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
}
.ts-article-body code {
  background: #f4f4f4;
  color: #111111;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13.5px;
}
.ts-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ts-tags a {
  font-size: 12.5px;
  color: #666666;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 999px;
}
.ts-other-posts {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid #eeeeee;
  background: #fafafa;
  font-size: 13.5px;
}
.ts-other-posts h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #111111;
}
.ts-other-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ts-other-posts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555555;
}
.ts-other-posts li:last-child { border-bottom: none; }
.ts-other-posts li.current strong { color: #111111; }

/* 오른쪽 사이드바 (티스토리 기본 사이드바) */
.ts-sidebar {
  border-left: 1px solid #f0f0f0;
  padding-left: 28px;
  font-size: 13.5px;
}
.ts-side-block {
  margin-bottom: 30px;
}
.ts-side-title {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}
.ts-profile-desc {
  margin: 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.65;
}
.ts-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ts-side-list li {
  padding: 5px 0;
  color: #555555;
}
.ts-side-list li a:hover {
  color: #111111;
  text-decoration: underline;
}
.ts-side-count {
  color: #999999;
  font-size: 12px;
  margin-left: 4px;
}
.ts-search-form {
  display: flex;
  border: 1px solid #dddddd;
  border-radius: 4px;
  overflow: hidden;
}
.ts-search-form input {
  flex: 1;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.ts-search-form button {
  border: none;
  background: #ffffff;
  color: #555555;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
}

/* 푸터 */
.ts-footer {
  border-top: 1px solid #eeeeee;
  padding: 28px 24px;
  text-align: center;
  font-size: 12.5px;
  color: #999999;
}

@media (max-width: 860px) {
  .ts-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 18px 56px;
  }
  .ts-sidebar {
    border-left: none;
    border-top: 1px solid #eeeeee;
    padding-left: 0;
    padding-top: 28px;
  }
  .ts-row-thumb {
    width: 112px;
    height: 82px;
  }
  .ts-article-title {
    font-size: 22px;
  }
}
