@charset "utf-8";

/* ======================================
   기본 초기화
   ====================================== */

body {
  -webkit-text-size-adjust: 100%;
  font-weight: 400;
  font-family: Pretendard-Regular, sans-serif;
  font-size: 1em;
  line-height: 1.25;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
figure {
  margin: 0;
  padding: 0;
}

header,
footer,
section,
article,
aside,
nav,
hgroup,
details,
menu,
figure,
figcaption {
  display: block;
}

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  overflow: visible;
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="submit"],
textarea {
  -webkit-appearance: none;
}

input,
select,
textarea,
button {
  font-family: Pretendard-Regular, sans-serif;
  font-size: 100%;
  border-radius: 0;
}

button {
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

ul li {
  list-style: none;
}

img,
fieldset {
  border: none;
  vertical-align: top;
}

hr {
  display: none;
}

a {
  box-sizing: border-box;
}

.screen_out {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

/* ======================================
   접근성
   ====================================== */

#acc-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 0;
}

#acc-nav a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin-left: -1px;
  margin-bottom: -1px;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: #000;
  white-space: nowrap;
}

#acc-nav a:focus,
#acc-nav a:hover,
#acc-nav a:active {
  width: 100%;
  height: auto;
  padding: 10px 0;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* ======================================
   공통 색상
   ====================================== */

:root {
  --main-brown: #7a583a;
  --light-brown: #d4bca7;

  --sidebar-bg: #f2f2f2;
  --sidebar-accent: #9e9e9e;
  --sidebar-accent-dark: #616161;
  --sidebar-text: #424242;

  --border-color: #e0e0e0;
}

/* ======================================
   전체 영역
   ====================================== */

#wrap {
  position: relative;
  min-height: 100%;
}

/* ======================================
   헤더
   ====================================== */

#header {
  position: relative;
  border-bottom: 1px solid #e6e6e6;
}

#header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

#header .inner:after {
  content: "";
  clear: both;
  display: block;
  height: 0;
  visibility: hidden;
}

#header h1 {
  float: left;
  max-width: 500px;
  overflow: hidden;
  padding: 26px 0;
  font-size: 1.25em;
  line-height: 28px;
  letter-spacing: 0.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header h1 a {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  color: var(--main-brown);
}

#header h1 img {
  width: auto;
  height: 28px;
}

#header .mobile-menu {
  display: none;
}

/* ======================================
   상단 메뉴
   ====================================== */

#gnb {
  position: relative;
  float: right;
}

#gnb ul:after {
  content: "";
  display: block;
  clear: both;
}

#gnb ul li {
  float: left;
  padding: 26px 16px;
  font-size: 0.875em;
}

#gnb ul li a {
  display: block;
  position: relative;
  padding: 0 4px;
  text-decoration: none;
  line-height: 28px;
  color: #000;
}

#gnb ul li a:hover {
  color: var(--main-brown);
}

#gnb ul li a:hover:after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 4px;
  margin-top: 22px;
  background-color: var(--main-brown);
}

/* ======================================
   메인 레이아웃
   ====================================== */

.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  gap: 34px;
  box-sizing: border-box;
}

#content {
  flex: 1;
  min-width: 0;
}

#content .inner {
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ======================================
   왼쪽 사이드바
   ====================================== */

#aside {
  width: 276px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  order: -1;
}

#aside .inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
}

#aside .sidebar-1,
#aside .sidebar-2,
#aside .sidebar-3 {
  float: none;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================================
   사이드바 공통 위젯
   ====================================== */

#aside .posts,
#aside .search,
#aside .count,
#aside .category-widget {
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  background: var(--sidebar-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

#aside h2 {
  margin: 0 0 10px;
  padding: 12px 18px;
  background: var(--sidebar-accent);
  border-radius: 16px 16px 0 0;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.4;
}

/* ======================================
   최근 포스트
   ====================================== */

#aside .posts ul {
  margin: 0;
  padding: 0;
}

#aside .posts li {
  margin: 0 14px;
  border-bottom: 1px solid var(--border-color);
}

#aside .posts li:last-child {
  border-bottom: 0;
}

