@charset "utf-8";

/*
 * Editorial Navy — Tistory Theme
 * Magazine-style, typography-first, refined minimal
 */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ===== CSS Variables ===== */
:root {
  --ink:        #0c1220;
  --navy:       #1a2f6e;
  --navy-mid:   #2952b3;
  --navy-pale:  #7b9fd4;
  --teal:       #2ec4b6;
  --teal-light: #7addd7;
  --paper:      #fafaf8;
  --paper-warm: #f4f1ec;
  --rule:       #dddbd5;
  --rule-dark:  #b0aaa0;
  --muted:      #8a8680;
  --caption:    #b0aaa0;

  --font-display: 'DM Serif Display', 'Noto Serif KR', Georgia, serif;
  --font-serif:   'Noto Serif KR', Georgia, serif;
  --font-sans:    Pretendard-Regular, 'Apple SD Gothic Neo', sans-serif;

  --content-width: 740px;
  --wide-width:    1100px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

html, body {
  width: 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: var(--font-sans);
  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; }

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

#acc-nav a {
  display: block;
  position: absolute;
  overflow: hidden;
  width: 1px; height: 1px;
  margin-left: -1px;
  font-size: 0.875em;
  color: var(--navy);
  white-space: nowrap;
}

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

/* ===== Layout ===== */
#wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================
   HEADER — Editorial
   ===================== */
#header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

#header .inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

#header h1 {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0;
  overflow: hidden;
  max-width: 360px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header h1 a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}

#header h1 a:hover { color: var(--teal); }

#header h1 img {
  width: auto;
  height: 26px;
  vertical-align: middle;
}

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

/* ===== GNB ===== */
#gnb { position: relative; }

#gnb ul {
  display: flex;
  align-items: center;
  gap: 0;
}

#gnb ul li {
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#gnb ul li a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

#gnb ul li a::after { content: none !important; }
#gnb ul li a:hover { color: var(--navy); }

/* ===========================
   COVER — 슬라이더
   =========================== */
.cover-slider {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 42%;
  margin: 0;
  width: 100%;
}

.cover-slider .prev,
.cover-slider .next {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 40px; height: 40px;
  margin-top: -20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  text-indent: -999em;
  transition: background 0.2s var(--ease);
}

.cover-slider .prev { left: 32px; }
.cover-slider .next { right: 32px; }

