@charset "utf-8";
.container_postbtn{display: none;}

/* ═══════════════════════════════════════════════════
   Font
═══════════════════════════════════════════════════ */
@font-face {
  font-family: 'Freesentation';
  src: url('./images/FreesentationVF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --mk-page-bg: #F0F0F2;
  --mk-page-bg-image: none;
  --mk-surface-bg: #FFFFFF;
  --mk-text: #111111;
  --mk-muted: #999999;
  --mk-border: #111111;
  --mk-soft-bg: #E5E5E5;
  --mk-accent: #111111;
}

/* ═══════════════════════════════════════════════════
   Reset & Base
═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Freesentation' !important;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 40px;
  min-height: 100%;
  background-color: var(--mk-page-bg);
  background-image: var(--mk-page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--mk-text);
  font-family: 'Freesentation' !important;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   Shell Layout
═══════════════════════════════════════════════════ */
.mk-shell {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 520px;
  height: calc(100vh - 200px);
  /* 24px padding top + bottom */
  background: var(--mk-surface-bg);
  border: 1px solid var(--mk-border);
  overflow: hidden;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Sidebar
═══════════════════════════════════════════════════ */
.mk-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--mk-border);
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.mk-sidebar::-webkit-scrollbar {
  display: none;
}

.mk-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

/* Profile */
.mk-profile {
  flex-shrink: 0;
  border-bottom: 1px solid var(--mk-border);
}

.mk-profile-img-wrap {
  position: relative;
}

.mk-profile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--mk-soft-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mk-menu-toggle {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--mk-accent);
  cursor: pointer;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mk-menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.mk-menu-toggle:focus-visible {
  outline: 1px solid var(--mk-border);
  outline-offset: 4px;
}

.mk-nickname {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}

.mk-nickname:hover {
  opacity: 0.6;
}

/* Category Nav */
.mk-cat-nav {
  flex: 1;
  padding: 0 0 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mk-cat-nav::-webkit-scrollbar {
  display: none;
}

/* Tistory category list output */
.mk-cat-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── 모든 depth li: flex row (링크 + 토글 버튼 한 묶음) ── */
.mk-cat-nav li {
  display: flex;
  flex-wrap: wrap;
  /* 자식 ul은 다음 줄로 */
  align-items: center;
}

/* 최상위 항목 */
.mk-cat-nav>ul>li {
  padding: 2px 20px;
  margin-top: 20px;
}

.mk-cat-nav>ul>li>a {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-text);
  letter-spacing: -0.02em;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.15s;
}

.mk-cat-nav>ul>li>a:hover {
  text-decoration: underline;
}

/* 하위 항목 (depth 1+) */
.mk-cat-nav ul ul {
  display: none;
  flex-basis: 100%;
  /* flex-wrap 덕분에 li 아래 줄 전체 차지 */
  padding: 4px 0 2px 12px;
}

.mk-cat-has-sub.mk-cat-expanded>ul {
  display: flex;
  flex-direction: column;
}

.mk-cat-nav ul ul li {
  padding: 2px 0 2px 0;
}

.mk-cat-nav ul ul li>a {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--mk-muted);
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.mk-cat-nav ul ul li>a:hover {
  color: var(--mk-text);
  text-decoration: underline;
}

/* depth 2+ — 한 단계 더 들여쓰기, 조금 더 연하게 */
.mk-cat-nav ul ul ul {
  padding-left: 10px;
}

.mk-cat-nav ul ul ul li>a {
  font-size: 13px;
  color: color-mix(in srgb, var(--mk-muted) 70%, white);
}

.mk-cat-nav ul ul ul li>a:hover {
  color: var(--mk-text);
}

/* ── 토글 버튼: static, flex-shrink 0 ── */
.mk-cat-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--mk-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mk-cat-toggle:hover {
  color: var(--mk-text);
}

.mk-cat-toggle svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.mk-cat-has-sub.mk-cat-expanded>.mk-cat-toggle svg {
  transform: rotate(180deg);
}

/* Sidebar Footer */
.mk-sidebar-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--mk-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-top: auto;
}

.mk-foot-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--mk-text);
  transition: opacity 0.15s;
}

