/* ═══════════════════════════════════════════════════════════════
   PRAGMATA HUGO THEME — main.css
   NASA Blueprint × Apollo Spacesuit × Soviet Control Panel
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (local) ── */
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/inter-300.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/inter-500.ttf') format('truetype'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/spacemono-400.ttf') format('truetype'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/spacemono-700.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/barlow-300.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/barlow-400.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/barlow-500.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-600.ttf') format('truetype'); }

/* ── Design Tokens ── */
:root {
  --bg:       #e8eae6;
  --bg2:      #dfe1dd;
  --bg3:      #d4d6d2;
  --suit:     #c8cac6;
  --suit2:    #b8bab6;
  --grid:     rgba(80,100,120,0.12);
  --line:     rgba(60,80,100,0.25);
  --line2:    rgba(60,80,100,0.12);
  --text:     #1a2230;
  --text2:    #4a5a6a;
  --text3:    #8a9aaa;
  --yellow:   #e8a020;
  --yellow2:  #c88010;
  --red-btn:  #c03020;
  --blue-btn: #2860c0;
  --stripe-r: #c03020;
  --stripe-b: #2060b0;
  --black:    #1a1e24;
  --mono:     'Space Mono', monospace;
  --disp:     'Barlow Condensed', sans-serif;
  --body:     'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  min-height: 100vh;
  /* 工程图纸网格 */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: var(--blue-btn); text-decoration: none; }
a:hover { color: var(--yellow2); }

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

/* ── Navigation ── */
.eng-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--text);
  padding: 11px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo:hover { color: var(--text); text-decoration: none; }
.nav-logo strong { font-weight: 600; }

/* ── Glitch Effect ── */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--red-btn);
  animation: glitch-1 4s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  color: var(--blue-btn);
  animation: glitch-2 4s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
@keyframes glitch-1 {
  0%, 88%, 100% { transform: translate(0); }
  89% { transform: translate(-2px, 1px); }
  91% { transform: translate(2px, -1px); }
  93% { transform: translate(-1px, 0); }
  95% { transform: translate(1px, 1px); }
}
@keyframes glitch-2 {
  0%, 85%, 100% { transform: translate(0); }
  86% { transform: translate(2px, -1px); }
  88% { transform: translate(-2px, 1px); }
  90% { transform: translate(1px, 0); }
  92% { transform: translate(-1px, -1px); }
}

.nav-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.nav-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--text2);
}

.nav-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--text2);
}

.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line2);
  text-decoration: none;
}

.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--bg); }

.nav-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  text-decoration: none;
  padding: 3px 8px;
  height: 20px;
  border: 1px solid var(--line);
}
.nav-social svg {
  width: 12px;
  height: 12px;
}
.nav-social:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.nav-badge-y {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  font-weight: 700;
}

.nav-badge-g {
  background: transparent;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  padding: 3px 10px;
}

/* 汉堡菜单按钮（移动端） */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  border-left: 1px solid var(--line);
  padding: 0 16px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 48px;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text2);
}

/* 移动端导航展开 */
.nav-mobile {
  display: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  border-right: none;
  border-bottom: 1px solid var(--line2);
  padding: 10px 18px;
}

/* ── Section Header ── */
.sec-head {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.sec-head::before { content: ''; width: 14px; height: 1px; background: var(--line); }
.sec-head::after { content: ''; flex: 1; height: 1px; background: var(--line2); }

/* ── Page Layout ── */
.page-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: calc(100vh - 42px);
}

.page-body.full-width {
  grid-template-columns: 1fr;
}

.page-content {
  padding: 2rem 2.5rem;
}

/* ── Sidebar ── */
.eng-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--line);
  padding: 12px 0;
}

.sb-section-head {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 6px 16px 8px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 2px;
}

.sb-section-head + .sb-section-head { margin-top: 10px; }

.sb-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.sb-item:hover { color: var(--text); text-decoration: none; }

.sb-item.active {
  background: var(--bg);
  color: var(--text);
  border-left: 3px solid var(--yellow);
  padding-left: 13px;
}

