@charset "UTF-8";

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Colors - Neutral */
  --color-bg: #ffffff;
  --color-bg-subtle: #fafafa;
  --color-bg-muted: #f4f4f5;
  --color-border: #e4e4e7;
  --color-border-subtle: #f1f1f4;

  /* Colors - Text */
  --color-text: #18181b;
  --color-text-secondary: #52525b;
  --color-text-muted: #a1a1aa;
  --color-text-subtle: #d4d4d8;

  /* Colors - Accent (Slate Blue) */
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-subtle: #eff6ff;

  /* Colors - Code */
  --color-code-bg: #f8f9fb;
  --color-code-border: #e4e4e7;
  --color-code-text: #18181b;
  --color-inline-code-bg: #f4f4f5;

  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, Monaco, monospace;
  --font-serif: 'Noto Serif KR', serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --content-max-width: 760px;
  --content-wide-width: 960px;
  --header-height: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
}

/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
/* JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

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

fieldset, img { border: 0 none; }
dl, ul, ol, menu, li { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

input, select, textarea, button {
  vertical-align: middle;
  outline: none;
  font-family: inherit;
}

input::-ms-clear { display: none; }

button {
  border: 0 none;
  background-color: transparent;
  cursor: pointer;
  font-family: inherit;
}

html, body {
  height: 100%;
  min-height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent); text-decoration: none; }

input[type='text'], input[type='password'], input[type='submit'],
input[type='search'], input[type='tel'], input[type='email'],
html input[type='button'], input[type='reset'] {
  -webkit-appearance: none;
  border-radius: 0;
}

input[type='search']::-webkit-search-cancel-button,
textarea { -webkit-appearance: none; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
#dkIndex {
  overflow: hidden;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 1px;
}

.screen_out, .ir_pm, .ir_wa {
  overflow: hidden;
  position: absolute;
  width: 0;
  height: 0;
  line-height: 0;
  text-indent: -9999px;
}

.hide { display: none; }
.show { display: block; }

.txt_bar {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background-color: var(--color-text-subtle);
  vertical-align: middle;
}

/* Hide legacy icons */
.ico_skin {
  display: inline-block;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

/* ==========================================================================
   Layout - Top Header Structure
   ========================================================================== */
.wrap_skin {
  position: relative;
  min-width: 320px;
  min-height: 100%;
  padding-left: 0;
  padding-top: var(--header-height);
}

/* ==========================================================================
   Header (Top Fixed)
   ========================================================================== */
.area_head {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 1000;
  margin-top: 0;
  min-width: auto;
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
}

.area_head .area_profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
  flex: 0 0 auto;
}

.area_head .area_profile::before { display: none; }

.area_head .area_profile .tit_post {
  padding: 0;
  order: 2;
}

.area_head .area_profile .link_post {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area_head .area_profile .link_post:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.area_head .area_profile .thumb_profile {
  order: 1;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-muted);
}

.area_head .area_profile .img_profile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.area_head .area_profile .txt_profile {
  display: none;
}

/* Category Button (Menu Trigger) */
.area_head .btn_cate {
  position: static;
  width: 40px;
  height: 40px;
  margin-right: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  top: auto;
  left: auto;
}

.area_head .btn_cate:hover {
  background: var(--color-bg-muted);
}

.area_head .btn_cate .ico_cate {
  position: relative;
  width: 18px;
  height: 14px;
  background: none;
  text-indent: 0;
  overflow: visible;
  font-size: 0;
}

.area_head .btn_cate .ico_cate::before,
.area_head .btn_cate .ico_cate::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
}

.area_head .btn_cate .ico_cate::before { top: 3px; }
.area_head .btn_cate .ico_cate::after { bottom: 3px; }

/* Search - 헤더 중앙 배치 */
.area_search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  margin: 0;
  width: 100%;
  max-width: 440px;
  padding: 0 var(--space-md);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.area_search .btn_search {
  display: none;
}

/* 검색창은 기본적으로 항상 보이게 (가운데) */
.area_search .frm_search {
  display: flex;
  position: relative;
  width: 100%;
  height: 38px;
  padding: 0 var(--space-md) 0 38px;
  background: var(--color-bg-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  margin: 0;
  box-sizing: border-box;
  align-items: center;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.area_search .frm_search:focus-within {
  border-color: var(--color-accent);
  background: var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.area_search .frm_search input:focus,
.area_search .frm_search input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.area_search .frm_search fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.area_search .frm_search::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-text-secondary);
  border-radius: 50%;
  transform: translateY(-50%) translateY(-2px);
  pointer-events: none;
}

.area_search .frm_search::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  width: 6px;
  height: 1.5px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transform: translateY(4px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.area_search .frm_search .ico_search { display: none; }

.frm_search .tf_search {
  width: 100%;
  height: 100%;
  border: 0 none;
  background: transparent;
  font-size: 14px;
  color: var(--color-text);
  font-family: inherit;
  padding: 0;
}

.frm_search .tf_search::-webkit-input-placeholder {
  color: var(--color-text-muted);
}
.frm_search .tf_search::placeholder {
  color: var(--color-text-muted);
}

.search_on .btn_search { display: none; }

/* Search Results Dropdown (실시간 필터링) */
.search_results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: var(--space-md);
  right: var(--space-md);
  max-height: 420px;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1001;
}

.search_results.active { display: block; }

.search_results_header {
  padding: 10px var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-subtle);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--color-bg-subtle);
  position: sticky;
  top: 0;
}

.search_results_header strong {
  color: var(--color-accent);
  font-weight: 600;
}

.search_results_list { padding: 6px 0; }