#aside .posts li a {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  color: var(--sidebar-text);
  font-size: 0.84em;
  line-height: 1.55;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#aside .posts li a:hover {
  color: var(--sidebar-accent-dark);
  font-weight: 600;
}

/* ======================================
   검색
   ====================================== */

#aside .search fieldset {
  position: relative;
  margin: 0 14px;
  padding-right: 38px;
  border: 1px solid #d0d0d0;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

#aside .search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #555;
  font-size: 0.82em;
  line-height: 40px;
  box-sizing: border-box;
}

#aside .search input::placeholder {
  color: #c6c6c6;
}

#aside .search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 40px;
  background:
    url(./images/ico_package.png)
    no-repeat
    13px
    -336px;
  text-align: left;
  text-indent: -999em;
}

#aside .search button:hover,
#aside .search button:focus,
#aside .search input:focus + button {
  background-position-x: -37px;
}

/* ======================================
   방문자 수
   ====================================== */

#aside .count .total {
  margin: 4px 14px 8px;
  color: var(--sidebar-accent-dark);
  font-size: 1.75em;
  line-height: 1.4;
}

#aside .count ul {
  margin: 0;
  padding: 0;
}

#aside .count ul li {
  overflow: hidden;
  margin: 0 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  color: #888;
  text-align: right;
  font-size: 0.82em;
  line-height: 1.7;
}

#aside .count ul li:last-child {
  border-bottom: 0;
}

#aside .count ul li strong {
  float: left;
  color: var(--sidebar-text);
  font-weight: 400;
}

/* ======================================
   카테고리 위젯
   ====================================== */

#aside .category-widget {
  background: var(--sidebar-bg);
}

#aside .category-widget .tt_category {
  margin: 0;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#aside .category-widget ul,
#aside .category-widget li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 분류 전체보기 */

#aside .category-widget .link_tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--sidebar-text);
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

/* 대분류 */

#aside .category-widget .category_list > li {
  border-bottom: 1px solid var(--border-color);
}

#aside .category-widget .category_list > li:last-child {
  border-bottom: 0;
}

#aside .category-widget .link_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 8px 0;
  color: var(--sidebar-text);
  font-size: 0.84em;
  line-height: 1.5;
  text-decoration: none;
}

/* 하위 카테고리 */

#aside .category-widget .sub_category_list {
  margin: 0 0 8px 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid #d7d7d7;
}

#aside .category-widget .sub_category_list > li {
  border: 0;
}

#aside .category-widget .link_sub_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  padding: 5px 0;
  color: #666;
  font-size: 0.79em;
  line-height: 1.5;
  text-decoration: none;
}

/* 카테고리 링크 호버 */

#aside .category-widget a:hover {
  color: var(--sidebar-accent-dark);
  font-weight: 600;
}

/* 글 개수 */

#aside .category-widget .c_cnt {
  display: inline-block;
  flex-shrink: 0;
  min-width: 20px;
  margin-left: 8px;
  padding: 1px 7px;
  background: var(--sidebar-accent);
  border-radius: 10px;
  color: #fff;
  font-size: 0.76em;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

/* 티스토리 일부 스킨의 다른 카테고리 구조 대응 */

#aside .category-widget .tt_category > li {
  margin: 0;
}

#aside .category-widget .tt_category a {
  text-decoration: none;
}

#aside .category-widget .tt_category .category_list {
  margin: 0;
  padding: 0;
}

/* ======================================
   글 목록 헤더
   ====================================== */

.post-header {
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  border-bottom: 1px solid var(--main-brown);
  text-align: left;
  color: var(--main-brown);
}

.post-header:first-child {
  margin-top: 0;
}

.post-header h2 {
  display: inline-block;
  font-size: 0.9em;
  line-height: 42px;
  vertical-align: top;
}

.post-header .list-type {
  display: none;
}

/* ======================================
   글 목록
   ====================================== */

.post-item {
  float: left;
  width: 31.3333%;
  margin: 0;
  padding: 24px 0 28px 3%;
  border-bottom: 1px solid #e6e6e6;
  box-sizing: border-box;
}

