@charset "utf-8";

:root {
  --main-bg: #F0F4F8;
  --primary-blue: #BBDEFB;
  --deep-blue: #64B5F6;
  --surface-card: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.1); 
  --text-primary: #243B53;
  --text-secondary: #627D98;
  --link-color: #0070d1;
}

:root[data-theme="dark"] {
  --main-bg: #1A202C;
  --primary-blue: #2B6CB0;
  --deep-blue: #63B3ED;
  --surface-card: rgba(45, 55, 72, 0.65);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #E2E8F0;
  --text-secondary: #A0AEC0;
  --link-color: #63B3ED;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --main-bg: #1A202C;
    --primary-blue: #2B6CB0;
    --deep-blue: #63B3ED;
    --surface-card: rgba(45, 55, 72, 0.65);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #E2E8F0;
    --text-secondary: #A0AEC0;
    --link-color: #63B3ED;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
li { list-style: none; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--main-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

.glass-effect {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-glass);
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#header .inner {
  max-width: 1800px;
  width: 95%;
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header h1 a { 
  font-size: 1.5rem; font-weight: 700; color: var(--text-primary); 
  display: inline-block; transition: all 0.3s ease; 
}
#header h1 a:hover { color: var(--deep-blue); transform: translateY(-2px); }

#header .util { display: flex; align-items: center; }
#header .util .menu { display: none; }

.theme-text-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.theme-text-btn:hover { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }

#container .content-wrap {
  max-width: 1800px;
  width: 95%;
  margin: 40px auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
}
#container .content-wrap.has-toc {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.section-title {
  font-size: 1.5rem; margin-bottom: 20px; border-bottom: 2px solid var(--primary-blue); display: inline-block; padding-bottom: 5px;
}
.card-grid, .article-wrap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px;
}
.post-card {
  border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column;
}
.post-card .rp-count { color: var(--deep-blue); font-size: 0.9rem; margin-left: 6px; font-weight: 700; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.card-thumbnail { width: 100%; height: 220px; overflow: hidden; background-color: var(--border-glass); }
.card-thumbnail:not(:has(img)) { display: block; background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue)); position: relative; }
.card-thumbnail:not(:has(img))::after { content: "NO IMAGE"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.8); font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; }
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .card-thumbnail img { transform: scale(1.05); }

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; line-height: 1.4; color: var(--text-primary); }
.card-excerpt { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { font-size: 0.85rem; color: var(--text-secondary); margin-top: auto; }

.post-view { border-radius: 16px; padding: 50px; margin-bottom: 40px; }
.post-header { margin-bottom: 30px; border-bottom: 1px solid var(--border-glass); padding-bottom: 20px; }

.post-header .category a { 
  color: var(--deep-blue); font-weight: 600; font-size: 0.95rem; 
  display: inline-block; position: relative; transition: all 0.3s ease; 
  text-decoration: none;
}
.post-header .category a::after {
  content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; 
  background-color: var(--deep-blue); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.post-header .category a:hover { transform: translateY(-2px); }
.post-header .category a:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.post-header h1 { font-size: 2.2rem; margin: 15px 0; color: var(--text-primary); line-height: 1.3; }
.post-header .meta { font-size: 0.9rem; color: var(--text-secondary); display: flex; gap: 15px; }

#article-view { max-width: 100%; margin: 0; }

.tags { 
  max-width: 100%; margin: 40px 0 0 0; padding-top: 20px; border-top: 1px dashed var(--border-glass); 
  font-size: 0 !important; color: transparent !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start;
}
.tags a { 
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 6px 16px; background: var(--surface-card); border: 1px solid var(--border-glass); 
  border-radius: 20px; font-size: 0.85rem !important; margin: 0; 
  color: var(--text-secondary) !important; text-decoration: none !important; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.tags a::before { 
  content: '\f02b'; font-family: "Font Awesome 6 Free"; font-weight: 900; 
  margin-right: 6px; font-size: 0.8rem; opacity: 0.7; 
}
.tags a:hover { 
  background: var(--deep-blue); color: #fff !important; border-color: var(--deep-blue); 
  transform: translateY(-3px); box-shadow: 0 6px 15px rgba(100, 181, 246, 0.3); 
}

.related-articles { padding: 40px; }
.related-title {
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; font-size: 1.15rem; color: var(--text-primary); margin-bottom: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis;
}
.related-cat-link {
  font-size: 1.15rem; font-weight: 700; color: var(--deep-blue) !important; text-decoration: none !important; position: relative; transition: transform 0.3s; display: inline-block; margin-right: 5px;
}
.related-cat-link::after {
  content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: var(--deep-blue); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.related-cat-link:hover { transform: translateY(-2px); }
.related-cat-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.related-articles ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; padding: 0; }
.related-articles li { list-style: none; }
.related-articles li a { display: block; text-decoration: none; transition: transform 0.3s ease; }
.related-articles li a:hover { transform: translateY(-5px); }

.related-articles figure { width: 100%; height: 120px; overflow: hidden; border-radius: 8px; background: var(--border-glass); margin: 0 0 8px 0; position: relative; }
.related-articles figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.related-articles li a:hover figure img { transform: scale(1.05); }
.related-articles span { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block; margin-top: 8px; }

.related-articles figure:not(:has(img)) { background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue)); }
.related-articles figure:not(:has(img))::after {
  content: "NO IMAGE"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px;
}

.sidebar { border-radius: 16px; padding: 30px 20px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-module { margin-bottom: 35px; }
.sidebar-module:last-child { margin-bottom: 0; }
.sidebar-module h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; }

.profile-module { text-align: center; }
.profile-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.profile-title { 
  display: inline-block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; 
  transition: all 0.3s ease; text-decoration: none;
}
.profile-title:hover { color: var(--deep-blue); transform: translateY(-2px); }

.profile-desc { display: block; font-size: 0.85rem; color: var(--text-secondary); }

.search-module .search-wrap { display: flex; background: rgba(0, 0, 0, 0.03); border: 1px solid var(--border-glass); border-radius: 8px; padding: 8px 12px; align-items: center; transition: all 0.3s ease; }
:root[data-theme="dark"] .search-module .search-wrap { background: rgba(0, 0, 0, 0.2); }
.search-module .search-wrap:focus-within { border-color: var(--deep-blue); box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2); }
.search-module input { flex: 1; border: none; background: transparent; color: var(--text-primary); outline: none; font-size: 0.85rem; width: 100%;}
.search-module button { background: transparent; border: none; font-size: 0.9rem; cursor: pointer; color: var(--text-secondary); }

