@charset "utf-8";

/* =============================================
   01. Web Font
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Nanum+Myeongjo:800&subset=korean');

/* =============================================
   02. CSS Variables
============================================= */
:root {
  --pink: #E91E8C;
  --pink-light: #FF6BB5;
  --pink-soft: #FFF0F7;
  --pink-hover: #C2185B;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w: 1080px;
}

/* =============================================
   03. Type Selector Reset
============================================= */
body {
  -webkit-text-size-adjust: 100%;
  font-weight: 400;
  font-family: 'Noto Sans KR', 'AppleSDGothicNeo', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
}

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: 'Noto Sans KR', 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; }
hr { display: none; }

a, a:link { text-decoration: none; color: var(--gray-700); }
a:visited { text-decoration: none; }
a:hover, a:focus { text-decoration: none; color: var(--pink); }
a:active { text-decoration: none; }

/* =============================================
   04. Accessibility Navigation
============================================= */
#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;
}

/* =============================================
   05. Header
============================================= */
#header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

#header .inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 로고 */
#header h1 {
  font-family: 'Noto Sans KR';
  font-weight: 800;
  font-size: 1em;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}

#header h1 a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-900);
  height: auto;
}

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

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.logo-text-wrap {
  font-size: 15px; font-weight: 700; color: var(--gray-900); line-height: 1;
}

/* GNB */
#gnb {
  flex: 1;
  height: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  display: flex;
  align-items: center;
}
#gnb::-webkit-scrollbar { display: none; }

#gnb ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
#gnb ul li { float: none; padding: 0; }
#gnb ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: .2s;
  position: relative;
}
#gnb ul li a:hover,
#gnb ul li.current a {
  background: var(--pink-soft);
  color: var(--pink);
}
#gnb ul li.current a:after,
#gnb ul li a:hover:after,
#gnb ul li a:focus:after { content: none; }

/* 유틸 */
#header .util {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#header .util .search {
  position: relative;
  overflow: hidden;
  width: 32px;
  background-color: var(--white);
  box-sizing: border-box;
  transition: width 0.4s;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
}
#header .util .search:before {
  content: "🔍";
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  z-index: 20; font-size: 14px; cursor: pointer;
}
#header .util .search input {
  width: 32px; height: 34px; padding: 5px 30px 5px 10px;
  border: 0; background: transparent; font-size: 0.875em;
  line-height: 1; outline: none; box-sizing: border-box;
}
#header .util .search input::placeholder { color: #969696; }
#header .util .search button {
  position: absolute; top: 1px; right: 1px; z-index: 10;
  width: 30px; height: 30px; text-indent: -999em;
  border: none; background: transparent; outline: none;
}
#header .util .search.on { width: 200px; }
#header .util .search.on:before { content: none; }
#header .util .search.on input { display: block; width: 100%; }

#header .util .profile {
  position: relative; float: none; margin-left: 0;
}
#header .util .profile button {
  display: block; overflow: hidden; width: 32px; height: 32px;
  border: 2px solid var(--pink-light); border-radius: 50%;
}
#header .util .profile img { width: 100%; height: 100%; }
#header .util .profile nav {
  display: none; position: absolute; top: 100%; right: 0;
  z-index: 30; width: 96px; margin: 0; padding-top: 12px;
}
#header .util .profile ul { box-shadow: 1px 1px 3px rgba(0,0,0,.1); }
#header .util .profile ul li a {
  display: block; margin-top: -1px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-align: center; font-size: 0.875em;
  line-height: 2.3125rem; color: #777;
}
#header .util .profile ul li a:hover { background: var(--pink-soft); color: var(--pink); }
#header .util .menu { display: none; }

/* =============================================
   06. Hero Section (메인 페이지 전용)
============================================= */
.hero-section {
  background: linear-gradient(135deg, #fff0f7 0%, #fce4ec 50%, #fff8e1 100%);
  padding: 60px 20px 44px;
  text-align: center;
}
/* 서브페이지에서는 히어로 더 컴팩트하게 */
#tt-body-page .hero-section,
#tt-body-entry .hero-section {
  padding: 32px 20px 28px;
}
#tt-body-page .hero-title,
#tt-body-entry .hero-title {
  font-size: 24px;
}
#tt-body-page .hero-badge,
#tt-body-entry .hero-badge {
  display: none;
}
#tt-body-page .hero-sub,
#tt-body-entry .hero-sub {
  display: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--pink-light);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 700; color: var(--pink); margin-bottom: 18px;
}
.hero-title {
  font-size: 36px; font-weight: 800; color: var(--gray-900);
  line-height: 1.3; margin-bottom: 8px;
}
.hero-title span { color: var(--pink); }
.hero-sub {
  color: var(--gray-500); font-size: 14px; margin-bottom: 28px;
}
.hero-searchbar {
  max-width: 580px; margin: 0 auto 16px;
  display: flex; background: var(--white);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(233,30,140,.15);
  border: 2px solid var(--pink-light);
}
.hero-searchbar input {
  flex: 1; border: none; outline: none;
  padding: 15px 18px; font-size: 15px; font-family: inherit;
}
.hero-searchbar button {
  background: var(--pink); color: var(--white);
  border: none; padding: 15px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: .2s;
}
.hero-searchbar button:hover { background: var(--pink-hover); }
.hero-tags {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.hero-tags-label { font-size: 12px; color: var(--gray-500); }
.hero-tag {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: var(--gray-700); transition: .2s;
}
.hero-tag:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

/* =============================================
   07. Category Tab
============================================= */
.cat-tab-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 60px; z-index: 90;
}
.cat-tab-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 20px; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  height: 50px; align-items: center;
}
.cat-tab-inner::-webkit-scrollbar { display: none; }