.mk-foot-link:hover {
  text-decoration: underline;
}

.mk-cat-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px 24px;
  background: #fff;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mk-cat-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mk-cat-overlay-open {
  overflow: hidden;
}

.mk-cat-overlay-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mk-cat-overlay-panel::-webkit-scrollbar {
  display: none;
}

.mk-cat-overlay-panel {
  scrollbar-width: none;
}

.mk-cat-overlay-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.mk-cat-overlay-links .mk-foot-link {
  display: inline-block;
  text-decoration: none;
}

.mk-cat-overlay-nav {
  padding: 0;
}

.mk-cat-overlay-nav>ul>li {
  padding-left: 0;
  padding-right: 0;
}

.mk-cat-overlay-nav>ul>li>a {
  font-size: 16px;
}

.mk-cat-overlay-nav ul ul {
  padding-top: 6px;
}

.mk-copyright-link {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  font-size: 10px;
  font-weight: 400;
  color: var(--mk-muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}

.mk-copyright-link:hover {
  color: var(--mk-text);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   Main Content
═══════════════════════════════════════════════════ */
.mk-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 20px;
}

.mk-main::-webkit-scrollbar {
  display: none;
}

/* ─── Section base ─── */
.mk-section {
  padding: 32px;
}

.mk-section-heading {
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mk-border);
}

.mk-section-heading.compact {
  margin-bottom: 16px;
}

.mk-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   Cover: Intro
═══════════════════════════════════════════════════ */
.mk-cover-intro {
  padding: 16px 0;
}

.mk-intro-img-link {
  display: block;
}

.mk-intro-img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: center;
  padding: 0 32px;
}

.mk-intro-text {
  padding: 20px 32px 0;
}

.mk-intro-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mk-intro-body {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--mk-text) 78%, white);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   Cover: Recent Grid (2~3-column grid)
═══════════════════════════════════════════════════ */
.mk-cover-recent {
  padding: 16px 32px 16px 32px;
}

.mk-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
  gap: 20px;
  padding-top: 24px;
}

.mk-recent-card {
  display: block;
  cursor: pointer;
}

.mk-recent-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--mk-soft-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mk-recent-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.mk-recent-card:hover .mk-recent-thumb {
  transform: scale(1.04);
}

.mk-recent-thumb:not([src]),
.mk-recent-thumb[src=""] {
  opacity: 0;
}

.mk-thumb-fallback {
  position: absolute;
  inset: 0;
  background: url('./images/noimg.png') center / cover no-repeat;
  z-index: 0;
}

.mk-recent-info {
  padding: 8px 0 0;
}

.mk-recent-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mk-recent-card:hover .mk-recent-title {
  text-decoration: underline;
}