.cover-slider .prev::after {
  content: '←';
  text-indent: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.cover-slider .next::after {
  content: '→';
  text-indent: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.cover-slider .prev:hover,
.cover-slider .next:hover { background: rgba(255,255,255,0.25); }

.cover-slider .paging {
  position: absolute;
  left: 0; bottom: 24px;
  z-index: 20;
  width: 100%;
  text-align: center;
}

.cover-slider .paging button {
  display: inline-block;
  overflow: hidden;
  width: 20px; height: 2px;
  margin: 0 3px;
  background: rgba(255,255,255,0.35);
  text-indent: -999em;
  vertical-align: bottom;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}

.cover-slider .paging .current {
  width: 32px;
  background: #fff;
}

.cover-slider ul {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.cover-slider ul li {
  display: table;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: 50% 50%;
}

.cover-slider ul li .text-box {
  display: table-cell;
  background: linear-gradient(to bottom, rgba(12,18,32,0.25) 0%, rgba(12,18,32,0.65) 100%);
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
}

.cover-slider ul li .text-box .title {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 3.2em;
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
}

.cover-slider ul li .text-box .title em {
  display: block;
  margin-bottom: 16px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.cover-slider ul li .text-box .btn {
  display: inline-block;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 40px;
  color: #fff;
  background: transparent;
  text-decoration: none;
  min-width: auto;
  transition: all 0.2s var(--ease);
}

.cover-slider ul li .text-box .btn:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.cover-slider.slide-on ul li {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
}

/* ===========================
   COVER LIST 1
   =========================== */
.cover-thumbnail-list-1 {
  overflow: hidden;
  max-width: var(--wide-width);
  margin: 64px auto 56px;
  padding: 0 40px;
}

.cover-thumbnail-list-1 h2 {
  float: left;
  width: 22%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.3;
  color: var(--navy);
}

.cover-thumbnail-list-1 h2:after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin-top: 20px;
  background: var(--navy);
}

.cover-thumbnail-list-1 h2 em {
  display: block;
  margin-bottom: 6px;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.38em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-thumbnail-list-1 ul {
  float: left;
  width: 78%;
}

.cover-thumbnail-list-1 ul li {
  float: left;
  width: 33.3333%;
  padding-left: 20px;
  font-size: 0.85em;
  line-height: 1.8;
  color: var(--muted);
  box-sizing: border-box;
}

.cover-thumbnail-list-1 ul li a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.cover-thumbnail-list-1 ul li .thum {
  display: block;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 65%;
}

.cover-thumbnail-list-1 ul li .thum img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.cover-thumbnail-list-1 ul li a:hover .thum img { transform: scale(1.03); }

.cover-thumbnail-list-1 ul li .title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-serif);
  font-size: 1em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.cover-thumbnail-list-1 ul li a:hover .title { color: var(--navy); }

/* ===========================
   COVER SPECIAL CONTENTS
   =========================== */
.cover-special-contents {
  max-width: var(--wide-width);
  margin: 56px auto 64px;
  padding: 0 40px;
}

.cover-special-contents ul li {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 20px;
}

.cover-special-contents ul li .thum {
  display: block;
  float: left;
  width: 50%;
  overflow: hidden;
}

.cover-special-contents ul li .thum img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.cover-special-contents ul li:hover .thum img { transform: scale(1.03); }

.cover-special-contents ul li .box {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  transform: translateY(-50%);
  padding: 0 48px;
  box-sizing: border-box;
}

.cover-special-contents ul li:nth-child(even) .thum { float: right; }
.cover-special-contents ul li:nth-child(even) .box { left: 0; }

.cover-special-contents ul li .category {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-special-contents ul li .title {
  display: block;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65em;
  line-height: 1.3;
  color: var(--navy);
}

.cover-special-contents ul li .title:after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin: 20px auto 0;
  background: var(--rule-dark);
}

.cover-special-contents ul li .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
  font-size: 0.85em;
  line-height: 1.9;
  color: var(--muted);
}

/* ===========================
   COVER WIDE PANEL
   =========================== */
.cover-wide-panel {
  max-width: var(--wide-width);
  margin: 64px auto 80px;
  padding: 0 40px;
}

.cover-wide-panel .bg {
  height: 280px;
  background-position: 50% 50%;
  background-size: cover;
}

.cover-wide-panel .box {
  max-width: 800px;
  margin: -80px auto 0;
  padding: 48px 64px 40px;
  text-align: center;
  background: var(--paper);
  box-shadow: 0 2px 40px rgba(12,18,32,0.1);
  box-sizing: border-box;
}

.cover-wide-panel .category {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-wide-panel h2 {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65em;
  line-height: 1.3;
  color: var(--navy);
}

.cover-wide-panel h2:after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin: 20px auto 0;
  background: var(--rule-dark);
}

.cover-wide-panel p {
  margin-bottom: 28px;
  font-size: 0.875em;
  line-height: 1.9;
  color: var(--muted);
}

/* ===========================
   POST HEADER
   =========================== */
.post-header {
  max-width: var(--wide-width);
  margin: 72px auto 0;
  padding: 0 40px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-dark);
  grid-column: unset;
}

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

.post-header h2 {
  font-family: var(--font-sans);
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.post-header .list-type {
  display: flex;
  gap: 6px;
}

.post-header .list-type button {
  width: 28px; height: 28px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  border-radius: 3px;
  font-size: 13px;
  color: var(--caption);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  overflow: hidden;
  text-indent: -999em;
  position: relative;
}

.post-header .list-type button::after {
  text-indent: 0;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.post-header .list-type .thum::after { content: '⊞'; }
.post-header .list-type .list::after { content: '☰'; }

.post-header .list-type button:hover,
.post-header .list-type button.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  outline: none;
}

/* ===========================
   POST ITEM — 썸네일형 (그리드)
   핵심 수정: display:grid 사용
   =========================== */

/* 그리드 컨테이너 — post-item들을 감싸는 영역 */
#content .inner {
  overflow: hidden;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}


.post-item {
  padding: 32px 0px;
  border-bottom: 1px solid var(--rule);
  box-sizing: border-box;
  min-width: 0; /* grid에서 overflow 방지 */
}

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

/* 썸네일 — 비율 고정 박스 */
.post-item .thum {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 70%; /* 비율 고정 */
  height: 0;
  margin-bottom: 14px;
  background: var(--paper-warm);
}

/* 이미지 — 박스 꽉 채우기 */
.post-item .thum img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.5s var(--ease);
}

.post-item a:hover .thum img { transform: scale(1.04); }

.post-item a {
  display: block;
  text-decoration: none;
}

/* 제목 */
.post-item .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--ink);
  white-space: normal;
  transition: color 0.2s var(--ease);
}

/* 요약 */
.post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.8em;
  line-height: 1.7;
  color: var(--caption);
  transition: color 0.2s var(--ease);
}

.post-item .excerpt.protected:before {
  content: "";
  display: inline-block;
  width: 9px; height: 13px;
  margin-right: 8px;
  background: url(./images/ico_package.png) no-repeat -100px -350px;
  vertical-align: middle;
}

/* 더보기 */
.post-item .more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--navy-pale);
  transition: all 0.2s var(--ease);
}

.post-item .more:after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.post-item a:hover .title { color: var(--navy); }
.post-item a:hover .excerpt { color: var(--muted); }
.post-item a:hover .more { color: var(--teal); gap: 8px; }

/* ===========================
   COVER THUMBNAIL LIST 2
   =========================== */
.cover-thumbnail-list-2 {
  max-width: var(--wide-width);
  margin: 0 auto 40px;
  padding: 0 40px;
  box-sizing: border-box;
}

.cover-thumbnail-list-2 h2 {
  margin: 0 0 28px;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  text-align: center;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 44px;
  color: var(--muted);
}

.cover-thumbnail-list-2 ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
}

.cover-thumbnail-list-2 ul li {
  min-width: 0;
  box-sizing: border-box;
}

.cover-thumbnail-list-2 ul li .thum {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 70%;
  margin-bottom: 14px;
  background: var(--paper-warm);
}