.post-item:nth-child(3n + 1) {
  padding-left: 0;
}

.post-item a {
  display: block;
  overflow: visible;
  width: 100%;
  text-decoration: none;
}

.post-item .thum {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  margin: 0 0 12px;
  padding-bottom: 65%;
  background-color: #ebebeb;
}

.post-item .thum:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 22px;
  height: 18px;
  margin: -9px 0 0 -11px;
  background:
    url(./images/ico_package.png)
    no-repeat
    -150px
    -300px;
}

.post-item .thum img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.post-item .title {
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
  color: #111;
  font-size: 0.98em;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.post-item .excerpt {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  height: 3.5em;
  margin-bottom: 9px;
  color: #666;
  font-size: 0.84em;
  line-height: 1.7;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-item .more {
  display: inline-block;
  color: var(--light-brown);
  font-size: 0.76em;
  vertical-align: top;
}

.post-item a:hover .title {
  color: var(--main-brown);
}

.post-item a:hover .excerpt {
  color: #222;
}

/* post-type-text가 적용된 경우에도 그리드 유지 */

body.post-type-text .post-item,
.post-type-text .post-item {
  float: left;
  width: 31.3333%;
  margin: 0;
  padding: 24px 0 28px 3%;
  border-bottom: 1px solid #e6e6e6;
  box-sizing: border-box;
}

body.post-type-text .post-item:nth-child(3n + 1),
.post-type-text .post-item:nth-child(3n + 1) {
  padding-left: 0;
}

body.post-type-text .post-item a,
.post-type-text .post-item a {
  display: block;
  overflow: visible;
  width: 100%;
}

body.post-type-text .post-item .thum,
.post-type-text .post-item .thum {
  float: none;
  position: relative;
  width: 100%;
  height: 0;
  margin: 0 0 12px;
  padding-bottom: 65%;
  overflow: hidden;
}

body.post-type-text .post-item .thum:before,
.post-type-text .post-item .thum:before {
  display: block;
}

body.post-type-text .post-item .thum img,
.post-type-text .post-item .thum img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

body.post-type-text .post-item .title,
.post-type-text .post-item .title {
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
  font-size: 0.98em;
}

body.post-type-text .post-item .excerpt,
.post-type-text .post-item .excerpt {
  width: 100%;
  height: 3.5em;
  margin-bottom: 9px;
  font-size: 0.84em;
  -webkit-line-clamp: 2;
}

/* ======================================
   글 제목 영역
   ====================================== */

.hgroup {
  max-width: none;
  margin: 0 auto 50px;
  padding: 50px 0 32px;
  border-bottom: 1px solid var(--main-brown);
}

.hgroup .category {
  margin-bottom: 8px;
  color: #000;
  font-size: 0.875em;
  font-weight: 700;
}

.hgroup h1 {
  color: var(--main-brown);
  font-size: 1.6em;
  font-weight: 400;
  line-height: 1.35;
}

.hgroup .post-meta {
  margin: 18px 0 -2px;
  color: #b2b2b2;
  font-size: 0.75em;
}

.hgroup .post-meta a {
  color: var(--light-brown);
  text-decoration: none;
}

.hgroup .post-meta span:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  margin: 0 9px;
  background-color: #b3b3b3;
  vertical-align: middle;
}

.hgroup .post-meta span:first-child:before {
  content: none;
}

/* ======================================
   본문
   ====================================== */

.entry-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.entry-content h1 {
  clear: both;
  margin: 29px 0 22px;
  color: #000;
  font-size: 1.6875em;
  line-height: 1.5;
}

.entry-content h2 {
  clear: both;
  margin: 29px 0 22px;
  color: #000;
  font-size: 1.5em;
  line-height: 1.5;
}

.entry-content h3 {
  clear: both;
  margin: 29px 0 22px;
  color: #000;
  font-size: 1.3125em;
  line-height: 1.5;
}

.entry-content h4 {
  clear: both;
  margin: 29px 0 22px;
  color: #000;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.5;
}

.entry-content p {
  word-break: break-all;
}

.entry-content p img {
  max-width: 100%;
  height: auto;
}

.entry-content hr {
  display: block;
  height: 0;
  border: 0;
  border-bottom: 1px solid #000;
}

.entry-content pre {
  word-break: break-all;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.entry-content pre code.hljs {
  padding: 20px;
}

.entry-content ul {
  margin-bottom: 22px;
  list-style: disc inside;
}

.entry-content ul li {
  position: relative;
}

.entry-content ol {
  margin-bottom: 22px;
  list-style: decimal inside;
}

.entry-content ol li {
  position: relative;
  list-style: decimal;
}

.entry-content a {
  color: var(--light-brown);
}

.entry-content blockquote {
  margin-top: 10px;
  padding: 16px 20px;
  border-left: 4px solid #e6e6e6;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content .protected_form {
  margin-bottom: 40px;
  padding: 120px 0 200px;
  border-bottom: 1px solid var(--main-brown);
  text-align: center;
}

.entry-content .protected_form input {
  width: 200px;
  margin-bottom: 10px;
  vertical-align: top;
}

/* ======================================
   티스토리 본문 상세 스타일
   ====================================== */

#article-view {
  min-height: 370px;
  margin: 0;
  padding: 20px 0 50px;
  color: #333;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Apple SD Gothic Neo",
    Arial,
    sans-serif;
  letter-spacing: 0;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

#article-view h2[data-ke-size] {
  font-size: 1.62em;
  line-height: 1.46;
}

#article-view h3[data-ke-size] {
  font-size: 1.44em;
  line-height: 1.48;
}