.mk-recent-date {
  font-size: 14px;
  color: var(--mk-muted);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════
   Cover: List
═══════════════════════════════════════════════════ */
.mk-cover-list {
  padding: 16px 32px;
}

.mk-cover-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mk-cover-list-main {
  min-width: 0;
}

.mk-cover-list-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mk-cover-list-summary {
  display: block;
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--mk-text) 68%, white);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mk-cover-list-date {
  font-size: 14px;
  color: var(--mk-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-cover-list-item:hover .mk-cover-list-title {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   Archive / Category List
═══════════════════════════════════════════════════ */
.archive-section {
  padding: 32px;
}

/* ── gallery2 (2~3-column grid) ── */
.archive-section.gallery2 .mk-article-grid,
.archive-section.gallery .mk-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
}

.archive-section.gallery2 .mk-article-link,
.archive-section.gallery .mk-article-link {
  display: block;
}

.archive-section.gallery2 .mk-article-thumb-wrap,
.archive-section.gallery .mk-article-thumb-wrap {
  aspect-ratio: 1 / 1;
}

.archive-section.gallery2 .mk-article-info,
.archive-section.gallery .mk-article-info {
  padding-top: 8px;
}

.archive-section.gallery2 .mk-article-row,
.archive-section.gallery .mk-article-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-section.gallery2 .mk-article-title,
.archive-section.gallery .mk-article-title {
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.archive-section.gallery2 .mk-article-date,
.archive-section.gallery .mk-article-date {
  font-size: 12px;
  color: var(--mk-muted);
}

.archive-section.gallery2 .mk-article-excerpt,
.archive-section.gallery .mk-article-excerpt {
  display: none;
}

.mk-article-link:hover .mk-article-title {
  text-decoration: underline;
}

/* Thumb common */
.mk-article-thumb-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--mk-soft-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mk-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.mk-article-link:hover .mk-article-thumb {
  transform: scale(1.04);
}

.mk-article-thumb:not([src]),
.mk-article-thumb[src=""] {
  opacity: 0;
}

/* ── simple (title-only list) ── */
.archive-section.simple .mk-article-grid {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.archive-section.simple .mk-article-thumb-wrap {
  display: none;
}

.archive-section.simple .mk-article-link {
  display: flex;
  align-items: center;
  padding: 10px 2px;
}

.archive-section.simple .mk-article-info {
  flex: 1;
}

.archive-section.simple .mk-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.archive-section.simple .mk-article-title {
  font-size: 14px;
  font-weight: 400;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.archive-section.simple .mk-article-date {
  font-size: 12px;
  color: var(--mk-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.archive-section.simple .mk-article-excerpt {
  display: none;
}

.archive-section.simple .mk-article-item+.mk-article-item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── digest (hybrid: thumbnail left + text right) ── */
.archive-section.digest .mk-article-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

.archive-section.digest .mk-article-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.archive-section.digest .mk-article-thumb-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.archive-section.digest .mk-article-info {
  flex: 1;
  min-width: 0;
}

.archive-section.digest .mk-article-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.archive-section.digest .mk-article-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.archive-section.digest .mk-article-date {
  font-size: 12px;
  color: var(--mk-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.archive-section.digest .mk-article-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Notice list page: always hybrid-text (no thumb) */
#tt-body-notice .archive-section .mk-article-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#tt-body-notice .archive-section .mk-article-thumb-wrap {
  display: none;
}

#tt-body-notice .archive-section .mk-article-link {
  display: block;
  padding: 0;
}

#tt-body-notice .archive-section .mk-article-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

#tt-body-notice .archive-section .mk-article-item:first-child {
  border-top: 0;
}

#tt-body-notice .archive-section .mk-article-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#tt-body-notice .archive-section .mk-article-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

#tt-body-notice .archive-section .mk-article-date {
  font-size: 12px;
  color: var(--mk-muted);
  flex-shrink: 0;
}

#tt-body-notice .archive-section .mk-article-excerpt {
  display: block;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   Single Post View
═══════════════════════════════════════════════════ */
.mk-post-view {
  padding: 32px;
}

.mk-post-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mk-border);
  margin-bottom: 28px;
}

.mk-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mk-post-category {
  font-size: 14px;
  color: var(--mk-muted);
  text-transform: uppercase;
}

.mk-post-category:hover {
  color: var(--mk-accent);
}

.mk-post-date {
  font-size: 14px;
  color: var(--mk-muted);
  font-variant-numeric: tabular-nums;
}

.mk-post-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

/* Post body content */
.mk-post-body {
  font-size: 15px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--mk-text) 78%, white);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mk-post-body>*:first-child {
  margin-top: 0;
}

.mk-post-body p {
  margin: 0 0 1.2em;
}

.mk-post-body h1,
.mk-post-body h2,
.mk-post-body h3,
.mk-post-body h4 {
  margin: 2rem 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.mk-post-body img {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mk-post-body a {
  color: var(--mk-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-post-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--mk-border);
  font-weight: 700;
  font-size: 16px;
}

.mk-post-body pre,
.mk-post-body code {
  font-family: 'Freesentation' !important;
  font-size: 13px;
}

.mk-post-body pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: color-mix(in srgb, var(--mk-soft-bg) 45%, white);
  overflow-x: auto;
}

.mk-post-body :not(pre)>code {
  padding: 2px 6px;
  background: color-mix(in srgb, var(--mk-soft-bg) 30%, white);
}

/* Post tags */
.mk-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.mk-post-tags a {
  font-size: 14px;
  color: var(--mk-muted);
}

.mk-post-tags a:hover {
  color: var(--mk-accent);
  text-decoration: underline;
}

/* Post nav (prev / next) */
.mk-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.mk-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--mk-soft-bg) 35%, white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: background 0.15s;
}

.mk-post-nav-item:hover {
  background: color-mix(in srgb, var(--mk-soft-bg) 22%, white);
}

.mk-post-nav-item.next {
  text-align: right;
  align-items: flex-end;
}

.mk-post-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.mk-post-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* Comments */
.mk-comments {
  margin-top: 40px;
}

/* Tistory comment form styles */
.tt-item-reply {
  padding: 16px 0;
}

.tt-item-reply .tt-list-reply-comment {
  border-top: none;
  border: 1px solid var(--mk-border);
  padding: 0 20px;
  background-color: #f9f9f9;
}

.tt-list-reply-comment .tt-item-reply {
  padding: 16px 0;
}

.mk-comments .rp-form,
.mk-comments .tt_box_cheers {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: color-mix(in srgb, var(--mk-soft-bg) 20%, white);
}

.mk-comments .tt-box-total,
.mk-comments .tt_box_cheers {
  display: none;
}

.mk-comments .tt-area-write .tt-box-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.mk-comments .tt-area-write .tt-box-account input,
.mk-comments .tt-box-textarea .tt-inner-g {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--mk-surface-bg);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

.mk-comments .tt-box-textarea .tt-inner-g {
  display: block;
  min-height: 80px;
  padding: 10px;
}

.mk-comments .tt-list-reply {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk-comments .tt-item-reply>.tt-wrap-cmt {
  display: flex;
  gap: 12px;
}

.mk-comments .tt-thumbnail {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}

.mk-comments .tt-wrap-cmt .tt-box-content {
  flex: 1;
  min-width: 0;
}

.mk-comments .tt-wrap-cmt .tt-link-user {
  font-size: 14px;
  font-weight: 700;
}

.mk-comments .tt-wrap-cmt .tt_date {
  font-size: 12px;
  color: var(--mk-muted);
  padding-top: 12px;
}

.mk-comments .tt-wrap-cmt .tt_desc {
  font-size: 14px;
  color: color-mix(in srgb, var(--mk-text) 78%, white);
  line-height: 1.6;
  margin-top: 4px;
}

.mk-comments .tt-btn_register {
  appearance: none;
  border: 0;
  background: var(--mk-accent);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.mk-comments .tt-btn_register:hover {
  background: color-mix(in srgb, var(--mk-accent) 78%, black);
}

/* ═══════════════════════════════════════════════════
   Protected Post
═══════════════════════════════════════════════════ */
.mk-protected-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--mk-text) 58%, white);
}

