@charset "UTF-8";

/* ==========================================================================
   0. DESIGN SYSTEM TOKENS & SYSTEM VARIABLES (TOSS × BLOOMBERG STYLE)
   ========================================================================== */
:root {
  /* Brand & Core Palette */
  --brand: #0064ff;
  /* Toss Blue */
  --brand-hover: #0051cc;
  /* Deep Toss Blue */
  --brand-light: #e8f3ff;
  /* Soft Active Background */

  /* Bloomberg High-Contrast Inks */
  --ink-900: #0b0d12;
  /* Pure Slate Pitch Black */
  --ink-800: #1b1e26;
  /* Secondary Slate Text */
  --ink-700: #2b2f38;
  /* Body Main Slate */
  --ink-600: #404654;
  /* Body Muted Gray */
  --ink-500: #5b606b;
  /* Placeholder Text */
  --ink-400: #8a8f99;
  /* Border/Disabled text */
  --ink-300: #c1c5cc;
  /* Dark Muted Border */
  --ink-200: #ececef;
  /* Soft Standard Border */
  --ink-100: #f5f6f8;
  /* Soft Muted Background */

  /* Market Colorway (Bloomberg Core) */
  --market-up: #ff3b30;
  /* Positive Crimson delta */
  --market-down: #0064ff;
  /* Negative Blue delta */
  --market-bg-up: #fff2f2;
  --market-bg-down: #e8f3ff;

  /* Theme Surfaces */
  --bg-primary: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-hover: rgba(0, 100, 255, 0.04);
  --line: #ececef;
  --line-light: rgba(236, 237, 239, 0.6);

  /* Structural Dimensions */
  --header-h: 72px;
  --container-w: 1200px;
  --container-article-w: 780px;

  /* Motion & Dynamics */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
  --duration-long: 0.4s;

  /* Modern Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-bento: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 16px rgba(0, 0, 0, 0.02);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--ink-700);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic",
    system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

input,
textarea,
button {
  font-family: inherit;
  color: inherit;
  outline: none;
}

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

/* Accessibility skip navigation */
.skip-nav {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 600;
  transition: top var(--duration) var(--ease);
}

.skip-nav:focus {
  top: 20px;
}

/* Page structural sheets */
.container {
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Read Progress indicator (Toss Premium) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #4092ff);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   1. HEADER & INTERACTIVE NAVIGATION (GLASSMORPHISM)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
  transition: background var(--duration) var(--ease), border var(--duration) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.brand__logo {
  background: var(--brand);
  color: #fff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 10px rgba(0, 100, 255, 0.2);
}

.brand__name {
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.brand__tag {
  font-size: 10px;
  background: var(--ink-900);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-primary {
  display: none;
  /* Desktop only shows on large display */
}

@media (min-width: 1024px) {
  .nav-primary {
    display: block;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-item>a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-800);
  padding: 8px 0;
  display: block;
}

.nav-item>a:hover {
  color: var(--brand);
}

/* Standard nested menus */
.nav-item.has-submenu:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 101;
}

.sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 6px;
}

.sub-menu li a:hover {
  background: var(--ink-100);
  color: var(--brand);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-tools button {
  background: none;
  border: none;
  color: var(--ink-800);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.header-tools button:hover {
  background: var(--ink-100);
  color: var(--brand);
}

/* ==========================================================================
   2. INTERACTIVE MODALS & DRAWER LAYOUT
   ========================================================================== */
/* Search Modal / Drawer → 하단 통합 정의 참조 (중복 제거됨) */

.drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--ink-500);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--duration);
}

.drawer__close:hover {
  color: var(--brand);
}

/* Cat tree styling inside drawer (Tistory Customizer) */
.cat-tree {
  width: 100%;
}

.cat-tree ul,
.cat-tree li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 1차 카테고리 감싸는 최상단 ul */
.cat-tree .tt_category>li,
.cat-tree .category_list>li {
  margin-bottom: 12px !important;
}

/* 분류 전체보기 & 1차 카테고리 링크 */
.cat-tree .link_title,
.cat-tree .link_item {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink-800) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all var(--duration) var(--ease) !important;
}

.cat-tree .link_title:hover,
.cat-tree .link_item:hover {
  background: var(--bg-alt) !important;
  color: var(--brand) !important;
  transform: translateX(4px);
}

/* 2차 카테고리 서브 리스트 */
.cat-tree .sub_category_list {
  margin-top: 4px !important;
  padding-left: 16px !important;
  border-left: 1px dashed var(--ink-300) !important;
  margin-left: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* 2차 카테고리 링크 */
.cat-tree .link_sub_item {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--ink-600) !important;
  display: block !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all var(--duration) var(--ease) !important;
}

