:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --brand-primary: #2563eb;
  --brand-navy: #0f172a;
  --brand-cyan: #0284c7;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 20px -2px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 30px -4px rgba(15,23,42,0.12);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-scrolled: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-surface: #151d2a;
  --bg-surface-hover: #1e293b;
  --border-color: #1e293b;
  --border-dark: #334155;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;
  --brand-primary: #3b82f6;
  --brand-navy: #0b0f19;
  --brand-cyan: #38bdf8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(11, 15, 25, 0.8);
  --header-scrolled: rgba(15, 23, 42, 0.95);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 티스토리 전용 치환 태그는 브라우저가 알 수 없는 요소라 기본 inline으로 처리되어
   그리드/플렉스 배치를 깨뜨릴 수 있음 -> 레이아웃에 관여하지 않도록 무력화 */
s_t3, s_article_rep, s_index_article_rep, s_permalink_article_rep,
s_article_rep_thumbnail, s_list, s_list_empty, s_paging, s_paging_rep,
s_guest, s_guest_container, s_guest_rep, s_guest_input_form, s_guest_member,
s_guest_form_unmember, s_rp, s_rp_container, s_rp_rep, s_rp2_container,
s_rp2_rep, s_rp_input_form, s_rp_member, s_rp_guest, s_tag_label {
  display: contents;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER & NAVIGATION */
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  background-color: var(--header-scrolled);
  border-bottom-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
}
.brand-logo i { color: var(--brand-primary); }

.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--text-sub); transition: color 0.2s; }
.main-nav a:hover { color: var(--brand-primary); }

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
[data-theme="light"] .icon-dark { display: none; }
[data-theme="dark"] .icon-light { display: none; }

.nav-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background-color: var(--brand-primary);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.nav-github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* HERO BANNER */
.hero-banner-large {
  width: 100%;
  background: url('./images/banner.png') no-repeat center center / cover;
  color: #ffffff;
  padding: 6rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.88) 0%, rgba(17, 24, 39, 0.82) 50%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-large-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content-wrapper {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
}

.hero-large-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-large-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-action-group { display: flex; gap: 1.25rem; }

.hero-btn {
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: none;
}

.primary-btn {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
.primary-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #38bdf8;
  transform: translateY(-3px);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  z-index: 10;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.wheel {
  width: 3px;
  height: 6px;
  background-color: #94a3b8;
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

/* MAIN LAYOUT & GRID SYSTEM */
.layout-wrapper {
  max-width: 1440px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}

.main-content { min-width: 0; }

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}
.section-title .list-count {
  font-size: 1.1rem;
  color: var(--brand-primary);
  font-weight: 700;
}

/* 반응형 카드 그리드 */
.posts-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.post-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-thumb {
  display: block;
  width: 100%;
  height: 160px;
  min-height: 160px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-surface-hover);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.06); }

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-summary {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  margin-top: auto;
}