#article-view h4[data-ke-size] {
  font-size: 1.25em;
  line-height: 1.55;
}

#article-view p[data-ke-size="size18"] {
  font-size: 1.12em;
  line-height: 1.67;
}

#article-view p[data-ke-size="size16"] {
  line-height: 1.75;
}

#article-view p[data-ke-size="size14"] {
  font-size: 0.87em;
  line-height: 1.71;
}

#article-view h2,
#article-view h3,
#article-view h4 {
  margin: 1em 0 20px;
  color: #000;
  font-weight: normal;
  letter-spacing: -1px;
}

#article-view p,
#article-view p + p {
  margin-bottom: 30px;
}

#article-view a {
  color: #0070d1;
  text-decoration: underline;
}

#article-view blockquote[data-ke-style="style1"] {
  padding: 34px 0 0;
  border: 0;
  background:
    url(https://t1.daumcdn.net/keditor/dist/0.7.21/image/blockquote-style1.svg)
    no-repeat
    50%
    0;
  color: #333;
  font-size: 1.12em;
  line-height: 1.67;
  text-align: center;
}

#article-view blockquote[data-ke-style="style2"] {
  padding: 1px 0 0 12px;
  border-color: #d0d0d0;
  border-style: solid;
  border-width: 0 0 0 4px;
  color: #666;
  font-size: 1em;
  line-height: 1.75;
}

#article-view blockquote[data-ke-style="style3"] {
  padding: 21px 25px 20px;
  border: 1px solid #ddd;
  background-color: #fcfcfc;
  color: #666;
  font-size: 1em;
  line-height: 1.75;
}

#article-view table {
  margin-bottom: 0;
  border-color: #ddd;
}

#article-view table td {
  padding: 8px;
  font-size: 15px;
  line-height: normal;
  word-break: break-word;
}

#article-view pre code.hljs {
  overflow: auto;
  padding: 20px;
  border: 1px solid #ebebeb;
  font-family:
    SFMono-Regular,
    Menlo,
    Consolas,
    Monaco,
    monospace;
  font-size: 14px;
  line-height: 1.71;
}

#article-view ul,
#article-view ol {
  margin: 14px auto 24px;
  padding: 0 0 0 10px;
}

#article-view ul li,
#article-view ol li {
  margin: 0 0 3px 22px;
  line-height: 1.7;
}

#article-view figure {
  clear: both;
  max-width: 100%;
}

#article-view figure.imageblock {
  display: table;
  position: relative;
}

#article-view figure.imageblock.alignCenter {
  margin: 20px auto 0;
  text-align: center;
}

#article-view figure.imageblock img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