/* 직접 쓴 .cat-btn (전체 버튼) */
.cat-btn {
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; white-space: nowrap; transition: .2s;
  font-family: inherit; text-decoration: none; display: inline-block;
  flex-shrink: 0;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--pink); border-color: var(--pink); color: var(--white);
}

/* [##_category_list_##] 가 뱉는 ul > li > a 구조를 탭처럼 */
.cat-tab-inner ul {
  display: flex; align-items: center;
  gap: 6px; margin: 0; padding: 0; flex-shrink: 0;
}
.cat-tab-inner ul li {
  list-style: none; padding: 0; margin: 0; flex-shrink: 0;
}
/* 하위 카테고리 ul은 숨김 (1depth만 표시) */
.cat-tab-inner ul li ul { display: none; }

.cat-tab-inner ul li a {
  display: inline-block;
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  white-space: nowrap; transition: .2s; text-decoration: none;
  line-height: 1.4;
}
.cat-tab-inner ul li a:hover,
.cat-tab-inner ul li.current > a,
.cat-tab-inner ul li.current_category > a {
  background: var(--pink); border-color: var(--pink); color: var(--white);
}

/* 현재 페이지 '전체' 버튼 활성화 — JS로 제어 */

/* =============================================
   07-1. 서브페이지 body 배경 흰색
============================================= */
#tt-body-page,
#tt-body-entry {
  background: var(--white) !important;
}
#tt-body-page #container .content-wrap,
#tt-body-entry #container .content-wrap {
  background: var(--white);
}

/* =============================================
   08. Main Slider (프로모션)
============================================= */
.main-slider {
  display: none;
  position: relative; top: 0; z-index: 20;
  overflow: hidden; width: 100%;
  background: #cbcbcb;
}
#tt-body-index .main-slider { display: block; }

.main-slider ul { position: relative; }
.main-slider ul li {
  display: table; width: 100%; height: 300px;
  background-position: 50% 50%; background-size: cover;
}
.main-slider ul li a {
  display: table; width: 100%; height: 100%;
  text-decoration: none; background: rgba(0,0,0,.2);
}
.main-slider ul li .inner { display: table-cell; vertical-align: middle; }
.main-slider ul li .box {
  display: block; max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px 6px;
}
.main-slider ul li .text {
  display: block; overflow: hidden; max-width: 65%;
  text-overflow: ellipsis; font-weight: 300;
  font-size: 2em; line-height: 1.25; color: var(--white);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.main-slider ul li .btn {
  display: block; width: 118px; height: 35px;
  margin-top: 28px; border-radius: 35px;
  line-height: 35px; background: var(--white); color: #555;
  text-align: center; font-size: 14px;
}
.main-slider ul li .btn:hover { background: var(--pink); color: var(--white); }
.main-slider .paging {
  position: absolute; top: 50%; right: 20px;
  transform: translateY(-50%);
}
.main-slider .paging button {
  display: block; width: 8px; height: 8px; margin: 10px 0;
  text-indent: -999em; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.main-slider .paging .current { background: rgba(255,255,255,1); }

/* =============================================
   09. Layout
============================================= */
#container { position: relative; }

#container .content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 32px;
  align-items: start;
}

#container .content-wrap:before { content: none; }
#container .content-wrap:after { content: none; }

#content {
  float: none; width: auto;
  padding: 0; min-width: 0;
  box-sizing: border-box;
}
#content > .inner:after {
  content: ""; clear: both; display: block; height: 0; visibility: hidden;
}

#aside {
  float: none; width: auto;
  padding: 0; box-sizing: border-box;
}
#aside .close, #aside .profile { display: none; }

/* =============================================
   10. Post Header
============================================= */
.post-header {
  padding: 0 0 20px;
  border-bottom: 2px solid var(--pink-soft);
  margin-bottom: 24px;
}
.post-header h1 {
  font-size: 1em; font-weight: 700; color: var(--gray-900); line-height: 1.375;
}
.post-header h1 em { margin-left: 7px; font-style: normal; color: var(--pink); }

#tt-body-archive .post-header span:before { content: "'"; }
#tt-body-archive .post-header span:after { content: "' 에 등록된 글"; }
#tt-body-tag .post-header span:before { content: "#"; }
#tt-body-search .post-header span:before { content: "'"; }
#tt-body-search .post-header span:after { content: "'의 검색결과"; }

/* =============================================
   11. Post Item (목록)
============================================= */
.post-item {
  margin: 0 0 16px 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: .2s;
  box-sizing: border-box;
}
.post-item:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.post-item:nth-child(3n+1) { clear: none; margin-left: 0; }

/* a 태그: 좌(이미지) + 우(텍스트박스) 구조
   티스토리: a > .thum + .title + .excerpt + .meta 순서
   → a를 relative container로, .thum 고정, 텍스트는 absolute로 우측 채움 */
.post-item a {
  display: block;
  position: relative;
  min-height: 160px;
  text-decoration: none;
  color: inherit;
  padding-left: 200px;   /* 이미지 너비만큼 왼쪽 여백 */
  box-sizing: border-box;
}
.post-item a:hover .title { color: var(--pink); }

/* 썸네일: absolute로 왼쪽 고정 */
.post-item .thum {
  position: absolute;
  top: 0; left: 0;
  width: 190px;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.post-item .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
}
.post-item.protected .thum:before {
  content: "🔒";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 28px;
}

/* 텍스트 3요소: padding-left 덕분에 이미지 오른쪽에 자연스럽게 쌓임 */
.post-item .title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-900);
  padding: 20px 20px 0 20px;
  margin: 0;
}
.post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-500);
  padding: 10px 20px 0 20px;
  margin: 0;
}
.post-item .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  padding: 10px 20px 18px 20px;
  margin: 0;
}
.post-item .meta span:before { content: none; }