.mk-protected-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.mk-protected-input {
  flex: 1;
  max-width: 240px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  background: color-mix(in srgb, var(--mk-soft-bg) 20%, white);
}

.mk-protected-input:focus {
  border-color: var(--mk-border);
}

.mk-protected-submit {
  border: 0;
  background: var(--mk-accent);
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   Tag Cloud
═══════════════════════════════════════════════════ */
.mk-tag-view {
  padding: 32px;
}

.mk-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  padding-top: 24px;
}

.mk-tag-item {
  font-size: 14px;
  color: var(--mk-muted);
  font-weight: 500;
  transition: color 0.15s;
}

.mk-tag-item:hover {
  color: var(--mk-accent);
  text-decoration: underline;
}

/* Tistory tag size classes */
.mk-tag-item.size1 {
  font-size: 12px;
}

.mk-tag-item.size2 {
  font-size: 13px;
}

.mk-tag-item.size3 {
  font-size: 14px;
}

.mk-tag-item.size4 {
  font-size: 15px;
  color: color-mix(in srgb, var(--mk-muted) 60%, black);
}

.mk-tag-item.size5 {
  font-size: 16px;
  color: color-mix(in srgb, var(--mk-text) 80%, white);
}

.mk-tag-item.size6 {
  font-size: 17px;
  color: color-mix(in srgb, var(--mk-text) 90%, white);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   Guestbook
═══════════════════════════════════════════════════ */
.tt-item-reply::before {
  display: none;
}

.tt-wrap-cmt .tt_date {
  padding-top: 12px;
}

.tt-box-thumb {
  display: none;
}

.mk-guestbook-view {
  padding: 32px;
}

.mk-guestbook-content .rp-form {
  margin-bottom: 24px;
}

/* Tistory guestbook form fields */
.mk-guestbook-content .tt-area-write .tt-box-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mk-guestbook-content .tt-area-write .tt-box-account input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 9px 12px;
  font-size: 14px;
  background: #f9f9f9;
  outline: none;
}

