/* --- 기본 css 리셋 및 페이지 전체에서 사용할 변수 설정 --- */
:root {
  --primary-color: #9985ff;
  --text-color: #333333;
  --bg-color: #ffffff;
  --nav-height: 60px;
  --container-width: 1280px;
  --card-radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

/* ------------ 헤더 & 네비게이션 ------------ */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* 홈에서만 배너가 있으므로 컬러 변경 */
#tt-body-index .header {
  /* background-color: var(--primary-color); */
  /* background-color: #313e58;
  color: #fff; */

  background-color: #ffffff;
  color: #333;
  box-shadow: none;
}

/* #tt-body-index .header .logo-img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

#tt-body-index .header.scrolled .logo-img {
  filter: none;
} */

#tt-body-index .header.scrolled {
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  display: block;
  max-height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
}

.search > input {
  border-width: initial;
  border-style: initial;
  border-color: initial;
  background-color: transparent;
  border-bottom: 1px solid #b3b3b3;
  width: 160px;
  height: 100%;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, sans-serif;
  color: inherit;
  padding: 0 0 4px;
  transition: border-color 0.2s ease;
}

.search > input:focus {
  outline: none;
  background-color: initial;
  border-color: currentColor;
}

.search > input::placeholder {
  font-size: 0.9rem;
  color: #bdbdbd;
}

.search > button {
  border: none;
  width: 20px;
  height: 20px;
  background-color: unset;
  cursor: pointer;
}

.search > button > img {
  width: 100%;
  height: 100%;
}

.nav .tt_category > li,
.nav .tt_category .category_list {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav a > img {
  display: none;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav > .tt_category > li > .category_list > li:hover > a,
.nav > .tt_category > li > .category_list > li.selected > a {
  font-weight: 700;
}

.nav .sub_category_list {
  display: none !important;
}

.nav .c_cnt {
  display: none;
}

/* ------------ 배너 ------------ */
.home-banner {
  display: none;
  width: 100%;
  /* background-color: var(--primary-color); */
  background-color: #fff;
  overflow: hidden;
}

/* 홈에서만 배너 노출 */
#tt-body-index .home-banner {
  display: block;
}

/* 기본 높이 */
#tt-body-index .home-banner {
  /* min-height: 400px; */
  /* height: 35vh; */
  height: 100%;
}

/* 이미지 있으면 자동 */
#tt-body-index .home-banner img {
  width: 100%;
  /* max-width: 1200px; */
  display: block;
  margin: 0 auto;
}

/* ------------ 메인 ------------ */
.main-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 20px 80px;
  min-height: calc(100dvh - 276px);
}

/* ------------ 목록 페이지(홈 제외): 일반 리스트 형태 ------------ */
/* 홈(tt-body-index) + 상세(tt-body-page) 외의 페이지(카테고리/검색/태그/아카이브 등) */
body:not(#tt-body-index):not(#tt-body-page) .main-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card .post-card__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card__thumb {
  width: 240px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  flex-shrink: 0;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
}