.counter-module { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 5px; }
.counter-module .label { font-size: 0.75rem; color: var(--text-secondary); display: block; margin-bottom: 2px; }
.counter-module .count { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; display: block; }
.counter-total .count { font-size: 1.15rem; }
.counter-today-yesterday { display: flex; gap: 15px; text-align: right; }

.menu-module ul li { margin-bottom: 8px; }
.menu-module ul li a { color: var(--text-secondary); font-size: 0.95rem; display: inline-block; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease; transform: translateX(0); }
.menu-module ul li a:hover { color: var(--deep-blue); transform: translateX(8px); }

.category-module ul { list-style: none; padding: 0; margin: 0; }
.category-module li { position: relative; padding: 6px 0; }
.category-module li a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color 0.2s; display: inline-block; }
.category-module li a:hover { color: var(--deep-blue); }
.category-module .c_cnt { font-size: 0.8rem; color: var(--text-secondary); margin-left: 4px; }
.category-module .link_tit { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary);}
.category-module li ul { padding-left: 15px; margin-top: 5px; border-left: 2px solid var(--border-glass); }
.cat-toggle { position: absolute; right: 0; top: 6px; cursor: pointer; color: var(--text-secondary); font-size: 0.85rem; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: transform 0.4s ease; z-index: 10; }
.category-module li.open > .cat-toggle { transform: rotate(180deg); }
.category-module li.has-sub > a { padding-right: 30px; box-sizing: border-box; }

.tag-module ul { display: flex; flex-direction: column; gap: 8px; }
.tag-module ul li a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; display: flex; align-items: center; }
.tag-module ul li a::before { content: "\f02b"; font-family: "FontAwesome"; margin-right: 8px; font-size: 0.8rem; opacity: 0.7; }
.tag-module ul li a:hover { color: var(--deep-blue); }