#article-view iframe,
#article-view figure img,
#article-view figure iframe {
  max-width: 100%;
}

#article-view figure img:not([width]),
#article-view figure iframe:not([width]) {
  width: 100%;
}

#article-view figure figcaption {
  min-height: 20px;
  padding-top: 10px;
  color: #777;
  font-size: 13px;
  text-align: center;
  word-break: break-word;
}

#article-view div[data-ke-type="moreLess"] .moreless-content {
  display: none;
}

#article-view div[data-ke-type="moreLess"].open .moreless-content {
  display: block;
}

/* ======================================
   버튼
   ====================================== */

.btn,
a.btn {
  display: inline-block;
  position: relative;
  width: 158px;
  padding: 0 10px;
  border: 1px solid var(--main-brown);
  color: var(--main-brown);
  font-size: 12px;
  line-height: 38px;
  text-align: left;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.btn:hover {
  border-color: var(--main-brown);
  background-color: var(--main-brown);
  color: #fff;
}

/* ======================================
   태그
   ====================================== */

.tags {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 35px auto 32px;
  color: #b2b2b2;
}

.tags h2 {
  margin-bottom: 10px;
  color: #666;
  font-size: 1em;
}

.tags .items {
  margin: 0 0 0 -18px;
}

.tags .items a {
  display: inline-block;
  margin-left: 18px;
  color: #b2b2b2;
  font-size: 0.875em;
  line-height: 2.1428;
  text-decoration: none;
}

.tags .items a:hover {
  color: var(--main-brown);
}

.tags .items a:before {
  content: "#";
}

/* ======================================
   관련 글
   ====================================== */

.related-articles {
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 40px auto 80px;
}

.related-articles h2 {
  margin-bottom: 28px;
  border-top: 1px solid var(--main-brown);
  border-bottom: 1px solid var(--main-brown);
  color: #666;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
}

.related-articles ul {
  margin-left: -20px;
  vertical-align: top;
}

.related-articles ul:after {
  content: "";
  display: block;
  clear: both;
}

.related-articles ul li {
  float: left;
  position: relative;
  width: 25%;
  padding: 0 0 0 20px;
  box-sizing: border-box;
}

.related-articles ul li a {
  display: block;
  position: relative;
  overflow: hidden;
}

.related-articles ul li .thum {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 98.4848%;
  background-color: #ebebeb;
}

.related-articles ul li .thum img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-articles ul li .title {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  overflow: hidden;
  width: 100%;
  padding: 0 10px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1em;
  line-height: 40px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ======================================
   댓글
   ====================================== */

.comments {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-bottom: 1px solid #e6e6e6;
}

.comments h2 {
  color: #666;
  font-size: 1em;
}

.comments h2 .count {
  color: var(--main-brown);
}

.comments .comment-list {
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 16px;
}

.comments .comment-list ul li {
  position: relative;
  min-height: 48px;
  padding: 30px 0 25px;
  border-top: 1px solid #e6e6e6;
}

.comments .comment-list ul li:first-child {
  border: 0;
}

.comments .comment-list ul li .author-meta {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 48px;
  padding: 4px 0 0 60px;
}

.comments .comment-list ul li .author-meta .avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comments .comment-list ul li .author-meta .nickname {
  float: left;
  font-size: 0.875em;
  line-height: 20px;
}

.comments .comment-list ul li .author-meta .date {
  float: left;
  margin-left: 10px;
  color: #999;
  font-size: 0.75em;
  line-height: 20px;
}

.comments .comment-list ul li p {
  position: relative;
  margin: 29px 0 0 60px;
  color: #666;
  font-size: 0.875em;
  line-height: 1.5714;
}

.comments .comment-form .field {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
}

.comments .comment-form input[type="text"],
.comments .comment-form input[type="password"],
.comments .comment-form textarea {
  border: 1px solid #e6e6e6;
  color: #666;
  font-size: 0.875em;
  line-height: 1.25;
}

.comments .comment-form input[type="text"],
.comments .comment-form input[type="password"] {
  width: 120px;
  height: 40px;
  padding: 10px;
  box-sizing: border-box;
}

.comments .comment-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  resize: none;
  box-sizing: border-box;
}

.comments .comment-form .submit {
  margin-bottom: 10px;
  text-align: right;
}

/* ======================================
   페이지 번호
   ====================================== */

.pagination {
  width: 100%;
  max-width: none;
  margin: 60px auto 100px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 10px;
  color: var(--light-brown);
  font-size: 0.875em;
  line-height: 30px;
  text-decoration: none;
  vertical-align: middle;
}

.pagination a:hover {
  color: var(--main-brown);
}

.pagination .selected {
  color: #000;
}

.pagination .prev,
.pagination .next {
  width: 30px;
  height: 30px;
  border: 1px solid var(--light-brown);
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  text-indent: -999em;
  vertical-align: middle;
  box-sizing: border-box;
}

.pagination .prev {
  background-position: 0 -150px;
}

.pagination .next {
  background-position: -50px -150px;
}

.pagination .no-more-prev,
.pagination .no-more-next {
  display: none;
}

/* ======================================
   광고
   ====================================== */

.revenue_unit_wrap.position_list {
  max-width: 100%;
  margin: 30px auto;
}

.box-timeline-content {
  word-break: break-all;
}

/* ======================================
   푸터
   ====================================== */

#footer {
  padding: 18px 0;
  background-color: #f0f0f0;
}