.cat-tree .link_sub_item:hover {
  color: var(--brand) !important;
  background: rgba(0, 100, 255, 0.03) !important;
  transform: translateX(4px);
}

/* 카테고리별 글 수 배지 */
.cat-tree .c_cnt {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--ink-400) !important;
  background: var(--ink-100) !important;
  padding: 1px 6px !important;
  border-radius: 50px !important;
  margin-left: 6px !important;
  transition: all var(--duration) var(--ease) !important;
}

.cat-tree .link_item:hover .c_cnt {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
}

/* ==========================================================================
   3. HERO BANNER & BLOOMBERG MACRO SNAPSHOT COMPONENT
   ========================================================================== */
.hero {
  padding-top: 56px;
  padding-bottom: 56px;
  background: radial-gradient(40% 40% at 80% 20%, rgba(0, 100, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  margin-bottom: 20px;
}

.hero__lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-600);
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 100, 255, 0.15);
}

.btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 100, 255, 0.25);
}

/* Bloomberg Macro Snap Card Component styling */
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #ff3b30);
}

.dash-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dash-card__tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-400);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.dash-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.dash-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dash-stat {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid transparent;
  transition: border var(--duration) var(--ease), background var(--duration) var(--ease);
}

.dash-stat:hover {
  background: #fff;
  border-color: var(--brand);
}

.dash-stat__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dash-stat__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: -0.01em;
}

.dash-stat__delta {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.dash-stat__delta--up {
  color: var(--market-up);
  background: var(--market-bg-up);
}

.dash-stat__delta--down {
  color: var(--market-down);
  background: var(--market-bg-down);
}

.dash-stat__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}

/* ==========================================================================
   4. BENTO GRID MODULE (TOSS INSPIRED 3D SURFACES)
   ========================================================================== */
.cover-bento {
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink-900);
  padding-bottom: 12px;
}

.section-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  position: relative;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-item {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--ink-900);
  box-shadow: var(--shadow-bento);
  transition: transform var(--duration-long) var(--ease), box-shadow var(--duration-long) var(--ease);
}

.bento-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.bento-thumb-link {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding: 24px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.bento-thumb-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.bento-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-long) var(--ease);
}

.bento-item:hover .bento-thumb-img {
  transform: scale(1.06);
}

.bento-body {
  position: relative;
  z-index: 3;
}

.bento-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   5. POST-CARD / ARTICLE LIST (16:9 CARD WITH SHADOW AND SCALED HOVER)
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.post-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.post-card__title a:hover {
  color: var(--brand);
}

.post-card__excerpt {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-400);
}

.post-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--ink-300);
  display: inline-block;
}

/* Pagination container styling */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination a,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  transition: all var(--duration) var(--ease);
}

.pagination a:hover {
  background: var(--ink-100);
  color: var(--brand);
}

.pagination strong {
  background: var(--brand-light);
  color: var(--brand);
}

/* ==========================================================================
   6. TWO-COLUMN STANDARD LAYOUT & SIDEBAR COMPONENT
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 1.6fr 0.4fr;
  }
}

/* Sidebar & widget components */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.author-card {
  text-align: center;
}

.author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(0, 100, 255, 0.15);
}

.author-card__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.author-card__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.author-card__bio {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
}

.author-card__bio strong {
  color: var(--ink-900);
}

/* ==========================================================================
   7. HIGH-READABILITY ARTICLE DETAIL & CONTENT VIEWPORT
   ========================================================================== */
.article-container {
  padding-top: 48px;
  padding-bottom: 80px;
}

.article-layout {
  max-width: var(--container-article-w);
  margin: 0 auto;
}

.article__header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  margin-bottom: 16px;
}

.article__breadcrumb .sep {
  color: var(--ink-300);
}

.article__category {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.article__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}

/* Article inner contents typography (Tistory Desc) */
.article__body {
  font-size: clamp(16px, 1.8vw, 17px);
  line-height: 1.8;
  color: var(--ink-700);
  word-break: break-all;
  overflow-wrap: break-word;
}

.article__body p {
  margin-bottom: 24px;
}

.article__body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article__body blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-alt);
  padding: 16px 24px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-size: 16px;
  color: var(--ink-800);
  font-style: italic;
}