.search_results_item {
  display: block;
  padding: 10px var(--space-md);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--color-border-subtle);
}

.search_results_item:last-child { border-bottom: 0; }

.search_results_item:hover {
  background: var(--color-bg-subtle);
  text-decoration: none;
  color: var(--color-accent);
}

.search_results_item .match_title {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search_results_item .match_meta {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.search_results_item mark {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  padding: 0 2px;
  border-radius: 2px;
}

.search_results_empty {
  padding: 20px var(--space-md);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.search_results_empty a {
  display: block;
  margin-top: 8px;
  color: var(--color-accent);
  font-weight: 500;
}

/* ==========================================================================
   Side Menu (Slide-out from left)
   ========================================================================== */
.wrap_sub {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 320px;
  min-width: 320px;
  height: 100%;
  background: var(--color-bg);
  background-image: none !important;
  border-right: 1px solid var(--color-border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base);
  transform: translateX(-100%);
  min-height: 100%;
}

.navi_on .wrap_sub {
  display: block;
  transform: translateX(0);
  width: 320px;
}

.cont_sub {
  width: 100%;
  height: 100%;
  background: transparent;
}

.cont_sub .inner_sub {
  position: relative;
  width: 100%;
  height: 100%;
}

.cont_sub .area_sub {
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
}

.wrap_sub .btn_close {
  display: block;
  position: absolute;
  right: var(--space-md);
  top: 12px;
  width: 40px;
  height: 40px;
  background: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.wrap_sub .btn_close:hover {
  background: var(--color-bg-muted);
}

.wrap_sub .btn_close::before,
.wrap_sub .btn_close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
}

.wrap_sub .btn_close::before { transform: translate(-50%, -50%) rotate(45deg); }
.wrap_sub .btn_close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Navigation (Category List) */
.area_navi {
  display: block;
  float: none;
  width: 100%;
}

.area_navi .tt_category {
  padding: 0;
}

.tt_category .link_tit {
  display: block;
  padding: var(--space-sm) 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-lg);
}

.tt_category .link_tit:first-child { margin-top: 0; }

.tt_category li a .c_cnt,
.tt_category li a img { display: none; }

.tt_category .category_list .link_item {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tt_category .category_list .link_item:hover {
  background: var(--color-bg-muted);
  color: var(--color-accent);
  text-decoration: none;
}

.tt_category .sub_category_list {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
}

.tt_category .sub_category_list .link_sub_item {
  display: block;
  padding: 6px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tt_category .sub_category_list .link_sub_item::before {
  content: "";
}

.tt_category .sub_category_list .link_sub_item:hover {
  background: var(--color-bg-muted);
  color: var(--color-accent);
  text-decoration: none;
}

.link_guestbook {
  display: block;
  padding: var(--space-sm) 12px;
  margin: var(--space-md) -12px 0;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-lg);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 0;
}

.link_guestbook:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Sidebar widgets */
.wrap_etc {
  display: block;
  float: none;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.navi_on .wrap_etc { display: block; }

.wrap_etc .col_aside {
  float: none;
  width: 100%;
  padding: 0;
}

.wrap_etc .right_side { padding-right: 0; }

.box_aside {
  position: relative;
  margin-bottom: var(--space-xl);
}

.tit_aside {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list_board li { padding: 2px 0; }

.list_board .link_board {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list_board .link_board:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Tag cloud */
.box_aside .list_tag {
  overflow: hidden;
  padding-top: var(--space-xs);
  margin: 0;
}

.box_aside .list_tag li {
  float: left;
  margin: 0;
}

.box_aside .list_tag .link_tag {
  display: block;
  height: 26px;
  margin: 0 6px 6px 0;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  line-height: 24px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.box_aside .list_tag .link_tag:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.box_aside .link_more {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.box_aside .link_more:hover { color: var(--color-accent); }

/* Calendar */
.wrap_etc .tt-calendar,
.wrap_etc .tbl_calendar {
  width: 100% !important;
  margin: 0;
  border-collapse: collapse;
}

.wrap_etc .tt-calendar .cal_month,
.wrap_etc .month_calendar {
  height: 24px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
}

.wrap_etc .tt-calendar .cal_month a,
.wrap_etc .month_calendar a { color: var(--color-text); }

.wrap_etc .tt-calendar td,
.wrap_etc .tbl_calendar td {
  height: 26px;
  vertical-align: middle;
}

.wrap_etc .tt-calendar thead th,
.wrap_etc .tit_week {
  width: 14.28%;
  font-weight: 500;
  font-size: 11px;
  text-align: center;
  color: var(--color-text-muted);
}

.wrap_etc .tt-calendar tbody td,
.wrap_etc .link_day {
  font-size: 12px;
  text-align: center;
  color: var(--color-text-secondary);
}

.wrap_etc .tt-calendar tbody td a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.wrap_etc .day_event { text-decoration: none; font-weight: 500; color: var(--color-accent); }

/* Archive list */
.list_keep {
  padding-top: 2px;
}

.list_keep li {
  padding: 2px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.list_keep .link_keep {
  color: var(--color-text-secondary);
}

.list_keep .link_keep:hover { color: var(--color-accent); text-decoration: none; }

/* Visitor */
.box_visitor {
  margin-top: 0;
  display: flex;
  gap: var(--space-md);
}

.list_visitor, .list_total {
  float: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-secondary);
}

.list_visitor dt, .list_total dt {
  float: none;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1;
  background: none;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.list_visitor dd, .list_total dd {
  float: none;
  font-size: 13px;
  line-height: 1;
  color: var(--color-text);
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Bottom control buttons (write/memo/rss/manage) */
.list_control {
  position: static;
  width: 100%;
  height: auto;
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: 4px;
  opacity: 0.6;
  left: auto;
  bottom: auto;
}

.navi_on .list_control {
  left: auto;
  margin-left: 0;
  opacity: 0.6;
  position: static;
}

.list_control li { float: none; }

.list_control .ico_skin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  font-size: 11px;
  color: var(--color-text-secondary);
  text-indent: 0;
  transition: all var(--transition-fast);
}

.list_control .ico_skin:hover {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.list_control .link_write::after { content: '✎'; font-size: 14px; }
.list_control .link_memo::after { content: '✉'; font-size: 14px; }
.list_control .link_rss::after { content: 'R'; font-weight: 700; font-size: 12px; }
.list_control .link_manage::after { content: '⚙'; font-size: 14px; }

/* ==========================================================================
   Article Layout
   ========================================================================== */
.cont_skin {
  min-height: calc(100vh - var(--header-height));
}

.article_skin {
  width: 100%;
  max-width: var(--content-max-width);
  min-height: auto;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-3xl);
  box-sizing: border-box;
}

#tt-body-index .article_skin { padding-top: var(--space-2xl); }

.article_skin .tit_skin {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.article_skin .index_title { display: none; }

/* ==========================================================================
   Article View (Single Post)
   ========================================================================== */
.area_title {
  margin: 0 0 var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-subtle);
}

.area_title .tit_category {
  display: block;
  margin-bottom: var(--space-md);
}

.area_title .tit_category a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-weight: 500;
  font-size: 12px;
  border-radius: var(--radius-full);
  letter-spacing: -0.01em;
}

.area_title .tit_category a:hover { text-decoration: none; }

.area_title .tit_post {
  padding: 0 0 var(--space-md);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.area_title .info_post,
.area_title .info_post a {
  font-size: 13px;
  color: var(--color-text-muted);
}

.area_title .info_post .txt_bar {
  margin: 0 8px;
}

/* Article body */
.area_view {
  color: var(--color-text);
  word-wrap: break-word;
  font-size: 16px;
  line-height: 1.8;
}

.area_view code {
  font-family: var(--font-mono);
}

.area_view p code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-inline-code-bg);
  margin: 0 2px;
  border: 1px solid var(--color-border-subtle);
  font-size: 0.88em;
  color: var(--color-text);
}

.area_view a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.area_view a:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
  text-decoration: none;
}

.area_view h1,
.area_view h2,
.area_view h3,
.area_view h4 {
  line-height: 1.4;
  margin: 2.2em 0 0.8em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.area_view h2 { font-size: 1.6em; }
.area_view h3 { font-size: 1.3em; }
.area_view h4 { font-size: 1.1em; }

.area_view ul,
.area_view ol {
  margin: 0 auto 1.5em;
  padding: 0 0 0 1.2em;
}

.area_view ul li,
.area_view ol li {
  margin-left: 12px;
  margin-bottom: 6px;
  line-height: 1.7;
}

.area_view ul li { list-style: disc; }
.area_view ol li { list-style: decimal; }

.area_view blockquote {
  padding: var(--space-md) var(--space-lg);
  margin: 1.5em auto;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.area_view blockquote,
.area_view blockquote p {
  font-size: 1em;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.area_view blockquote ol:last-child,
.area_view blockquote ul:last-child,
.area_view blockquote p:last-child { margin-bottom: 0; }

.area_view table { max-width: 100%; }

.area_view iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
}

.area_view img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.area_view .imageblock {
  width: auto !important;
  height: auto !important;
}

.area_view .imageblock img {
  max-width: 100%;
  height: auto;
}

.area_view .imageblock .cap1 { font-size: 0.85em; }

.area_view hr {
  margin: 3em auto;
  border: 0;
  height: 1px;
  background: var(--color-border-subtle);
  max-width: 200px;
}

/* Protected post form */
.protected_form {
  text-align: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.protected_form p {
  margin-bottom: var(--space-md);
  font-size: 15px;
  color: var(--color-text-secondary);
}

.protected_form input {
  -webkit-appearance: none;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  box-sizing: border-box;
  margin-right: var(--space-sm);
  font-family: inherit;
}

.protected_form input:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent-subtle);
}

.protected_form button {
  border-radius: var(--radius-md);
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0 var(--space-md);
  transition: background var(--transition-fast);
}

.protected_form button:hover {
  background: var(--color-accent-hover);
}

/* Tags/etc area */
.area_etc {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.area_etc .list_tag {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.area_etc .list_tag dt {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--space-sm);
}

.area_etc .list_tag dd {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area_etc a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.area_etc a:hover {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  text-decoration: none;
}

/* Related articles */
.area_related {
  position: relative;
  width: 100%;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.area_related .tit_related {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.list_related {
  overflow: hidden;
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.list_related li {
  position: relative;
  float: none;
  margin-right: 0;
}

.list_related .link_related {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 180px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  font-size: 13px;
  box-sizing: border-box;
  text-align: left;
  color: var(--color-text);
  padding: var(--space-md);
  transition: all var(--transition-fast);
}

.list_related .link_related:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.list_related .thumb_type .link_related {
  width: 100%;
  height: 180px;
  border: 1px solid var(--color-border);
  padding: 0;
}

.list_related .frame_related {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  opacity: 1;
}

.thumb_type .frame_related { display: block; }

.list_related .thumb_related {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.list_related .thumb_related .img_related {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list_related .txt_related {
  display: -webkit-box;
  overflow: hidden;
  position: relative;
  z-index: 10;
  max-height: none;
  padding: 0;
  color: var(--color-text);
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  font-weight: 500;
  line-height: 1.5;
}

.list_related .thumb_type .txt_related {
  color: #fff;
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  padding: 0;
}

.list_related .date_related {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: 10;
  width: auto;
  color: var(--color-text-muted);
  font-size: 12px;
}

.list_related .thumb_type .date_related {
  color: rgba(255, 255, 255, 0.85);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  left: auto;
  bottom: auto;
}

.area_related .link_more {
  position: absolute;
  right: 0;
  top: var(--space-xl);
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.area_related .link_more:hover { color: var(--color-accent); }

/* ==========================================================================
   Comments
   ========================================================================== */
#tt-body-page .area_reply { margin-top: var(--space-2xl); }

.area_reply .tit_reply {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.area_reply .fld_reply {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--color-border-subtle);
}

.area_reply .writer_info {
  overflow: hidden;
  margin-bottom: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
}

.area_reply .writer_info .info_name,
.area_reply .writer_info .info_pw {
  float: none;
  flex: 1;
  position: relative;
  margin: 0;
}

.area_reply .writer_info .wrap_info { display: block; }

.area_reply .writer_info .inp_info {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.area_reply .writer_info .inp_info:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent-subtle);
}

.area_reply .reply_write {
  position: relative;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.area_reply .reply_write:focus-within {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent-subtle);
}

.area_reply .lab_write {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 13px;
  color: var(--color-text-muted);
}

.area_reply .tf_reply {
  width: 100%;
  height: 80px;
  border: 0;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
  background: transparent;
}

.area_reply .inp_info,
.area_reply .tf_reply { color: var(--color-text); }

.area_reply .writer_check {
  position: absolute;
  bottom: var(--space-lg);
  right: 110px;
}

.area_reply .writer_check .check_secret {
  float: left;
  overflow: hidden;
  position: relative;
  height: 40px;
  margin-right: var(--space-md);
  line-height: 40px;
}

.area_reply .writer_check .inp_secret {
  float: left;
  width: 18px;
  height: 18px;
  margin: 11px 6px 0 0;
}

.area_reply .writer_check .lab_secret {
  float: left;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.area_reply .writer_check .ico_check { display: none; }

.area_reply .writer_btn {
  float: right;
  margin-top: var(--space-sm);
}

.area_reply .writer_btn .btn_enter {
  float: left;
  width: auto;
  height: 40px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  line-height: 40px;
  background-color: var(--color-accent);
  color: #fff;
  transition: background var(--transition-fast);
}

.area_reply .writer_btn .btn_enter:hover {
  background: var(--color-accent-hover);
}

/* Comment list */
.list_reply .thumb_profile {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: var(--space-md);
  border-radius: 50%;
  background: var(--color-bg-muted);
  margin-top: 2px;
}

.list_reply .img_profile {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.area_reply .list_reply li {
  position: relative;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border-subtle);
  min-height: 40px;
}

#tt-body-page .area_reply .list_reply li.tt_more_preview_comments_wrap {
  padding: var(--space-md);
  min-height: auto;
  border-top: 1px solid var(--color-border-subtle);
}

#tt-body-page .area_reply .list_reply li.tt_more_preview_comments_wrap:hover {
  background-color: var(--color-bg-subtle);
}

#tt-body-page .area_reply .list_reply .tt_more_preview_comments_text {
  color: var(--color-text-muted);
}

.area_reply .list_reply li:first-child { border-top: 0 none; }

#tt-body-page .list_reply li:first-child { padding-top: 0; }

.area_reply .list_reply .re_reply { padding-left: 56px; }

.area_reply .reply_content {
  overflow: hidden;
  display: block;
}

.area_reply .tit_nickname {
  float: left;
  overflow: hidden;
  max-width: 200px;
  margin-right: var(--space-sm);
  color: var(--color-text);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}

.area_reply .txt_date {
  float: left;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.area_reply .txt_reply {
  display: block;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  clear: both;
}

.area_reply .list_reply li:hover .area_more,
.area_reply .list_reply li:hover .area_more .reply_layer { display: block; }

.area_reply .list_reply li:first-child .reply_layer { top: 2px; }

.area_more .reply_layer {
  position: absolute;
  right: 0;
  top: 25px;
}

.area_more .reply_layer .link_reply {
  margin: 0 2px;
  font-size: 12px;
  color: var(--color-accent);
}

.area_more .reply_layer .link_reply:hover { text-decoration: none; }

.area_more { display: none; }

/* ==========================================================================
   List (Index)
   ========================================================================== */
.list_content {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.list_content::after {
  content: '';
  clear: both;
  display: block;
}

.list_content .thumbnail_post {
  float: right;
  width: 120px;
  height: 120px;
  margin: 4px 0 0 var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list_content .thumbnail_post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list_content .link_post {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.list_content .link_post:hover .tit_post {
  color: var(--color-accent);
}

.list_content .tit_post {
  display: block;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.list_content .txt_post {
  display: -webkit-box;
  overflow: hidden;
  margin-top: var(--space-sm);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  vertical-align: top;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.list_content .txt_bar {
  margin: 0 8px;
}

.list_content .detail_info {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0;
}

.list_content .detail_info .link_cate {
  display: inline-block;
  padding: 3px 8px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  margin-right: var(--space-sm);
}

.list_content .detail_info .link_cate:hover { text-decoration: none; }

.list_content .detail_info .txt_date {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Tag / Guestbook
   ========================================================================== */
#tt-body-tag .list_tag {
  overflow: hidden;
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#tt-body-tag .list_tag li {
  float: none;
  margin: 0;
}

#tt-body-tag .list_tag .link_tag {
  display: block;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  line-height: 32px;
  color: var(--color-text-secondary);
  font-size: 13px;
  background: var(--color-bg);
  transition: all var(--transition-fast);
}

#tt-body-tag .list_tag .link_tag:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  text-decoration: none;
}

#tt-body-tag .article_skin,
#tt-body-guestbook .article_skin { padding-top: var(--space-2xl); }

#tt-body-guestbook .list_reply {
  border-bottom: 1px solid var(--color-border-subtle);
}

#tt-body-guestbook .area_reply .fld_reply {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

#tt-body-guestbook .article_skin .tit_skin {
  border: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.article_skin .area_paging {
  height: auto;
  margin-top: var(--space-2xl);
  text-align: center;
}

.area_paging .inner_paging {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  overflow: visible;
}

.area_paging .ico_skin {
  width: 6px;
  height: 10px;
}

.area_paging .btn_prev,
.area_paging .btn_next {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.area_paging .btn_prev:hover,
.area_paging .btn_next:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.area_paging .btn_prev.no-more-prev,
.area_paging .btn_next.no-more-next {
  color: var(--color-text-subtle);
  border-color: var(--color-border-subtle);
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}

.area_paging .ico_prev,
.area_paging .ico_next {
  display: none;
}

.area_paging .link_page span,
.area_paging .interword {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  line-height: 1;
  color: var(--color-text-secondary);
  font-size: 13px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.area_paging .link_page:hover span {
  background: var(--color-bg-muted);
  color: var(--color-text);
  text-decoration: none;
}

.area_paging .link_page .selected {
  background-color: var(--color-text);
  color: #fff;
}

.area_paging .link_page:hover .selected {
  background-color: var(--color-text);
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.area_foot {
  height: 60px;
  border-top: 1px solid var(--color-border-subtle);
  line-height: 60px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2xl);
}

.area_foot .info_copyright {
  min-width: auto;
  margin: 0 auto;
  font-size: 12px;
}

.area_foot .emph_t { color: var(--color-text-secondary); }
.area_foot a:hover { color: var(--color-accent); }

/* ==========================================================================
   Code Block (개발 블로그 중요)
   ========================================================================== */
#article-view pre code.hljs {
  font-size: 13.5px;
  padding: var(--space-lg);
  font-family: var(--font-mono);
  border: solid 1px var(--color-code-border);
  border-radius: var(--radius-md);
  line-height: 1.7;
  overflow: auto;
  background: var(--color-code-bg);
  color: var(--color-code-text);
}

#article-view pre {
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

/* ==========================================================================
   Article View (Keditor)
   ========================================================================== */
#article-view {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  color: var(--color-text);
  min-height: 370px;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.8;
}

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

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

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

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

#article-view p[data-ke-size='size18'] {
  font-size: 1.1em;
  line-height: 1.75;
}

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

#article-view p[data-ke-size='size14'] {
  font-size: 0.9em;
  line-height: 1.7;
}

#article-view h2,
#article-view h3,
#article-view h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 1.8em 0 0.6em;
}

#article-view p + p,
#article-view p { margin-bottom: 1.3em; }

#article-view h2 + h2,
#article-view h3 + h3,
#article-view h4 + h4 { margin: 0; }

#article-view h2 + h3,
#article-view h2 + h4,
#article-view h3 + h4 { margin-top: 10px; }

#article-view h2 + p,
#article-view h3 + p,
#article-view h4 + p,
#article-view h5 + p,
#article-view h6 + p { margin-top: 10px; }

#article-view div[data-ke-type='moreLess'] {
  caret-color: auto;
  background-color: var(--color-bg-subtle);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

#article-view a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: border-color var(--transition-fast);
}

#article-view a:hover {
  border-bottom-color: var(--color-accent);
}

#article-view figure[data-ke-type='contentSearch'] a {
  text-decoration: none;
  border-bottom: 0;
}

/* Blockquote (Keditor) */
#article-view blockquote[data-ke-style='style1'] {
  text-align: center;
  background: none;
  padding: var(--space-lg) 0 0 0;
  font-size: 1.1em;
  color: var(--color-text);
  line-height: 1.7;
  border: 0 none;
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding: var(--space-lg) var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
}

#article-view blockquote[data-ke-style='style2'] {
  border-color: var(--color-accent);
  border-width: 0 0 0 3px;
  border-style: solid;
  padding: 4px 0 4px var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: 1em;
  text-align: left;
  background: none;
  border-radius: 0;
}

#article-view blockquote[data-ke-style='style3'] {
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-subtle);
  text-align: left;
  padding: var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 1em;
  line-height: 1.75;
  border-radius: var(--radius-md);
}

#article-view blockquote {
  display: block;
  margin: 1.5em auto;
  letter-spacing: 0;
}

/* File block */
#article-view figure.fileblock {
  width: 100%;
  max-width: 480px;
  height: auto;
  box-sizing: border-box;
  position: relative;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  box-shadow: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

#article-view figure.fileblock:hover {
  border-color: var(--color-accent);
}

#article-view figure.fileblock a {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  gap: var(--space-md);
}

#article-view figure.fileblock .image {
  float: none;
  width: 32px;
  height: 32px;
  background-image: none;
  margin: 0;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  flex-shrink: 0;
}

#article-view figure.fileblock .image::before {
  content: '📄';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

#article-view figure.fileblock .desc {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  flex: 1;
  min-width: 0;
}