.sb-item-id { font-size: 7px; color: var(--text3); }
.sb-count { font-size: 9px; color: var(--text2); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--line); margin: 0 4px; }
.breadcrumb .current { color: var(--text); }

/* ── Card — 工程图纸面板 ── */
.eng-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  position: relative;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
  color: inherit;
}

.eng-card:hover { text-decoration: none; color: inherit; }

/* 四角十字标记 */
.eng-card::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: none;
  background:
    linear-gradient(var(--line), var(--line)) top left / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) top left / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) top right / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) top right / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom left / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom left / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom right / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom right / 1px 8px no-repeat;
  pointer-events: none;
}

.card-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text2);
}

.card-date {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  margin-left: auto;
  letter-spacing: 1px;
}

.card-body { padding: 14px; }

.card-title {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.card-summary {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.card-accent {
  border-left: 3px solid var(--yellow);
}

/* ── Tags (圆形控制标记) ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text3);
}

.tag-item:hover { color: var(--text); text-decoration: none; }

.tag-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-dot.red { width: 12px; height: 12px; background: var(--red-btn); border: 1.5px solid #901810; }
.tag-dot.blue { width: 12px; height: 12px; background: var(--blue-btn); border: 1.5px solid #1040a0; }
.tag-dot.yellow { width: 10px; height: 10px; background: var(--yellow); border: 1.5px solid var(--yellow2); }
.tag-dot.gray { width: 10px; height: 10px; background: var(--suit); border: 1px solid var(--line); }

.tag-name {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Sleeve Stripe Divider ── */
.stripe-divider {
  height: 4px;
  width: 100%;
  display: flex;
  margin: 1rem 0;
}

.stripe-r { flex: 1; background: var(--stripe-r); }
.stripe-w { flex: 1; background: var(--suit); }
.stripe-b { flex: 1; background: var(--stripe-b); }

/* ── Article Detail ── */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 42px);
}

.article-toc {
  background: var(--bg2);
  border-right: 1px solid var(--line);
  padding: 12px 0;
  overflow-y: auto;
  position: sticky;
  top: 42px;
  height: calc(100vh - 42px);
}

.toc-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-sidebar-nav li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text3);
  line-height: 1;
}

.toc-sidebar-nav a {
  display: block;
  padding: 7px 16px;
  color: var(--text3);
  text-decoration: none;
}

.toc-sidebar-nav a:hover { color: var(--text); text-decoration: none; }

.toc-sidebar-nav li ul {
  padding-left: 0;
  margin: 0;
}

.toc-sidebar-nav li ul a { padding-left: 28px; }

.article-detail {
  padding: 2rem 2.5rem;
  max-width: 100%;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-title {
  font-family: var(--disp);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.1;
}

/* ── Table of Contents ── */
.toc-panel {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 1.5rem;
}

.toc-label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}

.toc-panel nav ul {
  list-style: none;
  padding: 0;
}

.toc-panel nav li {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text2);
  line-height: 1.8;
}

.toc-panel nav a { color: var(--text2); text-decoration: none; }
.toc-panel nav a:hover { color: var(--blue-btn); }

/* ── Article Content (prose) ── */
.article-content {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content pre {
  max-width: 100%;
}

.article-content h2 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line2);
}

.article-content h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}

.article-content h4 {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  margin: 1.2rem 0 0.5rem;
}

.article-content p { margin-bottom: 1rem; }

.article-content code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-btn);
}

.article-content pre {
  background: var(--black);
  color: #c8cac6;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  border: 1px solid var(--line2);
}

.article-content .highlight {
  position: relative;
}

/* Line numbers */
.article-content .ln {
  color: var(--text3);
  opacity: 0.4;
  user-select: none;
  padding-right: 1em;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 1em;
}

.article-content .cl {
  padding-left: 0;
}

/* Copy button */
.copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.article-content .highlight:hover .copy-btn {
  opacity: 1;
}
.copy-btn:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

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

.article-content blockquote {
  border-left: 3px solid var(--yellow);
  background: rgba(232,160,32,.06);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--text2);
}

.article-content ul, .article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li { margin-bottom: 0.3rem; }