/* list-type 변형 */
.list-type-vertical .post-item a {
  padding-left: 0;
  min-height: auto;
}
.list-type-vertical .post-item .thum {
  position: static;
  width: 100%; height: 200px; min-height: auto;
}
.list-type-vertical .post-item .title { padding-top: 14px; }
.list-type-vertical .post-item .excerpt,
.list-type-vertical .post-item .meta .comment { display: none; }

.list-type-thumbnail .post-item a { padding-left: 140px; }
.list-type-thumbnail .post-item .thum { width: 130px; }

.list-type-text .post-item a { padding-left: 0; }
.list-type-text .post-item .thum { display: none; }
.list-type-text .post-item .title { padding-top: 16px; }

/* 모바일 */
@media screen and (max-width: 600px) {
  .post-item a { padding-left: 130px; min-height: 120px; }
  .post-item .thum { width: 120px; }
  .post-item .title { font-size: 15px; padding: 14px 14px 0 14px; }
  .post-item .excerpt { padding: 8px 14px 0 14px; -webkit-line-clamp: 2; }
  .post-item .meta { padding: 8px 14px 14px 14px; }
}
@media screen and (max-width: 420px) {
  .post-item a { padding-left: 0; min-height: auto; }
  .post-item .thum { position: static; width: 100%; height: 160px; min-height: auto; }
  .post-item .title { padding-top: 12px; }
}

/* =============================================
   12. Cover Components
============================================= */
.cover-thumbnail-1, .cover-thumbnail-2,
.cover-thumbnail-3, .cover-thumbnail-4,
.cover-list, .cover-event {
  position: relative; margin-bottom: 40px;
}

.cover-thumbnail-1 h2, .cover-thumbnail-2 h2,
.cover-thumbnail-3 h2, .cover-thumbnail-4 h2,
.cover-list h2, .cover-event h2 {
  margin-bottom: 16px; font-weight: 700;
  font-size: 15px; color: var(--gray-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-soft);
}

