/* ============================================================
   DSA MASTERY · Blueprint Theme
   Cảm hứng: bản vẽ kỹ thuật, sổ tay kỹ sư, grid paper
   ============================================================ */

:root {
  /* Background scale */
  --bg:           #0a1929;
  --bg-soft:      #0f2238;
  --bg-elev:      #142a47;
  --bg-card:      #112338;

  /* Lines & borders */
  --border:       #1e3a5f;
  --border-soft:  #173155;
  --grid-line:    rgba(100, 200, 255, 0.06);
  --grid-major:   rgba(100, 200, 255, 0.10);

  /* Text */
  --text:         #d6e4f0;
  --text-soft:    #9ab3cc;
  --text-dim:     #6b8aaa;

  /* Accent */
  --cyan:         #4fc3f7;
  --cyan-bright:  #81d4fa;
  --cyan-deep:    #0288d1;
  --amber:        #ffd54f;
  --amber-soft:   #ffecb3;
  --green:        #66bb6a;
  --red:          #ef5350;
  --purple:       #ba68c8;

  /* Effects */
  --glow-cyan:    0 0 0 1px rgba(79, 195, 247, 0.4), 0 0 20px rgba(79, 195, 247, 0.15);
  --glow-amber:   0 0 0 1px rgba(255, 213, 79, 0.5), 0 0 16px rgba(255, 213, 79, 0.2);
  --shadow-card:  0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== Blueprint grid background ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(79, 195, 247, 0.10), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 213, 79, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ===== Code / mono font ===== */
code, kbd, pre, .mono {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.92em;
}

/* ===== Header ===== */
header {
  background: rgba(10, 25, 41, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--cyan);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  color: var(--amber);
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 213, 79, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.18s ease;
  font-size: 14px;
  font-weight: 500;
}
nav a:hover, nav a.active {
  color: var(--cyan-bright);
}

/* ===== Main containers ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

main.docs-main { max-width: 1100px; }

/* ===== Hero ===== */
.hero {
  margin: 32px 0 56px;
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(20, 42, 71, 0.7), rgba(10, 25, 41, 0.4));
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 80px; height: 80px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-radius: 8px 0 0 0;
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 80px; height: 80px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  border-radius: 0 0 8px 0;
  opacity: 0.6;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(79, 195, 247, 0.1);
  color: var(--cyan-bright);
  border: 1px solid rgba(79, 195, 247, 0.4);
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.75;
}

.text-amber  { color: var(--amber); }
.text-cyan   { color: var(--cyan-bright); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-dim    { color: var(--text-dim); }

/* ===== Section headings ===== */
h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
h2::before {
  content: '◇';
  color: var(--amber);
  font-size: 18px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
}

h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'IBM Plex Mono', monospace;
}

p { margin: 12px 0; color: var(--text); }

ul, ol { margin: 12px 0 12px 24px; }
li { margin: 6px 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-bright); text-decoration: underline; }

strong { color: var(--text); font-weight: 700; }
em { color: var(--amber-soft); font-style: italic; }

/* ===== Inline code ===== */
:not(pre) > code {
  background: rgba(79, 195, 247, 0.08);
  color: var(--cyan-bright);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.15);
  font-size: 0.88em;
}

/* ===== Code blocks ===== */
pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 18px 0;
  overflow-x: auto;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'IBM Plex Mono', monospace;
}
pre code {
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 14px;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: var(--cyan-bright);
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0;
}
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover {
  background: rgba(79, 195, 247, 0.2);
  border-color: var(--cyan);
}
.copy-btn.copied {
  background: rgba(102, 187, 106, 0.2);
  border-color: var(--green);
  color: var(--green);
}