#article-view figure.fileblock .filename {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
}

#article-view figure.fileblock .size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  height: auto;
}

#article-view figure.fileblock a::after { display: none; }

#article-view figure.fileblock .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  height: auto;
  display: block;
  font-weight: 500;
}

/* Image block */
#article-view figure.imageblock {
  display: table;
  position: relative;
  margin: var(--space-lg) 0;
}

#article-view figure.imageblock.alignLeft { text-align: left; }
#article-view figure.imageblock.alignCenter { margin: var(--space-lg) auto; text-align: center; }
#article-view figure.imageblock.alignRight { text-align: right; margin-left: auto; }

#article-view figure.imageblock.floatLeft { float: left; margin-right: var(--space-lg); }
#article-view figure.imageblock.floatRight { float: right; margin-left: var(--space-lg); }
#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;
  border-radius: var(--radius-md);
}

#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.imagegridblock + figure.imagegridblock,
#article-view figure.imagegridblock + figure.imageblock,
#article-view figure.imageblock + figure.imagegridblock { margin-top: var(--space-sm); }

/* Caption */
#article-view figure figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  word-break: break-word;
  padding-top: var(--space-sm);
  min-height: auto;
  caption-side: bottom;
  text-align: center;
  caret-color: auto;
  width: 100%;
  box-sizing: content-box;
  line-height: 1.5;
}