.article__body pre {
  background: var(--ink-900);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.article__body code {
  background: var(--ink-100);
  color: var(--brand);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 85%;
  font-family: SFMono-Regular, Consolas, monospace;
}

.article__body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.article__body ul,
.article__body ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.article__body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   8. CLEAN COMMENTS TREE & NESTED REPLY HIERARCHY
   ========================================================================== */
.comments {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.comments__head {
  margin-bottom: 32px;
}

.comments__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
}

.comments__count {
  color: var(--brand);
}

.comments__form-wrap {
  margin-top: 48px;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 24px;
}

.comments__form-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.comments__form input[type="text"],
.comments__form input[type="password"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
}

.comments__form input[type="text"]::placeholder,
.comments__form input[type="password"]::placeholder {
  color: var(--ink-400);
}

.comments__form textarea {
  width: 100%;
  height: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  resize: vertical;
  margin-top: 8px;
}

.comments__form textarea::placeholder {
  color: var(--ink-400);
}

/* ==========================================================================
   9. FOOTER & FOOTER BOTTOM BRAND LOGO
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-400);
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.site-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ==========================================================================
   10. PREMIUM EXTRA UTILITIES & COMPONENT FEATURES
   ========================================================================== */

/* --- Dynamic Table of Contents (TOC) --- */

/* 모바일/태블릿 (1099px 이하): 본문 레이아웃 표준 세로 나열, 고정 목차 숨김 */
@media (max-width: 1099px) {
  .article-layout {
    display: block !important;
    max-width: var(--container-article-w);
    margin: 0 auto;
  }

  .article-toc {
    display: none !important;
  }
}

/* 데스크톱 (1100px 이상): 플렉스박스로 목차와 본문을 나란히 가로 배치하고, sticky 스크롤 작동 */
@media (min-width: 1100px) {
  .article-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px !important;
    max-width: 1040px !important;
    /* 본문폭(780px) + TOC폭(220px) + 여백(40px) */
    margin: 0 auto !important;
    position: relative !important;
  }

  .article-toc {
    display: block !important;
    position: sticky !important;
    /* fixed 대신 sticky를 적용해 부모 기준 배치 보장 */
    top: 100px !important;
    /* 스크롤 시 상단 헤더 높이를 보정해 고정 */
    width: 220px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
    /* 왼쪽 배치 강제 */
    z-index: 100 !important;
    pointer-events: auto;
  }

  /* 본문 영역 크기 제한 및 정렬 */
  .article {
    flex-grow: 1 !important;
    max-width: 780px !important;
    order: 2 !important;
    /* 오른쪽 배치 강제 */
  }

  .article-toc__inner {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 8px;
  }

  /* 스크롤바 */
  .article-toc__inner::-webkit-scrollbar {
    width: 3px;
  }

  .article-toc__inner::-webkit-scrollbar-track {
    background: transparent;
  }

  .article-toc__inner::-webkit-scrollbar-thumb {
    background: var(--ink-200);
    border-radius: 3px;
  }

  .article-toc__inner:hover::-webkit-scrollbar-thumb {
    background: var(--ink-300);
  }
}

/* 초대형 해상도 (1440px 이상): 간격을 보다 넓고 수려하게 배치 */
@media (min-width: 1440px) {
  .article-layout {
    max-width: 1100px !important;
    /* 본문폭(780px) + TOC폭(240px) + 여백(80px) */
    gap: 80px !important;
  }

  .article-toc {
    width: 240px !important;
  }
}

.article-toc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-800);
}

.article-toc__icon {
  display: flex;
  align-items: center;
  color: var(--brand);
}

.article-toc__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc__nav {
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-toc__nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink-200);
  z-index: 1;
}

.article-toc__link {
  display: block;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  z-index: 2;
  transition: all var(--duration) var(--ease);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-toc__link:hover {
  color: var(--ink-900);
}

.article-toc__link.is-active {
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--brand);
  background: var(--brand-light);
  border-radius: 0 6px 6px 0;
  padding-left: 14px;
}

.article-toc__link--h3 {
  padding-left: 22px;
  font-size: 12px;
  color: var(--ink-400);
}

.article-toc__link--h3.is-active {
  padding-left: 24px;
}

.article-toc__link--h4 {
  padding-left: 32px;
  font-size: 11.5px;
  color: var(--ink-400);
}

.article-toc__link--h4.is-active {
  padding-left: 34px;
}

.article-toc__empty {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-400);
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--ink-200);
}

/* --- Sidebar Follow-Cards --- */
.follow-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.follow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.follow-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.follow-card__icon {
  color: var(--brand);
  display: flex;
  align-items: center;
}

.follow-card__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: 0.08em;
}

.follow-card__lead {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  margin-bottom: 20px;
}

.follow-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.follow-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: left;
}

.follow-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

.follow-btn__icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.follow-btn__label {
  flex-grow: 1;
}

.follow-btn__hint {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-500);
  background: var(--ink-200);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--duration) var(--ease);
  text-transform: uppercase;
}