.post-list-module ul { display: flex; flex-direction: column; gap: 16px; }
.post-list-module ul li a { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; transition: transform 0.2s ease; }
.post-list-module ul li a:hover { transform: translateX(5px); }
.post-list-module .text-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.post-list-module .title { font-size: 0.85rem; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500;}
.post-list-module .date { font-size: 0.75rem; color: var(--text-secondary); }
.post-list-module img { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-glass); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination .selected { 
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px; border-radius: 10px; background: var(--surface-card); border: 1px solid var(--border-glass); font-weight: 500; color: var(--text-primary); text-align: center; line-height: 1; box-sizing: border-box; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.pagination a:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.pagination .selected { background: var(--deep-blue) !important; color: #fff !important; border-color: var(--deep-blue) !important; }
.pagination a:has(.selected) { background: var(--deep-blue) !important; color: #fff !important; border-color: var(--deep-blue) !important; padding: 0 !important; }
.pagination a .selected { background: transparent !important; border: none !important; color: inherit !important; min-width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; box-shadow: none !important; }

#footer { padding: 40px 20px; text-align: center; color: var(--text-secondary); margin-top: 40px; }

@media screen and (max-width: 1200px) {
  #container .content-wrap, #container .content-wrap.has-toc { grid-template-columns: 280px minmax(0, 1fr) !important; }
  .toc-wrap { display: none !important; }
}

@media screen and (max-width: 767px) {
  #container .content-wrap, #container .content-wrap.has-toc { grid-template-columns: 1fr !important; gap: 30px; margin: 20px auto; width: 90%; }
  .card-grid, .article-wrap-grid { grid-template-columns: 1fr; gap: 16px; }
  #header .util .menu { display: block; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }
  #aside { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; z-index: 1100; border-radius: 0; border-left: 1px solid var(--border-glass); transition: right 0.3s ease-in-out; overflow-y: auto; max-height: none; }
  #aside.open { right: 0; }
  #aside .close-btn { display: block !important; position: absolute; top: 20px; right: 20px; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); z-index: 100;}
  .post-view { padding: 30px 20px; }
  .post-header h1 { font-size: 1.5rem; }
}

#article-view { word-wrap: break-word; }
#article-view h2[data-ke-size] { font-size: 1.62em; line-height: 1.46; }
#article-view h3[data-ke-size] { font-size: 1.44em; line-height: 1.48; }
#article-view p { font-size: 1.05em; line-height: 1.75; margin-bottom: 25px; color: var(--text-primary); }
#article-view a { color: var(--link-color); text-decoration: underline; }

#article-view blockquote[data-ke-style='style2'] { border-color: var(--deep-blue); border-width: 0 0 0 4px; border-style: solid; padding: 1px 0 0 12px; color: var(--text-secondary); line-height: 1.75; text-align: left; }
#article-view blockquote[data-ke-style='style3'] { border: 1px solid var(--border-glass); background-color: var(--surface-card); text-align: left; padding: 21px 25px 20px 25px; color: var(--text-secondary); border-radius: 8px; }

#article-view figure.imageblock, #article-view figure.video { margin: 20px 0; }
#article-view figure img, #article-view figure iframe { max-width: 100%; border-radius: 12px; height: auto; }
#article-view figure figcaption { font-size: 13px; color: var(--text-secondary); padding-top: 10px; text-align: center; }

#article-view table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
#article-view table td, #article-view table th { border: 1px solid var(--border-glass); padding: 10px; color: var(--text-primary); }

#article-view ul, #article-view ol { margin: 14px auto 24px; padding: 0 0 0 20px; color: var(--text-primary); }
#article-view ul li, #article-view ol li { margin-bottom: 5px; line-height: 1.7; }

#article-view pre code.hljs { font-family: 'D2Coding', 'Fira Code', Consolas, monospace; font-size: 0.9rem; line-height: 1.6; padding: 20px; border-radius: 12px; background-color: #282A36; color: #F8F8F2; overflow-x: auto; margin: 20px 0; box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); }

#article-view code:not(pre code) { background-color: var(--border-glass); color: var(--deep-blue); padding: 3px 8px; border-radius: 6px; font-family: 'D2Coding', 'Fira Code', Consolas, monospace; font-size: 0.9em; word-break: break-word; }
:root[data-theme="dark"] #article-view code:not(pre code) { color: #ff79c6; background-color: rgba(255, 255, 255, 0.15); }

.another_category { display: none !important; }

.container_postbtn {
  max-width: 100% !important; margin: 40px 0 20px 0 !important;
  display: flex !important; gap: 10px !important; align-items: center !important; justify-content: flex-start !important; padding: 0 !important;
  border: none !important; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.container_postbtn .postbtn_like { 
  display: flex !important; gap: 10px !important; margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important;
}

.container_postbtn .wrap_btn, 
.container_postbtn .btn_subscription,
.container_postbtn [data-tistory-react-app="SupportButton"] button,
.container_postbtn > button.btn_post {
  width: 44px !important; height: 44px !important; border-radius: 12px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: var(--surface-card) !important; border: 1px solid var(--border-glass) !important;
  padding: 0 !important; box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; color: var(--text-primary) !important;
  position: relative !important; cursor: pointer !important; box-sizing: border-box !important;
}

.container_postbtn .ico_postbtn:not(.ico_like),
.container_postbtn .txt_like:not(.uoc-count),
.container_postbtn .txt_share,
.container_postbtn .txt_state,
.container_postbtn .btn_subscription *,
.container_postbtn [data-tistory-react-app="SupportButton"] button *,
.container_postbtn > button.btn_post * { display: none !important; }

.container_postbtn .wrap_btn_share > button.btn_post::before,
.container_postbtn .wrap_btn:has(.ico_statistics) > button.btn_post::before,
.container_postbtn > button.btn_post[data-tiara-action-name="글통계_클릭"]::before,
.container_postbtn .wrap_btn_etc > button.btn_post::before,
.container_postbtn > button.btn_post.btn_etc1::before,
.container_postbtn > button.btn_post.btn_etc2::before,
.container_postbtn .btn_subscription::before,
.container_postbtn [data-tistory-react-app="SupportButton"] button::before {
  font-family: "Font Awesome 6 Free"; font-size: 1.2rem; display: block !important; font-weight: 900; line-height: 1; color: inherit;
}

.container_postbtn .wrap_btn_share > button.btn_post::before { content: '\f14d'; } 
.container_postbtn .wrap_btn:has(.ico_statistics) > button.btn_post::before,
.container_postbtn > button.btn_post[data-tiara-action-name="글통계_클릭"]::before { content: '\f080'; } 
.container_postbtn .wrap_btn_etc > button.btn_post::before,
.container_postbtn > button.btn_post.btn_etc1::before,
.container_postbtn > button.btn_post.btn_etc2::before { content: '\f141'; } 
.container_postbtn .btn_subscription::before { content: '\f005'; font-weight: 400; } 
.container_postbtn .btn_subscription.following::before { font-weight: 900; color: #ffca28 !important; } 
.container_postbtn [data-tistory-react-app="SupportButton"] button::before { content: '\f4c0'; } 

.container_postbtn .wrap_btn[id^="reaction-"] { 
  width: auto !important; padding: 0 16px !important; overflow: hidden !important; 
}
.container_postbtn .wrap_btn[id^="reaction-"] > button.btn_post {
  width: 100% !important; height: 100% !important; background: transparent !important;
  border: none !important; cursor: pointer !important; padding: 0 !important; color: inherit !important;
}
.container_postbtn .wrap_btn[id^="reaction-"] svg,
.container_postbtn .wrap_btn[id^="reaction-"] img,
.container_postbtn .wrap_btn[id^="reaction-"] .ico_like { display: none !important; }

.container_postbtn .wrap_btn[id^="reaction-"] div.uoc-icon {
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; height: 100% !important;
}

.container_postbtn .wrap_btn[id^="reaction-"] div.uoc-icon::before {
  content: '\f004'; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 1.1rem; transition: all 0.3s ease; color: currentColor; display: block;
}
.container_postbtn .wrap_btn[id^="reaction-"] button[data-is-liked="true"] div.uoc-icon::before,
.container_postbtn .wrap_btn[id^="reaction-"] div.uoc-icon.like_on::before {
  font-weight: 900 !important; color: #e74c3c !important;
}

.container_postbtn .wrap_btn[id^="reaction-"] div.uoc-icon::after {
  font-family: "Pretendard", sans-serif; font-size: 0.95rem; font-weight: 600; color: currentColor; display: block; margin-right: 4px;
}
.container_postbtn .wrap_btn[id^="reaction-"] .uoc-count {
  display: block !important; font-size: 0.95rem !important; font-weight: 600 !important; font-family: "Pretendard", sans-serif !important;
  color: var(--deep-blue) !important; line-height: 1 !important; margin: 0 !important; padding: 0 !important; transition: color 0.3s ease;
}

.container_postbtn .wrap_btn[id^="reaction-"] > button.btn_post:active {
  transform: scale(0.92);
}

.container_postbtn .wrap_btn:hover, 
.container_postbtn .btn_subscription:hover,
.container_postbtn [data-tistory-react-app="SupportButton"] button:hover,
.container_postbtn > button.btn_post:hover { 
  background: var(--deep-blue) !important; color: #fff !important; border-color: var(--deep-blue) !important; 
  transform: translateY(-3px) !important; box-shadow: 0 6px 15px rgba(100, 181, 246, 0.3) !important; 
}
.container_postbtn .wrap_btn[id^="reaction-"]:hover .uoc-count,
.container_postbtn .wrap_btn[id^="reaction-"]:hover div.uoc-icon::after {
  color: #fff !important;
}
.container_postbtn .wrap_btn[id^="reaction-"]:hover button[data-is-liked="true"] div.uoc-icon::before,
.container_postbtn .wrap_btn[id^="reaction-"]:hover div.uoc-icon.like_on::before {
  color: #fff !important;
}

.container_postbtn .wrap_btn .layer_post { 
  display: none !important; position: absolute !important; bottom: calc(100% + 15px) !important; left: 0 !important; 
  background: var(--surface-card) !important; border: 1px solid var(--border-glass) !important; border-radius: 12px !important; 
  padding: 10px !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; z-index: 100 !important; width: 160px !important; 
}
.container_postbtn .wrap_btn .layer_post::after {
  content: ''; position: absolute; bottom: -20px; left: 0; width: 100%; height: 20px; background: transparent;
}
.container_postbtn .wrap_btn:hover .layer_post { display: flex !important; flex-direction: column !important; gap: 5px !important; }

.container_postbtn .wrap_btn:hover .layer_post * { color: var(--text-primary) !important; }

.container_postbtn .wrap_btn .layer_post .bundle_post { flex-direction: column !important; gap: 5px !important; width: 100% !important; display: flex !important; }
.container_postbtn .wrap_btn .layer_post .btn_mark {
  display: flex !important; width: 100% !important; align-items: center !important; gap: 8px !important; justify-content: flex-start !important;
  padding: 8px 12px !important; background: transparent !important; border: none !important;
  font-size: 0.95rem !important; cursor: pointer !important; border-radius: 8px !important;
  transition: background 0.2s !important; text-decoration: none !important; box-shadow: none !important; color: var(--text-primary) !important;
}
.container_postbtn .wrap_btn .layer_post .btn_mark:hover { background: rgba(0,0,0,0.05) !important; transform: none !important; color: var(--deep-blue) !important; }
:root[data-theme="dark"] .container_postbtn .wrap_btn .layer_post .btn_mark:hover { background: rgba(255,255,255,0.1) !important; }

.container_postbtn .wrap_btn .layer_post .btn_mark span { display: inline-block !important; font-size: 0.95rem !important; font-family: inherit !important;}
.container_postbtn .wrap_btn .layer_post .ico_sns { display: inline-block !important; width: 20px !important; height: 20px !important; } 
.container_postbtn .wrap_btn .layer_post .ico_postbtn.ico_arrbt { display: none !important; } 


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

.custom-namecard { display: flex; align-items: center; gap: 20px; padding: 30px; border-radius: 16px; margin: 40px 0; background: var(--surface-card); border: 1px solid var(--border-glass); box-shadow: 0 4px 15px rgba(0,0,0,0.03); backdrop-filter: blur(12px); }
.custom-namecard img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-glass); }

.custom-namecard .profile-info .title a { 
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary); text-decoration: none; 
  display: inline-block; margin-bottom: 4px; transition: all 0.3s ease; 
}
.custom-namecard .profile-info .title a:hover { color: var(--deep-blue); transform: translateY(-2px); }

.custom-namecard .profile-info .desc { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }

.custom-comment-wrap { padding: 40px; border-radius: 16px; }
.comment-count-header { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); border-bottom: 2px solid var(--border-glass); padding-bottom: 15px; margin-bottom: 30px; }
.comment-count-header span { color: var(--deep-blue); }

.comment-write-box { background: var(--surface-card); border: 1px solid var(--border-glass); border-radius: 16px; padding: 20px; margin-bottom: 40px; }
.guest-inputs { display: flex; gap: 10px; margin-bottom: 15px; }
.guest-inputs input { flex: 1; padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border-glass); background: rgba(0,0,0,0.03); color: var(--text-primary); font-size: 0.9rem; outline: none; transition: border-color 0.3s; }
.guest-inputs input:focus { border-color: var(--deep-blue); }
:root[data-theme="dark"] .guest-inputs input { background: rgba(0,0,0,0.15); }