/* cover-thumbnail-1: 3열 그리드 */
.cover-thumbnail-1 ul {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%; margin: 0;
}
.cover-thumbnail-1 ul li { float: none; width: auto; padding: 0; margin: 0; }
.cover-thumbnail-1 ul li a {
  display: block; text-decoration: none;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.cover-thumbnail-1 ul li a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cover-thumbnail-1 ul li figure {
  display: block; height: 0; padding-bottom: 100%;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.cover-thumbnail-1 ul li figure img { width: 100%; height: auto; }
.cover-thumbnail-1 ul li .title {
  display: block; overflow: hidden; padding: 10px;
  text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.5;
}
.cover-thumbnail-1 ul li .date { display: block; font-size: 11px; color: #999; padding: 0 10px 10px; }
.cover-thumbnail-1 .more { position: absolute; top: 2px; right: 0; font-size: 0.875em; color: #999; }

/* cover-thumbnail-2: 리스트형 */
.cover-thumbnail-2 ul { margin: 0; }
.cover-thumbnail-2 ul li {
  overflow: hidden; margin-top: 16px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cover-thumbnail-2 ul li a { display: block; padding: 14px; text-decoration: none; }
.cover-thumbnail-2 ul li figure { float: right; width: 100px; margin-left: 16px; }
.cover-thumbnail-2 ul li figure img { width: 100%; height: auto; border-radius: 8px; }
.cover-thumbnail-2 ul li .title {
  display: block; overflow: hidden; max-width: 100%;
  margin-bottom: 6px; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--gray-900);
}
.cover-thumbnail-2 ul li .excerpt {
  display: block; overflow: hidden; max-width: 100%; margin-bottom: 10px;
  font-size: 13px; line-height: 1.5; color: #999;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cover-thumbnail-2 ul li .meta { font-size: 12px; color: #999; }
.cover-thumbnail-2 ul li .meta span:before { content: none; }

/* cover-thumbnail-4: 3열 카드 */
.cover-thumbnail-4 ul {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; width: 100%; margin: 0;
}
.cover-thumbnail-4 ul li { float: none; width: auto; padding: 0; min-height: auto; margin: 0; }
.cover-thumbnail-4 ul li a {
  display: block; text-decoration: none;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.cover-thumbnail-4 ul li a:hover { transform: translateY(-2px); }
.cover-thumbnail-4 ul li figure {
  display: block; height: 0; padding-bottom: 60%;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.cover-thumbnail-4 ul li figure img { width: 100%; height: auto; }
.cover-thumbnail-4 ul li .title {
  display: block; overflow: hidden; max-width: 100%; padding: 10px 10px 4px;
  text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600;
}
.cover-thumbnail-4 ul li .excerpt {
  display: block; overflow: hidden; padding: 0 10px 6px;
  font-size: 12px; color: #999;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cover-thumbnail-4 ul li .meta { font-size: 11px; color: #999; padding: 0 10px 10px; }
.cover-thumbnail-4 ul li .meta span:before { content: none; }

/* cover-list */
.cover-list ul li { margin-bottom: 20px; }
.cover-list ul li a {
  display: block; text-decoration: none;
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: .2s;
}
.cover-list ul li a:hover { transform: translateY(-1px); }
.cover-list ul li .title {
  display: block; overflow: hidden; max-width: 100%; margin-bottom: 4px;
  text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600;
}
.cover-list ul li .excerpt {
  display: block; overflow: hidden; font-size: 13px; color: #999; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cover-list ul li .date { font-size: 12px; color: #999; }
.cover-list .more { position: absolute; top: 2px; right: 0; font-size: 0.875em; color: #999; }

/* cover-event */
.cover-event ul {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0;
}
.cover-event ul li { float: none; width: auto; padding: 0; margin: 0; }
.cover-event ul li a {
  position: relative; display: block; padding-bottom: 33%;
  border-radius: var(--radius); overflow: hidden;
  background-color: #e0e0e0; background-repeat: no-repeat;
  background-position: 50% 50%; background-size: cover;
}
.cover-event ul li a:before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,.2);
}
.cover-event ul li .title {
  position: absolute; top: 15%; left: 16px; z-index: 30;
  overflow: hidden; max-width: 70%; color: var(--white); font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cover-event ul li .more {
  position: absolute; bottom: 15%; left: 16px; z-index: 30;
  font-size: 12px; color: rgba(255,255,255,.7); text-decoration: underline;
}

/* =============================================
   13. Post Cover (본문 상단)
   — 서브페이지: 배경 이미지 숨기고 텍스트만 표시
============================================= */
.post-cover {
  position: relative; z-index: 20; display: block;
  width: 100%; height: auto;
  background: none !important;          /* 배경 이미지 완전 제거 */
  background-image: none !important;
  box-sizing: border-box;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--pink-soft);
  padding-bottom: 20px;
}
.post-cover:before { content: none; }  /* 어두운 오버레이 제거 */

.post-cover .inner {
  display: block; position: static;
  padding: 24px 0 0;
}
.post-cover .category {
  display: inline-block; background: var(--pink-soft); color: var(--pink);
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 12px;
}
.post-cover h1 {
  font-weight: 800; font-size: 1.75em;
  line-height: 1.35; color: var(--gray-900); margin: 0 0 12px;
}
.post-cover a { text-decoration: none; color: var(--gray-900); }
.post-cover a:hover { color: var(--pink); }
.post-cover .meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--gray-500); margin: 0;
}
.post-cover .meta a { color: var(--gray-500); }
.post-cover .meta a:before, .post-cover .meta span:before {
  content: "·"; display: inline-block;
  margin: 0 4px; color: var(--gray-300); vertical-align: middle;
}
.post-cover .meta span:first-child:before { content: none; }

/* 메인 공지글 커버 (인덱스 페이지) */
#tt-body-index .post-cover.notice {
  height: auto; background: transparent;
  border-bottom: none; padding-bottom: 0;
}
#tt-body-index .post-cover.notice h1 { font-size: 1.5em; line-height: 1.5; color: var(--gray-900); margin: 0; }
#tt-body-index .post-cover.notice h1 a { color: var(--gray-900); }
#tt-body-index .post-cover.notice .meta { color: rgba(0,0,0,.5); margin: 0 0 24px; }

#tt-body-page #container { padding-top: 0; }
#tt-body-page.post-cover-hide #container { padding-top: 0; }
#tt-body-page .post-cover { position: static; }

/* =============================================
   14. Entry Content (본문)
============================================= */
.entry-content { color: var(--gray-700); }

.entry-content h1 { clear: both; margin: 28px 0 20px; font-size: 1.6em; line-height: 1.5; color: var(--gray-900); }
.entry-content h2 { clear: both; margin: 28px 0 20px; font-size: 1.4em; line-height: 1.5; color: var(--gray-900); }
.entry-content h3 { clear: both; margin: 28px 0 20px; font-size: 1.2em; line-height: 1.5; color: var(--gray-900); }
.entry-content h4 { clear: both; margin: 28px 0 20px; font-weight: 500; font-size: 1.1em; line-height: 1.5; color: var(--gray-900); }
.entry-content p { word-break: break-word; margin-bottom: 20px; line-height: 1.75; }
.entry-content p img { max-width: 100%; height: auto; }
.entry-content hr { display: block; height: 0; border: 0; border-bottom: 1px solid var(--gray-200); }
.entry-content pre { word-break: break-word; white-space: pre-wrap; word-wrap: break-word; }
.entry-content ul { list-style: disc; margin-bottom: 20px; padding: revert; }
.entry-content ul li { position: relative; margin-bottom: 8px; list-style: inherit; }
.entry-content ol { list-style: decimal inside; margin-bottom: 20px; }
.entry-content ol li { position: relative; margin-bottom: 8px; text-indent: -15px; list-style: inherit; }
.entry-content img.alignleft { float: left; margin: 0 22px 22px 0; }
.entry-content img.aligncenter { display: block; margin: 0 auto 22px; }
.entry-content img.alignright { float: right; margin: 0 0 22px 22px; }
.entry-content blockquote {
  margin-bottom: 32px; padding: 16px 20px;
  border-left: 4px solid var(--pink-light);
  background: var(--pink-soft); border-radius: 0 8px 8px 0;
}
.entry-content blockquote p { margin: 0; }
.entry-content input {
  height: 36px; padding: 0 10px; border: 1px solid var(--gray-200);
  font-size: 0.875em; color: #666; box-sizing: border-box;
}
.entry-content .protected_form {
  display: block; width: 100%; padding: 80px 0 100px; text-align: center;
}
.entry-content .protected_form h2 { margin: 0 0 8px; font-size: 1.5em; color: var(--gray-700); }
.entry-content .protected_form p { margin-bottom: 28px; color: #999; }
.entry-content .protected_form input {
  width: 183px; padding: 0 20px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 0.9em; line-height: 2.2rem;
}
.entry-content .protected_form input:focus { border-color: var(--pink); }
.entry-content .protected_form .btn { margin-left: 5px; border-radius: 8px; }
.entry-content .iframe-wrap { position: relative; height: 0; padding-bottom: 56.25%; }
.entry-content .iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =============================================
   15. Tags / Pagination / Page Nav
============================================= */
.tags { margin-bottom: 36px; }
.tags h2 { margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.tags a {
  display: inline-block; margin: 0 6px 8px 0; padding: 5px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-size: 13px; color: var(--gray-700); transition: .2s;
}
.tags a:hover, .tags a:focus {
  border-color: var(--pink); color: var(--pink); background: var(--pink-soft);
}

.pagination { margin-bottom: 40px; text-align: center; padding-top: 16px; }
.pagination a {
  display: inline-block; margin: 0 8px; font-size: 14px;
  line-height: 1.5rem; vertical-align: top; color: #999;
}
.pagination .selected { color: var(--pink); font-weight: 700; }
.pagination .prev, .pagination .next {
  width: 32px; height: 32px; border: 1.5px solid var(--gray-200);
  border-radius: 50%; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-500);
}
.pagination .prev:hover, .pagination .next:hover { border-color: var(--pink); color: var(--pink); }
.pagination .view-more {
  display: block; margin: 0; padding: 12px 0;
  border: 1px solid var(--gray-200); text-align: center;
  font-size: 0.875em; color: #999; border-radius: 8px;
}

.page-nav {
  margin: 40px 0 48px; padding: 20px 0;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.page-nav a {
  display: block; overflow: hidden; padding-left: 56px;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.875em; line-height: 2rem; color: var(--gray-700);
}
.page-nav a:hover, .page-nav a:focus { color: var(--pink); }
.page-nav a strong {
  float: left; width: 56px; margin-left: -56px;
  font-weight: 400; color: #999;
}

/* =============================================
   16. Related Articles
============================================= */
.related-articles { margin-bottom: 40px; }
.related-articles h2 { margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.related-articles ul {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 0;
}
.related-articles ul li { float: none; width: auto; padding: 0; }
.related-articles ul li a {
  display: block; text-decoration: none; color: var(--gray-700);
  background: var(--white); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.related-articles ul li a:hover { transform: translateY(-2px); color: var(--pink); }
.related-articles ul li figure {
  display: block; height: 0; padding-bottom: 68%;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.related-articles ul li figure img { width: 100%; height: auto; }
.related-articles ul li .title {
  display: block; overflow: hidden; padding: 8px;
  text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4;
}

/* =============================================
   17. Not Found
============================================= */
.not-found { display: block; width: 100%; margin-bottom: 32px; }
.not-found li { position: relative; padding-left: 10px; font-size: 0.9em; line-height: 2; color: #999; }
.not-found li:before { content: ""; position: absolute; top: 15px; left: 0; width: 2px; height: 2px; background: #999; }
.not-found .tag, .not-found .category, .not-found .archive { display: none; }
#tt-body-tag .not-found ul, #tt-body-category .not-found ul, #tt-body-archive .not-found ul { display: none; }
#tt-body-tag .not-found .tag, #tt-body-category .not-found .category, #tt-body-archive .not-found .archive { display: block; }

/* =============================================
   18. Comments
============================================= */
.comments { margin-bottom: 48px; }
.comments h2 { margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.comments h2 .count { margin-left: 4px; color: var(--pink); }

.comment-list { margin-bottom: 48px; border-top: 1px solid var(--gray-200); }
.comment-list ul li {
  display: inline-block; width: 100%; padding: 24px 0 20px;
  border-bottom: 1px solid var(--gray-200); vertical-align: top; box-sizing: border-box;
}
.comment-list .tt_more_preview_comments_wrap { padding: 0; border: 0; }
.comment-list .tt_more_preview_comments_text {
  display: block; margin: -1px 0 0; padding: 10px 0;
  border: 1px solid var(--gray-200); text-align: center;
  font-size: 0.875em; color: #999;
}
.comment-list ul li .author-meta {
  position: relative; margin-bottom: 6px; padding: 2px 0 0 56px; font-size: 13px; color: #999;
}
.comment-list ul li .author-meta a { color: #999; }
.comment-list ul li .author-meta a:before, .comment-list ul li .author-meta span:before {
  content: ""; display: inline-block; width: 2px; height: 2px;
  margin: 0 6px 0 4px; background: #e3e3e3; vertical-align: middle;
}
.comment-list ul li .author-meta .nickname { font-weight: 700; color: var(--gray-700); }
.comment-list ul li .author-meta .nickname a { color: var(--gray-700); }
.comment-list ul li .author-meta .avatar {
  float: left; width: 42px; height: 42px;
  margin: -2px 0 0 -56px; border: 2px solid var(--pink-soft); border-radius: 50%;
}
.comment-list ul li .author-meta .control { position: absolute; top: 0; right: -9px; border-bottom: 0; }
.comment-list ul li .author-meta .control button {
  display: block; width: 20px; height: 20px; background: none; color: #999; font-size: 18px;
}
.comment-list ul li .author-meta .control .link {
  display: none; position: absolute; top: 100%; left: -65px; width: 70px; text-align: center;
}
.comment-list ul li .author-meta .control .link a {
  display: block; margin-top: -1px; border: 1px solid var(--gray-200);
  background: var(--white); font-size: 0.875em; line-height: 1.5rem; color: #333;
}
.comment-list ul li .author-meta .nickname:before,
.comment-list ul li .author-meta .nickname a:before,
.comment-list ul li .author-meta .control:before,
.comment-list ul li .author-meta .control a:before { content: none; }
.comment-list ul li p {
  max-width: 85%; padding: 0 0 0 56px; font-size: 0.875em;
  line-height: 1.6; color: #777; box-sizing: border-box;
}
.comment-list ul li .reply { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--pink); }
.comment-list ul li ul {
  margin: 24px 0 -24px 0; padding: 20px 0 16px;
  border-top: 1px solid var(--gray-200); background: var(--gray-50);
}
.comment-list ul li ul li { padding: 12px 0 12px 56px; border-bottom: 0; }
.comment-list ul li ul li .author-meta .control { right: 15px; }

.comment-form { position: relative; margin-bottom: 48px; }
.comment-form .field {
  overflow: hidden; margin-bottom: -1px; border: 1px solid var(--gray-200); border-radius: 8px 8px 0 0;
}
.comment-form .field input[type=text],
.comment-form .field input[type=password] {
  float: left; width: 50%; padding: 12px 16px;
  border: 0; border-left: 1px solid var(--gray-200);
  font-size: 0.875em; color: #777; box-sizing: border-box;
}
.comment-form .field input:first-child { border-left: 0; }
.comment-form textarea {
  display: block; width: 100%; margin-bottom: 16px; padding: 14px 100px 14px 14px;
  border: 1px solid var(--gray-200); font-size: 0.875em; color: #777;
  box-sizing: border-box; resize: none; border-radius: 0 0 8px 8px;
}
.comment-form input::-webkit-input-placeholder,
.comment-form textarea::-webkit-input-placeholder { color: #999; }
.comment-form .secret { position: absolute; left: 0; bottom: 8px; }
.comment-form .secret input { display: none; }
.comment-form .secret label {
  display: inline-block; font-size: 13px; line-height: 1.5rem; color: #666; cursor: pointer;
}
.comment-form .secret label:before {
  content: ""; display: inline-block; width: 18px; height: 18px;
  margin-right: 8px; border: 1.5px solid var(--gray-200);
  vertical-align: top; background: var(--white); border-radius: 4px;
}
.comment-form .secret input[type=checkbox]:checked+label:before {
  background: var(--pink); border-color: var(--pink);
}
.comment-form .submit { text-align: right; }
.comment-form .submit button {
  background: var(--gray-900); color: var(--white);
  padding: 0 20px; height: 36px; border-radius: 8px; font-size: 14px;
}
.comment-form .submit button:hover, .comment-form .submit button:focus { background: var(--pink); }

/* =============================================
   19. Sidebar
============================================= */
.sidebar h2 {
  margin-bottom: 8px; font-weight: 700;
  font-size: 14px; color: var(--gray-900);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 6px;
}
.sidebar ul li { padding: 5px 0; font-size: 13px; line-height: 1.4; color: #777; }
.sidebar ul li a { color: #777; }
.sidebar ul li a:hover { color: var(--pink); }

.sidebar .sidebar-2 { margin-top: 20px; }

.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px;
}
.sidebar-card-body { padding: 12px 16px 16px; }

/* 카테고리 */
.sidebar .category { margin-bottom: 0; }
.sidebar .category ul li {
  padding: 0; font-size: 14px; font-weight: 600;
}
.sidebar .category ul li a { color: var(--gray-700); display: block; padding: 6px 16px; }
.sidebar .category ul li a:hover { color: var(--pink); background: var(--pink-soft); }
.sidebar .category ul li ul { padding-top: 4px; }
.sidebar .category ul li ul li { padding: 4px 0 5px; font-weight: 400; font-size: 13px; }
.sidebar .category ul li ul li a { padding-left: 28px; color: #999; }
.sidebar .category ul li ul li a:hover { color: var(--pink); }

/* 공지 */
.sidebar .notice { margin-bottom: 0; }
.sidebar .notice ul { padding: 0 16px 14px; }
.sidebar .notice ul li a {
  display: block; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; font-size: 13px; color: var(--gray-700);
  padding: 4px 0;
}
.sidebar .notice ul li a:hover { color: var(--pink); }

/* 최근/인기글 */
.sidebar .post-list { margin-bottom: 0; }
.sidebar .post-list h2 { margin-bottom: 0; }
.sidebar .post-list ul { padding: 0 16px 14px; }
.sidebar .post-list ul li {
  overflow: hidden; margin-bottom: 12px; padding: 0;
}
.sidebar .post-list ul li img {
  float: right; width: 48px; height: 48px;
  margin: 2px 0 0 12px; border-radius: 6px; object-fit: cover;
}
.sidebar .post-list ul li a { display: block; text-decoration: none; }
.sidebar .post-list ul li a:hover .title { color: var(--pink); }
.sidebar .post-list ul li .title {
  display: block; display: -webkit-box; overflow: hidden;
  text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 13px; color: var(--gray-700); line-height: 1.4;
}
.sidebar .post-list ul li .date { display: block; margin-top: 4px; font-size: 11px; color: #999; }

/* 탭 UI */
.sidebar .tab-ui h2 a { color: #999; font-weight: 500; }
.sidebar .tab-ui h2 a.current { color: var(--gray-900); font-weight: 700; }
.sidebar .tab-ui h2 a:before {
  content: "·"; display: inline-block; margin: 0 8px; color: var(--gray-200);
}
.sidebar .tab-ui h2 a:first-child:before { content: none; }

/* 최근댓글 */
.sidebar .recent-comment { margin-bottom: 0; }
.sidebar .recent-comment ul { padding: 0 16px 14px; }
.sidebar .recent-comment ul li a {
  display: block; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; font-size: 13px; color: var(--gray-700); padding: 4px 0;
}
.sidebar .recent-comment ul li a:hover { color: var(--pink); }

/* 태그 */
#aside .tags { margin: 0; padding: 12px 16px 16px; }
#aside .tags h2 { margin-bottom: 10px; font-size: 13px; padding: 0; border: 0; }
#aside .tags a {
  display: inline-block; margin: 0 4px 6px 0; padding: 3px 10px;
  border: 1px solid var(--gray-200); border-radius: 20px;
  font-size: 12px; color: var(--gray-500); transition: .2s;
}
#aside .tags a:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

/* 방문자 수 */
.sidebar .count { margin-bottom: 0; padding: 12px 16px 16px; }
.sidebar .count h2 { padding: 0; border: 0; margin-bottom: 8px; }
.sidebar .count h2:before { content: none; }
.sidebar .count p { margin-bottom: 4px; font-size: 13px; color: #777; }
.sidebar .count .total { margin-bottom: 8px; font-weight: 800; font-size: 1.5em; color: var(--pink); }

/* 소셜채널 */
.sidebar .social-channel { margin-bottom: 0; padding: 12px 16px 16px; }
.sidebar .social-channel ul { overflow: hidden; width: 100%; }
.sidebar .social-channel ul li { float: left; margin-left: 8px; padding: 0; }
.sidebar .social-channel ul li:first-child { margin-left: 0; }
.sidebar .social-channel ul li a {
  display: flex; width: 34px; height: 34px; border: 1.5px solid var(--gray-200);
  border-radius: 50%; text-indent: -999em; overflow: hidden;
  align-items: center; justify-content: center; transition: .2s;
}
.sidebar .social-channel ul li a:hover { border-color: var(--pink); background: var(--pink-soft); }

/* =============================================
   20. Footer
============================================= */
#footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--gray-200);
  background: #1a1a2e;
  margin-top: 48px;
}
#footer .inner {
  position: relative; max-width: var(--max-w);
  margin: 0 auto; padding: 0 20px; text-align: center;
}
.footer-logo {
  font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 16px;
}
#footer p { margin-bottom: 6px; font-size: 13px; color: rgba(255,255,255,.5); }
#footer .order-menu { margin-bottom: 16px; }
#footer .order-menu a {
  display: inline-block; margin-bottom: 0;
  font-size: 13px; color: rgba(255,255,255,.6);
}
#footer .order-menu a:hover { color: var(--white); }
#footer .order-menu a:before {
  content: ""; display: inline-block; width: 2px; height: 2px;
  margin: 0 16px 2px 12px; background: rgba(255,255,255,.3); vertical-align: middle;
}
#footer .order-menu a:first-child::before { content: none; }
#footer .page-top {
  position: absolute; top: 0; right: 20px;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50%; background: transparent;
  color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-indent: 0;
}
#footer .page-top:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* =============================================
   21. Btn / ETC
============================================= */
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  background: var(--pink); color: var(--white); border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
.btn:hover { background: var(--pink-hover); color: var(--white); }

#dimmed {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 100%; height: 100%; background: rgba(0,0,0,.6);
}
.mobile-menu { overflow: hidden; height: 100%; }
.slide-wrap { overflow: hidden; }

/* Another category */
#content .another_category {
  margin: 48px 0 44px !important; padding: 16px 20px 14px;
  border-radius: var(--radius); background: var(--pink-soft);
  border: 1px solid var(--pink-light);
}
#content .another_category h4 { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 0.875em !important; }
#content .another_category table { margin: 0 !important; border: 0; }
#content .another_category th { padding: 2px 0 !important; font-size: 0.875rem !important; }
#content .another_category th a.current { text-decoration: underline !important; font-weight: 600; color: var(--pink) !important; border: 0 !important; }
#content .another_category td { padding: 2px 0 !important; border: 0; font-size: 0.75rem !important; }

.container_postbtn { margin: 44px 0 48px; padding: 0 !important; }

.absent_post:before {
  content: "글을 찾지 못했습니다.";
  display: block; margin-bottom: 8px;
  font-weight: 800; font-size: 1.5em; color: var(--gray-700); white-space: pre;
}
.absent_post { padding: 80px 0 !important; background: none !important; font-size: 1em !important; line-height: 1.75; color: #999 !important; }

/* 레이아웃 옵션 */
.layout-aside-left #content { float: none; }
.layout-aside-left #aside { float: none; }

/* =============================================
   22. article-view (티스토리 에디터 스타일 — 원본 유지)
============================================= */
#article-view {
  margin: 0; padding: 20px 0 50px;
  word-wrap: break-word; color: #333;
  min-height: 370px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}
.contents_style > * { margin: 20px 0 0 0; }
#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 {
  font-weight: normal; letter-spacing: -1px; color: #000; margin: 1em 0 20px;
}
#article-view p+p, #article-view p { margin-bottom: 30px; }
#article-view a { color: var(--pink); text-decoration: underline; }
#article-view blockquote[data-ke-style='style2'] {
  border-color: var(--pink-light); border-width: 0 0 0 4px; border-style: solid;
  padding: 1px 0 0 12px; background: var(--pink-soft); color: #666;
}

/* =============================================
   23. Retina / Media (원본 유지 + 조정)
============================================= */
@media screen and (max-width: 1080px) {
  #header .inner { padding: 0 16px; }
  #footer .inner { padding: 0 16px; }
  #container .content-wrap { padding: 24px 16px; }
}

@media screen and (max-width: 900px) {
  #container .content-wrap {
    grid-template-columns: 1fr;
  }
  #aside { display: none; }
  .hero-title { font-size: 26px; }
  .cover-thumbnail-1 ul { grid-template-columns: repeat(2,1fr); }
  .cover-thumbnail-4 ul { grid-template-columns: repeat(2,1fr); }
  .related-articles ul { grid-template-columns: repeat(2,1fr); }
}

@media screen and (max-width: 767px) {
  #header h1 { position: relative; z-index: 10; }
  #header .inner { height: 54px; gap: 12px; padding: 0 14px; }
  #header .util { top: 0; right: 0; }
  #header .util .search.on { width: 160px; }
  #header .util .profile { display: none; }
  #header .util .menu {
    display: inline-block; width: 30px; height: 30px;
    border: 1px solid var(--gray-200); border-radius: 50%; text-indent: -999em; outline: none;
  }
  #header .util .menu span,
  #header .util .menu:before,
  #header .util .menu:after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 16px; height: 1px; margin: 0 0 0 -8px;
    background: #7f7f7f; transition: transform .4s;
  }
  #header .util .menu:before { margin-top: -6px; }
  #header .util .menu:after { margin-top: 6px; }

  #gnb { display: none; }
  .cat-tab-wrap { top: 54px; }

  #aside {
    position: fixed; top: 0; right: -278px; z-index: 400;
    display: block; float: none; overflow: auto;
    width: 278px; height: 100%; padding: 80px 16px 40px;
    background: var(--white); box-sizing: border-box;
    transition: right .4s; box-shadow: -4px 0 20px rgba(0,0,0,.1);
  }
  #aside .close {
    position: absolute; top: 20px; right: 20px; z-index: 300;
    display: inline-block; width: 30px; height: 30px;
    border: 1px solid var(--gray-200); border-radius: 50%;
    text-indent: -999em; outline: none;
  }
  #aside .close:before, #aside .close:after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 16px; height: 1px; margin: 0 0 0 -8px; background: #7f7f7f;
  }
  #aside .close:before { transform: rotate(-45deg); }
  #aside .close:after { transform: rotate(45deg); }

  .mobile-menu #aside { right: 0; }

  #content { padding: 0; }
  #container .content-wrap { padding: 16px; grid-template-columns: 1fr; }

  .hero-section { padding: 40px 16px 32px; }
  .hero-title { font-size: 22px; }
  .hero-searchbar { border-radius: 10px; }
  .hero-searchbar input { padding: 12px 14px; font-size: 14px; }
  .hero-searchbar button { padding: 12px 16px; font-size: 14px; }

  .post-item .thum { flex: 0 0 120px; width: 120px; height: 100px; }
  .post-item .title { font-size: 15px; }

  .cover-thumbnail-1 ul { grid-template-columns: 1fr; }
  .cover-thumbnail-4 ul { grid-template-columns: 1fr; }
  .cover-event ul { grid-template-columns: 1fr; }
  .related-articles ul { grid-template-columns: 1fr 1fr; }

  .post-cover { height: 220px; border-radius: 10px; }
  .post-cover .inner { padding: 0 20px 28px; }
  .post-cover h1 { font-size: 1.4em; }

  #tt-body-index .pagination { margin: 0 0 32px; }

  #footer { padding: 28px 0 22px; }
  #footer .order-menu a { display: block; margin-bottom: 4px; }
  #footer .order-menu a:before { content: none; }

  .comment-list ul li p { max-width: none; padding: 0 56px; }
  .comment-form { padding: 0; }
  .comment-form .secret { left: 0; }

  .entry-content { padding: 0; }

  #tt-body-index .post-cover.notice .meta { padding: 0 0 20px; }
}

@media screen and (max-width: 480px) {
  .post-item a { flex-direction: column; }
  .post-item .thum { flex: none; width: 100%; height: 180px; }
  .post-item a > .title { padding-top: 14px; }
  .hero-tags { display: none; }
}

/* 뷰타입별 */
.list-type-thumbnail .post-item a { grid-template-columns: 126px 1fr; }
.list-type-thumbnail .post-item .thum { width: 126px; height: 90px; }
.list-type-text .post-item a { grid-template-columns: 1fr; }
.list-type-text .post-item .thum { display: none; }

/* view-more */
.view-more .pagination { display: none; }
.view-more .pagination .view-more { display: block; }

/* 댓글 스타일 오버라이드 (티스토리 기본) */
.tt-comment-cont .tt-box-total .tt_txt_g { font-size: 14px; }
.tt-comment-cont .tt-box-total .tt_num_g { font-size: 14px; color: #777; }
.tt-comment-cont .tt-wrap-cmt .tt-link-user { font-size: 14px; }
.tt-comment-cont .tt-wrap-cmt .tt_desc { font-size: 14px; color: #555; }
.tt-comment-cont .tt-txt-mention { color: #555; }
.tt-comment-cont .tt-btn_register {
  width: 100px; height: 36px;
  background: var(--pink); font-size: 14px; color: var(--white);
  border-radius: 8px; border-color: var(--pink);
}
.tt-comment-cont .tt-btn_register:hover { background: var(--pink-hover); border-color: var(--pink-hover); }
.tt-comment-cont .tt-btn_register:focus { background: var(--pink-hover); border-color: var(--pink-hover); }

@media screen and (max-width: 767px) {
  .tt-comments-wrap { padding: 0; }
  #tt-body-index .post-header { padding-top: 0; }
}

.revenue_unit_wrap.position_list { max-width: 740px; margin: 28px auto; }
.box-timeline-content { word-break: break-all; }




/* =============================================
   기본 테이블 CSS
============================================= */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #F8BBD0;
  border-radius: 10px;
  overflow: hidden;
}

.entry-content table th {
  background: #E91E8C;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  text-align: center;
  border: none;
}

.entry-content table td {
  padding: 11px 16px;
  color: #374151;
  border-bottom: 1px solid #FCE4EC;
  vertical-align: middle;
  word-break: keep-all;
}

.entry-content table tbody tr:last-child td {
  border-bottom: none;
}

.entry-content table tbody tr:nth-child(even) td {
  background: #FFF0F7;
}

.entry-content table tbody tr:hover td {
  background: #FCE4EC;
  transition: background .15s;
}

/* 모바일 가로 스크롤 */
@media screen and (max-width: 767px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    white-space: nowrap;
  }
}