/* Image grid */
#article-view figure.imagegridblock {
  position: relative;
  caret-color: transparent;
  background-color: transparent;
  width: 100%;
  height: auto;
  margin: var(--space-lg) 0;
}

#article-view figure.imagegridblock .image-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

#article-view figure.imagegridblock .image-container > span {
  margin-right: 0;
  margin-top: 0;
}

#article-view figure.imagegridblock img {
  margin: 0;
  height: inherit;
  border-radius: var(--radius-sm);
}

#article-view figure.imagegridblock span img { width: 100%; }

/* Horizontal rules - simplified */
hr[data-ke-style],
#article-view hr[data-ke-style] {
  border: none;
  font-size: 0;
  line-height: 0;
  margin: 3em auto;
  background: none;
  cursor: default !important;
  height: 1px;
  width: 200px;
  padding: 0;
}

hr[data-ke-style='style1'],
hr[data-ke-style='style2'],
hr[data-ke-style='style3'],
hr[data-ke-style='style5'],
hr[data-ke-style='style6'],
#article-view hr[data-ke-style='style1'],
#article-view hr[data-ke-style='style2'],
#article-view hr[data-ke-style='style3'],
#article-view hr[data-ke-style='style5'],
#article-view hr[data-ke-style='style6'] {
  width: 200px;
  height: 1px;
  background: var(--color-border);
  padding: 0;
}