.cover-thumbnail-list-2 ul li .thum img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.5s var(--ease);
}

.cover-thumbnail-list-2 ul li a:hover .thum img { transform: scale(1.04); }

.cover-thumbnail-list-2 ul li a {
  display: block;
  text-decoration: none;
}

.cover-thumbnail-list-2 ul li .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--ink);
  white-space: normal;
  transition: color 0.2s var(--ease);
}

.cover-thumbnail-list-2 ul li .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.8em;
  line-height: 1.7;
  color: var(--caption);
}

.cover-thumbnail-list-2 ul li .more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--navy-pale);
  transition: all 0.2s var(--ease);
}

.cover-thumbnail-list-2 ul li .more:after { content: "→"; }
.cover-thumbnail-list-2 ul li a:hover .title { color: var(--navy); }
.cover-thumbnail-list-2 ul li a:hover .more { color: var(--teal); gap: 8px; }

/* ===========================
   POST ITEM — 리스트형
   =========================== */
.post-type-text #content .inner {
  display: block;
}

.post-type-text .post-item {
  float: none;
  width: auto;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0;
  border-bottom: none;
}

.post-type-text .post-item + .post-item {
  border-top: 1px solid var(--rule);
}

.post-type-text .post-item a {
  display: block;
  width: 100%;
  padding: 36px 0;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}

.post-type-text .post-item .thum {
  float: right;
  width: 160px;
  height: 112px;
  margin: 4px 0 8px 28px;
  padding-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-warm);
}

.post-type-text .post-item .thum img {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  top: auto !important;
  left: auto !important;
}

.post-type-text .post-item .title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  width: auto;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45em;
  line-height: 1.3;
  color: var(--navy);
  white-space: normal;
  transition: color 0.2s var(--ease);
}

.post-type-text .post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: auto;
  height: auto;
  margin-bottom: 12px;
  font-size: 0.875em;
  line-height: 1.75;
  color: var(--muted);
}

.post-type-text .post-item .more {
  font-size: 0.72em;
  letter-spacing: 0.1em;
}

.post-type-text .post-item a:hover .title { color: var(--teal); }
.post-type-text .post-item a:hover .excerpt { color: var(--ink); }
.post-type-text .post-item a:hover .more { color: var(--teal); gap: 10px; }

/* ===========================
   HGROUP
   =========================== */
.hgroup {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding: 80px 40px 32px;
  border-bottom: 1px solid var(--rule-dark);
  text-align: center;
}

.hgroup .category {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hgroup h1 {
  font-family: var(--font-display);
  font-size: 2.2em;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.hgroup .post-meta {
  margin: 20px 0 0;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--caption);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hgroup .post-meta a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.hgroup .post-meta a:hover { color: var(--navy); }

.hgroup .post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hgroup .post-meta span:before {
  content: "";
  display: inline-block;
  width: 1px; height: 9px;
  background: var(--rule-dark);
  vertical-align: middle;
}

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

.hgroup.guest, .hgroup.tag {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding: 64px 40px 0;
  border-bottom: 1px solid var(--rule-dark);
  text-align: left;
}

.hgroup.guest h2, .hgroup.tag h2 {
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 40px;
  color: var(--muted);
}

/* ===========================
   BUTTONS
   =========================== */
.btn, a.btn {
  display: inline-block;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--navy);
  text-decoration: none;
  text-align: center;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 40px;
  color: var(--navy);
  transition: all 0.2s var(--ease);
  min-width: 100px;
}

.btn:hover { background: var(--navy); color: #fff; }

/* ===========================
   POST BTN
   =========================== */
.post-btn {
  max-width: var(--content-width);
  margin: 64px auto 20px;
  padding: 0 40px;
  display: flex;
  gap: 6px;
}

.post-btn button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--caption);
  font-size: 14px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-indent: -999em;
  position: relative;
  overflow: hidden;
}

.post-btn button::after {
  text-indent: 0;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.post-btn .share::after { content: '↗'; }
.post-btn .report::after { content: '⚑'; }

.post-btn button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===========================
   ANOTHER CATEGORY
   =========================== */
.another-category {
  max-width: var(--content-width);
  margin: 20px auto 40px;
  padding: 32px 40px 0;
  border-top: 1px solid var(--rule-dark);
}

.another-category h4 {
  margin-bottom: 12px;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.another-category table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  color: var(--caption);
}

.another-category table th {
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}

.another-category table th a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.another-category table th a:hover { color: var(--navy); }
.another-category table th span { font-size: 0.85em; color: var(--caption); }

.another-category td {
  width: 70px;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8em;
  color: var(--caption);
  text-align: right;
}

.another_category table { border: none !important; }
.another_category td { border: none !important; }

/* ===========================
   TAGS
   =========================== */
.tags {
  position: relative;
  overflow: hidden;
  max-width: var(--content-width);
  margin: 32px auto;
  padding: 0 40px;
}

.tags h2 {
  margin-bottom: 14px;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.tags .items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags .items a {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--rule-dark);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.78em;
  line-height: 1.9;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.tags .items a::before { content: "#"; margin-right: 1px; color: var(--caption); }

.tags .items a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.tags .items a:hover::before { color: rgba(255,255,255,0.6); }

#content .tags .items { margin: 0; padding: 0; }

/* ===========================
   RELATED ARTICLES
   =========================== */
.related-articles {
  overflow: hidden;
  max-width: var(--wide-width);
  margin: 48px auto 80px;
  padding: 0 40px;
}

.related-articles h2 {
  margin-bottom: 28px;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 44px;
  color: var(--muted);
}

.related-articles h2 strong {
  font-weight: 600;
  color: var(--ink);
}

.related-articles ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
}

.related-articles ul li {
  position: relative;
  min-width: 0;
}

.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: 70%;
  background: var(--paper-warm);
}