#footer .copyright {
  color: #999;
  font-size: 0.75em;
  text-align: center;
}

#footer a {
  color: var(--main-brown);
  text-decoration: none;
}

#footer .admin:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 1px 9px 2px;
  background-color: #b2b2b2;
  vertical-align: middle;
}

/* ======================================
   태블릿
   ====================================== */

@media screen and (max-width: 1023px) {
  #header .inner {
    padding: 0 20px;
  }

  #header h1 {
    float: none;
    padding: 20px 50px 20px 0;
  }

  #header .mobile-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: 19px;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    text-indent: -999em;
    outline: none;
  }

  #header .mobile-menu span,
  #header .mobile-menu:before,
  #header .mobile-menu:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background-color: var(--main-brown);
    transition: transform 0.3s;
  }

  #header .mobile-menu span {
    margin-top: -1px;
  }

  #header .mobile-menu:before {
    content: "";
    margin-top: -8px;
  }

  #header .mobile-menu:after {
    content: "";
    margin-top: 6px;
  }

  #header .mobile-menu.on {
    position: fixed;
    top: 10px;
    z-index: 610;
    margin-top: 0;
  }

  #header .mobile-menu.on span {
    display: none;
  }

  #header .mobile-menu.on:before {
    margin-top: -1px;
    transform: rotate(45deg);
  }

  #header .mobile-menu.on:after {
    margin-top: -1px;
    transform: rotate(-45deg);
  }

  #gnb {
    position: fixed;
    top: 0;
    right: -300px;
    z-index: 600;
    width: 300px;
    height: 100%;
    padding-top: 68px;
    background-color: #fff;
    box-sizing: border-box;
    transition: right 0.3s;
  }

  #gnb ul {
    overflow-y: auto;
    height: 100%;
  }

  #gnb ul li {
    float: none;
    padding: 0;
    border-top: 1px solid #ebebeb;
    font-size: 1.125em;
  }

  #gnb ul li a {
    padding: 19px 30px 12px;
  }

  #gnb ul li a:hover:after {
    display: none;
  }

  #gnb.on {
    right: 0;
  }

  .container {
    flex-direction: column;
    padding: 24px 20px 60px;
  }

  #aside {
    order: 0;
    width: 100%;
  }

  #aside .inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #aside .sidebar-1,
  #aside .sidebar-2,
  #aside .sidebar-3 {
    width: 100%;
  }

  #aside .sidebar-3 {
    grid-column: 1 / -1;
  }

  .post-item,
  body.post-type-text .post-item,
  .post-type-text .post-item {
    width: 48%;
    padding-left: 4%;
  }

  .post-item:nth-child(3n + 1),
  body.post-type-text .post-item:nth-child(3n + 1),
  .post-type-text .post-item:nth-child(3n + 1) {
    padding-left: 4%;
  }

  .post-item:nth-child(2n + 1),
  body.post-type-text .post-item:nth-child(2n + 1),
  .post-type-text .post-item:nth-child(2n + 1) {
    padding-left: 0;
  }
}