hr[data-ke-style='style4'],
#article-view hr[data-ke-style='style4'] {
  width: 4px;
  height: 40px;
  background: var(--color-border);
  border-radius: 2px;
  padding: 0;
}

hr[data-ke-style='style4'] + hr[data-ke-style='style4'],
#article-view hr[data-ke-style='style4'] + hr[data-ke-style='style4'] { margin-top: 0; }

hr[data-ke-style='style7'],
hr[data-ke-style='style8'],
#article-view hr[data-ke-style='style7'],
#article-view hr[data-ke-style='style8'] {
  width: 200px;
  height: 1px;
  background: var(--color-border);
  padding: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */
#article-view table[data-ke-style] { margin: var(--space-lg) 0; }

#article-view table {
  margin: var(--space-lg) 0;
  border-color: var(--color-border);
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

#article-view table tbody tr { box-sizing: content-box; }

#article-view table td {
  word-break: break-word;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  font-family: var(--font-sans);
  border: 1px solid var(--color-border-subtle);
}

#article-view table[data-ke-style='style1'] tr:first-child td,
#article-view table[data-ke-style='style2'] tr:first-child td,
#article-view table[data-ke-style='style3'] tr:first-child td,
#article-view table[data-ke-style='style9'] tr:first-child td,
#article-view table[data-ke-style='style10'] tr:first-child td,
#article-view table[data-ke-style='style11'] tr:first-child td {
  border-bottom: 2px solid var(--color-text);
  font-weight: 600;
  background: var(--color-bg-subtle);
}