.related-articles ul li .thum img {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.related-articles ul li a:hover .thum img { transform: scale(1.04); }

.related-articles ul li .title {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 20;
  overflow: hidden;
  width: 100%;
  padding: 0 12px;
  background: linear-gradient(to top, rgba(12,18,32,0.85), rgba(12,18,32,0));
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 44px;
  color: #fff;
  box-sizing: border-box;
}

/* ===========================
   COMMENTS
   =========================== */
.comments {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--rule);
}

.comments h2 {
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 24px;
}

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

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

.comments .comment-list ul li {
  padding: 28px 0 24px;
  border-top: 1px solid var(--rule);
  position: relative;
  min-height: 48px;
}

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

.comments .comment-list ul li ul li {
  padding: 24px 0 0 60px;
  border-top: 0;
}

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

.comments .comment-list ul li ul li .author-meta {
  top: 24px;
  left: 60px;
}

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

.comments .comment-list ul li .author-meta span { display: inline-block; }

.comments .comment-list ul li .author-meta a {
  text-decoration: none;
  color: var(--ink);
}

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

.comments .comment-list ul li .author-meta .date {
  float: left;
  margin-left: 12px;
  font-size: 0.75em;
  color: var(--caption);
  line-height: 20px;
}

.comments .comment-list ul li .author-meta .date:before,
.comments .comment-list ul li .author-meta .date a:before {
  content: "";
  display: inline-block;
  width: 1px; height: 9px;
  margin-right: 12px;
  background: var(--rule-dark);
}

.comments .comment-list ul li .author-meta .date a { margin-left: 10px; }

.comments .comment-list ul li .control {
  position: absolute;
  top: 32px; right: 0;
}

.comments .comment-list ul li ul li .control { top: 28px; }

.comments .comment-list ul li .control a {
  margin: 0 3px;
  text-decoration: none;
  font-size: 12px;
  color: var(--caption);
  transition: color 0.2s var(--ease);
}

.comments .comment-list ul li .control a:hover { color: var(--navy); }

.comments .comment-list ul li p {
  position: relative;
  margin: 24px 0 0 60px;
  font-size: 0.9em;
  line-height: 1.75;
  color: var(--muted);
}

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

.comments .comment-form input[type=text],
.comments .comment-form input[type=password],
.comments .comment-form textarea {
  border: 1px solid var(--rule-dark);
  font-size: 0.875em;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
}

.comments .comment-form input[type=text]:focus,
.comments .comment-form input[type=password]:focus,
.comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

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

.comments .comment-form input::-webkit-input-placeholder,
.comments .comment-form textarea::-webkit-input-placeholder { color: var(--caption); }

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

.comments .comment-form .field .secret { float: right; }
.comments .comment-form .field .secret input { display: none; }

.comments .comment-form .field .secret label {
  font-size: 0.85em;
  line-height: 40px;
  color: var(--muted);
  cursor: pointer;
}

.comments .comment-form .field .secret label:before {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 8px;
  border: 1px solid var(--rule-dark);
  vertical-align: middle;
  background: #fff;
  transition: all 0.2s var(--ease);
}

.comments .comment-form .field .secret input[type=checkbox]:checked+label:before {
  background: var(--navy);
  border-color: var(--navy);
}

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

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  max-width: var(--content-width);
  margin: 48px auto 100px;
  padding: 0 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  text-decoration: none;
  font-size: 0.85em;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

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

.pagination .selected {
  font-weight: 700;
  color: var(--navy) !important;
  border-bottom: 2px solid var(--navy);
}

.pagination .prev,
.pagination .next {
  width: 34px; height: 34px;
  border: 1px solid var(--rule-dark);
  color: var(--muted);
  font-size: 15px;
}

.pagination .prev::after { content: '←'; }
.pagination .next::after { content: '→'; }

.pagination .prev:hover,
.pagination .next:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

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

.pagination .view-more {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 1px solid var(--rule-dark);
  text-decoration: none;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.pagination .view-more:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===========================
   ENTRY CONTENT
   =========================== */
.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  /* text-align: center;  ← 이 줄 삭제 */
}

.entry-content h1 {
  clear: both;
  margin: 40px 0 20px;
  font-family: var(--font-display);
  font-size: 1.65em;
  font-style: italic;
  line-height: 1.3;
  color: var(--navy);
}

.entry-content h2 {
  clear: both;
  margin: 40px 0 18px;
  font-family: var(--font-serif);
  font-size: 1.4em;
  line-height: 1.4;
  color: var(--ink);
}