/* ======================================
   모바일
   ====================================== */

@media screen and (max-width: 767px) {
  #header .inner {
    padding: 0 18px;
  }

  .container {
    gap: 22px;
    padding: 18px 16px 50px;
  }

  #aside .inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  #aside .sidebar-1,
  #aside .sidebar-2,
  #aside .sidebar-3 {
    width: 100%;
  }

  .post-header h2 {
    line-height: 40px;
  }

  .post-item,
  body.post-type-text .post-item,
  .post-type-text .post-item {
    float: none;
    width: 100%;
    padding: 20px 0 24px;
  }

  .post-item:nth-child(n),
  body.post-type-text .post-item:nth-child(n),
  .post-type-text .post-item:nth-child(n) {
    padding-left: 0;
    padding-right: 0;
  }

  .post-item .thum,
  body.post-type-text .post-item .thum,
  .post-type-text .post-item .thum {
    padding-bottom: 58%;
  }

  .hgroup {
    margin-bottom: 35px;
    padding: 35px 0 25px;
  }

  .hgroup h1 {
    font-size: 1.35em;
  }

  #article-view {
    padding: 10px 0 40px;
  }

  .related-articles ul {
    margin-left: -10px;
  }

  .related-articles ul li {
    width: 50%;
    margin-bottom: 10px;
    padding-left: 10px;
  }

  .pagination {
    margin: 45px auto 70px;
  }
}






/* ======================================
   최종 레이아웃 보정
   반드시 CSS 맨 마지막에 추가
   ====================================== */

/* 데스크톱 및 태블릿 */
@media screen and (min-width: 769px) {

  /* 헤더와 전체 콘텐츠 너비 */
  #header .inner,
  .container {
    width: calc(100% - 40px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 헤더 제목 */
  #header h1 {
    float: left !important;
    padding: 26px 0 !important;
  }

  /* 데스크톱과 태블릿에서는 햄버거 메뉴 숨김 */
  #header .mobile-menu {
    display: none !important;
  }

  /* 상단 메뉴를 일반 메뉴로 복원 */
  #gnb {
    display: block !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    float: right !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #gnb ul {
    height: auto !important;
    overflow: visible !important;
  }

  #gnb ul li {
    float: left !important;
    padding: 26px 16px !important;
    border: 0 !important;
    font-size: 0.875em !important;
  }

  #gnb ul li a {
    padding: 0 4px !important;
    line-height: 28px !important;
  }

  /* 전체 레이아웃 */
  .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    padding-top: 40px !important;
    padding-bottom: 80px !important;
  }

  /* 왼쪽 사이드바 */
  #aside {
    display: block !important;
    order: -1 !important;
    width: 245px !important;
    min-width: 245px !important;
    flex: 0 0 245px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  #aside .inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  #aside .sidebar-1,
  #aside .sidebar-2,
  #aside .sidebar-3 {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 사이드바 순서 */
  #aside .sidebar-2 {
    order: 1 !important;
  }

  #aside .sidebar-1 {
    order: 2 !important;
  }

  #aside .sidebar-3 {
    order: 3 !important;
  }

  /* 본문 영역 */
  #content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #content .inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 26px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* 글 목록 */
  .post-item,
  body.post-type-text .post-item,
  .post-type-text .post-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 24px 0 28px !important;
    border-bottom: 1px solid #e6e6e6 !important;
    box-sizing: border-box !important;
  }

  .post-item:nth-child(n),
  body.post-type-text .post-item:nth-child(n),
  .post-type-text .post-item:nth-child(n) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 썸네일 */
  .post-item .thum,
  body.post-type-text .post-item .thum,
  .post-type-text .post-item .thum {
    float: none !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 0 12px !important;
    padding-bottom: 62% !important;
    overflow: hidden !important;
  }

  .post-item .thum img,
  body.post-type-text .post-item .thum img,
  .post-type-text .post-item .thum img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  /* 제목 */
  .post-item .title,
  body.post-type-text .post-item .title,
  .post-type-text .post-item .title {
    width: 100% !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 요약 */
  .post-item .excerpt,
  body.post-type-text .post-item .excerpt,
  .post-type-text .post-item .excerpt {
    width: 100% !important;
    height: 3.4em !important;
    margin-bottom: 8px !important;
    font-size: 0.82em !important;
    line-height: 1.7 !important;
    -webkit-line-clamp: 2 !important;
  }

  /* 글 목록 제목 */
  .post-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* 중간 크기 화면: 왼쪽 사이드바 + 글 목록 2열 */
@media screen and (min-width: 769px) and (max-width: 1100px) {

  #aside {
    width: 220px !important;
    min-width: 220px !important;
    flex-basis: 220px !important;
  }

  .container {
    gap: 24px !important;
  }

  #content .inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 24px !important;
  }
}