#article-view table[data-ke-style='style8'] tr:first-child td {
  border-bottom: 2px solid var(--color-text);
  font-weight: 600;
  background: var(--color-bg-subtle);
}

#article-view table[data-ke-style='style4'] tr:nth-child(2n) td,
#article-view table[data-ke-style='style5'] tr:nth-child(2n) td,
#article-view table[data-ke-style='style6'] tr:nth-child(2n) td,
#article-view table[data-ke-style='style7'] tr:nth-child(2n) td {
  background-color: var(--color-bg-subtle);
}

#article-view table[data-ke-style='style8'],
#article-view table[data-ke-style='style9'],
#article-view table[data-ke-style='style10'],
#article-view table[data-ke-style='style11'] {
  border-left: 0 none;
  border-right: 0 none;
}

#article-view table[data-ke-style='style8'] td,
#article-view table[data-ke-style='style9'] td,
#article-view table[data-ke-style='style10'] td,
#article-view table[data-ke-style='style11'] td {
  border-right-color: transparent;
  border-left-color: transparent;
}

#article-view table[data-ke-style='style12'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style13'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style14'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style15'] tr:nth-child(odd) td {
  background-color: var(--color-bg-subtle);
}

#article-view table[data-ke-style='style12'] tr td:first-child,
#article-view table[data-ke-style='style13'] tr td:first-child,
#article-view table[data-ke-style='style14'] tr td:first-child,
#article-view table[data-ke-style='style15'] tr td:first-child {
  background-color: var(--color-bg-muted);
  font-weight: 500;
}