.entry-content h3 {
  clear: both;
  margin: 32px 0 14px;
  font-size: 1.15em;
  line-height: 1.5;
  color: var(--ink);
}

.entry-content h4 {
  clear: both;
  margin: 24px 0 12px;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  color: var(--ink);
}

.entry-content p {
  word-break: break-all;
  margin-bottom: 1.4em;
  line-height: 1.9;
  color: var(--ink);
}

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

.entry-content hr {
  display: block;
  height: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  margin: 36px 0;
}

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

.entry-content pre code.hljs {
  padding: 20px 24px;
  border-left: 3px solid var(--navy);
}

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

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

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

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

.entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--teal); }

.entry-content img.alignleft { float: left; margin: 0 24px 24px 0; }
.entry-content img.aligncenter { display: block; margin: 0 auto 24px; }
.entry-content img.alignright { float: right; margin: 0 0 24px 24px; }

.entry-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--navy);
}

.entry-content blockquote p {
  margin: 14px 0 0;
  color: var(--muted);
  font-style: italic;
}

.entry-content blockquote p:first-child { margin-top: 0; }

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

.entry-content table thead th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--navy);
  text-align: left;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85em;
}

.entry-content input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule-dark);
  font-size: 0.875em;
  color: var(--ink);
  box-sizing: border-box;
  vertical-align: middle;
}

.entry-content .protected_form {
  margin-bottom: 40px;
  padding: 100px 0 160px;
  border-bottom: 1px solid var(--rule-dark);
  text-align: center;
}

/* ===========================
   ASIDE
   =========================== */
#aside {
  margin-top: 0;
  padding: 56px 40px 48px;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}

#aside .inner {
  overflow: hidden;
  max-width: var(--wide-width);
  margin: 0 auto;
  display: block; /* grid 해제 */
}

#aside h2 {
  margin-bottom: 14px;
  font-size: 0.65em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-dark);
}

#aside .sidebar-1 {
  float: left;
  width: 25%;
  padding-right: 40px;
  box-sizing: border-box;
}

#aside .sidebar-2 {
  float: left;
  width: 50%;
  padding: 0 20px;
  margin: 0 0 40px;
  box-sizing: border-box;
}

#aside .sidebar-3 {
  float: left;
  width: 25%;
  padding-left: 40px;
  box-sizing: border-box;
}

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

#aside .posts li a {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 8px 0 8px 12px;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.82em;
  line-height: 1.6;
  color: var(--muted);
  transition: all 0.2s var(--ease);
  position: relative;
}

#aside .posts li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 0;
  background: var(--navy);
  transition: height 0.2s var(--ease);
}

#aside .posts li a:hover { color: var(--navy); padding-left: 16px; }
#aside .posts li a:hover::before { height: 55%; }

#aside .tags { margin: 0; }
#aside .tags h2 { margin-bottom: 14px; }

#aside .tags .items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

#aside .tags .items a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--rule-dark);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.75em;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

#aside .tags .items a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

#aside .tags .more {
  text-decoration: none;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-pale);
  transition: color 0.2s var(--ease);
}

#aside .tags .more:hover { color: var(--navy); }
#aside .tags .more:after { content: " →"; }

#aside .search { margin-bottom: 0; }

#aside .search fieldset {
  position: relative;
  margin-top: 14px;
  border: none;
  display: flex;
}

#aside .search input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rule-dark);
  font-size: 0.82em;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
  box-sizing: border-box;
}

#aside .search input:focus {
  outline: none;
  border-color: var(--navy);
}

#aside .search input::-webkit-input-placeholder { color: var(--caption); }

#aside .search button {
  width: 38px; height: 38px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
  text-indent: 0;
  font-size: 15px;
}

#aside .search button::after { content: '→'; }
#aside .search button:hover { background: var(--navy-mid); }

#aside .count { margin: 0; }

#aside .count .total {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 2em;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -1px;
}

#aside .count ul li {
  overflow: hidden;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-size: 0.82em;
  line-height: 1.8;
  color: var(--caption);
}

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

/* ===========================
   FOOTER
   =========================== */
#footer {
  padding: 24px 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
}

#footer .copyright {
  text-align: center;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
}

#footer a {
  text-decoration: none;
  color: rgba(163, 41, 41, 0.4);
  transition: color 0.2s var(--ease);
}

#footer a:hover { color: var(--teal); }

#footer .admin:before {
  content: "";
  display: inline-block;
  width: 1px; height: 10px;
  margin: 1px 10px 2px;
  background: rgba(255,255,255,0.12);
  vertical-align: middle;
}

/* ===========================
   ETC
   =========================== */
#dimmed {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  width: 100%; height: 100%;
  background: rgba(12,18,32,0.5);
  backdrop-filter: blur(2px);
}

#mediaLogNest {
  max-width: var(--wide-width);
  margin: 0 auto;
}

/* ===========================
   ARTICLE VIEW
   =========================== */
#article-view {
  padding: 8px 40px;
  word-wrap: break-word;
  color: var(--ink);
  min-height: 370px;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  font-size: 1.01em;
  line-height: 1.9;
}

.contents_style > * { margin: 20px 0 0 0; }

