/* ==========================================================================
   Tistory Skin — Refined
   1. Tokens   2. Reset   3. Icons   4. Header   5. Menu overlay
   6. List     7. Post    8. Comments/Guestbook   9. Paging/Footer
   10. Widgets 11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', 'D2Coding', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --accent: #5b6cff;
  --accent-strong: #4453e6;
  --accent-soft: rgba(91, 108, 255, .10);

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eff1f4;
  --line: #e5e8ec;
  --text: #1b1d22;
  --text-2: #5a606c;
  --text-3: #8b92a0;
  --code-bg: #14161c;
  --code-text: #e6e8ee;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .08);
  --header-h: 64px;
  --content-w: 760px;
  --page-w: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #8592ff;
  --accent-strong: #a0aaff;
  --accent-soft: rgba(133, 146, 255, .14);
  --bg: #0e1015;
  --surface: #161920;
  --surface-2: #1f232c;
  --line: #262b36;
  --text: #e8eaef;
  --text-2: #a4abb8;
  --text-3: #767e8d;
  --code-bg: #0a0b0f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #8592ff;
    --accent-strong: #a0aaff;
    --accent-soft: rgba(133, 146, 255, .14);
    --bg: #0e1015;
    --surface: #161920;
    --surface-2: #1f232c;
    --line: #262b36;
    --text: #e8eaef;
    --text-2: #a4abb8;
    --text-3: #767e8d;
    --code-bg: #0a0b0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.navi_lock { overflow: hidden; }
h1, h2, h3, h4, h5, h6, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { border: 0; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hide { display: none; }
.screen_out {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
#dkIndex a {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600;
}
#dkIndex a:focus { top: 12px; }

/* 3. Icons (SVG masks — no image files needed) ----------------------------- */
:root {
  --i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --i-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
  --i-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --i-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
  --i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
  --i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  --i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
  --i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  --i-rss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

.ico_skin {
  --s: 22px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.ico_skin::before {
  content: '';
  display: block;
  width: var(--s);
  height: var(--s);
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico_cate   { --ico: var(--i-menu); }
.ico_search { --ico: var(--i-search); }
.ico_prev   { --ico: var(--i-left);  --s: 16px; }
.ico_next   { --ico: var(--i-right); --s: 16px; }
.ico_up     { --ico: var(--i-up); }
.ico_theme  { --ico: var(--i-moon); }
:root[data-theme="dark"] .ico_theme { --ico: var(--i-sun); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico_theme { --ico: var(--i-sun); }
}
.btn_close   { --ico: var(--i-close); }
.link_write  { --ico: var(--i-pen); }
.link_memo   { --ico: var(--i-chat); }
.link_rss    { --ico: var(--i-rss); }
.link_manage { --ico: var(--i-grid); }

/* 4. Header ---------------------------------------------------------------- */
.area_head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 max(12px, calc((100% - var(--page-w)) / 2));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.area_head.is_scrolled { border-bottom-color: var(--line); }

.btn_cate, .btn_search, .btn_theme {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.btn_cate:hover, .btn_search:hover, .btn_theme:hover { background: var(--surface-2); color: var(--text); }
.btn_cate { order: 1; }

/* title / avatar come from .area_profile — flatten it into the header row */
.area_profile { display: contents; }
.area_head .tit_post { order: 2; flex: 1; min-width: 0; padding-left: 4px; }
.area_head .link_post {
  display: block;
  overflow: hidden;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.area_head .link_post:hover { color: var(--accent); }
.area_search { order: 3; position: relative; }
.btn_theme { order: 4; }
.thumb_profile {
  order: 5;
  flex: none;
  width: 34px; height: 34px;
  margin-left: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line);
}
.img_profile { display: block; width: 100%; height: 100%; object-fit: cover; }
.txt_profile { order: 6; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* search */
.btn_search { display: none; }
.frm_search { position: relative; }
.tf_search {
  width: 220px;
  height: 40px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  transition: width .25s ease, border-color .15s, box-shadow .15s;
}
.tf_search::placeholder { color: var(--text-3); }
.tf_search:focus { width: 280px; outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.frm_search .ico_search {
  --s: 18px;
  position: absolute; left: 15px; top: 50%;
  translate: 0 -50%;
  color: var(--text-3);
  pointer-events: none;
}

/* 5. Menu overlay ---------------------------------------------------------- */
.wrap_sub {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background-color: #12141b;
  background-image: linear-gradient(135deg, #2b2f6b 0%, #12141b 60%);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}
.wrap_sub::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(10, 12, 18, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
}
.navi_on .wrap_sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.cont_sub { position: relative; min-height: 100%; padding: 96px 24px 140px; }
.inner_sub { max-width: var(--page-w); margin: 0 auto; }
.area_sub { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px 28px; align-items: start; }
.wrap_etc { display: contents; }
.col_aside { display: grid; gap: 20px; }

.btn_close {
  --s: 20px;
  position: fixed; top: 14px; right: 16px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transition: background .15s, transform .2s;
}
.btn_close:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }

/* category */
.area_navi { padding: 4px 0; }
.tt_category > li > .link_tit {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 12px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.tt_category .category_list, .tt_category .sub_category_list { display: grid; gap: 2px; }
.tt_category .link_item, .tt_category .link_sub_item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  color: #fff;
  transition: background .15s, padding .15s;
}
.tt_category .link_sub_item { padding-left: 28px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.tt_category .link_item:hover, .tt_category .link_sub_item:hover { background: rgba(255, 255, 255, .12); padding-left: 18px; }
.tt_category .link_sub_item:hover { padding-left: 34px; }
.tt_category .c_cnt { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.link_guestbook {
  display: inline-flex; align-items: center; margin: 18px 0 0 12px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: background .15s, color .15s;
}
.link_guestbook:hover { background: #fff; color: #12141b; }

/* control dock */
.list_control {
  position: fixed; left: 50%; bottom: 24px; z-index: 2;
  translate: -50% 0;
  display: flex; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .16);
}
.list_control .ico_skin {
  --s: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  transition: background .15s;
}
.list_control .ico_skin:hover { background: rgba(255, 255, 255, .22); }

/* widgets inside the menu */
.wrap_sub .box_aside {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
}
.tit_aside {
  display: block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.list_board li + li { margin-top: 2px; }
.link_board {
  display: block; overflow: hidden;
  padding: 7px 0;
  font-size: 15px; color: rgba(255, 255, 255, .88);
  white-space: nowrap; text-overflow: ellipsis;
  transition: color .15s, padding .15s;
}
.link_board:hover { color: #fff; padding-left: 6px; }
.list_keep li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: rgba(255, 255, 255, .5); }
.link_keep { color: rgba(255, 255, 255, .88); }
.link_keep:hover { color: #fff; }

.wrap_sub .list_tag { display: flex; flex-wrap: wrap; gap: 6px; }
.wrap_sub .link_tag {
  display: block; padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .9);
  transition: background .15s;
}
.wrap_sub .link_tag:hover { background: rgba(255, 255, 255, .24); }
.wrap_sub .link_tag.cloud1 { font-size: 15px; font-weight: 700; }
.wrap_sub .link_tag.cloud2 { font-size: 14px; font-weight: 600; }
.link_more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.link_more::after { content: ' →'; }
.wrap_sub .link_more { color: rgba(255, 255, 255, .75); }
.wrap_sub .link_more:hover { color: #fff; }

.box_visitor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box_visitor dl { margin: 0; padding: 4px 0; }
.box_visitor dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.box_visitor dd { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

.box_calendar table { width: 100%; border-collapse: collapse; text-align: center; font-size: 13px; }
.box_calendar caption { padding-bottom: 10px; font-size: 15px; font-weight: 700; }
.box_calendar caption a { padding: 0 6px; }
.box_calendar th { padding: 6px 0; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.box_calendar td { padding: 6px 0; color: rgba(255, 255, 255, .7); }
.box_calendar td a { display: inline-block; min-width: 24px; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; }
.box_calendar td.cal_today, .box_calendar .cal_today a { color: #fff; font-weight: 800; }

/* 6. Index / list ---------------------------------------------------------- */
.article_skin { max-width: var(--content-w); margin: 0 auto; padding: 28px 16px 96px; }
.tit_skin { margin: 8px 4px 24px; font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
body:not(#tt-body-index) .index_title { display: none; }
#tt-body-index .list_title { display: none; }

/* Desktop category sidebar */
.side_cate { display: none; }
@media (min-width: 1280px) {
  .side_cate {
    display: block; position: fixed; z-index: 20;
    top: calc(var(--header-h) + 28px); left: calc(50% - 380px - 244px); width: 224px;
    max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto;
    padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow);
  }
  .side_tit { display: block; padding: 0 10px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
  .side_cate .tt_category > li > .link_tit { padding: 8px 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
  .side_cate .link_item, .side_cate .link_sub_item { padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--text); border-radius: 10px; }
  .side_cate .link_sub_item { padding-left: 22px; font-size: 13px; font-weight: 500; color: var(--text-2); }
  .side_cate .link_item:hover, .side_cate .link_sub_item:hover { background: var(--accent-soft); color: var(--accent); padding-left: 14px; }
  .side_cate .link_sub_item:hover { padding-left: 26px; }
  .side_cate .c_cnt { font-size: 12px; font-weight: 500; color: var(--text-3); }
}

/* Home hero banner */
#tt-body-index .hero {
  position: relative; overflow: hidden;
  margin: 0 0 24px; padding: 64px 32px 48px;
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(14, 16, 21, .10) 0%, rgba(14, 16, 21, .72) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Seolleung_and_Jeongneung_Royal_Tombs.jpg/1280px-Seolleung_and_Jeongneung_Royal_Tombs.jpg') center / cover no-repeat;
  background-color: #1f232c;
}
#tt-body-index .hero .tit_skin { margin: 0 0 10px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
#tt-body-index .hero .txt_title { color: #fff; }
#tt-body-index .hero_sub { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .9); }
@media (max-width: 640px) {
  #tt-body-index .hero { padding: 44px 20px 32px; }
  #tt-body-index .hero .tit_skin { font-size: 26px; }
  #tt-body-index .hero_sub { font-size: 14px; }
}
.list_title .txt_title { color: var(--text); }

.list_content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.list_content:has(.thumbnail_post) { grid-template-columns: minmax(0, 1fr) 132px; }
.list_content:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.list_content .link_post { grid-column: 1; grid-row: 1; display: block; min-width: 0; }
.list_content .thumbnail_post {
  grid-column: 2; grid-row: 1 / span 2;
  display: block; width: 132px; height: 132px;
  border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
}
.list_content .thumbnail_post img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.list_content:hover .thumbnail_post img { transform: scale(1.06); }
.list_content .tit_post {
  display: -webkit-box; overflow: hidden;
  font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .15s;
}
.list_content .link_post:hover .tit_post { color: var(--accent); }
.list_content .txt_post {
  display: -webkit-box; overflow: hidden;
  margin-top: 8px;
  font-size: 15px; line-height: 1.65; color: var(--text-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.list_content .detail_info { grid-column: 1; grid-row: 2; align-self: end; display: flex; align-items: center; font-size: 13px; color: var(--text-3); }
.link_cate { color: var(--accent); font-weight: 600; }
.link_cate:hover { text-decoration: underline; text-underline-offset: 3px; }
.txt_bar { display: inline-block; width: 3px; height: 3px; margin: 0 9px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }

/* tag page */
.article_skin > .list_tag { display: flex; flex-wrap: wrap; gap: 8px; }
.article_skin .link_tag {
  display: block; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 14px; color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.article_skin .link_tag:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.article_skin .link_tag.cloud1 { font-size: 20px; font-weight: 700; color: var(--text); }
.article_skin .link_tag.cloud2 { font-size: 17px; font-weight: 600; }
.article_skin .link_tag.cloud3 { font-size: 15px; }

/* 7. Post ------------------------------------------------------------------ */
#tt-body-page .article_skin { padding-top: 24px; }
#tt-body-page .area_title,
#tt-body-page .area_view,
#tt-body-page .area_etc,
#tt-body-page .protected_form {
  position: relative;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.area_title {
  padding: 48px 56px 8px;
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
}
.tit_category a {
  display: inline-block; padding: 5px 12px;
  border-radius: 999px; background: var(--accent-soft);
  font-size: 13px; font-weight: 700; color: var(--accent);
}
.tit_category a:hover { background: var(--accent); color: #fff; }
.area_title .tit_post {
  margin: 18px 0 16px;
  font-size: 36px; font-weight: 800; line-height: 1.32; letter-spacing: -.04em;
}
.info_post { display: flex; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }

.area_view {
  padding: 28px 56px 48px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.area_view > * + * { margin-top: 1.15em; }
.area_view h1, .area_view h2, .area_view h3, .area_view h4 { line-height: 1.4; letter-spacing: -.03em; font-weight: 800; }
.area_view h2 { margin-top: 2.4em; padding-bottom: .4em; border-bottom: 1px solid var(--line); font-size: 27px; }
.area_view h3 { margin-top: 2em; font-size: 22px; }
.area_view h4 { margin-top: 1.8em; font-size: 18px; }
.area_view p { margin: 0; }
.area_view a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: text-decoration-color .15s; }
.area_view a:hover { text-decoration-color: var(--accent); }
.area_view strong, .area_view b { font-weight: 700; }
.area_view img { height: auto; border-radius: 12px; }
.area_view figure { margin: 2em 0; text-align: center; }
.area_view figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); }
/* Tistory wraps post bodies in .contents_style and resets p/figure margins — restore the rhythm */
.area_view .contents_style p,
.area_view .contents_style ul,
.area_view .contents_style ol { margin: 0 0 1.15em !important; }
.area_view .contents_style li p { margin: 0 !important; }
.area_view .contents_style li > ul,
.area_view .contents_style li > ol { margin: .3em 0 0 !important; }
.area_view .contents_style figure { margin: 2em auto .6em; }
.area_view .contents_style figure + p[data-ke-size="size14"] { margin: 0 0 2em !important; }
.area_view ul, .area_view ol { padding-left: 1.4em; }
.area_view ul { list-style: disc; }
.area_view ol { list-style: decimal; }
.area_view li { margin: .3em 0; }
.area_view li::marker { color: var(--accent); }
.area_view hr { height: 1px; margin: 2.6em 0; border: 0; background: var(--line); }
.area_view [data-ke-type="horizontalRule"] hr { margin: 0; }

.area_view blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: var(--text);
}
.area_view blockquote[data-ke-style="style1"] { border-left: 0; background: none; padding: 32px 8px 0; text-align: center; font-size: 20px; font-weight: 600; position: relative; }
.area_view blockquote[data-ke-style="style1"]::before { content: '“'; position: absolute; top: -6px; left: 50%; translate: -50% 0; font-size: 56px; line-height: 1; color: var(--accent); }
.area_view blockquote[data-ke-style="style3"] { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }

.area_view :not(pre) > code {
  padding: .15em .45em;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono); font-size: .88em;
  color: var(--accent-strong);
}
.area_view pre {
  margin: 1.8em 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--mono); font-size: 14.5px; line-height: 1.75;
  word-break: normal;
  tab-size: 4;
}
.area_view pre code { padding: 0; background: none; color: inherit; font: inherit; }
.code_wrap { position: relative; }
.code_wrap pre { margin: 0; }
.btn_copy {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  font-family: var(--font); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75);
  opacity: 0; transition: opacity .15s, background .15s;
}
.code_wrap:hover .btn_copy, .btn_copy:focus-visible { opacity: 1; }
.btn_copy:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.area_view table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 15px; }
.area_view th, .area_view td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.area_view th { background: var(--surface-2); font-weight: 700; }
.area_view iframe, .area_view video { max-width: 100%; border-radius: 12px; }

.area_etc {
  padding: 0 56px 40px;
  border-radius: 0 0 24px 24px;
  border-bottom: 1px solid var(--line);
}
.area_etc .list_tag { display: flex; align-items: baseline; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.area_etc .list_tag dt { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.area_etc .list_tag dd { font-size: 0; }
.area_etc .list_tag a {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 13px;
  border-radius: 999px; background: var(--surface-2);
  font-size: 13px; color: var(--text-2);
  transition: background .15s, color .15s;
}
.area_etc .list_tag a:hover { background: var(--accent); color: #fff; }

/* related */
.area_related { margin-top: 48px; }
.tit_related { display: block; margin: 0 4px 16px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.list_related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link_related {
  position: relative; display: block; height: 100%;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link_related:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.thumb_related { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.img_related { display: block; width: 100%; height: 100%; object-fit: cover; }
.txt_related {
  display: -webkit-box; overflow: hidden;
  padding: 14px 16px 4px;
  font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.date_related { display: block; padding: 0 16px 14px; font-size: 12px; color: var(--text-3); }
.frame_related { display: none; }
.area_related .link_more { margin: 16px 4px 0; }

.area_reply { margin-top: 48px; }

/* protected post */
.protected_form { padding: 48px 56px 56px; text-align: center; border-bottom: 1px solid var(--line); border-radius: 0 0 24px 24px; }
.protected_form p { margin-bottom: 20px; color: var(--text-2); }
.protected_form input {
  width: 240px; max-width: 100%; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.protected_form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.protected_form button {
  height: 44px; margin-left: 6px; padding: 0 22px;
  border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700;
}
.protected_form button:hover { background: var(--accent-strong); }

/* reading progress & back-to-top (added by script.js) */
.read_progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.read_progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.btn_top {
  position: fixed; right: 20px; bottom: 24px; z-index: 40;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s, color .15s;
}
.btn_top.is_show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.btn_top:hover { color: var(--accent); }

/* 8. Comments / Guestbook (markup is generated by Tistory) ---------------- */
.area_reply textarea,
.area_reply input[type="text"],
.area_reply input[type="password"],
.area_reply input[type="email"],
#tt-body-guestbook .article_skin textarea,
#tt-body-guestbook .article_skin input[type="text"],
#tt-body-guestbook .article_skin input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  font-size: 15px; line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}
.area_reply textarea:focus, .area_reply input:focus,
#tt-body-guestbook .article_skin textarea:focus, #tt-body-guestbook .article_skin input:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.area_reply button[type="submit"], .area_reply [class*="btn_register"], .area_reply [class*="btn-register"],
#tt-body-guestbook .article_skin button[type="submit"], #tt-body-guestbook .article_skin [class*="btn_register"] {
  padding: 10px 22px;
  border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700;
  transition: background .15s;
}
.area_reply button[type="submit"]:hover, .area_reply [class*="btn_register"]:hover,
#tt-body-guestbook .article_skin button[type="submit"]:hover { background: var(--accent-strong); }
.area_reply [class*="tt-box-total"] { margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.area_reply [class*="tt_num_g"] { color: var(--accent); }
.area_reply [class*="tt-list-reply"] li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.area_reply [class*="tt-img-user"] { border-radius: 50%; }
.area_reply a { color: var(--accent); }

/* 9. Paging / Footer ------------------------------------------------------- */
.area_paging { margin-top: 44px; text-align: center; }
.inner_paging { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; }
.area_paging a, .area_paging .selected {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background .15s, color .15s;
}
.area_paging a:hover { background: var(--surface-2); color: var(--text); }
.area_paging .selected, .area_paging [aria-current] { background: var(--accent); color: #fff; }
.area_paging .btn_prev, .area_paging .btn_next { border: 1px solid var(--line); background: var(--surface); padding: 0 14px; }
.area_paging .no-more-prev, .area_paging .no-more-next { opacity: .35; pointer-events: none; }

.area_foot { padding: 32px 16px 48px; text-align: center; }
.info_copyright { font-size: 12px; color: var(--text-3); }
.info_copyright .emph_t { font-weight: 600; color: var(--text-2); }
.info_copyright .emph_t:hover { color: var(--accent); }

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .area_sub { grid-template-columns: 1fr 1fr; }
  .area_navi { grid-column: 1 / -1; }
  .tt_category .category_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --header-h: 58px; }
  .btn_search { display: grid; }
  .txt_profile { display: none; }
  .frm_search {
    display: none;
    position: absolute; top: 0; left: 0; right: 0; z-index: 5;
    height: var(--header-h);
    padding: 9px 12px;
    background: var(--bg);
  }
  .area_head .area_search { position: static; }
  .area_search.search_on .frm_search { display: block; }
  .tf_search, .tf_search:focus { width: 100%; }
  .frm_search .ico_search { left: 28px; }

  .tit_skin { font-size: 26px; }
  .list_content { padding: 20px; }
  .list_content:has(.thumbnail_post) { grid-template-columns: minmax(0, 1fr) 88px; column-gap: 16px; }
  .list_content .thumbnail_post { width: 88px; height: 88px; border-radius: 12px; }
  .list_content .tit_post { font-size: 18px; }

  #tt-body-page .article_skin { padding: 0 0 72px; }
  .area_title { padding: 32px 22px 4px; border-radius: 0; }
  .area_title .tit_post { font-size: 28px; }
  .area_view { padding: 20px 22px 36px; font-size: 16px; }
  .area_view h2 { font-size: 23px; }
  .area_view h3 { font-size: 20px; }
  .area_etc { padding: 0 22px 32px; border-radius: 0; }
  .protected_form { padding: 36px 22px; border-radius: 0; }
  #tt-body-page .area_title,
  #tt-body-page .area_view,
  #tt-body-page .area_etc,
  #tt-body-page .protected_form { border-left: 0; border-right: 0; }
  #tt-body-page .area_related, #tt-body-page .area_reply { margin-left: 16px; margin-right: 16px; }
  .list_related { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .area_sub { grid-template-columns: 1fr; }
  .tt_category .category_list { grid-template-columns: 1fr; }
  .cont_sub { padding: 84px 16px 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Place map (bottom of every page) */
.place_map { max-width: var(--content-w); margin: 0 auto 72px; padding: 0 16px; }
.pm_title { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.pm_sub { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.pm_el { position: relative; z-index: 0; height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); }
.pm_legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.pm_legend li { display: flex; align-items: center; gap: 6px; }
.pm_legend i { width: 10px; height: 10px; border-radius: 50%; }
.pm_note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) { .pm_el { height: 340px; } }