#article-view table[data-ke-style='style12'] tr:first-child td,
#article-view table[data-ke-style='style13'] tr:first-child td,
#article-view table[data-ke-style='style14'] tr:first-child td,
#article-view table[data-ke-style='style15'] tr:first-child td {
  background-color: var(--color-text);
  border: 1px solid var(--color-text);
  color: #fff;
  font-weight: 600;
}

#article-view table[data-ke-style='style16'],
#article-view table[data-ke-style='style16'] tr,
#article-view table[data-ke-style='style16'] tr td {
  border-color: transparent;
}

/* Open graph */
#article-view figure[data-ke-type='opengraph'] {
  margin: var(--space-md) 0;
}

#article-view figure[data-ke-type='opengraph'] a {
  box-sizing: initial;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  border: solid 1px var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

#article-view figure[data-ke-type='opengraph'] a:hover {
  border-color: var(--color-accent);
  opacity: 1;
}

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

#article-view figure[data-ke-type='opengraph'] div.og-image button { display: none; }

#article-view figure[data-ke-type='opengraph'] div.og-text {
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  min-width: 0;
}

#article-view figure[data-ke-type='opengraph'] p.og-title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 6px;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

#article-view figure[data-ke-type='opengraph'] .og-desc {
  margin: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  max-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  line-height: 1.5;
}

/* Video */
#article-view figure[data-ke-type='video'] {
  display: block;
  table-layout: fixed;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: var(--space-lg) 0;
}

#article-view figure[data-ke-type='video'][data-ke-style='alignLeft'] { text-align: left; }
#article-view figure[data-ke-type='video'][data-ke-style='alignCenter'] {
  margin: var(--space-lg) auto;
  text-align: center;
}
#article-view figure[data-ke-type='video'][data-ke-style='alignRight'] { text-align: right; margin-left: auto; }

#article-view figure[data-ke-type='video'] img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

#article-view figure[data-ke-type='video'][data-video-host] iframe {
  margin: 0;
  display: block;
  border-radius: var(--radius-md);
}

#article-view figure[data-ke-type='video'] > iframe[width='0'][height='0'] {
  width: 860px;
  height: 484px;
  max-width: 100%;
  border-radius: var(--radius-md);
}

/* More/Less toggle */
#article-view .moreless-content :first-child {
  margin-top: 0;
  margin-bottom: 0;
}

#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(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

/* Lists (Keditor) */
#article-view ul li,
#article-view ol li {
  margin: 0 0 6px 22px;
  line-height: 1.75;
}

#article-view ul,
#article-view ol {
  margin: 1em auto 1.5em;
  padding: 0 0 0 10px;
}

/* Emoticons */
#article-view figure[data-ke-type=emoticon][data-ke-align=alignCenter] { text-align: center; }
#article-view figure[data-ke-type=emoticon][data-ke-align=alignLeft] { text-align: left; }
#article-view figure[data-ke-type=emoticon][data-ke-align=alignRight] { text-align: right; }

/* Map */
#article-view figure[data-ke-type='map'],
#article-view iframe[data-ke-type='map'] {
  display: block;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-md);
}

/* Image slide - simplified */
#article-view figure.imageslideblock {
  clear: both;
  position: relative;
  font-size: 0;
  outline: 0 none;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-lg) 0;
}

#article-view figure.imageslideblock div.image-container {
  position: relative;
  min-width: 480px;
  max-width: 100%;
  min-height: 300px;
  max-height: 860px;
  background-color: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

#article-view figure.imageslideblock div.image-container span.image-wrap { display: none; }
#article-view figure.imageslideblock div.image-container span.image-wrap.selected { display: inline; }

#article-view figure.imageslideblock div.image-container img {
  max-width: 100%;
  max-height: 100%;
}

#article-view figure.imageslideblock div.mark {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 32px;
  align-items: center;
  padding: var(--space-md) 0;
}

#article-view figure.imageslideblock div.mark span {
  width: 20px;
  height: 3px;
  display: inline-block;
  margin: 0;
  background-color: var(--color-border);
  text-indent: -10000px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--transition-fast);
}

#article-view figure.imageslideblock div.mark span:first-child {
  background-color: var(--color-text);
}

#article-view figure.imageslideblock figcaption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Legacy editor */
.btn_more, .btn_less {
  border: 0;
  background: transparent;
  display: block;
  height: auto;
  padding: var(--space-sm) 0;
  margin: var(--space-md) 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
  position: relative;
  width: 100%;
  text-align: left;
}

.btn_less::before,
.btn_more::before {
  content: "...";
  display: inline-block;
  padding-right: 5px;
  font-size: 14px;
  line-height: 1;
  vertical-align: top;
}

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

/* ==========================================================================
   Comment styling (TT comment)
   ========================================================================== */