#article-view h2[data-ke-size] {
  font-family: var(--font-serif);
  font-size: 1.5em;
  line-height: 1.4;
  color: var(--ink);
}

#article-view h3[data-ke-size] { font-size: 1.3em; line-height: 1.5; }
#article-view h4[data-ke-size] { font-size: 1.15em; line-height: 1.55; }
#article-view p[data-ke-size='size18'] { font-size: 1.12em; line-height: 1.9; }
#article-view p[data-ke-size='size16'] { line-height: 1.9; }
#article-view p[data-ke-size='size14'] { font-size: 0.87em; line-height: 1.8; }

#article-view h2, #article-view h3, #article-view h4 {
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 1.2em 0 16px;
}

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

#article-view a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

#article-view a:hover { color: var(--teal); }

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

#article-view blockquote[data-ke-style='style2'] {
  border-left: 2px solid var(--navy);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.8;
}

#article-view blockquote[data-ke-style='style3'] {
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: 20px 24px;
  color: var(--muted);
  line-height: 1.8;
}

#article-view blockquote {
  display: block;
  margin: 20px auto 0;
}

#article-view pre code.hljs {
  font-size: 13px;
  padding: 20px 24px;
  font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  line-height: 1.75;
}

#article-view ul li, #article-view ol li {
  margin: 0 0 4px 24px;
  line-height: 1.85;
}

#article-view ul, #article-view ol {
  margin: 16px auto 28px;
  padding: 0 0 0 12px;
}

#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 { max-width: 100%; clear: both; }
#article-view figure img { display: inline-block; }

#article-view figure figcaption {
  font-size: 13px;
  color: var(--caption);
  padding-top: 10px;
  text-align: center;
}

#article-view figure.imageblock { display: table; position: relative; }
#article-view figure.imageblock.alignCenter { margin: 20px auto 0; text-align: center; }
#article-view figure.imageblock.alignRight { text-align: right; margin-left: auto; }
#article-view figure.imageblock.widthContent { display: block; }
#article-view figure.imageblock.widthContent img { width: 100%; }
#article-view figure.imageblock img { display: inline-block; max-width: 100%; margin: 0; height: auto; }

#article-view table { margin-bottom: 0; border-color: var(--rule); }
#article-view table tbody tr { box-sizing: content-box; }
#article-view table td { word-break: break-word; padding: 8px; font-size: 15px; line-height: normal; }

#article-view div[data-ke-type='moreLess'] {
  background: var(--paper-warm);
  padding: 20px;
  margin: 20px 0;
  border: 1px dashed var(--rule-dark);
  color: var(--ink);
}

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

#article-view div[data-ke-type='moreLess'] .btn-toggle-moreless {
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

#article-view figure[data-ke-type='opengraph'] a {
  box-shadow: 0 1px 4px rgba(12,18,32,0.07);
  border: 1px solid var(--rule);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

#article-view figure[data-ke-type='opengraph'] p.og-title {
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font-serif);
  padding-bottom: 10px;
  max-width: 467px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
}

#article-view figure[data-ke-type='opengraph'] .og-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 467px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  margin: 0;
}

#article-view figure[data-ke-type='opengraph'] div.og-image {
  border-right: 1px solid var(--rule);
  width: 200px; height: 200px;
  background-size: cover;
  background-position: center;
}

#article-view figure.fileblock {
  width: 470px; height: 73px;
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
  border: 1px solid var(--rule);
}

#article-view figure.fileblock .filename { color: var(--ink); font-size: 14px; }
#article-view figure.fileblock .size { color: var(--caption); font-size: 12px; }

hr[data-ke-style], #article-view hr[data-ke-style] {
  border: none;
  font-size: 0; line-height: 0;
  margin: 20px auto;
  background: url(https://t1.daumcdn.net/keditor/dist/0.7.21/image/divider-line.svg);
  background-size: 200px 420px;
  cursor: default !important;
}

hr[data-ke-style='style1'], #article-view hr[data-ke-style='style1'] { background-position: center 0; width: 64px; height: 4px; padding: 20px; }
hr[data-ke-style='style2'], #article-view hr[data-ke-style='style2'] { background-position: center -48px; width: 64px; height: 3px; padding: 20px; }
hr[data-ke-style='style3'], #article-view hr[data-ke-style='style3'] { background-position: center -96px; width: 64px; height: 8px; padding: 18px 20px; }
hr[data-ke-style='style4'], #article-view hr[data-ke-style='style4'] { background-position: center -144px; width: 2px; height: 60px; padding: 0 51px; }
hr[data-ke-style='style5'], #article-view hr[data-ke-style='style5'] { background-position: center -208px; background-repeat: repeat-x; height: 2px; padding: 21px 0; }
hr[data-ke-style='style6'], #article-view hr[data-ke-style='style6'] { background-position: center -256px; background-repeat: repeat-x; height: 2px; padding: 21px 0; }
hr[data-ke-style='style7'], #article-view hr[data-ke-style='style7'] { background-position: center -304px; width: 200px; height: 19px; padding: 18px 20px 17px; }
hr[data-ke-style='style8'], #article-view hr[data-ke-style='style8'] { background-position: center -362px; width: 200px; height: 19px; padding: 18px 20px 17px; }