.textarea-wrapper { display: flex; flex-direction: column; }
.textarea-wrapper textarea { width: 100%; min-height: 80px; border: none; background: transparent; color: var(--text-primary); font-family: inherit; font-size: 0.95rem; outline: none; resize: none; margin-bottom: 15px; }

.textarea-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border-glass); padding-top: 15px; }
.secret-toggle { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 0.9rem; cursor: pointer; }
.secret-toggle input { margin: 0; cursor: pointer; }

.submit-btn { background: var(--deep-blue); color: #fff; border: none; border-radius: 8px; padding: 8px 24px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { background: #1976D2; transform: translateY(-2px); }

.comment-list { padding: 0; list-style: none; margin: 0; }
.comment-item { margin-bottom: 25px; }
.comment-body { display: flex; gap: 15px; }
.cmt-profile { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-glass); flex-shrink: 0; }
.cmt-content { flex: 1; border-bottom: 1px dashed var(--border-glass); padding-bottom: 25px; }
.comment-item:last-child > .comment-body > .cmt-content { border-bottom: none; padding-bottom: 0; }
.reply-list .cmt-content { border-bottom: none; padding-bottom: 15px; }

.cmt-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cmt-name { font-weight: 700; color: var(--text-primary); font-size: 1.05rem; }
.cmt-date { font-size: 0.85rem; color: var(--text-secondary); }
.cmt-text { font-size: 0.95rem; color: var(--text-primary); line-height: 1.6; margin-bottom: 12px; word-break: break-all; }
.cmt-actions { display: flex; gap: 10px; font-size: 0.85rem; }
.cmt-actions a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.cmt-actions a:hover { color: var(--deep-blue); }