.post-card__content .category {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.post-card__content .title {
  font-size: 1.2rem;
  margin: 8px 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__content .excerpt {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 16px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.post-card__content .date {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card__content .title {
  font-size: 1.05rem;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  margin: 0;
}

body:not(#tt-body-index):not(#tt-body-page) .post-card__content .date {
  margin-top: 6px;
  font-size: 0.85rem;
}

/* ------------ 카테고리 목록 헤더 ------------ */
.list-header {
  display: none;
}

/* 카테고리 페이지에서만 노출 */
#tt-body-search .list-header,
#tt-body-category .list-header {
  display: block;
}

/* ------------ 페이징(목록 페이지) ------------ */
/* 홈에서는 미노출 */
#tt-body-index .area-paging {
  display: none !important;
}

body:not(#tt-body-index):not(#tt-body-page) .area-paging {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

body:not(#tt-body-index):not(#tt-body-page) .paging_num {
  display: flex;
  gap: 6px;
}

body:not(#tt-body-index):not(#tt-body-page) .link_page,
body:not(#tt-body-index):not(#tt-body-page) .link_num span {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body:not(#tt-body-index):not(#tt-body-page) .link_num span:hover {
  color: var(--primary-color);
}

body:not(#tt-body-index):not(#tt-body-page) .link_num span.selected {
  color: var(--primary-color);
  background-color: #efecff;
}

body:not(#tt-body-index):not(#tt-body-page) .link_page.no-more-next,
body:not(#tt-body-index):not(#tt-body-page) .link_page.no-more-prev {
  cursor: default;
}

body:not(#tt-body-index):not(#tt-body-page) .link_page.no-more-next img,
body:not(#tt-body-index):not(#tt-body-page) .link_page.no-more-prev img {
  opacity: 0.4;
  pointer-events: none;
}

.list-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.list-title span {
  display: inline-block;
  margin-left: 4px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* 리스트가 없을떄 */
.empty-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 16px;
}

.empty-list img {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.empty-list p {
  font-size: 1rem;
  color: #9e9e9e;
  text-align: center;
}

/* ------------ 메인 홈 레이아웃 ------------ */
#tt-body-index .main-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 24px;
}

#tt-body-index .post-card {
  height: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}

#tt-body-index .post-card .post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#tt-body-index .post-card .post-card__content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

/* 썸네일 이미지 비율 4 / 3 으로 해놨습니다 (기존 썸네일 사이즈 참고) */
.post-card__thumb,
.post-card__thumb--default {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f4f4f4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#tt-body-index .post-card__thumb img,
#tt-body-index .post-card__thumb--default img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#tt-body-index .post-card:hover .post-card__thumb img,
#tt-body-index .post-card:hover .post-card__thumb--default img {
  transform: scale(1.05);
}

/* 첫줄에 게시글 카드 한개 */
#tt-body-index .main-container article.post-card:nth-of-type(1) {
  grid-column: span 6;
}

#tt-body-index
  .main-container
  article.post-card:nth-of-type(1)
  .post-card__link {
  flex-direction: row;
  align-items: flex-start;
  height: 100%;
}

#tt-body-index
  .main-container
  article.post-card:nth-of-type(1)
  .post-card__thumb,
#tt-body-index
  .main-container
  article.post-card:nth-of-type(1)
  .post-card__thumb--default {
  flex-shrink: 0;
  width: 50%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #f4f4f4;
}

#tt-body-index
  .main-container
  article.post-card:nth-of-type(1)
  .post-card__content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#tt-body-index .main-container article.post-card:nth-of-type(1) .title {
  font-size: 2rem;
  white-space: normal;
  margin-bottom: 1rem;
}

#tt-body-index .main-container article.post-card:nth-of-type(1) .excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  max-height: 6em;
  font-size: 1.05rem;
}

/* 두번째 줄에 게시글 두개 */
#tt-body-index .main-container article.post-card:nth-of-type(2),
#tt-body-index .main-container article.post-card:nth-of-type(3) {
  grid-column: span 3;
}

#tt-body-index .main-container article.post-card:nth-of-type(2) .title,
#tt-body-index .main-container article.post-card:nth-of-type(3) .title {
  font-size: 1.4rem;
}

/* 세번째 줄부턴 한줄에 3개씩 */
#tt-body-index .main-container article.post-card:nth-of-type(n + 4) {
  grid-column: span 2;
}

/* 홈 게시글 스크롤 애니메이션 (등장 효과) */
#tt-body-index .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#tt-body-index .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------ 게시글 상세 레이아웃 ------------ */
#tt-body-page .main-container {
  max-width: 1536px;
}

.post-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 3rem;
  width: 100%;
}

/* 사이드 바 */
.sidebar--left .sticky-content,
.sidebar--right .sticky-content {
  position: -webkit-sticky;
  position: sticky;
  top: 10rem;
  max-height: calc(100vh - 4rem);
}

/* 목차(좌측 사이드) */
.toc strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.toc .toc-list li a {
  color: #757575;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.2s, font-weight 0.2s, transform 0.2s;
  display: block;
  padding: 4px 0;
}

.toc .toc-list li a::before {
  content: none;
}

.toc .toc-list li a:hover {
  color: #333;
}

/* 현재 읽고 있는 위치 하이라이트 */
.toc .toc-list li a.active {
  color: var(--primary-color);
  font-weight: 500;
  transform: translateX(4px);
}

/* 소제목 들여쓰기 */
.toc .toc-list li[data-level="4"] {
  padding-left: 1rem;
  font-size: 0.85rem;
}