/* tt-comment */
.tt-comment-cont .tt-btn_register {
  width: auto;
  min-width: 100px;
  height: 38px;
  background: transparent;
  color: var(--navy);
  border-radius: 0;
  border-color: var(--navy);
  font-size: 0.78em;
  letter-spacing: 0.1em;
}

.tt-comment-cont .tt-btn_register:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tt-comment-cont .tt-wrap-cmt .tt_txt_g { color: var(--navy); }
.tt-comment-cont .tt-link-comment .tt_num_g { color: var(--navy); }

.revenue_unit_wrap.position_list {
  max-width: var(--content-width);
  margin: 24px auto;
}

.guest .tt-comment-cont { padding-top: 32px; padding-bottom: 32px; }

/* ===========================
   LAYOUT FLOAT
   =========================== */
.layout-float #wrap { padding-left: 220px; }

.layout-float #header {
  float: left;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 220px; height: 100%;
  border-bottom: none;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  overflow-y: auto;
}

.layout-float #header .inner {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  padding: 48px 28px 24px;
}

.layout-float #header::after { display: none; }

.layout-float #header h1 {
  font-size: 1.1em;
  margin-bottom: 40px;
  white-space: normal;
  max-width: 100%;
}

.layout-float #gnb { width: 100%; }
.layout-float #gnb ul { flex-direction: column; gap: 0; }

.layout-float #gnb ul li {
  width: 100%;
  font-size: 0.72em;
  border-bottom: 1px solid var(--rule);
}

.layout-float #gnb ul li a { padding: 12px 0; display: block; }
.layout-float #gnb ul li a:hover { color: var(--navy); }

.layout-float #content { max-width: none; padding: 48px 0 0 32px; }
.layout-float #aside { padding-left: 32px; }
.layout-float #aside .inner { max-width: none; margin: 0; }
.layout-float #footer .copyright { padding-left: 32px; }
.layout-float .cover-slider { padding-bottom: 53.3333%; }
.layout-float #header .mobile-menu { display: none; }

/* ===========================
   RETINA
   =========================== */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
  .post-item .thum:before,
  .cover-thumbnail-list-2 ul li .thum:before,
  .related-articles ul li .thum:before {
    background-image: url(./images/ico_package_2x.png);
    background-size: 200px auto;
  }
}

/* ===========================
   TABLET 1199px
   =========================== */
@media screen and (max-width: 1199px) {
  #header .inner,
  #aside,
  #content .inner,
  .cover-thumbnail-list-1,
  .cover-special-contents,
  .cover-thumbnail-list-2,
  .pagination,
  .hgroup,
  .tags,
  .comments,
  .entry-content,
  .post-header,
  .post-btn,
  .another-category,
  .related-articles {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cover-wide-panel { padding: 0 32px; }
  .cover-wide-panel .box { margin-left: 0; margin-right: 0; }

  #aside .sidebar-1 { width: 33.3333%; padding-right: 20px; padding-left: 0; }
  #aside .sidebar-2 { width: 33.3333%; padding: 0 10px; }
  #aside .sidebar-3 { width: 33.3333%; padding-left: 20px; }

  .layout-float #header,
  .layout-float .cover-thumbnail-list-1,
  .layout-float .cover-special-contents,
  .layout-float .cover-wide-panel,
  .layout-float .cover-thumbnail-list-2,
  .layout-float .pagination,
  .layout-float #content .inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===========================
   TABLET 1023px
   =========================== */
@media screen and (max-width: 1023px) {
  #header h1 { padding: 0 52px 0 0; white-space: nowrap; }

  #header .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 50%; right: 16px;
    width: 38px; height: 38px;
    margin-top: -19px;
    cursor: pointer;
    outline: none;
    border-radius: 3px;
    transition: background 0.2s var(--ease);
  }

  #header .mobile-menu:hover { background: var(--paper-warm); }

  #header .mobile-menu span,
  #header .mobile-menu:before,
  #header .mobile-menu:after {
    display: block;
    position: relative;
    width: 18px; height: 1.5px;
    top: auto; left: auto; margin: 0;
    background: var(--navy);
    transition: transform 0.25s var(--ease);
    border-radius: 1px;
  }

  #header .mobile-menu:before { content: ""; }
  #header .mobile-menu:after { content: ""; }

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

  #header .mobile-menu.on span { display: none; }
  #header .mobile-menu.on:before { transform: translateY(6.5px) rotate(45deg); }
  #header .mobile-menu.on:after { transform: translateY(-6.5px) rotate(-45deg); }

  #gnb {
    position: fixed;
    top: 0; right: -300px;
    z-index: 600;
    width: 280px; height: 100%;
    padding-top: 64px;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    box-sizing: border-box;
    transition: right 0.3s var(--ease);
    box-shadow: -4px 0 24px rgba(12,18,32,0.08);
  }

  #gnb ul {
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    height: 100%;
  }

  #gnb ul li {
    float: none; padding: 0;
    border-top: 1px solid var(--rule);
    font-size: 0.85em;
    width: 100%;
  }

  #gnb ul li a { padding: 16px 28px; border-radius: 0; color: var(--ink); }
  #gnb ul li a:hover { background: var(--paper-warm); color: var(--navy); padding-left: 34px; }
  #gnb.on { right: 0; }

  #aside { margin-top: 40px; }

  #aside .sidebar-1 { width: 50%; padding-right: 16px; padding-left: 0; }
  #aside .sidebar-2 { width: 50%; padding: 0 0 0 16px; margin: 0; }
  #aside .sidebar-3 { clear: both; float: none; width: auto; padding: 32px 0 0; }

  #aside .search { float: left; width: 50%; padding-right: 16px; box-sizing: border-box; }
  #aside .count { float: right; width: 50%; padding-left: 16px; margin: 0; box-sizing: border-box; }

  .cover-slider { padding-bottom: 42%; }
  .cover-slider ul li .text-box .title { font-size: 2.2em; }

  #content .inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .cover-thumbnail-list-2 ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-articles ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-float #wrap { padding-left: 180px; }
  .layout-float #header { width: 180px; }
  .layout-float #header .mobile-menu { display: none; }
}