.article-content img {
  border: 1px solid var(--line);
  margin: 1rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 13px;
}

.article-content th,
.article-content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  background: var(--bg3);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 9px;
}

.article-content a {
  color: var(--blue-btn);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--yellow2);
}

/* ── Project Grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover { text-decoration: none; color: inherit; }

.project-card::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: none;
  background:
    linear-gradient(var(--line), var(--line)) top left / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) top left / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) top right / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) top right / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom left / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom left / 1px 8px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom right / 8px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom right / 1px 8px no-repeat;
  pointer-events: none;
}

.project-card .card-body { flex: 1; }

.project-link {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-top: 10px;
  text-decoration: none;
}

.project-link:hover { background: var(--yellow2); color: var(--black); text-decoration: none; }

/* ── 404 Page ── */
.error-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 42px);
  padding: 2rem;
}

.error-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  max-width: 420px;
  width: 100%;
  position: relative;
  border-left: 4px solid var(--red-btn);
}

.error-card .card-body {
  text-align: center;
  padding: 2rem 1.5rem;
}

.error-code {
  font-family: var(--disp);
  font-size: 64px;
  font-weight: 600;
  color: var(--red-btn);
  letter-spacing: 4px;
  line-height: 1;
}

.error-title {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 2px;
  margin-top: 8px;
}

.error-desc {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.5px;
  margin-top: 10px;
  line-height: 1.8;
}

.error-alert-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-btn);
  border: 2px solid #901810;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

/* ── Buttons ── */
.eng-btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.eng-btn:hover { text-decoration: none; }
.eng-btn.yellow { background: var(--yellow); color: var(--black); }
.eng-btn.yellow:hover { background: var(--yellow2); }
.eng-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.eng-btn.red { background: var(--red-btn); color: #fff; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 4px;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text3);
}

.pagination a:hover { background: var(--bg2); color: var(--text); text-decoration: none; }
.pagination .active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ── Footer ── */
.eng-footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 1px;
}
.eng-footer .footer-link {
  color: var(--text3);
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid var(--line2);
  margin: 0 4px;
}
.eng-footer .footer-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.eng-footer img {
  vertical-align: middle;
  height: 14px;
  margin-right: 4px;
}

/* ── Git Info ── */
.gitinfo {
  margin-top: 1rem;
  padding: 8px 12px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 0.5px;
}
.gitinfo a {
  color: var(--text3);
  text-decoration: none;
}
.gitinfo a:hover {
  color: var(--yellow);
}

/* ── Data Grid ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.data-cell {
  background: var(--bg2);
  padding: 10px 14px;
}

.data-cell + .data-cell { border-left: 1px solid var(--line2); }

.dc-label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 3px;
}

.dc-val {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-link,
  .nav-status { display: none; }
  .nav-mobile .nav-link { display: block; }

  .nav-hamburger { display: flex; }

  .page-body { grid-template-columns: 1fr; }

  .eng-sidebar { display: none; }

  .page-content { padding: 1rem; }

  .article-detail { padding: 1rem; max-width: 100%; }

  .article-toc { display: none; }

  .article-layout { grid-template-columns: 1fr; }

  .article-title { font-size: 24px; }

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

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

@media (max-width: 480px) {
  .article-title { font-size: 20px; }

  .card-title { font-size: 15px; }
}

/* ── About Page ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.about-moon {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 120px;
}
#moonCanvas {
  width: 340px;
  height: 340px;
}
.moon-label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--text3);
  border: 1px solid var(--line2);
  padding: 3px 10px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .about-moon {
    position: static;
    order: 1;
    padding-top: 2rem;
  }
  .about-text {
    order: 0;
  }
  #moonCanvas {
    width: 200px;
    height: 200px;
  }
}

/* ── Tag Cloud ── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 1.5rem;
}

.tag-cloud-item {
  font-family: var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.tag-cloud-item:hover {
  color: var(--text);
  border-color: var(--yellow);
  text-decoration: none;
}

.tag-cloud-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-cloud-count {
  font-size: 0.7em;
  color: var(--text3);
}