/* 게시글 */
.article-container {
  min-width: 0; /* Grid overflow 방지 */
}

/* 헤더 영역 */
.article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.article-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #333;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.article-meta .category {
  color: #7761ff;
  font-size: 0.9rem;
}

.article-meta-info {
  display: flex;
  gap: 4px;
}

.article-meta-info span,
.article-meta-info a {
  color: #9e9e9e;
  font-size: 0.9rem;
  font-weight: 400;
}

/* 태그 */
.area_tag {
  display: flex;
  gap: 6px;
}

.area_tag a {
  display: inline-block;
  background-color: #f7f7f7;
  color: #555;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.area_tag a:hover {
  background-color: #f1f3f5;
}

/* 본문 기본 */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #222222;
  margin-bottom: 2rem;
}

.article-body li {
  list-style-position: inside;
}

.container_postbtn {
  padding: 0;
}

/* 작성자 정보 */
.post-author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.post-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.author-info em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
}

.author-info p {
  font-weight: 400;
  font-size: 0.8rem;
  color: #9e9e9e;
}

/* 기본 네임 카드 삭제 */
[data-tistory-react-app="Namecard"] {
  display: none !important;
}

/* 댓글 영역 */
.area_reply {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  color: #333;
}

.head_reply {
  margin-bottom: 1rem;
}

.tit_reply {
  font-size: 1rem;
  font-weight: 500;
}

.cnt_reply {
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 6px;
}

/* 댓글 한개 */
.list_reply > li {
  padding: 20px 0;
  border-bottom: 1px solid #f2f2f2;
  display: block;
}

.list_reply > li:first-of-type {
  padding-top: 4px;
}

.list_reply li .header_reply {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.img_profile {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #f7f7f7;
  object-fit: cover;
}

.info_reply {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px;
}

.name_reply {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.name_reply a {
  color: inherit;
  text-decoration: none;
}

.date_reply {
  font-size: 13px;
  color: #9e9e9e;
  margin-top: 4px;
}

.txt_reply p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 5px 0 10px 0;
  padding-left: 63px;
}

.func_reply {
  padding-left: 63px; /* 프로필 이미지 너비만큼 들여쓰기 */
  font-size: 13px;
}

.func_reply a {
  color: #9e9e9e;
  text-decoration: none;
  margin-right: 12px;
}

.func_reply a:hover {
  color: #333;
  text-decoration: underline;
}

/* 대댓글 */
.list_reply_r {
  margin-top: 15px;
  margin-left: 63px;
}

.list_reply_r li {
  border-bottom: none;
  padding: 10px 0;
}

/* 대댓글은 들여쓰기 해제 */
.list_reply_r .txt_reply p,
.list_reply_r .func_reply {
  padding-left: 0;
}

/* 댓글 작성 폼 */
.form_reply {
  margin-top: 30px;
}

.form_reply fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

/* 입력창 */
.reply_write textarea {
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #f2f2f2;
  background: #fff;
  font-size: 0.9rem;
  color: #757575;
  resize: none;
  overflow-y: auto;
  border-radius: 4px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, sans-serif;
}

.reply_write textarea::placeholder {
  color: #bdbdbd;
}

.reply_write textarea:focus {
  outline: none;
}

.reply_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10px;
}

/* 방문자 정보 입력 */
.form_info {
  display: flex;
  gap: 10px;
}