/* ===== Callouts ===== */
.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--cyan);
  background: rgba(79, 195, 247, 0.05);
  border-radius: 0 8px 8px 0;
}
.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cyan-bright);
  font-size: 14px;
}
.callout.tip      { border-left-color: var(--green); background: rgba(102, 187, 106, 0.06); }
.callout.tip .callout-title { color: var(--green); }
.callout.warning  { border-left-color: var(--amber); background: rgba(255, 213, 79, 0.06); }
.callout.warning .callout-title { color: var(--amber); }
.callout.danger   { border-left-color: var(--red); background: rgba(239, 83, 80, 0.06); }
.callout.danger .callout-title { color: var(--red); }
.callout.note     { border-left-color: var(--purple); background: rgba(186, 104, 200, 0.06); }
.callout.note .callout-title { color: var(--purple); }

/* ===== Roadmap cards ===== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.card:hover {
  border-color: var(--cyan);
  background: var(--bg-elev);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), var(--glow-cyan);
}
.card:hover::before { transform: scaleY(1); }
.card:hover { text-decoration: none; }

.card .ch-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--text);
}
.card p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* ===== Syllabus chapters (docs page) ===== */
.syllabus { margin: 32px 0; }

.chapter-doc {
  margin: 28px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chapter-doc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(90deg, rgba(79,195,247,0.08), transparent);
  border-bottom: 1px solid var(--border);
}
.chapter-doc-head .ch-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255, 213, 79, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 213, 79, 0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.chapter-doc-head h3 {
  margin: 0;
  flex: 1;
  font-size: 19px;
}
.chapter-doc-head .ch-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cyan-bright);
  background: rgba(79, 195, 247, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  letter-spacing: 0.05em;
}

.chapter-doc-body { padding: 20px 28px 24px; }