/* 모바일 */
@media screen and (max-width: 768px) {

  .container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 18px 16px 50px !important;
    gap: 24px !important;
    box-sizing: border-box !important;
  }

  /* 모바일에서는 본문 먼저 */
  #content {
    order: 1 !important;
    width: 100% !important;
  }

  /* 사이드바는 본문 아래 */
  #aside {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #aside .inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  #aside .sidebar-1,
  #aside .sidebar-2,
  #aside .sidebar-3 {
    width: 100% !important;
  }

  #content .inner {
    display: block !important;
    width: 100% !important;
  }

  .post-item,
  body.post-type-text .post-item,
  .post-type-text .post-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 24px !important;
  }

  .post-item:nth-child(n),
  body.post-type-text .post-item:nth-child(n),
  .post-type-text .post-item:nth-child(n) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}



/* ======================================
   카테고리 정렬
   카테고리명 | NEW | 글 개수
   ====================================== */

#aside .category-widget .link_tit,
#aside .category-widget .link_item,
#aside .category-widget .link_sub_item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 6px !important;
  overflow: hidden !important;
}

/* NEW 아이콘은 카테고리명 바로 뒤 */
#aside .category-widget .link_tit img,
#aside .category-widget .link_item img,
#aside .category-widget .link_sub_item img,
#aside .category-widget .new_ico,
#aside .category-widget .ico_new,
#aside .category-widget .icon_new {
  order: 2 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  max-width: 12px !important;
  height: auto !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* 글 개수는 항상 맨 오른쪽 */
#aside .category-widget .c_cnt {
  order: 3 !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  min-width: 43px !important;
  padding: 2px 8px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}



/* ======================================
   게시글 본문 페이지 전용 보정
   본문에서는 사이드바 숨김 + 1열 표시
   반드시 CSS 맨 마지막에 추가
   ====================================== */

/* 게시글 상세 페이지에서 사이드바 숨기기 */
body#tt-body-page #aside {
  display: none !important;
}

/* 게시글 상세 페이지 전체 영역 */
body#tt-body-page .container {
  display: block !important;
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px 80px !important;
  box-sizing: border-box !important;
}

/* 본문 너비 전체 사용 */
body#tt-body-page #content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

/* 글 목록용 3열 grid 해제 */
body#tt-body-page #content .inner {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* 글 제목 영역 */
body#tt-body-page .hgroup {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 45px !important;
  padding: 45px 0 30px !important;
  box-sizing: border-box !important;
}

/* 실제 글 본문 */
body#tt-body-page .entry-content,
body#tt-body-page #article-view {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 태그 */
body#tt-body-page .tags {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 관련 글 */
body#tt-body-page .related-articles {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 50px auto 80px !important;
}

/* 댓글 */
body#tt-body-page .comments {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

/* 모바일 본문 */
@media screen and (max-width: 768px) {
  body#tt-body-page .container {
    width: 100% !important;
    padding: 20px 16px 50px !important;
  }

  body#tt-body-page .hgroup {
    padding: 30px 0 22px !important;
    margin-bottom: 30px !important;
  }

  body#tt-body-page #article-view {
    padding: 10px 0 40px !important;
  }
}