.form_info input {
  padding: 8px 12px;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

.form_info input::placeholder {
  color: #bdbdbd;
}

.form_info input:focus {
  outline: none;
}

/* 비밀글 체크박스 */
.form_check {
  font-size: 14px;
  color: #9e9e9e;
  display: flex;
  align-items: center;
}

.form_check input {
  margin-right: 5px;
}

/* 등록 버튼 */
.btn_reply {
  display: block;
  width: fit-content;
  padding: 10px 30px;
  background: #f7f7f7;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s, color 0.2s;
}

.btn_reply:hover {
  background: #efecff;
  color: #7761ff;
}

/* 관련글 더보기 (우측 사이드) */
.related strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.related ul {
  margin-bottom: 0.8rem;
}

.related ul li a {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.related ul li a span {
  flex: 1 1 0;
  color: #757575;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.related ul li a:hover span {
  color: #333;
}

.related ul li a img {
  flex-shrink: 0;
  width: 80px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.more-link {
  display: block;
  font-size: 0.8rem;
  color: #bdbdbd;
  text-align: right;
}

/* ------------ 푸터 ------------ */
footer {
  height: 216px;
  padding: 60px 0;
  margin-top: auto;
  color: #666;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  font-size: 0.9rem;
}

.inner-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.box-policy {
  display: flex;
  gap: 16px;
  align-items: center;
}

.box-policy > a {
  color: #333;
  font-weight: 400;
  text-decoration: none;
}

.inner-footer > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.inner-footer > div:nth-child(2) > p,
address {
  font-style: normal;
  color: #9e9e9e;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ------------ 태블릿 사이즈 ------------ */
@media (max-width: 900px) {
  .nav {
    gap: 16px;
  }

  .nav .tt_category > li,
  .nav .tt_category .category_list {
    gap: 14px;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .main-container {
    padding: var(--nav-height) 20px 48px;
  }

  /* 게시물 레이아웃 2단 그리드로 변경 */
  #tt-body-index .main-container {
    grid-template-columns: repeat(2, 1fr);
  }

  #tt-body-index .main-container article.post-card:nth-of-type(1),
  #tt-body-index .main-container article.post-card:nth-of-type(2),
  #tt-body-index .main-container article.post-card:nth-of-type(3),
  #tt-body-index .main-container article.post-card:nth-of-type(n + 4) {
    grid-column: span 1;
  }

  /* 첫번째 카드만 가로인거 일반 카드로 변경 */
  #tt-body-index .main-container article.post-card:nth-of-type(1) {
    height: 100%;
  }

  #tt-body-index
    .main-container
    article.post-card:nth-of-type(1)
    .post-card__link {
    flex-direction: column;
    align-items: stretch;
  }

  #tt-body-index
    .main-container
    article.post-card:nth-of-type(1)
    .post-card__thumb,
  #tt-body-index
    .main-container
    article.post-card:nth-of-type(1)
    .post-card__thumb--default {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  #tt-body-index
    .main-container
    article.post-card:nth-of-type(1)
    .post-card__content {
    width: 100%;
    padding: 20px;
    justify-content: flex-start;
    flex: 1;
  }

  #tt-body-index .main-container article.post-card:nth-of-type(1) .title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    white-space: nowrap;
  }

  #tt-body-index .main-container article.post-card:nth-of-type(1) .excerpt {
    /* 4줄 -> 2줄 말줄임으로 변경 */
    line-clamp: 2;
    -webkit-line-clamp: 2;
    font-size: 0.95rem;
  }

  #tt-body-page .main-container {
    padding: var(--nav-height) 40px 48px;
  }

  #tt-body-page .post-detail-layout {
    grid-template-columns: 1fr;
  }

  /* 모바일/태블릿에서는 사이드바 숨김 처리 */
  .sidebar {
    display: none;
  }
}

/* ------------ 모바일 사이즈 ------------ */
@media (max-width: 600px) {
  .search {
    display: none;
  }

  .logo-img {
    max-height: 20px;
  }

  .nav .tt_category > li,
  .nav .tt_category .category_list {
    gap: 10px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .main-container {
    min-height: calc(100dvh - 210px);

    padding: 32px 20px;
  }

  /* 게시물 레이아웃 1단 그리드로 변경 */
  #tt-body-index .main-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #tt-body-page .main-container {
    padding: 32px 16px;
  }

  .article-header h2 {
    font-size: 1.6rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .reply_info {
    align-items: flex-start;
    flex-direction: column;
  }

  .img_profile {
    width: 2rem;
    height: 2rem;
  }

  .txt_reply p {
    padding-left: 47px;
  }

  .func_reply {
    padding-left: 47px;
  }

  .list_reply_r {
    margin-top: 15px;
    margin-left: 47px;
  }

  /* 일반 글 목록 레이아웃 변경 */
  body:not(#tt-body-index):not(#tt-body-page) .post-card .post-card__link {
    flex-direction: column;
  }

  body:not(#tt-body-index):not(#tt-body-page) .post-card__thumb,
  body:not(#tt-body-index):not(#tt-body-page) .post-card__thumb--default {
    width: 100%;
  }

  .list-title {
    font-size: 1.2rem;
  }

  .list-title span {
    font-size: 1rem;
  }

  footer {
    height: 150px;
    padding: 26px 0;
  }
}