/* ARTICLE DETAIL */
.article-detail {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  width: 100%;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0.75rem 0 1rem;
  color: var(--text-main);
}
.article-meta { font-size: 0.9rem; color: var(--text-muted); }
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  overflow-wrap: break-word;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.5rem 0; }
.article-body pre {
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.article-tags {
  margin: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--brand-cyan);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* COMMENTS SECTION */
.comments-section {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}
.comments-header { margin-bottom: 1.5rem; }
.comments-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.comments-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.comment-item {
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}
.comment-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.88rem; }
.comment-name { font-weight: 700; color: var(--text-main); }
.comment-date { color: var(--text-muted); font-size: 0.78rem; }
.comment-text { font-size: 0.95rem; color: var(--text-sub); line-height: 1.5; margin-bottom: 0.75rem; }
.comment-actions { display: flex; gap: 1rem; font-size: 0.8rem; }
.comment-btn { color: var(--brand-primary); font-weight: 600; cursor: pointer; }
.reply-item { margin-top: 1rem; margin-left: 1.5rem; background-color: var(--bg-surface); }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-input-row { display: flex; gap: 1rem; }
.comment-submit-row { display: flex; justify-content: flex-end; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.profile-card { text-align: center; }
.profile-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--brand-primary);
}
.profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text-main); }
.profile-bio { font-size: 0.85rem; color: var(--text-sub); margin: 0.4rem 0 1.25rem; line-height: 1.5; }
.profile-socials { display: flex; justify-content: center; gap: 0.75rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface-hover);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-btn:hover { background-color: var(--brand-primary); color: #ffffff; }

.category-tree ul { list-style: none; }
.category-tree li { margin-bottom: 0.6rem; }
.category-tree a {
  color: var(--text-sub);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: color 0.2s ease;
}
.category-tree a:hover { color: var(--brand-primary); }
.category-tree .cnt { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-left: auto; }

/* GUESTBOOK & PAGINATION */
.guestbook-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.guestbook-form-card { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.guest-input-row { display: flex; gap: 1rem; }
.guest-input, .guest-textarea {
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}
.guest-input { flex: 1; }
.guest-textarea { height: 110px; resize: vertical; }
.guest-submit-btn {
  align-self: flex-end;
  padding: 0.75rem 1.6rem;
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.guestbook-list { display: flex; flex-direction: column; gap: 1.25rem; }
.guest-item { border-bottom: 1px solid var(--border-color); padding-bottom: 1.25rem; }
.guest-item-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.guest-author { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.guest-date { font-size: 0.8rem; color: var(--text-muted); }
.guest-body { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; }

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}
.page-numbers { display: flex; gap: 0.4rem; }
.page-btn, .page-num {
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
}
.page-num.selected, .page-num:hover, .page-btn:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}
.mindmap-wrapper {
  width: 92%;
  max-width: 1250px;
  height: 84vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.mindmap-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.view-switcher {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-surface-hover);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.switch-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.switch-btn.active { background-color: var(--bg-surface); color: var(--brand-primary); }

.mindmap-container, .grid-view-container { flex: 1; position: relative; display: none; overflow: hidden; }
.mindmap-container.view-active, .grid-view-container.view-active { display: block; }

.mindmap-svg-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.mindmap-line {
  stroke: var(--border-dark);
  stroke-width: 3;
  stroke-dasharray: 12, 12;
  animation: continuousElectricPulse 1.8s linear infinite;
}

@keyframes continuousElectricPulse {
  0% {
    stroke: var(--border-dark);
    stroke-dashoffset: 24;
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    stroke: var(--brand-cyan);
    filter: drop-shadow(0 0 6px var(--brand-cyan));
  }
  100% {
    stroke: var(--border-dark);
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 0px transparent);
  }
}

.mindmap-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-navy);
  border: 2px solid var(--brand-primary);
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.mindmap-node-wrapper { position: absolute; z-index: 11; }
.node-pos-1 { top: 10%; left: 12%; }
.node-pos-2 { top: 8%; left: 45%; }
.node-pos-3 { top: 10%; right: 12%; }
.node-pos-4 { top: 45%; left: 4%; }
.node-pos-5 { top: 45%; right: 4%; }
.node-pos-6 { bottom: 10%; left: 12%; }
.node-pos-7 { bottom: 8%; left: 45%; }
.node-pos-8 { bottom: 10%; right: 12%; }

.mindmap-node-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 200px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mindmap-node-card:hover {
  transform: scale(1.05);
  border-color: var(--brand-cyan);
}
.node-title { font-weight: 800; font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; }
.node-desc { font-size: 0.8rem; color: var(--text-sub); margin-top: 0.3rem; }

.grid-view-container { padding: 2.5rem; overflow-y: auto; }
.tech-grid-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-group-card { background-color: var(--bg-surface-hover); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: var(--radius-md); }
.grid-group-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.grid-group-card ul { list-style: disc; padding-left: 1.2rem; color: var(--text-sub); font-size: 0.92rem; }

.business-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-primary);
  margin-bottom: 1rem;
}
.card-name { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.card-role { font-size: 0.88rem; color: var(--brand-primary); font-weight: 600; margin-bottom: 2rem; }
.contact-links-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .posts-container { grid-template-columns: 1fr !important; }
}

@media (max-width: 992px) {
  .layout-wrapper { grid-template-columns: 1fr; }
  .posts-container { grid-template-columns: 1fr; }
  .tech-grid-wrapper { grid-template-columns: 1fr; }
  .mindmap-node-card { min-width: 140px; padding: 0.6rem 0.8rem; }
  .node-title { font-size: 0.85rem; }
  .node-desc { display: none; }
}