.reply-list { list-style: none; padding-left: 60px; margin-top: 25px; }

.floating-admin { position: fixed; bottom: 30px; right: 30px; display: none; flex-direction: column; gap: 12px; z-index: 9999; }
.floating-admin.show { display: flex; }
.floating-admin .fab-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; font-size: 0; color: transparent; overflow: hidden; position: relative; }
.floating-admin .fab-btn:nth-child(1) { background-color: var(--deep-blue); }
.floating-admin .fab-btn:nth-child(2) { background-color: #94A3B8; }
.floating-admin .fab-btn::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.floating-admin .fab-btn:nth-child(1)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z'/%3E%3C/svg%3E"); }
.floating-admin .fab-btn:nth-child(2)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E"); }
.floating-admin .fab-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
@media screen and (max-width: 767px) { .floating-admin { bottom: 20px; right: 20px; gap: 10px; } .floating-admin .fab-btn { width: 45px; height: 45px; } .floating-admin .fab-btn::after { width: 20px; height: 20px; } }

.toc-wrap { position: relative; }
.toc-inner { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 20px; border-radius: 16px; -ms-overflow-style: none; scrollbar-width: none; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc-title { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; border-bottom: 2px solid var(--primary-blue); padding-bottom: 5px;}
.toc-wrap a { 
  display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; 
  transition: all 0.3s ease; line-height: 1.4; transform: translateX(0); text-decoration: none;
}
.toc-wrap a:hover, .toc-wrap a.active { 
  color: var(--deep-blue); font-weight: 600; transform: translateX(8px);
}
.toc-h2 { margin-left: 0; margin-top: 10px; font-weight: 600; color: var(--text-primary) !important; }
.toc-h3 { margin-left: 12px; }
.toc-h4 { margin-left: 24px; }