.mk-guestbook-content .tt-area-write .tt-box-account input:focus {
  border-color: var(--mk-border);
  background: #fff;
}

.mk-guestbook-content .tt-box-textarea .tt-inner-g {
  display: block;
  width: 100%;
  min-height: 80px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  background: #f9f9f9;
  outline: none;
  box-sizing: border-box;
}

.mk-guestbook-content .tt-box-textarea .tt-inner-g:focus,
.mk-guestbook-content .tt-box-textarea:focus-within .tt-inner-g {
  border-color: var(--mk-border);
  background: #fff;
}

.mk-guestbook-content .tt_date {
  font-size: 12px;
}

.mk-guestbook-content .tt-btn_register {
  display: block;
  appearance: none;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.mk-guestbook-content .tt-btn_register:hover {
  background: #333;
}

/* Guestbook entries */
.mk-guestbook-content .tt-list-reply {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk-guestbook-content .tt-item-reply {
  padding: 16px 0;
}

.mk-guestbook-content .tt-wrap-cmt {
  display: block;
}

.mk-guestbook-content .tt-wrap-info {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.mk-guestbook-content .tt-link-user {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-text);
  text-decoration: none;
}

.mk-guestbook-content .tt_date {
  font-size: 14px;
  color: var(--mk-muted);
}

.mk-guestbook-content .tt_desc {
  font-size: 14px;
  color: color-mix(in srgb, var(--mk-text) 65%, white);
  line-height: 1.6;
}

.mk-guestbook-content .tt-box-total {
  display: none;
}

/* ═══════════════════════════════════════════════════
   Pagination
═══════════════════════════════════════════════════ */
.mk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 32px 40px;
}

.mk-pag-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mk-muted);
  transition: color 0.15s;
}

.mk-pag-link:hover {
  color: var(--mk-accent);
}

.mk-pag-link.no-more-prev,
.mk-pag-link.no-more-next {
  opacity: 0.3;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   Tistory misc overrides
═══════════════════════════════════════════════════ */
.another_category {
  display: none !important;
}

[data-tistory-react-app="Namecard"],
.tt_box_namecard {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  body {
    padding: 12px;
    align-items: flex-start;
  }

  .mk-shell {
    flex-direction: column;
    height: calc(100vh - 24px);
    border: 1px solid var(--mk-border);
  }

  .mk-sidebar {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-right: 0;
  }

  .mk-sidebar-inner {
    min-height: auto;
    height: auto;
  }

  .mk-profile-img {
    aspect-ratio: 3 / 1;
    border-radius: 0;
  }

  .mk-menu-toggle {
    display: inline-flex;
  }

  .mk-divider {
    display: none;
  }

  .mk-sidebar .mk-cat-nav {
    display: none;
  }

  .mk-sidebar-foot {
    display: none;
  }

  .mk-section,
  .archive-section,
  .mk-post-view,
  .mk-tag-view,
  .mk-guestbook-view {
    padding: 20px 16px;
  }

  .mk-cover-intro,
  .mk-cover-recent,
  .mk-cover-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mk-intro-text {
    padding-left: 0;
    padding-right: 0;
  }

  .mk-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
  }

  .mk-cover-list-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .archive-section.gallery2 .mk-article-grid,
  .archive-section.gallery .mk-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mk-post-nav {
    grid-template-columns: 1fr;
  }

  .mk-post-nav-item.next {
    align-items: flex-start;
    text-align: left;
  }

  .mk-guestbook-content .tt-area-write .tt-box-account {
    grid-template-columns: 1fr;
  }

  .mk-copyright-link {
    left: 16px;
    bottom: 14px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .mk-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════════
   Selection
═══════════════════════════════════════════════════ */
::selection {
  background: #111;
  color: #fff;
}