.follow-btn:hover .follow-btn__hint {
  background: var(--brand);
  color: #ffffff;
}

/* --- Floating Engagement Widget & Tooltips --- */
.floating-engagement {
  position: fixed;
  bottom: 96px;
  /* High enough to clear to-top button */
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.eng-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.eng-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 100, 255, 0.15);
  border-color: var(--brand);
  color: var(--brand);
}

.eng-btn__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  transform-origin: right center;
  background: var(--ink-900);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
}

.eng-btn:hover .eng-btn__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* --- Scroll To Top Control --- */
.to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  z-index: 990;
  transition: all var(--duration) var(--ease);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* --- Premium Slate Glassmorphic Toast Alert --- */
.toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: opacity 0.3s var(--ease), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
  text-align: center;
  max-width: 90vw;
}

.toast.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast__text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- E-E-A-T Footer Layout Grid --- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
}

.site-footer__brand p {
  margin-top: 8px;
  line-height: 1.6;
  color: var(--ink-400);
}

.site-footer__brand a {
  transition: color var(--duration) var(--ease);
}

.site-footer__brand a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- High-Fidelity Search Modal --- */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 13, 18, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.search-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.search-modal__box {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 32px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal.is-active .search-modal__box {
  transform: scale(1) translateY(0);
}

.search-modal__form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-modal__form svg {
  position: absolute;
  left: 16px;
  pointer-events: none;
}

.search-modal__form input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  transition: all var(--duration) var(--ease);
}

.search-modal__form input[type="search"]:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* --- High-Fidelity Drawer Menu --- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 13, 18, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.drawer.is-active {
  opacity: 1;
  visibility: visible;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer.is-active .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  font-weight: 300;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-500);
  transition: color var(--duration) var(--ease);
}

.drawer__close:hover {
  color: var(--ink-900);
}

/* --- High-Fidelity Drawer Extra Components --- */

.drawer__panel {
  overflow-y: auto;
  /* 내용이 많아질 것에 대비해 스크롤 활성화 */
}

/* 1. Blogger Profile Card */
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 4px;
}

.drawer-profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #4092ff 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 100, 255, 0.2);
  letter-spacing: -0.05em;
}

.drawer-profile__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-profile__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}

.drawer-profile__role {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-light);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* 2. Visual Dividers */
.drawer-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* 3. Sections */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-section__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 4px;
}

/* 4. Quick Action Grid (2x2) */
.drawer-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drawer-quick-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  background: var(--bg-alt) !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--ink-700) !important;
  transition: all var(--duration) var(--ease) !important;
}

.drawer-quick-link svg {
  color: var(--ink-500);
  transition: color var(--duration) var(--ease);
}

.drawer-quick-link:hover {
  background: #ffffff !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-2px);
}

.drawer-quick-link:hover svg {
  color: var(--brand);
}

/* --- High-Fidelity Search Modal Suggestions --- */
.search-modal__suggestions {
  margin-top: 32px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.suggestion-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-400);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

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

.suggestion-tag {
  background: var(--bg-alt);
  border: 1px solid transparent;
  color: var(--ink-700);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.suggestion-tag:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.suggestion-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.suggestion-cat-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--ink-800) !important;
  transition: all var(--duration) var(--ease) !important;
}

.suggestion-cat-btn .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.suggestion-cat-btn:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-2px);
}

/* --- High-Fidelity Mobile/Tablet Collapsible Inline TOC --- */
.inline-toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.inline-toc__toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
  color: var(--ink-900);
}

.inline-toc__title-wrap {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.inline-toc__arrow {
  color: var(--ink-500);
  display: flex;
  align-items: center;
}

.inline-toc__nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  max-height: 360px;
  overflow-y: auto;
}

/* 활성화 시 아코디언 펼침 및 화살표 회전 */
.inline-toc.is-active .inline-toc__nav {
  display: flex;
}

.inline-toc.is-active .inline-toc__arrow svg {
  transform: rotate(180deg);
}

.inline-toc__link {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--duration) var(--ease);
}

.inline-toc__link:hover {
  background: rgba(0, 100, 255, 0.04);
  color: var(--brand);
  padding-left: 12px;
}

.inline-toc__link--h3 {
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--ink-600);
}

.inline-toc__link--h3:hover {
  padding-left: 24px;
}

.inline-toc__link--h4 {
  padding-left: 32px;
  font-size: 12px;
  color: var(--ink-500);
}

.inline-toc__link--h4:hover {
  padding-left: 36px;
}

/* 데스크톱(1100px 이상) 해상도에서는 인라인 목차를 숨김 */
@media (min-width: 1100px) {
  .inline-toc {
    display: none !important;
  }
}