/* ===========================
   MOBILE 767px
   =========================== */
@media screen and (max-width: 767px) {
  #header .inner,
  #content .inner,
  .cover-thumbnail-list-1,
  .cover-thumbnail-list-2,
  .entry-content,
  .tags,
  .comments,
  .hgroup,
  .post-header,
  .post-btn,
  .another-category,
  .pagination,
  .related-articles {
    padding-left: 20px;
    padding-right: 20px;
  }

  #header h1 { font-size: 1em; padding: 0 48px 0 0; }
  #header .mobile-menu { right: 6px; }

  #aside { padding: 40px 20px; }

  #aside .sidebar-1, #aside .sidebar-2, #aside .sidebar-3,
  #aside .search, #aside .count {
    float: none; width: auto; padding: 0; margin: 0 0 32px;
  }

  .cover-slider { padding-bottom: 65%; }
  .cover-slider ul li .text-box .title { font-size: 1.6em; padding: 0 20px; }

  .cover-thumbnail-list-1 h2 { float: none; width: auto; margin-bottom: 20px; text-align: left; }
  .cover-thumbnail-list-1 h2:after { margin: 16px 0 0; }
  .cover-thumbnail-list-1 ul { float: none; width: auto; }
  .cover-thumbnail-list-1 ul li { float: none; width: auto; padding: 0; margin-bottom: 14px; }

  .cover-special-contents ul li .thum,
  .cover-special-contents ul li:nth-child(even) .thum { float: none; width: auto; }

  .cover-special-contents ul li .box {
    position: relative; left: auto; top: auto;
    width: 100%; transform: none; padding: 24px 20px;
  }

  .cover-wide-panel { padding: 0 20px; }
  .cover-wide-panel .box { margin: -20px 0 0; padding: 32px 20px 24px; }

  #content .inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .cover-thumbnail-list-2 ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .related-articles ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .post-type-text .post-item { max-width: 100%; }
  .post-type-text .post-item .thum { width: 110px; height: 80px; margin-left: 16px; }
  .post-type-text .post-item .title { font-size: 1.15em; }

  .hgroup { padding: 48px 20px 24px; text-align: left; }
  .hgroup h1 { font-size: 1.65em; }
  .hgroup .post-meta { justify-content: flex-start; }
  .hgroup.guest, .hgroup.tag { margin: 0 20px 32px; padding-left: 0; padding-right: 0; }

  #content .tags.section { padding: 0 20px; }

  .comments .comment-list ul li p { margin: 16px 0 0; }

  .comments .comment-form input[type=text],
  .comments .comment-form input[type=password] {
    display: block; width: 100%; margin-bottom: 10px;
  }

  .layout-float #wrap { padding: 0; }

  .layout-float #header {
    float: none; position: sticky; top: 0;
    width: 100%; height: auto;
    border-right: none; border-bottom: 1px solid var(--rule);
  }

  .layout-float #header .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
  }

  .layout-float #header h1 {
    font-size: 1em; margin-bottom: 0;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 200px;
  }

  .layout-float #header .mobile-menu {
    display: flex; position: relative;
    top: auto; right: auto; margin: 0;
  }

  .layout-float #gnb {
    position: fixed;
    top: 0; right: -300px;
    z-index: 600;
    width: 280px; height: 100%;
    padding: 64px 0 0;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    box-sizing: border-box;
    transition: right 0.3s var(--ease);
  }

  .layout-float #gnb ul { flex-direction: column; }
  .layout-float #gnb ul li { float: none; width: 100%; border-bottom: none; font-size: 0.9em; text-align: left; }
  .layout-float #gnb.on { right: 0; }

  .layout-float #content { padding: 0; }
  .layout-float #aside { padding: 40px 20px; }

  .layout-float #aside .sidebar-1, .layout-float #aside .sidebar-2,
  .layout-float #aside .sidebar-3, .layout-float #aside .search,
  .layout-float #aside .count {
    float: none; width: auto; padding: 0; margin-bottom: 32px;
  }
}

/* ===========================
   MISC
   =========================== */
.box-timeline-content { word-break: break-all; }

.btn_more, .btn_less {
  border: 0;
  background: transparent;
  display: block;
  height: 21px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 13px;
  color: var(--caption);
  position: relative;
  width: 100%;
  text-align: left;
}