.ch-summary {
  font-style: italic;
  color: var(--text-soft);
  border-left: 2px solid var(--amber);
  padding-left: 14px;
  margin: 8px 0 18px;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
th {
  background: var(--bg-soft);
  color: var(--cyan-bright);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(79, 195, 247, 0.03); }

/* ===== Lesson navigation ===== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 24px;
  flex-wrap: wrap;
}
.lesson-nav a {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lesson-nav a:hover {
  border-color: var(--cyan);
  background: var(--bg-elev);
  text-decoration: none;
}
.lesson-nav a .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lesson-nav a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  font-family: 'IBM Plex Mono', monospace;
}
.footer-mark { color: var(--amber); }

/* ===== Big-O visualizer (chương 1) ===== */
.bigo-chart {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
}

.bigo-row {
  display: grid;
  grid-template-columns: 100px 1fr 110px;
  align-items: center;
  margin: 8px 0;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.bigo-label {
  text-align: right;
  color: var(--text-soft);
}
.bigo-bars {
  position: relative;
  height: 24px;
}
.bigo-name {
  font-size: 12px;
  color: var(--text-soft);
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bigo-row { grid-template-columns: 80px 1fr 80px; gap: 8px; }
  .bigo-label, .bigo-name { font-size: 11px; }
}
.bigo-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
/* Tỉ lệ tăng dần — bar thuần hình thanh, text mô tả ở .bigo-name bên cạnh */
.bigo-bar.b-1     { width: 3%;   background: var(--green); }
.bigo-bar.b-logn  { width: 7%;   background: #4caf50; }
.bigo-bar.b-sqrt  { width: 13%;  background: #8bc34a; }
.bigo-bar.b-n     { width: 25%;  background: var(--cyan); }
.bigo-bar.b-nlogn { width: 40%;  background: #00acc1; }
.bigo-bar.b-n2    { width: 62%;  background: var(--amber); }
.bigo-bar.b-n3    { width: 78%;  background: #ff9800; }
.bigo-bar.b-2n    { width: 92%;  background: var(--red); }
.bigo-bar.b-nfact { width: 100%; background: linear-gradient(90deg, var(--red), #b71c1c); }

/* ===== Visualizer cells (array, tree, etc.) ===== */
.viz-array {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.viz-cell {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.06);
  color: var(--text);
  position: relative;
  transition: all 0.25s ease;
}
.viz-cell.highlight {
  background: rgba(255, 213, 79, 0.2);
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: var(--glow-amber);
}
.viz-cell.dim {
  opacity: 0.3;
  border-color: var(--border);
}
.viz-cell::after {
  content: attr(data-index);
  position: absolute;
  bottom: -18px;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
}

/* ===== Quiz ===== */
.quiz {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}
.quiz h3 {
  margin-top: 0;
  color: var(--amber);
}
.quiz-question {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--cyan);
  border-radius: 0 6px 6px 0;
}
.quiz-question p { margin-bottom: 10px; font-weight: 500; }
.quiz-options { list-style: none; margin: 0; padding: 0; }
.quiz-options li {
  margin: 6px 0;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-options li:hover {
  border-color: var(--cyan);
  background: var(--bg-soft);
}
.quiz-options li.correct {
  background: rgba(102, 187, 106, 0.15);
  border-color: var(--green);
  color: var(--green);
}
.quiz-options li.wrong {
  background: rgba(239, 83, 80, 0.15);
  border-color: var(--red);
  color: var(--red);
}
.quiz-options li.disabled { pointer-events: none; opacity: 0.7; }

.quiz-explain {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-style: italic;
  display: none;
}
.quiz-question.answered .quiz-explain { display: block; }

/* ===== Exercise / problem block ===== */
.exercise {
  background: var(--bg-card);
  border: 1px dashed var(--cyan);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
}
.exercise-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===== TOC sidebar (chương) ===== */
.chapter-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.chapter-toc {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  font-size: 13px;
}
.chapter-toc h4 { margin-top: 0; }
.chapter-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chapter-toc li { margin: 4px 0; }
.chapter-toc a {
  color: var(--text-soft);
  display: block;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.15s ease;
}
.chapter-toc a:hover {
  color: var(--cyan-bright);
  border-left-color: var(--cyan);
  background: rgba(79, 195, 247, 0.05);
  text-decoration: none;
}

@media (max-width: 900px) {
  .chapter-layout { grid-template-columns: 1fr; }
  .chapter-toc { position: static; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main { padding: 32px 20px 64px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 32px; }
  nav { padding: 0; }
  nav ul { gap: 14px; }
  .chapter-doc-head { flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
  .chapter-doc-body { padding: 16px 18px; }
  .lesson-nav a { min-width: 100%; }
}

/* ===== Small typography helpers ===== */
.mt-2 { margin-top: 14px; }
.mb-2 { margin-bottom: 14px; }
.center { text-align: center; }

/* ===== Stat / metric block ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Comparison side-by-side ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.compare > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.compare > .good { border-top: 3px solid var(--green); }
.compare > .bad  { border-top: 3px solid var(--red); }
.compare h4 { margin-top: 0; }

@media (max-width: 768px) {
  .compare { grid-template-columns: 1fr; }
}

/* ===== Chapter Jump Menu (header dropdown) ===== */
.ch-jump {
  position: relative;
  list-style: none;
}
.ch-jump-btn {
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.3);
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ch-jump-btn:hover {
  background: rgba(255, 213, 79, 0.15);
  border-color: var(--amber);
}
.ch-jump-btn[aria-expanded="true"] {
  background: rgba(255, 213, 79, 0.2);
  border-color: var(--amber);
}

.ch-jump-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 360px;
  max-width: 90vw;
  max-height: min(70vh, 600px);
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(79, 195, 247, 0.1);
  padding: 8px;
}
.ch-jump-menu.open { display: block; animation: ch-jump-fadein 0.15s ease; }

@keyframes ch-jump-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ch-jump-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.ch-jump-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ch-jump-home {
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
}
.ch-jump-home:hover { color: var(--cyan-bright); text-decoration: underline; }

.ch-jump-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s ease;
}
.ch-jump-item:hover {
  background: var(--bg-elev);
  text-decoration: none;
}
.ch-jump-item.active {
  background: rgba(79, 195, 247, 0.10);
  border-left: 3px solid var(--cyan);
  padding-left: 9px;
}

.ch-jump-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ch-jump-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ch-jump-name {
  font-size: 13.5px;
  font-weight: 500;
}
.ch-jump-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .ch-jump-menu {
    right: -16px;
    min-width: 300px;
  }
}