.tt-comment-cont .tt-box-total .tt_txt_g { font-size: 14px; }
.tt-comment-cont .tt-box-total .tt_num_g {
  font-size: 14px;
  color: var(--color-accent);
}
.tt-comment-cont .tt-wrap-cmt .tt-link-user { font-size: 14px; font-weight: 600; }
.tt-comment-cont .tt-wrap-cmt .tt_desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.tt-comment-cont .tt-txt-mention { color: var(--color-text-secondary); }
.tt-comment-cont .tt-wrap-cmt .tt_txt_g { color: var(--color-accent); }
.tt-comment-cont .tt-wrap-cmt .tt_num_g { color: var(--color-accent); }
.tt-comment-cont .tt-btn_register {
  width: auto;
  padding: 0 var(--space-lg);
  height: 40px;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  border-color: var(--color-accent);
  font-weight: 600;
}
.tt-comment-cont .tt-btn_register:hover,
.tt-comment-cont .tt-btn_register:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media only screen and (max-width: 768px) {
  :root {
    --space-3xl: 48px;
    --space-2xl: 40px;
    --space-xl: 24px;
  }

  .wrap_skin {
    min-width: 100%;
    padding-left: 0;
  }

  .area_head {
    width: 100%;
    padding: 0 var(--space-md);
  }

  .area_head .btn_cate {
    width: 40px;
    height: 40px;
  }

  .area_head .area_profile .link_post {
    font-size: 15px;
    max-width: 180px;
  }

  .area_head .area_profile .thumb_profile {
    width: 28px;
    height: 28px;
  }

  .navi_on .wrap_sub {
    width: 85%;
    max-width: 320px;
  }

  .search_on .area_search {
    top: 12px;
    left: var(--space-md);
    right: var(--space-md);
    width: auto;
  }

  .area_search .frm_search {
    width: 100%;
    right: 0;
    top: 12px;
  }

  .article_skin {
    padding: var(--space-2xl) var(--space-md) var(--space-2xl);
  }

  .area_title .tit_post {
    font-size: 26px;
  }

  .area_view {
    font-size: 15px;
  }

  #article-view {
    font-size: 15px;
  }

  .list_content .tit_post {
    font-size: 18px;
  }

  .list_content .thumbnail_post {
    width: 80px;
    height: 80px;
    margin-left: var(--space-md);
  }

  .list_related {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  #article-view figure[data-ke-type='opengraph'] a {
    height: 90px;
  }

  #article-view figure[data-ke-type='opengraph'] div.og-image {
    width: 90px;
    height: 90px;
  }

  #article-view figure[data-ke-type='opengraph'] div.og-text {
    padding: var(--space-sm) var(--space-md);
  }

  #article-view figure[data-ke-type='opengraph'] p.og-title {
    font-size: 14px;
    -webkit-line-clamp: 1;
  }

  #article-view figure[data-ke-type='opengraph'] .og-desc {
    display: none;
  }

  #tistorytoolbarid { display: none; }
}

@media only screen and (max-width: 480px) {
  .area_reply .tit_nickname {
    max-width: 140px;
  }

  .list_related {
    grid-template-columns: 1fr;
  }
}

/* Dark mode support (optional - respects user preference) */
@media (prefers-color-scheme: dark) {
  /* Keeping light mode default as requested, but ready for future expansion */
}

/* Selection */
::selection {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 입력 필드는 자체 focus 스타일 사용 */
input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Home Sections (Right Sidebar Layout)
   ========================================================================== */

/* 홈 전용 2컬럼 레이아웃 */
#tt-body-index .article_skin {
  max-width: 1120px;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.home_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-2xl);
  align-items: start;
}

.home_main {
  min-width: 0;
}

.home_aside {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home_panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home_panel_header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
}

.home_panel_title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.home_panel_title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 2px;
}

.home_panel_desc {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Category List (사이드바에서는 세로 리스트) */
.category_list_aside {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -6px;
}

.category_list_aside .category_card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  transition: background var(--transition-fast);
  min-height: auto;
}

.category_list_aside .category_card::before { display: none; }

.category_list_aside .category_card:hover {
  background: var(--color-bg-muted);
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.category_list_aside .category_card_name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  display: block;
}

.category_list_aside .category_card_meta {
  font-size: 11px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 8px;
}

.category_list_aside .category_card_count {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 11px;
}

/* Activity Graph (컴팩트 사이드바 버전) */
.activity_graph_wrap {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.activity_graph {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: flex-end;
}

.activity_graph::-webkit-scrollbar { display: none; }

.activity_graph_col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.activity_cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--color-bg-muted);
  transition: transform var(--transition-fast);
  cursor: default;
}

.activity_cell[data-level="0"] { background: #f1f1f4; }
.activity_cell[data-level="1"] { background: #dbeafe; }
.activity_cell[data-level="2"] { background: #93c5fd; }
.activity_cell[data-level="3"] { background: #3b82f6; }
.activity_cell[data-level="4"] { background: #1d4ed8; }

.activity_cell:hover {
  outline: 1.5px solid var(--color-text);
  outline-offset: 1px;
  position: relative;
  z-index: 1;
}

.activity_summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-subtle);
  font-size: 11px;
  color: var(--color-text-muted);
}

.activity_summary_text {
  font-variant-numeric: tabular-nums;
}

.activity_summary strong {
  color: var(--color-text);
  font-weight: 600;
}

.activity_legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 10px;
  color: var(--color-text-muted);
}

.activity_legend_cells {
  display: flex;
  gap: 2px;
  margin: 0 4px;
}

.activity_legend_cell {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.activity_loading,
.activity_error {
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.activity_tooltip {
  position: fixed;
  padding: 6px 10px;
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
}

.activity_tooltip.visible { opacity: 1; }

.activity_tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--color-text);
}

/* Responsive: 사이드바를 본문 아래로 */
@media only screen and (max-width: 1024px) {
  #tt-body-index .article_skin {
    max-width: var(--content-max-width);
  }

  .home_layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .home_aside {
    position: static;
    flex-direction: row;
    gap: var(--space-md);
  }

  .home_panel {
    flex: 1;
    min-width: 0;
  }
}

@media only screen and (max-width: 768px) {
  .home_aside {
    flex-direction: column;
  }

  .activity_cell {
    width: 10px;
    height: 10px;
  }

  .area_search {
    max-width: none;
    padding: 0 var(--space-sm);
  }

  .area_search .frm_search {
    height: 36px;
  }
}